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 |
Deletes the specified cluster. The cluster will transition to the
INACTIVE
state. Clusters with an INACTIVE
status may remain
discoverable in your account for a period of time. However, this
behavior is subject to change in the future, so you should not rely on
INACTIVE
clusters persisting.
You must deregister all container instances from this cluster before you may delete it. You can list the container instances in a cluster with ListContainerInstances and deregister them with DeregisterContainerInstance.
Synopsis
- data DeleteCluster = DeleteCluster' {}
- newDeleteCluster :: Text -> DeleteCluster
- deleteCluster_cluster :: Lens' DeleteCluster Text
- data DeleteClusterResponse = DeleteClusterResponse' {
- cluster :: Maybe Cluster
- httpStatus :: Int
- newDeleteClusterResponse :: Int -> DeleteClusterResponse
- deleteClusterResponse_cluster :: Lens' DeleteClusterResponse (Maybe Cluster)
- deleteClusterResponse_httpStatus :: Lens' DeleteClusterResponse Int
Creating a Request
data DeleteCluster Source #
See: newDeleteCluster
smart constructor.
Instances
Create a value of DeleteCluster
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:cluster:DeleteCluster'
, deleteCluster_cluster
- The short name or full Amazon Resource Name (ARN) of the cluster to
delete.
Request Lenses
deleteCluster_cluster :: Lens' DeleteCluster Text Source #
The short name or full Amazon Resource Name (ARN) of the cluster to delete.
Destructuring the Response
data DeleteClusterResponse Source #
See: newDeleteClusterResponse
smart constructor.
DeleteClusterResponse' | |
|
Instances
newDeleteClusterResponse Source #
Create a value of DeleteClusterResponse
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:cluster:DeleteCluster'
, deleteClusterResponse_cluster
- The full description of the deleted cluster.
$sel:httpStatus:DeleteClusterResponse'
, deleteClusterResponse_httpStatus
- The response's http status code.
Response Lenses
deleteClusterResponse_cluster :: Lens' DeleteClusterResponse (Maybe Cluster) Source #
The full description of the deleted cluster.
deleteClusterResponse_httpStatus :: Lens' DeleteClusterResponse Int Source #
The response's http status code.