Lists the account access manager applications in your account. Use pagination to ensure that the operation returns quickly and successfully.
Parameters:
-
max_results
(Optional[int], default:
None
)
–
Specifies the maximum number of results to return in a single call.
-
next_token
(Optional[str], default:
None
)
–
Specifies the pagination token from a previous call to retrieve the next set of results.
Raises:
-
AccessDeniedException
–
You do not have sufficient access to perform this operation.
-
InternalServerException
–
An internal service error occurred. Try your request again later.
-
ThrottlingException
–
The request was denied due to request throttling. Try your request again later.
-
ValidationException
–
The input does not satisfy the constraints specified by the service. Check your request parameters and retry the request.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_account_access/_services/account_access.py
| def list_applications(
self,
*,
config_overrides: Optional[AccountAccessClientConfig] = None,
max_results: Optional[int] = None,
next_token: Optional[str] = None,
) -> (
"capo_account_access.types.list_applications_response.ListApplicationsResponse"
):
"""<p>Lists the account access manager applications in your account. Use pagination to ensure that the operation returns quickly and successfully.</p>
Args:
max_results: <p>Specifies the maximum number of results to return in a single call.</p>
next_token: <p>Specifies the pagination token from a previous call to retrieve the next set of results.</p>
Raises:
capo_account_access.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this operation.</p>
capo_account_access.errors.internal_server_exception.InternalServerException: <p>An internal service error occurred. Try your request again later.</p>
capo_account_access.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling. Try your request again later.</p>
capo_account_access.errors.validation_exception.ValidationException: <p>The input does not satisfy the constraints specified by the service. Check your request parameters and retry the request.</p>
capo_account_access.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_account_access.types.list_applications_request.ListApplicationsRequest]",
) -> OperationResponse[
"capo_account_access.types.list_applications_response.ListApplicationsResponse"
]:
import capo_account_access._operations.aws_account_access.list_applications
output, http_response = (
capo_account_access._operations.aws_account_access.list_applications.list_applications(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListApplications")
)
input_: capo_account_access.types.list_applications_request.ListApplicationsRequest = {}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|