AWS Direct Connect

2016/11/03 - AWS Direct Connect - 3 new api methods

Changes  Update directconnect client to latest version

UntagResource (new) Link ¶

Removes one or more tags from the specified Direct Connect resource.

Request Syntax

client.untag_resource(
    resourceArn='string',
    tagKeys=[
        'string',
    ]
)
type resourceArn:

string

param resourceArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the Direct Connect resource.

type tagKeys:

list

param tagKeys:

[REQUIRED]

The list of tag keys to remove.

  • (string) --

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

    The response received when UntagResource is called.

TagResource (new) Link ¶

Adds the specified tags to the specified Direct Connect resource. Each Direct Connect resource can have a maximum of 50 tags.

Each tag consists of a key and an optional value. If a tag with the same key is already associated with the Direct Connect resource, this action updates its value.

Request Syntax

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

string

param resourceArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the Direct Connect resource.

Example: arn:aws:directconnect:us-east-1:123456789012:dxcon/dxcon-fg5678gh

type tags:

list

param tags:

[REQUIRED]

The list of tags to add.

  • (dict) --

    Information about a tag.

    • key (string) -- [REQUIRED]

      The key of the tag.

    • value (string) --

      The value of the tag.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

    The response received when TagResource is called.

DescribeTags (new) Link ¶

Describes the tags associated with the specified Direct Connect resources.

Request Syntax

client.describe_tags(
    resourceArns=[
        'string',
    ]
)
type resourceArns:

list

param resourceArns:

[REQUIRED]

The Amazon Resource Names (ARNs) of the Direct Connect resources.

  • (string) --

rtype:

dict

returns:

Response Syntax

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

Response Structure

  • (dict) --

    The response received when DescribeTags is called.

    • resourceTags (list) --

      Information about the tags.

      • (dict) --

        The tags associated with a Direct Connect resource.

        • resourceArn (string) --

          The Amazon Resource Name (ARN) of the Direct Connect resource.

        • tags (list) --

          The tags.

          • (dict) --

            Information about a tag.

            • key (string) --

              The key of the tag.

            • value (string) --

              The value of the tag.