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/code_deploy.py
| def batch_get_applications(
self,
application_names: "capo_codedeploy.types.applications_list.ApplicationsList",
*,
config_overrides: Optional[CodeDeployClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_codedeploy.types.batch_get_applications_input.BatchGetApplicationsInput]",
) -> OperationResponse[
"capo_codedeploy.types.batch_get_applications_output.BatchGetApplicationsOutput"
]:
import capo_codedeploy._operations.code_deploy_20141006.batch_get_applications
output, http_response = (
capo_codedeploy._operations.code_deploy_20141006.batch_get_applications.batch_get_applications(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|