Skip to content

untag_resource async

untag_resource(
    resource_arn: CleanroomsArn,
    tag_keys: TagKeys,
    *,
    config_overrides: Optional[AsyncCleanRoomsClientConfig] = None,
) -> UntagResourceOutput

Removes a tag or list of tags from a resource.

Parameters:

  • resource_arn (CleanroomsArn) –

    The Amazon Resource Name (ARN) associated with the resource you want to remove the tag from.

  • tag_keys (TagKeys) –

    A list of key names of tags to be removed.

Raises:

Source code in docs_src/capo_cleanrooms/_services/async_clean_rooms.py
async def untag_resource(
    self,
    resource_arn: "capo_cleanrooms.types.cleanrooms_arn.CleanroomsArn",
    tag_keys: "capo_cleanrooms.types.tag_keys.TagKeys",
    *,
    config_overrides: Optional[AsyncCleanRoomsClientConfig] = None,
) -> "capo_cleanrooms.types.untag_resource_output.UntagResourceOutput":
    """<p>Removes a tag or list of tags from a resource.</p>

    Args:
        resource_arn: <p>The Amazon Resource Name (ARN) associated with the resource you want to remove the tag from.</p>
        tag_keys: <p>A list of key names of tags to be removed.</p>

    Raises:
        capo_cleanrooms.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</p>
        capo_cleanrooms.errors.validation_exception.ValidationException: <p>The input fails to satisfy the specified constraints.</p>
        capo_cleanrooms.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_cleanrooms.types.untag_resource_input.UntagResourceInput]",
    ) -> AsyncOperationResponse[
        "capo_cleanrooms.types.untag_resource_output.UntagResourceOutput"
    ]:
        import capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.untag_resource

        (
            output,
            http_response,
        ) = await capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.untag_resource.async_untag_resource(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UntagResource")
    )
    input_: capo_cleanrooms.types.untag_resource_input.UntagResourceInput = {
        "resource_arn": resource_arn,
        "tag_keys": tag_keys,
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output