Class CfnEnvironmentEC2
The AWS::Cloud9::EnvironmentEC2
resource creates an Amazon EC2 development environment in AWS Cloud9 .
Inherited Members
Namespace: Amazon.CDK.AWS.Cloud9
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnEnvironmentEC2 : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnEnvironmentEC2 Inherits CfnResource Implements IInspectable, ITaggable
Remarks
For more information, see Creating an Environment in the AWS Cloud9 User Guide .
CloudformationResource: AWS::Cloud9::EnvironmentEC2
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 cfnEnvironmentEC2 = new CfnEnvironmentEC2(this, "MyCfnEnvironmentEC2", new CfnEnvironmentEC2Props {
ImageId = "imageId",
InstanceType = "instanceType",
// the properties below are optional
AutomaticStopTimeMinutes = 123,
ConnectionType = "connectionType",
Description = "description",
Name = "name",
OwnerArn = "ownerArn",
Repositories = new [] { new RepositoryProperty {
PathComponent = "pathComponent",
RepositoryUrl = "repositoryUrl"
} },
SubnetId = "subnetId",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnEnvironmentEC2(Construct, string, ICfnEnvironmentEC2Props) | The |
Properties
AttrArn | The Amazon Resource Name (ARN) of the development environment, such as |
AttrId | The |
AttrName | The name of the environment. |
AutomaticStopTimeMinutes | The number of minutes until the running instance is shut down after the environment was last used. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | The |
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 | Tag Manager which manages the tags for this resource. |
TagsRaw | An array of key-value pairs that will be associated with the new AWS Cloud9 development environment. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<string, object>) | The |
Constructors
CfnEnvironmentEC2(Construct, string, ICfnEnvironmentEC2Props)
The AWS::Cloud9::EnvironmentEC2
resource creates an Amazon EC2 development environment in AWS Cloud9 .
public CfnEnvironmentEC2(Construct scope, string id, ICfnEnvironmentEC2Props props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnEnvironmentEC2Props
Resource properties.
Remarks
For more information, see Creating an Environment in the AWS Cloud9 User Guide .
CloudformationResource: AWS::Cloud9::EnvironmentEC2
ExampleMetadata: fixture=_generated
Properties
AttrArn
The Amazon Resource Name (ARN) of the development environment, such as arn:aws:cloud9:us-east-2:123456789012:environment:2bc3642873c342e485f7e0c561234567
.
public virtual string AttrArn { get; }
Property Value
Remarks
CloudformationAttribute: Arn
AttrId
The AWS::Cloud9::EnvironmentEC2
resource creates an Amazon EC2 development environment in AWS Cloud9 .
public virtual string AttrId { get; }
Property Value
Remarks
CloudformationAttribute: Id
AttrName
The name of the environment.
public virtual string AttrName { get; }
Property Value
Remarks
CloudformationAttribute: Name
AutomaticStopTimeMinutes
The number of minutes until the running instance is shut down after the environment was last used.
public virtual double? AutomaticStopTimeMinutes { get; set; }
Property Value
Remarks
For more information, see Creating an Environment in the AWS Cloud9 User Guide .
CloudformationResource: AWS::Cloud9::EnvironmentEC2
ExampleMetadata: fixture=_generated
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
For more information, see Creating an Environment in the AWS Cloud9 User Guide .
CloudformationResource: AWS::Cloud9::EnvironmentEC2
ExampleMetadata: fixture=_generated
CfnProperties
The AWS::Cloud9::EnvironmentEC2
resource creates an Amazon EC2 development environment in AWS Cloud9 .
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
For more information, see Creating an Environment in the AWS Cloud9 User Guide .
CloudformationResource: AWS::Cloud9::EnvironmentEC2
ExampleMetadata: fixture=_generated
ConnectionType
The connection type used for connecting to an Amazon EC2 environment.
public virtual string? ConnectionType { get; set; }
Property Value
Remarks
For more information, see Creating an Environment in the AWS Cloud9 User Guide .
CloudformationResource: AWS::Cloud9::EnvironmentEC2
ExampleMetadata: fixture=_generated
Description
The description of the environment to create.
public virtual string? Description { get; set; }
Property Value
Remarks
For more information, see Creating an Environment in the AWS Cloud9 User Guide .
CloudformationResource: AWS::Cloud9::EnvironmentEC2
ExampleMetadata: fixture=_generated
ImageId
The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance.
public virtual string ImageId { get; set; }
Property Value
Remarks
For more information, see Creating an Environment in the AWS Cloud9 User Guide .
CloudformationResource: AWS::Cloud9::EnvironmentEC2
ExampleMetadata: fixture=_generated
InstanceType
The type of instance to connect to the environment (for example, t2.micro
).
public virtual string InstanceType { get; set; }
Property Value
Remarks
For more information, see Creating an Environment in the AWS Cloud9 User Guide .
CloudformationResource: AWS::Cloud9::EnvironmentEC2
ExampleMetadata: fixture=_generated
Name
The name of the environment.
public virtual string? Name { get; set; }
Property Value
Remarks
For more information, see Creating an Environment in the AWS Cloud9 User Guide .
CloudformationResource: AWS::Cloud9::EnvironmentEC2
ExampleMetadata: fixture=_generated
OwnerArn
The Amazon Resource Name (ARN) of the environment owner.
public virtual string? OwnerArn { get; set; }
Property Value
Remarks
For more information, see Creating an Environment in the AWS Cloud9 User Guide .
CloudformationResource: AWS::Cloud9::EnvironmentEC2
ExampleMetadata: fixture=_generated
Repositories
Any AWS CodeCommit source code repositories to be cloned into the development environment.
public virtual object? Repositories { get; set; }
Property Value
Remarks
For more information, see Creating an Environment in the AWS Cloud9 User Guide .
CloudformationResource: AWS::Cloud9::EnvironmentEC2
ExampleMetadata: fixture=_generated
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.
public virtual string? SubnetId { get; set; }
Property Value
Remarks
For more information, see Creating an Environment in the AWS Cloud9 User Guide .
CloudformationResource: AWS::Cloud9::EnvironmentEC2
ExampleMetadata: fixture=_generated
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
Remarks
For more information, see Creating an Environment in the AWS Cloud9 User Guide .
CloudformationResource: AWS::Cloud9::EnvironmentEC2
ExampleMetadata: fixture=_generated
TagsRaw
An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
public virtual ICfnTag[]? TagsRaw { get; set; }
Property Value
ICfnTag[]
Remarks
For more information, see Creating an Environment in the AWS Cloud9 User Guide .
CloudformationResource: AWS::Cloud9::EnvironmentEC2
ExampleMetadata: fixture=_generated
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
For more information, see Creating an Environment in the AWS Cloud9 User Guide .
CloudformationResource: AWS::Cloud9::EnvironmentEC2
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
The AWS::Cloud9::EnvironmentEC2
resource creates an Amazon EC2 development environment in AWS Cloud9 .
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
For more information, see Creating an Environment in the AWS Cloud9 User Guide .
CloudformationResource: AWS::Cloud9::EnvironmentEC2
ExampleMetadata: fixture=_generated