|
979 | 979 | "CustomPayload"
|
980 | 980 | ]
|
981 | 981 | },
|
| 982 | + "ContextTimeToLiveInSeconds":{ |
| 983 | + "type":"integer", |
| 984 | + "max":86400, |
| 985 | + "min":5 |
| 986 | + }, |
| 987 | + "ContextTurnsToLive":{ |
| 988 | + "type":"integer", |
| 989 | + "max":20, |
| 990 | + "min":1 |
| 991 | + }, |
982 | 992 | "ConversationLogsRequest":{
|
983 | 993 | "type":"structure",
|
984 | 994 | "required":[
|
|
1183 | 1193 | "kendraConfiguration":{
|
1184 | 1194 | "shape":"KendraConfiguration",
|
1185 | 1195 | "documentation":"<p>Configuration information, if any, for connecting an Amazon Kendra index with the <code>AMAZON.KendraSearchIntent</code> intent.</p>"
|
| 1196 | + }, |
| 1197 | + "inputContexts":{ |
| 1198 | + "shape":"InputContextList", |
| 1199 | + "documentation":"<p>An array of <code>InputContext</code> objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.</p>" |
| 1200 | + }, |
| 1201 | + "outputContexts":{ |
| 1202 | + "shape":"OutputContextList", |
| 1203 | + "documentation":"<p>An array of <code>OutputContext</code> objects that lists the contexts that the intent activates when the intent is fulfilled.</p>" |
1186 | 1204 | }
|
1187 | 1205 | }
|
1188 | 1206 | },
|
|
2216 | 2234 | "kendraConfiguration":{
|
2217 | 2235 | "shape":"KendraConfiguration",
|
2218 | 2236 | "documentation":"<p>Configuration information, if any, to connect to an Amazon Kendra index with the <code>AMAZON.KendraSearchIntent</code> intent.</p>"
|
| 2237 | + }, |
| 2238 | + "inputContexts":{ |
| 2239 | + "shape":"InputContextList", |
| 2240 | + "documentation":"<p>An array of <code>InputContext</code> objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.</p>" |
| 2241 | + }, |
| 2242 | + "outputContexts":{ |
| 2243 | + "shape":"OutputContextList", |
| 2244 | + "documentation":"<p>An array of <code>OutputContext</code> objects that lists the contexts that the intent activates when the intent is fulfilled.</p>" |
2219 | 2245 | }
|
2220 | 2246 | }
|
2221 | 2247 | },
|
|
2492 | 2518 | "FAILED"
|
2493 | 2519 | ]
|
2494 | 2520 | },
|
| 2521 | + "InputContext":{ |
| 2522 | + "type":"structure", |
| 2523 | + "required":["name"], |
| 2524 | + "members":{ |
| 2525 | + "name":{ |
| 2526 | + "shape":"InputContextName", |
| 2527 | + "documentation":"<p>The name of the context.</p>" |
| 2528 | + } |
| 2529 | + }, |
| 2530 | + "documentation":"<p>The name of a context that must be active for an intent to be selected by Amazon Lex.</p>" |
| 2531 | + }, |
| 2532 | + "InputContextList":{ |
| 2533 | + "type":"list", |
| 2534 | + "member":{"shape":"InputContext"}, |
| 2535 | + "max":5, |
| 2536 | + "min":0 |
| 2537 | + }, |
| 2538 | + "InputContextName":{ |
| 2539 | + "type":"string", |
| 2540 | + "max":100, |
| 2541 | + "min":1, |
| 2542 | + "pattern":"^([A-Za-z]_?)+$" |
| 2543 | + }, |
2495 | 2544 | "Intent":{
|
2496 | 2545 | "type":"structure",
|
2497 | 2546 | "required":[
|
|
2810 | 2859 | "DEFAULT_OBFUSCATION"
|
2811 | 2860 | ]
|
2812 | 2861 | },
|
| 2862 | + "OutputContext":{ |
| 2863 | + "type":"structure", |
| 2864 | + "required":[ |
| 2865 | + "name", |
| 2866 | + "timeToLiveInSeconds", |
| 2867 | + "turnsToLive" |
| 2868 | + ], |
| 2869 | + "members":{ |
| 2870 | + "name":{ |
| 2871 | + "shape":"OutputContextName", |
| 2872 | + "documentation":"<p>The name of the context.</p>" |
| 2873 | + }, |
| 2874 | + "timeToLiveInSeconds":{ |
| 2875 | + "shape":"ContextTimeToLiveInSeconds", |
| 2876 | + "documentation":"<p>The number of seconds that the context should be active after it is first sent in a <code>PostContent</code> or <code>PostText</code> response. You can set the value between 5 and 86,400 seconds (24 hours).</p>" |
| 2877 | + }, |
| 2878 | + "turnsToLive":{ |
| 2879 | + "shape":"ContextTurnsToLive", |
| 2880 | + "documentation":"<p>The number of conversation turns that the context should be active. A conversation turn is one <code>PostContent</code> or <code>PostText</code> request and the corresponding response from Amazon Lex.</p>" |
| 2881 | + } |
| 2882 | + }, |
| 2883 | + "documentation":"<p>The specification of an output context that is set when an intent is fulfilled.</p>" |
| 2884 | + }, |
| 2885 | + "OutputContextList":{ |
| 2886 | + "type":"list", |
| 2887 | + "member":{"shape":"OutputContext"}, |
| 2888 | + "max":10, |
| 2889 | + "min":0 |
| 2890 | + }, |
| 2891 | + "OutputContextName":{ |
| 2892 | + "type":"string", |
| 2893 | + "max":100, |
| 2894 | + "min":1, |
| 2895 | + "pattern":"^([A-Za-z]_?)+$" |
| 2896 | + }, |
2813 | 2897 | "PreconditionFailedException":{
|
2814 | 2898 | "type":"structure",
|
2815 | 2899 | "members":{
|
|
2965 | 3049 | },
|
2966 | 3050 | "enableModelImprovements":{
|
2967 | 3051 | "shape":"Boolean",
|
2968 |
| - "documentation":"<p>Set to <code>true</code> to enable access to natural language understanding improvements. </p> <p>When you set the <code>enableModelImprovements</code> parameter to <code>true</code> you can use the <code>nluIntentConfidenceThreshold</code> parameter to configure confidence scores. For more information, see <a href=\"https://docs.aws.amazon.com/lex/latest/dg/confidence-scores.html\">Confidence Scores</a>.</p> <p>You can only set the <code>enableModelImprovements</code> parameter in certain Regions. If you set the parameter to <code>true</code>, your bot has access to accuracy improvements.</p> <p>The Regions where you can set the <code>enableModelImprovements</code> parameter to <code>true</code> are:</p> <ul> <li> <p>US East (N. Virginia) (us-east-1)</p> </li> <li> <p>US West (Oregon) (us-west-2)</p> </li> <li> <p>Asia Pacific (Sydney) (ap-southeast-2)</p> </li> <li> <p>EU (Ireland) (eu-west-1)</p> </li> </ul> <p>In other Regions, the <code>enableModelImprovements</code> parameter is set to <code>true</code> by default. In these Regions setting the parameter to <code>false</code> throws a <code>ValidationException</code> exception.</p> <ul> <li> <p>Asia Pacific (Singapore) (ap-southeast-1)</p> </li> <li> <p>Asia Pacific (Tokyo) (ap-northeast-1)</p> </li> <li> <p>EU (Frankfurt) (eu-central-1)</p> </li> <li> <p>EU (London) (eu-west-2)</p> </li> </ul>" |
| 3052 | + "documentation":"<p>Set to <code>true</code> to enable access to natural language understanding improvements. </p> <p>When you set the <code>enableModelImprovements</code> parameter to <code>true</code> you can use the <code>nluIntentConfidenceThreshold</code> parameter to configure confidence scores. For more information, see <a href=\"https://docs.aws.amazon.com/lex/latest/dg/confidence-scores.html\">Confidence Scores</a>.</p> <p>You can only set the <code>enableModelImprovements</code> parameter in certain Regions. If you set the parameter to <code>true</code>, your bot has access to accuracy improvements.</p> <p>The Regions where you can set the <code>enableModelImprovements</code> parameter to <code>true</code> are:</p> <ul> <li> <p>US East (N. Virginia) (us-east-1)</p> </li> <li> <p>US West (Oregon) (us-west-2)</p> </li> <li> <p>Asia Pacific (Sydney) (ap-southeast-2)</p> </li> <li> <p>EU (Ireland) (eu-west-1)</p> </li> </ul> <p>In other Regions, the <code>enableModelImprovements</code> parameter is set to <code>true</code> by default. In these Regions setting the parameter to <code>false</code> throws a <code>ValidationException</code> exception.</p>" |
2969 | 3053 | },
|
2970 | 3054 | "nluIntentConfidenceThreshold":{
|
2971 | 3055 | "shape":"ConfidenceThreshold",
|
2972 |
| - "documentation":"<p>Determines the threshold where Amazon Lex will insert the <code>AMAZON.FallbackIntent</code>, <code>AMAZON.KendraSearchIntent</code>, or both when returning alternative intents in a <a href=\"https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostContent.html\">PostContent</a> or <a href=\"https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostText.html\">PostText</a> response. <code>AMAZON.FallbackIntent</code> and <code>AMAZON.KendraSearchIntent</code> are only inserted if they are configured for the bot.</p> <p>You must set the <code>enableModelImprovements</code> parameter to <code>true</code> to use confidence scores.</p> <ul> <li> <p>US East (N. Virginia) (us-east-1)</p> </li> <li> <p>US West (Oregon) (us-west-2)</p> </li> <li> <p>Asia Pacific (Sydney) (ap-southeast-2)</p> </li> <li> <p>EU (Ireland) (eu-west-1)</p> </li> </ul> <p>In other Regions, the <code>enableModelImprovements</code> parameter is set to <code>true</code> by default.</p> <p>For example, suppose a bot is configured with the confidence threshold of 0.80 and the <code>AMAZON.FallbackIntent</code>. Amazon Lex returns three alternative intents with the following confidence scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response from the <code>PostText</code> operation would be:</p> <ul> <li> <p>AMAZON.FallbackIntent</p> </li> <li> <p>IntentA</p> </li> <li> <p>IntentB</p> </li> <li> <p>IntentC</p> </li> </ul>" |
| 3056 | + "documentation":"<p>Determines the threshold where Amazon Lex will insert the <code>AMAZON.FallbackIntent</code>, <code>AMAZON.KendraSearchIntent</code>, or both when returning alternative intents in a <a href=\"https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostContent.html\">PostContent</a> or <a href=\"https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostText.html\">PostText</a> response. <code>AMAZON.FallbackIntent</code> and <code>AMAZON.KendraSearchIntent</code> are only inserted if they are configured for the bot.</p> <p>You must set the <code>enableModelImprovements</code> parameter to <code>true</code> to use confidence scores in the following regions.</p> <ul> <li> <p>US East (N. Virginia) (us-east-1)</p> </li> <li> <p>US West (Oregon) (us-west-2)</p> </li> <li> <p>Asia Pacific (Sydney) (ap-southeast-2)</p> </li> <li> <p>EU (Ireland) (eu-west-1)</p> </li> </ul> <p>In other Regions, the <code>enableModelImprovements</code> parameter is set to <code>true</code> by default.</p> <p>For example, suppose a bot is configured with the confidence threshold of 0.80 and the <code>AMAZON.FallbackIntent</code>. Amazon Lex returns three alternative intents with the following confidence scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response from the <code>PostText</code> operation would be:</p> <ul> <li> <p>AMAZON.FallbackIntent</p> </li> <li> <p>IntentA</p> </li> <li> <p>IntentB</p> </li> <li> <p>IntentC</p> </li> </ul>" |
2973 | 3057 | },
|
2974 | 3058 | "clarificationPrompt":{
|
2975 | 3059 | "shape":"Prompt",
|
|
3163 | 3247 | "kendraConfiguration":{
|
3164 | 3248 | "shape":"KendraConfiguration",
|
3165 | 3249 | "documentation":"<p>Configuration information required to use the <code>AMAZON.KendraSearchIntent</code> intent to connect to an Amazon Kendra index. For more information, see <a href=\"http://docs.aws.amazon.com/lex/latest/dg/built-in-intent-kendra-search.html\"> AMAZON.KendraSearchIntent</a>.</p>"
|
| 3250 | + }, |
| 3251 | + "inputContexts":{ |
| 3252 | + "shape":"InputContextList", |
| 3253 | + "documentation":"<p>An array of <code>InputContext</code> objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.</p>" |
| 3254 | + }, |
| 3255 | + "outputContexts":{ |
| 3256 | + "shape":"OutputContextList", |
| 3257 | + "documentation":"<p>An array of <code>OutputContext</code> objects that lists the contexts that the intent activates when the intent is fulfilled.</p>" |
3166 | 3258 | }
|
3167 | 3259 | }
|
3168 | 3260 | },
|
|
3236 | 3328 | "kendraConfiguration":{
|
3237 | 3329 | "shape":"KendraConfiguration",
|
3238 | 3330 | "documentation":"<p>Configuration information, if any, required to connect to an Amazon Kendra index and use the <code>AMAZON.KendraSearchIntent</code> intent.</p>"
|
| 3331 | + }, |
| 3332 | + "inputContexts":{ |
| 3333 | + "shape":"InputContextList", |
| 3334 | + "documentation":"<p>An array of <code>InputContext</code> objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.</p>" |
| 3335 | + }, |
| 3336 | + "outputContexts":{ |
| 3337 | + "shape":"OutputContextList", |
| 3338 | + "documentation":"<p>An array of <code>OutputContext</code> objects that lists the contexts that the intent activates when the intent is fulfilled.</p>" |
3239 | 3339 | }
|
3240 | 3340 | }
|
3241 | 3341 | },
|
|
3444 | 3544 | "obfuscationSetting":{
|
3445 | 3545 | "shape":"ObfuscationSetting",
|
3446 | 3546 | "documentation":"<p>Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is \"full_name\", obfuscated values are replaced with \"{full_name}\". For more information, see <a href=\"https://docs.aws.amazon.com/lex/latest/dg/how-obfuscate.html\"> Slot Obfuscation </a>. </p>"
|
| 3547 | + }, |
| 3548 | + "defaultValueSpec":{ |
| 3549 | + "shape":"SlotDefaultValueSpec", |
| 3550 | + "documentation":"<p>A list of default values for the slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.</p>" |
3447 | 3551 | }
|
3448 | 3552 | },
|
3449 | 3553 | "documentation":"<p>Identifies the version of a specific slot.</p>"
|
|
3455 | 3559 | "Optional"
|
3456 | 3560 | ]
|
3457 | 3561 | },
|
| 3562 | + "SlotDefaultValue":{ |
| 3563 | + "type":"structure", |
| 3564 | + "required":["defaultValue"], |
| 3565 | + "members":{ |
| 3566 | + "defaultValue":{ |
| 3567 | + "shape":"SlotDefaultValueString", |
| 3568 | + "documentation":"<p>The default value for the slot. You can specify one of the following:</p> <ul> <li> <p> <code>#context-name.slot-name</code> - The slot value \"slot-name\" in the context \"context-name.\"</p> </li> <li> <p> <code>{attribute}</code> - The slot value of the session attribute \"attribute.\"</p> </li> <li> <p> <code>'value'</code> - The discrete value \"value.\"</p> </li> </ul>" |
| 3569 | + } |
| 3570 | + }, |
| 3571 | + "documentation":"<p>A default value for a slot.</p>" |
| 3572 | + }, |
| 3573 | + "SlotDefaultValueList":{ |
| 3574 | + "type":"list", |
| 3575 | + "member":{"shape":"SlotDefaultValue"}, |
| 3576 | + "max":10, |
| 3577 | + "min":0 |
| 3578 | + }, |
| 3579 | + "SlotDefaultValueSpec":{ |
| 3580 | + "type":"structure", |
| 3581 | + "required":["defaultValueList"], |
| 3582 | + "members":{ |
| 3583 | + "defaultValueList":{ |
| 3584 | + "shape":"SlotDefaultValueList", |
| 3585 | + "documentation":"<p>The default values for a slot. You can specify more than one default. For example, you can specify a default value to use from a matching context variable, a session attribute, or a fixed value.</p> <p>The default value chosen is selected based on the order that you specify them in the list. For example, if you specify a context variable and a fixed value in that order, Amazon Lex uses the context variable if it is available, else it uses the fixed value.</p>" |
| 3586 | + } |
| 3587 | + }, |
| 3588 | + "documentation":"<p>Contains the default values for a slot. Default values are used when Amazon Lex hasn't determined a value for a slot.</p>" |
| 3589 | + }, |
| 3590 | + "SlotDefaultValueString":{ |
| 3591 | + "type":"string", |
| 3592 | + "max":202, |
| 3593 | + "min":1 |
| 3594 | + }, |
3458 | 3595 | "SlotList":{
|
3459 | 3596 | "type":"list",
|
3460 | 3597 | "member":{"shape":"Slot"},
|
|
0 commit comments