tag_resource
async
¶
tag_resource(
resource_arn: str,
tags: Tags,
*,
config_overrides: Optional[AsyncPcaConnectorScepClientConfig] = None,
) -> None
Adds one or more tags to your resource.
Parameters:
-
resource_arn(str) –The Amazon Resource Name (ARN) of the resource.
-
tags(Tags) –The key-value pairs to associate with the resource.
Raises:
-
AccessDeniedException–You can receive this error if you attempt to perform an operation and you don't have the required permissions. This can be caused by insufficient permissions in policies attached to your Amazon Web Services Identity and Access Management (IAM) principal. It can also happen because of restrictions in place from an Amazon Web Services Organizations service control policy (SCP) that affects your Amazon Web Services account.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure with an internal server.
-
ResourceNotFoundException–The operation tried to access a nonexistent resource. The resource might be incorrectly specified, or it might have a status other than
ACTIVE. -
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–An input validation error occurred. For example, invalid characters in a name tag, or an invalid pagination token.
-
UnknownServiceError–The service returned an error code this client does not model.