Skip to content

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.

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",
});