Skip to main content

instance_event_notification_attributes

Creates, updates, deletes, gets or lists an instance_event_notification_attributes resource.

Overview

Nameinstance_event_notification_attributes
TypeResource
Idaws.ec2.instance_event_notification_attributes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
include_all_tags_of_instancebooleanIndicates wheter all tag keys in the current Region are registered to appear in scheduled event notifications. true indicates that all tag keys in the current Region are registered.
instance_tag_keysstringThe registered tag keys.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_instance_event_notification_attributesselectregionDryRunDescribes the tag keys that are registered to appear in scheduled event notifications for resources in the current Region.
register_instance_event_notification_attributesinsertInstanceTagAttribute, regionDryRunRegisters a set of tag keys to include in scheduled event notifications for your resources. To remove tags, use DeregisterInstanceEventNotificationAttributes.
deregister_instance_event_notification_attributesdeleteInstanceTagAttribute, regionDryRunDeregisters tag keys to prevent tags that have the specified tag keys from being included in scheduled event notifications for resources in the Region.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
InstanceTagAttributeobjectInformation about the tag keys to deregister.
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

SELECT examples

Describes the tag keys that are registered to appear in scheduled event notifications for resources in the current Region.

SELECT
include_all_tags_of_instance,
instance_tag_keys
FROM aws.ec2.instance_event_notification_attributes
WHERE region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
;

INSERT examples

Registers a set of tag keys to include in scheduled event notifications for your resources. To remove tags, use DeregisterInstanceEventNotificationAttributes.

INSERT INTO aws.ec2.instance_event_notification_attributes (
InstanceTagAttribute,
region,
DryRun
)
SELECT
'{{ InstanceTagAttribute }}',
'{{ region }}',
'{{ DryRun }}'
RETURNING
include_all_tags_of_instance,
instance_tag_keys
;

DELETE examples

Deregisters tag keys to prevent tags that have the specified tag keys from being included in scheduled event notifications for resources in the Region.

DELETE FROM aws.ec2.instance_event_notification_attributes
WHERE InstanceTagAttribute = '{{ InstanceTagAttribute }}' --required
AND region = '{{ region }}' --required
AND DryRun = '{{ DryRun }}'
;