Skip to content

untag_resource async

untag_resource(
    resource_arn: Arn,
    tag_keys: TagKeyList,
    *,
    config_overrides: Optional[AsyncDataBrewClientConfig] = None,
) -> UntagResourceResponse

Removes metadata tags from a DataBrew resource.

Parameters:

  • resource_arn (Arn) –

    A DataBrew resource from which you want to remove a tag or tags. The value for this parameter is an Amazon Resource Name (ARN).

  • tag_keys (TagKeyList) –

    The tag keys (names) of one or more tags to be removed.

Raises:

Source code in docs_src/capo_databrew/_services/async_data_brew.py
async def untag_resource(
    self,
    resource_arn: "capo_databrew.types.arn.Arn",
    tag_keys: "capo_databrew.types.tag_key_list.TagKeyList",
    *,
    config_overrides: Optional[AsyncDataBrewClientConfig] = None,
) -> "capo_databrew.types.untag_resource_response.UntagResourceResponse":
    """<p>Removes metadata tags from a DataBrew resource.</p>

    Args:
        resource_arn: <p>A DataBrew resource from which you want to remove a tag or tags. The value for this parameter is an Amazon Resource Name (ARN). </p>
        tag_keys: <p>The tag keys (names) of one or more tags to be removed.</p>

    Raises:
        capo_databrew.errors.internal_server_exception.InternalServerException: <p>An internal service failure occurred.</p>
        capo_databrew.errors.resource_not_found_exception.ResourceNotFoundException: <p>One or more resources can't be found.</p>
        capo_databrew.errors.validation_exception.ValidationException: <p>The input parameters for this request failed validation.</p>
        capo_databrew.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_databrew.types.untag_resource_request.UntagResourceRequest]",
    ) -> AsyncOperationResponse[
        "capo_databrew.types.untag_resource_response.UntagResourceResponse"
    ]:
        import capo_databrew._operations.aws_glue_data_brew.untag_resource

        (
            output,
            http_response,
        ) = await capo_databrew._operations.aws_glue_data_brew.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_databrew.types.untag_resource_request.UntagResourceRequest = {
        "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