Skip to main content

lists

Creates, updates, deletes or gets a list resource or lists lists in a region

Overview

Namelists
TypeResource
DescriptionA resource schema for a List in Amazon Fraud Detector.
Idaws.frauddetector.lists

Fields

NameDatatypeDescription
arnstringThe list ARN.
namestringThe name of the list.
descriptionstringThe description of the list.
variable_typestringThe variable type of the list.
created_timestringThe time when the list was created.
last_updated_timestringThe time when the list was last updated.
tagsarrayTags associated with this list.
elementsarrayThe elements in this list.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all lists in a region.

SELECT
region,
arn,
name,
description,
variable_type,
created_time,
last_updated_time,
tags,
elements
FROM aws.frauddetector.lists
WHERE region = 'us-east-1';

Gets all properties from an individual list.

SELECT
region,
arn,
name,
description,
variable_type,
created_time,
last_updated_time,
tags,
elements
FROM aws.frauddetector.lists
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

Use the following StackQL query and manifest file to create a new list resource, using stack-deploy.

/*+ create */
INSERT INTO aws.frauddetector.lists (
Name,
region
)
SELECT
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.frauddetector.lists
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

To operate on the lists resource, the following permissions are required:

Create

frauddetector:CreateList,
frauddetector:GetListElements,
frauddetector:GetListsMetadata,
frauddetector:ListTagsForResource,
frauddetector:TagResource,
frauddetector:UpdateList

Read

frauddetector:GetListElements,
frauddetector:GetListsMetadata,
frauddetector:ListTagsForResource

Update

frauddetector:GetListElements,
frauddetector:GetListsMetadata,
frauddetector:ListTagsForResource,
frauddetector:UntagResource,
frauddetector:UpdateList,
frauddetector:TagResource

Delete

frauddetector:DeleteList,
frauddetector:GetListsMetadata

List

frauddetector:GetListElements,
frauddetector:GetListsMetadata,
frauddetector:ListTagsForResource