class Ec2Environment (construct)
A Cloud9 Environment with Amazon EC2.
new Ec2Environment(scope: Construct, id: string, props: Ec2EnvironmentProps)
|vpc||The VPC that AWS Cloud9 will use to communicate with the Amazon Elastic Compute Cloud (Amazon EC2) instance.|
|cloned||The AWS CodeCommit repository to be cloned.|
|description?||Description of the environment.|
|ec2||Name of the environment.|
|instance||The type of instance to connect to the environment.|
|subnet||The subnetSelection of the VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.|
The VPC that AWS Cloud9 will use to communicate with the Amazon Elastic Compute Cloud (Amazon EC2) instance.
(optional, default: do not clone any repository)
The AWS CodeCommit repository to be cloned.
(optional, default: no description)
Description of the environment.
(optional, default: automatically generated name)
Name of the environment.
(optional, default: t2.micro)
The type of instance to connect to the environment.
(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.
|ec2||The environment ARN of this Cloud9 environment.|
|ec2||The environment name of this Cloud9 environment.|
|env||The environment this resource belongs to.|
|environment||The environment ID of this Cloud9 environment.|
|ide||The complete IDE URL of this Cloud9 environment.|
|node||The construct tree node associated with this construct.|
|stack||The stack in which this resource is defined.|
The environment ARN of this Cloud9 environment.
The environment name of this Cloud9 environment.
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
The environment ID of this Cloud9 environment.
The complete IDE URL of this Cloud9 environment.
The construct tree node associated with this construct.
The stack in which this resource is defined.
|to||Returns a string representation of this construct.|
|static from||import from EnvironmentEc2Name.|
public toString(): string
Returns a string representation of this construct.
Ec2 Environment Name(scope, id, ec2EnvironmentName)
public static fromEc2EnvironmentName(scope: Construct, id: string, ec2EnvironmentName: string): IEc2Environment
import from EnvironmentEc2Name.