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 detector version. The detector version starts in a DRAFT
status.
Synopsis
- data CreateDetectorVersion = CreateDetectorVersion' {
- ruleExecutionMode :: Maybe RuleExecutionMode
- modelVersions :: Maybe [ModelVersion]
- externalModelEndpoints :: Maybe [Text]
- description :: Maybe Text
- tags :: Maybe [Tag]
- detectorId :: Text
- rules :: [Rule]
- newCreateDetectorVersion :: Text -> CreateDetectorVersion
- createDetectorVersion_ruleExecutionMode :: Lens' CreateDetectorVersion (Maybe RuleExecutionMode)
- createDetectorVersion_modelVersions :: Lens' CreateDetectorVersion (Maybe [ModelVersion])
- createDetectorVersion_externalModelEndpoints :: Lens' CreateDetectorVersion (Maybe [Text])
- createDetectorVersion_description :: Lens' CreateDetectorVersion (Maybe Text)
- createDetectorVersion_tags :: Lens' CreateDetectorVersion (Maybe [Tag])
- createDetectorVersion_detectorId :: Lens' CreateDetectorVersion Text
- createDetectorVersion_rules :: Lens' CreateDetectorVersion [Rule]
- data CreateDetectorVersionResponse = CreateDetectorVersionResponse' {}
- newCreateDetectorVersionResponse :: Int -> CreateDetectorVersionResponse
- createDetectorVersionResponse_status :: Lens' CreateDetectorVersionResponse (Maybe DetectorVersionStatus)
- createDetectorVersionResponse_detectorVersionId :: Lens' CreateDetectorVersionResponse (Maybe Text)
- createDetectorVersionResponse_detectorId :: Lens' CreateDetectorVersionResponse (Maybe Text)
- createDetectorVersionResponse_httpStatus :: Lens' CreateDetectorVersionResponse Int
Creating a Request
data CreateDetectorVersion Source #
See: newCreateDetectorVersion
smart constructor.
CreateDetectorVersion' | |
|
Instances
newCreateDetectorVersion Source #
Create a value of CreateDetectorVersion
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:CreateDetectorVersion'
, createDetectorVersion_ruleExecutionMode
- The rule execution mode for the rules included in the detector version.
You can define and edit the rule mode at the detector version level, when it is in draft status.
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.
The default behavior is FIRST_MATCHED
.
$sel:modelVersions:CreateDetectorVersion'
, createDetectorVersion_modelVersions
- The model versions to include in the detector version.
$sel:externalModelEndpoints:CreateDetectorVersion'
, createDetectorVersion_externalModelEndpoints
- The Amazon Sagemaker model endpoints to include in the detector version.
$sel:description:CreateDetectorVersion'
, createDetectorVersion_description
- The description of the detector version.
$sel:tags:CreateDetectorVersion'
, createDetectorVersion_tags
- A collection of key and value pairs.
$sel:detectorId:CreateDetectorVersion'
, createDetectorVersion_detectorId
- The ID of the detector under which you want to create a new version.
$sel:rules:CreateDetectorVersion'
, createDetectorVersion_rules
- The rules to include in the detector version.
Request Lenses
createDetectorVersion_ruleExecutionMode :: Lens' CreateDetectorVersion (Maybe RuleExecutionMode) Source #
The rule execution mode for the rules included in the detector version.
You can define and edit the rule mode at the detector version level, when it is in draft status.
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.
The default behavior is FIRST_MATCHED
.
createDetectorVersion_modelVersions :: Lens' CreateDetectorVersion (Maybe [ModelVersion]) Source #
The model versions to include in the detector version.
createDetectorVersion_externalModelEndpoints :: Lens' CreateDetectorVersion (Maybe [Text]) Source #
The Amazon Sagemaker model endpoints to include in the detector version.
createDetectorVersion_description :: Lens' CreateDetectorVersion (Maybe Text) Source #
The description of the detector version.
createDetectorVersion_tags :: Lens' CreateDetectorVersion (Maybe [Tag]) Source #
A collection of key and value pairs.
createDetectorVersion_detectorId :: Lens' CreateDetectorVersion Text Source #
The ID of the detector under which you want to create a new version.
createDetectorVersion_rules :: Lens' CreateDetectorVersion [Rule] Source #
The rules to include in the detector version.
Destructuring the Response
data CreateDetectorVersionResponse Source #
See: newCreateDetectorVersionResponse
smart constructor.
CreateDetectorVersionResponse' | |
|
Instances
newCreateDetectorVersionResponse Source #
Create a value of CreateDetectorVersionResponse
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:status:CreateDetectorVersionResponse'
, createDetectorVersionResponse_status
- The status of the detector version.
$sel:detectorVersionId:CreateDetectorVersionResponse'
, createDetectorVersionResponse_detectorVersionId
- The ID for the created detector.
$sel:detectorId:CreateDetectorVersion'
, createDetectorVersionResponse_detectorId
- The ID for the created version's parent detector.
$sel:httpStatus:CreateDetectorVersionResponse'
, createDetectorVersionResponse_httpStatus
- The response's http status code.
Response Lenses
createDetectorVersionResponse_status :: Lens' CreateDetectorVersionResponse (Maybe DetectorVersionStatus) Source #
The status of the detector version.
createDetectorVersionResponse_detectorVersionId :: Lens' CreateDetectorVersionResponse (Maybe Text) Source #
The ID for the created detector.
createDetectorVersionResponse_detectorId :: Lens' CreateDetectorVersionResponse (Maybe Text) Source #
The ID for the created version's parent detector.
createDetectorVersionResponse_httpStatus :: Lens' CreateDetectorVersionResponse Int Source #
The response's http status code.