| 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.Snowball.CancelCluster
Description
Cancels a cluster job. You can only cancel a cluster job while it's in
the AwaitingQuorum status. You'll have at least an hour after
creating a cluster job to cancel it.
Synopsis
- data CancelCluster = CancelCluster' {}
- newCancelCluster :: Text -> CancelCluster
- cancelCluster_clusterId :: Lens' CancelCluster Text
- data CancelClusterResponse = CancelClusterResponse' {
- httpStatus :: Int
- newCancelClusterResponse :: Int -> CancelClusterResponse
- cancelClusterResponse_httpStatus :: Lens' CancelClusterResponse Int
Creating a Request
data CancelCluster Source #
See: newCancelCluster smart constructor.
Constructors
| CancelCluster' | |
Instances
Arguments
| :: Text | |
| -> CancelCluster |
Create a value of CancelCluster 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:
CancelCluster, cancelCluster_clusterId - The 39-character ID for the cluster that you want to cancel, for example
CID123e4567-e89b-12d3-a456-426655440000.
Request Lenses
cancelCluster_clusterId :: Lens' CancelCluster Text Source #
The 39-character ID for the cluster that you want to cancel, for example
CID123e4567-e89b-12d3-a456-426655440000.
Destructuring the Response
data CancelClusterResponse Source #
See: newCancelClusterResponse smart constructor.
Constructors
| CancelClusterResponse' | |
Fields
| |
Instances
newCancelClusterResponse Source #
Create a value of CancelClusterResponse 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:CancelClusterResponse', cancelClusterResponse_httpStatus - The response's http status code.
Response Lenses
cancelClusterResponse_httpStatus :: Lens' CancelClusterResponse Int Source #
The response's http status code.