Skip to main content

outcomes

Creates, updates, deletes or gets an outcome resource or lists outcomes in a region

Overview

Nameoutcomes
TypeResource
DescriptionAn outcome for rule evaluation.
Idaws.frauddetector.outcomes

Fields

NameDatatypeDescription
namestringThe name of the outcome.
tagsarrayTags associated with this outcome.
descriptionstringThe outcome description.
arnstringThe outcome ARN.
created_timestringThe timestamp when the outcome was created.
last_updated_timestringThe timestamp when the outcome was last updated.
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 outcomes in a region.

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

Gets all properties from an individual outcome.

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

INSERT example

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

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

DELETE example

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

Permissions

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

Create

frauddetector:GetOutcomes,
frauddetector:PutOutcome,
frauddetector:ListTagsForResource,
frauddetector:TagResource

Read

frauddetector:GetOutcomes,
frauddetector:ListTagsForResource

Update

frauddetector:GetOutcomes,
frauddetector:PutOutcome,
frauddetector:ListTagsForResource,
frauddetector:TagResource,
frauddetector:UntagResource

Delete

frauddetector:GetOutcomes,
frauddetector:DeleteOutcome

List

frauddetector:GetOutcomes,
frauddetector:ListTagsForResource