Skip to content

list_integration_connections async

list_integration_connections(
    *,
    config_overrides: Optional[AsyncAmplifyGen3ClientConfig] = None,
    integration_arn: Optional[IntegrationArn] = None,
    environment_arn: Optional[EnvironmentArn] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> ListIntegrationConnectionsResponse

Returns a list of the integration connections.

Parameters:

  • integration_arn (Optional[IntegrationArn], default: None ) –

    The Amazon Resource Name (ARN) of the integration.

  • environment_arn (Optional[EnvironmentArn], default: None ) –

    The Amazon Resource Name (ARN) of the environment.

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

    The maximum number of results to return in a single response.

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

    The pagination token returned in a previous response, used to retrieve the next page of results.

Raises:

Source code in docs_src/capo_amplifygen3/_services/async_amplify_gen3.py
async def list_integration_connections(
    self,
    *,
    config_overrides: Optional[AsyncAmplifyGen3ClientConfig] = None,
    integration_arn: Optional[
        "capo_amplifygen3.types.integration_arn.IntegrationArn"
    ] = None,
    environment_arn: Optional[
        "capo_amplifygen3.types.environment_arn.EnvironmentArn"
    ] = None,
    max_results: Optional["capo_amplifygen3.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_amplifygen3.types.next_token.NextToken"] = None,
) -> "capo_amplifygen3.types.list_integration_connections_response.ListIntegrationConnectionsResponse":
    """<p>Returns a list of the integration connections.</p>

    Args:
        integration_arn: <p>The Amazon Resource Name (ARN) of the integration.</p>
        environment_arn: <p>The Amazon Resource Name (ARN) of the environment.</p>
        max_results: <p>The maximum number of results to return in a single response.</p>
        next_token: <p>The pagination token returned in a previous response, used to retrieve the next page of results.</p>

    Raises:
        capo_amplifygen3.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient permissions to perform this action.</p>
        capo_amplifygen3.errors.internal_server_exception.InternalServerException: <p>An internal error occurred. Retry the request.</p>
        capo_amplifygen3.errors.throttling_exception.ThrottlingException: <p>The request was denied because the request rate exceeds the allowed limit.</p>
        capo_amplifygen3.errors.validation_exception.ValidationException: <p>The request contains invalid parameters or is otherwise malformed.</p>
        capo_amplifygen3.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_amplifygen3.types.list_integration_connections_request.ListIntegrationConnectionsRequest]",
    ) -> AsyncOperationResponse[
        "capo_amplifygen3.types.list_integration_connections_response.ListIntegrationConnectionsResponse"
    ]:
        import capo_amplifygen3._operations.omega.list_integration_connections

        (
            output,
            http_response,
        ) = await capo_amplifygen3._operations.omega.list_integration_connections.async_list_integration_connections(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListIntegrationConnections")
    )
    input_: capo_amplifygen3.types.list_integration_connections_request.ListIntegrationConnectionsRequest = {}
    if integration_arn is not None:
        input_["integration_arn"] = integration_arn
    if environment_arn is not None:
        input_["environment_arn"] = environment_arn
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

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