AmazonLinuxStorage

class aws_cdk.aws_ec2.AmazonLinuxStorage(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

Available storage options for Amazon Linux images Only applies to Amazon Linux & Amazon Linux 2.

ExampleMetadata:

lit=aws-autoscaling/test/example.images.lit.ts infused

Example:

# Pick a Windows edition to use
windows = ec2.WindowsImage(ec2.WindowsVersion.WINDOWS_SERVER_2019_ENGLISH_FULL_BASE)

# Pick the right Amazon Linux edition. All arguments shown are optional
# and will default to these values when omitted.
amzn_linux = ec2.AmazonLinuxImage(
    generation=ec2.AmazonLinuxGeneration.AMAZON_LINUX,
    edition=ec2.AmazonLinuxEdition.STANDARD,
    virtualization=ec2.AmazonLinuxVirt.HVM,
    storage=ec2.AmazonLinuxStorage.GENERAL_PURPOSE
)

# For other custom (Linux) images, instantiate a `GenericLinuxImage` with
# a map giving the AMI to in for each region:

linux = ec2.GenericLinuxImage({
    "us-east-1": "ami-97785bed",
    "eu-west-1": "ami-12345678"
})

Attributes

EBS

EBS-backed storage.

GENERAL_PURPOSE

General Purpose-based storage (recommended).

S3

S3-backed storage.