@Stability(value=Stable) public static final class CfnEnvironmentEC2.Builder extends Object implements software.amazon.jsii.Builder<CfnEnvironmentEC2>
CfnEnvironmentEC2.| Modifier and Type | Method and Description |
|---|---|
CfnEnvironmentEC2.Builder |
automaticStopTimeMinutes(Number automaticStopTimeMinutes)
The number of minutes until the running instance is shut down after the environment was last used.
|
CfnEnvironmentEC2 |
build() |
CfnEnvironmentEC2.Builder |
connectionType(String connectionType)
The connection type used for connecting to an Amazon EC2 environment.
|
static CfnEnvironmentEC2.Builder |
create(Construct scope,
String id) |
CfnEnvironmentEC2.Builder |
description(String description)
The description of the environment to create.
|
CfnEnvironmentEC2.Builder |
imageId(String imageId)
The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance.
|
CfnEnvironmentEC2.Builder |
instanceType(String instanceType)
The type of instance to connect to the environment (for example, `t2.micro` ).
|
CfnEnvironmentEC2.Builder |
name(String name)
The name of the environment.
|
CfnEnvironmentEC2.Builder |
ownerArn(String ownerArn)
The Amazon Resource Name (ARN) of the environment owner.
|
CfnEnvironmentEC2.Builder |
repositories(IResolvable repositories)
Any AWS CodeCommit source code repositories to be cloned into the development environment.
|
CfnEnvironmentEC2.Builder |
repositories(List<? extends Object> repositories)
Any AWS CodeCommit source code repositories to be cloned into the development environment.
|
CfnEnvironmentEC2.Builder |
subnetId(String subnetId)
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.
|
CfnEnvironmentEC2.Builder |
tags(List<? extends CfnTag> tags)
An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
|
@Stability(value=Stable) public static CfnEnvironmentEC2.Builder create(Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnEnvironmentEC2.RepositoryProperty.Builder.@Stability(value=Stable) public CfnEnvironmentEC2.Builder instanceType(String instanceType)
instanceType - The type of instance to connect to the environment (for example, `t2.micro` ). This parameter is required.this@Stability(value=Stable) public CfnEnvironmentEC2.Builder automaticStopTimeMinutes(Number automaticStopTimeMinutes)
automaticStopTimeMinutes - The number of minutes until the running instance is shut down after the environment was last used. This parameter is required.this@Stability(value=Stable) public CfnEnvironmentEC2.Builder connectionType(String connectionType)
Valid values are CONNECT_SSH (default) and CONNECT_SSM (connected through AWS Systems Manager ).
connectionType - The connection type used for connecting to an Amazon EC2 environment. This parameter is required.this@Stability(value=Stable) public CfnEnvironmentEC2.Builder description(String description)
description - The description of the environment to create. This parameter is required.this@Stability(value=Stable) public CfnEnvironmentEC2.Builder imageId(String imageId)
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_64imageId - The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. This parameter is required.this@Stability(value=Stable) public CfnEnvironmentEC2.Builder name(String name)
name - The name of the environment. This parameter is required.this@Stability(value=Stable) public CfnEnvironmentEC2.Builder ownerArn(String ownerArn)
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.
ownerArn - The Amazon Resource Name (ARN) of the environment owner. This parameter is required.this@Stability(value=Stable) public CfnEnvironmentEC2.Builder repositories(IResolvable repositories)
repositories - Any AWS CodeCommit source code repositories to be cloned into the development environment. This parameter is required.this@Stability(value=Stable) public CfnEnvironmentEC2.Builder repositories(List<? extends Object> repositories)
repositories - Any AWS CodeCommit source code repositories to be cloned into the development environment. This parameter is required.this@Stability(value=Stable) public CfnEnvironmentEC2.Builder subnetId(String subnetId)
subnetId - 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. This parameter is required.this@Stability(value=Stable) public CfnEnvironmentEC2.Builder tags(List<? extends CfnTag> tags)
tags - An array of key-value pairs that will be associated with the new AWS Cloud9 development environment. This parameter is required.this@Stability(value=Stable) public CfnEnvironmentEC2 build()
build in interface software.amazon.jsii.Builder<CfnEnvironmentEC2>Copyright © 2022. All rights reserved.