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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
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)


278
279
280
281
282
283
284
285
286
287
288
289
# File 'lib/aws-sdk-ecs/types.rb', line 278

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

#exit_codeInteger

The exit code returned from the container.

Returns:

  • (Integer)


278
279
280
281
282
283
284
285
286
287
288
289
# File 'lib/aws-sdk-ecs/types.rb', line 278

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

#health_statusString

The health status of the container. If health checks are not configured for this container in its task definition, then it reports health status as ‘UNKNOWN`.

Returns:

  • (String)


278
279
280
281
282
283
284
285
286
287
288
289
# File 'lib/aws-sdk-ecs/types.rb', line 278

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

#last_statusString

The last known status of the container.

Returns:

  • (String)


278
279
280
281
282
283
284
285
286
287
288
289
# File 'lib/aws-sdk-ecs/types.rb', line 278

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

#nameString

The name of the container.

Returns:

  • (String)


278
279
280
281
282
283
284
285
286
287
288
289
# File 'lib/aws-sdk-ecs/types.rb', line 278

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

#network_bindingsArray<Types::NetworkBinding>

The network bindings associated with the container.

Returns:



278
279
280
281
282
283
284
285
286
287
288
289
# File 'lib/aws-sdk-ecs/types.rb', line 278

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

#network_interfacesArray<Types::NetworkInterface>

The network interfaces associated with the container.

Returns:



278
279
280
281
282
283
284
285
286
287
288
289
# File 'lib/aws-sdk-ecs/types.rb', line 278

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


278
279
280
281
282
283
284
285
286
287
288
289
# File 'lib/aws-sdk-ecs/types.rb', line 278

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

#task_arnString

The ARN of the task.

Returns:

  • (String)


278
279
280
281
282
283
284
285
286
287
288
289
# File 'lib/aws-sdk-ecs/types.rb', line 278

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