describeReplicationInstanceTaskLogs method

Future<DescribeReplicationInstanceTaskLogsResponse> describeReplicationInstanceTaskLogs({
  1. required String replicationInstanceArn,
  2. String? marker,
  3. int? maxRecords,
})

Returns information about the task logs for the specified task.

May throw ResourceNotFoundFault. May throw InvalidResourceStateFault.

Parameter replicationInstanceArn : The Amazon Resource Name (ARN) of the replication instance.

Parameter marker : An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

Parameter maxRecords : The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

Implementation

Future<DescribeReplicationInstanceTaskLogsResponse>
    describeReplicationInstanceTaskLogs({
  required String replicationInstanceArn,
  String? marker,
  int? maxRecords,
}) async {
  ArgumentError.checkNotNull(
      replicationInstanceArn, 'replicationInstanceArn');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonDMSv20160101.DescribeReplicationInstanceTaskLogs'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ReplicationInstanceArn': replicationInstanceArn,
      if (marker != null) 'Marker': marker,
      if (maxRecords != null) 'MaxRecords': maxRecords,
    },
  );

  return DescribeReplicationInstanceTaskLogsResponse.fromJson(
      jsonResponse.body);
}