EventBridgeScheduler / Client / tag_resource
tag_resource#
- EventBridgeScheduler.Client.tag_resource(**kwargs)#
Assigns one or more tags (key-value pairs) to the specified EventBridge Scheduler resource. You can only assign tags to schedule groups.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource( ResourceArn='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] )
- Parameters:
ResourceArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the schedule group that you are adding tags to.
Tags (list) –
[REQUIRED]
The list of tags to associate with the schedule group.
(dict) –
Tag to associate with a schedule group.
Key (string) – [REQUIRED]
The key for the tag.
Value (string) – [REQUIRED]
The value for the tag.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
EventBridgeScheduler.Client.exceptions.ValidationException
EventBridgeScheduler.Client.exceptions.InternalServerException
EventBridgeScheduler.Client.exceptions.ConflictException
EventBridgeScheduler.Client.exceptions.ResourceNotFoundException
EventBridgeScheduler.Client.exceptions.ThrottlingException