AmazonLinuxGeneration
- class aws_cdk.aws_ec2.AmazonLinuxGeneration(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
What generation of Amazon Linux to use.
- ExampleMetadata:
infused
Example:
# vpc: ec2.Vpc ec2.Instance(self, "Instance", vpc=vpc, instance_type=ec2.InstanceType.of(ec2.InstanceClass.T3, ec2.InstanceSize.NANO), machine_image=ec2.AmazonLinuxImage(generation=ec2.AmazonLinuxGeneration.AMAZON_LINUX_2), instance_initiated_shutdown_behavior=ec2.InstanceInitiatedShutdownBehavior.TERMINATE )
Attributes
- AMAZON_LINUX
Amazon Linux.
- AMAZON_LINUX_2
Amazon Linux 2.
- AMAZON_LINUX_2022
Amazon Linux 2022.
- AMAZON_LINUX_2023
Amazon Linux 2023.