class Aws::Batch::Types::ComputeResourceUpdate

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

[1]: docs.aws.amazon.com/batch/latest/userguide/compute_environments.html

@note When making an API call, you may pass ComputeResourceUpdate

data as a hash:

    {
      minv_cpus: 1,
      maxv_cpus: 1,
      desiredv_cpus: 1,
      subnets: ["String"],
      security_group_ids: ["String"],
    }

@!attribute [rw] minv_cpus

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

<note markdown="1"> This parameter isn't applicable to jobs that are running on Fargate
resources, and shouldn't be specified.

 </note>
@return [Integer]

@!attribute [rw] maxv_cpus

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

<note markdown="1"> With both `BEST_FIT_PROGRESSIVE` and `SPOT_CAPACITY_OPTIMIZED`
allocation strategies, Batch might need to exceed `maxvCpus` to meet
your capacity requirements. In this event, 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.

 </note>
@return [Integer]

@!attribute [rw] desiredv_cpus

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

<note markdown="1"> This parameter isn't applicable to jobs that are running on Fargate
resources, and shouldn't be specified.

 </note>
@return [Integer]

@!attribute [rw] 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][1] in the *Amazon VPC
User Guide*.

[1]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html
@return [Array<String>]

@!attribute [rw] security_group_ids

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.
@return [Array<String>]

@see docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ComputeResourceUpdate AWS API Documentation

Constants

SENSITIVE