public static final class Ec2Environment.Builder
extends java.lang.Object
Ec2Environment
.Modifier and Type | Method and Description |
---|---|
Ec2Environment |
build() |
Ec2Environment.Builder |
clonedRepositories(java.util.List<? extends CloneRepository> clonedRepositories)
(experimental) The AWS CodeCommit repository to be cloned.
|
Ec2Environment.Builder |
connectionType(ConnectionType connectionType)
(experimental) The connection type used for connecting to an Amazon EC2 environment.
|
static Ec2Environment.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
Ec2Environment.Builder |
description(java.lang.String description)
(experimental) Description of the environment.
|
Ec2Environment.Builder |
ec2EnvironmentName(java.lang.String ec2EnvironmentName)
(experimental) Name of the environment.
|
Ec2Environment.Builder |
instanceType(InstanceType instanceType)
(experimental) The type of instance to connect to the environment.
|
Ec2Environment.Builder |
subnetSelection(SubnetSelection subnetSelection)
(experimental) The subnetSelection of the VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.
|
Ec2Environment.Builder |
vpc(IVpc vpc)
(experimental) The VPC that AWS Cloud9 will use to communicate with the Amazon Elastic Compute Cloud (Amazon EC2) instance.
|
public static Ec2Environment.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.Ec2Environment.Builder
.public Ec2Environment.Builder vpc(IVpc vpc)
vpc
- The VPC that AWS Cloud9 will use to communicate with the Amazon Elastic Compute Cloud (Amazon EC2) instance. This parameter is required.this
public Ec2Environment.Builder clonedRepositories(java.util.List<? extends CloneRepository> clonedRepositories)
Default: - do not clone any repository
clonedRepositories
- The AWS CodeCommit repository to be cloned. This parameter is required.this
public Ec2Environment.Builder connectionType(ConnectionType connectionType)
Valid values are: CONNECT_SSH (default) and CONNECT_SSM (connected through AWS Systems Manager)
Default: - CONNECT_SSH
connectionType
- The connection type used for connecting to an Amazon EC2 environment. This parameter is required.this
public Ec2Environment.Builder description(java.lang.String description)
Default: - no description
description
- Description of the environment. This parameter is required.this
public Ec2Environment.Builder ec2EnvironmentName(java.lang.String ec2EnvironmentName)
Default: - automatically generated name
ec2EnvironmentName
- Name of the environment. This parameter is required.this
public Ec2Environment.Builder instanceType(InstanceType instanceType)
Default: - t2.micro
instanceType
- The type of instance to connect to the environment. This parameter is required.this
public Ec2Environment.Builder subnetSelection(SubnetSelection subnetSelection)
Default: - all public subnets of the VPC are selected.
subnetSelection
- The subnetSelection of the VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance. This parameter is required.this
public Ec2Environment build()