outcomes
Creates, updates, deletes or gets an outcome resource or lists outcomes in a region
Overview
| Name | outcomes |
| Type | Resource |
| Description | An outcome for rule evaluation. |
| Id | awscc.frauddetector.outcomes |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
name | string | The name of the outcome. |
tags | array | Tags associated with this outcome. |
description | string | The outcome description. |
arn | string | The outcome ARN. |
created_time | string | The timestamp when the outcome was created. |
last_updated_time | string | The timestamp when the outcome was last updated. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
arn | string | The outcome ARN. |
region | string | AWS region. |
For more information, see AWS::FraudDetector::Outcome.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | outcomes | INSERT | Name, region |
delete_resource | outcomes | DELETE | Identifier, region |
update_resource | outcomes | UPDATE | Identifier, PatchDocument, region |
list_resources | outcomes_list_only | SELECT | region |
get_resource | outcomes | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual outcome.
SELECT
region,
name,
tags,
description,
arn,
created_time,
last_updated_time
FROM awscc.frauddetector.outcomes
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';
Lists all outcomes in a region.
SELECT
region,
arn
FROM awscc.frauddetector.outcomes_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new outcome resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.frauddetector.outcomes (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.frauddetector.outcomes (
Name,
Tags,
Description,
region
)
SELECT
'{{ name }}',
'{{ tags }}',
'{{ description }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: outcome
props:
- name: name
value: '{{ name }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
- name: description
value: '{{ description }}'
UPDATE example
Use the following StackQL query and manifest file to update a outcome resource, using stack-deploy.
/*+ update */
UPDATE awscc.frauddetector.outcomes
SET PatchDocument = string('{{ {
"Tags": tags,
"Description": description
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';
DELETE example
/*+ delete */
DELETE FROM awscc.frauddetector.outcomes
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';
Permissions
To operate on the outcomes resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
frauddetector:GetOutcomes,
frauddetector:PutOutcome,
frauddetector:ListTagsForResource,
frauddetector:TagResource
frauddetector:GetOutcomes,
frauddetector:ListTagsForResource
frauddetector:GetOutcomes,
frauddetector:PutOutcome,
frauddetector:ListTagsForResource,
frauddetector:TagResource,
frauddetector:UntagResource
frauddetector:GetOutcomes,
frauddetector:DeleteOutcome
frauddetector:GetOutcomes,
frauddetector:ListTagsForResource