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 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
- data DeleteComputeEnvironment = DeleteComputeEnvironment' {}
- newDeleteComputeEnvironment :: Text -> DeleteComputeEnvironment
- deleteComputeEnvironment_computeEnvironment :: Lens' DeleteComputeEnvironment Text
- data DeleteComputeEnvironmentResponse = DeleteComputeEnvironmentResponse' {
- httpStatus :: Int
- newDeleteComputeEnvironmentResponse :: Int -> DeleteComputeEnvironmentResponse
- deleteComputeEnvironmentResponse_httpStatus :: Lens' DeleteComputeEnvironmentResponse Int
Creating a Request
data DeleteComputeEnvironment Source #
Contains the parameters for DeleteComputeEnvironment
.
See: newDeleteComputeEnvironment
smart constructor.
DeleteComputeEnvironment' | |
|
Instances
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.
DeleteComputeEnvironmentResponse' | |
|
Instances
Eq DeleteComputeEnvironmentResponse Source # | |
Read DeleteComputeEnvironmentResponse Source # | |
Show DeleteComputeEnvironmentResponse Source # | |
Defined in Amazonka.Batch.DeleteComputeEnvironment | |
Generic DeleteComputeEnvironmentResponse Source # | |
NFData DeleteComputeEnvironmentResponse Source # | |
Defined in Amazonka.Batch.DeleteComputeEnvironment rnf :: DeleteComputeEnvironmentResponse -> () # | |
type Rep DeleteComputeEnvironmentResponse Source # | |
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
deleteComputeEnvironmentResponse_httpStatus :: Lens' DeleteComputeEnvironmentResponse Int Source #
The response's http status code.