Skip to content

untag_resource

untag_resource(
    resource_arn: ResourceARN,
    tag_key_list: TagKeyList,
    *,
    config_overrides: Optional[KinesisVideoClientConfig] = None,
) -> UntagResourceOutput

Removes one or more tags from a signaling channel. In the request, specify only a tag key or keys; don't specify the value. If you specify a tag key that does not exist, it's ignored.

Parameters:

  • resource_arn (ResourceARN) –

    The Amazon Resource Name (ARN) of the signaling channel from which you want to remove tags.

  • tag_key_list (TagKeyList) –

    A list of the keys of the tags that you want to remove.

Raises:

Source code in docs_src/capo_kinesis_video/_services/kinesis_video.py
def untag_resource(
    self,
    resource_arn: "capo_kinesis_video.types.resource_arn.ResourceARN",
    tag_key_list: "capo_kinesis_video.types.tag_key_list.TagKeyList",
    *,
    config_overrides: Optional[KinesisVideoClientConfig] = None,
) -> "capo_kinesis_video.types.untag_resource_output.UntagResourceOutput":
    """<p>Removes one or more tags from a signaling channel. In the request, specify only a tag key or keys; don't specify the value. If you specify a tag key that does not exist, it's ignored.</p>

    Args:
        resource_arn: <p>The Amazon Resource Name (ARN) of the signaling channel from which you want to remove tags.</p>
        tag_key_list: <p>A list of the keys of the tags that you want to remove.</p>

    Raises:
        capo_kinesis_video.errors.access_denied_exception.AccessDeniedException: <p>You do not have required permissions to perform this operation.</p>
        capo_kinesis_video.errors.client_limit_exceeded_exception.ClientLimitExceededException: <p>Kinesis Video Streams has throttled the request because you have exceeded the limit of allowed client calls. Try making the call later.</p>
        capo_kinesis_video.errors.invalid_argument_exception.InvalidArgumentException: <p>The value for this input parameter is invalid.</p>
        capo_kinesis_video.errors.resource_not_found_exception.ResourceNotFoundException: <p>Amazon Kinesis Video Streams can't find the stream that you specified.</p>
        capo_kinesis_video.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_kinesis_video.types.untag_resource_input.UntagResourceInput]",
    ) -> OperationResponse[
        "capo_kinesis_video.types.untag_resource_output.UntagResourceOutput"
    ]:
        import capo_kinesis_video._operations.kinesis_video_20170930.untag_resource

        output, http_response = (
            capo_kinesis_video._operations.kinesis_video_20170930.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_kinesis_video.types.untag_resource_input.UntagResourceInput = {
        "resource_arn": resource_arn,
        "tag_key_list": tag_key_list,
    }

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