Class: Aws::ECS::Types::TaskSet
- Inherits:
-
Struct
- Object
- Struct
- Aws::ECS::Types::TaskSet
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ecs/types.rb
Overview
Information about a set of Amazon ECS tasks in an AWS CodeDeploy deployment. An Amazon ECS task set includes details such as the desired number of tasks, how many tasks are running, and whether the task set serves production traffic.
Instance Attribute Summary collapse
-
#computed_desired_count ⇒ Integer
The computed desired count for the task set.
-
#created_at ⇒ Time
The Unix timestamp for when the task set was created.
-
#external_id ⇒ String
The deployment ID of the AWS CodeDeploy deployment.
-
#id ⇒ String
The ID of the task set.
-
#launch_type ⇒ String
The launch type the tasks in the task set are using.
-
#load_balancers ⇒ Array<Types::LoadBalancer>
Details on a load balancer that is used with a task set.
-
#network_configuration ⇒ Types::NetworkConfiguration
The network configuration for the task set.
-
#pending_count ⇒ Integer
The number of tasks in the task set that are in the ‘PENDING` status during a deployment.
-
#platform_version ⇒ String
The platform version on which the tasks in the task set are running.
-
#running_count ⇒ Integer
The number of tasks in the task set that are in the ‘RUNNING` status during a deployment.
-
#scale ⇒ Types::Scale
A floating-point percentage of the desired number of tasks to place and keep running in the service.
-
#stability_status ⇒ String
The stability status, which indicates whether the task set has reached a steady state.
-
#stability_status_at ⇒ Time
The Unix timestamp for when the task set stability status was retrieved.
-
#started_by ⇒ String
The tag specified when a task set is started.
-
#status ⇒ String
The status of the task set.
-
#task_definition ⇒ String
The task definition the task set is using.
-
#task_set_arn ⇒ String
The Amazon Resource Name (ARN) of the task set.
-
#updated_at ⇒ Time
The Unix timestamp for when the task set was last updated.
Instance Attribute Details
#computed_desired_count ⇒ Integer
The computed desired count for the task set. This is calculated by multiplying the service’s ‘desiredCount` by the task set’s ‘scale` percentage.
7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 |
# File 'lib/aws-sdk-ecs/types.rb', line 7131 class TaskSet < Struct.new( :id, :task_set_arn, :started_by, :external_id, :status, :task_definition, :computed_desired_count, :pending_count, :running_count, :created_at, :updated_at, :launch_type, :platform_version, :network_configuration, :load_balancers, :scale, :stability_status, :stability_status_at) include Aws::Structure end |
#created_at ⇒ Time
The Unix timestamp for when the task set was created.
7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 |
# File 'lib/aws-sdk-ecs/types.rb', line 7131 class TaskSet < Struct.new( :id, :task_set_arn, :started_by, :external_id, :status, :task_definition, :computed_desired_count, :pending_count, :running_count, :created_at, :updated_at, :launch_type, :platform_version, :network_configuration, :load_balancers, :scale, :stability_status, :stability_status_at) include Aws::Structure end |
#external_id ⇒ String
The deployment ID of the AWS CodeDeploy deployment.
7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 |
# File 'lib/aws-sdk-ecs/types.rb', line 7131 class TaskSet < Struct.new( :id, :task_set_arn, :started_by, :external_id, :status, :task_definition, :computed_desired_count, :pending_count, :running_count, :created_at, :updated_at, :launch_type, :platform_version, :network_configuration, :load_balancers, :scale, :stability_status, :stability_status_at) include Aws::Structure end |
#id ⇒ String
The ID of the task set.
7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 |
# File 'lib/aws-sdk-ecs/types.rb', line 7131 class TaskSet < Struct.new( :id, :task_set_arn, :started_by, :external_id, :status, :task_definition, :computed_desired_count, :pending_count, :running_count, :created_at, :updated_at, :launch_type, :platform_version, :network_configuration, :load_balancers, :scale, :stability_status, :stability_status_at) include Aws::Structure end |
#launch_type ⇒ String
The launch type the tasks in the task set are using. For more information, see [Amazon ECS Launch Types] in the *Amazon Elastic Container Service Developer Guide*.
[1]: docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html
7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 |
# File 'lib/aws-sdk-ecs/types.rb', line 7131 class TaskSet < Struct.new( :id, :task_set_arn, :started_by, :external_id, :status, :task_definition, :computed_desired_count, :pending_count, :running_count, :created_at, :updated_at, :launch_type, :platform_version, :network_configuration, :load_balancers, :scale, :stability_status, :stability_status_at) include Aws::Structure end |
#load_balancers ⇒ Array<Types::LoadBalancer>
Details on a load balancer that is used with a task set.
7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 |
# File 'lib/aws-sdk-ecs/types.rb', line 7131 class TaskSet < Struct.new( :id, :task_set_arn, :started_by, :external_id, :status, :task_definition, :computed_desired_count, :pending_count, :running_count, :created_at, :updated_at, :launch_type, :platform_version, :network_configuration, :load_balancers, :scale, :stability_status, :stability_status_at) include Aws::Structure end |
#network_configuration ⇒ Types::NetworkConfiguration
The network configuration for the task set.
7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 |
# File 'lib/aws-sdk-ecs/types.rb', line 7131 class TaskSet < Struct.new( :id, :task_set_arn, :started_by, :external_id, :status, :task_definition, :computed_desired_count, :pending_count, :running_count, :created_at, :updated_at, :launch_type, :platform_version, :network_configuration, :load_balancers, :scale, :stability_status, :stability_status_at) include Aws::Structure end |
#pending_count ⇒ Integer
The number of tasks in the task set that are in the ‘PENDING` status during a deployment. A task in the `PENDING` state is preparing to enter the `RUNNING` state. A task set enters the `PENDING` status when it launches for the first time, or when it is restarted after being in the `STOPPED` state.
7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 |
# File 'lib/aws-sdk-ecs/types.rb', line 7131 class TaskSet < Struct.new( :id, :task_set_arn, :started_by, :external_id, :status, :task_definition, :computed_desired_count, :pending_count, :running_count, :created_at, :updated_at, :launch_type, :platform_version, :network_configuration, :load_balancers, :scale, :stability_status, :stability_status_at) include Aws::Structure end |
#platform_version ⇒ String
The platform version on which the tasks in the task set are running. A platform version is only specified for tasks using the Fargate launch type. If one is not specified, the ‘LATEST` platform version is used by default. For more information, see [AWS Fargate Platform Versions] in the *Amazon Elastic Container Service Developer Guide*.
[1]: docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html
7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 |
# File 'lib/aws-sdk-ecs/types.rb', line 7131 class TaskSet < Struct.new( :id, :task_set_arn, :started_by, :external_id, :status, :task_definition, :computed_desired_count, :pending_count, :running_count, :created_at, :updated_at, :launch_type, :platform_version, :network_configuration, :load_balancers, :scale, :stability_status, :stability_status_at) include Aws::Structure end |
#running_count ⇒ Integer
The number of tasks in the task set that are in the ‘RUNNING` status during a deployment. A task in the `RUNNING` state is running and ready for use.
7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 |
# File 'lib/aws-sdk-ecs/types.rb', line 7131 class TaskSet < Struct.new( :id, :task_set_arn, :started_by, :external_id, :status, :task_definition, :computed_desired_count, :pending_count, :running_count, :created_at, :updated_at, :launch_type, :platform_version, :network_configuration, :load_balancers, :scale, :stability_status, :stability_status_at) include Aws::Structure end |
#scale ⇒ Types::Scale
A floating-point percentage of the desired number of tasks to place and keep running in the service.
7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 |
# File 'lib/aws-sdk-ecs/types.rb', line 7131 class TaskSet < Struct.new( :id, :task_set_arn, :started_by, :external_id, :status, :task_definition, :computed_desired_count, :pending_count, :running_count, :created_at, :updated_at, :launch_type, :platform_version, :network_configuration, :load_balancers, :scale, :stability_status, :stability_status_at) include Aws::Structure end |
#stability_status ⇒ String
The stability status, which indicates whether the task set has reached a steady state. If the following conditions are met, the task set will be in ‘STEADY_STATE`:
-
The task ‘runningCount` is equal to the `computedDesiredCount`.
-
The ‘pendingCount` is `0`.
-
There are no tasks running on container instances in the ‘DRAINING` status.
-
All tasks are reporting a healthy status from the load balancers, service discovery, and container health checks.
If any of those conditions are not met, the stability status returns ‘STABILIZING`.
7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 |
# File 'lib/aws-sdk-ecs/types.rb', line 7131 class TaskSet < Struct.new( :id, :task_set_arn, :started_by, :external_id, :status, :task_definition, :computed_desired_count, :pending_count, :running_count, :created_at, :updated_at, :launch_type, :platform_version, :network_configuration, :load_balancers, :scale, :stability_status, :stability_status_at) include Aws::Structure end |
#stability_status_at ⇒ Time
The Unix timestamp for when the task set stability status was retrieved.
7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 |
# File 'lib/aws-sdk-ecs/types.rb', line 7131 class TaskSet < Struct.new( :id, :task_set_arn, :started_by, :external_id, :status, :task_definition, :computed_desired_count, :pending_count, :running_count, :created_at, :updated_at, :launch_type, :platform_version, :network_configuration, :load_balancers, :scale, :stability_status, :stability_status_at) include Aws::Structure end |
#started_by ⇒ String
The tag specified when a task set is started. If the task is started by an AWS CodeDeploy deployment, then the ‘startedBy` parameter is `CODE_DEPLOY`.
7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 |
# File 'lib/aws-sdk-ecs/types.rb', line 7131 class TaskSet < Struct.new( :id, :task_set_arn, :started_by, :external_id, :status, :task_definition, :computed_desired_count, :pending_count, :running_count, :created_at, :updated_at, :launch_type, :platform_version, :network_configuration, :load_balancers, :scale, :stability_status, :stability_status_at) include Aws::Structure end |
#status ⇒ String
The status of the task set. The following describes each state:
PRIMARY
: The task set is serving production traffic.
ACTIVE
: The task set is not serving production traffic.
DRAINING
: The tasks in the task set are being stopped and their
corresponding targets are being deregistered from their target
group.
7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 |
# File 'lib/aws-sdk-ecs/types.rb', line 7131 class TaskSet < Struct.new( :id, :task_set_arn, :started_by, :external_id, :status, :task_definition, :computed_desired_count, :pending_count, :running_count, :created_at, :updated_at, :launch_type, :platform_version, :network_configuration, :load_balancers, :scale, :stability_status, :stability_status_at) include Aws::Structure end |
#task_definition ⇒ String
The task definition the task set is using.
7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 |
# File 'lib/aws-sdk-ecs/types.rb', line 7131 class TaskSet < Struct.new( :id, :task_set_arn, :started_by, :external_id, :status, :task_definition, :computed_desired_count, :pending_count, :running_count, :created_at, :updated_at, :launch_type, :platform_version, :network_configuration, :load_balancers, :scale, :stability_status, :stability_status_at) include Aws::Structure end |
#task_set_arn ⇒ String
The Amazon Resource Name (ARN) of the task set.
7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 |
# File 'lib/aws-sdk-ecs/types.rb', line 7131 class TaskSet < Struct.new( :id, :task_set_arn, :started_by, :external_id, :status, :task_definition, :computed_desired_count, :pending_count, :running_count, :created_at, :updated_at, :launch_type, :platform_version, :network_configuration, :load_balancers, :scale, :stability_status, :stability_status_at) include Aws::Structure end |
#updated_at ⇒ Time
The Unix timestamp for when the task set was last updated.
7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 |
# File 'lib/aws-sdk-ecs/types.rb', line 7131 class TaskSet < Struct.new( :id, :task_set_arn, :started_by, :external_id, :status, :task_definition, :computed_desired_count, :pending_count, :running_count, :created_at, :updated_at, :launch_type, :platform_version, :network_configuration, :load_balancers, :scale, :stability_status, :stability_status_at) include Aws::Structure end |