CpuCredits
- class aws_cdk.aws_ec2.CpuCredits(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
Provides the options for specifying the CPU credit type for burstable EC2 instance types (T2, T3, T3a, etc).
- See:
- ExampleMetadata:
infused
Example:
# vpc: ec2.Vpc instance = ec2.Instance(self, "Instance", instance_type=ec2.InstanceType.of(ec2.InstanceClass.T3, ec2.InstanceSize.MICRO), machine_image=ec2.MachineImage.latest_amazon_linux2(), vpc=vpc, credit_specification=ec2.CpuCredits.STANDARD )
Attributes
- STANDARD
Standard bursting mode.
- UNLIMITED
Unlimited bursting mode.