MediaConnect / Client / tag_resource

tag_resource#

MediaConnect.Client.tag_resource(**kwargs)#

Associates the specified tags to a resource with the specified resourceArn. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are deleted as well.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    ResourceArn='string',
    Tags={
        'string': 'string'
    }
)
Parameters:
  • ResourceArn (string) – [REQUIRED] The Amazon Resource Name (ARN) that identifies the AWS Elemental MediaConnect resource to which to add tags.

  • Tags (dict) –

    [REQUIRED] A map from tag keys to values. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

    • (string) –

      • (string) –

Returns:

None

Exceptions

  • MediaConnect.Client.exceptions.NotFoundException

  • MediaConnect.Client.exceptions.BadRequestException

  • MediaConnect.Client.exceptions.InternalServerErrorException