EC2 / Client / deregister_instance_event_notification_attributes

deregister_instance_event_notification_attributes#

EC2.Client.deregister_instance_event_notification_attributes(**kwargs)#

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

See also: AWS API Documentation

Request Syntax

response = client.deregister_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 deregister.

    • IncludeAllTagsOfInstance (boolean) –

      Indicates whether to deregister all tag keys in the current Region. Specify false to deregister all tag keys.

    • InstanceTagKeys (list) –

      Information about the tag keys to deregister.

      • (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.