describeExport method

Future<DescribeExportOutput> describeExport({
  1. required String exportArn,
})

Describes an existing table export.

May throw ExportNotFoundException. May throw LimitExceededException. May throw InternalServerError.

Parameter exportArn : The Amazon Resource Name (ARN) associated with the export.

Implementation

Future<DescribeExportOutput> describeExport({
  required String exportArn,
}) async {
  ArgumentError.checkNotNull(exportArn, 'exportArn');
  _s.validateStringLength(
    'exportArn',
    exportArn,
    37,
    1024,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'DynamoDB_20120810.DescribeExport'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ExportArn': exportArn,
    },
  );

  return DescribeExportOutput.fromJson(jsonResponse.body);
}