describeImport method

Future<DescribeImportOutput> describeImport({
  1. required String importArn,
})

Represents the properties of the import.

May throw ImportNotFoundException.

Parameter importArn : The Amazon Resource Name (ARN) associated with the table you're importing to.

Implementation

Future<DescribeImportOutput> describeImport({
  required String importArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'DynamoDB_20120810.DescribeImport'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ImportArn': importArn,
    },
  );

  return DescribeImportOutput.fromJson(jsonResponse.body);
}