Skip to content

untag_resource async

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

Detaches a key-value pair from a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities.

Parameters:

  • resource_arn (AmazonResourceName) –

    The value of the resource that will have the tag removed. An Amazon Resource Name (ARN) is an identifier for a specific AWS resource, such as a server, user, or role.

  • tag_keys (TagKeyList) –

    TagKeys are key-value pairs assigned to ARNs that can be used to group and search for resources by type. This metadata can be attached to resources for any purpose.

Raises:

Source code in docs_src/capo_chatbot/_services/async_chatbot.py
async def untag_resource(
    self,
    resource_arn: "capo_chatbot.types.amazon_resource_name.AmazonResourceName",
    tag_keys: "capo_chatbot.types.tag_key_list.TagKeyList",
    *,
    config_overrides: Optional[AsyncchatbotClientConfig] = None,
) -> "capo_chatbot.types.untag_resource_response.UntagResourceResponse":
    """<p>Detaches a key-value pair from a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities.</p>

    Args:
        resource_arn: <p>The value of the resource that will have the tag removed. An Amazon Resource Name (ARN) is an identifier for a specific AWS resource, such as a server, user, or role.</p>
        tag_keys: <p>TagKeys are key-value pairs assigned to ARNs that can be used to group and search for resources by type. This metadata can be attached to resources for any purpose.</p>

    Raises:
        capo_chatbot.errors.internal_service_error.InternalServiceError: <p>Unexpected error during processing of request.</p>
        capo_chatbot.errors.resource_not_found_exception.ResourceNotFoundException: <p>We were unable to find the resource for your request</p>
        capo_chatbot.errors.service_unavailable_exception.ServiceUnavailableException: <p>We can’t process your request right now because of a server issue. Try again later.</p>
        capo_chatbot.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

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

        (
            output,
            http_response,
        ) = await capo_chatbot._operations.wheatley_orchestration_20171011.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_chatbot.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