@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-15T10:03:45.372Z") @Stability(value=Experimental) public interface Ec2EnvironmentProps extends software.amazon.jsii.JsiiSerializable
Example:
// Example automatically generated from non-compiling source. May contain errors.
import software.amazon.awscdk.services.cloud9.*;
// create a cloud9 ec2 environment in a new VPC
Object 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
Object defaultVpc = ec2.Vpc.fromLookup(this, "DefaultVPC", Map.of("isDefault", true));
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(ec2.getSubnetType().getPRIVATE())
.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 | Interface and Description |
|---|---|
static class |
Ec2EnvironmentProps.Builder
A builder for
Ec2EnvironmentProps |
static class |
Ec2EnvironmentProps.Jsii$Proxy
An implementation for
Ec2EnvironmentProps |
| Modifier and Type | Method and Description |
|---|---|
static Ec2EnvironmentProps.Builder |
builder() |
default List<CloneRepository> |
getClonedRepositories()
(experimental) The AWS CodeCommit repository to be cloned.
|
default String |
getDescription()
(experimental) Description of the environment.
|
default String |
getEc2EnvironmentName()
(experimental) Name of the environment.
|
default InstanceType |
getInstanceType()
(experimental) The type of instance to connect to the environment.
|
default SubnetSelection |
getSubnetSelection()
(experimental) The subnetSelection of the VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.
|
IVpc |
getVpc()
(experimental) The VPC that AWS Cloud9 will use to communicate with the Amazon Elastic Compute Cloud (Amazon EC2) instance.
|
@Stability(value=Experimental) @NotNull IVpc getVpc()
@Stability(value=Experimental) @Nullable default List<CloneRepository> getClonedRepositories()
Default: - do not clone any repository
@Stability(value=Experimental) @Nullable default String getDescription()
Default: - no description
@Stability(value=Experimental) @Nullable default String getEc2EnvironmentName()
Default: - automatically generated name
@Stability(value=Experimental) @Nullable default InstanceType getInstanceType()
Default: - t2.micro
@Stability(value=Experimental) @Nullable default SubnetSelection getSubnetSelection()
Default: - all public subnets of the VPC are selected.
@Stability(value=Experimental) static Ec2EnvironmentProps.Builder builder()
Ec2EnvironmentProps.Builder of Ec2EnvironmentPropsCopyright © 2021. All rights reserved.