in website-creator/js/connectflows.js [341:368]
async function describeInstance(accessKey, secretKey, region, instance, type){
var p = await setAWSConfig(accessKey, secretKey, region);
var params = {InstanceId : instance};
console.log(params);
connect.describeInstance(params, function (err, res) {
if (err) {
console.log("Error response: ", err);
showResults(err);
} else {
console.log(res);
if(type==1){
$('#sourceInstanceName').text(res.Instance.InstanceAlias);
$('#dlgSelectInstance').append($('<option>', {
value: 1,
text: res.Instance.InstanceAlias
}));
}
else{
$('#targetInstanceName').text(res.Instance.InstanceAlias);
$('#dlgSelectInstance').append($('<option>', {
value: 2,
text: res.Instance.InstanceAlias
}));
}
}
});
}