EC2 / Client / register_instance_event_notification_attributes

register_instance_event_notification_attributes#

EC2.Client.register_instance_event_notification_attributes(**kwargs)#

Registers a set of tag keys to include in scheduled event notifications for your resources.

To remove tags, use DeregisterInstanceEventNotificationAttributes.

See also: AWS API Documentation

Request Syntax

response = client.register_instance_event_notification_attributes(
    DryRun=True|False,
    InstanceTagAttribute={
        'IncludeAllTagsOfInstance': True|False,
        'InstanceTagKeys': [
            'string',
        ]
    }
)
Parameters:
  • DryRun (boolean) – Checks 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.

  • InstanceTagAttribute (dict) –

    [REQUIRED]

    Information about the tag keys to register.

    • IncludeAllTagsOfInstance (boolean) –

      Indicates whether to register all tag keys in the current Region. Specify true to register all tag keys.

    • InstanceTagKeys (list) –

      The tag keys to register.

      • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'InstanceTagAttribute': {
        'InstanceTagKeys': [
            'string',
        ],
        'IncludeAllTagsOfInstance': True|False
    }
}

Response Structure

  • (dict) –

    • InstanceTagAttribute (dict) –

      The resulting set of tag keys.

      • InstanceTagKeys (list) –

        The registered tag keys.

        • (string) –

      • IncludeAllTagsOfInstance (boolean) –

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