aws-sdk-lexmodelbuildingservice 1.0.0.rc5 → 1.0.0.rc6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-lexmodelbuildingservice.rb +1 -1
- data/lib/aws-sdk-lexmodelbuildingservice/client.rb +709 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3b856d14f0bdf7b77a1acbf3c38019b3b246964
|
4
|
+
data.tar.gz: f0db511f7fc3bdbfc0d8b603aad993f12e4cfd21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cf7801cd9c2dac3387a0849d938f5dbd57537265f84e31e932e27f2217569a3fd91190b2b307def3d878f899f3799a3c72564040224365379a5560053f786d3
|
7
|
+
data.tar.gz: 2c494e4f0d74a0eba426c44e91eac4e713f83bf34cad52b897467a715dabe6817e709d722892b50522a3d9ce159914f3a306c060948a650692a70ccaeab56cac
|
@@ -766,6 +766,61 @@ module Aws::LexModelBuildingService
|
|
766
766
|
# * {Types::GetBotResponse#locale #locale} => String
|
767
767
|
# * {Types::GetBotResponse#child_directed #child_directed} => Boolean
|
768
768
|
#
|
769
|
+
#
|
770
|
+
# @example Example: To get information about a bot
|
771
|
+
#
|
772
|
+
# # This example shows how to get configuration information for a bot.
|
773
|
+
#
|
774
|
+
# resp = client.get_bot({
|
775
|
+
# name: "DocOrderPizza",
|
776
|
+
# version_or_alias: "$LATEST",
|
777
|
+
# })
|
778
|
+
#
|
779
|
+
# resp.to_h outputs the following:
|
780
|
+
# {
|
781
|
+
# version: "$LATEST",
|
782
|
+
# name: "DocOrderPizzaBot",
|
783
|
+
# abort_statement: {
|
784
|
+
# messages: [
|
785
|
+
# {
|
786
|
+
# content: "I don't understand. Can you try again?",
|
787
|
+
# content_type: "PlainText",
|
788
|
+
# },
|
789
|
+
# {
|
790
|
+
# content: "I'm sorry, I don't understand.",
|
791
|
+
# content_type: "PlainText",
|
792
|
+
# },
|
793
|
+
# ],
|
794
|
+
# },
|
795
|
+
# checksum: "20172ee3-fa06-49b2-bbc5-667c090303e9",
|
796
|
+
# child_directed: true,
|
797
|
+
# clarification_prompt: {
|
798
|
+
# max_attempts: 1,
|
799
|
+
# messages: [
|
800
|
+
# {
|
801
|
+
# content: "I'm sorry, I didn't hear that. Can you repeate what you just said?",
|
802
|
+
# content_type: "PlainText",
|
803
|
+
# },
|
804
|
+
# {
|
805
|
+
# content: "Can you say that again?",
|
806
|
+
# content_type: "PlainText",
|
807
|
+
# },
|
808
|
+
# ],
|
809
|
+
# },
|
810
|
+
# created_date: Time.parse(1494360160.133),
|
811
|
+
# description: "Orders a pizza from a local pizzeria.",
|
812
|
+
# idle_session_ttl_in_seconds: 300,
|
813
|
+
# intents: [
|
814
|
+
# {
|
815
|
+
# intent_name: "DocOrderPizza",
|
816
|
+
# intent_version: "$LATEST",
|
817
|
+
# },
|
818
|
+
# ],
|
819
|
+
# last_updated_date: Time.parse(1494360160.133),
|
820
|
+
# locale: "en-US",
|
821
|
+
# status: "NOT_BUILT",
|
822
|
+
# }
|
823
|
+
#
|
769
824
|
# @example Request syntax with placeholder values
|
770
825
|
#
|
771
826
|
# resp = client.get_bot({
|
@@ -1127,6 +1182,30 @@ module Aws::LexModelBuildingService
|
|
1127
1182
|
# * {Types::GetBotsResponse#bots #bots} => Array<Types::BotMetadata>
|
1128
1183
|
# * {Types::GetBotsResponse#next_token #next_token} => String
|
1129
1184
|
#
|
1185
|
+
#
|
1186
|
+
# @example Example: To get a list of bots
|
1187
|
+
#
|
1188
|
+
# # This example shows how to get a list of all of the bots in your account.
|
1189
|
+
#
|
1190
|
+
# resp = client.get_bots({
|
1191
|
+
# max_results: 5,
|
1192
|
+
# next_token: "",
|
1193
|
+
# })
|
1194
|
+
#
|
1195
|
+
# resp.to_h outputs the following:
|
1196
|
+
# {
|
1197
|
+
# bots: [
|
1198
|
+
# {
|
1199
|
+
# version: "$LATEST",
|
1200
|
+
# name: "DocOrderPizzaBot",
|
1201
|
+
# created_date: Time.parse(1494360160.133),
|
1202
|
+
# description: "Orders a pizza from a local pizzeria.",
|
1203
|
+
# last_updated_date: Time.parse(1494360160.133),
|
1204
|
+
# status: "NOT_BUILT",
|
1205
|
+
# },
|
1206
|
+
# ],
|
1207
|
+
# }
|
1208
|
+
#
|
1130
1209
|
# @example Request syntax with placeholder values
|
1131
1210
|
#
|
1132
1211
|
# resp = client.get_bots({
|
@@ -1349,6 +1428,151 @@ module Aws::LexModelBuildingService
|
|
1349
1428
|
# * {Types::GetIntentResponse#version #version} => String
|
1350
1429
|
# * {Types::GetIntentResponse#checksum #checksum} => String
|
1351
1430
|
#
|
1431
|
+
#
|
1432
|
+
# @example Example: To get a information about an intent
|
1433
|
+
#
|
1434
|
+
# # This example shows how to get information about an intent.
|
1435
|
+
#
|
1436
|
+
# resp = client.get_intent({
|
1437
|
+
# version: "$LATEST",
|
1438
|
+
# name: "DocOrderPizza",
|
1439
|
+
# })
|
1440
|
+
#
|
1441
|
+
# resp.to_h outputs the following:
|
1442
|
+
# {
|
1443
|
+
# version: "$LATEST",
|
1444
|
+
# name: "DocOrderPizza",
|
1445
|
+
# checksum: "ca9bc13d-afc8-4706-bbaf-091f7a5935d6",
|
1446
|
+
# conclusion_statement: {
|
1447
|
+
# messages: [
|
1448
|
+
# {
|
1449
|
+
# content: "All right, I ordered you a {Crust} crust {Type} pizza with {Sauce} sauce.",
|
1450
|
+
# content_type: "PlainText",
|
1451
|
+
# },
|
1452
|
+
# {
|
1453
|
+
# content: "OK, your {Crust} crust {Type} pizza with {Sauce} sauce is on the way.",
|
1454
|
+
# content_type: "PlainText",
|
1455
|
+
# },
|
1456
|
+
# ],
|
1457
|
+
# response_card: "foo",
|
1458
|
+
# },
|
1459
|
+
# confirmation_prompt: {
|
1460
|
+
# max_attempts: 1,
|
1461
|
+
# messages: [
|
1462
|
+
# {
|
1463
|
+
# content: "Should I order your {Crust} crust {Type} pizza with {Sauce} sauce?",
|
1464
|
+
# content_type: "PlainText",
|
1465
|
+
# },
|
1466
|
+
# ],
|
1467
|
+
# },
|
1468
|
+
# created_date: Time.parse(1494359783.453),
|
1469
|
+
# description: "Order a pizza from a local pizzeria.",
|
1470
|
+
# fulfillment_activity: {
|
1471
|
+
# type: "ReturnIntent",
|
1472
|
+
# },
|
1473
|
+
# last_updated_date: Time.parse(1494359783.453),
|
1474
|
+
# rejection_statement: {
|
1475
|
+
# messages: [
|
1476
|
+
# {
|
1477
|
+
# content: "Ok, I'll cancel your order.",
|
1478
|
+
# content_type: "PlainText",
|
1479
|
+
# },
|
1480
|
+
# {
|
1481
|
+
# content: "I cancelled your order.",
|
1482
|
+
# content_type: "PlainText",
|
1483
|
+
# },
|
1484
|
+
# ],
|
1485
|
+
# },
|
1486
|
+
# sample_utterances: [
|
1487
|
+
# "Order me a pizza.",
|
1488
|
+
# "Order me a {Type} pizza.",
|
1489
|
+
# "I want a {Crust} crust {Type} pizza",
|
1490
|
+
# "I want a {Crust} crust {Type} pizza with {Sauce} sauce.",
|
1491
|
+
# ],
|
1492
|
+
# slots: [
|
1493
|
+
# {
|
1494
|
+
# name: "Type",
|
1495
|
+
# description: "The type of pizza to order.",
|
1496
|
+
# priority: 1,
|
1497
|
+
# sample_utterances: [
|
1498
|
+
# "Get me a {Type} pizza.",
|
1499
|
+
# "A {Type} pizza please.",
|
1500
|
+
# "I'd like a {Type} pizza.",
|
1501
|
+
# ],
|
1502
|
+
# slot_constraint: "Required",
|
1503
|
+
# slot_type: "DocPizzaType",
|
1504
|
+
# slot_type_version: "$LATEST",
|
1505
|
+
# value_elicitation_prompt: {
|
1506
|
+
# max_attempts: 1,
|
1507
|
+
# messages: [
|
1508
|
+
# {
|
1509
|
+
# content: "What type of pizza would you like?",
|
1510
|
+
# content_type: "PlainText",
|
1511
|
+
# },
|
1512
|
+
# {
|
1513
|
+
# content: "Vegie or cheese pizza?",
|
1514
|
+
# content_type: "PlainText",
|
1515
|
+
# },
|
1516
|
+
# {
|
1517
|
+
# content: "I can get you a vegie or a cheese pizza.",
|
1518
|
+
# content_type: "PlainText",
|
1519
|
+
# },
|
1520
|
+
# ],
|
1521
|
+
# },
|
1522
|
+
# },
|
1523
|
+
# {
|
1524
|
+
# name: "Crust",
|
1525
|
+
# description: "The type of pizza crust to order.",
|
1526
|
+
# priority: 2,
|
1527
|
+
# sample_utterances: [
|
1528
|
+
# "Make it a {Crust} crust.",
|
1529
|
+
# "I'd like a {Crust} crust.",
|
1530
|
+
# ],
|
1531
|
+
# slot_constraint: "Required",
|
1532
|
+
# slot_type: "DocPizzaCrustType",
|
1533
|
+
# slot_type_version: "$LATEST",
|
1534
|
+
# value_elicitation_prompt: {
|
1535
|
+
# max_attempts: 1,
|
1536
|
+
# messages: [
|
1537
|
+
# {
|
1538
|
+
# content: "What type of crust would you like?",
|
1539
|
+
# content_type: "PlainText",
|
1540
|
+
# },
|
1541
|
+
# {
|
1542
|
+
# content: "Thick or thin crust?",
|
1543
|
+
# content_type: "PlainText",
|
1544
|
+
# },
|
1545
|
+
# ],
|
1546
|
+
# },
|
1547
|
+
# },
|
1548
|
+
# {
|
1549
|
+
# name: "Sauce",
|
1550
|
+
# description: "The type of sauce to use on the pizza.",
|
1551
|
+
# priority: 3,
|
1552
|
+
# sample_utterances: [
|
1553
|
+
# "Make it {Sauce} sauce.",
|
1554
|
+
# "I'd like {Sauce} sauce.",
|
1555
|
+
# ],
|
1556
|
+
# slot_constraint: "Required",
|
1557
|
+
# slot_type: "DocPizzaSauceType",
|
1558
|
+
# slot_type_version: "$LATEST",
|
1559
|
+
# value_elicitation_prompt: {
|
1560
|
+
# max_attempts: 1,
|
1561
|
+
# messages: [
|
1562
|
+
# {
|
1563
|
+
# content: "White or red sauce?",
|
1564
|
+
# content_type: "PlainText",
|
1565
|
+
# },
|
1566
|
+
# {
|
1567
|
+
# content: "Garlic or tomato sauce?",
|
1568
|
+
# content_type: "PlainText",
|
1569
|
+
# },
|
1570
|
+
# ],
|
1571
|
+
# },
|
1572
|
+
# },
|
1573
|
+
# ],
|
1574
|
+
# }
|
1575
|
+
#
|
1352
1576
|
# @example Request syntax with placeholder values
|
1353
1577
|
#
|
1354
1578
|
# resp = client.get_intent({
|
@@ -1508,6 +1732,29 @@ module Aws::LexModelBuildingService
|
|
1508
1732
|
# * {Types::GetIntentsResponse#intents #intents} => Array<Types::IntentMetadata>
|
1509
1733
|
# * {Types::GetIntentsResponse#next_token #next_token} => String
|
1510
1734
|
#
|
1735
|
+
#
|
1736
|
+
# @example Example: To get a list of intents
|
1737
|
+
#
|
1738
|
+
# # This example shows how to get a list of all of the intents in your account.
|
1739
|
+
#
|
1740
|
+
# resp = client.get_intents({
|
1741
|
+
# max_results: 10,
|
1742
|
+
# next_token: "",
|
1743
|
+
# })
|
1744
|
+
#
|
1745
|
+
# resp.to_h outputs the following:
|
1746
|
+
# {
|
1747
|
+
# intents: [
|
1748
|
+
# {
|
1749
|
+
# version: "$LATEST",
|
1750
|
+
# name: "DocOrderPizza",
|
1751
|
+
# created_date: Time.parse(1494359783.453),
|
1752
|
+
# description: "Order a pizza from a local pizzeria.",
|
1753
|
+
# last_updated_date: Time.parse(1494359783.453),
|
1754
|
+
# },
|
1755
|
+
# ],
|
1756
|
+
# }
|
1757
|
+
#
|
1511
1758
|
# @example Request syntax with placeholder values
|
1512
1759
|
#
|
1513
1760
|
# resp = client.get_intents({
|
@@ -1557,6 +1804,34 @@ module Aws::LexModelBuildingService
|
|
1557
1804
|
# * {Types::GetSlotTypeResponse#version #version} => String
|
1558
1805
|
# * {Types::GetSlotTypeResponse#checksum #checksum} => String
|
1559
1806
|
#
|
1807
|
+
#
|
1808
|
+
# @example Example: To get information about a slot type
|
1809
|
+
#
|
1810
|
+
# # This example shows how to get information about a slot type.
|
1811
|
+
#
|
1812
|
+
# resp = client.get_slot_type({
|
1813
|
+
# version: "$LATEST",
|
1814
|
+
# name: "DocPizzaCrustType",
|
1815
|
+
# })
|
1816
|
+
#
|
1817
|
+
# resp.to_h outputs the following:
|
1818
|
+
# {
|
1819
|
+
# version: "$LATEST",
|
1820
|
+
# name: "DocPizzaCrustType",
|
1821
|
+
# checksum: "210b3d5a-90a3-4b22-ac7e-f50c2c71095f",
|
1822
|
+
# created_date: Time.parse(1494359274.403),
|
1823
|
+
# description: "Available crust types",
|
1824
|
+
# enumeration_values: [
|
1825
|
+
# {
|
1826
|
+
# value: "thick",
|
1827
|
+
# },
|
1828
|
+
# {
|
1829
|
+
# value: "thin",
|
1830
|
+
# },
|
1831
|
+
# ],
|
1832
|
+
# last_updated_date: Time.parse(1494359274.403),
|
1833
|
+
# }
|
1834
|
+
#
|
1560
1835
|
# @example Request syntax with placeholder values
|
1561
1836
|
#
|
1562
1837
|
# resp = client.get_slot_type({
|
@@ -1673,6 +1948,43 @@ module Aws::LexModelBuildingService
|
|
1673
1948
|
# * {Types::GetSlotTypesResponse#slot_types #slot_types} => Array<Types::SlotTypeMetadata>
|
1674
1949
|
# * {Types::GetSlotTypesResponse#next_token #next_token} => String
|
1675
1950
|
#
|
1951
|
+
#
|
1952
|
+
# @example Example: To get a list of slot types
|
1953
|
+
#
|
1954
|
+
# # This example shows how to get a list of all of the slot types in your account.
|
1955
|
+
#
|
1956
|
+
# resp = client.get_slot_types({
|
1957
|
+
# max_results: 10,
|
1958
|
+
# next_token: "",
|
1959
|
+
# })
|
1960
|
+
#
|
1961
|
+
# resp.to_h outputs the following:
|
1962
|
+
# {
|
1963
|
+
# slot_types: [
|
1964
|
+
# {
|
1965
|
+
# version: "$LATEST",
|
1966
|
+
# name: "DocPizzaCrustType",
|
1967
|
+
# created_date: Time.parse(1494359274.403),
|
1968
|
+
# description: "Available crust types",
|
1969
|
+
# last_updated_date: Time.parse(1494359274.403),
|
1970
|
+
# },
|
1971
|
+
# {
|
1972
|
+
# version: "$LATEST",
|
1973
|
+
# name: "DocPizzaSauceType",
|
1974
|
+
# created_date: Time.parse(1494356442.23),
|
1975
|
+
# description: "Available pizza sauces",
|
1976
|
+
# last_updated_date: Time.parse(1494356442.23),
|
1977
|
+
# },
|
1978
|
+
# {
|
1979
|
+
# version: "$LATEST",
|
1980
|
+
# name: "DocPizzaType",
|
1981
|
+
# created_date: Time.parse(1494359198.656),
|
1982
|
+
# description: "Available pizzas",
|
1983
|
+
# last_updated_date: Time.parse(1494359198.656),
|
1984
|
+
# },
|
1985
|
+
# ],
|
1986
|
+
# }
|
1987
|
+
#
|
1676
1988
|
# @example Request syntax with placeholder values
|
1677
1989
|
#
|
1678
1990
|
# resp = client.get_slot_types({
|
@@ -1930,6 +2242,96 @@ module Aws::LexModelBuildingService
|
|
1930
2242
|
# * {Types::PutBotResponse#locale #locale} => String
|
1931
2243
|
# * {Types::PutBotResponse#child_directed #child_directed} => Boolean
|
1932
2244
|
#
|
2245
|
+
#
|
2246
|
+
# @example Example: To create a bot
|
2247
|
+
#
|
2248
|
+
# # This example shows how to create a bot for ordering pizzas.
|
2249
|
+
#
|
2250
|
+
# resp = client.put_bot({
|
2251
|
+
# name: "DocOrderPizzaBot",
|
2252
|
+
# abort_statement: {
|
2253
|
+
# messages: [
|
2254
|
+
# {
|
2255
|
+
# content: "I don't understand. Can you try again?",
|
2256
|
+
# content_type: "PlainText",
|
2257
|
+
# },
|
2258
|
+
# {
|
2259
|
+
# content: "I'm sorry, I don't understand.",
|
2260
|
+
# content_type: "PlainText",
|
2261
|
+
# },
|
2262
|
+
# ],
|
2263
|
+
# },
|
2264
|
+
# child_directed: true,
|
2265
|
+
# clarification_prompt: {
|
2266
|
+
# max_attempts: 1,
|
2267
|
+
# messages: [
|
2268
|
+
# {
|
2269
|
+
# content: "I'm sorry, I didn't hear that. Can you repeate what you just said?",
|
2270
|
+
# content_type: "PlainText",
|
2271
|
+
# },
|
2272
|
+
# {
|
2273
|
+
# content: "Can you say that again?",
|
2274
|
+
# content_type: "PlainText",
|
2275
|
+
# },
|
2276
|
+
# ],
|
2277
|
+
# },
|
2278
|
+
# description: "Orders a pizza from a local pizzeria.",
|
2279
|
+
# idle_session_ttl_in_seconds: 300,
|
2280
|
+
# intents: [
|
2281
|
+
# {
|
2282
|
+
# intent_name: "DocOrderPizza",
|
2283
|
+
# intent_version: "$LATEST",
|
2284
|
+
# },
|
2285
|
+
# ],
|
2286
|
+
# locale: "en-US",
|
2287
|
+
# process_behavior: "SAVE",
|
2288
|
+
# })
|
2289
|
+
#
|
2290
|
+
# resp.to_h outputs the following:
|
2291
|
+
# {
|
2292
|
+
# version: "$LATEST",
|
2293
|
+
# name: "DocOrderPizzaBot",
|
2294
|
+
# abort_statement: {
|
2295
|
+
# messages: [
|
2296
|
+
# {
|
2297
|
+
# content: "I don't understand. Can you try again?",
|
2298
|
+
# content_type: "PlainText",
|
2299
|
+
# },
|
2300
|
+
# {
|
2301
|
+
# content: "I'm sorry, I don't understand.",
|
2302
|
+
# content_type: "PlainText",
|
2303
|
+
# },
|
2304
|
+
# ],
|
2305
|
+
# },
|
2306
|
+
# checksum: "20172ee3-fa06-49b2-bbc5-667c090303e9",
|
2307
|
+
# child_directed: true,
|
2308
|
+
# clarification_prompt: {
|
2309
|
+
# max_attempts: 1,
|
2310
|
+
# messages: [
|
2311
|
+
# {
|
2312
|
+
# content: "I'm sorry, I didn't hear that. Can you repeate what you just said?",
|
2313
|
+
# content_type: "PlainText",
|
2314
|
+
# },
|
2315
|
+
# {
|
2316
|
+
# content: "Can you say that again?",
|
2317
|
+
# content_type: "PlainText",
|
2318
|
+
# },
|
2319
|
+
# ],
|
2320
|
+
# },
|
2321
|
+
# created_date: Time.parse(1494360160.133),
|
2322
|
+
# description: "Orders a pizza from a local pizzeria.",
|
2323
|
+
# idle_session_ttl_in_seconds: 300,
|
2324
|
+
# intents: [
|
2325
|
+
# {
|
2326
|
+
# intent_name: "DocOrderPizza",
|
2327
|
+
# intent_version: "$LATEST",
|
2328
|
+
# },
|
2329
|
+
# ],
|
2330
|
+
# last_updated_date: Time.parse(1494360160.133),
|
2331
|
+
# locale: "en-US",
|
2332
|
+
# status: "NOT_BUILT",
|
2333
|
+
# }
|
2334
|
+
#
|
1933
2335
|
# @example Request syntax with placeholder values
|
1934
2336
|
#
|
1935
2337
|
# resp = client.put_bot({
|
@@ -2270,6 +2672,276 @@ module Aws::LexModelBuildingService
|
|
2270
2672
|
# * {Types::PutIntentResponse#version #version} => String
|
2271
2673
|
# * {Types::PutIntentResponse#checksum #checksum} => String
|
2272
2674
|
#
|
2675
|
+
#
|
2676
|
+
# @example Example: To create an intent
|
2677
|
+
#
|
2678
|
+
# # This example shows how to create an intent for ordering pizzas.
|
2679
|
+
#
|
2680
|
+
# resp = client.put_intent({
|
2681
|
+
# name: "DocOrderPizza",
|
2682
|
+
# conclusion_statement: {
|
2683
|
+
# messages: [
|
2684
|
+
# {
|
2685
|
+
# content: "All right, I ordered you a {Crust} crust {Type} pizza with {Sauce} sauce.",
|
2686
|
+
# content_type: "PlainText",
|
2687
|
+
# },
|
2688
|
+
# {
|
2689
|
+
# content: "OK, your {Crust} crust {Type} pizza with {Sauce} sauce is on the way.",
|
2690
|
+
# content_type: "PlainText",
|
2691
|
+
# },
|
2692
|
+
# ],
|
2693
|
+
# response_card: "foo",
|
2694
|
+
# },
|
2695
|
+
# confirmation_prompt: {
|
2696
|
+
# max_attempts: 1,
|
2697
|
+
# messages: [
|
2698
|
+
# {
|
2699
|
+
# content: "Should I order your {Crust} crust {Type} pizza with {Sauce} sauce?",
|
2700
|
+
# content_type: "PlainText",
|
2701
|
+
# },
|
2702
|
+
# ],
|
2703
|
+
# },
|
2704
|
+
# description: "Order a pizza from a local pizzeria.",
|
2705
|
+
# fulfillment_activity: {
|
2706
|
+
# type: "ReturnIntent",
|
2707
|
+
# },
|
2708
|
+
# rejection_statement: {
|
2709
|
+
# messages: [
|
2710
|
+
# {
|
2711
|
+
# content: "Ok, I'll cancel your order.",
|
2712
|
+
# content_type: "PlainText",
|
2713
|
+
# },
|
2714
|
+
# {
|
2715
|
+
# content: "I cancelled your order.",
|
2716
|
+
# content_type: "PlainText",
|
2717
|
+
# },
|
2718
|
+
# ],
|
2719
|
+
# },
|
2720
|
+
# sample_utterances: [
|
2721
|
+
# "Order me a pizza.",
|
2722
|
+
# "Order me a {Type} pizza.",
|
2723
|
+
# "I want a {Crust} crust {Type} pizza",
|
2724
|
+
# "I want a {Crust} crust {Type} pizza with {Sauce} sauce.",
|
2725
|
+
# ],
|
2726
|
+
# slots: [
|
2727
|
+
# {
|
2728
|
+
# name: "Type",
|
2729
|
+
# description: "The type of pizza to order.",
|
2730
|
+
# priority: 1,
|
2731
|
+
# sample_utterances: [
|
2732
|
+
# "Get me a {Type} pizza.",
|
2733
|
+
# "A {Type} pizza please.",
|
2734
|
+
# "I'd like a {Type} pizza.",
|
2735
|
+
# ],
|
2736
|
+
# slot_constraint: "Required",
|
2737
|
+
# slot_type: "DocPizzaType",
|
2738
|
+
# slot_type_version: "$LATEST",
|
2739
|
+
# value_elicitation_prompt: {
|
2740
|
+
# max_attempts: 1,
|
2741
|
+
# messages: [
|
2742
|
+
# {
|
2743
|
+
# content: "What type of pizza would you like?",
|
2744
|
+
# content_type: "PlainText",
|
2745
|
+
# },
|
2746
|
+
# {
|
2747
|
+
# content: "Vegie or cheese pizza?",
|
2748
|
+
# content_type: "PlainText",
|
2749
|
+
# },
|
2750
|
+
# {
|
2751
|
+
# content: "I can get you a vegie or a cheese pizza.",
|
2752
|
+
# content_type: "PlainText",
|
2753
|
+
# },
|
2754
|
+
# ],
|
2755
|
+
# },
|
2756
|
+
# },
|
2757
|
+
# {
|
2758
|
+
# name: "Crust",
|
2759
|
+
# description: "The type of pizza crust to order.",
|
2760
|
+
# priority: 2,
|
2761
|
+
# sample_utterances: [
|
2762
|
+
# "Make it a {Crust} crust.",
|
2763
|
+
# "I'd like a {Crust} crust.",
|
2764
|
+
# ],
|
2765
|
+
# slot_constraint: "Required",
|
2766
|
+
# slot_type: "DocPizzaCrustType",
|
2767
|
+
# slot_type_version: "$LATEST",
|
2768
|
+
# value_elicitation_prompt: {
|
2769
|
+
# max_attempts: 1,
|
2770
|
+
# messages: [
|
2771
|
+
# {
|
2772
|
+
# content: "What type of crust would you like?",
|
2773
|
+
# content_type: "PlainText",
|
2774
|
+
# },
|
2775
|
+
# {
|
2776
|
+
# content: "Thick or thin crust?",
|
2777
|
+
# content_type: "PlainText",
|
2778
|
+
# },
|
2779
|
+
# ],
|
2780
|
+
# },
|
2781
|
+
# },
|
2782
|
+
# {
|
2783
|
+
# name: "Sauce",
|
2784
|
+
# description: "The type of sauce to use on the pizza.",
|
2785
|
+
# priority: 3,
|
2786
|
+
# sample_utterances: [
|
2787
|
+
# "Make it {Sauce} sauce.",
|
2788
|
+
# "I'd like {Sauce} sauce.",
|
2789
|
+
# ],
|
2790
|
+
# slot_constraint: "Required",
|
2791
|
+
# slot_type: "DocPizzaSauceType",
|
2792
|
+
# slot_type_version: "$LATEST",
|
2793
|
+
# value_elicitation_prompt: {
|
2794
|
+
# max_attempts: 1,
|
2795
|
+
# messages: [
|
2796
|
+
# {
|
2797
|
+
# content: "White or red sauce?",
|
2798
|
+
# content_type: "PlainText",
|
2799
|
+
# },
|
2800
|
+
# {
|
2801
|
+
# content: "Garlic or tomato sauce?",
|
2802
|
+
# content_type: "PlainText",
|
2803
|
+
# },
|
2804
|
+
# ],
|
2805
|
+
# },
|
2806
|
+
# },
|
2807
|
+
# ],
|
2808
|
+
# })
|
2809
|
+
#
|
2810
|
+
# resp.to_h outputs the following:
|
2811
|
+
# {
|
2812
|
+
# version: "$LATEST",
|
2813
|
+
# name: "DocOrderPizza",
|
2814
|
+
# checksum: "ca9bc13d-afc8-4706-bbaf-091f7a5935d6",
|
2815
|
+
# conclusion_statement: {
|
2816
|
+
# messages: [
|
2817
|
+
# {
|
2818
|
+
# content: "All right, I ordered you a {Crust} crust {Type} pizza with {Sauce} sauce.",
|
2819
|
+
# content_type: "PlainText",
|
2820
|
+
# },
|
2821
|
+
# {
|
2822
|
+
# content: "OK, your {Crust} crust {Type} pizza with {Sauce} sauce is on the way.",
|
2823
|
+
# content_type: "PlainText",
|
2824
|
+
# },
|
2825
|
+
# ],
|
2826
|
+
# response_card: "foo",
|
2827
|
+
# },
|
2828
|
+
# confirmation_prompt: {
|
2829
|
+
# max_attempts: 1,
|
2830
|
+
# messages: [
|
2831
|
+
# {
|
2832
|
+
# content: "Should I order your {Crust} crust {Type} pizza with {Sauce} sauce?",
|
2833
|
+
# content_type: "PlainText",
|
2834
|
+
# },
|
2835
|
+
# ],
|
2836
|
+
# },
|
2837
|
+
# created_date: Time.parse(1494359783.453),
|
2838
|
+
# description: "Order a pizza from a local pizzeria.",
|
2839
|
+
# fulfillment_activity: {
|
2840
|
+
# type: "ReturnIntent",
|
2841
|
+
# },
|
2842
|
+
# last_updated_date: Time.parse(1494359783.453),
|
2843
|
+
# rejection_statement: {
|
2844
|
+
# messages: [
|
2845
|
+
# {
|
2846
|
+
# content: "Ok, I'll cancel your order.",
|
2847
|
+
# content_type: "PlainText",
|
2848
|
+
# },
|
2849
|
+
# {
|
2850
|
+
# content: "I cancelled your order.",
|
2851
|
+
# content_type: "PlainText",
|
2852
|
+
# },
|
2853
|
+
# ],
|
2854
|
+
# },
|
2855
|
+
# sample_utterances: [
|
2856
|
+
# "Order me a pizza.",
|
2857
|
+
# "Order me a {Type} pizza.",
|
2858
|
+
# "I want a {Crust} crust {Type} pizza",
|
2859
|
+
# "I want a {Crust} crust {Type} pizza with {Sauce} sauce.",
|
2860
|
+
# ],
|
2861
|
+
# slots: [
|
2862
|
+
# {
|
2863
|
+
# name: "Sauce",
|
2864
|
+
# description: "The type of sauce to use on the pizza.",
|
2865
|
+
# priority: 3,
|
2866
|
+
# sample_utterances: [
|
2867
|
+
# "Make it {Sauce} sauce.",
|
2868
|
+
# "I'd like {Sauce} sauce.",
|
2869
|
+
# ],
|
2870
|
+
# slot_constraint: "Required",
|
2871
|
+
# slot_type: "DocPizzaSauceType",
|
2872
|
+
# slot_type_version: "$LATEST",
|
2873
|
+
# value_elicitation_prompt: {
|
2874
|
+
# max_attempts: 1,
|
2875
|
+
# messages: [
|
2876
|
+
# {
|
2877
|
+
# content: "White or red sauce?",
|
2878
|
+
# content_type: "PlainText",
|
2879
|
+
# },
|
2880
|
+
# {
|
2881
|
+
# content: "Garlic or tomato sauce?",
|
2882
|
+
# content_type: "PlainText",
|
2883
|
+
# },
|
2884
|
+
# ],
|
2885
|
+
# },
|
2886
|
+
# },
|
2887
|
+
# {
|
2888
|
+
# name: "Type",
|
2889
|
+
# description: "The type of pizza to order.",
|
2890
|
+
# priority: 1,
|
2891
|
+
# sample_utterances: [
|
2892
|
+
# "Get me a {Type} pizza.",
|
2893
|
+
# "A {Type} pizza please.",
|
2894
|
+
# "I'd like a {Type} pizza.",
|
2895
|
+
# ],
|
2896
|
+
# slot_constraint: "Required",
|
2897
|
+
# slot_type: "DocPizzaType",
|
2898
|
+
# slot_type_version: "$LATEST",
|
2899
|
+
# value_elicitation_prompt: {
|
2900
|
+
# max_attempts: 1,
|
2901
|
+
# messages: [
|
2902
|
+
# {
|
2903
|
+
# content: "What type of pizza would you like?",
|
2904
|
+
# content_type: "PlainText",
|
2905
|
+
# },
|
2906
|
+
# {
|
2907
|
+
# content: "Vegie or cheese pizza?",
|
2908
|
+
# content_type: "PlainText",
|
2909
|
+
# },
|
2910
|
+
# {
|
2911
|
+
# content: "I can get you a vegie or a cheese pizza.",
|
2912
|
+
# content_type: "PlainText",
|
2913
|
+
# },
|
2914
|
+
# ],
|
2915
|
+
# },
|
2916
|
+
# },
|
2917
|
+
# {
|
2918
|
+
# name: "Crust",
|
2919
|
+
# description: "The type of pizza crust to order.",
|
2920
|
+
# priority: 2,
|
2921
|
+
# sample_utterances: [
|
2922
|
+
# "Make it a {Crust} crust.",
|
2923
|
+
# "I'd like a {Crust} crust.",
|
2924
|
+
# ],
|
2925
|
+
# slot_constraint: "Required",
|
2926
|
+
# slot_type: "DocPizzaCrustType",
|
2927
|
+
# slot_type_version: "$LATEST",
|
2928
|
+
# value_elicitation_prompt: {
|
2929
|
+
# max_attempts: 1,
|
2930
|
+
# messages: [
|
2931
|
+
# {
|
2932
|
+
# content: "What type of crust would you like?",
|
2933
|
+
# content_type: "PlainText",
|
2934
|
+
# },
|
2935
|
+
# {
|
2936
|
+
# content: "Thick or thin crust?",
|
2937
|
+
# content_type: "PlainText",
|
2938
|
+
# },
|
2939
|
+
# ],
|
2940
|
+
# },
|
2941
|
+
# },
|
2942
|
+
# ],
|
2943
|
+
# }
|
2944
|
+
#
|
2273
2945
|
# @example Request syntax with placeholder values
|
2274
2946
|
#
|
2275
2947
|
# resp = client.put_intent({
|
@@ -2483,6 +3155,42 @@ module Aws::LexModelBuildingService
|
|
2483
3155
|
# * {Types::PutSlotTypeResponse#version #version} => String
|
2484
3156
|
# * {Types::PutSlotTypeResponse#checksum #checksum} => String
|
2485
3157
|
#
|
3158
|
+
#
|
3159
|
+
# @example Example: To Create a Slot Type
|
3160
|
+
#
|
3161
|
+
# # This example shows how to create a slot type that describes pizza sauces.
|
3162
|
+
#
|
3163
|
+
# resp = client.put_slot_type({
|
3164
|
+
# name: "PizzaSauceType",
|
3165
|
+
# description: "Available pizza sauces",
|
3166
|
+
# enumeration_values: [
|
3167
|
+
# {
|
3168
|
+
# value: "red",
|
3169
|
+
# },
|
3170
|
+
# {
|
3171
|
+
# value: "white",
|
3172
|
+
# },
|
3173
|
+
# ],
|
3174
|
+
# })
|
3175
|
+
#
|
3176
|
+
# resp.to_h outputs the following:
|
3177
|
+
# {
|
3178
|
+
# version: "$LATEST",
|
3179
|
+
# name: "DocPizzaSauceType",
|
3180
|
+
# checksum: "cfd00ed1-775d-4357-947c-aca7e73b44ba",
|
3181
|
+
# created_date: Time.parse(1494356442.23),
|
3182
|
+
# description: "Available pizza sauces",
|
3183
|
+
# enumeration_values: [
|
3184
|
+
# {
|
3185
|
+
# value: "red",
|
3186
|
+
# },
|
3187
|
+
# {
|
3188
|
+
# value: "white",
|
3189
|
+
# },
|
3190
|
+
# ],
|
3191
|
+
# last_updated_date: Time.parse(1494356442.23),
|
3192
|
+
# }
|
3193
|
+
#
|
2486
3194
|
# @example Request syntax with placeholder values
|
2487
3195
|
#
|
2488
3196
|
# resp = client.put_slot_type({
|
@@ -2529,7 +3237,7 @@ module Aws::LexModelBuildingService
|
|
2529
3237
|
params: params,
|
2530
3238
|
config: config)
|
2531
3239
|
context[:gem_name] = 'aws-sdk-lexmodelbuildingservice'
|
2532
|
-
context[:gem_version] = '1.0.0.
|
3240
|
+
context[:gem_version] = '1.0.0.rc6'
|
2533
3241
|
Seahorse::Client::Request.new(handlers, context)
|
2534
3242
|
end
|
2535
3243
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-lexmodelbuildingservice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.0.
|
19
|
+
version: 3.0.0.rc14
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.0.0.
|
26
|
+
version: 3.0.0.rc14
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: aws-sigv4
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|