@aws-cdk_aws-cloud9-alpha.Ec2EnvironmentProps

interface Ec2EnvironmentProps ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Cloud9.Alpha.Ec2EnvironmentProps
Gogithub.com/aws/aws-cdk-go/awscdkcloud9alpha/v2#Ec2EnvironmentProps
Javasoftware.amazon.awscdk.services.cloud9.alpha.Ec2EnvironmentProps
Pythonaws_cdk.aws_cloud9_alpha.Ec2EnvironmentProps
TypeScript (source)@aws-cdk/aws-cloud9-alpha ยป Ec2EnvironmentProps

Properties for Ec2Environment.

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)
})

Properties

NameTypeDescription
imageId๐Ÿ”นImageIdThe image ID used for creating an Amazon EC2 environment.
vpc๐Ÿ”นIVpcThe VPC that AWS Cloud9 will use to communicate with the Amazon Elastic Compute Cloud (Amazon EC2) instance.
automaticStop?๐Ÿ”นDurationThe number of minutes until the running instance is shut down after the environment was last used.
clonedRepositories?๐Ÿ”นCloneRepository[]The AWS CodeCommit repository to be cloned.
connectionType?๐Ÿ”นConnectionTypeThe connection type used for connecting to an Amazon EC2 environment.
description?๐Ÿ”นstringDescription of the environment.
ec2EnvironmentName?๐Ÿ”นstringName of the environment.
instanceType?๐Ÿ”นInstanceTypeThe type of instance to connect to the environment.
owner?๐Ÿ”นOwnerOwner of the environment.
subnetSelection?๐Ÿ”นSubnetSelectionThe subnetSelection of the VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.

imageId๐Ÿ”น

Type: ImageId

The image ID used for creating an Amazon EC2 environment.


vpc๐Ÿ”น

Type: IVpc

The VPC that AWS Cloud9 will use to communicate with the Amazon Elastic Compute Cloud (Amazon EC2) instance.


automaticStop?๐Ÿ”น

Type: Duration (optional, default: The instance will not be shut down automatically.)

The number of minutes until the running instance is shut down after the environment was last used.

Setting a value of 0 means the instance will never be automatically shut down."


clonedRepositories?๐Ÿ”น

Type: CloneRepository[] (optional, default: do not clone any repository)

The AWS CodeCommit repository to be cloned.


connectionType?๐Ÿ”น

Type: ConnectionType (optional, default: CONNECT_SSH)

The connection type used for connecting to an Amazon EC2 environment.

Valid values are: CONNECT_SSH (default) and CONNECT_SSM (connected through AWS Systems Manager)


description?๐Ÿ”น

Type: string (optional, default: no description)

Description of the environment.


ec2EnvironmentName?๐Ÿ”น

Type: string (optional, default: automatically generated name)

Name of the environment.


instanceType?๐Ÿ”น

Type: InstanceType (optional, default: t2.micro)

The type of instance to connect to the environment.


owner?๐Ÿ”น

Type: Owner (optional, default: The identity that CloudFormation executes under will be the owner)

Owner of the environment.

The owner has full control of the environment and can invite additional members.


subnetSelection?๐Ÿ”น

Type: SubnetSelection (optional, default: all public subnets of the VPC are selected.)

The subnetSelection of the VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.