ComputeResourceUpdate - AWS Batch

ComputeResourceUpdate

An object representing the attributes of a compute environment that can be updated. For more information, see Compute Environments in the AWS Batch User Guide.

Contents

desiredvCpus

The desired number of Amazon EC2 vCPUS in the compute environment.

Note

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified.

Type: Integer

Required: No

maxvCpus

The maximum number of Amazon EC2 vCPUs that an environment can reach.

Note

With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation strategies, AWS Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, AWS Batch never exceeds maxvCpus by more than a single instance. That is, no more than a single instance from among those specified in your compute environment.

Type: Integer

Required: No

minvCpus

The minimum number of Amazon EC2 vCPUs that an environment should maintain.

Note

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified.

Type: Integer

Required: No

securityGroupIds

The Amazon EC2 security groups associated with instances launched in the compute environment. This parameter is required for Fargate compute resources, where it can contain up to 5 security groups. This can't be specified for EC2 compute resources. Providing an empty list is handled as if this parameter wasn't specified and no change is made.

Type: Array of strings

Required: No

subnets

The VPC subnets where the compute resources are launched. Fargate compute resources can contain up to 16 subnets. Providing an empty list will be handled as if this parameter wasn't specified and no change is made. This can't be specified for EC2 compute resources. For more information, see VPCs and Subnets in the Amazon VPC User Guide.

Type: Array of strings

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: