amazonka-ecs-1.2.0.1: Amazon EC2 Container Service SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ECS.DeleteCluster

Contents

Description

Deletes the specified cluster. 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.

See: AWS API Reference for DeleteCluster.

Synopsis

Creating a Request

deleteCluster Source

Creates a value of DeleteCluster with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

dcCluster :: Lens' DeleteCluster Text Source

The short name or full Amazon Resource Name (ARN) of the cluster that you want to delete.

Destructuring the Response

deleteClusterResponse Source

Creates a value of DeleteClusterResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

drsCluster :: Lens' DeleteClusterResponse (Maybe Cluster) Source

The full description of the deleted cluster.

drsStatus :: Lens' DeleteClusterResponse Int Source

The response status code.