class Aws::Batch::Types::UpdateComputeEnvironmentRequest

Contains the parameters for `UpdateComputeEnvironment`.

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

data as a hash:

    {
      compute_environment: "String", # required
      state: "ENABLED", # accepts ENABLED, DISABLED
      compute_resources: {
        minv_cpus: 1,
        maxv_cpus: 1,
        desiredv_cpus: 1,
        subnets: ["String"],
        security_group_ids: ["String"],
      },
      service_role: "String",
    }

@!attribute [rw] compute_environment

The name or full Amazon Resource Name (ARN) of the compute
environment to update.
@return [String]

@!attribute [rw] state

The state of the compute environment. Compute environments in the
`ENABLED` state can accept jobs from a queue and scale in or out
automatically based on the workload demand of its associated queues.

If the state is `ENABLED`, then the Batch scheduler can attempt to
place jobs from an associated job queue on the compute resources
within the environment. If the compute environment is managed, then
it can scale its instances out or in automatically, based on the job
queue demand.

If the state is `DISABLED`, then the Batch scheduler doesn't
attempt to place jobs within the environment. Jobs in a `STARTING`
or `RUNNING` state continue to progress normally. Managed compute
environments in the `DISABLED` state don't scale out. However, they
scale in to `minvCpus` value after instances become idle.
@return [String]

@!attribute [rw] compute_resources

Details of the compute resources managed by the compute environment.
Required for a managed compute environment. For more information,
see [Compute Environments][1] in the *Batch User Guide*.

[1]: https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html
@return [Types::ComputeResourceUpdate]

@!attribute [rw] service_role

The full Amazon Resource Name (ARN) of the IAM role that allows
Batch to make calls to other Amazon Web Services services on your
behalf. For more information, see [Batch service IAM role][1] in the
*Batch User Guide*.

If the compute environment has a service-linked role, it can't be
changed to use a regular IAM role. Likewise, if the compute
environment has a regular IAM role, it can't be changed to use a
service-linked role.

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.

<note markdown="1"> Depending on how you created your Batch service role, its ARN might
contain the `service-role` path prefix. When you only specify the
name of the service role, Batch assumes that your ARN doesn't 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.

 </note>

[1]: https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html
@return [String]

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

Constants

SENSITIVE