Interface Ec2EnvironmentProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
Ec2EnvironmentProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:11.399Z")
@Stability(Experimental)
public interface Ec2EnvironmentProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties for Ec2Environment.
Example:
import software.amazon.awscdk.services.iam.*; Vpc vpc; User user = new User(this, "user"); user.addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName("AWSCloud9Administrator")); Ec2Environment.Builder.create(this, "C9Env") .vpc(vpc) .imageId(ImageId.AMAZON_LINUX_2) .owner(Owner.user(user)) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEc2EnvironmentProps
static final class
An implementation forEc2EnvironmentProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic Ec2EnvironmentProps.Builder
builder()
default Duration
(experimental) The number of minutes until the running instance is shut down after the environment was last used.default List<CloneRepository>
(experimental) The AWS CodeCommit repository to be cloned.default ConnectionType
(experimental) The connection type used for connecting to an Amazon EC2 environment.default String
(experimental) Description of the environment.default String
(experimental) Name of the environment.(experimental) The image ID used for creating an Amazon EC2 environment.default InstanceType
(experimental) The type of instance to connect to the environment.default Owner
getOwner()
(experimental) Owner of the environment.default SubnetSelection
(experimental) The subnetSelection of the VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.getVpc()
(experimental) The VPC that AWS Cloud9 will use to communicate with the Amazon Elastic Compute Cloud (Amazon EC2) instance.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getImageId
(experimental) The image ID used for creating an Amazon EC2 environment. -
getVpc
(experimental) The VPC that AWS Cloud9 will use to communicate with the Amazon Elastic Compute Cloud (Amazon EC2) instance. -
getAutomaticStop
(experimental) The number of minutes until the running instance is shut down after the environment was last used.Setting a value of 0 means the instance will never be automatically shut down."
Default: - The instance will not be shut down automatically.
-
getClonedRepositories
(experimental) The AWS CodeCommit repository to be cloned.Default: - do not clone any repository
-
getConnectionType
(experimental) 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)
Default: - CONNECT_SSH
-
getDescription
(experimental) Description of the environment.Default: - no description
-
getEc2EnvironmentName
(experimental) Name of the environment.Default: - automatically generated name
-
getInstanceType
(experimental) The type of instance to connect to the environment.Default: - t2.micro
-
getOwner
(experimental) Owner of the environment.The owner has full control of the environment and can invite additional members.
Default: - The identity that CloudFormation executes under will be the owner
-
getSubnetSelection
(experimental) The subnetSelection of the VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.Default: - all public subnets of the VPC are selected.
-
builder
- Returns:
- a
Ec2EnvironmentProps.Builder
ofEc2EnvironmentProps
-