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 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.
DeleteDocumentClassifier' | |
|
Instances
newDeleteDocumentClassifier Source #
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:
$sel:documentClassifierArn: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.
DeleteDocumentClassifierResponse' | |
|
Instances
Eq DeleteDocumentClassifierResponse Source # | |
Read DeleteDocumentClassifierResponse Source # | |
Show DeleteDocumentClassifierResponse Source # | |
Generic DeleteDocumentClassifierResponse Source # | |
NFData DeleteDocumentClassifierResponse Source # | |
Defined in Amazonka.Comprehend.DeleteDocumentClassifier rnf :: DeleteDocumentClassifierResponse -> () # | |
type Rep DeleteDocumentClassifierResponse Source # | |
Defined in Amazonka.Comprehend.DeleteDocumentClassifier type Rep DeleteDocumentClassifierResponse = D1 ('MetaData "DeleteDocumentClassifierResponse" "Amazonka.Comprehend.DeleteDocumentClassifier" "libZSservicesZSamazonka-comprehendZSamazonka-comprehend" 'False) (C1 ('MetaCons "DeleteDocumentClassifierResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.