refreshSchemas method
Populates the schema for the specified endpoint. This is an asynchronous operation and can take several minutes. You can check the status of this operation by calling the DescribeRefreshSchemasStatus operation.
May throw InvalidResourceStateFault. May throw ResourceNotFoundFault. May throw KMSKeyNotAccessibleFault. May throw ResourceQuotaExceededFault.
Parameter endpointArn
:
The Amazon Resource Name (ARN) string that uniquely identifies the
endpoint.
Parameter replicationInstanceArn
:
The Amazon Resource Name (ARN) of the replication instance.
Implementation
Future<RefreshSchemasResponse> refreshSchemas({
required String endpointArn,
required String replicationInstanceArn,
}) async {
ArgumentError.checkNotNull(endpointArn, 'endpointArn');
ArgumentError.checkNotNull(
replicationInstanceArn, 'replicationInstanceArn');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonDMSv20160101.RefreshSchemas'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'EndpointArn': endpointArn,
'ReplicationInstanceArn': replicationInstanceArn,
},
);
return RefreshSchemasResponse.fromJson(jsonResponse.body);
}