Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Amazonka.Comprehend.DeleteDocumentClassifier
Description
Deletes a previously created document classifier
Only those classifiers that are in terminated states (IN_ERROR, TRAINED)
will be deleted. If an active inference job is using the model, a
ResourceInUseException
will be returned.
This is an asynchronous action that puts the classifier into a DELETING state, and it is then removed by a background job. Once removed, the classifier disappears from your account and is no longer available for use.
Synopsis
- data DeleteDocumentClassifier = DeleteDocumentClassifier' {}
- newDeleteDocumentClassifier :: Text -> DeleteDocumentClassifier
- deleteDocumentClassifier_documentClassifierArn :: Lens' DeleteDocumentClassifier Text
- data DeleteDocumentClassifierResponse = DeleteDocumentClassifierResponse' {
- httpStatus :: Int
- newDeleteDocumentClassifierResponse :: Int -> DeleteDocumentClassifierResponse
- deleteDocumentClassifierResponse_httpStatus :: Lens' DeleteDocumentClassifierResponse Int
Creating a Request
data DeleteDocumentClassifier Source #
See: newDeleteDocumentClassifier
smart constructor.
Constructors
DeleteDocumentClassifier' | |
Fields
|
Instances
newDeleteDocumentClassifier Source #
Arguments
:: Text | |
-> DeleteDocumentClassifier |
Create a value of DeleteDocumentClassifier
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:
DeleteDocumentClassifier
, deleteDocumentClassifier_documentClassifierArn
- The Amazon Resource Name (ARN) that identifies the document classifier.
Request Lenses
deleteDocumentClassifier_documentClassifierArn :: Lens' DeleteDocumentClassifier Text Source #
The Amazon Resource Name (ARN) that identifies the document classifier.
Destructuring the Response
data DeleteDocumentClassifierResponse Source #
See: newDeleteDocumentClassifierResponse
smart constructor.
Constructors
DeleteDocumentClassifierResponse' | |
Fields
|
Instances
newDeleteDocumentClassifierResponse Source #
Create a value of DeleteDocumentClassifierResponse
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:DeleteDocumentClassifierResponse'
, deleteDocumentClassifierResponse_httpStatus
- The response's http status code.
Response Lenses
deleteDocumentClassifierResponse_httpStatus :: Lens' DeleteDocumentClassifierResponse Int Source #
The response's http status code.