in aws-rds-dbinstance/src/main/java/software/amazon/rds/dbinstance/BaseHandlerStd.java [522:538]
protected ProgressEvent<ResourceModel, CallbackContext> ensureEngineSet(
final ProxyClient<RdsClient> rdsProxyClient,
final ProgressEvent<ResourceModel, CallbackContext> progress
) {
final ResourceModel model = progress.getResourceModel();
if (StringUtils.isEmpty(model.getEngine())) {
if (isRestoreFromSnapshot(model)) {
try {
final DBInstance dbInstance = fetchDBInstance(rdsProxyClient, model);
model.setEngine(dbInstance.engine());
} catch (Exception e) {
return Commons.handleException(progress, e, DEFAULT_DB_INSTANCE_ERROR_RULE_SET);
}
}
}
return progress;
}