describeCacheReport method

Future<DescribeCacheReportOutput> describeCacheReport({
  1. required String cacheReportARN,
})

Returns information about the specified cache report, including completion status and generation progress.

May throw InternalServerError. May throw InvalidGatewayRequestException.

Parameter cacheReportARN : The Amazon Resource Name (ARN) of the cache report you want to describe.

Implementation

Future<DescribeCacheReportOutput> describeCacheReport({
  required String cacheReportARN,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'StorageGateway_20130630.DescribeCacheReport'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'CacheReportARN': cacheReportARN,
    },
  );

  return DescribeCacheReportOutput.fromJson(jsonResponse.body);
}