Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Deployment = Deployment' {
- rolloutState :: Maybe DeploymentRolloutState
- runningCount :: Maybe Int
- status :: Maybe Text
- createdAt :: Maybe POSIX
- platformVersion :: Maybe Text
- desiredCount :: Maybe Int
- pendingCount :: Maybe Int
- id :: Maybe Text
- failedTasks :: Maybe Int
- launchType :: Maybe LaunchType
- updatedAt :: Maybe POSIX
- taskDefinition :: Maybe Text
- rolloutStateReason :: Maybe Text
- networkConfiguration :: Maybe NetworkConfiguration
- capacityProviderStrategy :: Maybe [CapacityProviderStrategyItem]
- newDeployment :: Deployment
- deployment_rolloutState :: Lens' Deployment (Maybe DeploymentRolloutState)
- deployment_runningCount :: Lens' Deployment (Maybe Int)
- deployment_status :: Lens' Deployment (Maybe Text)
- deployment_createdAt :: Lens' Deployment (Maybe UTCTime)
- deployment_platformVersion :: Lens' Deployment (Maybe Text)
- deployment_desiredCount :: Lens' Deployment (Maybe Int)
- deployment_pendingCount :: Lens' Deployment (Maybe Int)
- deployment_id :: Lens' Deployment (Maybe Text)
- deployment_failedTasks :: Lens' Deployment (Maybe Int)
- deployment_launchType :: Lens' Deployment (Maybe LaunchType)
- deployment_updatedAt :: Lens' Deployment (Maybe UTCTime)
- deployment_taskDefinition :: Lens' Deployment (Maybe Text)
- deployment_rolloutStateReason :: Lens' Deployment (Maybe Text)
- deployment_networkConfiguration :: Lens' Deployment (Maybe NetworkConfiguration)
- deployment_capacityProviderStrategy :: Lens' Deployment (Maybe [CapacityProviderStrategyItem])
Documentation
data Deployment Source #
The details of an Amazon ECS service deployment. This is used only when
a service uses the ECS
deployment controller type.
See: newDeployment
smart constructor.
Deployment' | |
|
Instances
newDeployment :: Deployment Source #
Create a value of Deployment
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:rolloutState:Deployment'
, deployment_rolloutState
- The rolloutState
of a service is only returned for services that use
the rolling update (ECS
) deployment type that are not behind a Classic
Load Balancer.
The rollout state of the deployment. When a service deployment is
started, it begins in an IN_PROGRESS
state. When the service reaches a
steady state, the deployment will transition to a COMPLETED
state. If
the service fails to reach a steady state and circuit breaker is
enabled, the deployment will transition to a FAILED
state. A
deployment in FAILED
state will launch no new tasks. For more
information, see DeploymentCircuitBreaker.
$sel:runningCount:Deployment'
, deployment_runningCount
- The number of tasks in the deployment that are in the RUNNING
status.
$sel:status:Deployment'
, deployment_status
- The status of the deployment. The following describes each state:
- PRIMARY
- The most recent deployment of a service.
- ACTIVE
- A service deployment that still has running tasks, but are in the
process of being replaced with a new
PRIMARY
deployment. - INACTIVE
- A deployment that has been completely replaced.
$sel:createdAt:Deployment'
, deployment_createdAt
- The Unix timestamp for when the service deployment was created.
$sel:platformVersion:Deployment'
, deployment_platformVersion
- The platform version on which your tasks in the service 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
Fargate Platform Versions
in the Amazon Elastic Container Service Developer Guide.
$sel:desiredCount:Deployment'
, deployment_desiredCount
- The most recent desired count of tasks that was specified for the
service to deploy or maintain.
$sel:pendingCount:Deployment'
, deployment_pendingCount
- The number of tasks in the deployment that are in the PENDING
status.
$sel:id:Deployment'
, deployment_id
- The ID of the deployment.
$sel:failedTasks:Deployment'
, deployment_failedTasks
- The number of consecutively failed tasks in the deployment. A task is
considered a failure if the service scheduler can't launch the task,
the task doesn't transition to a RUNNING
state, or if it fails any of
its defined health checks and is stopped.
Once a service deployment has one or more successfully running tasks, the failed task count resets to zero and stops being evaluated.
$sel:launchType:Deployment'
, deployment_launchType
- The launch type the tasks in the service are using. For more
information, see
Amazon ECS Launch Types
in the Amazon Elastic Container Service Developer Guide.
$sel:updatedAt:Deployment'
, deployment_updatedAt
- The Unix timestamp for when the service deployment was last updated.
$sel:taskDefinition:Deployment'
, deployment_taskDefinition
- The most recent task definition that was specified for the tasks in the
service to use.
$sel:rolloutStateReason:Deployment'
, deployment_rolloutStateReason
- A description of the rollout state of a deployment.
$sel:networkConfiguration:Deployment'
, deployment_networkConfiguration
- The VPC subnet and security group configuration for tasks that receive
their own elastic network interface by using the awsvpc
networking
mode.
$sel:capacityProviderStrategy:Deployment'
, deployment_capacityProviderStrategy
- The capacity provider strategy that the deployment is using.
deployment_rolloutState :: Lens' Deployment (Maybe DeploymentRolloutState) Source #
The rolloutState
of a service is only returned for services that use
the rolling update (ECS
) deployment type that are not behind a Classic
Load Balancer.
The rollout state of the deployment. When a service deployment is
started, it begins in an IN_PROGRESS
state. When the service reaches a
steady state, the deployment will transition to a COMPLETED
state. If
the service fails to reach a steady state and circuit breaker is
enabled, the deployment will transition to a FAILED
state. A
deployment in FAILED
state will launch no new tasks. For more
information, see DeploymentCircuitBreaker.
deployment_runningCount :: Lens' Deployment (Maybe Int) Source #
The number of tasks in the deployment that are in the RUNNING
status.
deployment_status :: Lens' Deployment (Maybe Text) Source #
The status of the deployment. The following describes each state:
- PRIMARY
- The most recent deployment of a service.
- ACTIVE
- A service deployment that still has running tasks, but are in the
process of being replaced with a new
PRIMARY
deployment. - INACTIVE
- A deployment that has been completely replaced.
deployment_createdAt :: Lens' Deployment (Maybe UTCTime) Source #
The Unix timestamp for when the service deployment was created.
deployment_platformVersion :: Lens' Deployment (Maybe Text) Source #
The platform version on which your tasks in the service 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
Fargate Platform Versions
in the Amazon Elastic Container Service Developer Guide.
deployment_desiredCount :: Lens' Deployment (Maybe Int) Source #
The most recent desired count of tasks that was specified for the service to deploy or maintain.
deployment_pendingCount :: Lens' Deployment (Maybe Int) Source #
The number of tasks in the deployment that are in the PENDING
status.
deployment_id :: Lens' Deployment (Maybe Text) Source #
The ID of the deployment.
deployment_failedTasks :: Lens' Deployment (Maybe Int) Source #
The number of consecutively failed tasks in the deployment. A task is
considered a failure if the service scheduler can't launch the task,
the task doesn't transition to a RUNNING
state, or if it fails any of
its defined health checks and is stopped.
Once a service deployment has one or more successfully running tasks, the failed task count resets to zero and stops being evaluated.
deployment_launchType :: Lens' Deployment (Maybe LaunchType) Source #
The launch type the tasks in the service are using. For more information, see Amazon ECS Launch Types in the Amazon Elastic Container Service Developer Guide.
deployment_updatedAt :: Lens' Deployment (Maybe UTCTime) Source #
The Unix timestamp for when the service deployment was last updated.
deployment_taskDefinition :: Lens' Deployment (Maybe Text) Source #
The most recent task definition that was specified for the tasks in the service to use.
deployment_rolloutStateReason :: Lens' Deployment (Maybe Text) Source #
A description of the rollout state of a deployment.
deployment_networkConfiguration :: Lens' Deployment (Maybe NetworkConfiguration) Source #
The VPC subnet and security group configuration for tasks that receive
their own elastic network interface by using the awsvpc
networking
mode.
deployment_capacityProviderStrategy :: Lens' Deployment (Maybe [CapacityProviderStrategyItem]) Source #
The capacity provider strategy that the deployment is using.