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 |
Updates a detector version. The detector version attributes that you can
update include models, external model endpoints, rules, rule execution
mode, and description. You can only update a DRAFT
detector version.
Synopsis
- data UpdateDetectorVersion = UpdateDetectorVersion' {}
- newUpdateDetectorVersion :: Text -> Text -> UpdateDetectorVersion
- updateDetectorVersion_ruleExecutionMode :: Lens' UpdateDetectorVersion (Maybe RuleExecutionMode)
- updateDetectorVersion_modelVersions :: Lens' UpdateDetectorVersion (Maybe [ModelVersion])
- updateDetectorVersion_description :: Lens' UpdateDetectorVersion (Maybe Text)
- updateDetectorVersion_detectorId :: Lens' UpdateDetectorVersion Text
- updateDetectorVersion_detectorVersionId :: Lens' UpdateDetectorVersion Text
- updateDetectorVersion_externalModelEndpoints :: Lens' UpdateDetectorVersion [Text]
- updateDetectorVersion_rules :: Lens' UpdateDetectorVersion [Rule]
- data UpdateDetectorVersionResponse = UpdateDetectorVersionResponse' {
- httpStatus :: Int
- newUpdateDetectorVersionResponse :: Int -> UpdateDetectorVersionResponse
- updateDetectorVersionResponse_httpStatus :: Lens' UpdateDetectorVersionResponse Int
Creating a Request
data UpdateDetectorVersion Source #
See: newUpdateDetectorVersion
smart constructor.
UpdateDetectorVersion' | |
|
Instances
newUpdateDetectorVersion Source #
:: Text | |
-> Text | |
-> UpdateDetectorVersion |
Create a value of UpdateDetectorVersion
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:ruleExecutionMode:UpdateDetectorVersion'
, updateDetectorVersion_ruleExecutionMode
- The rule execution mode to add to the detector.
If you specify FIRST_MATCHED
, Amazon Fraud Detector evaluates rules
sequentially, first to last, stopping at the first matched rule. Amazon
Fraud dectector then provides the outcomes for that single rule.
If you specifiy ALL_MATCHED
, Amazon Fraud Detector evaluates all rules
and returns the outcomes for all matched rules. You can define and edit
the rule mode at the detector version level, when it is in draft status.
The default behavior is FIRST_MATCHED
.
$sel:modelVersions:UpdateDetectorVersion'
, updateDetectorVersion_modelVersions
- The model versions to include in the detector version.
$sel:description:UpdateDetectorVersion'
, updateDetectorVersion_description
- The detector version description.
$sel:detectorId:UpdateDetectorVersion'
, updateDetectorVersion_detectorId
- The parent detector ID for the detector version you want to update.
$sel:detectorVersionId:UpdateDetectorVersion'
, updateDetectorVersion_detectorVersionId
- The detector version ID.
$sel:externalModelEndpoints:UpdateDetectorVersion'
, updateDetectorVersion_externalModelEndpoints
- The Amazon SageMaker model endpoints to include in the detector version.
$sel:rules:UpdateDetectorVersion'
, updateDetectorVersion_rules
- The rules to include in the detector version.
Request Lenses
updateDetectorVersion_ruleExecutionMode :: Lens' UpdateDetectorVersion (Maybe RuleExecutionMode) Source #
The rule execution mode to add to the detector.
If you specify FIRST_MATCHED
, Amazon Fraud Detector evaluates rules
sequentially, first to last, stopping at the first matched rule. Amazon
Fraud dectector then provides the outcomes for that single rule.
If you specifiy ALL_MATCHED
, Amazon Fraud Detector evaluates all rules
and returns the outcomes for all matched rules. You can define and edit
the rule mode at the detector version level, when it is in draft status.
The default behavior is FIRST_MATCHED
.
updateDetectorVersion_modelVersions :: Lens' UpdateDetectorVersion (Maybe [ModelVersion]) Source #
The model versions to include in the detector version.
updateDetectorVersion_description :: Lens' UpdateDetectorVersion (Maybe Text) Source #
The detector version description.
updateDetectorVersion_detectorId :: Lens' UpdateDetectorVersion Text Source #
The parent detector ID for the detector version you want to update.
updateDetectorVersion_detectorVersionId :: Lens' UpdateDetectorVersion Text Source #
The detector version ID.
updateDetectorVersion_externalModelEndpoints :: Lens' UpdateDetectorVersion [Text] Source #
The Amazon SageMaker model endpoints to include in the detector version.
updateDetectorVersion_rules :: Lens' UpdateDetectorVersion [Rule] Source #
The rules to include in the detector version.
Destructuring the Response
data UpdateDetectorVersionResponse Source #
See: newUpdateDetectorVersionResponse
smart constructor.
UpdateDetectorVersionResponse' | |
|
Instances
newUpdateDetectorVersionResponse Source #
Create a value of UpdateDetectorVersionResponse
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:UpdateDetectorVersionResponse'
, updateDetectorVersionResponse_httpStatus
- The response's http status code.
Response Lenses
updateDetectorVersionResponse_httpStatus :: Lens' UpdateDetectorVersionResponse Int Source #
The response's http status code.