Skip to content
GitHubXDiscord

List

The List resource lets you manage AWS FraudDetector Lists which are used to store and manage sets of variables for fraud detection.

Create a basic FraudDetector List with required properties and a common optional property.

import AWS from "alchemy/aws/control";
const fraudDetectorList = await AWS.FraudDetector.List("myFraudDetectorList", {
name: "customer_ids",
description: "A list of customer IDs for fraud detection",
variableType: "STRING",
elements: ["12345", "67890", "abcde"]
});

Configure a FraudDetector List with tags for better organization and management.

const taggedFraudDetectorList = await AWS.FraudDetector.List("taggedFraudDetectorList", {
name: "transaction_ids",
description: "A list of transaction IDs for fraud detection",
variableType: "STRING",
elements: ["tx-1001", "tx-1002", "tx-1003"],
tags: [
{ key: "environment", value: "production" },
{ key: "team", value: "fraud-prevention" }
]
});

You can adopt an existing FraudDetector List instead of creating a new one if it already exists.

const existingFraudDetectorList = await AWS.FraudDetector.List("adoptedFraudDetectorList", {
name: "user_emails",
description: "A list of user email addresses for fraud detection",
variableType: "STRING",
elements: ["user@example.com", "admin@example.com"],
adopt: true
});