| 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.FraudDetector.PutLabel
Description
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.
Constructors
| PutLabel' | |
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:
PutLabel, putLabel_description - The label description.
$sel:tags:PutLabel', putLabel_tags -
PutLabel, putLabel_name - The label name.
Request Lenses
Destructuring the Response
data PutLabelResponse Source #
See: newPutLabelResponse smart constructor.
Constructors
| PutLabelResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> PutLabelResponse |
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.