Returns a paginated list of application associations for an application.
Parameters:
-
application_id
(ArnOrUUID)
–
A unique identifier for the Application.
-
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:
Examples:
To list application associations of an application
The following retrives application associations of an application
>>> await client.list_application_associations(application_id='98542c53-e8ac-4570-9c85-c6552c8d9c5e')
Source code in docs_src/capo_appintegrations/_services/async_app_integrations.py
| async def list_application_associations(
self,
application_id: "capo_appintegrations.types.arn_or_uuid.ArnOrUUID",
*,
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_application_associations_response.ListApplicationAssociationsResponse":
"""<p>Returns a paginated list of application associations for an application.</p>
Args:
application_id: <p>A unique identifier for the Application.</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.
Examples:
To list application associations of an application
The following retrives application associations of an application
>>> await client.list_application_associations(application_id='98542c53-e8ac-4570-9c85-c6552c8d9c5e')
"""
async def _handler(
req: "AsyncOperationRequest[capo_appintegrations.types.list_application_associations_request.ListApplicationAssociationsRequest]",
) -> AsyncOperationResponse[
"capo_appintegrations.types.list_application_associations_response.ListApplicationAssociationsResponse"
]:
import capo_appintegrations._operations.amazon_app_integration_service.list_application_associations
(
output,
http_response,
) = await capo_appintegrations._operations.amazon_app_integration_service.list_application_associations.async_list_application_associations(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListApplicationAssociations")
)
input_: capo_appintegrations.types.list_application_associations_request.ListApplicationAssociationsRequest = {
"application_id": application_id
}
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
|