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.
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERTEntityTypes, EventVariables, Labels, Name, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all event_types in a region.

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

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 aws.frauddetector.event_types
WHERE region = 'us-east-1' AND data__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 aws.frauddetector.event_types (
Name,
EventVariables,
Labels,
EntityTypes,
region
)
SELECT
'{{ Name }}',
'{{ EventVariables }}',
'{{ Labels }}',
'{{ EntityTypes }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

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

Update

frauddetector:BatchCreateVariable,
frauddetector:BatchGetVariable,
frauddetector:CreateVariable,
frauddetector:UpdateVariable,
frauddetector:GetVariables,
frauddetector:PutLabel,
frauddetector:PutEntityType,
frauddetector:PutEventType,
frauddetector:GetEventTypes,
frauddetector:GetLabels,
frauddetector:GetEntityTypes,
frauddetector:DeleteEventType,
frauddetector:DeleteVariable,
frauddetector:DeleteLabel,
frauddetector:DeleteEntityType,
frauddetector:ListTagsForResource,
frauddetector:TagResource,
frauddetector:UntagResource

Delete

frauddetector:BatchGetVariable,
frauddetector:GetVariables,
frauddetector:GetEventTypes,
frauddetector:GetLabels,
frauddetector:GetEntityTypes,
frauddetector:DeleteEventType,
frauddetector:DeleteVariable,
frauddetector:DeleteLabel,
frauddetector:DeleteEntityType,
frauddetector:ListTagsForResource

Read

frauddetector:BatchGetVariable,
frauddetector:GetVariables,
frauddetector:GetEventTypes,
frauddetector:GetLabels,
frauddetector:GetEntityTypes,
frauddetector:ListTagsForResource

List

frauddetector:BatchGetVariable,
frauddetector:GetVariables,
frauddetector:GetEventTypes,
frauddetector:GetLabels,
frauddetector:GetEntityTypes,
frauddetector:ListTagsForResource