FraudDetector class

This is the Amazon Fraud Detector API Reference. This guide is for developers who need detailed information about Amazon Fraud Detector API actions, data types, and errors. For more information about Amazon Fraud Detector features, see the Amazon Fraud Detector User Guide.

Constructors

FraudDetector({required String region, AwsClientCredentials? credentials, AwsClientCredentialsProvider? credentialsProvider, Client? client, String? endpointUrl})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

batchCreateVariable({required List<VariableEntry> variableEntries, List<Tag>? tags}) Future<BatchCreateVariableResult>
Creates a batch of variables.
batchGetVariable({required List<String> names}) Future<BatchGetVariableResult>
Gets a batch of variables.
close() → void
Closes the internal HTTP client if none was provided at creation. If a client was passed as a constructor argument, this becomes a noop.
createDetectorVersion({required String detectorId, required List<Rule> rules, String? description, List<String>? externalModelEndpoints, List<ModelVersion>? modelVersions, RuleExecutionMode? ruleExecutionMode, List<Tag>? tags}) Future<CreateDetectorVersionResult>
Creates a detector version. The detector version starts in a DRAFT status.
createModel({required String eventTypeName, required String modelId, required ModelTypeEnum modelType, String? description, List<Tag>? tags}) Future<void>
Creates a model using the specified model type.
createModelVersion({required String modelId, required ModelTypeEnum modelType, required TrainingDataSchema trainingDataSchema, required TrainingDataSourceEnum trainingDataSource, ExternalEventsDetail? externalEventsDetail, List<Tag>? tags}) Future<CreateModelVersionResult>
Creates a version of the model using the specified model type and model id.
createRule({required String detectorId, required String expression, required Language language, required List<String> outcomes, required String ruleId, String? description, List<Tag>? tags}) Future<CreateRuleResult>
Creates a rule for use with the specified detector.
createVariable({required DataSource dataSource, required DataType dataType, required String defaultValue, required String name, String? description, List<Tag>? tags, String? variableType}) Future<void>
Creates a variable.
deleteDetector({required String detectorId}) Future<void>
Deletes the detector. Before deleting a detector, you must first delete all detector versions and rule versions associated with the detector.
deleteDetectorVersion({required String detectorId, required String detectorVersionId}) Future<void>
Deletes the detector version. You cannot delete detector versions that are in ACTIVE status.
deleteEntityType({required String name}) Future<void>
Deletes an entity type.
deleteEvent({required String eventId, required String eventTypeName}) Future<void>
Deletes the specified event.
deleteEventType({required String name}) Future<void>
Deletes an event type.
deleteExternalModel({required String modelEndpoint}) Future<void>
Removes a SageMaker model from Amazon Fraud Detector.
deleteLabel({required String name}) Future<void>
Deletes a label.
deleteModel({required String modelId, required ModelTypeEnum modelType}) Future<void>
Deletes a model.
deleteModelVersion({required String modelId, required ModelTypeEnum modelType, required String modelVersionNumber}) Future<void>
Deletes a model version.
deleteOutcome({required String name}) Future<void>
Deletes an outcome.
deleteRule({required Rule rule}) Future<void>
Deletes the rule. You cannot delete a rule if it is used by an ACTIVE or INACTIVE detector version.
deleteVariable({required String name}) Future<void>
Deletes a variable.
describeDetector({required String detectorId, int? maxResults, String? nextToken}) Future<DescribeDetectorResult>
Gets all versions for a specified detector.
describeModelVersions({int? maxResults, String? modelId, ModelTypeEnum? modelType, String? modelVersionNumber, String? nextToken}) Future<DescribeModelVersionsResult>
Gets all of the model versions for the specified model type or for the specified model type and model ID. You can also get details for a single, specified model version.
getDetectors({String? detectorId, int? maxResults, String? nextToken}) Future<GetDetectorsResult>
Gets all detectors or a single detector if a detectorId is specified. This is a paginated API. If you provide a null maxResults, this action retrieves a maximum of 10 records per page. If you provide a maxResults, the value must be between 5 and 10. To get the next page results, provide the pagination token from the GetDetectorsResponse as part of your request. A null pagination token fetches the records from the beginning.
getDetectorVersion({required String detectorId, required String detectorVersionId}) Future<GetDetectorVersionResult>
Gets a particular detector version.
getEntityTypes({int? maxResults, String? name, String? nextToken}) Future<GetEntityTypesResult>
Gets all entity types or a specific entity type if a name is specified. This is a paginated API. If you provide a null maxResults, this action retrieves a maximum of 10 records per page. If you provide a maxResults, the value must be between 5 and 10. To get the next page results, provide the pagination token from the GetEntityTypesResponse as part of your request. A null pagination token fetches the records from the beginning.
getEventPrediction({required String detectorId, required List<Entity> entities, required String eventId, required String eventTimestamp, required String eventTypeName, required Map<String, String> eventVariables, String? detectorVersionId, Map<String, ModelEndpointDataBlob>? externalModelEndpointDataBlobs}) Future<GetEventPredictionResult>
Evaluates an event against a detector version. If a version ID is not provided, the detector’s (ACTIVE) version is used.
getEventTypes({int? maxResults, String? name, String? nextToken}) Future<GetEventTypesResult>
Gets all event types or a specific event type if name is provided. This is a paginated API. If you provide a null maxResults, this action retrieves a maximum of 10 records per page. If you provide a maxResults, the value must be between 5 and 10. To get the next page results, provide the pagination token from the GetEventTypesResponse as part of your request. A null pagination token fetches the records from the beginning.
getExternalModels({int? maxResults, String? modelEndpoint, String? nextToken}) Future<GetExternalModelsResult>
Gets the details for one or more Amazon SageMaker models that have been imported into the service. This is a paginated API. If you provide a null maxResults, this actions retrieves a maximum of 10 records per page. If you provide a maxResults, the value must be between 5 and 10. To get the next page results, provide the pagination token from the GetExternalModelsResult as part of your request. A null pagination token fetches the records from the beginning.
getKMSEncryptionKey() Future<GetKMSEncryptionKeyResult>
Gets the encryption key if a Key Management Service (KMS) customer master key (CMK) has been specified to be used to encrypt content in Amazon Fraud Detector.
getLabels({int? maxResults, String? name, String? nextToken}) Future<GetLabelsResult>
Gets all labels or a specific label if name is provided. This is a paginated API. If you provide a null maxResults, this action retrieves a maximum of 50 records per page. If you provide a maxResults, the value must be between 10 and 50. To get the next page results, provide the pagination token from the GetGetLabelsResponse as part of your request. A null pagination token fetches the records from the beginning.
getModels({int? maxResults, String? modelId, ModelTypeEnum? modelType, String? nextToken}) Future<GetModelsResult>
Gets one or more models. Gets all models for the AWS account if no model type and no model id provided. Gets all models for the AWS account and model type, if the model type is specified but model id is not provided. Gets a specific model if (model type, model id) tuple is specified.
getModelVersion({required String modelId, required ModelTypeEnum modelType, required String modelVersionNumber}) Future<GetModelVersionResult>
Gets the details of the specified model version.
getOutcomes({int? maxResults, String? name, String? nextToken}) Future<GetOutcomesResult>
Gets one or more outcomes. This is a paginated API. If you provide a null maxResults, this actions retrieves a maximum of 100 records per page. If you provide a maxResults, the value must be between 50 and 100. To get the next page results, provide the pagination token from the GetOutcomesResult as part of your request. A null pagination token fetches the records from the beginning.
getRules({required String detectorId, int? maxResults, String? nextToken, String? ruleId, String? ruleVersion}) Future<GetRulesResult>
Get all rules for a detector (paginated) if ruleId and ruleVersion are not specified. Gets all rules for the detector and the ruleId if present (paginated). Gets a specific rule if both the ruleId and the ruleVersion are specified.
getVariables({int? maxResults, String? name, String? nextToken}) Future<GetVariablesResult>
Gets all of the variables or the specific variable. This is a paginated API. Providing null maxSizePerPage results in retrieving maximum of 100 records per page. If you provide maxSizePerPage the value must be between 50 and 100. To get the next page result, a provide a pagination token from GetVariablesResult as part of your request. Null pagination token fetches the records from the beginning.
listTagsForResource({required String resourceARN, int? maxResults, String? nextToken}) Future<ListTagsForResourceResult>
Lists all tags associated with the resource. This is a paginated API. To get the next page results, provide the pagination token from the response as part of your request. A null pagination token fetches the records from the beginning.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putDetector({required String detectorId, required String eventTypeName, String? description, List<Tag>? tags}) Future<void>
Creates or updates a detector.
putEntityType({required String name, String? description, List<Tag>? tags}) Future<void>
Creates or updates an entity type. An entity represents who is performing the event. As part of a fraud prediction, you pass the entity ID to indicate the specific entity who performed the event. An entity type classifies the entity. Example classifications include customer, merchant, or account.
putEventType({required List<String> entityTypes, required List<String> eventVariables, required String name, String? description, List<String>? labels, List<Tag>? tags}) Future<void>
Creates or updates an event type. An event is a business activity that is evaluated for fraud risk. With Amazon Fraud Detector, you generate fraud predictions for events. An event type defines the structure for an event sent to Amazon Fraud Detector. This includes the variables sent as part of the event, the entity performing the event (such as a customer), and the labels that classify the event. Example event types include online payment transactions, account registrations, and authentications.
putExternalModel({required ModelInputConfiguration inputConfiguration, required String invokeModelEndpointRoleArn, required String modelEndpoint, required ModelEndpointStatus modelEndpointStatus, required ModelSource modelSource, required ModelOutputConfiguration outputConfiguration, List<Tag>? tags}) Future<void>
Creates or updates an Amazon SageMaker model endpoint. You can also use this action to update the configuration of the model endpoint, including the IAM role and/or the mapped variables.
putKMSEncryptionKey({required String kmsEncryptionKeyArn}) Future<void>
Specifies the Key Management Service (KMS) customer master key (CMK) to be used to encrypt content in Amazon Fraud Detector.
putLabel({required String name, String? description, List<Tag>? tags}) Future<void>
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.
putOutcome({required String name, String? description, List<Tag>? tags}) Future<void>
Creates or updates an outcome.
tagResource({required String resourceARN, required List<Tag> tags}) Future<void>
Assigns tags to a resource.
toString() String
A string representation of this object.
inherited
untagResource({required String resourceARN, required List<String> tagKeys}) Future<void>
Removes tags from a resource.
updateDetectorVersion({required String detectorId, required String detectorVersionId, required List<String> externalModelEndpoints, required List<Rule> rules, String? description, List<ModelVersion>? modelVersions, RuleExecutionMode? ruleExecutionMode}) Future<void>
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.
updateDetectorVersionMetadata({required String description, required String detectorId, required String detectorVersionId}) Future<void>
Updates the detector version's description. You can update the metadata for any detector version (DRAFT, ACTIVE, or INACTIVE).
updateDetectorVersionStatus({required String detectorId, required String detectorVersionId, required DetectorVersionStatus status}) Future<void>
Updates the detector version’s status. You can perform the following promotions or demotions using UpdateDetectorVersionStatus: DRAFT to ACTIVE, ACTIVE to INACTIVE, and INACTIVE to ACTIVE.
updateModel({required String modelId, required ModelTypeEnum modelType, String? description}) Future<void>
Updates a model. You can update the description attribute using this action.
updateModelVersion({required String majorVersionNumber, required String modelId, required ModelTypeEnum modelType, ExternalEventsDetail? externalEventsDetail, List<Tag>? tags}) Future<UpdateModelVersionResult>
Updates a model version. Updating a model version retrains an existing model version using updated training data and produces a new minor version of the model. You can update the training data set location and data access role attributes using this action. This action creates and trains a new minor version of the model, for example version 1.01, 1.02, 1.03.
updateModelVersionStatus({required String modelId, required ModelTypeEnum modelType, required String modelVersionNumber, required ModelVersionStatus status}) Future<void>
Updates the status of a model version.
updateRuleMetadata({required String description, required Rule rule}) Future<void>
Updates a rule's metadata. The description attribute can be updated.
updateRuleVersion({required String expression, required Language language, required List<String> outcomes, required Rule rule, String? description, List<Tag>? tags}) Future<UpdateRuleVersionResult>
Updates a rule version resulting in a new rule version. Updates a rule version resulting in a new rule version (version 1, 2, 3 ...).
updateVariable({required String name, String? defaultValue, String? description, String? variableType}) Future<void>
Updates a variable.

Operators

operator ==(Object other) bool
The equality operator.
inherited