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.DeleteCapacityProvider

Description

Deletes the specified capacity provider.

The FARGATE and FARGATE_SPOT capacity providers are reserved and cannot be deleted. You can disassociate them from a cluster using either the PutClusterCapacityProviders API or by deleting the cluster.

Prior to a capacity provider being deleted, the capacity provider must be removed from the capacity provider strategy from all services. The UpdateService API can be used to remove a capacity provider from a service's capacity provider strategy. When updating a service, the forceNewDeployment option can be used to ensure that any tasks using the Amazon EC2 instance capacity provided by the capacity provider are transitioned to use the capacity from the remaining capacity providers. Only capacity providers that are not associated with a cluster can be deleted. To remove a capacity provider from a cluster, you can either use PutClusterCapacityProviders or delete the cluster.

Synopsis

Creating a Request

data DeleteCapacityProvider Source #

See: newDeleteCapacityProvider smart constructor.

Constructors

DeleteCapacityProvider' 

Fields

  • capacityProvider :: Text

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

Instances

Instances details
Eq DeleteCapacityProvider Source # 
Instance details

Defined in Amazonka.ECS.DeleteCapacityProvider

Read DeleteCapacityProvider Source # 
Instance details

Defined in Amazonka.ECS.DeleteCapacityProvider

Show DeleteCapacityProvider Source # 
Instance details

Defined in Amazonka.ECS.DeleteCapacityProvider

Generic DeleteCapacityProvider Source # 
Instance details

Defined in Amazonka.ECS.DeleteCapacityProvider

Associated Types

type Rep DeleteCapacityProvider :: Type -> Type #

NFData DeleteCapacityProvider Source # 
Instance details

Defined in Amazonka.ECS.DeleteCapacityProvider

Methods

rnf :: DeleteCapacityProvider -> () #

Hashable DeleteCapacityProvider Source # 
Instance details

Defined in Amazonka.ECS.DeleteCapacityProvider

ToJSON DeleteCapacityProvider Source # 
Instance details

Defined in Amazonka.ECS.DeleteCapacityProvider

AWSRequest DeleteCapacityProvider Source # 
Instance details

Defined in Amazonka.ECS.DeleteCapacityProvider

Associated Types

type AWSResponse DeleteCapacityProvider #

ToHeaders DeleteCapacityProvider Source # 
Instance details

Defined in Amazonka.ECS.DeleteCapacityProvider

ToPath DeleteCapacityProvider Source # 
Instance details

Defined in Amazonka.ECS.DeleteCapacityProvider

ToQuery DeleteCapacityProvider Source # 
Instance details

Defined in Amazonka.ECS.DeleteCapacityProvider

type Rep DeleteCapacityProvider Source # 
Instance details

Defined in Amazonka.ECS.DeleteCapacityProvider

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

Defined in Amazonka.ECS.DeleteCapacityProvider

newDeleteCapacityProvider Source #

Create a value of DeleteCapacityProvider 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:capacityProvider:DeleteCapacityProvider', deleteCapacityProvider_capacityProvider - The short name or full Amazon Resource Name (ARN) of the capacity provider to delete.

Request Lenses

deleteCapacityProvider_capacityProvider :: Lens' DeleteCapacityProvider Text Source #

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

Destructuring the Response

data DeleteCapacityProviderResponse Source #

See: newDeleteCapacityProviderResponse smart constructor.

Constructors

DeleteCapacityProviderResponse' 

Fields

Instances

Instances details
Eq DeleteCapacityProviderResponse Source # 
Instance details

Defined in Amazonka.ECS.DeleteCapacityProvider

Read DeleteCapacityProviderResponse Source # 
Instance details

Defined in Amazonka.ECS.DeleteCapacityProvider

Show DeleteCapacityProviderResponse Source # 
Instance details

Defined in Amazonka.ECS.DeleteCapacityProvider

Generic DeleteCapacityProviderResponse Source # 
Instance details

Defined in Amazonka.ECS.DeleteCapacityProvider

Associated Types

type Rep DeleteCapacityProviderResponse :: Type -> Type #

NFData DeleteCapacityProviderResponse Source # 
Instance details

Defined in Amazonka.ECS.DeleteCapacityProvider

type Rep DeleteCapacityProviderResponse Source # 
Instance details

Defined in Amazonka.ECS.DeleteCapacityProvider

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

newDeleteCapacityProviderResponse Source #

Create a value of DeleteCapacityProviderResponse 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:capacityProvider:DeleteCapacityProvider', deleteCapacityProviderResponse_capacityProvider - The details of the capacity provider.

$sel:httpStatus:DeleteCapacityProviderResponse', deleteCapacityProviderResponse_httpStatus - The response's http status code.

Response Lenses