DirectConnect.Client.
tag_resource
(**kwargs)¶Adds the specified tags to the specified Direct Connect resource. Each 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 resource, this action updates its value.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
resourceArn='string',
tags=[
{
'key': 'string',
'value': 'string'
},
]
)
[REQUIRED]
The Amazon Resource Name (ARN) of the resource.
[REQUIRED]
The tags to add.
Information about a tag.
The key.
The value.
dict
Response Syntax
{}
Response Structure
Exceptions
DirectConnect.Client.exceptions.DuplicateTagKeysException
DirectConnect.Client.exceptions.TooManyTagsException
DirectConnect.Client.exceptions.DirectConnectServerException
DirectConnect.Client.exceptions.DirectConnectClientException