public static final class CfnEnvironmentEC2Props.Builder
extends java.lang.Object
CfnEnvironmentEC2Props
Constructor and Description |
---|
Builder() |
public CfnEnvironmentEC2Props.Builder instanceType(java.lang.String instanceType)
CfnEnvironmentEC2Props.getInstanceType()
instanceType
- The type of instance to connect to the environment (for example, `t2.micro` ). This parameter is required.this
public CfnEnvironmentEC2Props.Builder automaticStopTimeMinutes(java.lang.Number automaticStopTimeMinutes)
CfnEnvironmentEC2Props.getAutomaticStopTimeMinutes()
automaticStopTimeMinutes
- The number of minutes until the running instance is shut down after the environment was last used.this
public CfnEnvironmentEC2Props.Builder connectionType(java.lang.String connectionType)
CfnEnvironmentEC2Props.getConnectionType()
connectionType
- The connection type used for connecting to an Amazon EC2 environment.
Valid values are CONNECT_SSH
(default) and CONNECT_SSM
(connected through AWS Systems Manager ).this
public CfnEnvironmentEC2Props.Builder description(java.lang.String description)
CfnEnvironmentEC2Props.getDescription()
description
- The description of the environment to create.this
public CfnEnvironmentEC2Props.Builder imageId(java.lang.String imageId)
CfnEnvironmentEC2Props.getImageId()
imageId
- The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance.
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_64
amazonlinux-2-x86_64
ubuntu-18.04-x86_64
SSM paths
resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64
resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64
resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64
this
public CfnEnvironmentEC2Props.Builder name(java.lang.String name)
CfnEnvironmentEC2Props.getName()
name
- The name of the environment.this
public CfnEnvironmentEC2Props.Builder ownerArn(java.lang.String ownerArn)
CfnEnvironmentEC2Props.getOwnerArn()
ownerArn
- The Amazon Resource Name (ARN) of the environment owner.
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.this
public CfnEnvironmentEC2Props.Builder repositories(IResolvable repositories)
CfnEnvironmentEC2Props.getRepositories()
repositories
- Any AWS CodeCommit source code repositories to be cloned into the development environment.this
public CfnEnvironmentEC2Props.Builder repositories(java.util.List<? extends java.lang.Object> repositories)
CfnEnvironmentEC2Props.getRepositories()
repositories
- Any AWS CodeCommit source code repositories to be cloned into the development environment.this
public CfnEnvironmentEC2Props.Builder subnetId(java.lang.String subnetId)
CfnEnvironmentEC2Props.getSubnetId()
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
public CfnEnvironmentEC2Props.Builder tags(java.util.List<? extends CfnTag> tags)
CfnEnvironmentEC2Props.getTags()
tags
- An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.this
public CfnEnvironmentEC2Props build()
CfnEnvironmentEC2Props
java.lang.NullPointerException
- if any required attribute was not provided