You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::ECS::Types::SubmitContainerStateChangeRequest

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 SubmitContainerStateChangeRequest data as a hash:

{
  cluster: "String",
  task: "String",
  container_name: "String",
  status: "String",
  exit_code: 1,
  reason: "String",
  network_bindings: [
    {
      bind_ip: "String",
      container_port: 1,
      host_port: 1,
      protocol: "tcp", # accepts tcp, udp
    },
  ],
}

Instance Attribute Summary collapse

Instance Attribute Details

#clusterString

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

Returns:

  • (String)


3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 3616

class SubmitContainerStateChangeRequest < Struct.new(
  :cluster,
  :task,
  :container_name,
  :status,
  :exit_code,
  :reason,
  :network_bindings)
  include Aws::Structure
end

#container_nameString

The name of the container.

Returns:

  • (String)


3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 3616

class SubmitContainerStateChangeRequest < Struct.new(
  :cluster,
  :task,
  :container_name,
  :status,
  :exit_code,
  :reason,
  :network_bindings)
  include Aws::Structure
end

#exit_codeInteger

The exit code returned for the state change request.

Returns:

  • (Integer)


3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 3616

class SubmitContainerStateChangeRequest < Struct.new(
  :cluster,
  :task,
  :container_name,
  :status,
  :exit_code,
  :reason,
  :network_bindings)
  include Aws::Structure
end

#network_bindingsArray<Types::NetworkBinding>

The network bindings of the container.

Returns:



3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 3616

class SubmitContainerStateChangeRequest < Struct.new(
  :cluster,
  :task,
  :container_name,
  :status,
  :exit_code,
  :reason,
  :network_bindings)
  include Aws::Structure
end

#reasonString

The reason for the state change request.

Returns:

  • (String)


3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 3616

class SubmitContainerStateChangeRequest < Struct.new(
  :cluster,
  :task,
  :container_name,
  :status,
  :exit_code,
  :reason,
  :network_bindings)
  include Aws::Structure
end

#statusString

The status of the state change request.

Returns:

  • (String)


3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 3616

class SubmitContainerStateChangeRequest < Struct.new(
  :cluster,
  :task,
  :container_name,
  :status,
  :exit_code,
  :reason,
  :network_bindings)
  include Aws::Structure
end

#taskString

The task ID or full Amazon Resource Name (ARN) of the task that hosts the container.

Returns:

  • (String)


3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 3616

class SubmitContainerStateChangeRequest < Struct.new(
  :cluster,
  :task,
  :container_name,
  :status,
  :exit_code,
  :reason,
  :network_bindings)
  include Aws::Structure
end