list_deployments_for_environment
async
¶
list_deployments_for_environment(
app_name: AppName,
environment_name: EnvironmentName,
*,
config_overrides: Optional[AsyncAmplifyGen3ClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListDeploymentsForEnvironmentResponse
Returns a list of the deployments for an environment of a Gen 3 app.
Parameters:
-
app_name(AppName) –The name of the app.
-
environment_name(EnvironmentName) –The name of the environment.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in a single response.
-
next_token(Optional[NextToken], default:None) –The pagination token returned in a previous response, used to retrieve the next page of results.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServerException–An internal error occurred. Retry the request.
-
ResourceNotFoundException–The requested resource was not found.
-
ThrottlingException–The request was denied because the request rate exceeds the allowed limit.
-
ValidationException–The request contains invalid parameters or is otherwise malformed.
-
UnknownServiceError–The service returned an error code this client does not model.