Skip to content

untag_resource async

untag_resource(
    arn: Arn,
    tag_keys: TagKeyList,
    *,
    config_overrides: Optional[AsyncConnectCasesClientConfig] = None,
) -> None

Untags a resource.

Parameters:

  • arn (Arn) –

    The Amazon Resource Name (ARN)

  • tag_keys (TagKeyList) –

    List of tag keys.

Raises:

  • AccessDeniedException –

    You do not have sufficient access to perform this action.

  • InternalServerException –

    We couldn't process your request because of an issue with the server. Try again later.

  • ResourceNotFoundException –

    We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

  • ThrottlingException –

    The rate has been exceeded for this API. Please try again after a few minutes.

  • ValidationException –

    The request isn't valid. Check the syntax and try again.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_connectcases/_services/async_connect_cases.py
async def untag_resource(
    self,
    arn: "capo_connectcases.types.arn.Arn",
    tag_keys: "capo_connectcases.types.tag_key_list.TagKeyList",
    *,
    config_overrides: Optional[AsyncConnectCasesClientConfig] = None,
) -> None:
    """<p>Untags a resource.</p>

    Args:
        arn: <p>The Amazon Resource Name (ARN)</p>
        tag_keys: <p>List of tag keys.</p>

    Raises:
        capo_connectcases.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_connectcases.errors.internal_server_exception.InternalServerException: <p>We couldn't process your request because of an issue with the server. Try again later.</p>
        capo_connectcases.errors.resource_not_found_exception.ResourceNotFoundException: <p>We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.</p>
        capo_connectcases.errors.throttling_exception.ThrottlingException: <p>The rate has been exceeded for this API. Please try again after a few minutes.</p>
        capo_connectcases.errors.validation_exception.ValidationException: <p>The request isn't valid. Check the syntax and try again.</p>
        capo_connectcases.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_connectcases.types.untag_resource_request.UntagResourceRequest]",
    ) -> AsyncOperationResponse[None]:
        import capo_connectcases._operations.amazon_connect_cases.untag_resource

        (
            output,
            http_response,
        ) = await capo_connectcases._operations.amazon_connect_cases.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_connectcases.types.untag_resource_request.UntagResourceRequest = {
        "arn": 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