Amazon Elastic Compute Cloud

2020/04/08 - Amazon Elastic Compute Cloud - 3 new api methods

Changes  This release provides the ability to include tags in EC2 event notifications.

RegisterInstanceEventNotificationAttributes (new) Link ¶

Registers a set of tag keys to include in scheduled event notifications for your resources. For more information, see Customizing Scheduled Event Notifications .

To remove tags, use .

See also: AWS API Documentation

Request Syntax

client.register_instance_event_notification_attributes(
    DryRun=True|False,
    InstanceTagAttribute={
        'IncludeAllTagsOfInstance': True|False,
        'InstanceTagKeys': [
            'string',
        ]
    }
)
type DryRun

boolean

param DryRun

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 .

type InstanceTagAttribute

dict

param InstanceTagAttribute

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) --

rtype

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.

DescribeInstanceEventNotificationAttributes (new) Link ¶

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

See also: AWS API Documentation

Request Syntax

client.describe_instance_event_notification_attributes(
    DryRun=True|False
)
type DryRun

boolean

param DryRun

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 .

rtype

dict

returns

Response Syntax

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

Response Structure

  • (dict) --

    • InstanceTagAttribute (dict) --

      Information about the registered 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.

DeregisterInstanceEventNotificationAttributes (new) Link ¶

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

For more information, see Customizing Scheduled Event Notifications .

See also: AWS API Documentation

Request Syntax

client.deregister_instance_event_notification_attributes(
    DryRun=True|False,
    InstanceTagAttribute={
        'IncludeAllTagsOfInstance': True|False,
        'InstanceTagKeys': [
            'string',
        ]
    }
)
type DryRun

boolean

param DryRun

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 .

type InstanceTagAttribute

dict

param InstanceTagAttribute

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) --

rtype

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.