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

Class: Aws::ECS::Types::Task

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

Overview

Details on a task in a cluster.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#cluster_arnString

The Amazon Resource Name (ARN) of the cluster that hosts the task.

Returns:

  • (String)

    The Amazon Resource Name (ARN) of the cluster that hosts the task.

#container_instance_arnString

The Amazon Resource Name (ARN) of the container instances that host the task.

Returns:

  • (String)

    The Amazon Resource Name (ARN) of the container instances that host the task.

#containersArray<Types::Container>

The containers associated with the task.

Returns:

#created_atTime

The Unix timestamp for when the task was created (the task entered the PENDING state).

Returns:

  • (Time)

    The Unix timestamp for when the task was created (the task entered the PENDING state).

#desired_statusString

The desired status of the task.

Returns:

  • (String)

    The desired status of the task.

#groupString

The name of the task group associated with the task.

Returns:

  • (String)

    The name of the task group associated with the task.

#last_statusString

The last known status of the task.

Returns:

  • (String)

    The last known status of the task.

#overridesTypes::TaskOverride

One or more container overrides.

Returns:

#started_atTime

The Unix timestamp for when the task was started (the task transitioned from the PENDING state to the RUNNING state).

Returns:

  • (Time)

    The Unix timestamp for when the task was started (the task transitioned from the PENDING state to the RUNNING state).

#started_byString

The tag specified when a task is started. If the task is started by an Amazon ECS service, then the startedBy parameter contains the deployment ID of the service that starts it.

Returns:

  • (String)

    The tag specified when a task is started.

#stopped_atTime

The Unix timestamp for when the task was stopped (the task transitioned from the RUNNING state to the STOPPED state).

Returns:

  • (Time)

    The Unix timestamp for when the task was stopped (the task transitioned from the RUNNING state to the STOPPED state).

#stopped_reasonString

The reason the task was stopped.

Returns:

  • (String)

    The reason the task was stopped.

#task_arnString

The Amazon Resource Name (ARN) of the task.

Returns:

  • (String)

    The Amazon Resource Name (ARN) of the task.

#task_definition_arnString

The Amazon Resource Name (ARN) of the task definition that creates the task.

Returns:

  • (String)

    The Amazon Resource Name (ARN) of the task definition that creates the task.

#versionInteger

The version counter for the task. Every time a task experiences a change that triggers a CloudWatch event, the version counter is incremented. If you are replicating your Amazon ECS task state with CloudWatch events, you can compare the version of a task reported by the Amazon ECS APIs with the version reported in CloudWatch events for the task (inside the detail object) to verify that the version in your event stream is current.

Returns:

  • (Integer)

    The version counter for the task.