enum ImageId
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Cloud9.Alpha.ImageId |
Go | github.com/aws/aws-cdk-go/awscdkcloud9alpha/v2#ImageId |
Java | software.amazon.awscdk.services.cloud9.alpha.ImageId |
Python | aws_cdk.aws_cloud9_alpha.ImageId |
TypeScript (source) | @aws-cdk/aws-cloud9-alpha ยป ImageId |
The image ID used for creating an Amazon EC2 environment.
Example
import * as iam from 'aws-cdk-lib/aws-iam';
const user = new iam.User(this, 'user');
user.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName('AWSCloud9Administrator'));
declare const vpc: ec2.Vpc;
new cloud9.Ec2Environment(this, 'C9Env', {
vpc,
imageId: cloud9.ImageId.AMAZON_LINUX_2,
owner: cloud9.Owner.user(user)
})
Members
Name | Description |
---|---|
AMAZON_LINUX_2 | Create using Amazon Linux 2. |
AMAZON_LINUX_2023 | Create using Amazon Linux 2023. |
UBUNTU_18_04 | Create using Ubuntu 18.04. |
UBUNTU_22_04 | Create using Ubuntu 22.04. |
AMAZON_LINUX_2
Create using Amazon Linux 2.
AMAZON_LINUX_2023
Create using Amazon Linux 2023.
UBUNTU_18_04
Create using Ubuntu 18.04.
UBUNTU_22_04
Create using Ubuntu 22.04.