AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::ECS::Types::SubmitTaskStateChangeRequest

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

Overview

Note:

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

{
  cluster: "String",
  task: "String",
  status: "String",
  reason: "String",
  containers: [
    {
      container_name: "String",
      image_digest: "String",
      runtime_id: "String",
      exit_code: 1,
      network_bindings: [
        {
          bind_ip: "String",
          container_port: 1,
          host_port: 1,
          protocol: "tcp", # accepts tcp, udp
        },
      ],
      reason: "String",
      status: "String",
    },
  ],
  attachments: [
    {
      attachment_arn: "String", # required
      status: "String", # required
    },
  ],
  pull_started_at: Time.now,
  pull_stopped_at: Time.now,
  execution_stopped_at: Time.now,
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#attachmentsArray<Types::AttachmentStateChange>

Any attachments associated with the state change request.

Returns:



9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 9359

class SubmitTaskStateChangeRequest < Struct.new(
  :cluster,
  :task,
  :status,
  :reason,
  :containers,
  :attachments,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at)
  SENSITIVE = []
  include Aws::Structure
end

#clusterString

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.

Returns:

  • (String)


9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 9359

class SubmitTaskStateChangeRequest < Struct.new(
  :cluster,
  :task,
  :status,
  :reason,
  :containers,
  :attachments,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at)
  SENSITIVE = []
  include Aws::Structure
end

#containersArray<Types::ContainerStateChange>

Any containers associated with the state change request.

Returns:



9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 9359

class SubmitTaskStateChangeRequest < Struct.new(
  :cluster,
  :task,
  :status,
  :reason,
  :containers,
  :attachments,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at)
  SENSITIVE = []
  include Aws::Structure
end

#execution_stopped_atTime

The Unix timestamp for when the task execution stopped.

Returns:

  • (Time)


9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 9359

class SubmitTaskStateChangeRequest < Struct.new(
  :cluster,
  :task,
  :status,
  :reason,
  :containers,
  :attachments,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at)
  SENSITIVE = []
  include Aws::Structure
end

#pull_started_atTime

The Unix timestamp for when the container image pull began.

Returns:

  • (Time)


9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 9359

class SubmitTaskStateChangeRequest < Struct.new(
  :cluster,
  :task,
  :status,
  :reason,
  :containers,
  :attachments,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at)
  SENSITIVE = []
  include Aws::Structure
end

#pull_stopped_atTime

The Unix timestamp for when the container image pull completed.

Returns:

  • (Time)


9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 9359

class SubmitTaskStateChangeRequest < Struct.new(
  :cluster,
  :task,
  :status,
  :reason,
  :containers,
  :attachments,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at)
  SENSITIVE = []
  include Aws::Structure
end

#reasonString

The reason for the state change request.

Returns:

  • (String)


9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 9359

class SubmitTaskStateChangeRequest < Struct.new(
  :cluster,
  :task,
  :status,
  :reason,
  :containers,
  :attachments,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at)
  SENSITIVE = []
  include Aws::Structure
end

#statusString

The status of the state change request.

Returns:

  • (String)


9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 9359

class SubmitTaskStateChangeRequest < Struct.new(
  :cluster,
  :task,
  :status,
  :reason,
  :containers,
  :attachments,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at)
  SENSITIVE = []
  include Aws::Structure
end

#taskString

The task ID or full ARN of the task in the state change request.

Returns:

  • (String)


9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 9359

class SubmitTaskStateChangeRequest < Struct.new(
  :cluster,
  :task,
  :status,
  :reason,
  :containers,
  :attachments,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at)
  SENSITIVE = []
  include Aws::Structure
end