Interface ICfnEnvironmentEC2Props
Properties for defining a CfnEnvironmentEC2
.
Namespace: Amazon.CDK.AWS.Cloud9
Assembly: Amazon.CDK.AWS.Cloud9.dll
Syntax (csharp)
public interface ICfnEnvironmentEC2Props
Syntax (vb)
Public Interface ICfnEnvironmentEC2Props
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cloud9;
var cfnEnvironmentEC2Props = new CfnEnvironmentEC2Props {
InstanceType = "instanceType",
// the properties below are optional
AutomaticStopTimeMinutes = 123,
ConnectionType = "connectionType",
Description = "description",
ImageId = "imageId",
Name = "name",
OwnerArn = "ownerArn",
Repositories = new [] { new RepositoryProperty {
PathComponent = "pathComponent",
RepositoryUrl = "repositoryUrl"
} },
SubnetId = "subnetId",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Properties
AutomaticStopTimeMinutes | The number of minutes until the running instance is shut down after the environment was last used. |
ConnectionType | The connection type used for connecting to an Amazon EC2 environment. |
Description | The description of the environment to create. |
ImageId | The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. |
InstanceType | The type of instance to connect to the environment (for example, |
Name | The name of the environment. |
OwnerArn | The Amazon Resource Name (ARN) of the environment owner. |
Repositories | Any AWS CodeCommit source code repositories to be cloned into the development environment. |
SubnetId | The ID of the subnet in Amazon Virtual Private Cloud (Amazon VPC) that AWS Cloud9 will use to communicate with the Amazon Elastic Compute Cloud (Amazon EC2) instance. |
Tags | An array of key-value pairs that will be associated with the new AWS Cloud9 development environment. |
Properties
AutomaticStopTimeMinutes
The number of minutes until the running instance is shut down after the environment was last used.
virtual Nullable<double> AutomaticStopTimeMinutes { get; }
Property Value
System.Nullable<System.Double>
Remarks
ConnectionType
The connection type used for connecting to an Amazon EC2 environment.
virtual string ConnectionType { get; }
Property Value
System.String
Remarks
Valid values are CONNECT_SSH
(default) and CONNECT_SSM
(connected through AWS Systems Manager ).
Description
The description of the environment to create.
virtual string Description { get; }
Property Value
System.String
Remarks
ImageId
The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance.
virtual string ImageId { get; }
Property Value
System.String
Remarks
To choose an AMI for the instance, you must specify a valid AMI alias or a valid AWS Systems Manager path.
The default AMI is used if the parameter isn't explicitly assigned a value in the request.
AMI aliases
SSM paths
InstanceType
The type of instance to connect to the environment (for example, t2.micro
).
string InstanceType { get; }
Property Value
System.String
Remarks
Name
The name of the environment.
virtual string Name { get; }
Property Value
System.String
Remarks
OwnerArn
The Amazon Resource Name (ARN) of the environment owner.
virtual string OwnerArn { get; }
Property Value
System.String
Remarks
This ARN can be the ARN of any AWS Identity and Access Management principal. If this value is not specified, the ARN defaults to this environment's creator.
Repositories
Any AWS CodeCommit source code repositories to be cloned into the development environment.
virtual object Repositories { get; }
Property Value
System.Object
Remarks
SubnetId
The ID of the subnet in Amazon Virtual Private Cloud (Amazon VPC) that AWS Cloud9 will use to communicate with the Amazon Elastic Compute Cloud (Amazon EC2) instance.
virtual string SubnetId { get; }
Property Value
System.String
Remarks
Tags
An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
virtual ICfnTag[] Tags { get; }
Property Value
ICfnTag[]