@Stability(value=Experimental) public static final class ComputeEnvironment.Builder extends Object implements software.amazon.jsii.Builder<ComputeEnvironment>
ComputeEnvironment.| Modifier and Type | Method and Description |
|---|---|
ComputeEnvironment |
build() |
ComputeEnvironment.Builder |
computeEnvironmentName(String computeEnvironmentName)
(experimental) A name for the compute environment.
|
ComputeEnvironment.Builder |
computeResources(ComputeResources computeResources)
(experimental) The details of the required compute resources for the managed compute environment.
|
static ComputeEnvironment.Builder |
create(software.constructs.Construct scope,
String id) |
ComputeEnvironment.Builder |
enabled(Boolean enabled)
(experimental) The state of the compute environment.
|
ComputeEnvironment.Builder |
managed(Boolean managed)
(experimental) Determines if AWS should manage the allocation of compute resources for processing jobs.
|
ComputeEnvironment.Builder |
serviceRole(IRole serviceRole)
(experimental) The IAM role used by Batch to make calls to other AWS services on your behalf for managing the resources that you use with the service.
|
@Stability(value=Experimental) public static ComputeEnvironment.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.ComputeEnvironment.Builder.@Stability(value=Experimental) public ComputeEnvironment.Builder computeEnvironmentName(String computeEnvironmentName)
Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
Default: - CloudFormation-generated name
computeEnvironmentName - A name for the compute environment. This parameter is required.this@Stability(value=Experimental) public ComputeEnvironment.Builder computeResources(ComputeResources computeResources)
If specified, and this is an unmanaged compute environment, will throw an error.
By default, AWS Batch managed compute environments use a recent, approved version of the Amazon ECS-optimized AMI for compute resources.
Default: - CloudFormation defaults
computeResources - The details of the required compute resources for the managed compute environment. This parameter is required.this@Stability(value=Experimental) public ComputeEnvironment.Builder enabled(Boolean enabled)
If the state is set to true, then the compute environment accepts jobs from a queue and can scale out automatically based on queues.
Default: true
enabled - The state of the compute environment. This parameter is required.this@Stability(value=Experimental) public ComputeEnvironment.Builder managed(Boolean managed)
If set to false, then you are in charge of providing the compute resource details.
Default: true
managed - Determines if AWS should manage the allocation of compute resources for processing jobs. This parameter is required.this@Stability(value=Experimental) public ComputeEnvironment.Builder serviceRole(IRole serviceRole)
By default, this role is created for you using the AWS managed service policy for Batch.
Default: - Role using the 'service-role/AWSBatchServiceRole' policy.
serviceRole - The IAM role used by Batch to make calls to other AWS services on your behalf for managing the resources that you use with the service. This parameter is required.this@Stability(value=Experimental) public ComputeEnvironment build()
build in interface software.amazon.jsii.Builder<ComputeEnvironment>Copyright © 2021. All rights reserved.