Skip to content

Commit 345dcf1

Browse files
author
AWS
committed
Amazon Lex Runtime Service Update: Remove incorrect endpoint tests
1 parent 7fbff85 commit 345dcf1

File tree

5 files changed

+36
-72
lines changed

5 files changed

+36
-72
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 Runtime Service",
4+
"contributor": "",
5+
"description": "Remove incorrect endpoint tests"
6+
}

services/lexruntime/src/main/resources/codegen-resources/endpoint-rule-set.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
]
4141
}
4242
],
43-
"type": "tree",
4443
"rules": [
4544
{
4645
"conditions": [
@@ -83,7 +82,8 @@
8382
},
8483
"type": "endpoint"
8584
}
86-
]
85+
],
86+
"type": "tree"
8787
},
8888
{
8989
"conditions": [
@@ -96,7 +96,6 @@
9696
]
9797
}
9898
],
99-
"type": "tree",
10099
"rules": [
101100
{
102101
"conditions": [
@@ -110,7 +109,6 @@
110109
"assign": "PartitionResult"
111110
}
112111
],
113-
"type": "tree",
114112
"rules": [
115113
{
116114
"conditions": [
@@ -133,7 +131,6 @@
133131
]
134132
}
135133
],
136-
"type": "tree",
137134
"rules": [
138135
{
139136
"conditions": [
@@ -168,7 +165,6 @@
168165
]
169166
}
170167
],
171-
"type": "tree",
172168
"rules": [
173169
{
174170
"conditions": [],
@@ -179,14 +175,16 @@
179175
},
180176
"type": "endpoint"
181177
}
182-
]
178+
],
179+
"type": "tree"
183180
},
184181
{
185182
"conditions": [],
186183
"error": "FIPS and DualStack are enabled, but this partition does not support one or both",
187184
"type": "error"
188185
}
189-
]
186+
],
187+
"type": "tree"
190188
},
191189
{
192190
"conditions": [
@@ -200,14 +198,12 @@
200198
]
201199
}
202200
],
203-
"type": "tree",
204201
"rules": [
205202
{
206203
"conditions": [
207204
{
208205
"fn": "booleanEquals",
209206
"argv": [
210-
true,
211207
{
212208
"fn": "getAttr",
213209
"argv": [
@@ -216,18 +212,17 @@
216212
},
217213
"supportsFIPS"
218214
]
219-
}
215+
},
216+
true
220217
]
221218
}
222219
],
223-
"type": "tree",
224220
"rules": [
225221
{
226222
"conditions": [
227223
{
228224
"fn": "stringEquals",
229225
"argv": [
230-
"aws",
231226
{
232227
"fn": "getAttr",
233228
"argv": [
@@ -236,7 +231,8 @@
236231
},
237232
"name"
238233
]
239-
}
234+
},
235+
"aws"
240236
]
241237
}
242238
],
@@ -252,7 +248,6 @@
252248
{
253249
"fn": "stringEquals",
254250
"argv": [
255-
"aws-us-gov",
256251
{
257252
"fn": "getAttr",
258253
"argv": [
@@ -261,7 +256,8 @@
261256
},
262257
"name"
263258
]
264-
}
259+
},
260+
"aws-us-gov"
265261
]
266262
}
267263
],
@@ -281,14 +277,16 @@
281277
},
282278
"type": "endpoint"
283279
}
284-
]
280+
],
281+
"type": "tree"
285282
},
286283
{
287284
"conditions": [],
288285
"error": "FIPS is enabled but this partition does not support FIPS",
289286
"type": "error"
290287
}
291-
]
288+
],
289+
"type": "tree"
292290
},
293291
{
294292
"conditions": [
@@ -302,7 +300,6 @@
302300
]
303301
}
304302
],
305-
"type": "tree",
306303
"rules": [
307304
{
308305
"conditions": [
@@ -322,7 +319,6 @@
322319
]
323320
}
324321
],
325-
"type": "tree",
326322
"rules": [
327323
{
328324
"conditions": [],
@@ -333,14 +329,16 @@
333329
},
334330
"type": "endpoint"
335331
}
336-
]
332+
],
333+
"type": "tree"
337334
},
338335
{
339336
"conditions": [],
340337
"error": "DualStack is enabled but this partition does not support DualStack",
341338
"type": "error"
342339
}
343-
]
340+
],
341+
"type": "tree"
344342
},
345343
{
346344
"conditions": [
@@ -401,9 +399,11 @@
401399
},
402400
"type": "endpoint"
403401
}
404-
]
402+
],
403+
"type": "tree"
405404
}
406-
]
405+
],
406+
"type": "tree"
407407
},
408408
{
409409
"conditions": [],

services/lexruntime/src/main/resources/codegen-resources/endpoint-tests.json

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -286,17 +286,6 @@
286286
"UseDualStack": false
287287
}
288288
},
289-
{
290-
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
291-
"expect": {
292-
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
293-
},
294-
"params": {
295-
"Region": "us-iso-east-1",
296-
"UseFIPS": true,
297-
"UseDualStack": true
298-
}
299-
},
300289
{
301290
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
302291
"expect": {
@@ -310,17 +299,6 @@
310299
"UseDualStack": false
311300
}
312301
},
313-
{
314-
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
315-
"expect": {
316-
"error": "DualStack is enabled but this partition does not support DualStack"
317-
},
318-
"params": {
319-
"Region": "us-iso-east-1",
320-
"UseFIPS": false,
321-
"UseDualStack": true
322-
}
323-
},
324302
{
325303
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
326304
"expect": {
@@ -334,17 +312,6 @@
334312
"UseDualStack": false
335313
}
336314
},
337-
{
338-
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
339-
"expect": {
340-
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
341-
},
342-
"params": {
343-
"Region": "us-isob-east-1",
344-
"UseFIPS": true,
345-
"UseDualStack": true
346-
}
347-
},
348315
{
349316
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
350317
"expect": {
@@ -358,17 +325,6 @@
358325
"UseDualStack": false
359326
}
360327
},
361-
{
362-
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
363-
"expect": {
364-
"error": "DualStack is enabled but this partition does not support DualStack"
365-
},
366-
"params": {
367-
"Region": "us-isob-east-1",
368-
"UseFIPS": false,
369-
"UseDualStack": true
370-
}
371-
},
372328
{
373329
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
374330
"expect": {
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"pagination": {
3-
}
2+
"pagination": {}
43
}

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
"endpointPrefix":"runtime.lex",
66
"jsonVersion":"1.1",
77
"protocol":"rest-json",
8+
"protocols":["rest-json"],
89
"serviceFullName":"Amazon Lex Runtime Service",
910
"serviceId":"Lex Runtime Service",
1011
"signatureVersion":"v4",
1112
"signingName":"lex",
12-
"uid":"runtime.lex-2016-11-28"
13+
"uid":"runtime.lex-2016-11-28",
14+
"auth":["aws.auth#sigv4"]
1315
},
1416
"operations":{
1517
"DeleteSession":{
@@ -67,7 +69,8 @@
6769
{"shape":"LoopDetectedException"}
6870
],
6971
"documentation":"<p> Sends user input (text or speech) to Amazon Lex. Clients use this API to send text and audio requests to Amazon Lex at runtime. Amazon Lex interprets the user input using the machine learning model that it built for the bot. </p> <p>The <code>PostContent</code> operation supports audio input at 8kHz and 16kHz. You can use 8kHz audio to achieve higher speech recognition accuracy in telephone audio applications. </p> <p> In response, Amazon Lex returns the next message to convey to the user. Consider the following example messages: </p> <ul> <li> <p> For a user input \"I would like a pizza,\" Amazon Lex might return a response with a message eliciting slot data (for example, <code>PizzaSize</code>): \"What size pizza would you like?\". </p> </li> <li> <p> After the user provides all of the pizza order information, Amazon Lex might return a response with a message to get user confirmation: \"Order the pizza?\". </p> </li> <li> <p> After the user replies \"Yes\" to the confirmation prompt, Amazon Lex might return a conclusion statement: \"Thank you, your cheese pizza has been ordered.\". </p> </li> </ul> <p> Not all Amazon Lex messages require a response from the user. For example, conclusion statements do not require a response. Some messages require only a yes or no response. In addition to the <code>message</code>, Amazon Lex provides additional context about the message in the response that you can use to enhance client behavior, such as displaying the appropriate client user interface. Consider the following examples: </p> <ul> <li> <p> If the message is to elicit slot data, Amazon Lex returns the following context information: </p> <ul> <li> <p> <code>x-amz-lex-dialog-state</code> header set to <code>ElicitSlot</code> </p> </li> <li> <p> <code>x-amz-lex-intent-name</code> header set to the intent name in the current context </p> </li> <li> <p> <code>x-amz-lex-slot-to-elicit</code> header set to the slot name for which the <code>message</code> is eliciting information </p> </li> <li> <p> <code>x-amz-lex-slots</code> header set to a map of slots configured for the intent with their current values </p> </li> </ul> </li> <li> <p> If the message is a confirmation prompt, the <code>x-amz-lex-dialog-state</code> header is set to <code>Confirmation</code> and the <code>x-amz-lex-slot-to-elicit</code> header is omitted. </p> </li> <li> <p> If the message is a clarification prompt configured for the intent, indicating that the user intent is not understood, the <code>x-amz-dialog-state</code> header is set to <code>ElicitIntent</code> and the <code>x-amz-slot-to-elicit</code> header is omitted. </p> </li> </ul> <p> In addition, Amazon Lex also returns your application-specific <code>sessionAttributes</code>. For more information, see <a href=\"https://docs.aws.amazon.com/lex/latest/dg/context-mgmt.html\">Managing Conversation Context</a>. </p>",
70-
"authtype":"v4-unsigned-body"
72+
"authtype":"v4-unsigned-body",
73+
"unsignedPayload":true
7174
},
7275
"PostText":{
7376
"name":"PostText",

0 commit comments

Comments
 (0)