interface Ec2EnvironmentProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Cloud9.Alpha.Ec2EnvironmentProps |
Go | github.com/aws/aws-cdk-go/awscdkcloud9alpha/v2#Ec2EnvironmentProps |
Java | software.amazon.awscdk.services.cloud9.alpha.Ec2EnvironmentProps |
Python | aws_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
Name | Type | Description |
---|---|---|
image | Image | The image ID used for creating an Amazon EC2 environment. |
vpc | IVpc | The VPC that AWS Cloud9 will use to communicate with the Amazon Elastic Compute Cloud (Amazon EC2) instance. |
automatic | Duration | The number of minutes until the running instance is shut down after the environment was last used. |
cloned | Clone [] | The AWS CodeCommit repository to be cloned. |
connection | Connection | The connection type used for connecting to an Amazon EC2 environment. |
description? | string | Description of the environment. |
ec2 | string | Name of the environment. |
instance | Instance | The type of instance to connect to the environment. |
owner? | Owner | Owner of the environment. |
subnet | Subnet | The subnetSelection of the VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance. |
imageId
Type:
Image
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:
Clone
[]
(optional, default: do not clone any repository)
The AWS CodeCommit repository to be cloned.
connectionType?
Type:
Connection
(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:
Instance
(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:
Subnet
(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.