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 |
Retrieve a classifier by name.
Synopsis
- data GetClassifier = GetClassifier' {}
- newGetClassifier :: Text -> GetClassifier
- getClassifier_name :: Lens' GetClassifier Text
- data GetClassifierResponse = GetClassifierResponse' {}
- newGetClassifierResponse :: Int -> GetClassifierResponse
- getClassifierResponse_classifier :: Lens' GetClassifierResponse (Maybe Classifier)
- getClassifierResponse_httpStatus :: Lens' GetClassifierResponse Int
Creating a Request
data GetClassifier Source #
See: newGetClassifier
smart constructor.
Instances
Create a value of GetClassifier
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:name:GetClassifier'
, getClassifier_name
- Name of the classifier to retrieve.
Request Lenses
getClassifier_name :: Lens' GetClassifier Text Source #
Name of the classifier to retrieve.
Destructuring the Response
data GetClassifierResponse Source #
See: newGetClassifierResponse
smart constructor.
GetClassifierResponse' | |
|
Instances
newGetClassifierResponse Source #
Create a value of GetClassifierResponse
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:classifier:GetClassifierResponse'
, getClassifierResponse_classifier
- The requested classifier.
$sel:httpStatus:GetClassifierResponse'
, getClassifierResponse_httpStatus
- The response's http status code.
Response Lenses
getClassifierResponse_classifier :: Lens' GetClassifierResponse (Maybe Classifier) Source #
The requested classifier.
getClassifierResponse_httpStatus :: Lens' GetClassifierResponse Int Source #
The response's http status code.