libZSservicesZSamazonka-codedeployZSamazonka-codedeploy
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.CodeDeploy.Types.DeploymentInfo

Description

 
Synopsis

Documentation

data DeploymentInfo Source #

Information about a deployment.

See: newDeploymentInfo smart constructor.

Constructors

DeploymentInfo' 

Fields

  • creator :: Maybe DeploymentCreator

    The means by which the deployment was created:

    • user: A user created the deployment.
    • autoscaling: Amazon EC2 Auto Scaling created the deployment.
    • codeDeployRollback: A rollback process created the deployment.
    • CodeDeployAutoUpdate: An auto-update process created the deployment when it detected outdated EC2 instances.
  • status :: Maybe DeploymentStatus

    The current state of the deployment as a whole.

  • deploymentId :: Maybe Text

    The unique ID of a deployment.

  • deploymentConfigName :: Maybe Text

    The deployment configuration name.

  • computePlatform :: Maybe ComputePlatform

    The destination platform type for the deployment (Lambda, Server, or ECS).

  • previousRevision :: Maybe RevisionLocation

    Information about the application revision that was deployed to the deployment group before the most recent successful deployment.

  • instanceTerminationWaitTimeStarted :: Maybe Bool

    Indicates whether the wait period set for the termination of instances in the original environment has started. Status is 'false' if the KEEP_ALIVE option is specified. Otherwise, 'true' as soon as the termination wait period starts.

  • deploymentStatusMessages :: Maybe [Text]

    Messages that contain information about the status of a deployment.

  • relatedDeployments :: Maybe RelatedDeployments
     
  • startTime :: Maybe POSIX

    A timestamp that indicates when the deployment was deployed to the deployment group.

    In some cases, the reported value of the start time might be later than the complete time. This is due to differences in the clock settings of backend servers that participate in the deployment process.

  • completeTime :: Maybe POSIX

    A timestamp that indicates when the deployment was complete.

  • blueGreenDeploymentConfiguration :: Maybe BlueGreenDeploymentConfiguration

    Information about blue/green deployment options for this deployment.

  • errorInformation :: Maybe ErrorInformation

    Information about any error associated with this deployment.

  • loadBalancerInfo :: Maybe LoadBalancerInfo

    Information about the load balancer used in the deployment.

  • additionalDeploymentStatusInfo :: Maybe Text

    Provides information about the results of a deployment, such as whether instances in the original environment in a blue/green deployment were not terminated.

  • deploymentOverview :: Maybe DeploymentOverview

    A summary of the deployment status of the instances in the deployment.

  • fileExistsBehavior :: Maybe FileExistsBehavior

    Information about how AWS CodeDeploy handles files that already exist in a deployment target location but weren't part of the previous successful deployment.

    • DISALLOW: The deployment fails. This is also the default behavior if no option is specified.
    • OVERWRITE: The version of the file from the application revision currently being deployed replaces the version already on the instance.
    • RETAIN: The version of the file already on the instance is kept and used as part of the new deployment.
  • applicationName :: Maybe Text

    The application name.

  • rollbackInfo :: Maybe RollbackInfo

    Information about a deployment rollback.

  • externalId :: Maybe Text

    The unique ID for an external resource (for example, a CloudFormation stack ID) that is linked to this deployment.

  • targetInstances :: Maybe TargetInstances

    Information about the instances that belong to the replacement environment in a blue/green deployment.

  • revision :: Maybe RevisionLocation

    Information about the location of stored application artifacts and the service from which to retrieve them.

  • description :: Maybe Text

    A comment about the deployment.

  • deploymentStyle :: Maybe DeploymentStyle

    Information about the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer.

  • createTime :: Maybe POSIX

    A timestamp that indicates when the deployment was created.

  • autoRollbackConfiguration :: Maybe AutoRollbackConfiguration

    Information about the automatic rollback configuration associated with the deployment.

  • updateOutdatedInstancesOnly :: Maybe Bool

    Indicates whether only instances that are not running the latest application revision are to be deployed to.

  • deploymentGroupName :: Maybe Text

    The deployment group name.

  • ignoreApplicationStopFailures :: Maybe Bool

    If true, then if an ApplicationStop, BeforeBlockTraffic, or AfterBlockTraffic deployment lifecycle event to an instance fails, then the deployment continues to the next deployment lifecycle event. For example, if ApplicationStop fails, the deployment continues with DownloadBundle. If BeforeBlockTraffic fails, the deployment continues with BlockTraffic. If AfterBlockTraffic fails, the deployment continues with ApplicationStop.

    If false or not specified, then if a lifecycle event fails during a deployment to an instance, that deployment fails. If deployment to that instance is part of an overall deployment and the number of healthy hosts is not less than the minimum number of healthy hosts, then a deployment to the next instance is attempted.

    During a deployment, the AWS CodeDeploy agent runs the scripts specified for ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic in the AppSpec file from the previous successful deployment. (All other scripts are run from the AppSpec file in the current deployment.) If one of these scripts contains an error and does not run successfully, the deployment can fail.

    If the cause of the failure is a script from the last successful deployment that will never run successfully, create a new deployment and use ignoreApplicationStopFailures to specify that the ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic failures should be ignored.

Instances

Instances details
Eq DeploymentInfo Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.DeploymentInfo

Read DeploymentInfo Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.DeploymentInfo

Show DeploymentInfo Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.DeploymentInfo

Generic DeploymentInfo Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.DeploymentInfo

Associated Types

type Rep DeploymentInfo :: Type -> Type #

NFData DeploymentInfo Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.DeploymentInfo

Methods

rnf :: DeploymentInfo -> () #

Hashable DeploymentInfo Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.DeploymentInfo

FromJSON DeploymentInfo Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.DeploymentInfo

type Rep DeploymentInfo Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.DeploymentInfo

type Rep DeploymentInfo = D1 ('MetaData "DeploymentInfo" "Amazonka.CodeDeploy.Types.DeploymentInfo" "libZSservicesZSamazonka-codedeployZSamazonka-codedeploy" 'False) (C1 ('MetaCons "DeploymentInfo'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "creator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeploymentCreator)) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeploymentStatus)) :*: S1 ('MetaSel ('Just "deploymentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "deploymentConfigName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "computePlatform") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ComputePlatform))) :*: (S1 ('MetaSel ('Just "previousRevision") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RevisionLocation)) :*: S1 ('MetaSel ('Just "instanceTerminationWaitTimeStarted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))) :*: ((S1 ('MetaSel ('Just "deploymentStatusMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "relatedDeployments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RelatedDeployments)) :*: S1 ('MetaSel ('Just "startTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) :*: ((S1 ('MetaSel ('Just "completeTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "blueGreenDeploymentConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BlueGreenDeploymentConfiguration))) :*: (S1 ('MetaSel ('Just "errorInformation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ErrorInformation)) :*: S1 ('MetaSel ('Just "loadBalancerInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LoadBalancerInfo)))))) :*: (((S1 ('MetaSel ('Just "additionalDeploymentStatusInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "deploymentOverview") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeploymentOverview)) :*: S1 ('MetaSel ('Just "fileExistsBehavior") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FileExistsBehavior)))) :*: ((S1 ('MetaSel ('Just "applicationName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "rollbackInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RollbackInfo))) :*: (S1 ('MetaSel ('Just "externalId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "targetInstances") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TargetInstances))))) :*: (((S1 ('MetaSel ('Just "revision") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RevisionLocation)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "deploymentStyle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeploymentStyle)) :*: S1 ('MetaSel ('Just "createTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) :*: ((S1 ('MetaSel ('Just "autoRollbackConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AutoRollbackConfiguration)) :*: S1 ('MetaSel ('Just "updateOutdatedInstancesOnly") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "deploymentGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "ignoreApplicationStopFailures") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))))))

newDeploymentInfo :: DeploymentInfo Source #

Create a value of DeploymentInfo 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:creator:DeploymentInfo', deploymentInfo_creator - The means by which the deployment was created:

  • user: A user created the deployment.
  • autoscaling: Amazon EC2 Auto Scaling created the deployment.
  • codeDeployRollback: A rollback process created the deployment.
  • CodeDeployAutoUpdate: An auto-update process created the deployment when it detected outdated EC2 instances.

$sel:status:DeploymentInfo', deploymentInfo_status - The current state of the deployment as a whole.

$sel:deploymentId:DeploymentInfo', deploymentInfo_deploymentId - The unique ID of a deployment.

$sel:deploymentConfigName:DeploymentInfo', deploymentInfo_deploymentConfigName - The deployment configuration name.

$sel:computePlatform:DeploymentInfo', deploymentInfo_computePlatform - The destination platform type for the deployment (Lambda, Server, or ECS).

$sel:previousRevision:DeploymentInfo', deploymentInfo_previousRevision - Information about the application revision that was deployed to the deployment group before the most recent successful deployment.

$sel:instanceTerminationWaitTimeStarted:DeploymentInfo', deploymentInfo_instanceTerminationWaitTimeStarted - Indicates whether the wait period set for the termination of instances in the original environment has started. Status is 'false' if the KEEP_ALIVE option is specified. Otherwise, 'true' as soon as the termination wait period starts.

$sel:deploymentStatusMessages:DeploymentInfo', deploymentInfo_deploymentStatusMessages - Messages that contain information about the status of a deployment.

$sel:relatedDeployments:DeploymentInfo', deploymentInfo_relatedDeployments - Undocumented member.

$sel:startTime:DeploymentInfo', deploymentInfo_startTime - A timestamp that indicates when the deployment was deployed to the deployment group.

In some cases, the reported value of the start time might be later than the complete time. This is due to differences in the clock settings of backend servers that participate in the deployment process.

$sel:completeTime:DeploymentInfo', deploymentInfo_completeTime - A timestamp that indicates when the deployment was complete.

$sel:blueGreenDeploymentConfiguration:DeploymentInfo', deploymentInfo_blueGreenDeploymentConfiguration - Information about blue/green deployment options for this deployment.

$sel:errorInformation:DeploymentInfo', deploymentInfo_errorInformation - Information about any error associated with this deployment.

$sel:loadBalancerInfo:DeploymentInfo', deploymentInfo_loadBalancerInfo - Information about the load balancer used in the deployment.

$sel:additionalDeploymentStatusInfo:DeploymentInfo', deploymentInfo_additionalDeploymentStatusInfo - Provides information about the results of a deployment, such as whether instances in the original environment in a blue/green deployment were not terminated.

$sel:deploymentOverview:DeploymentInfo', deploymentInfo_deploymentOverview - A summary of the deployment status of the instances in the deployment.

$sel:fileExistsBehavior:DeploymentInfo', deploymentInfo_fileExistsBehavior - Information about how AWS CodeDeploy handles files that already exist in a deployment target location but weren't part of the previous successful deployment.

  • DISALLOW: The deployment fails. This is also the default behavior if no option is specified.
  • OVERWRITE: The version of the file from the application revision currently being deployed replaces the version already on the instance.
  • RETAIN: The version of the file already on the instance is kept and used as part of the new deployment.

$sel:applicationName:DeploymentInfo', deploymentInfo_applicationName - The application name.

$sel:rollbackInfo:DeploymentInfo', deploymentInfo_rollbackInfo - Information about a deployment rollback.

$sel:externalId:DeploymentInfo', deploymentInfo_externalId - The unique ID for an external resource (for example, a CloudFormation stack ID) that is linked to this deployment.

$sel:targetInstances:DeploymentInfo', deploymentInfo_targetInstances - Information about the instances that belong to the replacement environment in a blue/green deployment.

$sel:revision:DeploymentInfo', deploymentInfo_revision - Information about the location of stored application artifacts and the service from which to retrieve them.

$sel:description:DeploymentInfo', deploymentInfo_description - A comment about the deployment.

$sel:deploymentStyle:DeploymentInfo', deploymentInfo_deploymentStyle - Information about the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer.

$sel:createTime:DeploymentInfo', deploymentInfo_createTime - A timestamp that indicates when the deployment was created.

$sel:autoRollbackConfiguration:DeploymentInfo', deploymentInfo_autoRollbackConfiguration - Information about the automatic rollback configuration associated with the deployment.

$sel:updateOutdatedInstancesOnly:DeploymentInfo', deploymentInfo_updateOutdatedInstancesOnly - Indicates whether only instances that are not running the latest application revision are to be deployed to.

$sel:deploymentGroupName:DeploymentInfo', deploymentInfo_deploymentGroupName - The deployment group name.

$sel:ignoreApplicationStopFailures:DeploymentInfo', deploymentInfo_ignoreApplicationStopFailures - If true, then if an ApplicationStop, BeforeBlockTraffic, or AfterBlockTraffic deployment lifecycle event to an instance fails, then the deployment continues to the next deployment lifecycle event. For example, if ApplicationStop fails, the deployment continues with DownloadBundle. If BeforeBlockTraffic fails, the deployment continues with BlockTraffic. If AfterBlockTraffic fails, the deployment continues with ApplicationStop.

If false or not specified, then if a lifecycle event fails during a deployment to an instance, that deployment fails. If deployment to that instance is part of an overall deployment and the number of healthy hosts is not less than the minimum number of healthy hosts, then a deployment to the next instance is attempted.

During a deployment, the AWS CodeDeploy agent runs the scripts specified for ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic in the AppSpec file from the previous successful deployment. (All other scripts are run from the AppSpec file in the current deployment.) If one of these scripts contains an error and does not run successfully, the deployment can fail.

If the cause of the failure is a script from the last successful deployment that will never run successfully, create a new deployment and use ignoreApplicationStopFailures to specify that the ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic failures should be ignored.

deploymentInfo_creator :: Lens' DeploymentInfo (Maybe DeploymentCreator) Source #

The means by which the deployment was created:

  • user: A user created the deployment.
  • autoscaling: Amazon EC2 Auto Scaling created the deployment.
  • codeDeployRollback: A rollback process created the deployment.
  • CodeDeployAutoUpdate: An auto-update process created the deployment when it detected outdated EC2 instances.

deploymentInfo_status :: Lens' DeploymentInfo (Maybe DeploymentStatus) Source #

The current state of the deployment as a whole.

deploymentInfo_computePlatform :: Lens' DeploymentInfo (Maybe ComputePlatform) Source #

The destination platform type for the deployment (Lambda, Server, or ECS).

deploymentInfo_previousRevision :: Lens' DeploymentInfo (Maybe RevisionLocation) Source #

Information about the application revision that was deployed to the deployment group before the most recent successful deployment.

deploymentInfo_instanceTerminationWaitTimeStarted :: Lens' DeploymentInfo (Maybe Bool) Source #

Indicates whether the wait period set for the termination of instances in the original environment has started. Status is 'false' if the KEEP_ALIVE option is specified. Otherwise, 'true' as soon as the termination wait period starts.

deploymentInfo_deploymentStatusMessages :: Lens' DeploymentInfo (Maybe [Text]) Source #

Messages that contain information about the status of a deployment.

deploymentInfo_startTime :: Lens' DeploymentInfo (Maybe UTCTime) Source #

A timestamp that indicates when the deployment was deployed to the deployment group.

In some cases, the reported value of the start time might be later than the complete time. This is due to differences in the clock settings of backend servers that participate in the deployment process.

deploymentInfo_completeTime :: Lens' DeploymentInfo (Maybe UTCTime) Source #

A timestamp that indicates when the deployment was complete.

deploymentInfo_blueGreenDeploymentConfiguration :: Lens' DeploymentInfo (Maybe BlueGreenDeploymentConfiguration) Source #

Information about blue/green deployment options for this deployment.

deploymentInfo_errorInformation :: Lens' DeploymentInfo (Maybe ErrorInformation) Source #

Information about any error associated with this deployment.

deploymentInfo_loadBalancerInfo :: Lens' DeploymentInfo (Maybe LoadBalancerInfo) Source #

Information about the load balancer used in the deployment.

deploymentInfo_additionalDeploymentStatusInfo :: Lens' DeploymentInfo (Maybe Text) Source #

Provides information about the results of a deployment, such as whether instances in the original environment in a blue/green deployment were not terminated.

deploymentInfo_deploymentOverview :: Lens' DeploymentInfo (Maybe DeploymentOverview) Source #

A summary of the deployment status of the instances in the deployment.

deploymentInfo_fileExistsBehavior :: Lens' DeploymentInfo (Maybe FileExistsBehavior) Source #

Information about how AWS CodeDeploy handles files that already exist in a deployment target location but weren't part of the previous successful deployment.

  • DISALLOW: The deployment fails. This is also the default behavior if no option is specified.
  • OVERWRITE: The version of the file from the application revision currently being deployed replaces the version already on the instance.
  • RETAIN: The version of the file already on the instance is kept and used as part of the new deployment.

deploymentInfo_rollbackInfo :: Lens' DeploymentInfo (Maybe RollbackInfo) Source #

Information about a deployment rollback.

deploymentInfo_externalId :: Lens' DeploymentInfo (Maybe Text) Source #

The unique ID for an external resource (for example, a CloudFormation stack ID) that is linked to this deployment.

deploymentInfo_targetInstances :: Lens' DeploymentInfo (Maybe TargetInstances) Source #

Information about the instances that belong to the replacement environment in a blue/green deployment.

deploymentInfo_revision :: Lens' DeploymentInfo (Maybe RevisionLocation) Source #

Information about the location of stored application artifacts and the service from which to retrieve them.

deploymentInfo_description :: Lens' DeploymentInfo (Maybe Text) Source #

A comment about the deployment.

deploymentInfo_deploymentStyle :: Lens' DeploymentInfo (Maybe DeploymentStyle) Source #

Information about the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer.

deploymentInfo_createTime :: Lens' DeploymentInfo (Maybe UTCTime) Source #

A timestamp that indicates when the deployment was created.

deploymentInfo_autoRollbackConfiguration :: Lens' DeploymentInfo (Maybe AutoRollbackConfiguration) Source #

Information about the automatic rollback configuration associated with the deployment.

deploymentInfo_updateOutdatedInstancesOnly :: Lens' DeploymentInfo (Maybe Bool) Source #

Indicates whether only instances that are not running the latest application revision are to be deployed to.

deploymentInfo_ignoreApplicationStopFailures :: Lens' DeploymentInfo (Maybe Bool) Source #

If true, then if an ApplicationStop, BeforeBlockTraffic, or AfterBlockTraffic deployment lifecycle event to an instance fails, then the deployment continues to the next deployment lifecycle event. For example, if ApplicationStop fails, the deployment continues with DownloadBundle. If BeforeBlockTraffic fails, the deployment continues with BlockTraffic. If AfterBlockTraffic fails, the deployment continues with ApplicationStop.

If false or not specified, then if a lifecycle event fails during a deployment to an instance, that deployment fails. If deployment to that instance is part of an overall deployment and the number of healthy hosts is not less than the minimum number of healthy hosts, then a deployment to the next instance is attempted.

During a deployment, the AWS CodeDeploy agent runs the scripts specified for ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic in the AppSpec file from the previous successful deployment. (All other scripts are run from the AppSpec file in the current deployment.) If one of these scripts contains an error and does not run successfully, the deployment can fail.

If the cause of the failure is a script from the last successful deployment that will never run successfully, create a new deployment and use ignoreApplicationStopFailures to specify that the ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic failures should be ignored.