SWF / Client / tag_resource

tag_resource#

SWF.Client.tag_resource(**kwargs)#

Add a tag to a Amazon SWF domain.

Note

Amazon SWF supports a maximum of 50 tags per resource.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    resourceArn='string',
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ]
)
Parameters:
  • resourceArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) for the Amazon SWF domain.

  • tags (list) –

    [REQUIRED]

    The list of tags to add to a domain.

    Tags may only contain unicode letters, digits, whitespace, or these symbols: _ . : / = + - @.

    • (dict) –

      Tags are key-value pairs that can be associated with Amazon SWF state machines and activities.

      Tags may only contain unicode letters, digits, whitespace, or these symbols: _ . : / = + - @.

      • key (string) – [REQUIRED]

        The key of a tag.

      • value (string) –

        The value of a tag.

Returns:

None

Exceptions

  • SWF.Client.exceptions.UnknownResourceFault

  • SWF.Client.exceptions.TooManyTagsFault

  • SWF.Client.exceptions.LimitExceededFault

  • SWF.Client.exceptions.OperationNotPermittedFault