libZSservicesZSamazonka-batchZSamazonka-batch
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.Batch.DeleteComputeEnvironment

Description

Deletes an Batch compute environment.

Before you can delete a compute environment, you must set its state to DISABLED with the UpdateComputeEnvironment API operation and disassociate it from any job queues with the UpdateJobQueue API operation. Compute environments that use Fargate resources must terminate all active jobs on that compute environment before deleting the compute environment. If this isn't done, the compute environment enters an invalid state.

Synopsis

Creating a Request

data DeleteComputeEnvironment Source #

Contains the parameters for DeleteComputeEnvironment.

See: newDeleteComputeEnvironment smart constructor.

Constructors

DeleteComputeEnvironment' 

Fields

Instances

Instances details
Eq DeleteComputeEnvironment Source # 
Instance details

Defined in Amazonka.Batch.DeleteComputeEnvironment

Read DeleteComputeEnvironment Source # 
Instance details

Defined in Amazonka.Batch.DeleteComputeEnvironment

Show DeleteComputeEnvironment Source # 
Instance details

Defined in Amazonka.Batch.DeleteComputeEnvironment

Generic DeleteComputeEnvironment Source # 
Instance details

Defined in Amazonka.Batch.DeleteComputeEnvironment

Associated Types

type Rep DeleteComputeEnvironment :: Type -> Type #

NFData DeleteComputeEnvironment Source # 
Instance details

Defined in Amazonka.Batch.DeleteComputeEnvironment

Hashable DeleteComputeEnvironment Source # 
Instance details

Defined in Amazonka.Batch.DeleteComputeEnvironment

ToJSON DeleteComputeEnvironment Source # 
Instance details

Defined in Amazonka.Batch.DeleteComputeEnvironment

AWSRequest DeleteComputeEnvironment Source # 
Instance details

Defined in Amazonka.Batch.DeleteComputeEnvironment

ToHeaders DeleteComputeEnvironment Source # 
Instance details

Defined in Amazonka.Batch.DeleteComputeEnvironment

ToPath DeleteComputeEnvironment Source # 
Instance details

Defined in Amazonka.Batch.DeleteComputeEnvironment

ToQuery DeleteComputeEnvironment Source # 
Instance details

Defined in Amazonka.Batch.DeleteComputeEnvironment

type Rep DeleteComputeEnvironment Source # 
Instance details

Defined in Amazonka.Batch.DeleteComputeEnvironment

type Rep DeleteComputeEnvironment = D1 ('MetaData "DeleteComputeEnvironment" "Amazonka.Batch.DeleteComputeEnvironment" "libZSservicesZSamazonka-batchZSamazonka-batch" 'False) (C1 ('MetaCons "DeleteComputeEnvironment'" 'PrefixI 'True) (S1 ('MetaSel ('Just "computeEnvironment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteComputeEnvironment Source # 
Instance details

Defined in Amazonka.Batch.DeleteComputeEnvironment

newDeleteComputeEnvironment Source #

Create a value of DeleteComputeEnvironment 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:computeEnvironment:DeleteComputeEnvironment', deleteComputeEnvironment_computeEnvironment - The name or Amazon Resource Name (ARN) of the compute environment to delete.

Request Lenses

deleteComputeEnvironment_computeEnvironment :: Lens' DeleteComputeEnvironment Text Source #

The name or Amazon Resource Name (ARN) of the compute environment to delete.

Destructuring the Response

data DeleteComputeEnvironmentResponse Source #

See: newDeleteComputeEnvironmentResponse smart constructor.

Constructors

DeleteComputeEnvironmentResponse' 

Fields

Instances

Instances details
Eq DeleteComputeEnvironmentResponse Source # 
Instance details

Defined in Amazonka.Batch.DeleteComputeEnvironment

Read DeleteComputeEnvironmentResponse Source # 
Instance details

Defined in Amazonka.Batch.DeleteComputeEnvironment

Show DeleteComputeEnvironmentResponse Source # 
Instance details

Defined in Amazonka.Batch.DeleteComputeEnvironment

Generic DeleteComputeEnvironmentResponse Source # 
Instance details

Defined in Amazonka.Batch.DeleteComputeEnvironment

Associated Types

type Rep DeleteComputeEnvironmentResponse :: Type -> Type #

NFData DeleteComputeEnvironmentResponse Source # 
Instance details

Defined in Amazonka.Batch.DeleteComputeEnvironment

type Rep DeleteComputeEnvironmentResponse Source # 
Instance details

Defined in Amazonka.Batch.DeleteComputeEnvironment

type Rep DeleteComputeEnvironmentResponse = D1 ('MetaData "DeleteComputeEnvironmentResponse" "Amazonka.Batch.DeleteComputeEnvironment" "libZSservicesZSamazonka-batchZSamazonka-batch" 'False) (C1 ('MetaCons "DeleteComputeEnvironmentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteComputeEnvironmentResponse Source #

Create a value of DeleteComputeEnvironmentResponse 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:httpStatus:DeleteComputeEnvironmentResponse', deleteComputeEnvironmentResponse_httpStatus - The response's http status code.

Response Lenses