Interface Ec2EnvironmentProps

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.078Z") @Stability(Experimental) public interface Ec2EnvironmentProps extends
(experimental) Properties for Ec2Environment.


 // create a cloud9 ec2 environment in a new VPC
 Vpc vpc = Vpc.Builder.create(this, "VPC").maxAzs(3).build();
 Ec2Environment.Builder.create(this, "Cloud9Env").vpc(vpc).build();
 // or create the cloud9 environment in the default VPC with specific instanceType
 IVpc defaultVpc = Vpc.fromLookup(this, "DefaultVPC", VpcLookupOptions.builder().isDefault(true).build());
 Ec2Environment.Builder.create(this, "Cloud9Env2")
         .instanceType(new InstanceType("t3.large"))
 // or specify in a different subnetSelection
 Ec2Environment c9env = Ec2Environment.Builder.create(this, "Cloud9Env3")
 // print the Cloud9 IDE URL in the output
 // print the Cloud9 IDE URL in the output
 CfnOutput.Builder.create(this, "URL").value(c9env.getIdeUrl()).build();
  • Method Details

    • getVpc

      @Stability(Experimental) @NotNull IVpc getVpc()
      (experimental) The VPC that AWS Cloud9 will use to communicate with the Amazon Elastic Compute Cloud (Amazon EC2) instance.
    • getClonedRepositories

      @Stability(Experimental) @Nullable default List<CloneRepository> getClonedRepositories()
      (experimental) The AWS CodeCommit repository to be cloned.

      Default: - do not clone any repository

    • getConnectionType

      @Stability(Experimental) @Nullable default ConnectionType 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

      @Stability(Experimental) @Nullable default String getDescription()
      (experimental) Description of the environment.

      Default: - no description

    • getEc2EnvironmentName

      @Stability(Experimental) @Nullable default String getEc2EnvironmentName()
      (experimental) Name of the environment.

      Default: - automatically generated name

    • getInstanceType

      @Stability(Experimental) @Nullable default InstanceType getInstanceType()
      (experimental) The type of instance to connect to the environment.

      Default: - t2.micro

    • getSubnetSelection

      @Stability(Experimental) @Nullable default SubnetSelection 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

      @Stability(Experimental) static Ec2EnvironmentProps.Builder builder()
      a Ec2EnvironmentProps.Builder of Ec2EnvironmentProps