@Stability(value=Experimental) public static final class ComputeEnvironmentProps.Builder extends Object implements software.amazon.jsii.Builder<ComputeEnvironmentProps>
ComputeEnvironmentProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ComputeEnvironmentProps |
build()
Builds the configured instance.
|
ComputeEnvironmentProps.Builder |
computeEnvironmentName(String computeEnvironmentName)
Sets the value of
ComputeEnvironmentProps.getComputeEnvironmentName() |
ComputeEnvironmentProps.Builder |
computeResources(ComputeResources computeResources)
Sets the value of
ComputeEnvironmentProps.getComputeResources() |
ComputeEnvironmentProps.Builder |
enabled(Boolean enabled)
Sets the value of
ComputeEnvironmentProps.getEnabled() |
ComputeEnvironmentProps.Builder |
managed(Boolean managed)
Sets the value of
ComputeEnvironmentProps.getManaged() |
ComputeEnvironmentProps.Builder |
serviceRole(IRole serviceRole)
Sets the value of
ComputeEnvironmentProps.getServiceRole() |
@Stability(value=Experimental) public ComputeEnvironmentProps.Builder computeEnvironmentName(String computeEnvironmentName)
ComputeEnvironmentProps.getComputeEnvironmentName()computeEnvironmentName - A name for the compute environment.
Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.this@Stability(value=Experimental) public ComputeEnvironmentProps.Builder computeResources(ComputeResources computeResources)
ComputeEnvironmentProps.getComputeResources()computeResources - The details of the required compute resources for the managed compute environment.
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.
this@Stability(value=Experimental) public ComputeEnvironmentProps.Builder enabled(Boolean enabled)
ComputeEnvironmentProps.getEnabled()enabled - The state of the compute environment.
If the state is set to true, then the compute
environment accepts jobs from a queue and can scale out automatically based on queues.this@Stability(value=Experimental) public ComputeEnvironmentProps.Builder managed(Boolean managed)
ComputeEnvironmentProps.getManaged()managed - Determines if AWS should manage the allocation of compute resources for processing jobs.
If set to false, then you are in charge of providing the compute resource details.this@Stability(value=Experimental) public ComputeEnvironmentProps.Builder serviceRole(IRole serviceRole)
ComputeEnvironmentProps.getServiceRole()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.
By default, this role is created for you using
the AWS managed service policy for Batch.this@Stability(value=Experimental) public ComputeEnvironmentProps build()
build in interface software.amazon.jsii.Builder<ComputeEnvironmentProps>ComputeEnvironmentPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.