@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-09T19:16:44.145Z") public class ComputeEnvironment extends Resource implements IComputeEnvironment
Defines a batch compute environment to run batch jobs on.
Example:
Vpc vpc; ComputeEnvironment myComputeEnv = ComputeEnvironment.Builder.create(this, "ComputeEnv") .computeResources(ComputeResources.builder() .image(EcsOptimizedAmi.Builder.create() .generation(AmazonLinuxGeneration.AMAZON_LINUX_2) .build()) .vpc(vpc) .build()) .build();
Modifier and Type | Class and Description |
---|---|
static class |
ComputeEnvironment.Builder
(experimental) A fluent builder for
ComputeEnvironment . |
IComputeEnvironment.Jsii$Default, IComputeEnvironment.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
ComputeEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ComputeEnvironment(software.amazon.jsii.JsiiObjectRef objRef) |
|
ComputeEnvironment(software.constructs.Construct scope,
java.lang.String id) |
|
ComputeEnvironment(software.constructs.Construct scope,
java.lang.String id,
ComputeEnvironmentProps props) |
Modifier and Type | Method and Description |
---|---|
static IComputeEnvironment |
fromComputeEnvironmentArn(software.constructs.Construct scope,
java.lang.String id,
java.lang.String computeEnvironmentArn)
(experimental) Fetches an existing batch compute environment by its amazon resource name.
|
java.lang.String |
getComputeEnvironmentArn()
(experimental) The ARN of this compute environment.
|
java.lang.String |
getComputeEnvironmentName()
(experimental) The name of this compute environment.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected ComputeEnvironment(software.amazon.jsii.JsiiObjectRef objRef)
protected ComputeEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public ComputeEnvironment(software.constructs.Construct scope, java.lang.String id, ComputeEnvironmentProps props)
scope
- This parameter is required.id
- This parameter is required.props
- public ComputeEnvironment(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.public static IComputeEnvironment fromComputeEnvironmentArn(software.constructs.Construct scope, java.lang.String id, java.lang.String computeEnvironmentArn)
scope
- This parameter is required.id
- This parameter is required.computeEnvironmentArn
- This parameter is required.public java.lang.String getComputeEnvironmentArn()
getComputeEnvironmentArn
in interface IComputeEnvironment
public java.lang.String getComputeEnvironmentName()
getComputeEnvironmentName
in interface IComputeEnvironment