Skip to content

Commit bd84018

Browse files
author
awstools
committed
feat(client-lex-models-v2): This release introduces additional optional parameters "messageSelectionStrategy" to PromptSpecification, which enables the users to configure the bot to play messages in orderly manner.
1 parent a23a0d7 commit bd84018

File tree

3 files changed

+49
-6
lines changed

3 files changed

+49
-6
lines changed

clients/client-lex-models-v2/src/models/models_0.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export namespace AggregatedUtterancesSummary {
170170
export interface AssociatedTranscript {
171171
/**
172172
* <p>The content of the transcript that meets the search filter criteria.
173-
* For the JSON format of the transcript, see <a href="https://docs.aws.amazon.com/lex/latest/dg/designing-output-format.html">Output transcript
173+
* For the JSON format of the transcript, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/designing-output-format.html">Output transcript
174174
* format</a>.</p>
175175
*/
176176
transcript?: string;
@@ -1005,7 +1005,7 @@ export namespace BotRecommendationResultStatistics {
10051005

10061006
/**
10071007
* <p>The object representing the URL of the bot definition, the URL of
1008-
* the associated transcript and a statistical summary of the bot
1008+
* the associated transcript, and a statistical summary of the bot
10091009
* recommendation results.</p>
10101010
*/
10111011
export interface BotRecommendationResults {
@@ -2314,7 +2314,7 @@ export interface CreateExportResponse {
23142314

23152315
/**
23162316
* <p>The status of the export. When the status is <code>Completed</code>,
2317-
* you can use the <a href="https://docs.aws.amazon.com/latest/dg/API_DescribeExport.html">DescribeExport</a> operation to get the
2317+
* you can use the <a href="https://docs.aws.amazon.com/lexv2/latest/dg/API_DescribeExport.html">DescribeExport</a> operation to get the
23182318
* pre-signed S3 URL link to your exported bot or bot locale.</p>
23192319
*/
23202320
exportStatus?: ExportStatus | string;
@@ -2797,6 +2797,11 @@ export namespace IntentClosingSetting {
27972797
});
27982798
}
27992799

2800+
export enum MessageSelectionStrategy {
2801+
Ordered = "Ordered",
2802+
Random = "Random",
2803+
}
2804+
28002805
/**
28012806
* <p>Specifies a list of message groups that Amazon Lex sends to a user to
28022807
* elicit a response.</p>
@@ -2819,6 +2824,11 @@ export interface PromptSpecification {
28192824
* bot.</p>
28202825
*/
28212826
allowInterrupt?: boolean;
2827+
2828+
/**
2829+
* <p>Indicates how a message is selected from a message group among retries.</p>
2830+
*/
2831+
messageSelectionStrategy?: MessageSelectionStrategy | string;
28222832
}
28232833

28242834
export namespace PromptSpecification {

clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9740,6 +9740,8 @@ const serializeAws_restJson1PromptSpecification = (input: PromptSpecification, c
97409740
input.messageGroups !== null && {
97419741
messageGroups: serializeAws_restJson1MessageGroupsList(input.messageGroups, context),
97429742
}),
9743+
...(input.messageSelectionStrategy !== undefined &&
9744+
input.messageSelectionStrategy !== null && { messageSelectionStrategy: input.messageSelectionStrategy }),
97439745
};
97449746
};
97459747

@@ -11230,6 +11232,7 @@ const deserializeAws_restJson1PromptSpecification = (output: any, context: __Ser
1123011232
output.messageGroups !== undefined && output.messageGroups !== null
1123111233
? deserializeAws_restJson1MessageGroupsList(output.messageGroups, context)
1123211234
: undefined,
11235+
messageSelectionStrategy: __expectString(output.messageSelectionStrategy),
1123311236
} as any;
1123411237
};
1123511238

codegen/sdk-codegen/aws-models/lex-models-v2.json

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
"transcript": {
213213
"target": "com.amazonaws.lexmodelsv2#Transcript",
214214
"traits": {
215-
"smithy.api#documentation": "<p>The content of the transcript that meets the search filter criteria.\n For the JSON format of the transcript, see <a href=\"https://docs.aws.amazon.com/lex/latest/dg/designing-output-format.html\">Output transcript\n format</a>.</p>"
215+
"smithy.api#documentation": "<p>The content of the transcript that meets the search filter criteria.\n For the JSON format of the transcript, see <a href=\"https://docs.aws.amazon.com/lexv2/latest/dg/designing-output-format.html\">Output transcript\n format</a>.</p>"
216216
}
217217
}
218218
},
@@ -980,7 +980,7 @@
980980
}
981981
},
982982
"traits": {
983-
"smithy.api#documentation": "<p>The object representing the URL of the bot definition, the URL of\n the associated transcript and a statistical summary of the bot\n recommendation results.</p>"
983+
"smithy.api#documentation": "<p>The object representing the URL of the bot definition, the URL of\n the associated transcript, and a statistical summary of the bot\n recommendation results.</p>"
984984
}
985985
},
986986
"com.amazonaws.lexmodelsv2#BotRecommendationStatus": {
@@ -2416,7 +2416,7 @@
24162416
"exportStatus": {
24172417
"target": "com.amazonaws.lexmodelsv2#ExportStatus",
24182418
"traits": {
2419-
"smithy.api#documentation": "<p>The status of the export. When the status is <code>Completed</code>,\n you can use the <a href=\"https://docs.aws.amazon.com/latest/dg/API_DescribeExport.html\">DescribeExport</a> operation to get the\n pre-signed S3 URL link to your exported bot or bot locale.</p>"
2419+
"smithy.api#documentation": "<p>The status of the export. When the status is <code>Completed</code>,\n you can use the <a href=\"https://docs.aws.amazon.com/lexv2/latest/dg/API_DescribeExport.html\">DescribeExport</a> operation to get the\n pre-signed S3 URL link to your exported bot or bot locale.</p>"
24202420
}
24212421
},
24222422
"creationDateTime": {
@@ -3983,6 +3983,9 @@
39833983
"input": {
39843984
"target": "com.amazonaws.lexmodelsv2#DeleteIntentRequest"
39853985
},
3986+
"output": {
3987+
"target": "smithy.api#Unit"
3988+
},
39863989
"errors": [
39873990
{
39883991
"target": "com.amazonaws.lexmodelsv2#ConflictException"
@@ -4198,6 +4201,9 @@
41984201
"input": {
41994202
"target": "com.amazonaws.lexmodelsv2#DeleteSlotRequest"
42004203
},
4204+
"output": {
4205+
"target": "smithy.api#Unit"
4206+
},
42014207
"errors": [
42024208
{
42034209
"target": "com.amazonaws.lexmodelsv2#ConflictException"
@@ -4277,6 +4283,9 @@
42774283
"input": {
42784284
"target": "com.amazonaws.lexmodelsv2#DeleteSlotTypeRequest"
42794285
},
4286+
"output": {
4287+
"target": "smithy.api#Unit"
4288+
},
42804289
"errors": [
42814290
{
42824291
"target": "com.amazonaws.lexmodelsv2#ConflictException"
@@ -9432,6 +9441,21 @@
94329441
}
94339442
}
94349443
},
9444+
"com.amazonaws.lexmodelsv2#MessageSelectionStrategy": {
9445+
"type": "string",
9446+
"traits": {
9447+
"smithy.api#enum": [
9448+
{
9449+
"value": "Random",
9450+
"name": "Random"
9451+
},
9452+
{
9453+
"value": "Ordered",
9454+
"name": "Ordered"
9455+
}
9456+
]
9457+
}
9458+
},
94359459
"com.amazonaws.lexmodelsv2#MessageVariationsList": {
94369460
"type": "list",
94379461
"member": {
@@ -9768,6 +9792,12 @@
97689792
"traits": {
97699793
"smithy.api#documentation": "<p>Indicates whether the user can interrupt a speech prompt from the\n bot.</p>"
97709794
}
9795+
},
9796+
"messageSelectionStrategy": {
9797+
"target": "com.amazonaws.lexmodelsv2#MessageSelectionStrategy",
9798+
"traits": {
9799+
"smithy.api#documentation": "<p>Indicates how a message is selected from a message group among retries.</p>"
9800+
}
97719801
}
97729802
},
97739803
"traits": {

0 commit comments

Comments
 (0)