tag_resource
¶
tag_resource(
resource_arn: ResourceArn,
tags: TagMap,
*,
config_overrides: Optional[CredentialBrokerControlClientConfig] = None,
) -> TagResourceResponse
Adds or replaces tags on a credential provider pool or a credential provider. A key that is already present on the resource has its value overwritten; keys that are not named are left alone. Takes effect immediately.
The operation is idempotent.
Parameters:
-
resource_arn(ResourceArn) –Amazon Resource Name of a taggable resource, either a credential provider pool or a credential provider within a pool.
-
tags(TagMap) –Tags attached to a resource, as key-value pairs. Keys are unique within a resource and are case-sensitive. Use tags to categorize resources and to control access with tag-based IAM policies.
Raises:
-
AccessDeniedException–The caller is not authorized to perform the request, or a resource the request depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. -
InternalServerException–The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
-
ResourceNotFoundException–The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
-
ThrottlingException–The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. -
ValidationException–The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. -
UnknownServiceError–The service returned an error code this client does not model.