Skip to content

list_data_integration_associations

list_data_integration_associations(
    data_integration_identifier: Identifier,
    *,
    config_overrides: Optional[AppIntegrationsClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
) -> ListDataIntegrationAssociationsResponse

Returns a paginated list of DataIntegration associations 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:

  • data_integration_identifier (Identifier) –

    A unique identifier for the DataIntegration.

  • 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/app_integrations.py
def list_data_integration_associations(
    self,
    data_integration_identifier: "capo_appintegrations.types.identifier.Identifier",
    *,
    config_overrides: Optional[AppIntegrationsClientConfig] = 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_integration_associations_response.ListDataIntegrationAssociationsResponse":
    """<p>Returns a paginated list of DataIntegration associations 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:
        data_integration_identifier: <p>A unique identifier for the DataIntegration.</p>
        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.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.
    """

    def _handler(
        req: "OperationRequest[capo_appintegrations.types.list_data_integration_associations_request.ListDataIntegrationAssociationsRequest]",
    ) -> OperationResponse[
        "capo_appintegrations.types.list_data_integration_associations_response.ListDataIntegrationAssociationsResponse"
    ]:
        import capo_appintegrations._operations.amazon_app_integration_service.list_data_integration_associations

        output, http_response = (
            capo_appintegrations._operations.amazon_app_integration_service.list_data_integration_associations.list_data_integration_associations(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListDataIntegrationAssociations")
    )
    input_: capo_appintegrations.types.list_data_integration_associations_request.ListDataIntegrationAssociationsRequest = {
        "data_integration_identifier": data_integration_identifier
    }
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output