public static interface CreateComputeEnvironmentRequest.Builder extends BatchRequest.Builder, CopyableBuilder<CreateComputeEnvironmentRequest.Builder,CreateComputeEnvironmentRequest>
Modifier and Type | Method and Description |
---|---|
CreateComputeEnvironmentRequest.Builder |
computeEnvironmentName(String computeEnvironmentName)
The name for your compute environment.
|
CreateComputeEnvironmentRequest.Builder |
computeResources(ComputeResource computeResources)
Details of the compute resources managed by the compute environment.
|
default CreateComputeEnvironmentRequest.Builder |
computeResources(Consumer<ComputeResource.Builder> computeResources)
Details of the compute resources managed by the compute environment.
|
CreateComputeEnvironmentRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateComputeEnvironmentRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateComputeEnvironmentRequest.Builder |
serviceRole(String serviceRole)
The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services
on your behalf.
|
CreateComputeEnvironmentRequest.Builder |
state(CEState state)
The state of the compute environment.
|
CreateComputeEnvironmentRequest.Builder |
state(String state)
The state of the compute environment.
|
CreateComputeEnvironmentRequest.Builder |
type(CEType type)
The type of the compute environment.
|
CreateComputeEnvironmentRequest.Builder |
type(String type)
The type of the compute environment.
|
build
overrideConfiguration
copy
applyMutation, build
CreateComputeEnvironmentRequest.Builder computeEnvironmentName(String computeEnvironmentName)
The name for your compute environment. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
computeEnvironmentName
- The name for your compute environment. Up to 128 letters (uppercase and lowercase), numbers, hyphens,
and underscores are allowed.CreateComputeEnvironmentRequest.Builder type(String type)
The type of the compute environment.
CreateComputeEnvironmentRequest.Builder type(CEType type)
The type of the compute environment.
CreateComputeEnvironmentRequest.Builder state(String state)
The state of the compute environment. If the state is ENABLED
, then the compute environment
accepts jobs from a queue and can scale out automatically based on queues.
state
- The state of the compute environment. If the state is ENABLED
, then the compute
environment accepts jobs from a queue and can scale out automatically based on queues.CEState
,
CEState
CreateComputeEnvironmentRequest.Builder state(CEState state)
The state of the compute environment. If the state is ENABLED
, then the compute environment
accepts jobs from a queue and can scale out automatically based on queues.
state
- The state of the compute environment. If the state is ENABLED
, then the compute
environment accepts jobs from a queue and can scale out automatically based on queues.CEState
,
CEState
CreateComputeEnvironmentRequest.Builder computeResources(ComputeResource computeResources)
Details of the compute resources managed by the compute environment. This parameter is required for managed compute environments.
computeResources
- Details of the compute resources managed by the compute environment. This parameter is required for
managed compute environments.default CreateComputeEnvironmentRequest.Builder computeResources(Consumer<ComputeResource.Builder> computeResources)
Details of the compute resources managed by the compute environment. This parameter is required for managed compute environments.
This is a convenience that creates an instance of theComputeResource.Builder
avoiding the need to
create one manually via ComputeResource.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to computeResources(ComputeResource)
.computeResources
- a consumer that will call methods on ComputeResource.Builder
computeResources(ComputeResource)
CreateComputeEnvironmentRequest.Builder serviceRole(String serviceRole)
The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf.
If your specified role has a path other than /
, then you must either specify the full role ARN
(this is recommended) or prefix the role name with the path.
Depending on how you created your AWS Batch service role, its ARN may contain the service-role
path prefix. When you only specify the name of the service role, AWS Batch assumes that your ARN does not use
the service-role
path prefix. Because of this, we recommend that you specify the full ARN of
your service role when you create compute environments.
serviceRole
- The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS
services on your behalf.
If your specified role has a path other than /
, then you must either specify the full
role ARN (this is recommended) or prefix the role name with the path.
Depending on how you created your AWS Batch service role, its ARN may contain the
service-role
path prefix. When you only specify the name of the service role, AWS Batch
assumes that your ARN does not use the service-role
path prefix. Because of this, we
recommend that you specify the full ARN of your service role when you create compute environments.
CreateComputeEnvironmentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateComputeEnvironmentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.