@amaabca/aws-lex-custom-resources
Version:
AWS Lex infrastructure as code via the CDK
93 lines (92 loc) • 2.97 kB
TypeScript
import { InputContext, FulfillmentCodeHookSettings, DialogCodeHookSettings, IntentClosingSetting, IntentConfirmationSetting, KendraConfiguration, OutputContext, SampleUtterance, VoiceSettings, BotVersionLocaleDetails, SlotTypeValue, SlotValueSelectionSetting, SlotValueElicitationSetting, ConversationLogSettings, BotAliasLocaleSettings, SentimentAnalysisSettings, SlotPriority } from '@aws-sdk/client-lex-models-v2';
import { ObfuscationSetting } from '../v1/lex-data-types';
export interface LexBotAttributes {
botName?: string;
botTags?: {
[key: string]: string;
};
dataPrivacy: {
childDirected: boolean;
};
description?: string;
idleSessionTTLInSeconds: number;
roleArn: string;
testBotAliasTags?: {
[key: string]: string;
};
}
export interface LexIntentAttributes {
botId: string;
botVersion?: string;
description?: string;
dialogCodeHook?: DialogCodeHookSettings;
fulfillmentCodeHook?: FulfillmentCodeHookSettings;
inputContexts?: InputContext[];
intentClosingSetting?: IntentClosingSetting;
intentConfirmationSetting?: IntentConfirmationSetting;
intentName: string;
kendraConfiguration?: KendraConfiguration;
localeId: string;
outputContexts?: OutputContext[];
parentIntentSignature?: string;
sampleUtterances?: SampleUtterance[];
}
export interface LexBotLocaleAttributes {
botId: string;
botVersion: string;
description?: string;
localeId: string;
nluIntentConfidenceThreshold: number;
voiceSettings?: VoiceSettings;
}
export interface LexBotVersionAttributes {
botId: string;
botVersionLocaleSpecification: {
[key: string]: BotVersionLocaleDetails;
} | undefined;
description?: string;
}
export interface LexSlotTypeAttributes {
botId: string;
botVersion?: string;
description?: string;
localeId: string;
parentSlotTypeSignature?: string;
slotTypeName: string;
slotTypeValues?: SlotTypeValue[];
valueSelectionSetting: SlotValueSelectionSetting;
}
export interface LexSlotAttributes {
botId: string;
botVersion?: string;
description?: string;
localeId: string;
intentId: string;
obfuscationSetting?: ObfuscationSetting;
slotName: string;
slotTypeId: string;
valueElicitationSetting: SlotValueElicitationSetting;
priority: number;
}
export interface LexIntentPriorityAttributes {
botId: string;
botVersion?: string;
intentId: string;
intentName: string;
localeId: string;
slotPriorities: SlotPriority[];
}
export interface LexBotAliasAttributes {
botId: string;
botAliasName: string;
botAliasLocaleSettings: {
[key: string]: BotAliasLocaleSettings;
};
botVersion?: string;
conversationLogSettings?: ConversationLogSettings;
description?: string;
sentimentAnalysisSettings?: SentimentAnalysisSettings;
tags?: {
[key: string]: string;
};
}