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
Cfn |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Cfn |
Used by jsii to construct an instance of this class from DeputyProps |
Cfn |
Properties
Attr |
The Amazon Resource Name (ARN) of the development environment, such as |
Attr |
|
Attr |
The name of the environment. |
Automatic |
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. |
Cfn |
|
Connection |
The connection type used for connecting to an Amazon EC2 environment. |
Description | The description of the environment to create. |
Image |
The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. |
Instance |
The type of instance to connect to the environment (for example, |
Name | The name of the environment. |
Owner |
The Amazon Resource Name (ARN) of the environment owner. |
Repositories | Any AWS CodeCommit source code repositories to be cloned into the development environment. |
Subnet |
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. |
Tags |
An array of key-value pairs that will be associated with the new AWS Cloud9 development environment. |
Methods
Inspect(Tree |
Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnEnvironmentEC2(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnEnvironmentEC2(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
CfnEnvironmentEC2(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnEnvironmentEC2(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
CfnEnvironmentEC2(Construct, String, ICfnEnvironmentEC2Props)
public CfnEnvironmentEC2(Construct scope, string id, ICfnEnvironmentEC2Props props)
Parameters
- scope Constructs.
Construct Scope in which this resource is defined.
- id System.
String Construct identifier for this resource (unique in its scope).
- props ICfn
Environment EC2Props Resource properties.
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
System.
Remarks
CloudformationAttribute: Arn
AttrId
public virtual string AttrId { get; }
Property Value
System.
Remarks
CloudformationAttribute: Id
AttrName
The name of the environment.
public virtual string AttrName { get; }
Property Value
System.
Remarks
CloudformationAttribute: Name
AutomaticStopTimeMinutes
The number of minutes until the running instance is shut down after the environment was last used.
public virtual Nullable<double> AutomaticStopTimeMinutes { get; set; }
Property Value
System.
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.
Overrides
ConnectionType
The connection type used for connecting to an Amazon EC2 environment.
public virtual string ConnectionType { get; set; }
Property Value
System.
Description
The description of the environment to create.
public virtual string Description { get; set; }
Property Value
System.
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
System.
InstanceType
The type of instance to connect to the environment (for example, t2.micro
).
public virtual string InstanceType { get; set; }
Property Value
System.
Name
The name of the environment.
public virtual string Name { get; set; }
Property Value
System.
OwnerArn
The Amazon Resource Name (ARN) of the environment owner.
public virtual string OwnerArn { get; set; }
Property Value
System.
Repositories
Any AWS CodeCommit source code repositories to be cloned into the development environment.
public virtual object Repositories { get; set; }
Property Value
System.
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
System.
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
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
ICfn
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector Tree
Inspector tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.
Collections. <System.Generic. IDictionary String , System.Object >
Returns
System.