Skip to content

untag_resource

untag_resource(
    resource_arn: __string,
    tag_keys: ListOf__string,
    *,
    config_overrides: Optional[DataExchangeClientConfig] = None,
) -> None

This operation removes one or more tags from a resource.

Parameters:

  • resource_arn (__string) –

    An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.

  • tag_keys (ListOf__string) –

    The key tags.

Raises:

Source code in docs_src/capo_dataexchange/_services/data_exchange.py
def untag_resource(
    self,
    resource_arn: "capo_dataexchange.types.__string.__string",
    tag_keys: "capo_dataexchange.types.list_of__string.ListOf__string",
    *,
    config_overrides: Optional[DataExchangeClientConfig] = None,
) -> None:
    """<p>This operation removes one or more tags from a resource.</p>

    Args:
        resource_arn: <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
        tag_keys: <p>The key tags.</p>

    Raises:
        capo_dataexchange.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_dataexchange.types.untag_resource_request.UntagResourceRequest]",
    ) -> OperationResponse[None]:
        import capo_dataexchange._operations.data_exchange.untag_resource

        output, http_response = (
            capo_dataexchange._operations.data_exchange.untag_resource.untag_resource(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UntagResource")
    )
    input_: capo_dataexchange.types.untag_resource_request.UntagResourceRequest = {
        "resource_arn": resource_arn,
        "tag_keys": tag_keys,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output