getDbBackup method

Future<GetDbBackupOutput> getDbBackup({
  1. required String identifier,
})

Returns information about a specific Timestream for InfluxDB backup.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter identifier : The identifier of the backup to retrieve information for.

Implementation

Future<GetDbBackupOutput> getDbBackup({
  required String identifier,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'AmazonTimestreamInfluxDB.GetDbBackup'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'identifier': identifier,
    },
  );

  return GetDbBackupOutput.fromJson(jsonResponse.body);
}