Skip to content

list_data_integrations async

list_data_integrations(
    *,
    config_overrides: Optional[AsyncAppIntegrationsClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
) -> ListDataIntegrationsResponse

Returns a paginated list of DataIntegrations in the account.

You cannot create a DataIntegration association for a DataIntegration that has been previously associated. Use a different DataIntegration, or recreate the DataIntegration using the CreateDataIntegration API.

Parameters:

  • next_token (Optional[NextToken], default: None ) –

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

  • max_results (Optional[MaxResults], default: None ) –

    The maximum number of results to return per page.

Raises:

Source code in docs_src/capo_appintegrations/_services/async_app_integrations.py
async def list_data_integrations(
    self,
    *,
    config_overrides: Optional[AsyncAppIntegrationsClientConfig] = None,
    next_token: Optional["capo_appintegrations.types.next_token.NextToken"] = None,
    max_results: Optional[
        "capo_appintegrations.types.max_results.MaxResults"
    ] = None,
) -> "capo_appintegrations.types.list_data_integrations_response.ListDataIntegrationsResponse":
    """<p>Returns a paginated list of DataIntegrations in the account.</p> <note> <p>You cannot create a DataIntegration association for a DataIntegration that has been previously associated. Use a different DataIntegration, or recreate the DataIntegration using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a> API.</p> </note>

    Args:
        next_token: <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>
        max_results: <p>The maximum number of results to return per page.</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.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.list_data_integrations_request.ListDataIntegrationsRequest]",
    ) -> AsyncOperationResponse[
        "capo_appintegrations.types.list_data_integrations_response.ListDataIntegrationsResponse"
    ]:
        import capo_appintegrations._operations.amazon_app_integration_service.list_data_integrations

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListDataIntegrations")
    )
    input_: capo_appintegrations.types.list_data_integrations_request.ListDataIntegrationsRequest = {}
    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