Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

FraudDetector

import { FraudDetector } from "https://aws-api.deno.dev/v0.3/services/frauddetector.ts?docs=full";
class FraudDetector {
constructor(apiFactory: client.ApiFactory);
async batchCreateVariable(params: BatchCreateVariableRequest, opts?: client.RequestOptions): Promise<BatchCreateVariableResult>;
async batchGetVariable(params: BatchGetVariableRequest, opts?: client.RequestOptions): Promise<BatchGetVariableResult>;
async cancelBatchImportJob(params: CancelBatchImportJobRequest, opts?: client.RequestOptions): Promise<void>;
async cancelBatchPredictionJob(params: CancelBatchPredictionJobRequest, opts?: client.RequestOptions): Promise<void>;
async createBatchImportJob(params: CreateBatchImportJobRequest, opts?: client.RequestOptions): Promise<void>;
async createBatchPredictionJob(params: CreateBatchPredictionJobRequest, opts?: client.RequestOptions): Promise<void>;
async createDetectorVersion(params: CreateDetectorVersionRequest, opts?: client.RequestOptions): Promise<CreateDetectorVersionResult>;
async createModel(params: CreateModelRequest, opts?: client.RequestOptions): Promise<void>;
async createModelVersion(params: CreateModelVersionRequest, opts?: client.RequestOptions): Promise<CreateModelVersionResult>;
async createRule(params: CreateRuleRequest, opts?: client.RequestOptions): Promise<CreateRuleResult>;
async createVariable(params: CreateVariableRequest, opts?: client.RequestOptions): Promise<void>;
async deleteBatchImportJob(params: DeleteBatchImportJobRequest, opts?: client.RequestOptions): Promise<void>;
async deleteBatchPredictionJob(params: DeleteBatchPredictionJobRequest, opts?: client.RequestOptions): Promise<void>;
async deleteDetector(params: DeleteDetectorRequest, opts?: client.RequestOptions): Promise<void>;
async deleteDetectorVersion(params: DeleteDetectorVersionRequest, opts?: client.RequestOptions): Promise<void>;
async deleteEntityType(params: DeleteEntityTypeRequest, opts?: client.RequestOptions): Promise<void>;
async deleteEvent(params: DeleteEventRequest, opts?: client.RequestOptions): Promise<void>;
async deleteEventsByEventType(params: DeleteEventsByEventTypeRequest, opts?: client.RequestOptions): Promise<DeleteEventsByEventTypeResult>;
async deleteEventType(params: DeleteEventTypeRequest, opts?: client.RequestOptions): Promise<void>;
async deleteExternalModel(params: DeleteExternalModelRequest, opts?: client.RequestOptions): Promise<void>;
async deleteLabel(params: DeleteLabelRequest, opts?: client.RequestOptions): Promise<void>;
async deleteModel(params: DeleteModelRequest, opts?: client.RequestOptions): Promise<void>;
async deleteModelVersion(params: DeleteModelVersionRequest, opts?: client.RequestOptions): Promise<void>;
async deleteOutcome(params: DeleteOutcomeRequest, opts?: client.RequestOptions): Promise<void>;
async deleteRule(params: DeleteRuleRequest, opts?: client.RequestOptions): Promise<void>;
async deleteVariable(params: DeleteVariableRequest, opts?: client.RequestOptions): Promise<void>;
async describeDetector(params: DescribeDetectorRequest, opts?: client.RequestOptions): Promise<DescribeDetectorResult>;
async describeModelVersions(params?: DescribeModelVersionsRequest, opts?: client.RequestOptions): Promise<DescribeModelVersionsResult>;
async getBatchImportJobs(params?: GetBatchImportJobsRequest, opts?: client.RequestOptions): Promise<GetBatchImportJobsResult>;
async getBatchPredictionJobs(params?: GetBatchPredictionJobsRequest, opts?: client.RequestOptions): Promise<GetBatchPredictionJobsResult>;
async getDeleteEventsByEventTypeStatus(params: GetDeleteEventsByEventTypeStatusRequest, opts?: client.RequestOptions): Promise<GetDeleteEventsByEventTypeStatusResult>;
async getDetectors(params?: GetDetectorsRequest, opts?: client.RequestOptions): Promise<GetDetectorsResult>;
async getDetectorVersion(params: GetDetectorVersionRequest, opts?: client.RequestOptions): Promise<GetDetectorVersionResult>;
async getEntityTypes(params?: GetEntityTypesRequest, opts?: client.RequestOptions): Promise<GetEntityTypesResult>;
async getEvent(params: GetEventRequest, opts?: client.RequestOptions): Promise<GetEventResult>;
async getEventPrediction(params: GetEventPredictionRequest, opts?: client.RequestOptions): Promise<GetEventPredictionResult>;
async getEventTypes(params?: GetEventTypesRequest, opts?: client.RequestOptions): Promise<GetEventTypesResult>;
async getExternalModels(params?: GetExternalModelsRequest, opts?: client.RequestOptions): Promise<GetExternalModelsResult>;
async getKMSEncryptionKey(opts?: client.RequestOptions): Promise<GetKMSEncryptionKeyResult>;
async getLabels(params?: GetLabelsRequest, opts?: client.RequestOptions): Promise<GetLabelsResult>;
async getModels(params?: GetModelsRequest, opts?: client.RequestOptions): Promise<GetModelsResult>;
async getModelVersion(params: GetModelVersionRequest, opts?: client.RequestOptions): Promise<GetModelVersionResult>;
async getOutcomes(params?: GetOutcomesRequest, opts?: client.RequestOptions): Promise<GetOutcomesResult>;
async getRules(params: GetRulesRequest, opts?: client.RequestOptions): Promise<GetRulesResult>;
async getVariables(params?: GetVariablesRequest, opts?: client.RequestOptions): Promise<GetVariablesResult>;
async listTagsForResource(params: ListTagsForResourceRequest, opts?: client.RequestOptions): Promise<ListTagsForResourceResult>;
async putDetector(params: PutDetectorRequest, opts?: client.RequestOptions): Promise<void>;
async putEntityType(params: PutEntityTypeRequest, opts?: client.RequestOptions): Promise<void>;
async putEventType(params: PutEventTypeRequest, opts?: client.RequestOptions): Promise<void>;
async putExternalModel(params: PutExternalModelRequest, opts?: client.RequestOptions): Promise<void>;
async putKMSEncryptionKey(params: PutKMSEncryptionKeyRequest, opts?: client.RequestOptions): Promise<void>;
async putLabel(params: PutLabelRequest, opts?: client.RequestOptions): Promise<void>;
async putOutcome(params: PutOutcomeRequest, opts?: client.RequestOptions): Promise<void>;
async sendEvent(params: SendEventRequest, opts?: client.RequestOptions): Promise<void>;
async tagResource(params: TagResourceRequest, opts?: client.RequestOptions): Promise<void>;
async untagResource(params: UntagResourceRequest, opts?: client.RequestOptions): Promise<void>;
async updateDetectorVersion(params: UpdateDetectorVersionRequest, opts?: client.RequestOptions): Promise<void>;
async updateDetectorVersionMetadata(params: UpdateDetectorVersionMetadataRequest, opts?: client.RequestOptions): Promise<void>;
async updateDetectorVersionStatus(params: UpdateDetectorVersionStatusRequest, opts?: client.RequestOptions): Promise<void>;
async updateEventLabel(params: UpdateEventLabelRequest, opts?: client.RequestOptions): Promise<void>;
async updateModel(params: UpdateModelRequest, opts?: client.RequestOptions): Promise<void>;
async updateModelVersion(params: UpdateModelVersionRequest, opts?: client.RequestOptions): Promise<UpdateModelVersionResult>;
async updateModelVersionStatus(params: UpdateModelVersionStatusRequest, opts?: client.RequestOptions): Promise<void>;
async updateRuleMetadata(params: UpdateRuleMetadataRequest, opts?: client.RequestOptions): Promise<void>;
async updateRuleVersion(params: UpdateRuleVersionRequest, opts?: client.RequestOptions): Promise<UpdateRuleVersionResult>;
async updateVariable(params: UpdateVariableRequest, opts?: client.RequestOptions): Promise<void>;
 
static ApiMetadata: client.ApiMetadata;
}

§Constructors

§
new FraudDetector(apiFactory: client.ApiFactory)
[src]

§Methods

§

Creates a batch of variables.

§

Gets a batch of variables.

§
cancelBatchImportJob(params: CancelBatchImportJobRequest, opts?: client.RequestOptions): Promise<void>
[src]

Cancels an in-progress batch import job.

§
cancelBatchPredictionJob(params: CancelBatchPredictionJobRequest, opts?: client.RequestOptions): Promise<void>
[src]

Cancels the specified batch prediction job.

§
createBatchImportJob(params: CreateBatchImportJobRequest, opts?: client.RequestOptions): Promise<void>
[src]

Creates a batch import job.

§
createBatchPredictionJob(params: CreateBatchPredictionJobRequest, opts?: client.RequestOptions): Promise<void>
[src]

Creates a batch prediction job.

§

Creates a detector version. The detector version starts in a DRAFT status.

§
createModel(params: CreateModelRequest, opts?: client.RequestOptions): Promise<void>
[src]

Creates a model using the specified model type.

§

Creates a version of the model using the specified model type and model id.

§
createRule(params: CreateRuleRequest, opts?: client.RequestOptions): Promise<CreateRuleResult>
[src]

Creates a rule for use with the specified detector.

§
createVariable(params: CreateVariableRequest, opts?: client.RequestOptions): Promise<void>
[src]

Creates a variable.

§
deleteBatchImportJob(params: DeleteBatchImportJobRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes data that was batch imported to Amazon Fraud Detector.

§
deleteBatchPredictionJob(params: DeleteBatchPredictionJobRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes a batch prediction job.

§
deleteDetector(params: DeleteDetectorRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the detector. Before deleting a detector, you must first delete all detector versions and rule versions associated with the detector.

When you delete a detector, Amazon Fraud Detector permanently deletes the detector and the data is no longer stored in Amazon Fraud Detector.

§
deleteDetectorVersion(params: DeleteDetectorVersionRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the detector version. You cannot delete detector versions that are in ACTIVE status.

When you delete a detector version, Amazon Fraud Detector permanently deletes the detector and the data is no longer stored in Amazon Fraud Detector.

§
deleteEntityType(params: DeleteEntityTypeRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes an entity type.

You cannot delete an entity type that is included in an event type.

When you delete an entity type, Amazon Fraud Detector permanently deletes that entity type and the data is no longer stored in Amazon Fraud Detector.

§
deleteEvent(params: DeleteEventRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the specified event.

When you delete an event, Amazon Fraud Detector permanently deletes that event and the event data is no longer stored in Amazon Fraud Detector.

§

Deletes all events of a particular event type.

§
deleteEventType(params: DeleteEventTypeRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes an event type.

You cannot delete an event type that is used in a detector or a model.

When you delete an event type, Amazon Fraud Detector permanently deletes that event type and the data is no longer stored in Amazon Fraud Detector.

§
deleteExternalModel(params: DeleteExternalModelRequest, opts?: client.RequestOptions): Promise<void>
[src]

Removes a SageMaker model from Amazon Fraud Detector.

You can remove an Amazon SageMaker model if it is not associated with a detector version. Removing a SageMaker model disconnects it from Amazon Fraud Detector, but the model remains available in SageMaker.

§
deleteLabel(params: DeleteLabelRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes a label.

You cannot delete labels that are included in an event type in Amazon Fraud Detector.

You cannot delete a label assigned to an event ID. You must first delete the relevant event ID.

When you delete a label, Amazon Fraud Detector permanently deletes that label and the data is no longer stored in Amazon Fraud Detector.

§
deleteModel(params: DeleteModelRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes a model.

You can delete models and model versions in Amazon Fraud Detector, provided that they are not associated with a detector version.

When you delete a model, Amazon Fraud Detector permanently deletes that model and the data is no longer stored in Amazon Fraud Detector.

§
deleteModelVersion(params: DeleteModelVersionRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes a model version.

You can delete models and model versions in Amazon Fraud Detector, provided that they are not associated with a detector version.

When you delete a model version, Amazon Fraud Detector permanently deletes that model version and the data is no longer stored in Amazon Fraud Detector.

§
deleteOutcome(params: DeleteOutcomeRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes an outcome.

You cannot delete an outcome that is used in a rule version.

When you delete an outcome, Amazon Fraud Detector permanently deletes that outcome and the data is no longer stored in Amazon Fraud Detector.

§
deleteRule(params: DeleteRuleRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the rule. You cannot delete a rule if it is used by an ACTIVE or INACTIVE detector version.

When you delete a rule, Amazon Fraud Detector permanently deletes that rule and the data is no longer stored in Amazon Fraud Detector.

§
deleteVariable(params: DeleteVariableRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes a variable.

You can't delete variables that are included in an event type in Amazon Fraud Detector.

Amazon Fraud Detector automatically deletes model output variables and SageMaker model output variables when you delete the model. You can't delete these variables manually.

When you delete a variable, Amazon Fraud Detector permanently deletes that variable and the data is no longer stored in Amazon Fraud Detector.

§

Gets all versions for a specified detector.

§

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.

§

Gets all batch import jobs or a specific job of the specified ID. 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 1 and 50. To get the next page results, provide the pagination token from the GetBatchImportJobsResponse as part of your request. A null pagination token fetches the records from the beginning.

§

Gets all batch prediction jobs or a specific job if you specify a job ID. 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 1 and 50. To get the next page results, provide the pagination token from the GetBatchPredictionJobsResponse as part of your request. A null pagination token fetches the records from the beginning.

§

Retrieves the status of a DeleteEventsByEventType action.

§
getDetectors(params?: GetDetectorsRequest, opts?: client.RequestOptions): Promise<GetDetectorsResult>
[src]

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.

§

Gets a particular detector version.

§
getEntityTypes(params?: GetEntityTypesRequest, opts?: client.RequestOptions): Promise<GetEntityTypesResult>
[src]

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.

§
getEvent(params: GetEventRequest, opts?: client.RequestOptions): Promise<GetEventResult>
[src]

Retrieves details of events stored with Amazon Fraud Detector. This action does not retrieve prediction results.

§

Evaluates an event against a detector version. If a version ID is not provided, the detector’s (ACTIVE) version is used.

§
getEventTypes(params?: GetEventTypesRequest, opts?: client.RequestOptions): Promise<GetEventTypesResult>
[src]

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.

§

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(opts?: client.RequestOptions): Promise<GetKMSEncryptionKeyResult>
[src]

Gets the encryption key if a KMS key has been specified to be used to encrypt content in Amazon Fraud Detector.

§
getLabels(params?: GetLabelsRequest, opts?: client.RequestOptions): Promise<GetLabelsResult>
[src]

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(params?: GetModelsRequest, opts?: client.RequestOptions): Promise<GetModelsResult>
[src]

Gets one or more models. Gets all models for the Amazon Web Services account if no model type and no model id provided. Gets all models for the Amazon Web Services 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.

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 1 and 10. 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.

§

Gets the details of the specified model version.

§
getOutcomes(params?: GetOutcomesRequest, opts?: client.RequestOptions): Promise<GetOutcomesResult>
[src]

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(params: GetRulesRequest, opts?: client.RequestOptions): Promise<GetRulesResult>
[src]

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.

This is a paginated API. Providing null maxResults results in retrieving maximum of 100 records per page. If you provide maxResults the value must be between 50 and 100. To get the next page result, a provide a pagination token from GetRulesResult as part of your request. Null pagination token fetches the records from the beginning.

§
getVariables(params?: GetVariablesRequest, opts?: client.RequestOptions): Promise<GetVariablesResult>
[src]

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.

§

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.

§
putDetector(params: PutDetectorRequest, opts?: client.RequestOptions): Promise<void>
[src]

Creates or updates a detector.

§
putEntityType(params: PutEntityTypeRequest, opts?: client.RequestOptions): Promise<void>
[src]

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(params: PutEventTypeRequest, opts?: client.RequestOptions): Promise<void>
[src]

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(params: PutExternalModelRequest, opts?: client.RequestOptions): Promise<void>
[src]

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(params: PutKMSEncryptionKeyRequest, opts?: client.RequestOptions): Promise<void>
[src]

Specifies the KMS key to be used to encrypt content in Amazon Fraud Detector.

§
putLabel(params: PutLabelRequest, opts?: client.RequestOptions): Promise<void>
[src]

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(params: PutOutcomeRequest, opts?: client.RequestOptions): Promise<void>
[src]

Creates or updates an outcome.

§
sendEvent(params: SendEventRequest, opts?: client.RequestOptions): Promise<void>
[src]

Stores events in Amazon Fraud Detector without generating fraud predictions for those events. For example, you can use SendEvent to upload a historical dataset, which you can then later use to train a model.

§
tagResource(params: TagResourceRequest, opts?: client.RequestOptions): Promise<void>
[src]

Assigns tags to a resource.

§
untagResource(params: UntagResourceRequest, opts?: client.RequestOptions): Promise<void>
[src]

Removes tags from a resource.

§
updateDetectorVersion(params: UpdateDetectorVersionRequest, opts?: client.RequestOptions): Promise<void>
[src]

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(params: UpdateDetectorVersionMetadataRequest, opts?: client.RequestOptions): Promise<void>
[src]

Updates the detector version's description. You can update the metadata for any detector version (DRAFT, ACTIVE, or INACTIVE).

§
updateDetectorVersionStatus(params: UpdateDetectorVersionStatusRequest, opts?: client.RequestOptions): Promise<void>
[src]

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.

§
updateEventLabel(params: UpdateEventLabelRequest, opts?: client.RequestOptions): Promise<void>
[src]

Updates the specified event with a new label.

§
updateModel(params: UpdateModelRequest, opts?: client.RequestOptions): Promise<void>
[src]

Updates model description.

§

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(params: UpdateModelVersionStatusRequest, opts?: client.RequestOptions): Promise<void>
[src]

Updates the status of a model version.

You can perform the following status updates:

  1. Change the TRAINING_COMPLETE status to ACTIVE.
  2. Change ACTIVE to INACTIVE.
§
updateRuleMetadata(params: UpdateRuleMetadataRequest, opts?: client.RequestOptions): Promise<void>
[src]

Updates a rule's metadata. The description attribute can be updated.

§

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(params: UpdateVariableRequest, opts?: client.RequestOptions): Promise<void>
[src]

Updates a variable.

§Static Properties