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

Amazonka.ECS.DeleteCluster

Description

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

Creating a Request

data DeleteCluster Source #

See: newDeleteCluster smart constructor.

Constructors

DeleteCluster' 

Fields

  • cluster :: Text

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

Instances

Instances details
Eq DeleteCluster Source # 
Instance details

Defined in Amazonka.ECS.DeleteCluster

Read DeleteCluster Source # 
Instance details

Defined in Amazonka.ECS.DeleteCluster

Show DeleteCluster Source # 
Instance details

Defined in Amazonka.ECS.DeleteCluster

Generic DeleteCluster Source # 
Instance details

Defined in Amazonka.ECS.DeleteCluster

Associated Types

type Rep DeleteCluster :: Type -> Type #

NFData DeleteCluster Source # 
Instance details

Defined in Amazonka.ECS.DeleteCluster

Methods

rnf :: DeleteCluster -> () #

Hashable DeleteCluster Source # 
Instance details

Defined in Amazonka.ECS.DeleteCluster

ToJSON DeleteCluster Source # 
Instance details

Defined in Amazonka.ECS.DeleteCluster

AWSRequest DeleteCluster Source # 
Instance details

Defined in Amazonka.ECS.DeleteCluster

Associated Types

type AWSResponse DeleteCluster #

ToHeaders DeleteCluster Source # 
Instance details

Defined in Amazonka.ECS.DeleteCluster

ToPath DeleteCluster Source # 
Instance details

Defined in Amazonka.ECS.DeleteCluster

ToQuery DeleteCluster Source # 
Instance details

Defined in Amazonka.ECS.DeleteCluster

type Rep DeleteCluster Source # 
Instance details

Defined in Amazonka.ECS.DeleteCluster

type Rep DeleteCluster = D1 ('MetaData "DeleteCluster" "Amazonka.ECS.DeleteCluster" "libZSservicesZSamazonka-ecsZSamazonka-ecs" 'False) (C1 ('MetaCons "DeleteCluster'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cluster") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteCluster Source # 
Instance details

Defined in Amazonka.ECS.DeleteCluster

newDeleteCluster Source #

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.

Constructors

DeleteClusterResponse' 

Fields

Instances

Instances details
Eq DeleteClusterResponse Source # 
Instance details

Defined in Amazonka.ECS.DeleteCluster

Read DeleteClusterResponse Source # 
Instance details

Defined in Amazonka.ECS.DeleteCluster

Show DeleteClusterResponse Source # 
Instance details

Defined in Amazonka.ECS.DeleteCluster

Generic DeleteClusterResponse Source # 
Instance details

Defined in Amazonka.ECS.DeleteCluster

Associated Types

type Rep DeleteClusterResponse :: Type -> Type #

NFData DeleteClusterResponse Source # 
Instance details

Defined in Amazonka.ECS.DeleteCluster

Methods

rnf :: DeleteClusterResponse -> () #

type Rep DeleteClusterResponse Source # 
Instance details

Defined in Amazonka.ECS.DeleteCluster

type Rep DeleteClusterResponse = D1 ('MetaData "DeleteClusterResponse" "Amazonka.ECS.DeleteCluster" "libZSservicesZSamazonka-ecsZSamazonka-ecs" 'False) (C1 ('MetaCons "DeleteClusterResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cluster") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Cluster)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.