Skip to content

delete_event_integration async

delete_event_integration(
    name: Name, *, config_overrides: Optional[AsyncAppIntegrationsClientConfig] = None
) -> DeleteEventIntegrationResponse

Deletes the specified existing event integration. If the event integration is associated with clients, the request is rejected.

Parameters:

  • name (Name) –

    The name of the event integration.

Raises:

Source code in docs_src/capo_appintegrations/_services/async_app_integrations.py
async def delete_event_integration(
    self,
    name: "capo_appintegrations.types.name.Name",
    *,
    config_overrides: Optional[AsyncAppIntegrationsClientConfig] = None,
) -> "capo_appintegrations.types.delete_event_integration_response.DeleteEventIntegrationResponse":
    """<p>Deletes the specified existing event integration. If the event integration is associated with clients, the request is rejected.</p>

    Args:
        name: <p>The name of the event integration.</p>

    Raises:
        capo_appintegrations.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        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.delete_event_integration_request.DeleteEventIntegrationRequest]",
    ) -> AsyncOperationResponse[
        "capo_appintegrations.types.delete_event_integration_response.DeleteEventIntegrationResponse"
    ]:
        import capo_appintegrations._operations.amazon_app_integration_service.delete_event_integration

        (
            output,
            http_response,
        ) = await capo_appintegrations._operations.amazon_app_integration_service.delete_event_integration.async_delete_event_integration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteEventIntegration")
    )
    input_: capo_appintegrations.types.delete_event_integration_request.DeleteEventIntegrationRequest = {
        "name": name
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output