ImageId

class aws_cdk.aws_cloud9_alpha.ImageId(value)

Bases: Enum

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

Stability

experimental

ExampleMetadata

infused

Example:

import aws_cdk.aws_codecommit as codecommit

# create a new Cloud9 environment and clone the two repositories
# vpc: ec2.Vpc


# create a codecommit repository to clone into the cloud9 environment
repo_new = codecommit.Repository(self, "RepoNew",
    repository_name="new-repo"
)

# import an existing codecommit repository to clone into the cloud9 environment
repo_existing = codecommit.Repository.from_repository_name(self, "RepoExisting", "existing-repo")
cloud9.Ec2Environment(self, "C9Env",
    vpc=vpc,
    cloned_repositories=[
        cloud9.CloneRepository.from_code_commit(repo_new, "/src/new-repo"),
        cloud9.CloneRepository.from_code_commit(repo_existing, "/src/existing-repo")
    ],
    image_id=cloud9.ImageId.AMAZON_LINUX_2
)

Attributes

AMAZON_LINUX_2

(experimental) Create using Amazon Linux 2.

Stability

experimental

UBUNTU_18_04

(experimental) Create using Ubunut 18.04.

Stability

experimental