@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:03.582Z") @Stability(value=Experimental) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIComputeEnvironment.Jsii$Default, IComputeEnvironment.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
ComputeEnvironment(software.constructs.Construct scope,
String id) |
|
ComputeEnvironment(software.constructs.Construct scope,
String id,
ComputeEnvironmentProps props) |
protected |
ComputeEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ComputeEnvironment(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IComputeEnvironment |
fromComputeEnvironmentArn(software.constructs.Construct scope,
String id,
String computeEnvironmentArn)
(experimental) Fetches an existing batch compute environment by its amazon resource name.
|
String |
getComputeEnvironmentArn()
(experimental) The ARN of this compute environment.
|
String |
getComputeEnvironmentName()
(experimental) The name of this compute environment.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected ComputeEnvironment(software.amazon.jsii.JsiiObjectRef objRef)
protected ComputeEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public ComputeEnvironment(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
ComputeEnvironmentProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public ComputeEnvironment(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public static IComputeEnvironment fromComputeEnvironmentArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String computeEnvironmentArn)
scope - This parameter is required.id - This parameter is required.computeEnvironmentArn - This parameter is required.@Stability(value=Experimental) @NotNull public String getComputeEnvironmentArn()
getComputeEnvironmentArn in interface IComputeEnvironment@Stability(value=Experimental) @NotNull public String getComputeEnvironmentName()
getComputeEnvironmentName in interface IComputeEnvironmentCopyright © 2022. All rights reserved.