Class: Aws::ECS::Types::UpdateContainerInstancesStateRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ecs/types.rb

Overview

Note:

When making an API call, you may pass UpdateContainerInstancesStateRequest data as a hash:

{
  cluster: "String",
  container_instances: ["String"], # required
  status: "ACTIVE", # required, accepts ACTIVE, DRAINING, REGISTERING, DEREGISTERING, REGISTRATION_FAILED
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#clusterString

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to update. If you do not specify a cluster, the default cluster is assumed.

Returns:

  • (String)

11462
11463
11464
11465
11466
11467
11468
# File 'lib/aws-sdk-ecs/types.rb', line 11462

class UpdateContainerInstancesStateRequest < Struct.new(
  :cluster,
  :container_instances,
  :status)
  SENSITIVE = []
  include Aws::Structure
end

#container_instancesArray<String>

A list of container instance IDs or full ARN entries.

Returns:

  • (Array<String>)

11462
11463
11464
11465
11466
11467
11468
# File 'lib/aws-sdk-ecs/types.rb', line 11462

class UpdateContainerInstancesStateRequest < Struct.new(
  :cluster,
  :container_instances,
  :status)
  SENSITIVE = []
  include Aws::Structure
end

#statusString

The container instance state with which to update the container instance. The only valid values for this action are `ACTIVE` and `DRAINING`. A container instance can only be updated to `DRAINING` status once it has reached an `ACTIVE` state. If a container instance is in `REGISTERING`, `DEREGISTERING`, or `REGISTRATION_FAILED` state you can describe the container instance but will be unable to update the container instance state.

Returns:

  • (String)

11462
11463
11464
11465
11466
11467
11468
# File 'lib/aws-sdk-ecs/types.rb', line 11462

class UpdateContainerInstancesStateRequest < Struct.new(
  :cluster,
  :container_instances,
  :status)
  SENSITIVE = []
  include Aws::Structure
end