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();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
(experimental) A fluent builder forEc2Environment
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.cloud9.alpha.IEc2Environment
IEc2Environment.Jsii$Default, IEc2Environment.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
Ec2Environment
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
Ec2Environment
(software.amazon.jsii.JsiiObjectRef objRef) Ec2Environment
(software.constructs.Construct scope, String id, Ec2EnvironmentProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IEc2Environment
fromEc2EnvironmentName
(software.constructs.Construct scope, String id, String ec2EnvironmentName) (experimental) import from EnvironmentEc2Name.(experimental) The environment ARN of this Cloud9 environment.(experimental) The environment name of this Cloud9 environment.(experimental) The environment ID of this Cloud9 environment.(experimental) The complete IDE URL of this Cloud9 environment.getVpc()
(experimental) VPC ID.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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
(experimental) The environment ARN of this Cloud9 environment.- Specified by:
getEc2EnvironmentArn
in interfaceIEc2Environment
-
getEc2EnvironmentName
(experimental) The environment name of this Cloud9 environment.- Specified by:
getEc2EnvironmentName
in interfaceIEc2Environment
-
getEnvironmentId
(experimental) The environment ID of this Cloud9 environment. -
getIdeUrl
(experimental) The complete IDE URL of this Cloud9 environment. -
getVpc
(experimental) VPC ID.
-