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

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing ContainerStateChange as input to an Aws::Client method, you can use a vanilla 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_name ⇒ String

The name of the container.

Returns:

  • (String) —

    The name of the container.

#exit_code ⇒ Integer

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

Returns:

  • (Integer) —

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

#image_digest ⇒ String

The container image SHA 256 digest.

Returns:

  • (String) —

    The container image SHA 256 digest.

#network_bindings ⇒ Array<Types::NetworkBinding>

Any network bindings associated with the container.

Returns:

#reason ⇒ String

The reason for the state change.

Returns:

  • (String) —

    The reason for the state change.

#runtime_id ⇒ String

The ID of the Docker container.

Returns:

  • (String) —

    The ID of the Docker container.

#status ⇒ String

The status of the container.

Returns:

  • (String) —

    The status of the container.