Skip to content

untag_resource async

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

Removes the specified tags from the specified resource.

Parameters:

  • resource_arn (Arn) –

    The Amazon Resource Name (ARN) of the resource.

  • tag_keys (TagKeyList) –

    The tag keys.

Raises:

Source code in docs_src/capo_appintegrations/_services/async_app_integrations.py
async def untag_resource(
    self,
    resource_arn: "capo_appintegrations.types.arn.Arn",
    tag_keys: "capo_appintegrations.types.tag_key_list.TagKeyList",
    *,
    config_overrides: Optional[AsyncAppIntegrationsClientConfig] = None,
) -> "capo_appintegrations.types.untag_resource_response.UntagResourceResponse":
    """<p>Removes the specified tags from the specified resource.</p>

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

    Raises:
        capo_appintegrations.errors.internal_service_error.InternalServiceError: <p>Request processing failed due to an error or failure with the service.</p>
        capo_appintegrations.errors.invalid_request_exception.InvalidRequestException: <p>The request is not valid. </p>
        capo_appintegrations.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
        capo_appintegrations.errors.throttling_exception.ThrottlingException: <p>The throttling limit has been exceeded.</p>
        capo_appintegrations.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

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

        (
            output,
            http_response,
        ) = await capo_appintegrations._operations.amazon_app_integration_service.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_appintegrations.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