describeBackup method

Future<DescribeBackupOutput> describeBackup({
  1. required String backupArn,
})

Describes an existing backup of a table.

You can call DescribeBackup at a maximum rate of 10 times per second.

May throw BackupNotFoundException. May throw InternalServerError.

Parameter backupArn : The Amazon Resource Name (ARN) associated with the backup.

Implementation

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

  return DescribeBackupOutput.fromJson(jsonResponse.body);
}