event_types
Creates, updates, deletes or gets an event_type
resource or lists event_types
in a region
Overview
Name | event_types |
Type | Resource |
Description | A resource schema for an EventType in Amazon Fraud Detector. |
Id | aws.frauddetector.event_types |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The name for the event type |
tags | array | Tags associated with this event type. |
description | string | The description of the event type. |
event_variables | array | |
labels | array | |
entity_types | array | |
arn | string | The ARN of the event type. |
created_time | string | The time when the event type was created. |
last_updated_time | string | The time when the event type was last updated. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | EntityTypes, EventVariables, Labels, Name, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.frauddetector.event_types (
Name,
EventVariables,
Labels,
EntityTypes,
region
)
SELECT
'{{ Name }}',
'{{ EventVariables }}',
'{{ Labels }}',
'{{ EntityTypes }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.frauddetector.event_types (
Name,
Tags,
Description,
EventVariables,
Labels,
EntityTypes,
region
)
SELECT
'{{ Name }}',
'{{ Tags }}',
'{{ Description }}',
'{{ EventVariables }}',
'{{ Labels }}',
'{{ EntityTypes }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: event_type
props:
- name: Name
value: '{{ Name }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
- name: Description
value: '{{ Description }}'
- name: EventVariables
value:
- Arn: '{{ Arn }}'
Inline: '{{ Inline }}'
Name: '{{ Name }}'
DataSource: '{{ DataSource }}'
DataType: '{{ DataType }}'
DefaultValue: '{{ DefaultValue }}'
VariableType: '{{ VariableType }}'
Description: '{{ Description }}'
Tags:
- null
CreatedTime: '{{ CreatedTime }}'
LastUpdatedTime: '{{ LastUpdatedTime }}'
- name: Labels
value:
- Name: '{{ Name }}'
Tags:
- null
Description: '{{ Description }}'
- name: EntityTypes
value:
- Arn: '{{ Arn }}'
Inline: '{{ Inline }}'
Name: '{{ Name }}'
Description: '{{ Description }}'
Tags:
- null
CreatedTime: '{{ CreatedTime }}'
LastUpdatedTime: '{{ LastUpdatedTime }}'
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