describeContinuousExports method

Future<DescribeContinuousExportsResponse> describeContinuousExports({
  1. List<String>? exportIds,
  2. int? maxResults,
  3. String? nextToken,
})

Lists exports as specified by ID. All continuous exports associated with your user account can be listed if you call DescribeContinuousExports as is without passing any parameters.

May throw AuthorizationErrorException. May throw InvalidParameterException. May throw InvalidParameterValueException. May throw ServerInternalErrorException. May throw OperationNotPermittedException. May throw ResourceNotFoundException. May throw HomeRegionNotSetException.

Parameter exportIds : The unique IDs assigned to the exports.

Parameter maxResults : A number between 1 and 100 specifying the maximum number of continuous export descriptions returned.

Parameter nextToken : The token from the previous call to DescribeExportTasks.

Implementation

Future<DescribeContinuousExportsResponse> describeContinuousExports({
  List<String>? exportIds,
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    100,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSPoseidonService_V2015_11_01.DescribeContinuousExports'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (exportIds != null) 'exportIds': exportIds,
      if (maxResults != null) 'maxResults': maxResults,
      if (nextToken != null) 'nextToken': nextToken,
    },
  );

  return DescribeContinuousExportsResponse.fromJson(jsonResponse.body);
}