libZSservicesZSamazonka-ecsZSamazonka-ecs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ECS.Types.Deployment

Description

 
Synopsis

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.

Constructors

Deployment' 

Fields

  • rolloutState :: Maybe DeploymentRolloutState

    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.

  • runningCount :: Maybe Int

    The number of tasks in the deployment that are in the RUNNING status.

  • status :: Maybe Text

    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.
  • createdAt :: Maybe POSIX

    The Unix timestamp for when the service deployment was created.

  • platformVersion :: Maybe Text

    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.

  • desiredCount :: Maybe Int

    The most recent desired count of tasks that was specified for the service to deploy or maintain.

  • pendingCount :: Maybe Int

    The number of tasks in the deployment that are in the PENDING status.

  • id :: Maybe Text

    The ID of the deployment.

  • failedTasks :: Maybe Int

    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.

  • launchType :: Maybe 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.

  • updatedAt :: Maybe POSIX

    The Unix timestamp for when the service deployment was last updated.

  • taskDefinition :: Maybe Text

    The most recent task definition that was specified for the tasks in the service to use.

  • rolloutStateReason :: Maybe Text

    A description of the rollout state of a deployment.

  • networkConfiguration :: Maybe NetworkConfiguration

    The VPC subnet and security group configuration for tasks that receive their own elastic network interface by using the awsvpc networking mode.

  • capacityProviderStrategy :: Maybe [CapacityProviderStrategyItem]

    The capacity provider strategy that the deployment is using.

Instances

Instances details
Eq Deployment Source # 
Instance details

Defined in Amazonka.ECS.Types.Deployment

Read Deployment Source # 
Instance details

Defined in Amazonka.ECS.Types.Deployment

Show Deployment Source # 
Instance details

Defined in Amazonka.ECS.Types.Deployment

Generic Deployment Source # 
Instance details

Defined in Amazonka.ECS.Types.Deployment

Associated Types

type Rep Deployment :: Type -> Type #

NFData Deployment Source # 
Instance details

Defined in Amazonka.ECS.Types.Deployment

Methods

rnf :: Deployment -> () #

Hashable Deployment Source # 
Instance details

Defined in Amazonka.ECS.Types.Deployment

FromJSON Deployment Source # 
Instance details

Defined in Amazonka.ECS.Types.Deployment

type Rep Deployment Source # 
Instance details

Defined in Amazonka.ECS.Types.Deployment

type Rep Deployment = D1 ('MetaData "Deployment" "Amazonka.ECS.Types.Deployment" "libZSservicesZSamazonka-ecsZSamazonka-ecs" 'False) (C1 ('MetaCons "Deployment'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "rolloutState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeploymentRolloutState)) :*: (S1 ('MetaSel ('Just "runningCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "platformVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "desiredCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "pendingCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))) :*: (((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "failedTasks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "launchType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LaunchType)) :*: S1 ('MetaSel ('Just "updatedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) :*: ((S1 ('MetaSel ('Just "taskDefinition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "rolloutStateReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "networkConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NetworkConfiguration)) :*: S1 ('MetaSel ('Just "capacityProviderStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CapacityProviderStrategyItem])))))))

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.