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(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnEnvironmentEC2(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnEnvironmentEC2(Construct, String, ICfnEnvironmentEC2Props) |
Properties
AttrArn | The Amazon Resource Name (ARN) of the development environment, such as |
AttrId | |
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 | |
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>) |
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.ByRefValue
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.DeputyBase.DeputyProps
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 ICfnEnvironmentEC2Props
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.String
Remarks
CloudformationAttribute: Arn
AttrId
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
AttrName
The name of the environment.
public virtual string AttrName { get; }
Property Value
System.String
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.Nullable<System.Double>
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
ConnectionType
The connection type used for connecting to an Amazon EC2 environment.
public virtual string ConnectionType { get; set; }
Property Value
System.String
Description
The description of the environment to create.
public virtual string Description { get; set; }
Property Value
System.String
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.String
InstanceType
The type of instance to connect to the environment (for example, t2.micro
).
public virtual string InstanceType { get; set; }
Property Value
System.String
Name
The name of the environment.
public virtual string Name { get; set; }
Property Value
System.String
OwnerArn
The Amazon Resource Name (ARN) of the environment owner.
public virtual string OwnerArn { get; set; }
Property Value
System.String
Repositories
Any AWS CodeCommit source code repositories to be cloned into the development environment.
public virtual object Repositories { get; set; }
Property Value
System.Object
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.String
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
ICfnTag[]
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.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>