@aws-amplify/interactions
Version:
Interactions category of aws-amplify
12 lines (10 loc) • 418 B
JavaScript
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
const resolveBotConfig = (ctx, botName) => {
const { [botName]: botConfig = undefined } = ctx.resourcesConfig.Interactions?.LexV2 ?? {};
if (botConfig !== undefined) {
return { ...botConfig, name: botName };
}
};
export { resolveBotConfig };
//# sourceMappingURL=resolveBotConfig.mjs.map