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 |
Stops a deployment. This API action works only on deployments that have
a status of DEPLOYING
. This action moves the deployment to a status of
ROLLED_BACK
.
Synopsis
- data StopDeployment = StopDeployment' {}
- newStopDeployment :: Text -> Text -> Int -> StopDeployment
- stopDeployment_applicationId :: Lens' StopDeployment Text
- stopDeployment_environmentId :: Lens' StopDeployment Text
- stopDeployment_deploymentNumber :: Lens' StopDeployment Int
- data Deployment = Deployment' {
- growthFactor :: Maybe Double
- configurationName :: Maybe Text
- state :: Maybe DeploymentState
- deploymentStrategyId :: Maybe Text
- deploymentNumber :: Maybe Int
- configurationVersion :: Maybe Text
- eventLog :: Maybe [DeploymentEvent]
- percentageComplete :: Maybe Double
- startedAt :: Maybe POSIX
- applicationId :: Maybe Text
- deploymentDurationInMinutes :: Maybe Natural
- environmentId :: Maybe Text
- completedAt :: Maybe POSIX
- configurationLocationUri :: Maybe Text
- finalBakeTimeInMinutes :: Maybe Natural
- description :: Maybe Text
- configurationProfileId :: Maybe Text
- growthType :: Maybe GrowthType
- newDeployment :: Deployment
- deployment_growthFactor :: Lens' Deployment (Maybe Double)
- deployment_configurationName :: Lens' Deployment (Maybe Text)
- deployment_state :: Lens' Deployment (Maybe DeploymentState)
- deployment_deploymentStrategyId :: Lens' Deployment (Maybe Text)
- deployment_deploymentNumber :: Lens' Deployment (Maybe Int)
- deployment_configurationVersion :: Lens' Deployment (Maybe Text)
- deployment_eventLog :: Lens' Deployment (Maybe [DeploymentEvent])
- deployment_percentageComplete :: Lens' Deployment (Maybe Double)
- deployment_startedAt :: Lens' Deployment (Maybe UTCTime)
- deployment_applicationId :: Lens' Deployment (Maybe Text)
- deployment_deploymentDurationInMinutes :: Lens' Deployment (Maybe Natural)
- deployment_environmentId :: Lens' Deployment (Maybe Text)
- deployment_completedAt :: Lens' Deployment (Maybe UTCTime)
- deployment_configurationLocationUri :: Lens' Deployment (Maybe Text)
- deployment_finalBakeTimeInMinutes :: Lens' Deployment (Maybe Natural)
- deployment_description :: Lens' Deployment (Maybe Text)
- deployment_configurationProfileId :: Lens' Deployment (Maybe Text)
- deployment_growthType :: Lens' Deployment (Maybe GrowthType)
Creating a Request
data StopDeployment Source #
See: newStopDeployment
smart constructor.
StopDeployment' | |
|
Instances
:: Text | |
-> Text | |
-> Int | |
-> StopDeployment |
Create a value of StopDeployment
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:applicationId:StopDeployment'
, stopDeployment_applicationId
- The application ID.
$sel:environmentId:StopDeployment'
, stopDeployment_environmentId
- The environment ID.
$sel:deploymentNumber:StopDeployment'
, stopDeployment_deploymentNumber
- The sequence number of the deployment.
Request Lenses
stopDeployment_applicationId :: Lens' StopDeployment Text Source #
The application ID.
stopDeployment_environmentId :: Lens' StopDeployment Text Source #
The environment ID.
stopDeployment_deploymentNumber :: Lens' StopDeployment Int Source #
The sequence number of the deployment.
Destructuring the Response
data Deployment Source #
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:growthFactor:Deployment'
, deployment_growthFactor
- The percentage of targets to receive a deployed configuration during
each interval.
$sel:configurationName:Deployment'
, deployment_configurationName
- The name of the configuration.
$sel:state:Deployment'
, deployment_state
- The state of the deployment.
$sel:deploymentStrategyId:Deployment'
, deployment_deploymentStrategyId
- The ID of the deployment strategy that was deployed.
$sel:deploymentNumber:Deployment'
, deployment_deploymentNumber
- The sequence number of the deployment.
$sel:configurationVersion:Deployment'
, deployment_configurationVersion
- The configuration version that was deployed.
$sel:eventLog:Deployment'
, deployment_eventLog
- A list containing all events related to a deployment. The most recent
events are displayed first.
$sel:percentageComplete:Deployment'
, deployment_percentageComplete
- The percentage of targets for which the deployment is available.
$sel:startedAt:Deployment'
, deployment_startedAt
- The time the deployment started.
$sel:applicationId:Deployment'
, deployment_applicationId
- The ID of the application that was deployed.
$sel:deploymentDurationInMinutes:Deployment'
, deployment_deploymentDurationInMinutes
- Total amount of time the deployment lasted.
$sel:environmentId:Deployment'
, deployment_environmentId
- The ID of the environment that was deployed.
$sel:completedAt:Deployment'
, deployment_completedAt
- The time the deployment completed.
$sel:configurationLocationUri:Deployment'
, deployment_configurationLocationUri
- Information about the source location of the configuration.
$sel:finalBakeTimeInMinutes:Deployment'
, deployment_finalBakeTimeInMinutes
- The amount of time AppConfig monitored for alarms before considering the
deployment to be complete and no longer eligible for automatic roll
back.
$sel:description:Deployment'
, deployment_description
- The description of the deployment.
$sel:configurationProfileId:Deployment'
, deployment_configurationProfileId
- The ID of the configuration profile that was deployed.
$sel:growthType:Deployment'
, deployment_growthType
- The algorithm used to define how percentage grew over time.
Response Lenses
deployment_growthFactor :: Lens' Deployment (Maybe Double) Source #
The percentage of targets to receive a deployed configuration during each interval.
deployment_configurationName :: Lens' Deployment (Maybe Text) Source #
The name of the configuration.
deployment_state :: Lens' Deployment (Maybe DeploymentState) Source #
The state of the deployment.
deployment_deploymentStrategyId :: Lens' Deployment (Maybe Text) Source #
The ID of the deployment strategy that was deployed.
deployment_deploymentNumber :: Lens' Deployment (Maybe Int) Source #
The sequence number of the deployment.
deployment_configurationVersion :: Lens' Deployment (Maybe Text) Source #
The configuration version that was deployed.
deployment_eventLog :: Lens' Deployment (Maybe [DeploymentEvent]) Source #
A list containing all events related to a deployment. The most recent events are displayed first.
deployment_percentageComplete :: Lens' Deployment (Maybe Double) Source #
The percentage of targets for which the deployment is available.
deployment_startedAt :: Lens' Deployment (Maybe UTCTime) Source #
The time the deployment started.
deployment_applicationId :: Lens' Deployment (Maybe Text) Source #
The ID of the application that was deployed.
deployment_deploymentDurationInMinutes :: Lens' Deployment (Maybe Natural) Source #
Total amount of time the deployment lasted.
deployment_environmentId :: Lens' Deployment (Maybe Text) Source #
The ID of the environment that was deployed.
deployment_completedAt :: Lens' Deployment (Maybe UTCTime) Source #
The time the deployment completed.
deployment_configurationLocationUri :: Lens' Deployment (Maybe Text) Source #
Information about the source location of the configuration.
deployment_finalBakeTimeInMinutes :: Lens' Deployment (Maybe Natural) Source #
The amount of time AppConfig monitored for alarms before considering the deployment to be complete and no longer eligible for automatic roll back.
deployment_description :: Lens' Deployment (Maybe Text) Source #
The description of the deployment.
deployment_configurationProfileId :: Lens' Deployment (Maybe Text) Source #
The ID of the configuration profile that was deployed.
deployment_growthType :: Lens' Deployment (Maybe GrowthType) Source #
The algorithm used to define how percentage grew over time.