Gets information about one or more applications. The maximum number of applications that can be returned is 100.
Parameters:
-
application_names
(ApplicationsList)
–
A list of application names separated by spaces. The maximum number of application names you can specify is 100.
Raises:
Source code in docs_src/capo_codedeploy/_services/async_code_deploy.py
| async def batch_get_applications(
self,
application_names: "capo_codedeploy.types.applications_list.ApplicationsList",
*,
config_overrides: Optional[AsyncCodeDeployClientConfig] = None,
) -> (
"capo_codedeploy.types.batch_get_applications_output.BatchGetApplicationsOutput"
):
"""<p>Gets information about one or more applications. The maximum number of applications that can be returned is 100.</p>
Args:
application_names: <p>A list of application names separated by spaces. The maximum number of application names you can specify is 100.</p>
Raises:
capo_codedeploy.errors.application_does_not_exist_exception.ApplicationDoesNotExistException: <p>The application does not exist with the user or Amazon Web Services account.</p>
capo_codedeploy.errors.application_name_required_exception.ApplicationNameRequiredException: <p>The minimum number of required application names was not specified.</p>
capo_codedeploy.errors.batch_limit_exceeded_exception.BatchLimitExceededException: <p>The maximum number of names or IDs allowed for this request (100) was exceeded.</p>
capo_codedeploy.errors.invalid_application_name_exception.InvalidApplicationNameException: <p>The application name 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.batch_get_applications_input.BatchGetApplicationsInput]",
) -> AsyncOperationResponse[
"capo_codedeploy.types.batch_get_applications_output.BatchGetApplicationsOutput"
]:
import capo_codedeploy._operations.code_deploy_20141006.batch_get_applications
(
output,
http_response,
) = await capo_codedeploy._operations.code_deploy_20141006.batch_get_applications.async_batch_get_applications(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("BatchGetApplications")
)
input_: capo_codedeploy.types.batch_get_applications_input.BatchGetApplicationsInput = {
"application_names": application_names
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|