tag_resource
async
¶
tag_resource(
resource_arn: AppRunnerResourceArn,
tags: TagList,
*,
config_overrides: Optional[AsyncAppRunnerClientConfig] = None,
) -> TagResourceResponse
Add tags to, or update the tag values of, an App Runner resource. A tag is a key-value pair.
Parameters:
-
resource_arn(AppRunnerResourceArn) –The Amazon Resource Name (ARN) of the resource that you want to update tags for.
It must be the ARN of an App Runner resource.
-
tags(TagList) –A list of tag key-value pairs to add or update. If a key is new to the resource, the tag is added with the provided value. If a key is already associated with the resource, the value of the tag is updated.
Raises:
-
InternalServiceErrorException–An unexpected service exception occurred.
-
InvalidRequestException–One or more input parameters aren't valid. Refer to the API action's document page, correct the input parameters, and try the action again.
-
InvalidStateException–You can't perform this action when the resource is in its current state.
-
ResourceNotFoundException–A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon Web Services account.
-
UnknownServiceError–The service returned an error code this client does not model.