Skip to content

list_data_integration_events async

list_data_integration_events(
    instance_id: UUID,
    *,
    config_overrides: Optional[AsyncSupplyChainClientConfig] = None,
    event_type: Optional[DataIntegrationEventType] = None,
    next_token: Optional[DataIntegrationEventNextToken] = None,
    max_results: Optional[DataIntegrationEventMaxResults] = None,
) -> ListDataIntegrationEventsResponse

Enables you to programmatically list all data integration events for the provided Amazon Web Services Supply Chain instance.

Parameters:

Raises:

Examples:

Successful ListDataIntegrationEvents

>>> await client.list_data_integration_events(instance_id='8928ae12-15e5-4441-825d-ec2184f0a43a')
Source code in docs_src/capo_supplychain/_services/async_supply_chain.py
async def list_data_integration_events(
    self,
    instance_id: "capo_supplychain.types.uuid.UUID",
    *,
    config_overrides: Optional[AsyncSupplyChainClientConfig] = None,
    event_type: Optional[
        "capo_supplychain.types.data_integration_event_type.DataIntegrationEventType"
    ] = None,
    next_token: Optional[
        "capo_supplychain.types.data_integration_event_next_token.DataIntegrationEventNextToken"
    ] = None,
    max_results: Optional[
        "capo_supplychain.types.data_integration_event_max_results.DataIntegrationEventMaxResults"
    ] = None,
) -> "capo_supplychain.types.list_data_integration_events_response.ListDataIntegrationEventsResponse":
    """<p>Enables you to programmatically list all data integration events for the provided Amazon Web Services Supply Chain instance.</p>

    Args:
        instance_id: <p>The Amazon Web Services Supply Chain instance identifier.</p>
        event_type: <p>List data integration events for the specified eventType.</p>
        next_token: <p>The pagination token to fetch the next page of the data integration events.</p>
        max_results: <p>Specify the maximum number of data integration events to fetch in one paginated request.</p>

    Raises:
        capo_supplychain.errors.access_denied_exception.AccessDeniedException: <p>You do not have the required privileges to perform this action.</p>
        capo_supplychain.errors.conflict_exception.ConflictException: <p>Updating or deleting a resource can cause an inconsistent state.</p>
        capo_supplychain.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
        capo_supplychain.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</p>
        capo_supplychain.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>Request would cause a service quota to be exceeded.</p>
        capo_supplychain.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling.</p>
        capo_supplychain.errors.validation_exception.ValidationException: <p>The input does not satisfy the constraints specified by an AWS service.</p>
        capo_supplychain.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        Successful ListDataIntegrationEvents

        >>> await client.list_data_integration_events(instance_id='8928ae12-15e5-4441-825d-ec2184f0a43a')
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_supplychain.types.list_data_integration_events_request.ListDataIntegrationEventsRequest]",
    ) -> AsyncOperationResponse[
        "capo_supplychain.types.list_data_integration_events_response.ListDataIntegrationEventsResponse"
    ]:
        import capo_supplychain._operations.galaxy_public_api_gateway.list_data_integration_events

        (
            output,
            http_response,
        ) = await capo_supplychain._operations.galaxy_public_api_gateway.list_data_integration_events.async_list_data_integration_events(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListDataIntegrationEvents")
    )
    input_: capo_supplychain.types.list_data_integration_events_request.ListDataIntegrationEventsRequest = {
        "instance_id": instance_id
    }
    if event_type is not None:
        input_["event_type"] = event_type
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

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