startReplicationTaskAssessment method

Future<StartReplicationTaskAssessmentResponse> startReplicationTaskAssessment({
  1. required String replicationTaskArn,
})

Starts the replication task assessment for unsupported data types in the source database.

May throw InvalidResourceStateFault. May throw ResourceNotFoundFault.

Parameter replicationTaskArn : The Amazon Resource Name (ARN) of the replication task.

Implementation

Future<StartReplicationTaskAssessmentResponse>
    startReplicationTaskAssessment({
  required String replicationTaskArn,
}) async {
  ArgumentError.checkNotNull(replicationTaskArn, 'replicationTaskArn');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonDMSv20160101.StartReplicationTaskAssessment'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ReplicationTaskArn': replicationTaskArn,
    },
  );

  return StartReplicationTaskAssessmentResponse.fromJson(jsonResponse.body);
}