Retrieves the list of applications nested in the containing application.
Parameters:
-
application_id
(__string)
–
The Amazon Resource Name (ARN) of the application.
-
max_items
(Optional[MaxItems], default:
None
)
–
The total number of items to return.
-
next_token
(Optional[__string], default:
None
)
–
A token to specify where to start paginating.
-
semantic_version
(Optional[__string], default:
None
)
–
The semantic version of the application to get.
Raises:
Source code in docs_src/capo_serverlessapplicationrepository/_services/serverless_application_repository.py
| def list_application_dependencies(
self,
application_id: "capo_serverlessapplicationrepository.types.__string.__string",
*,
config_overrides: Optional[ServerlessApplicationRepositoryClientConfig] = None,
max_items: Optional[
"capo_serverlessapplicationrepository.types.max_items.MaxItems"
] = None,
next_token: Optional[
"capo_serverlessapplicationrepository.types.__string.__string"
] = None,
semantic_version: Optional[
"capo_serverlessapplicationrepository.types.__string.__string"
] = None,
) -> "capo_serverlessapplicationrepository.types.list_application_dependencies_response.ListApplicationDependenciesResponse":
"""<p>Retrieves the list of applications nested in the containing application.</p>
Args:
application_id: <p>The Amazon Resource Name (ARN) of the application.</p>
max_items: <p>The total number of items to return.</p>
next_token: <p>A token to specify where to start paginating.</p>
semantic_version: <p>The semantic version of the application to get.</p>
Raises:
capo_serverlessapplicationrepository.errors.bad_request_exception.BadRequestException: <p>One of the parameters in the request is invalid.</p>
capo_serverlessapplicationrepository.errors.forbidden_exception.ForbiddenException: <p>The client is not authenticated.</p>
capo_serverlessapplicationrepository.errors.internal_server_error_exception.InternalServerErrorException: <p>The AWS Serverless Application Repository service encountered an internal error.</p>
capo_serverlessapplicationrepository.errors.not_found_exception.NotFoundException: <p>The resource (for example, an access policy statement) specified in the request doesn't exist.</p>
capo_serverlessapplicationrepository.errors.too_many_requests_exception.TooManyRequestsException: <p>The client is sending more than the allowed number of requests per unit of time.</p>
capo_serverlessapplicationrepository.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_serverlessapplicationrepository.types.list_application_dependencies_request.ListApplicationDependenciesRequest]",
) -> OperationResponse[
"capo_serverlessapplicationrepository.types.list_application_dependencies_response.ListApplicationDependenciesResponse"
]:
import capo_serverlessapplicationrepository._operations.serverless_application_repository.list_application_dependencies
output, http_response = (
capo_serverlessapplicationrepository._operations.serverless_application_repository.list_application_dependencies.list_application_dependencies(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListApplicationDependencies")
)
input_: capo_serverlessapplicationrepository.types.list_application_dependencies_request.ListApplicationDependenciesRequest = {
"application_id": application_id
}
if max_items is not None:
input_["max_items"] = max_items
if next_token is not None:
input_["next_token"] = next_token
if semantic_version is not None:
input_["semantic_version"] = semantic_version
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|