Skip to content

get_delete_events_by_event_type_status async

get_delete_events_by_event_type_status(
    event_type_name: identifier,
    *,
    config_overrides: Optional[AsyncFraudDetectorClientConfig] = None,
) -> GetDeleteEventsByEventTypeStatusResult

Retrieves the status of a DeleteEventsByEventType action.

Parameters:

  • event_type_name (identifier) –

    Name of event type for which to get the deletion status.

Raises:

  • AccessDeniedException –

    An exception indicating Amazon Fraud Detector does not have the needed permissions. This can occur if you submit a request, such as PutExternalModel, that specifies a role that is not in your account.

  • InternalServerException –

    An exception indicating an internal server error.

  • ResourceNotFoundException –

    An exception indicating the specified resource was not found.

  • ThrottlingException –

    An exception indicating a throttling error.

  • ValidationException –

    An exception indicating a specified value is not allowed.

  • UnknownServiceError –

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

Source code in docs_src/capo_frauddetector/_services/async_fraud_detector.py
async def get_delete_events_by_event_type_status(
    self,
    event_type_name: "capo_frauddetector.types.identifier.identifier",
    *,
    config_overrides: Optional[AsyncFraudDetectorClientConfig] = None,
) -> "capo_frauddetector.types.get_delete_events_by_event_type_status_result.GetDeleteEventsByEventTypeStatusResult":
    """<p>Retrieves the status of a <code>DeleteEventsByEventType</code> action.</p>

    Args:
        event_type_name: <p>Name of event type for which to get the deletion status.</p>

    Raises:
        capo_frauddetector.errors.access_denied_exception.AccessDeniedException: <p>An exception indicating Amazon Fraud Detector does not have the needed permissions. This can occur if you submit a request, such as <code>PutExternalModel</code>, that specifies a role that is not in your account.</p>
        capo_frauddetector.errors.internal_server_exception.InternalServerException: <p>An exception indicating an internal server error.</p>
        capo_frauddetector.errors.resource_not_found_exception.ResourceNotFoundException: <p>An exception indicating the specified resource was not found.</p>
        capo_frauddetector.errors.throttling_exception.ThrottlingException: <p>An exception indicating a throttling error.</p>
        capo_frauddetector.errors.validation_exception.ValidationException: <p>An exception indicating a specified value is not allowed.</p>
        capo_frauddetector.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_frauddetector.types.get_delete_events_by_event_type_status_request.GetDeleteEventsByEventTypeStatusRequest]",
    ) -> AsyncOperationResponse[
        "capo_frauddetector.types.get_delete_events_by_event_type_status_result.GetDeleteEventsByEventTypeStatusResult"
    ]:
        import capo_frauddetector._operations.aws_hawks_nest_service_facade.get_delete_events_by_event_type_status

        (
            output,
            http_response,
        ) = await capo_frauddetector._operations.aws_hawks_nest_service_facade.get_delete_events_by_event_type_status.async_get_delete_events_by_event_type_status(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetDeleteEventsByEventTypeStatus")
    )
    input_: capo_frauddetector.types.get_delete_events_by_event_type_status_request.GetDeleteEventsByEventTypeStatusRequest = {
        "event_type_name": event_type_name
    }

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