listBulkDeploymentDetailedReports method

Future<ListBulkDeploymentDetailedReportsResponse> listBulkDeploymentDetailedReports({
  1. required String bulkDeploymentId,
  2. String? maxResults,
  3. String? nextToken,
})

Gets a paginated list of the deployments that have been started in a bulk deployment operation, and their current deployment status.

May throw BadRequestException.

Parameter bulkDeploymentId : The ID of the bulk deployment.

Parameter maxResults : The maximum number of results to be returned per request.

Parameter nextToken : The token for the next set of results, or ''null'' if there are no additional results.

Implementation

Future<ListBulkDeploymentDetailedReportsResponse>
    listBulkDeploymentDetailedReports({
  required String bulkDeploymentId,
  String? maxResults,
  String? nextToken,
}) async {
  ArgumentError.checkNotNull(bulkDeploymentId, 'bulkDeploymentId');
  final $query = <String, List<String>>{
    if (maxResults != null) 'MaxResults': [maxResults],
    if (nextToken != null) 'NextToken': [nextToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/greengrass/bulk/deployments/${Uri.encodeComponent(bulkDeploymentId)}/detailed-reports',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListBulkDeploymentDetailedReportsResponse.fromJson(response);
}