| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CodeDeploy.StopDeployment
Description
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.
Constructors
| StopDeployment' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> 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: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.
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.
Constructors
| StopDeploymentResponse' | |
Fields
| |
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:
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.