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 or updates label. A label classifies an event as fraudulent or legitimate. Labels are associated with event types and used to train supervised machine learning models in Amazon Fraud Detector.
Synopsis
- data PutLabel = PutLabel' {}
- newPutLabel :: Text -> PutLabel
- putLabel_description :: Lens' PutLabel (Maybe Text)
- putLabel_tags :: Lens' PutLabel (Maybe [Tag])
- putLabel_name :: Lens' PutLabel Text
- data PutLabelResponse = PutLabelResponse' {
- httpStatus :: Int
- newPutLabelResponse :: Int -> PutLabelResponse
- putLabelResponse_httpStatus :: Lens' PutLabelResponse Int
Creating a Request
See: newPutLabel
smart constructor.
Instances
Create a value of PutLabel
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:description:PutLabel'
, putLabel_description
- The label description.
$sel:tags:PutLabel'
, putLabel_tags
-
$sel:name:PutLabel'
, putLabel_name
- The label name.
Request Lenses
Destructuring the Response
data PutLabelResponse Source #
See: newPutLabelResponse
smart constructor.
PutLabelResponse' | |
|
Instances
Create a value of PutLabelResponse
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:PutLabelResponse'
, putLabelResponse_httpStatus
- The response's http status code.
Response Lenses
putLabelResponse_httpStatus :: Lens' PutLabelResponse Int Source #
The response's http status code.