getCatalogImportStatus method
Retrieves the status of a migration operation.
May throw InternalServiceException. May throw OperationTimeoutException.
Parameter catalogId
:
The ID of the catalog to migrate. Currently, this should be the AWS
account ID.
Implementation
Future<GetCatalogImportStatusResponse> getCatalogImportStatus({
String? catalogId,
}) async {
_s.validateStringLength(
'catalogId',
catalogId,
1,
255,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.GetCatalogImportStatus'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (catalogId != null) 'CatalogId': catalogId,
},
);
return GetCatalogImportStatusResponse.fromJson(jsonResponse.body);
}