ImageId

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

Bases: Enum

(experimental) The image ID used for creating an Amazon EC2 environment.

Stability:

experimental

ExampleMetadata:

infused

Example:

import aws_cdk.aws_iam as iam
# vpc: ec2.Vpc


user = iam.User(self, "user")
user.add_managed_policy(iam.ManagedPolicy.from_aws_managed_policy_name("AWSCloud9Administrator"))
cloud9.Ec2Environment(self, "C9Env",
    vpc=vpc,
    image_id=cloud9.ImageId.AMAZON_LINUX_2,

    owner=cloud9.Owner.user(user)
)

Attributes

AMAZON_LINUX_2

(experimental) Create using Amazon Linux 2.

Stability:

experimental

AMAZON_LINUX_2023

(experimental) Create using Amazon Linux 2023.

Stability:

experimental

UBUNTU_18_04

(deprecated) Create using Ubuntu 18.04.

Deprecated:

Since Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend you choose Ubuntu 22.04.

Stability:

deprecated

UBUNTU_22_04

(experimental) Create using Ubuntu 22.04.

Stability:

experimental