AgentRegistryControl / Client / tag_resource
tag_resource¶
- AgentRegistryControl.Client.tag_resource(**kwargs)¶
Adds or overwrites one or more tags for the specified Amazon Web Services Agent Registry resource. Tags are key-value pairs that you can use to categorize and manage Amazon Web Services resources. If a tag with the same key already exists on the resource, the service replaces its value with the value you specify.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource( resourceArn='string', tags={ 'string': 'string' } )
- Parameters:
resourceArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the resource to tag. Supported resources include registries and registry records.
tags (dict) –
[REQUIRED]
The tags to apply to the resource, as a map of tag keys to tag values. Tag keys must be unique within the request.
(string) –
Key of a tag.
(string) –
Value of a tag.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions
AgentRegistryControl.Client.exceptions.InternalServerExceptionAgentRegistryControl.Client.exceptions.AccessDeniedExceptionAgentRegistryControl.Client.exceptions.ThrottlingExceptionAgentRegistryControl.Client.exceptions.ResourceNotFoundExceptionAgentRegistryControl.Client.exceptions.ValidationExceptionAgentRegistryControl.Client.exceptions.ServiceQuotaExceededException