EventBridgeV2 / Client / tag_resource

tag_resource

EventBridgeV2.Client.tag_resource(**kwargs)

Adds or replaces tags on an event bus, subscriber, or event source.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    ResourceArn='string',
    Tags={
        'string': 'string'
    }
)
Parameters:
  • ResourceArn (string) –

    [REQUIRED]

    ARN for an EventBridge resource that supports tagging: event buses, subscribers, and event sources.

  • Tags (dict) –

    [REQUIRED]

    Tags attached to a resource, as key-value pairs.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • EventBridgeV2.Client.exceptions.LimitExceededException

  • EventBridgeV2.Client.exceptions.AccessDeniedException

  • EventBridgeV2.Client.exceptions.ResourceNotFoundException

  • EventBridgeV2.Client.exceptions.ThrottlingException

  • EventBridgeV2.Client.exceptions.InvalidInputException

  • EventBridgeV2.Client.exceptions.InternalException

  • EventBridgeV2.Client.exceptions.ConcurrentModificationException

  • EventBridgeV2.Client.exceptions.InvalidStateException