tag_resource
¶
tag_resource(
resource_arn: ResourceArn,
tags: TagList,
*,
config_overrides: Optional[ShieldClientConfig] = None,
) -> TagResourceResponse
Adds or updates tags for a resource in Shield.
Parameters:
-
resource_arn(ResourceArn) –The Amazon Resource Name (ARN) of the resource that you want to add or update tags for.
-
tags(TagList) –The tags that you want to modify or add to the resource.
Raises:
-
InternalErrorException–Exception that indicates that a problem occurred with the service infrastructure. You can retry the request.
-
InvalidParameterException–Exception that indicates that the parameters passed to the API are invalid. If available, this exception includes details in additional properties.
-
InvalidResourceException–Exception that indicates that the resource is invalid. You might not have access to the resource, or the resource might not exist.
-
ResourceNotFoundException–Exception indicating the specified resource does not exist. If available, this exception includes details in additional properties.
-
UnknownServiceError–The service returned an error code this client does not model.