forked from aws/aws-sdk-go-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lex-runtime-v2.json
2363 lines (2363 loc) · 129 KB
/
lex-runtime-v2.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"smithy": "1.0",
"metadata": {
"suppressions": [
{
"id": "HttpMethodSemantics",
"namespace": "*"
},
{
"id": "HttpResponseCodeSemantics",
"namespace": "*"
},
{
"id": "PaginatedTrait",
"namespace": "*"
},
{
"id": "HttpHeaderTrait",
"namespace": "*"
},
{
"id": "HttpUriConflict",
"namespace": "*"
},
{
"id": "Service",
"namespace": "*"
}
]
},
"shapes": {
"com.amazonaws.lexruntimev2#AWSDeepSenseRunTimeServiceApi2_0": {
"type": "service",
"traits": {
"aws.api#service": {
"sdkId": "Lex Runtime V2",
"arnNamespace": "lex",
"cloudFormationName": "LexRuntimeV2",
"cloudTrailEventSource": "lexruntimev2.amazonaws.com",
"endpointPrefix": "runtime-v2-lex"
},
"aws.auth#sigv4": {
"name": "lex"
},
"aws.protocols#restJson1": {
"http": ["http/1.1", "h2"],
"eventStreamHttp": ["h2"]
},
"smithy.api#documentation": "<p></p>",
"smithy.api#title": "Amazon Lex Runtime V2"
},
"version": "2020-08-07",
"operations": [
{
"target": "com.amazonaws.lexruntimev2#DeleteSession"
},
{
"target": "com.amazonaws.lexruntimev2#GetSession"
},
{
"target": "com.amazonaws.lexruntimev2#PutSession"
},
{
"target": "com.amazonaws.lexruntimev2#RecognizeText"
},
{
"target": "com.amazonaws.lexruntimev2#RecognizeUtterance"
},
{
"target": "com.amazonaws.lexruntimev2#StartConversation"
}
]
},
"com.amazonaws.lexruntimev2#AccessDeniedException": {
"type": "structure",
"members": {
"message": {
"target": "com.amazonaws.lexruntimev2#String",
"traits": {
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#documentation": "<p></p>",
"smithy.api#error": "client",
"smithy.api#httpError": 403
}
},
"com.amazonaws.lexruntimev2#ActiveContext": {
"type": "structure",
"members": {
"name": {
"target": "com.amazonaws.lexruntimev2#ActiveContextName",
"traits": {
"smithy.api#documentation": "<p>The name of the context.</p>",
"smithy.api#required": {}
}
},
"timeToLive": {
"target": "com.amazonaws.lexruntimev2#ActiveContextTimeToLive",
"traits": {
"smithy.api#documentation": "<p>Indicates the number of turns or seconds that the context is active.\n Once the time to live expires, the context is no longer returned in a\n response.</p>",
"smithy.api#required": {}
}
},
"contextAttributes": {
"target": "com.amazonaws.lexruntimev2#ActiveContextParametersMap",
"traits": {
"smithy.api#documentation": "<p>A list of contexts active for the request. A context can be\n activated when a previous intent is fulfilled, or by including the\n context in the request.</p>\n <p>If you don't specify a list of contexts, Amazon Lex V2 will use the current\n list of contexts for the session. If you specify an empty list, all\n contexts for the session are cleared. </p>",
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#documentation": "<p>Contains information about the contexts that a user is using in a\n session. You can configure Amazon Lex V2 to set a context when an intent is\n fulfilled, or you can set a context using the , , or operations.</p>\n <p>Use a context to indicate to Amazon Lex V2 intents that should be used as\n follow-up intents. For example, if the active context is\n <code>order-fulfilled</code>, only intents that have\n <code>order-fulfilled</code> configured as a trigger are considered\n for follow up.</p>"
}
},
"com.amazonaws.lexruntimev2#ActiveContextName": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 100
},
"smithy.api#pattern": "^([A-Za-z]_?)+$"
}
},
"com.amazonaws.lexruntimev2#ActiveContextParametersMap": {
"type": "map",
"key": {
"target": "com.amazonaws.lexruntimev2#ParameterName"
},
"value": {
"target": "com.amazonaws.lexruntimev2#Text"
},
"traits": {
"smithy.api#length": {
"min": 0,
"max": 10
}
}
},
"com.amazonaws.lexruntimev2#ActiveContextTimeToLive": {
"type": "structure",
"members": {
"timeToLiveInSeconds": {
"target": "com.amazonaws.lexruntimev2#ActiveContextTimeToLiveInSeconds",
"traits": {
"smithy.api#documentation": "<p>The number of seconds that the context is active. You can specify\n between 5 and 86400 seconds (24 hours).</p>",
"smithy.api#required": {}
}
},
"turnsToLive": {
"target": "com.amazonaws.lexruntimev2#ActiveContextTurnsToLive",
"traits": {
"smithy.api#documentation": "<p>The number of turns that the context is active. You can specify up\n to 20 turns. Each request and response from the bot is a turn.</p>",
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#documentation": "<p>The time that a context is active. You can specify the time to live\n in seconds or in conversation turns.</p>"
}
},
"com.amazonaws.lexruntimev2#ActiveContextTimeToLiveInSeconds": {
"type": "integer",
"traits": {
"smithy.api#box": {},
"smithy.api#range": {
"min": 5,
"max": 86400
}
}
},
"com.amazonaws.lexruntimev2#ActiveContextTurnsToLive": {
"type": "integer",
"traits": {
"smithy.api#box": {},
"smithy.api#range": {
"min": 1,
"max": 20
}
}
},
"com.amazonaws.lexruntimev2#ActiveContextsList": {
"type": "list",
"member": {
"target": "com.amazonaws.lexruntimev2#ActiveContext"
},
"traits": {
"smithy.api#length": {
"min": 0,
"max": 20
}
}
},
"com.amazonaws.lexruntimev2#AttachmentTitle": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 250
}
}
},
"com.amazonaws.lexruntimev2#AttachmentUrl": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 250
}
}
},
"com.amazonaws.lexruntimev2#AudioChunk": {
"type": "blob"
},
"com.amazonaws.lexruntimev2#AudioInputEvent": {
"type": "structure",
"members": {
"audioChunk": {
"target": "com.amazonaws.lexruntimev2#AudioChunk",
"traits": {
"smithy.api#documentation": "<p>An encoded stream of audio.</p>"
}
},
"contentType": {
"target": "com.amazonaws.lexruntimev2#NonEmptyString",
"traits": {
"smithy.api#documentation": "<p>The encoding used for the audio chunk. You must use 8 KHz PCM 16-bit\n mono-channel little-endian format. The value of the field should\n be:</p>\n <p>\n <code>audio/lpcm; sample-rate=8000; sample-size-bits=16;\n channel-count=1; is-big-endian=false</code>\n </p>",
"smithy.api#required": {}
}
},
"eventId": {
"target": "com.amazonaws.lexruntimev2#EventId",
"traits": {
"smithy.api#documentation": "<p>A unique identifier that your application assigns to the event. You\n can use this to identify events in logs.</p>"
}
},
"clientTimestampMillis": {
"target": "com.amazonaws.lexruntimev2#EpochMillis",
"traits": {
"smithy.api#documentation": "<p>A timestamp set by the client of the date and time that the event\n was sent to Amazon Lex V2.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Represents a chunk of audio sent from the client application to\n Amazon Lex V2. The audio is all or part of an utterance from the user.</p>\n <p>Amazon Lex V2 accumulates audio chunks until it recognizes a natural pause\n in speech before processing the input.</p>"
}
},
"com.amazonaws.lexruntimev2#AudioResponseEvent": {
"type": "structure",
"members": {
"audioChunk": {
"target": "com.amazonaws.lexruntimev2#AudioChunk",
"traits": {
"smithy.api#documentation": "<p>A chunk of the audio to play. </p>"
}
},
"contentType": {
"target": "com.amazonaws.lexruntimev2#NonEmptyString",
"traits": {
"smithy.api#documentation": "<p>The encoding of the audio chunk. This is the same as the encoding\n configure in the <code>contentType</code> field of the\n <code>ConfigurationEvent</code>.</p>"
}
},
"eventId": {
"target": "com.amazonaws.lexruntimev2#EventId",
"traits": {
"smithy.api#documentation": "<p>A unique identifier of the event sent by Amazon Lex V2. The identifier is in\n the form <code>RESPONSE-N</code>, where N is a number starting with one\n and incremented for each event sent by Amazon Lex V2 in the current\n session.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>An event sent from Amazon Lex V2 to your client application containing audio\n to play to the user. </p>"
}
},
"com.amazonaws.lexruntimev2#BadGatewayException": {
"type": "structure",
"members": {
"message": {
"target": "com.amazonaws.lexruntimev2#String",
"traits": {
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#documentation": "<p></p>",
"smithy.api#error": "server",
"smithy.api#httpError": 502
}
},
"com.amazonaws.lexruntimev2#BlobStream": {
"type": "blob",
"traits": {
"smithy.api#streaming": {}
}
},
"com.amazonaws.lexruntimev2#Boolean": {
"type": "boolean"
},
"com.amazonaws.lexruntimev2#BotAliasIdentifier": {
"type": "string"
},
"com.amazonaws.lexruntimev2#BotIdentifier": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 10,
"max": 10
},
"smithy.api#pattern": "^[0-9a-zA-Z]+$"
}
},
"com.amazonaws.lexruntimev2#Button": {
"type": "structure",
"members": {
"text": {
"target": "com.amazonaws.lexruntimev2#ButtonText",
"traits": {
"smithy.api#documentation": "<p>The text that is displayed on the button.</p>",
"smithy.api#required": {}
}
},
"value": {
"target": "com.amazonaws.lexruntimev2#ButtonValue",
"traits": {
"smithy.api#documentation": "<p>The value returned to Amazon Lex V2 when a user chooses the button.</p>",
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#documentation": "<p>A button that appears on a response card show to the user.</p>"
}
},
"com.amazonaws.lexruntimev2#ButtonText": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 50
}
}
},
"com.amazonaws.lexruntimev2#ButtonValue": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 50
}
}
},
"com.amazonaws.lexruntimev2#ButtonsList": {
"type": "list",
"member": {
"target": "com.amazonaws.lexruntimev2#Button"
},
"traits": {
"smithy.api#length": {
"min": 0,
"max": 5
}
}
},
"com.amazonaws.lexruntimev2#ConfidenceScore": {
"type": "structure",
"members": {
"score": {
"target": "com.amazonaws.lexruntimev2#Double",
"traits": {
"smithy.api#documentation": "<p>A score that indicates how confident Amazon Lex V2 is that an intent\n satisfies the user's intent. Ranges between 0.00 and 1.00. Higher\n scores indicate higher confidence.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Provides a score that indicates the confidence that Amazon Lex V2 has that\n an intent is the one that satisfies the user's intent.</p>"
}
},
"com.amazonaws.lexruntimev2#ConfigurationEvent": {
"type": "structure",
"members": {
"requestAttributes": {
"target": "com.amazonaws.lexruntimev2#StringMap",
"traits": {
"smithy.api#documentation": "<p>Request-specific information passed between the client application\n and Amazon Lex V2.</p>\n <p>The namespace <code>x-amz-lex:</code> is reserved for special\n attributes. Don't create any request attributes for prefix\n <code>x-amz-lex:</code>.</p>"
}
},
"responseContentType": {
"target": "com.amazonaws.lexruntimev2#NonEmptyString",
"traits": {
"smithy.api#documentation": "<p>The message that Amazon Lex V2 returns in the response can be either text or\n speech based on the <code>responseContentType</code> value.</p>\n <ul>\n <li>\n <p>If the value is <code>text/plain;charset=utf-8</code>, Amazon Lex V2\n returns text in the response.</p>\n </li>\n <li>\n <p>If the value begins with <code>audio/</code>, Amazon Lex V2 returns\n speech in the response. Amazon Lex V2 uses Amazon Polly to generate the speech\n using the configuration that you specified in the\n <code>requestContentType</code> parameter. For example, if you\n specify <code>audio/mpeg</code> as the value, Amazon Lex V2 returns\n speech in the MPEG format.</p>\n </li>\n <li>\n <p>If the value is <code>audio/pcm</code>, the speech returned is\n audio/pcm in 16-bit, little-endian format.</p>\n </li>\n <li>\n <p>The following are the accepted values:</p>\n <ul>\n <li>\n <p>audio/mpeg</p>\n </li>\n <li>\n <p>audio/ogg</p>\n </li>\n <li>\n <p>audio/pcm</p>\n </li>\n <li>\n <p>audio/* (defaults to mpeg)</p>\n </li>\n <li>\n <p>text/plain; charset=utf-8</p>\n </li>\n </ul>\n </li>\n </ul>",
"smithy.api#required": {}
}
},
"sessionState": {
"target": "com.amazonaws.lexruntimev2#SessionState"
},
"welcomeMessages": {
"target": "com.amazonaws.lexruntimev2#Messages",
"traits": {
"smithy.api#documentation": "<p>A list of messages to send to the user.</p>"
}
},
"disablePlayback": {
"target": "com.amazonaws.lexruntimev2#Boolean",
"traits": {
"smithy.api#documentation": "<p>Determines whether Amazon Lex V2 should send audio responses to the client\n application. \n </p>\n <p>Set this field to false when the client is operating in a playback\n mode where audio responses are played to the user. If the client isn't\n operating in playback mode, such as a text chat application, set this\n to true so that Amazon Lex V2 doesn't wait for the prompt to finish playing on\n the client.</p>"
}
},
"eventId": {
"target": "com.amazonaws.lexruntimev2#EventId",
"traits": {
"smithy.api#documentation": "<p>A unique identifier that your application assigns to the event. You\n can use this to identify events in logs.</p>"
}
},
"clientTimestampMillis": {
"target": "com.amazonaws.lexruntimev2#EpochMillis",
"traits": {
"smithy.api#documentation": "<p>A timestamp set by the client of the date and time that the event\n was sent to Amazon Lex V2.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>The initial event sent from the application to Amazon Lex V2 to configure\n the conversation, including session and request attributes and the\n response content type.</p>"
}
},
"com.amazonaws.lexruntimev2#ConfirmationState": {
"type": "string",
"traits": {
"smithy.api#enum": [
{
"value": "Confirmed",
"name": "CONFIRMED"
},
{
"value": "Denied",
"name": "DENIED"
},
{
"value": "None",
"name": "NONE"
}
]
}
},
"com.amazonaws.lexruntimev2#ConflictException": {
"type": "structure",
"members": {
"message": {
"target": "com.amazonaws.lexruntimev2#String",
"traits": {
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#documentation": "<p></p>",
"smithy.api#error": "client",
"smithy.api#httpError": 409
}
},
"com.amazonaws.lexruntimev2#ConversationMode": {
"type": "string",
"traits": {
"smithy.api#enum": [
{
"value": "AUDIO",
"name": "AUDIO"
},
{
"value": "TEXT",
"name": "TEXT"
}
]
}
},
"com.amazonaws.lexruntimev2#DTMFInputEvent": {
"type": "structure",
"members": {
"inputCharacter": {
"target": "com.amazonaws.lexruntimev2#DTMFRegex",
"traits": {
"smithy.api#documentation": "<p>The DTMF character that the user pressed. The allowed characters are\n A - D, 0 - 9, # and *.</p>",
"smithy.api#required": {}
}
},
"eventId": {
"target": "com.amazonaws.lexruntimev2#EventId",
"traits": {
"smithy.api#documentation": "<p>A unique identifier that your application assigns to the event. You\n can use this to identify events in logs.</p>"
}
},
"clientTimestampMillis": {
"target": "com.amazonaws.lexruntimev2#EpochMillis",
"traits": {
"smithy.api#documentation": "<p>A timestamp set by the client of the date and time that the event\n was sent to Amazon Lex V2.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>A DTMF character sent from the client application. DTMF characters\n are typically sent from a phone keypad to represent numbers. For\n example, you can have Amazon Lex V2 process a credit card number input from a\n phone.</p>"
}
},
"com.amazonaws.lexruntimev2#DTMFRegex": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 1
},
"smithy.api#pattern": "^[A-D0-9#*]{1}$",
"smithy.api#sensitive": {}
}
},
"com.amazonaws.lexruntimev2#DeleteSession": {
"type": "operation",
"input": {
"target": "com.amazonaws.lexruntimev2#DeleteSessionRequest"
},
"output": {
"target": "com.amazonaws.lexruntimev2#DeleteSessionResponse"
},
"errors": [
{
"target": "com.amazonaws.lexruntimev2#AccessDeniedException"
},
{
"target": "com.amazonaws.lexruntimev2#ConflictException"
},
{
"target": "com.amazonaws.lexruntimev2#InternalServerException"
},
{
"target": "com.amazonaws.lexruntimev2#ResourceNotFoundException"
},
{
"target": "com.amazonaws.lexruntimev2#ThrottlingException"
},
{
"target": "com.amazonaws.lexruntimev2#ValidationException"
}
],
"traits": {
"smithy.api#documentation": "<p>Removes session information for a specified bot, alias, and user ID. </p>\n <p>You can use this operation to restart a conversation with a bot.\n When you remove a session, the entire history of the session is removed\n so that you can start again.</p>\n <p>You don't need to delete a session. Sessions have a time limit and\n will expire. Set the session time limit when you create the bot. The\n default is 5 minutes, but you can specify anything between 1 minute and\n 24 hours.</p>\n <p>If you specify a bot or alias ID that doesn't exist, you receive a\n <code>BadRequestException.</code>\n </p>\n <p>If the locale doesn't exist in the bot, or if the locale hasn't been\n enables for the alias, you receive a\n <code>BadRequestException</code>.</p>",
"smithy.api#http": {
"method": "DELETE",
"uri": "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}",
"code": 200
}
}
},
"com.amazonaws.lexruntimev2#DeleteSessionRequest": {
"type": "structure",
"members": {
"botId": {
"target": "com.amazonaws.lexruntimev2#BotIdentifier",
"traits": {
"smithy.api#documentation": "<p>The identifier of the bot that contains the session data.</p>",
"smithy.api#httpLabel": {},
"smithy.api#required": {}
}
},
"botAliasId": {
"target": "com.amazonaws.lexruntimev2#BotAliasIdentifier",
"traits": {
"smithy.api#documentation": "<p>The alias identifier in use for the bot that contains the session\n data.</p>",
"smithy.api#httpLabel": {},
"smithy.api#required": {}
}
},
"localeId": {
"target": "com.amazonaws.lexruntimev2#LocaleId",
"traits": {
"smithy.api#documentation": "<p>The locale where the session is in use.</p>",
"smithy.api#httpLabel": {},
"smithy.api#required": {}
}
},
"sessionId": {
"target": "com.amazonaws.lexruntimev2#SessionId",
"traits": {
"smithy.api#documentation": "<p>The identifier of the session to delete.</p>",
"smithy.api#httpLabel": {},
"smithy.api#required": {}
}
}
}
},
"com.amazonaws.lexruntimev2#DeleteSessionResponse": {
"type": "structure",
"members": {
"botId": {
"target": "com.amazonaws.lexruntimev2#BotIdentifier",
"traits": {
"smithy.api#documentation": "<p>The identifier of the bot that contained the session data.</p>"
}
},
"botAliasId": {
"target": "com.amazonaws.lexruntimev2#BotAliasIdentifier",
"traits": {
"smithy.api#documentation": "<p>The alias identifier in use for the bot that contained the session\n data.</p>"
}
},
"localeId": {
"target": "com.amazonaws.lexruntimev2#LocaleId",
"traits": {
"smithy.api#documentation": "<p>The locale where the session was used.</p>"
}
},
"sessionId": {
"target": "com.amazonaws.lexruntimev2#SessionId",
"traits": {
"smithy.api#documentation": "<p>The identifier of the deleted session.</p>"
}
}
}
},
"com.amazonaws.lexruntimev2#DependencyFailedException": {
"type": "structure",
"members": {
"message": {
"target": "com.amazonaws.lexruntimev2#String",
"traits": {
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#documentation": "<p></p>",
"smithy.api#error": "client",
"smithy.api#httpError": 424
}
},
"com.amazonaws.lexruntimev2#DialogAction": {
"type": "structure",
"members": {
"type": {
"target": "com.amazonaws.lexruntimev2#DialogActionType",
"traits": {
"smithy.api#documentation": "<p>The next action that the bot should take in its interaction with the\n user. The possible values are:</p>\n <ul>\n <li>\n <p>\n <code>Close</code> - Indicates that there will not be a\n response from the user. For example, the statement \"Your order\n has been placed\" does not require a response.</p>\n </li>\n <li>\n <p>\n <code>ConfirmIntent</code> - The next action is asking the\n user if the intent is complete and ready to be fulfilled. This is\n a yes/no question such as \"Place the order?\"</p>\n </li>\n <li>\n <p>\n <code>Delegate</code> - The next action is determined by\n Amazon Lex V2.</p>\n </li>\n <li>\n <p>\n <code>ElicitSlot</code> - The next action is to elicit a slot\n value from the user.</p>\n </li>\n </ul>",
"smithy.api#required": {}
}
},
"slotToElicit": {
"target": "com.amazonaws.lexruntimev2#NonEmptyString",
"traits": {
"smithy.api#documentation": "<p>The name of the slot that should be elicited from the user.</p>"
}
},
"slotElicitationStyle": {
"target": "com.amazonaws.lexruntimev2#StyleType",
"traits": {
"smithy.api#documentation": "<p>Configures the slot to use spell-by-letter or spell-by-word style.\n When you use a style on a slot, users can spell out their input to make\n it clear to your bot.</p>\n <ul>\n <li>\n <p>Spell by letter - \"b\" \"o\" \"b\"</p>\n </li>\n <li>\n <p>Spell by word - \"b as in boy\" \"o as in oscar\" \"b as in\n boy\"</p>\n </li>\n </ul>\n <p>For more information, see <a href=\"https://docs.aws.amazon.com/lexv2/latest/dg/using-spelling.html\">\n Using spelling to enter slot values </a>.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>The next action that Amazon Lex V2 should take.</p>"
}
},
"com.amazonaws.lexruntimev2#DialogActionType": {
"type": "string",
"traits": {
"smithy.api#enum": [
{
"value": "Close",
"name": "CLOSE"
},
{
"value": "ConfirmIntent",
"name": "CONFIRM_INTENT"
},
{
"value": "Delegate",
"name": "DELEGATE"
},
{
"value": "ElicitIntent",
"name": "ELICIT_INTENT"
},
{
"value": "ElicitSlot",
"name": "ELICIT_SLOT"
},
{
"value": "None",
"name": "NONE"
}
]
}
},
"com.amazonaws.lexruntimev2#DisconnectionEvent": {
"type": "structure",
"members": {
"eventId": {
"target": "com.amazonaws.lexruntimev2#EventId",
"traits": {
"smithy.api#documentation": "<p>A unique identifier that your application assigns to the event. You\n can use this to identify events in logs.</p>"
}
},
"clientTimestampMillis": {
"target": "com.amazonaws.lexruntimev2#EpochMillis",
"traits": {
"smithy.api#documentation": "<p>A timestamp set by the client of the date and time that the event\n was sent to Amazon Lex V2.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>A notification from the client that it is disconnecting from Amazon Lex V2.\n Sending a <code>DisconnectionEvent</code> event is optional, but can\n help identify a conversation in logs.</p>"
}
},
"com.amazonaws.lexruntimev2#Double": {
"type": "double"
},
"com.amazonaws.lexruntimev2#EpochMillis": {
"type": "long"
},
"com.amazonaws.lexruntimev2#EventId": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 2,
"max": 100
},
"smithy.api#pattern": "^[0-9a-zA-Z._:-]+$"
}
},
"com.amazonaws.lexruntimev2#GetSession": {
"type": "operation",
"input": {
"target": "com.amazonaws.lexruntimev2#GetSessionRequest"
},
"output": {
"target": "com.amazonaws.lexruntimev2#GetSessionResponse"
},
"errors": [
{
"target": "com.amazonaws.lexruntimev2#AccessDeniedException"
},
{
"target": "com.amazonaws.lexruntimev2#InternalServerException"
},
{
"target": "com.amazonaws.lexruntimev2#ResourceNotFoundException"
},
{
"target": "com.amazonaws.lexruntimev2#ThrottlingException"
},
{
"target": "com.amazonaws.lexruntimev2#ValidationException"
}
],
"traits": {
"smithy.api#documentation": "<p>Returns session information for a specified bot, alias, and\n user.</p>\n <p>For example, you can use this operation to retrieve session\n information for a user that has left a long-running session in\n use.</p>\n <p>If the bot, alias, or session identifier doesn't exist, Amazon Lex V2\n returns a <code>BadRequestException</code>. If the locale doesn't exist\n or is not enabled for the alias, you receive a\n <code>BadRequestException</code>.</p>",
"smithy.api#http": {
"method": "GET",
"uri": "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}",
"code": 200
}
}
},
"com.amazonaws.lexruntimev2#GetSessionRequest": {
"type": "structure",
"members": {
"botId": {
"target": "com.amazonaws.lexruntimev2#BotIdentifier",
"traits": {
"smithy.api#documentation": "<p>The identifier of the bot that contains the session data.</p>",
"smithy.api#httpLabel": {},
"smithy.api#required": {}
}
},
"botAliasId": {
"target": "com.amazonaws.lexruntimev2#BotAliasIdentifier",
"traits": {
"smithy.api#documentation": "<p>The alias identifier in use for the bot that contains the session\n data.</p>",
"smithy.api#httpLabel": {},
"smithy.api#required": {}
}
},
"localeId": {
"target": "com.amazonaws.lexruntimev2#LocaleId",
"traits": {
"smithy.api#documentation": "<p>The locale where the session is in use.</p>",
"smithy.api#httpLabel": {},
"smithy.api#required": {}
}
},
"sessionId": {
"target": "com.amazonaws.lexruntimev2#SessionId",
"traits": {
"smithy.api#documentation": "<p>The identifier of the session to return.</p>",
"smithy.api#httpLabel": {},
"smithy.api#required": {}
}
}
}
},
"com.amazonaws.lexruntimev2#GetSessionResponse": {
"type": "structure",
"members": {
"sessionId": {
"target": "com.amazonaws.lexruntimev2#NonEmptyString",
"traits": {
"smithy.api#documentation": "<p>The identifier of the returned session.</p>"
}
},
"messages": {
"target": "com.amazonaws.lexruntimev2#Messages",
"traits": {
"smithy.api#documentation": "<p>A list of messages that were last sent to the user. The messages are\n ordered based on the order that your returned the messages from your\n Lambda function or the order that messages are defined in the bot.\n </p>"
}
},
"interpretations": {
"target": "com.amazonaws.lexruntimev2#Interpretations",
"traits": {
"smithy.api#documentation": "<p>A list of intents that Amazon Lex V2 determined might satisfy the user's\n utterance. </p>\n <p>Each interpretation includes the intent, a score that indicates how\n confident Amazon Lex V2 is that the interpretation is the correct one, and an\n optional sentiment response that indicates the sentiment expressed in\n the utterance.</p>"
}
},
"sessionState": {
"target": "com.amazonaws.lexruntimev2#SessionState",
"traits": {
"smithy.api#documentation": "<p>Represents the current state of the dialog between the user and the\n bot.</p>\n <p>You can use this to determine the progress of the conversation and\n what the next action might be.</p>"
}
}
}
},
"com.amazonaws.lexruntimev2#HeartbeatEvent": {
"type": "structure",
"members": {
"eventId": {
"target": "com.amazonaws.lexruntimev2#EventId",
"traits": {
"smithy.api#documentation": "<p>A unique identifier of the event sent by Amazon Lex V2. The identifier is in\n the form <code>RESPONSE-N</code>, where N is a number starting with one\n and incremented for each event sent by Amazon Lex V2 in the current\n session.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Event that Amazon Lex V2 sends to indicate that the stream is still open\n between the client application and Amazon Lex V2 </p>"
}
},
"com.amazonaws.lexruntimev2#ImageResponseCard": {
"type": "structure",
"members": {
"title": {
"target": "com.amazonaws.lexruntimev2#AttachmentTitle",
"traits": {
"smithy.api#documentation": "<p>The title to display on the response card. The format of the title\n is determined by the platform displaying the response card.</p>",
"smithy.api#required": {}
}
},
"subtitle": {
"target": "com.amazonaws.lexruntimev2#AttachmentTitle",
"traits": {
"smithy.api#documentation": "<p>The subtitle to display on the response card. The format of the\n subtitle is determined by the platform displaying the response\n card.</p>"
}
},
"imageUrl": {
"target": "com.amazonaws.lexruntimev2#AttachmentUrl",
"traits": {
"smithy.api#documentation": "<p>The URL of an image to display on the response card. The image URL\n must be publicly available so that the platform displaying the response\n card has access to the image.</p>"
}
},
"buttons": {
"target": "com.amazonaws.lexruntimev2#ButtonsList",
"traits": {
"smithy.api#documentation": "<p>A list of buttons that should be displayed on the response card. The\n arrangement of the buttons is determined by the platform that displays\n the button.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>A card that is shown to the user by a messaging platform. You define\n the contents of the card, the card is displayed by the platform. </p>\n <p>When you use a response card, the response from the user is\n constrained to the text associated with a button on the card.</p>"
}
},
"com.amazonaws.lexruntimev2#InputMode": {
"type": "string",
"traits": {
"smithy.api#enum": [
{
"value": "Text",
"name": "TEXT"
},
{
"value": "Speech",
"name": "SPEECH"
},
{
"value": "DTMF",
"name": "DTMF"
}
]
}
},
"com.amazonaws.lexruntimev2#Intent": {
"type": "structure",
"members": {
"name": {
"target": "com.amazonaws.lexruntimev2#NonEmptyString",
"traits": {
"smithy.api#documentation": "<p>The name of the intent.</p>",
"smithy.api#required": {}
}
},
"slots": {
"target": "com.amazonaws.lexruntimev2#Slots",
"traits": {
"smithy.api#documentation": "<p>A map of all of the slots for the intent. The name of the slot maps\n to the value of the slot. If a slot has not been filled, the value is\n null.</p>"
}
},
"state": {
"target": "com.amazonaws.lexruntimev2#IntentState",
"traits": {
"smithy.api#documentation": "<p>Contains fulfillment information for the intent. </p>"
}
},
"confirmationState": {
"target": "com.amazonaws.lexruntimev2#ConfirmationState",
"traits": {
"smithy.api#documentation": "<p>Contains information about whether fulfillment of the intent has\n been confirmed.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>The current intent that Amazon Lex V2 is attempting to fulfill.</p>"
}
},
"com.amazonaws.lexruntimev2#IntentResultEvent": {
"type": "structure",
"members": {
"inputMode": {
"target": "com.amazonaws.lexruntimev2#InputMode",
"traits": {
"smithy.api#documentation": "<p>Indicates whether the input to the operation was text or\n speech.</p>"
}
},
"interpretations": {
"target": "com.amazonaws.lexruntimev2#Interpretations",
"traits": {
"smithy.api#documentation": "<p>A list of intents that Amazon Lex V2 determined might satisfy the user's\n utterance.</p>\n\n <p>Each interpretation includes the intent, a score that indicates how\n confident Amazon Lex V2 is that the interpretation is the correct one, and an\n optional sentiment response that indicates the sentiment expressed in\n the utterance.</p>"
}
},
"sessionState": {
"target": "com.amazonaws.lexruntimev2#SessionState"
},
"requestAttributes": {
"target": "com.amazonaws.lexruntimev2#StringMap",
"traits": {
"smithy.api#documentation": "<p>The attributes sent in the request.</p>"
}
},
"sessionId": {
"target": "com.amazonaws.lexruntimev2#SessionId",
"traits": {
"smithy.api#documentation": "<p>The identifier of the session in use.</p>"
}
},
"eventId": {
"target": "com.amazonaws.lexruntimev2#EventId",
"traits": {
"smithy.api#documentation": "<p>A unique identifier of the event sent by Amazon Lex V2. The identifier is in\n the form <code>RESPONSE-N</code>, where N is a number starting with one\n and incremented for each event sent by Amazon Lex V2 in the current\n session.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Contains the current state of the conversation between the client\n application and Amazon Lex V2.</p>"
}
},
"com.amazonaws.lexruntimev2#IntentState": {
"type": "string",
"traits": {
"smithy.api#enum": [
{
"value": "Failed",
"name": "FAILED"
},
{
"value": "Fulfilled",
"name": "FULFILLED"
},
{
"value": "InProgress",
"name": "IN_PROGRESS"
},
{
"value": "ReadyForFulfillment",
"name": "READY_FOR_FULFILLMENT"
},
{
"value": "Waiting",
"name": "WAITING"
},
{
"value": "FulfillmentInProgress",
"name": "FULFILLMENT_IN_PROGRESS"
}
]
}