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

Class: Aws::ECS::Types::ContainerStateChange

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

{
  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",
}

An object representing a change in state for a container.

Instance Attribute Summary collapse

Instance Attribute Details

#container_nameString

The name of the container.

Returns:

  • (String)


1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 1853

class ContainerStateChange < Struct.new(
  :container_name,
  :image_digest,
  :runtime_id,
  :exit_code,
  :network_bindings,
  :reason,
  :status)
  include Aws::Structure
end

#exit_codeInteger

The exit code for the container, if the state change is a result of the container exiting.

Returns:

  • (Integer)


1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 1853

class ContainerStateChange < Struct.new(
  :container_name,
  :image_digest,
  :runtime_id,
  :exit_code,
  :network_bindings,
  :reason,
  :status)
  include Aws::Structure
end

#image_digestString

The container image SHA 256 digest.

Returns:

  • (String)


1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 1853

class ContainerStateChange < Struct.new(
  :container_name,
  :image_digest,
  :runtime_id,
  :exit_code,
  :network_bindings,
  :reason,
  :status)
  include Aws::Structure
end

#network_bindingsArray<Types::NetworkBinding>

Any network bindings associated with the container.

Returns:



1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 1853

class ContainerStateChange < Struct.new(
  :container_name,
  :image_digest,
  :runtime_id,
  :exit_code,
  :network_bindings,
  :reason,
  :status)
  include Aws::Structure
end

#reasonString

The reason for the state change.

Returns:

  • (String)


1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 1853

class ContainerStateChange < Struct.new(
  :container_name,
  :image_digest,
  :runtime_id,
  :exit_code,
  :network_bindings,
  :reason,
  :status)
  include Aws::Structure
end

#runtime_idString

The ID of the Docker container.

Returns:

  • (String)


1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 1853

class ContainerStateChange < Struct.new(
  :container_name,
  :image_digest,
  :runtime_id,
  :exit_code,
  :network_bindings,
  :reason,
  :status)
  include Aws::Structure
end

#statusString

The status of the container.

Returns:

  • (String)


1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 1853

class ContainerStateChange < Struct.new(
  :container_name,
  :image_digest,
  :runtime_id,
  :exit_code,
  :network_bindings,
  :reason,
  :status)
  include Aws::Structure
end