def METHOD_NAME(self, application_name, deployment_group):
    deployments = self.client_provider.code_deploy_client.list_deployments(
        applicationName=application_name, deploymentGroupName=deployment_group
    )["deployments"]
    deployment_infos = [self._get_deployment_info(deployment_id) for deployment_id in deployments]
    return deployment_infos