AWS Step Functions

2018/12/21 - AWS Step Functions - 3 new api methods

Changes  This release adds support for cost allocation tagging. You can now create, delete, and list tags for AWS Step Functions activity and state machine resources. For more information about tagging, see AWS Tagging Strategies.

UntagResource (new) Link ¶

Remove a tag from a Step Functions 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) for the Step Functions state machine or activity.

type tagKeys

list

param tagKeys

[REQUIRED]

The list of tags to remove from the resource.

  • (string) --

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

ListTagsForResource (new) Link ¶

List tags for a given 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) for the Step Functions state machine or activity.

rtype

dict

returns

Response Syntax

{
    'tags': [
        {
            'key': 'string',
            'value': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • tags (list) --

      An array of tags associated with the resource.

      • (dict) --

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

        • key (string) --

          The key of a tag.

        • value (string) --

          The value of a tag.

TagResource (new) Link ¶

Add a tag to a Step Functions resource.

See also: AWS API Documentation

Request Syntax

client.tag_resource(
    resourceArn='string',
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ]
)
type resourceArn

string

param resourceArn

[REQUIRED]

The Amazon Resource Name (ARN) for the Step Functions state machine or activity.

type tags

list

param tags

[REQUIRED]

The list of tags to add to a resource.

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

  • (dict) --

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

    • key (string) --

      The key of a tag.

    • value (string) --

      The value of a tag.

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --