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

Class: Aws::ECS::Types::Container

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

Overview

A Docker container that is part of a task.

Instance Attribute Summary collapse

Instance Attribute Details

#container_arnString

The Amazon Resource Name (ARN) of the container.

Returns:

  • (String)


150
151
152
153
154
155
156
157
158
159
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 150

class Container < Struct.new(
  :container_arn,
  :task_arn,
  :name,
  :last_status,
  :exit_code,
  :reason,
  :network_bindings)
  include Aws::Structure
end

#exit_codeInteger

The exit code returned from the container.

Returns:

  • (Integer)


150
151
152
153
154
155
156
157
158
159
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 150

class Container < Struct.new(
  :container_arn,
  :task_arn,
  :name,
  :last_status,
  :exit_code,
  :reason,
  :network_bindings)
  include Aws::Structure
end

#last_statusString

The last known status of the container.

Returns:

  • (String)


150
151
152
153
154
155
156
157
158
159
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 150

class Container < Struct.new(
  :container_arn,
  :task_arn,
  :name,
  :last_status,
  :exit_code,
  :reason,
  :network_bindings)
  include Aws::Structure
end

#nameString

The name of the container.

Returns:

  • (String)


150
151
152
153
154
155
156
157
158
159
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 150

class Container < Struct.new(
  :container_arn,
  :task_arn,
  :name,
  :last_status,
  :exit_code,
  :reason,
  :network_bindings)
  include Aws::Structure
end

#network_bindingsArray<Types::NetworkBinding>

The network bindings associated with the container.

Returns:



150
151
152
153
154
155
156
157
158
159
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 150

class Container < Struct.new(
  :container_arn,
  :task_arn,
  :name,
  :last_status,
  :exit_code,
  :reason,
  :network_bindings)
  include Aws::Structure
end

#reasonString

A short (255 max characters) human-readable string to provide additional details about a running or stopped container.

Returns:

  • (String)


150
151
152
153
154
155
156
157
158
159
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 150

class Container < Struct.new(
  :container_arn,
  :task_arn,
  :name,
  :last_status,
  :exit_code,
  :reason,
  :network_bindings)
  include Aws::Structure
end

#task_arnString

The Amazon Resource Name (ARN) of the task.

Returns:

  • (String)


150
151
152
153
154
155
156
157
158
159
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 150

class Container < Struct.new(
  :container_arn,
  :task_arn,
  :name,
  :last_status,
  :exit_code,
  :reason,
  :network_bindings)
  include Aws::Structure
end