Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data TaskSet = TaskSet' {
- capacityProviderStrategy :: Maybe [CapacityProviderStrategyItem]
- clusterArn :: Maybe Text
- computedDesiredCount :: Maybe Int
- createdAt :: Maybe POSIX
- externalId :: Maybe Text
- id :: Maybe Text
- launchType :: Maybe LaunchType
- loadBalancers :: Maybe [LoadBalancer]
- networkConfiguration :: Maybe NetworkConfiguration
- pendingCount :: Maybe Int
- platformFamily :: Maybe Text
- platformVersion :: Maybe Text
- runningCount :: Maybe Int
- scale :: Maybe Scale
- serviceArn :: Maybe Text
- serviceRegistries :: Maybe [ServiceRegistry]
- stabilityStatus :: Maybe StabilityStatus
- stabilityStatusAt :: Maybe POSIX
- startedBy :: Maybe Text
- status :: Maybe Text
- tags :: Maybe [Tag]
- taskDefinition :: Maybe Text
- taskSetArn :: Maybe Text
- updatedAt :: Maybe POSIX
- newTaskSet :: TaskSet
- taskSet_capacityProviderStrategy :: Lens' TaskSet (Maybe [CapacityProviderStrategyItem])
- taskSet_clusterArn :: Lens' TaskSet (Maybe Text)
- taskSet_computedDesiredCount :: Lens' TaskSet (Maybe Int)
- taskSet_createdAt :: Lens' TaskSet (Maybe UTCTime)
- taskSet_externalId :: Lens' TaskSet (Maybe Text)
- taskSet_id :: Lens' TaskSet (Maybe Text)
- taskSet_launchType :: Lens' TaskSet (Maybe LaunchType)
- taskSet_loadBalancers :: Lens' TaskSet (Maybe [LoadBalancer])
- taskSet_networkConfiguration :: Lens' TaskSet (Maybe NetworkConfiguration)
- taskSet_pendingCount :: Lens' TaskSet (Maybe Int)
- taskSet_platformFamily :: Lens' TaskSet (Maybe Text)
- taskSet_platformVersion :: Lens' TaskSet (Maybe Text)
- taskSet_runningCount :: Lens' TaskSet (Maybe Int)
- taskSet_scale :: Lens' TaskSet (Maybe Scale)
- taskSet_serviceArn :: Lens' TaskSet (Maybe Text)
- taskSet_serviceRegistries :: Lens' TaskSet (Maybe [ServiceRegistry])
- taskSet_stabilityStatus :: Lens' TaskSet (Maybe StabilityStatus)
- taskSet_stabilityStatusAt :: Lens' TaskSet (Maybe UTCTime)
- taskSet_startedBy :: Lens' TaskSet (Maybe Text)
- taskSet_status :: Lens' TaskSet (Maybe Text)
- taskSet_tags :: Lens' TaskSet (Maybe [Tag])
- taskSet_taskDefinition :: Lens' TaskSet (Maybe Text)
- taskSet_taskSetArn :: Lens' TaskSet (Maybe Text)
- taskSet_updatedAt :: Lens' TaskSet (Maybe UTCTime)
Documentation
Information about a set of Amazon ECS tasks in either an CodeDeploy or
an EXTERNAL
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.
See: newTaskSet
smart constructor.
TaskSet' | |
|
Instances
newTaskSet :: TaskSet Source #
Create a value of TaskSet
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:capacityProviderStrategy:TaskSet'
, taskSet_capacityProviderStrategy
- The capacity provider strategy that are associated with the task set.
$sel:clusterArn:TaskSet'
, taskSet_clusterArn
- The Amazon Resource Name (ARN) of the cluster that the service that
hosts the task set exists in.
$sel:computedDesiredCount:TaskSet'
, taskSet_computedDesiredCount
- The computed desired count for the task set. This is calculated by
multiplying the service's desiredCount
by the task set's scale
percentage. The result is always rounded up. For example, if the
computed desired count is 1.2, it rounds up to 2 tasks.
$sel:createdAt:TaskSet'
, taskSet_createdAt
- The Unix timestamp for the time when the task set was created.
$sel:externalId:TaskSet'
, taskSet_externalId
- The external ID associated with the task set.
If an CodeDeploy deployment created a task set, the externalId
parameter contains the CodeDeploy deployment ID.
If a task set is created for an external deployment and is associated
with a service discovery registry, the externalId
parameter contains
the ECS_TASK_SET_EXTERNAL_ID
Cloud Map attribute.
$sel:id:TaskSet'
, taskSet_id
- The ID of the task set.
$sel:launchType:TaskSet'
, taskSet_launchType
- 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.
$sel:loadBalancers:TaskSet'
, taskSet_loadBalancers
- Details on a load balancer that are used with a task set.
$sel:networkConfiguration:TaskSet'
, taskSet_networkConfiguration
- The network configuration for the task set.
$sel:pendingCount:TaskSet'
, taskSet_pendingCount
- 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's restarted after being in the
STOPPED
state.
$sel:platformFamily:TaskSet'
, taskSet_platformFamily
- The operating system that your tasks in the set are running on. A
platform family is specified only for tasks that use the Fargate launch
type.
All tasks in the set must have the same value.
$sel:platformVersion:TaskSet'
, taskSet_platformVersion
- The Fargate platform version where the tasks in the task set are
running. A platform version is only specified for tasks run on Fargate.
For more information, see
Fargate platform versions
in the Amazon Elastic Container Service Developer Guide.
$sel:runningCount:TaskSet'
, taskSet_runningCount
- 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.
$sel:scale:TaskSet'
, taskSet_scale
- A floating-point percentage of your desired number of tasks to place and
keep running in the task set.
$sel:serviceArn:TaskSet'
, taskSet_serviceArn
- The Amazon Resource Name (ARN) of the service the task set exists in.
$sel:serviceRegistries:TaskSet'
, taskSet_serviceRegistries
- The details for the service discovery registries to assign to this task
set. For more information, see
Service discovery.
$sel:stabilityStatus:TaskSet'
, taskSet_stabilityStatus
- The stability status. This indicates whether the task set has reached a
steady state. If the following conditions are met, the task set are in
STEADY_STATE
:
- The task
runningCount
is equal to thecomputedDesiredCount
. - The
pendingCount
is0
. - There are no tasks that are 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 aren't met, the stability status returns
STABILIZING
.
$sel:stabilityStatusAt:TaskSet'
, taskSet_stabilityStatusAt
- The Unix timestamp for the time when the task set stability status was
retrieved.
$sel:startedBy:TaskSet'
, taskSet_startedBy
- The tag specified when a task set is started. If an CodeDeploy
deployment created the task set, the startedBy
parameter is
CODE_DEPLOY
. If an external deployment created the task set, the
startedBy
field isn't used.
$sel:status:TaskSet'
, taskSet_status
- The status of the task set. The following describes each state.
- PRIMARY
- The task set is serving production traffic.
- ACTIVE
- The task set isn't serving production traffic.
- DRAINING
- The tasks in the task set are being stopped, and their corresponding targets are being deregistered from their target group.
$sel:tags:TaskSet'
, taskSet_tags
- The metadata that you apply to the task set to help you categorize and
organize them. Each tag consists of a key and an optional value. You
define both.
The following basic restrictions apply to tags:
- Maximum number of tags per resource - 50
- For each resource, each tag key must be unique, and each tag key can have only one value.
- Maximum key length - 128 Unicode characters in UTF-8
- Maximum value length - 256 Unicode characters in UTF-8
- If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
- Tag keys and values are case-sensitive.
- Do not use
aws:
,AWS:
, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
$sel:taskDefinition:TaskSet'
, taskSet_taskDefinition
- The task definition that the task set is using.
$sel:taskSetArn:TaskSet'
, taskSet_taskSetArn
- The Amazon Resource Name (ARN) of the task set.
$sel:updatedAt:TaskSet'
, taskSet_updatedAt
- The Unix timestamp for the time when the task set was last updated.
taskSet_capacityProviderStrategy :: Lens' TaskSet (Maybe [CapacityProviderStrategyItem]) Source #
The capacity provider strategy that are associated with the task set.
taskSet_clusterArn :: Lens' TaskSet (Maybe Text) Source #
The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in.
taskSet_computedDesiredCount :: Lens' TaskSet (Maybe Int) Source #
The computed desired count for the task set. This is calculated by
multiplying the service's desiredCount
by the task set's scale
percentage. The result is always rounded up. For example, if the
computed desired count is 1.2, it rounds up to 2 tasks.
taskSet_createdAt :: Lens' TaskSet (Maybe UTCTime) Source #
The Unix timestamp for the time when the task set was created.
taskSet_externalId :: Lens' TaskSet (Maybe Text) Source #
The external ID associated with the task set.
If an CodeDeploy deployment created a task set, the externalId
parameter contains the CodeDeploy deployment ID.
If a task set is created for an external deployment and is associated
with a service discovery registry, the externalId
parameter contains
the ECS_TASK_SET_EXTERNAL_ID
Cloud Map attribute.
taskSet_launchType :: Lens' TaskSet (Maybe LaunchType) Source #
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.
taskSet_loadBalancers :: Lens' TaskSet (Maybe [LoadBalancer]) Source #
Details on a load balancer that are used with a task set.
taskSet_networkConfiguration :: Lens' TaskSet (Maybe NetworkConfiguration) Source #
The network configuration for the task set.
taskSet_pendingCount :: Lens' TaskSet (Maybe Int) Source #
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's restarted after being in the
STOPPED
state.
taskSet_platformFamily :: Lens' TaskSet (Maybe Text) Source #
The operating system that your tasks in the set are running on. A platform family is specified only for tasks that use the Fargate launch type.
All tasks in the set must have the same value.
taskSet_platformVersion :: Lens' TaskSet (Maybe Text) Source #
The Fargate platform version where the tasks in the task set are running. A platform version is only specified for tasks run on Fargate. For more information, see Fargate platform versions in the Amazon Elastic Container Service Developer Guide.
taskSet_runningCount :: Lens' TaskSet (Maybe Int) Source #
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.
taskSet_scale :: Lens' TaskSet (Maybe Scale) Source #
A floating-point percentage of your desired number of tasks to place and keep running in the task set.
taskSet_serviceArn :: Lens' TaskSet (Maybe Text) Source #
The Amazon Resource Name (ARN) of the service the task set exists in.
taskSet_serviceRegistries :: Lens' TaskSet (Maybe [ServiceRegistry]) Source #
The details for the service discovery registries to assign to this task set. For more information, see Service discovery.
taskSet_stabilityStatus :: Lens' TaskSet (Maybe StabilityStatus) Source #
The stability status. This indicates whether the task set has reached a
steady state. If the following conditions are met, the task set are in
STEADY_STATE
:
- The task
runningCount
is equal to thecomputedDesiredCount
. - The
pendingCount
is0
. - There are no tasks that are 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 aren't met, the stability status returns
STABILIZING
.
taskSet_stabilityStatusAt :: Lens' TaskSet (Maybe UTCTime) Source #
The Unix timestamp for the time when the task set stability status was retrieved.
taskSet_startedBy :: Lens' TaskSet (Maybe Text) Source #
The tag specified when a task set is started. If an CodeDeploy
deployment created the task set, the startedBy
parameter is
CODE_DEPLOY
. If an external deployment created the task set, the
startedBy
field isn't used.
taskSet_status :: Lens' TaskSet (Maybe Text) Source #
The status of the task set. The following describes each state.
- PRIMARY
- The task set is serving production traffic.
- ACTIVE
- The task set isn't serving production traffic.
- DRAINING
- The tasks in the task set are being stopped, and their corresponding targets are being deregistered from their target group.
taskSet_tags :: Lens' TaskSet (Maybe [Tag]) Source #
The metadata that you apply to the task set to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:
- Maximum number of tags per resource - 50
- For each resource, each tag key must be unique, and each tag key can have only one value.
- Maximum key length - 128 Unicode characters in UTF-8
- Maximum value length - 256 Unicode characters in UTF-8
- If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
- Tag keys and values are case-sensitive.
- Do not use
aws:
,AWS:
, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
taskSet_taskDefinition :: Lens' TaskSet (Maybe Text) Source #
The task definition that the task set is using.