Skip to content

untag_resource async

untag_resource(
    resource: ContainerARN,
    tag_keys: TagKeyList,
    *,
    config_overrides: Optional[AsyncMediaStoreClientConfig] = None,
) -> UntagResourceOutput

Removes tags from the specified container. You can specify one or more tags to remove.

Parameters:

  • resource (ContainerARN) –

    The Amazon Resource Name (ARN) for the container.

  • tag_keys (TagKeyList) –

    A comma-separated list of keys for tags that you want to remove from the container. For example, if your container has two tags (customer:CompanyA and priority:High) and you want to remove one of the tags (priority:High), you specify the key for the tag that you want to remove (priority).

Raises:

Source code in docs_src/capo_mediastore/_services/async_media_store.py
async def untag_resource(
    self,
    resource: "capo_mediastore.types.container_arn.ContainerARN",
    tag_keys: "capo_mediastore.types.tag_key_list.TagKeyList",
    *,
    config_overrides: Optional[AsyncMediaStoreClientConfig] = None,
) -> "capo_mediastore.types.untag_resource_output.UntagResourceOutput":
    """<p>Removes tags from the specified container. You can specify one or more tags to remove. </p>

    Args:
        resource: <p>The Amazon Resource Name (ARN) for the container.</p>
        tag_keys: <p>A comma-separated list of keys for tags that you want to remove from the container. For example, if your container has two tags (customer:CompanyA and priority:High) and you want to remove one of the tags (priority:High), you specify the key for the tag that you want to remove (priority).</p>

    Raises:
        capo_mediastore.errors.container_in_use_exception.ContainerInUseException: <p>The container that you specified in the request already exists or is being updated.</p>
        capo_mediastore.errors.container_not_found_exception.ContainerNotFoundException: <p>The container that you specified in the request does not exist.</p>
        capo_mediastore.errors.internal_server_error.InternalServerError: <p>The service is temporarily unavailable.</p>
        capo_mediastore.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

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

        (
            output,
            http_response,
        ) = await capo_mediastore._operations.media_store_20170901.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_mediastore.types.untag_resource_input.UntagResourceInput = {
        "resource": resource,
        "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