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 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
- data DeleteCapacityProvider = DeleteCapacityProvider' {}
- newDeleteCapacityProvider :: Text -> DeleteCapacityProvider
- deleteCapacityProvider_capacityProvider :: Lens' DeleteCapacityProvider Text
- data DeleteCapacityProviderResponse = DeleteCapacityProviderResponse' {}
- newDeleteCapacityProviderResponse :: Int -> DeleteCapacityProviderResponse
- deleteCapacityProviderResponse_capacityProvider :: Lens' DeleteCapacityProviderResponse (Maybe CapacityProvider)
- deleteCapacityProviderResponse_httpStatus :: Lens' DeleteCapacityProviderResponse Int
Creating a Request
data DeleteCapacityProvider Source #
See: newDeleteCapacityProvider
smart constructor.
DeleteCapacityProvider' | |
|
Instances
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.
DeleteCapacityProviderResponse' | |
|
Instances
Eq DeleteCapacityProviderResponse Source # | |
Read DeleteCapacityProviderResponse Source # | |
Show DeleteCapacityProviderResponse Source # | |
Defined in Amazonka.ECS.DeleteCapacityProvider | |
Generic DeleteCapacityProviderResponse Source # | |
NFData DeleteCapacityProviderResponse Source # | |
Defined in Amazonka.ECS.DeleteCapacityProvider rnf :: DeleteCapacityProviderResponse -> () # | |
type Rep DeleteCapacityProviderResponse Source # | |
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
deleteCapacityProviderResponse_capacityProvider :: Lens' DeleteCapacityProviderResponse (Maybe CapacityProvider) Source #
The details of the capacity provider.
deleteCapacityProviderResponse_httpStatus :: Lens' DeleteCapacityProviderResponse Int Source #
The response's http status code.