@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-10-27T14:10:46.364Z") @Stability(value=Experimental) public class Ec2Environment extends Resource implements IEc2Environment
Example:
// create a cloud9 ec2 environment in a new VPC
Vpc vpc = Vpc.Builder.create(this, "VPC").maxAzs(3).build();
Ec2Environment.Builder.create(this, "Cloud9Env").vpc(vpc).build();
// or create the cloud9 environment in the default VPC with specific instanceType
IVpc defaultVpc = Vpc.fromLookup(this, "DefaultVPC", VpcLookupOptions.builder().isDefault(true).build());
Ec2Environment.Builder.create(this, "Cloud9Env2")
.vpc(defaultVpc)
.instanceType(new InstanceType("t3.large"))
.build();
// or specify in a different subnetSelection
Ec2Environment c9env = Ec2Environment.Builder.create(this, "Cloud9Env3")
.vpc(vpc)
.subnetSelection(SubnetSelection.builder()
.subnetType(SubnetType.PRIVATE_WITH_NAT)
.build())
.build();
// print the Cloud9 IDE URL in the output
// print the Cloud9 IDE URL in the output
CfnOutput.Builder.create(this, "URL").value(c9env.getIdeUrl()).build();
| Modifier and Type | Class and Description |
|---|---|
static class |
Ec2Environment.Builder
(experimental) A fluent builder for
Ec2Environment. |
software.amazon.jsii.JsiiObject.InitializationModeIEc2Environment.Jsii$Default, IEc2Environment.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Ec2Environment(software.constructs.Construct scope,
String id,
Ec2EnvironmentProps props) |
protected |
Ec2Environment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Ec2Environment(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IEc2Environment |
fromEc2EnvironmentName(software.constructs.Construct scope,
String id,
String ec2EnvironmentName)
(experimental) import from EnvironmentEc2Name.
|
String |
getEc2EnvironmentArn()
(experimental) The environment ARN of this Cloud9 environment.
|
String |
getEc2EnvironmentName()
(experimental) The environment name of this Cloud9 environment.
|
String |
getEnvironmentId()
(experimental) The environment ID of this Cloud9 environment.
|
String |
getIdeUrl()
(experimental) The complete IDE URL of this Cloud9 environment.
|
IVpc |
getVpc()
(experimental) VPC ID.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected Ec2Environment(software.amazon.jsii.JsiiObjectRef objRef)
protected Ec2Environment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Ec2Environment(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
Ec2EnvironmentProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static IEc2Environment fromEc2EnvironmentName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String ec2EnvironmentName)
scope - This parameter is required.id - This parameter is required.ec2EnvironmentName - This parameter is required.@Stability(value=Experimental) @NotNull public String getEc2EnvironmentArn()
getEc2EnvironmentArn in interface IEc2Environment@Stability(value=Experimental) @NotNull public String getEc2EnvironmentName()
getEc2EnvironmentName in interface IEc2Environment@Stability(value=Experimental) @NotNull public String getEnvironmentId()
@Stability(value=Experimental) @NotNull public String getIdeUrl()
@Stability(value=Experimental) @NotNull public IVpc getVpc()
Copyright © 2022. All rights reserved.