@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-07-01T09:58:36.722Z") @Stability(value=Stable) public interface CfnEnvironmentEC2Props extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloud9.*;
CfnEnvironmentEC2Props cfnEnvironmentEC2Props = CfnEnvironmentEC2Props.builder()
.instanceType("instanceType")
// the properties below are optional
.automaticStopTimeMinutes(123)
.connectionType("connectionType")
.description("description")
.imageId("imageId")
.name("name")
.ownerArn("ownerArn")
.repositories(List.of(RepositoryProperty.builder()
.pathComponent("pathComponent")
.repositoryUrl("repositoryUrl")
.build()))
.subnetId("subnetId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnEnvironmentEC2Props.Builder
A builder for
CfnEnvironmentEC2Props |
static class |
CfnEnvironmentEC2Props.Jsii$Proxy
An implementation for
CfnEnvironmentEC2Props |
| Modifier and Type | Method and Description |
|---|---|
static CfnEnvironmentEC2Props.Builder |
builder() |
default Number |
getAutomaticStopTimeMinutes()
The number of minutes until the running instance is shut down after the environment was last used.
|
default String |
getConnectionType()
The connection type used for connecting to an Amazon EC2 environment.
|
default String |
getDescription()
The description of the environment to create.
|
default String |
getImageId()
The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance.
|
String |
getInstanceType()
The type of instance to connect to the environment (for example, `t2.micro` ).
|
default String |
getName()
The name of the environment.
|
default String |
getOwnerArn()
The Amazon Resource Name (ARN) of the environment owner.
|
default Object |
getRepositories()
Any AWS CodeCommit source code repositories to be cloned into the development environment.
|
default String |
getSubnetId()
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.
|
default List<CfnTag> |
getTags()
An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
|
@Stability(value=Stable) @NotNull String getInstanceType()
@Stability(value=Stable) @Nullable default Number getAutomaticStopTimeMinutes()
@Stability(value=Stable) @Nullable default String getConnectionType()
Valid values are CONNECT_SSH (default) and CONNECT_SSM (connected through AWS Systems Manager ).
@Stability(value=Stable) @Nullable default String getDescription()
@Stability(value=Stable) @Nullable default String getImageId()
To choose an AMI for the instance, you must specify a valid AMI alias or a valid AWS Systems Manager path.
The default AMI is used if the parameter isn't explicitly assigned a value in the request.
AMI aliases
amazonlinux-1-x86_64amazonlinux-2-x86_64ubuntu-18.04-x86_64SSM paths
resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64@Stability(value=Stable) @Nullable default String getName()
@Stability(value=Stable) @Nullable default String getOwnerArn()
This ARN can be the ARN of any AWS Identity and Access Management principal. If this value is not specified, the ARN defaults to this environment's creator.
@Stability(value=Stable) @Nullable default Object getRepositories()
@Stability(value=Stable) @Nullable default String getSubnetId()
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) static CfnEnvironmentEC2Props.Builder builder()
CfnEnvironmentEC2Props.Builder of CfnEnvironmentEC2PropsCopyright © 2022. All rights reserved.