tag_resource
¶
tag_resource(
tags: TagMap,
resource_arn: ResourceARN,
*,
config_overrides: Optional[KinesisClientConfig] = None,
stream_id: Optional[StreamId] = None,
) -> None
Adds or updates tags for the specified Kinesis resource. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources. You can assign up to 50 tags to a Kinesis resource.
Parameters:
-
tags(TagMap) –An array of tags to be added to the Kinesis resource. A tag consists of a required key and an optional value. You can add up to 50 tags per resource.
Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - @.
-
resource_arn(ResourceARN) –The Amazon Resource Name (ARN) of the Kinesis resource to which to add tags.
-
stream_id(Optional[StreamId], default:None) –Not Implemented. Reserved for future use.
Raises:
-
AccessDeniedException–Specifies that you do not have the permissions required to perform this operation.
-
InvalidArgumentException–A specified parameter exceeds its restrictions, is not supported, or can't be used. For more information, see the returned message.
-
LimitExceededException–The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.
-
ResourceInUseException–The resource is not available for this operation. For successful operation, the resource must be in the
ACTIVEstate. -
ResourceNotFoundException–The requested resource could not be found. The stream might not be specified correctly.
-
UnknownServiceError–The service returned an error code this client does not model.