Class Ec2Environment
(experimental) A Cloud9 Environment with Amazon EC2.
Inherited Members
Namespace: Amazon.CDK.AWS.Cloud9
Assembly: Amazon.CDK.AWS.Cloud9.dll
Syntax (csharp)
public class Ec2Environment : Resource, IEc2Environment, IResource, IConstruct, IDependable
Syntax (vb)
Public Class Ec2Environment
Inherits Resource
Implements IEc2Environment, IResource, IConstruct, IDependable
Remarks
Stability: Experimental
Resource: AWS::Cloud9::EnvironmentEC2
ExampleMetadata: infused
Examples
// create a cloud9 ec2 environment in a new VPC
var vpc = new Vpc(this, "VPC", new VpcProps { MaxAzs = 3 });
new Ec2Environment(this, "Cloud9Env", new Ec2EnvironmentProps { Vpc = vpc });
// or create the cloud9 environment in the default VPC with specific instanceType
var defaultVpc = Vpc.FromLookup(this, "DefaultVPC", new VpcLookupOptions { IsDefault = true });
new Ec2Environment(this, "Cloud9Env2", new Ec2EnvironmentProps {
Vpc = defaultVpc,
InstanceType = new InstanceType("t3.large")
});
// or specify in a different subnetSelection
var c9env = new Ec2Environment(this, "Cloud9Env3", new Ec2EnvironmentProps {
Vpc = vpc,
SubnetSelection = new SubnetSelection {
SubnetType = SubnetType.PRIVATE_WITH_NAT
}
});
// print the Cloud9 IDE URL in the output
// print the Cloud9 IDE URL in the output
new CfnOutput(this, "URL", new CfnOutputProps { Value = c9env.IdeUrl });
Synopsis
Constructors
Ec2Environment(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Ec2Environment(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Ec2Environment(Construct, String, IEc2EnvironmentProps) |
Properties
Ec2EnvironmentArn | (experimental) The environment ARN of this Cloud9 environment. |
Ec2EnvironmentName | (experimental) The environment name of this Cloud9 environment. |
EnvironmentId | (experimental) The environment ID of this Cloud9 environment. |
IdeUrl | (experimental) The complete IDE URL of this Cloud9 environment. |
Vpc | (experimental) VPC ID. |
Methods
FromEc2EnvironmentName(Construct, String, String) | (experimental) import from EnvironmentEc2Name. |
Constructors
Ec2Environment(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Ec2Environment(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Ec2Environment(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Ec2Environment(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Ec2Environment(Construct, String, IEc2EnvironmentProps)
public Ec2Environment(Construct scope, string id, IEc2EnvironmentProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IEc2EnvironmentProps
Remarks
Stability: Experimental
Properties
Ec2EnvironmentArn
(experimental) The environment ARN of this Cloud9 environment.
public virtual string Ec2EnvironmentArn { get; }
Property Value
System.String
Remarks
Stability: Experimental
Attribute: true
Ec2EnvironmentName
(experimental) The environment name of this Cloud9 environment.
public virtual string Ec2EnvironmentName { get; }
Property Value
System.String
Remarks
Stability: Experimental
Attribute: true
EnvironmentId
(experimental) The environment ID of this Cloud9 environment.
public virtual string EnvironmentId { get; }
Property Value
System.String
Remarks
Stability: Experimental
IdeUrl
(experimental) The complete IDE URL of this Cloud9 environment.
public virtual string IdeUrl { get; }
Property Value
System.String
Remarks
Stability: Experimental
Vpc
(experimental) VPC ID.
public virtual IVpc Vpc { get; }
Property Value
Remarks
Stability: Experimental
Methods
FromEc2EnvironmentName(Construct, String, String)
(experimental) import from EnvironmentEc2Name.
public static IEc2Environment FromEc2EnvironmentName(Construct scope, string id, string ec2EnvironmentName)
Parameters
- scope Constructs.Construct
- id System.String
- ec2EnvironmentName System.String
Returns
Remarks
Stability: Experimental