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 |
Attempts to stop an ongoing deployment.
Synopsis
- data StopDeployment = StopDeployment' {}
- newStopDeployment :: Text -> StopDeployment
- stopDeployment_autoRollbackEnabled :: Lens' StopDeployment (Maybe Bool)
- stopDeployment_deploymentId :: Lens' StopDeployment Text
- data StopDeploymentResponse = StopDeploymentResponse' {
- status :: Maybe StopStatus
- statusMessage :: Maybe Text
- httpStatus :: Int
- newStopDeploymentResponse :: Int -> StopDeploymentResponse
- stopDeploymentResponse_status :: Lens' StopDeploymentResponse (Maybe StopStatus)
- stopDeploymentResponse_statusMessage :: Lens' StopDeploymentResponse (Maybe Text)
- stopDeploymentResponse_httpStatus :: Lens' StopDeploymentResponse Int
Creating a Request
data StopDeployment Source #
Represents the input of a StopDeployment
operation.
See: newStopDeployment
smart constructor.
StopDeployment' | |
|
Instances
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:autoRollbackEnabled:StopDeployment'
, stopDeployment_autoRollbackEnabled
- Indicates, when a deployment is stopped, whether instances that have
been updated should be rolled back to the previous version of the
application revision.
$sel:deploymentId:StopDeployment'
, stopDeployment_deploymentId
- The unique ID of a deployment.
Request Lenses
stopDeployment_autoRollbackEnabled :: Lens' StopDeployment (Maybe Bool) Source #
Indicates, when a deployment is stopped, whether instances that have been updated should be rolled back to the previous version of the application revision.
stopDeployment_deploymentId :: Lens' StopDeployment Text Source #
The unique ID of a deployment.
Destructuring the Response
data StopDeploymentResponse Source #
Represents the output of a StopDeployment
operation.
See: newStopDeploymentResponse
smart constructor.
StopDeploymentResponse' | |
|
Instances
newStopDeploymentResponse Source #
Create a value of StopDeploymentResponse
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:status:StopDeploymentResponse'
, stopDeploymentResponse_status
- The status of the stop deployment operation:
- Pending: The stop operation is pending.
- Succeeded: The stop operation was successful.
$sel:statusMessage:StopDeploymentResponse'
, stopDeploymentResponse_statusMessage
- An accompanying status message.
$sel:httpStatus:StopDeploymentResponse'
, stopDeploymentResponse_httpStatus
- The response's http status code.
Response Lenses
stopDeploymentResponse_status :: Lens' StopDeploymentResponse (Maybe StopStatus) Source #
The status of the stop deployment operation:
- Pending: The stop operation is pending.
- Succeeded: The stop operation was successful.
stopDeploymentResponse_statusMessage :: Lens' StopDeploymentResponse (Maybe Text) Source #
An accompanying status message.
stopDeploymentResponse_httpStatus :: Lens' StopDeploymentResponse Int Source #
The response's http status code.