Skip to content

Commit

Permalink
feat(client-lex-models-v2): This release introduces additional option…
Browse files Browse the repository at this point in the history
…al parameters "messageSelectionStrategy" to PromptSpecification, which enables the users to configure the bot to play messages in orderly manner.
  • Loading branch information
awstools committed Jul 5, 2022
1 parent a23a0d7 commit bd84018
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 6 deletions.
16 changes: 13 additions & 3 deletions clients/client-lex-models-v2/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export namespace AggregatedUtterancesSummary {
export interface AssociatedTranscript {
/**
* <p>The content of the transcript that meets the search filter criteria.
* For the JSON format of the transcript, see <a href="https://docs.aws.amazon.com/lex/latest/dg/designing-output-format.html">Output transcript
* For the JSON format of the transcript, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/designing-output-format.html">Output transcript
* format</a>.</p>
*/
transcript?: string;
Expand Down Expand Up @@ -1005,7 +1005,7 @@ export namespace BotRecommendationResultStatistics {

/**
* <p>The object representing the URL of the bot definition, the URL of
* the associated transcript and a statistical summary of the bot
* the associated transcript, and a statistical summary of the bot
* recommendation results.</p>
*/
export interface BotRecommendationResults {
Expand Down Expand Up @@ -2314,7 +2314,7 @@ export interface CreateExportResponse {

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

export enum MessageSelectionStrategy {
Ordered = "Ordered",
Random = "Random",
}

/**
* <p>Specifies a list of message groups that Amazon Lex sends to a user to
* elicit a response.</p>
Expand All @@ -2819,6 +2824,11 @@ export interface PromptSpecification {
* bot.</p>
*/
allowInterrupt?: boolean;

/**
* <p>Indicates how a message is selected from a message group among retries.</p>
*/
messageSelectionStrategy?: MessageSelectionStrategy | string;
}

export namespace PromptSpecification {
Expand Down
3 changes: 3 additions & 0 deletions clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9740,6 +9740,8 @@ const serializeAws_restJson1PromptSpecification = (input: PromptSpecification, c
input.messageGroups !== null && {
messageGroups: serializeAws_restJson1MessageGroupsList(input.messageGroups, context),
}),
...(input.messageSelectionStrategy !== undefined &&
input.messageSelectionStrategy !== null && { messageSelectionStrategy: input.messageSelectionStrategy }),
};
};

Expand Down Expand Up @@ -11230,6 +11232,7 @@ const deserializeAws_restJson1PromptSpecification = (output: any, context: __Ser
output.messageGroups !== undefined && output.messageGroups !== null
? deserializeAws_restJson1MessageGroupsList(output.messageGroups, context)
: undefined,
messageSelectionStrategy: __expectString(output.messageSelectionStrategy),
} as any;
};

Expand Down
36 changes: 33 additions & 3 deletions codegen/sdk-codegen/aws-models/lex-models-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
"transcript": {
"target": "com.amazonaws.lexmodelsv2#Transcript",
"traits": {
"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>"
"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>"
}
}
},
Expand Down Expand Up @@ -980,7 +980,7 @@
}
},
"traits": {
"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>"
"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>"
}
},
"com.amazonaws.lexmodelsv2#BotRecommendationStatus": {
Expand Down Expand Up @@ -2416,7 +2416,7 @@
"exportStatus": {
"target": "com.amazonaws.lexmodelsv2#ExportStatus",
"traits": {
"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>"
"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>"
}
},
"creationDateTime": {
Expand Down Expand Up @@ -3983,6 +3983,9 @@
"input": {
"target": "com.amazonaws.lexmodelsv2#DeleteIntentRequest"
},
"output": {
"target": "smithy.api#Unit"
},
"errors": [
{
"target": "com.amazonaws.lexmodelsv2#ConflictException"
Expand Down Expand Up @@ -4198,6 +4201,9 @@
"input": {
"target": "com.amazonaws.lexmodelsv2#DeleteSlotRequest"
},
"output": {
"target": "smithy.api#Unit"
},
"errors": [
{
"target": "com.amazonaws.lexmodelsv2#ConflictException"
Expand Down Expand Up @@ -4277,6 +4283,9 @@
"input": {
"target": "com.amazonaws.lexmodelsv2#DeleteSlotTypeRequest"
},
"output": {
"target": "smithy.api#Unit"
},
"errors": [
{
"target": "com.amazonaws.lexmodelsv2#ConflictException"
Expand Down Expand Up @@ -9432,6 +9441,21 @@
}
}
},
"com.amazonaws.lexmodelsv2#MessageSelectionStrategy": {
"type": "string",
"traits": {
"smithy.api#enum": [
{
"value": "Random",
"name": "Random"
},
{
"value": "Ordered",
"name": "Ordered"
}
]
}
},
"com.amazonaws.lexmodelsv2#MessageVariationsList": {
"type": "list",
"member": {
Expand Down Expand Up @@ -9768,6 +9792,12 @@
"traits": {
"smithy.api#documentation": "<p>Indicates whether the user can interrupt a speech prompt from the\n bot.</p>"
}
},
"messageSelectionStrategy": {
"target": "com.amazonaws.lexmodelsv2#MessageSelectionStrategy",
"traits": {
"smithy.api#documentation": "<p>Indicates how a message is selected from a message group among retries.</p>"
}
}
},
"traits": {
Expand Down

0 comments on commit bd84018

Please sign in to comment.