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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb

Overview

Details on a task in a cluster.

Instance Attribute Summary collapse

Instance Attribute Details

#attachmentsArray<Types::Attachment>

The Elastic Network Adapter associated with the task if the task uses the awsvpc network mode.

Returns:



4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#cluster_arnString

The ARN of the cluster that hosts the task.

Returns:

  • (String)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#connectivityString

The connectivity status of a task.

Returns:

  • (String)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#connectivity_atTime

The Unix time stamp for when the task last went into CONNECTED status.

Returns:

  • (Time)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#container_instance_arnString

The ARN of the container instances that host the task.

Returns:

  • (String)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#containersArray<Types::Container>

The containers associated with the task.

Returns:



4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#cpuString

The number of cpu units used by the task. If using the EC2 launch type, this field is optional and any value can be used. If using the Fargate launch type, this field is required and you must use one of the following values, which determines your range of valid values for the memory parameter:

  • 256 (.25 vCPU) - Available memory values: 512MB, 1GB, 2GB

  • 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB

  • 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB

  • 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments

  • 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments

Returns:

  • (String)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#created_atTime

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

Returns:

  • (Time)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#desired_statusString

The desired status of the task.

Returns:

  • (String)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#execution_stopped_atTime

The Unix timestamp for when the task execution stopped.

Returns:

  • (Time)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#groupString

The name of the task group associated with the task.

Returns:

  • (String)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#last_statusString

The last known status of the task.

Returns:

  • (String)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#launch_typeString

The launch type on which your task is running.

Returns:

  • (String)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#memoryString

The amount (in MiB) of memory used by the task. If using the EC2 launch type, this field is optional and any value can be used. If using the Fargate launch type, this field is required and you must use one of the following values, which determines your range of valid values for the cpu parameter:

  • 512MB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU)

  • 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU)

  • 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU)

  • Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU)

  • Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU)

Returns:

  • (String)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#overridesTypes::TaskOverride

One or more container overrides.

Returns:



4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#platform_versionString

The platform version on which your task is running. For more information, see AWS Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.

Returns:

  • (String)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#pull_started_atTime

The Unix time stamp for when the container image pull began.

Returns:

  • (Time)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#pull_stopped_atTime

The Unix time stamp for when the container image pull completed.

Returns:

  • (Time)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#started_atTime

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

Returns:

  • (Time)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#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)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#stopped_atTime

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

Returns:

  • (Time)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#stopped_reasonString

The reason the task was stopped.

Returns:

  • (String)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#stopping_atTime

The Unix time stamp for when the task will stop (the task transitioned from the RUNNING state to the STOPPED state).

Returns:

  • (Time)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#task_arnString

The Amazon Resource Name (ARN) of the task.

Returns:

  • (String)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#task_definition_arnString

The ARN of the task definition that creates the task.

Returns:

  • (String)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end

#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)


4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4685

class Task < Struct.new(
  :task_arn,
  :cluster_arn,
  :task_definition_arn,
  :container_instance_arn,
  :overrides,
  :last_status,
  :desired_status,
  :cpu,
  :memory,
  :containers,
  :started_by,
  :version,
  :stopped_reason,
  :connectivity,
  :connectivity_at,
  :pull_started_at,
  :pull_stopped_at,
  :execution_stopped_at,
  :created_at,
  :started_at,
  :stopping_at,
  :stopped_at,
  :group,
  :launch_type,
  :platform_version,
  :attachments)
  include Aws::Structure
end