Skip to content

Commit 46e4c36

Browse files
author
AWS
committed
Amazon Lex Model Building V2 Update: This release introduces additional optional parameters promptAttemptsSpecification to PromptSpecification, which enables the users to configure interrupt setting and Audio, DTMF and Text input configuration for the initial and retry prompt played by the Bot
1 parent 39fa8a2 commit 46e4c36

File tree

2 files changed

+158
-1
lines changed

2 files changed

+158
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Lex Model Building V2",
4+
"contributor": "",
5+
"description": "This release introduces additional optional parameters promptAttemptsSpecification to PromptSpecification, which enables the users to configure interrupt setting and Audio, DTMF and Text input configuration for the initial and retry prompt played by the Bot"
6+
}

services/lexmodelsv2/src/main/resources/codegen-resources/service-2.json

Lines changed: 152 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1338,6 +1338,24 @@
13381338
"type":"list",
13391339
"member":{"shape":"AggregatedUtterancesSummary"}
13401340
},
1341+
"AllowedInputTypes":{
1342+
"type":"structure",
1343+
"required":[
1344+
"allowAudioInput",
1345+
"allowDTMFInput"
1346+
],
1347+
"members":{
1348+
"allowAudioInput":{
1349+
"shape":"BoxedBoolean",
1350+
"documentation":"<p>Indicates whether audio input is allowed.</p>"
1351+
},
1352+
"allowDTMFInput":{
1353+
"shape":"BoxedBoolean",
1354+
"documentation":"<p>Indicates whether DTMF input is allowed.</p>"
1355+
}
1356+
},
1357+
"documentation":"<p>Specifies the allowed input types.</p>"
1358+
},
13411359
"AmazonResourceName":{
13421360
"type":"string",
13431361
"max":1011,
@@ -1398,6 +1416,25 @@
13981416
"max":250,
13991417
"min":1
14001418
},
1419+
"AudioAndDTMFInputSpecification":{
1420+
"type":"structure",
1421+
"required":["startTimeoutMs"],
1422+
"members":{
1423+
"startTimeoutMs":{
1424+
"shape":"TimeInMilliSeconds",
1425+
"documentation":"<p>Time for which a bot waits before assuming that the customer isn't going to speak or press a key. This timeout is shared between Audio and DTMF inputs.</p>"
1426+
},
1427+
"audioSpecification":{
1428+
"shape":"AudioSpecification",
1429+
"documentation":"<p>Specifies the settings on audio input.</p>"
1430+
},
1431+
"dtmfSpecification":{
1432+
"shape":"DTMFSpecification",
1433+
"documentation":"<p>Specifies the settings on DTMF input.</p>"
1434+
}
1435+
},
1436+
"documentation":"<p>Specifies the audio and DTMF input specification.</p>"
1437+
},
14011438
"AudioLogDestination":{
14021439
"type":"structure",
14031440
"required":["s3Bucket"],
@@ -1434,6 +1471,24 @@
14341471
"type":"string",
14351472
"enum":["UseSlotValuesAsCustomVocabulary"]
14361473
},
1474+
"AudioSpecification":{
1475+
"type":"structure",
1476+
"required":[
1477+
"maxLengthMs",
1478+
"endTimeoutMs"
1479+
],
1480+
"members":{
1481+
"maxLengthMs":{
1482+
"shape":"TimeInMilliSeconds",
1483+
"documentation":"<p>Time for how long Amazon Lex waits before speech input is truncated and the speech is returned to application.</p>"
1484+
},
1485+
"endTimeoutMs":{
1486+
"shape":"TimeInMilliSeconds",
1487+
"documentation":"<p>Time for which a bot waits after the customer stops speaking to assume the utterance is finished.</p>"
1488+
}
1489+
},
1490+
"documentation":"<p>Specifies the audio input specifications.</p>"
1491+
},
14371492
"Boolean":{"type":"boolean"},
14381493
"BotAliasHistoryEvent":{
14391494
"type":"structure",
@@ -3300,6 +3355,38 @@
33003355
"Creating"
33013356
]
33023357
},
3358+
"DTMFCharacter":{
3359+
"type":"string",
3360+
"pattern":"^[A-D0-9#*]{1}$"
3361+
},
3362+
"DTMFSpecification":{
3363+
"type":"structure",
3364+
"required":[
3365+
"maxLength",
3366+
"endTimeoutMs",
3367+
"deletionCharacter",
3368+
"endCharacter"
3369+
],
3370+
"members":{
3371+
"maxLength":{
3372+
"shape":"MaxUtteranceDigits",
3373+
"documentation":"<p>The maximum number of DTMF digits allowed in an utterance.</p>"
3374+
},
3375+
"endTimeoutMs":{
3376+
"shape":"TimeInMilliSeconds",
3377+
"documentation":"<p>How long the bot should wait after the last DTMF character input before assuming that the input has concluded.</p>"
3378+
},
3379+
"deletionCharacter":{
3380+
"shape":"DTMFCharacter",
3381+
"documentation":"<p>The DTMF character that clears the accumulated DTMF digits and immediately ends the input.</p>"
3382+
},
3383+
"endCharacter":{
3384+
"shape":"DTMFCharacter",
3385+
"documentation":"<p>The DTMF character that immediately ends input. If the user does not press this character, the input ends after the end timeout.</p>"
3386+
}
3387+
},
3388+
"documentation":"<p>Specifies the DTMF input specifications.</p>"
3389+
},
33033390
"DataPrivacy":{
33043391
"type":"structure",
33053392
"required":["childDirected"],
@@ -6455,6 +6542,11 @@
64556542
"max":1000,
64566543
"min":1
64576544
},
6545+
"MaxUtteranceDigits":{
6546+
"type":"integer",
6547+
"max":1024,
6548+
"min":1
6549+
},
64586550
"MergeStrategy":{
64596551
"type":"string",
64606552
"enum":[
@@ -6760,6 +6852,46 @@
67606852
"max":100,
67616853
"min":0
67626854
},
6855+
"PromptAttempt":{
6856+
"type":"string",
6857+
"documentation":"<p>The attempt name of attempts of a prompt.</p>",
6858+
"enum":[
6859+
"Initial",
6860+
"Retry1",
6861+
"Retry2",
6862+
"Retry3",
6863+
"Retry4",
6864+
"Retry5"
6865+
]
6866+
},
6867+
"PromptAttemptSpecification":{
6868+
"type":"structure",
6869+
"required":["allowedInputTypes"],
6870+
"members":{
6871+
"allowInterrupt":{
6872+
"shape":"BoxedBoolean",
6873+
"documentation":"<p>Indicates whether the user can interrupt a speech prompt attempt from the bot.</p>"
6874+
},
6875+
"allowedInputTypes":{
6876+
"shape":"AllowedInputTypes",
6877+
"documentation":"<p>Indicates the allowed input types of the prompt attempt.</p>"
6878+
},
6879+
"audioAndDTMFInputSpecification":{
6880+
"shape":"AudioAndDTMFInputSpecification",
6881+
"documentation":"<p>Specifies the settings on audio and DTMF input.</p>"
6882+
},
6883+
"textInputSpecification":{
6884+
"shape":"TextInputSpecification",
6885+
"documentation":"<p>Specifies the settings on text input.</p>"
6886+
}
6887+
},
6888+
"documentation":"<p>Specifies the settings on a prompt attempt.</p>"
6889+
},
6890+
"PromptAttemptsSpecificationMap":{
6891+
"type":"map",
6892+
"key":{"shape":"PromptAttempt"},
6893+
"value":{"shape":"PromptAttemptSpecification"}
6894+
},
67636895
"PromptMaxRetries":{
67646896
"type":"integer",
67656897
"max":5,
@@ -6787,6 +6919,10 @@
67876919
"messageSelectionStrategy":{
67886920
"shape":"MessageSelectionStrategy",
67896921
"documentation":"<p>Indicates how a message is selected from a message group among retries.</p>"
6922+
},
6923+
"promptAttemptsSpecification":{
6924+
"shape":"PromptAttemptsSpecificationMap",
6925+
"documentation":"<p>Specifies the advanced settings on each attempt of the prompt.</p>"
67906926
}
67916927
},
67926928
"documentation":"<p>Specifies a list of message groups that Amazon Lex sends to a user to elicit a response.</p>"
@@ -7833,7 +7969,7 @@
78337969
"type":"string",
78347970
"max":640,
78357971
"min":0,
7836-
"pattern":"[0-9A-Za-z_\\s\\(\\)]+"
7972+
"pattern":"[0-9A-Za-z_\\-\\s\\(\\)]+"
78377973
},
78387974
"SubSlotSetting":{
78397975
"type":"structure",
@@ -7947,6 +8083,17 @@
79478083
"max":256,
79488084
"min":0
79498085
},
8086+
"TextInputSpecification":{
8087+
"type":"structure",
8088+
"required":["startTimeoutMs"],
8089+
"members":{
8090+
"startTimeoutMs":{
8091+
"shape":"TimeInMilliSeconds",
8092+
"documentation":"<p>Time for which a bot waits before re-prompting a customer for text input.</p>"
8093+
}
8094+
},
8095+
"documentation":"<p>Specifies the text input specifications.</p>"
8096+
},
79508097
"TextLogDestination":{
79518098
"type":"structure",
79528099
"required":["cloudWatch"],
@@ -8001,6 +8148,10 @@
80018148
"Weeks"
80028149
]
80038150
},
8151+
"TimeInMilliSeconds":{
8152+
"type":"integer",
8153+
"min":1
8154+
},
80048155
"TimeValue":{
80058156
"type":"integer",
80068157
"max":24,

0 commit comments

Comments
 (0)