Skip to content

untag_resource

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

The resource to untag.

Parameters:

  • resource_arn (__string) –

    The Amazon Resource Name (ARN) of the resource to untag.

  • tag_keys (__listOf__string) –

    The tag keys associated with the resource.

Raises:

Source code in docs_src/capo_mediatailor/_services/media_tailor.py
def untag_resource(
    self,
    resource_arn: "capo_mediatailor.types.__string.__string",
    tag_keys: "capo_mediatailor.types.__list_of__string.__listOf__string",
    *,
    config_overrides: Optional[MediaTailorClientConfig] = None,
) -> None:
    """<p>The resource to untag.</p>

    Args:
        resource_arn: <p>The Amazon Resource Name (ARN) of the resource to untag.</p>
        tag_keys: <p>The tag keys associated with the resource.</p>

    Raises:
        capo_mediatailor.errors.bad_request_exception.BadRequestException: <p>A request contains unexpected data.</p>
        capo_mediatailor.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

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

        output, http_response = (
            capo_mediatailor._operations.media_tailor.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_mediatailor.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