Skip to main content

event_types

Creates, updates, deletes or gets an event_type resource or lists event_types in a region

Overview

Nameevent_types
TypeResource
DescriptionA resource schema for an EventType in Amazon Fraud Detector.
Idawscc.frauddetector.event_types

Fields

NameDatatypeDescription
namestringThe name for the event type
tagsarrayTags associated with this event type.
descriptionstringThe description of the event type.
event_variablesarray
labelsarray
entity_typesarray
arnstringThe ARN of the event type.
created_timestringThe time when the event type was created.
last_updated_timestringThe time when the event type was last updated.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceevent_typesINSERTEntityTypes, EventVariables, Labels, Name, region
delete_resourceevent_typesDELETEIdentifier, region
update_resourceevent_typesUPDATEIdentifier, PatchDocument, region
list_resourcesevent_types_list_onlySELECTregion
get_resourceevent_typesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual event_type.

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

INSERT example

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

/*+ create */
INSERT INTO awscc.frauddetector.event_types (
Name,
EventVariables,
Labels,
EntityTypes,
region
)
SELECT
'{{ name }}',
'{{ event_variables }}',
'{{ labels }}',
'{{ entity_types }}',
'{{ region }}';

UPDATE example

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

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

DELETE example

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

Permissions

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

frauddetector:BatchCreateVariable,
frauddetector:BatchGetVariable,
frauddetector:CreateVariable,
frauddetector:GetVariables,
frauddetector:PutLabel,
frauddetector:PutEntityType,
frauddetector:PutEventType,
frauddetector:GetEventTypes,
frauddetector:GetLabels,
frauddetector:GetEntityTypes,
frauddetector:ListTagsForResource,
frauddetector:TagResource