Skip to main content

event_buses

Creates, updates, deletes or gets an event_bus resource or lists event_buses in a region

Overview

Nameevent_buses
TypeResource
DescriptionResource type definition for AWS::Events::EventBus
Idaws.events.event_buses

Fields

NameDatatypeDescription
event_source_namestringIf you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.
namestringThe name of the event bus.
tagsarrayAny tags assigned to the event bus.
descriptionstringThe description of the event bus.
kms_key_identifierstringKms Key Identifier used to encrypt events at rest in the event bus.
policyobjectA JSON string that describes the permission policy statement for the event bus.
arnstringThe Amazon Resource Name (ARN) for the event bus.
dead_letter_configobjectDead Letter Queue for the event bus.
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 event_buses in a region.

SELECT
region,
event_source_name,
name,
tags,
description,
kms_key_identifier,
policy,
arn,
dead_letter_config
FROM aws.events.event_buses
WHERE region = 'us-east-1';

Gets all properties from an individual event_bus.

SELECT
region,
event_source_name,
name,
tags,
description,
kms_key_identifier,
policy,
arn,
dead_letter_config
FROM aws.events.event_buses
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.events.event_buses
WHERE data__Identifier = '<Name>'
AND region = 'us-east-1';

Permissions

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

Create

events:CreateEventBus,
events:DescribeEventBus,
events:PutPermission,
events:ListTagsForResource,
events:TagResource,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt

Read

events:DescribeEventBus,
events:ListTagsForResource

Update

events:TagResource,
events:UntagResource,
events:PutPermission,
events:DescribeEventBus,
events:UpdateEventBus,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt

Delete

events:DescribeEventBus,
events:UpdateEventBus,
events:ListTagsForResource,
events:UntagResource,
events:RemovePermission,
events:DeleteEventBus

List

events:ListEventBuses,
events:ListTagsForResource