SlotType
Source:
src/AWS/LexV2/SlotType.ts
A custom slot type on the DRAFT locale of an Amazon Lex V2 bot — the set of values a slot can take, with optional synonyms and resolution strategy.
Creating Slot Types
Section titled “Creating Slot Types”import * as AWS from "alchemy/AWS";
const size = yield* AWS.LexV2.SlotType("Size", { botId: locale.botId, localeId: locale.localeId, slotTypeValues: [ { value: "small", synonyms: ["tiny"] }, { value: "large", synonyms: ["big", "huge"] }, ], resolutionStrategy: "TopResolution",});