tag_resource
async
¶
tag_resource(
resource_arn: Arn,
tags: TagMap,
*,
config_overrides: Optional[AsyncInspector2ClientConfig] = None,
) -> TagResourceResponse
Adds tags to a resource.
Parameters:
-
resource_arn(Arn) –The Amazon Resource Name (ARN) of the resource to apply a tag to.
-
tags(TagMap) –The tags to be added to a resource.
Raises:
-
BadRequestException–One or more tags submitted as part of the request is not valid.
-
InternalServerException–The request has failed due to an internal failure of the Amazon Inspector service.
-
ResourceNotFoundException–The operation tried to access an invalid resource. Make sure the resource is specified correctly.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation due to missing required fields or having invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.