WorkSpacesWeb / Client / tag_resource
tag_resource#
- WorkSpacesWeb.Client.tag_resource(**kwargs)#
Adds or overwrites one or more tags for the specified resource.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource( clientToken='string', resourceArn='string', tags=[ { 'Key': 'string', 'Value': 'string' }, ] )
- Parameters:
clientToken (string) –
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token returns the result from the original successful request.
If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.
This field is autopopulated if not provided.
resourceArn (string) –
[REQUIRED]
The ARN of the resource.
tags (list) –
[REQUIRED]
The tags of the resource.
(dict) –
The tag.
Key (string) – [REQUIRED]
The key of the tag.
Value (string) – [REQUIRED]
The value of the tag
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions