tag_resource
(**kwargs)¶Associates tags with an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.
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. The resource must be active (not in the DELETING
state), and must be owned by the account ID included in the request.
[REQUIRED]
A list of tags (key-value pairs) to add to the resource. All tag keys in the request must be unique.
A map of key-value pairs associated to an OpenSearch Serverless resource.
The key to use in the tag.
The value of the tag.
dict
Response Syntax
{}
Response Structure
Exceptions
OpenSearchServiceServerless.Client.exceptions.InternalServerException
OpenSearchServiceServerless.Client.exceptions.ResourceNotFoundException
OpenSearchServiceServerless.Client.exceptions.ConflictException
OpenSearchServiceServerless.Client.exceptions.ValidationException