| 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.Proton.CancelServiceInstanceDeployment
Description
Attempts to cancel a service instance deployment on an
UpdateServiceInstance action, if the deployment is IN_PROGRESS. For
more information, see
Update a service instance
in the Proton User guide.
The following list includes potential cancellation scenarios.
- If the cancellation attempt succeeds, the resulting deployment state
is
CANCELLED. - If the cancellation attempt fails, the resulting deployment state is
FAILED. - If the current UpdateServiceInstance action succeeds before the
cancellation attempt starts, the resulting deployment state is
SUCCEEDEDand the cancellation attempt has no effect.
Synopsis
- data CancelServiceInstanceDeployment = CancelServiceInstanceDeployment' {}
- newCancelServiceInstanceDeployment :: Text -> Text -> CancelServiceInstanceDeployment
- cancelServiceInstanceDeployment_serviceInstanceName :: Lens' CancelServiceInstanceDeployment Text
- cancelServiceInstanceDeployment_serviceName :: Lens' CancelServiceInstanceDeployment Text
- data CancelServiceInstanceDeploymentResponse = CancelServiceInstanceDeploymentResponse' {}
- newCancelServiceInstanceDeploymentResponse :: Int -> ServiceInstance -> CancelServiceInstanceDeploymentResponse
- cancelServiceInstanceDeploymentResponse_httpStatus :: Lens' CancelServiceInstanceDeploymentResponse Int
- cancelServiceInstanceDeploymentResponse_serviceInstance :: Lens' CancelServiceInstanceDeploymentResponse ServiceInstance
Creating a Request
data CancelServiceInstanceDeployment Source #
See: newCancelServiceInstanceDeployment smart constructor.
Constructors
| CancelServiceInstanceDeployment' | |
Fields
| |
Instances
newCancelServiceInstanceDeployment Source #
Arguments
| :: Text | |
| -> Text | |
| -> CancelServiceInstanceDeployment |
Create a value of CancelServiceInstanceDeployment 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:
CancelServiceInstanceDeployment, cancelServiceInstanceDeployment_serviceInstanceName - The name of the service instance with the deployment to cancel.
CancelServiceInstanceDeployment, cancelServiceInstanceDeployment_serviceName - The name of the service with the service instance deployment to cancel.
Request Lenses
cancelServiceInstanceDeployment_serviceInstanceName :: Lens' CancelServiceInstanceDeployment Text Source #
The name of the service instance with the deployment to cancel.
cancelServiceInstanceDeployment_serviceName :: Lens' CancelServiceInstanceDeployment Text Source #
The name of the service with the service instance deployment to cancel.
Destructuring the Response
data CancelServiceInstanceDeploymentResponse Source #
See: newCancelServiceInstanceDeploymentResponse smart constructor.
Constructors
| CancelServiceInstanceDeploymentResponse' | |
Fields
| |
Instances
newCancelServiceInstanceDeploymentResponse Source #
Arguments
| :: Int | |
| -> ServiceInstance |
|
| -> CancelServiceInstanceDeploymentResponse |
Create a value of CancelServiceInstanceDeploymentResponse 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:httpStatus:CancelServiceInstanceDeploymentResponse', cancelServiceInstanceDeploymentResponse_httpStatus - The response's http status code.
$sel:serviceInstance:CancelServiceInstanceDeploymentResponse', cancelServiceInstanceDeploymentResponse_serviceInstance - The service instance summary data that's returned by Proton.
Response Lenses
cancelServiceInstanceDeploymentResponse_httpStatus :: Lens' CancelServiceInstanceDeploymentResponse Int Source #
The response's http status code.
cancelServiceInstanceDeploymentResponse_serviceInstance :: Lens' CancelServiceInstanceDeploymentResponse ServiceInstance Source #
The service instance summary data that's returned by Proton.