Lists the applications registered with the user or Amazon Web Services account.
Parameters:
-
next_token
(Optional[NextToken], default:
None
)
–
An identifier returned from the previous list applications call. It can be used to return the next set of applications in the list.
Raises:
Source code in docs_src/capo_codedeploy/_services/async_code_deploy.py
| async def list_applications(
self,
*,
config_overrides: Optional[AsyncCodeDeployClientConfig] = None,
next_token: Optional["capo_codedeploy.types.next_token.NextToken"] = None,
) -> "capo_codedeploy.types.list_applications_output.ListApplicationsOutput":
"""<p>Lists the applications registered with the user or Amazon Web Services account.</p>
Args:
next_token: <p>An identifier returned from the previous list applications call. It can be used to return the next set of applications in the list.</p>
Raises:
capo_codedeploy.errors.invalid_next_token_exception.InvalidNextTokenException: <p>The next token was specified in an invalid format.</p>
capo_codedeploy.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_codedeploy.types.list_applications_input.ListApplicationsInput]",
) -> AsyncOperationResponse[
"capo_codedeploy.types.list_applications_output.ListApplicationsOutput"
]:
import capo_codedeploy._operations.code_deploy_20141006.list_applications
(
output,
http_response,
) = await capo_codedeploy._operations.code_deploy_20141006.list_applications.async_list_applications(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListApplications")
)
input_: capo_codedeploy.types.list_applications_input.ListApplicationsInput = {}
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
|