Skip to main content

labels

Creates, updates, deletes or gets a label resource or lists labels in a region

Overview

Namelabels
TypeResource
DescriptionAn label for fraud detector.
Idawscc.frauddetector.labels

Fields

NameDatatypeDescription
namestringThe name of the label.
tagsarrayTags associated with this label.
descriptionstringThe label description.
arnstringThe label ARN.
created_timestringThe timestamp when the label was created.
last_updated_timestringThe timestamp when the label was last updated.
regionstringAWS region.

For more information, see AWS::FraudDetector::Label.

Methods

NameResourceAccessible byRequired Params
create_resourcelabelsINSERTName, region
delete_resourcelabelsDELETEIdentifier, region
update_resourcelabelsUPDATEIdentifier, PatchDocument, region
list_resourceslabels_list_onlySELECTregion
get_resourcelabelsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual label.

SELECT
region,
name,
tags,
description,
arn,
created_time,
last_updated_time
FROM awscc.frauddetector.labels
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.frauddetector.labels (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a label resource, using stack-deploy.

/*+ update */
UPDATE awscc.frauddetector.labels
SET PatchDocument = string('{{ {
"Tags": tags,
"Description": description
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.frauddetector.labels
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';

Permissions

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

frauddetector:GetLabels,
frauddetector:PutLabel,
frauddetector:ListTagsForResource,
frauddetector:TagResource