Class Ec2Environment

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.cloud9.alpha.Ec2Environment
All Implemented Interfaces:
IResource, IEc2Environment, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:11.398Z") @Stability(Experimental) public class Ec2Environment extends Resource implements IEc2Environment
(experimental) A Cloud9 Environment with Amazon EC2.

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();
 
  • Constructor Details

    • Ec2Environment

      protected Ec2Environment(software.amazon.jsii.JsiiObjectRef objRef)
    • Ec2Environment

      protected Ec2Environment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Ec2Environment

      @Stability(Experimental) public Ec2Environment(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull Ec2EnvironmentProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • fromEc2EnvironmentName

      @Stability(Experimental) @NotNull public static IEc2Environment fromEc2EnvironmentName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String ec2EnvironmentName)
      (experimental) import from EnvironmentEc2Name.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      ec2EnvironmentName - This parameter is required.
    • getEc2EnvironmentArn

      @Stability(Experimental) @NotNull public String getEc2EnvironmentArn()
      (experimental) The environment ARN of this Cloud9 environment.
      Specified by:
      getEc2EnvironmentArn in interface IEc2Environment
    • getEc2EnvironmentName

      @Stability(Experimental) @NotNull public String getEc2EnvironmentName()
      (experimental) The environment name of this Cloud9 environment.
      Specified by:
      getEc2EnvironmentName in interface IEc2Environment
    • getEnvironmentId

      @Stability(Experimental) @NotNull public String getEnvironmentId()
      (experimental) The environment ID of this Cloud9 environment.
    • getIdeUrl

      @Stability(Experimental) @NotNull public String getIdeUrl()
      (experimental) The complete IDE URL of this Cloud9 environment.
    • getVpc

      @Stability(Experimental) @NotNull public IVpc getVpc()
      (experimental) VPC ID.