Class Ec2EnvironmentProps
(experimental) Properties for Ec2Environment.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Cloud9.Alpha
Assembly: Amazon.CDK.AWS.Cloud9.Alpha.dll
Syntax (csharp)
public class Ec2EnvironmentProps : Object, IEc2EnvironmentProps
Syntax (vb)
Public Class Ec2EnvironmentProps
Inherits Object
Implements IEc2EnvironmentProps
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.IAM;
Vpc vpc;
var user = new User(this, "user");
user.AddManagedPolicy(ManagedPolicy.FromAwsManagedPolicyName("AWSCloud9Administrator"));
new Ec2Environment(this, "C9Env", new Ec2EnvironmentProps {
Vpc = vpc,
ImageId = ImageId.AMAZON_LINUX_2,
Owner = Owner.User(user)
});
Synopsis
Constructors
Ec2EnvironmentProps() |
Properties
AutomaticStop | (experimental) The number of minutes until the running instance is shut down after the environment was last used. |
ClonedRepositories | (experimental) The AWS CodeCommit repository to be cloned. |
ConnectionType | (experimental) The connection type used for connecting to an Amazon EC2 environment. |
Description | (experimental) Description of the environment. |
Ec2EnvironmentName | (experimental) Name of the environment. |
ImageId | (experimental) The image ID used for creating an Amazon EC2 environment. |
InstanceType | (experimental) The type of instance to connect to the environment. |
Owner | (experimental) Owner of the environment. |
SubnetSelection | (experimental) The subnetSelection of the VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance. |
Vpc | (experimental) The VPC that AWS Cloud9 will use to communicate with the Amazon Elastic Compute Cloud (Amazon EC2) instance. |
Constructors
Ec2EnvironmentProps()
public Ec2EnvironmentProps()
Properties
AutomaticStop
(experimental) The number of minutes until the running instance is shut down after the environment was last used.
public Duration AutomaticStop { get; set; }
Property Value
Remarks
Setting a value of 0 means the instance will never be automatically shut down."
Default: - The instance will not be shut down automatically.
Stability: Experimental
ClonedRepositories
(experimental) The AWS CodeCommit repository to be cloned.
public CloneRepository[] ClonedRepositories { get; set; }
Property Value
Remarks
Default: - do not clone any repository
Stability: Experimental
ConnectionType
(experimental) The connection type used for connecting to an Amazon EC2 environment.
public Nullable<ConnectionType> ConnectionType { get; set; }
Property Value
System.Nullable<ConnectionType>
Remarks
Valid values are: CONNECT_SSH (default) and CONNECT_SSM (connected through AWS Systems Manager)
Default: - CONNECT_SSH
Stability: Experimental
Description
(experimental) Description of the environment.
public string Description { get; set; }
Property Value
System.String
Remarks
Default: - no description
Stability: Experimental
Ec2EnvironmentName
(experimental) Name of the environment.
public string Ec2EnvironmentName { get; set; }
Property Value
System.String
Remarks
Default: - automatically generated name
Stability: Experimental
ImageId
(experimental) The image ID used for creating an Amazon EC2 environment.
public ImageId ImageId { get; set; }
Property Value
Remarks
Stability: Experimental
InstanceType
(experimental) The type of instance to connect to the environment.
public InstanceType InstanceType { get; set; }
Property Value
Remarks
Default: - t2.micro
Stability: Experimental
Owner
(experimental) Owner of the environment.
public Owner Owner { get; set; }
Property Value
Remarks
The owner has full control of the environment and can invite additional members.
Default: - The identity that CloudFormation executes under will be the owner
Stability: Experimental
SubnetSelection
(experimental) The subnetSelection of the VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.
public ISubnetSelection SubnetSelection { get; set; }
Property Value
Remarks
Default: - all public subnets of the VPC are selected.
Stability: Experimental
Vpc
(experimental) The VPC that AWS Cloud9 will use to communicate with the Amazon Elastic Compute Cloud (Amazon EC2) instance.
public IVpc Vpc { get; set; }
Property Value
Remarks
Stability: Experimental