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 |
Creates a classifier in the user's account. This can be a
GrokClassifier
, an XMLClassifier
, a JsonClassifier
, or a
CsvClassifier
, depending on which field of the request is present.
Synopsis
- data CreateClassifier = CreateClassifier' {}
- newCreateClassifier :: CreateClassifier
- createClassifier_grokClassifier :: Lens' CreateClassifier (Maybe CreateGrokClassifierRequest)
- createClassifier_xMLClassifier :: Lens' CreateClassifier (Maybe CreateXMLClassifierRequest)
- createClassifier_csvClassifier :: Lens' CreateClassifier (Maybe CreateCsvClassifierRequest)
- createClassifier_jsonClassifier :: Lens' CreateClassifier (Maybe CreateJsonClassifierRequest)
- data CreateClassifierResponse = CreateClassifierResponse' {
- httpStatus :: Int
- newCreateClassifierResponse :: Int -> CreateClassifierResponse
- createClassifierResponse_httpStatus :: Lens' CreateClassifierResponse Int
Creating a Request
data CreateClassifier Source #
See: newCreateClassifier
smart constructor.
CreateClassifier' | |
|
Instances
newCreateClassifier :: CreateClassifier Source #
Create a value of CreateClassifier
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:grokClassifier:CreateClassifier'
, createClassifier_grokClassifier
- A GrokClassifier
object specifying the classifier to create.
$sel:xMLClassifier:CreateClassifier'
, createClassifier_xMLClassifier
- An XMLClassifier
object specifying the classifier to create.
$sel:csvClassifier:CreateClassifier'
, createClassifier_csvClassifier
- A CsvClassifier
object specifying the classifier to create.
$sel:jsonClassifier:CreateClassifier'
, createClassifier_jsonClassifier
- A JsonClassifier
object specifying the classifier to create.
Request Lenses
createClassifier_grokClassifier :: Lens' CreateClassifier (Maybe CreateGrokClassifierRequest) Source #
A GrokClassifier
object specifying the classifier to create.
createClassifier_xMLClassifier :: Lens' CreateClassifier (Maybe CreateXMLClassifierRequest) Source #
An XMLClassifier
object specifying the classifier to create.
createClassifier_csvClassifier :: Lens' CreateClassifier (Maybe CreateCsvClassifierRequest) Source #
A CsvClassifier
object specifying the classifier to create.
createClassifier_jsonClassifier :: Lens' CreateClassifier (Maybe CreateJsonClassifierRequest) Source #
A JsonClassifier
object specifying the classifier to create.
Destructuring the Response
data CreateClassifierResponse Source #
See: newCreateClassifierResponse
smart constructor.
CreateClassifierResponse' | |
|
Instances
newCreateClassifierResponse Source #
Create a value of CreateClassifierResponse
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:CreateClassifierResponse'
, createClassifierResponse_httpStatus
- The response's http status code.
Response Lenses
createClassifierResponse_httpStatus :: Lens' CreateClassifierResponse Int Source #
The response's http status code.