AWS MediaConnect

2019/01/25 - AWS MediaConnect - 3 new api methods

Changes  This release adds support for tagging, untagging, and listing tags for existing AWS Elemental MediaConnect resources.

TagResource (new) Link ¶

Associates the specified tags to a resource. If the request does not mention an existing tag associated with the resource, that tag is not changed.

See also: AWS API Documentation

Request Syntax

client.tag_resource(
    ResourceArn='string',
    Tags={
        'string': 'string'
    }
)
type ResourceArn

string

param ResourceArn

[REQUIRED] The Amazon Resource Name (ARN) of the resource that you want to add tags to.

type Tags

dict

param Tags

[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

ListTagsForResource (new) Link ¶

Lists all tags associated with the resource.

See also: AWS API Documentation

Request Syntax

client.list_tags_for_resource(
    ResourceArn='string'
)
type ResourceArn

string

param ResourceArn

[REQUIRED] The Amazon Resource Name (ARN) of the resource that you want to view tags for.

rtype

dict

returns

Response Syntax

{
    'Tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) -- AWS Elemental MediaConnect listed the tags associated with the resource.

    • Tags (dict) -- 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) --

UntagResource (new) Link ¶

Deletes the specified tags from a resource.

See also: AWS API Documentation

Request Syntax

client.untag_resource(
    ResourceArn='string',
    TagKeys=[
        'string',
    ]
)
type ResourceArn

string

param ResourceArn

[REQUIRED] The Amazon Resource Name (ARN) of the resource that you want to remove tags from.

type TagKeys

list

param TagKeys

[REQUIRED] The keys of the tags to be removed.

  • (string) --

returns

None