| 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.GreengrassV2.CancelDeployment
Description
Cancels a deployment. This operation cancels the deployment for devices that haven't yet received it. If a device already received the deployment, this operation doesn't change anything for that device.
Synopsis
- data CancelDeployment = CancelDeployment' {
- deploymentId :: Text
- newCancelDeployment :: Text -> CancelDeployment
- cancelDeployment_deploymentId :: Lens' CancelDeployment Text
- data CancelDeploymentResponse = CancelDeploymentResponse' {
- message :: Maybe Text
- httpStatus :: Int
- newCancelDeploymentResponse :: Int -> CancelDeploymentResponse
- cancelDeploymentResponse_message :: Lens' CancelDeploymentResponse (Maybe Text)
- cancelDeploymentResponse_httpStatus :: Lens' CancelDeploymentResponse Int
Creating a Request
data CancelDeployment Source #
See: newCancelDeployment smart constructor.
Constructors
| CancelDeployment' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> CancelDeployment |
Create a value of CancelDeployment 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:
CancelDeployment, cancelDeployment_deploymentId - The ID of the deployment.
Request Lenses
cancelDeployment_deploymentId :: Lens' CancelDeployment Text Source #
The ID of the deployment.
Destructuring the Response
data CancelDeploymentResponse Source #
See: newCancelDeploymentResponse smart constructor.
Constructors
| CancelDeploymentResponse' | |
Fields
| |
Instances
newCancelDeploymentResponse Source #
Create a value of CancelDeploymentResponse 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:
CancelDeploymentResponse, cancelDeploymentResponse_message - A message that communicates if the cancel was successful.
$sel:httpStatus:CancelDeploymentResponse', cancelDeploymentResponse_httpStatus - The response's http status code.
Response Lenses
cancelDeploymentResponse_message :: Lens' CancelDeploymentResponse (Maybe Text) Source #
A message that communicates if the cancel was successful.
cancelDeploymentResponse_httpStatus :: Lens' CancelDeploymentResponse Int Source #
The response's http status code.