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)


270
271
272
273
274
275
276
277
278
279
280
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 270

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

#exit_codeInteger

The exit code returned from the container.

Returns:

  • (Integer)


270
271
272
273
274
275
276
277
278
279
280
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 270

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

#last_statusString

The last known status of the container.

Returns:

  • (String)


270
271
272
273
274
275
276
277
278
279
280
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 270

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

#nameString

The name of the container.

Returns:

  • (String)


270
271
272
273
274
275
276
277
278
279
280
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 270

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

#network_bindingsArray<Types::NetworkBinding>

The network bindings associated with the container.

Returns:



270
271
272
273
274
275
276
277
278
279
280
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 270

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

#network_interfacesArray<Types::NetworkInterface>

The network interfaces associated with the container.

Returns:



270
271
272
273
274
275
276
277
278
279
280
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 270

class Container < Struct.new(
  :container_arn,
  :task_arn,
  :name,
  :last_status,
  :exit_code,
  :reason,
  :network_bindings,
  :network_interfaces)
  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)


270
271
272
273
274
275
276
277
278
279
280
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 270

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

#task_arnString

The ARN of the task.

Returns:

  • (String)


270
271
272
273
274
275
276
277
278
279
280
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 270

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