aws-sdk-lexmodelsv2 1.2.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f84082b9473a7d26101c2987a4f516a1d879c4e9a438181c04780a15c064a907
4
- data.tar.gz: 5c5252ecfd72c5443e948650ebb1137f7a27f516fe71685f0be1f9f08f4b2664
3
+ metadata.gz: fe46ef50f8fa1e7868047c7520a2aa1288aa99a2bea899f89082f79a1699f476
4
+ data.tar.gz: e3f11d12dfd4986d433ce79dc40dddebac50d370803512b28db3b3fc4e0efa20
5
5
  SHA512:
6
- metadata.gz: a08a1d9b8e7163031003c61fda1192d6b30d54216a31f3f6c918f2ffd6b5732727fc997142c6ca63df6864fd8bfd40c483a0b1cb309a358caba9b11aedc27f5b
7
- data.tar.gz: 6d59a5bf953b282abf2bcd12273cd65f35eeeccf8e977c5d0c77e03af4291d0d0ce937086e50ced8595e1df9088c3ab46f0210b57c1fdb7d7de917e29fc41ec9
6
+ metadata.gz: 63baeb71a40ca7639d5fe7bf00798f6a490892517a78e7db1ef6d7ef62ee440879d985764fbf0b430f3edbf83789a9972f132cd7a61cfe06a042f4d322c4f299
7
+ data.tar.gz: 4a2cf684ac1c50ed5d39576f722f8c1f2509ce364ba77c7045b9a7cd6e27510c191a8dcbbd07b8313e3e5438603b95a147f1f8fec97fe0c10513ee3d4e14c002
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.6.0 (2021-07-27)
5
+ ------------------
6
+
7
+ * Feature - Add waiters that automatically poll for resource status for asynchronous operations, such as building a bot
8
+
9
+ 1.5.0 (2021-06-15)
10
+ ------------------
11
+
12
+ * Feature - This release adds support for Multi Valued slots in Amazon Lex V2 APIs for model building
13
+
14
+ 1.4.0 (2021-05-20)
15
+ ------------------
16
+
17
+ * Feature - Customers can now use resource-based policies to control access to their Lex V2 bots. This release adds APIs to attach and manage permissions for a bot or a bot alias. For details, see: https://docs.aws.amazon.com/lexv2/latest/dg/security_iam_service-with-iam.html
18
+
19
+ 1.3.0 (2021-05-18)
20
+ ------------------
21
+
22
+ * Feature - This release adds support for exporting and importing Lex V2 bots and bot locales. It also adds validations to enforce minimum number of tags on Lex V2 resources. For details, see https://docs.aws.amazon.com/lexv2/latest/dg/importing-exporting.html
23
+
4
24
  1.2.0 (2021-03-10)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.6.0
@@ -15,6 +15,7 @@ require_relative 'aws-sdk-lexmodelsv2/types'
15
15
  require_relative 'aws-sdk-lexmodelsv2/client_api'
16
16
  require_relative 'aws-sdk-lexmodelsv2/client'
17
17
  require_relative 'aws-sdk-lexmodelsv2/errors'
18
+ require_relative 'aws-sdk-lexmodelsv2/waiters'
18
19
  require_relative 'aws-sdk-lexmodelsv2/resource'
19
20
  require_relative 'aws-sdk-lexmodelsv2/customizations'
20
21
 
@@ -48,6 +49,6 @@ require_relative 'aws-sdk-lexmodelsv2/customizations'
48
49
  # @!group service
49
50
  module Aws::LexModelsV2
50
51
 
51
- GEM_VERSION = '1.2.0'
52
+ GEM_VERSION = '1.6.0'
52
53
 
53
54
  end
@@ -345,12 +345,11 @@ module Aws::LexModelsV2
345
345
  # The identifier of the language and locale that the bot will be used
346
346
  # in. The string must match one of the supported locales. All of the
347
347
  # intents, slot types, and slots used in the bot must have the same
348
- # locale. For more information, see
349
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
348
+ # locale. For more information, see [Supported languages][1].
350
349
  #
351
350
  #
352
351
  #
353
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
352
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
354
353
  #
355
354
  # @return [Types::BuildBotLocaleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
356
355
  #
@@ -373,7 +372,7 @@ module Aws::LexModelsV2
373
372
  # resp.bot_id #=> String
374
373
  # resp.bot_version #=> String
375
374
  # resp.locale_id #=> String
376
- # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt"
375
+ # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
377
376
  # resp.last_build_submitted_date_time #=> Time
378
377
  #
379
378
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BuildBotLocale AWS API Documentation
@@ -463,7 +462,7 @@ module Aws::LexModelsV2
463
462
  # resp.role_arn #=> String
464
463
  # resp.data_privacy.child_directed #=> Boolean
465
464
  # resp.idle_session_ttl_in_seconds #=> Integer
466
- # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
465
+ # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
467
466
  # resp.creation_date_time #=> Time
468
467
  # resp.bot_tags #=> Hash
469
468
  # resp.bot_tags["TagKey"] #=> String
@@ -637,12 +636,11 @@ module Aws::LexModelsV2
637
636
  # The identifier of the language and locale that the bot will be used
638
637
  # in. The string must match one of the supported locales. All of the
639
638
  # intents, slot types, and slots used in the bot must have the same
640
- # locale. For more information, see
641
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
639
+ # locale. For more information, see [Supported languages][1].
642
640
  #
643
641
  #
644
642
  #
645
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
643
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
646
644
  #
647
645
  # @option params [String] :description
648
646
  # A description of the bot locale. Use this to help identify the bot
@@ -707,7 +705,7 @@ module Aws::LexModelsV2
707
705
  # resp.description #=> String
708
706
  # resp.nlu_intent_confidence_threshold #=> Float
709
707
  # resp.voice_settings.voice_id #=> String
710
- # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt"
708
+ # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
711
709
  # resp.creation_date_time #=> Time
712
710
  #
713
711
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateBotLocale AWS API Documentation
@@ -768,7 +766,7 @@ module Aws::LexModelsV2
768
766
  # resp.bot_version #=> String
769
767
  # resp.bot_version_locale_specification #=> Hash
770
768
  # resp.bot_version_locale_specification["LocaleId"].source_bot_version #=> String
771
- # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
769
+ # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
772
770
  # resp.creation_date_time #=> Time
773
771
  #
774
772
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateBotVersion AWS API Documentation
@@ -780,6 +778,80 @@ module Aws::LexModelsV2
780
778
  req.send_request(options)
781
779
  end
782
780
 
781
+ # Creates a zip archive containing the contents of a bot or a bot
782
+ # locale. The archive contains a directory structure that contains JSON
783
+ # files that define the bot.
784
+ #
785
+ # You can create an archive that contains the complete definition of a
786
+ # bot, or you can specify that the archive contain only the definition
787
+ # of a single bot locale.
788
+ #
789
+ # For more information about exporting bots, and about the structure of
790
+ # the export archive, see [ Importing and exporting bots ][1]
791
+ #
792
+ #
793
+ #
794
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/importing-exporting.html
795
+ #
796
+ # @option params [required, Types::ExportResourceSpecification] :resource_specification
797
+ # Specifies the type of resource to export, either a bot or a bot
798
+ # locale. You can only specify one type of resource to export.
799
+ #
800
+ # @option params [required, String] :file_format
801
+ # The file format of the bot or bot locale definition files.
802
+ #
803
+ # @option params [String] :file_password
804
+ # An password to use to encrypt the exported archive. Using a password
805
+ # is optional, but you should encrypt the archive to protect the data in
806
+ # transit between Amazon Lex and your local computer.
807
+ #
808
+ # @return [Types::CreateExportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
809
+ #
810
+ # * {Types::CreateExportResponse#export_id #export_id} => String
811
+ # * {Types::CreateExportResponse#resource_specification #resource_specification} => Types::ExportResourceSpecification
812
+ # * {Types::CreateExportResponse#file_format #file_format} => String
813
+ # * {Types::CreateExportResponse#export_status #export_status} => String
814
+ # * {Types::CreateExportResponse#creation_date_time #creation_date_time} => Time
815
+ #
816
+ # @example Request syntax with placeholder values
817
+ #
818
+ # resp = client.create_export({
819
+ # resource_specification: { # required
820
+ # bot_export_specification: {
821
+ # bot_id: "Id", # required
822
+ # bot_version: "BotVersion", # required
823
+ # },
824
+ # bot_locale_export_specification: {
825
+ # bot_id: "Id", # required
826
+ # bot_version: "BotVersion", # required
827
+ # locale_id: "LocaleId", # required
828
+ # },
829
+ # },
830
+ # file_format: "LexJson", # required, accepts LexJson
831
+ # file_password: "ImportExportFilePassword",
832
+ # })
833
+ #
834
+ # @example Response structure
835
+ #
836
+ # resp.export_id #=> String
837
+ # resp.resource_specification.bot_export_specification.bot_id #=> String
838
+ # resp.resource_specification.bot_export_specification.bot_version #=> String
839
+ # resp.resource_specification.bot_locale_export_specification.bot_id #=> String
840
+ # resp.resource_specification.bot_locale_export_specification.bot_version #=> String
841
+ # resp.resource_specification.bot_locale_export_specification.locale_id #=> String
842
+ # resp.file_format #=> String, one of "LexJson"
843
+ # resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
844
+ # resp.creation_date_time #=> Time
845
+ #
846
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateExport AWS API Documentation
847
+ #
848
+ # @overload create_export(params = {})
849
+ # @param [Hash] params ({})
850
+ def create_export(params = {}, options = {})
851
+ req = build_request(:create_export, params)
852
+ req.send_request(options)
853
+ end
854
+
783
855
  # Creates an intent.
784
856
  #
785
857
  # To define the interaction between the user and your bot, you define
@@ -908,7 +980,11 @@ module Aws::LexModelsV2
908
980
  # @option params [required, String] :locale_id
909
981
  # The identifier of the language and locale where this intent is used.
910
982
  # All of the bots, slot types, and slots used by the intent must have
911
- # the same locale.
983
+ # the same locale. For more information, see [Supported languages][1].
984
+ #
985
+ #
986
+ #
987
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
912
988
  #
913
989
  # @return [Types::CreateIntentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
914
990
  #
@@ -1229,6 +1305,154 @@ module Aws::LexModelsV2
1229
1305
  req.send_request(options)
1230
1306
  end
1231
1307
 
1308
+ # Creates a new resource policy with the specified policy statements.
1309
+ #
1310
+ # @option params [required, String] :resource_arn
1311
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
1312
+ # resource policy is attached to.
1313
+ #
1314
+ # @option params [required, String] :policy
1315
+ # A resource policy to add to the resource. The policy is a JSON
1316
+ # structure that contains one or more statements that define the policy.
1317
+ # The policy must follow the IAM syntax. For more information about the
1318
+ # contents of a JSON policy document, see [ IAM JSON policy reference
1319
+ # ][1].
1320
+ #
1321
+ # If the policy isn't valid, Amazon Lex returns a validation exception.
1322
+ #
1323
+ #
1324
+ #
1325
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html
1326
+ #
1327
+ # @return [Types::CreateResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1328
+ #
1329
+ # * {Types::CreateResourcePolicyResponse#resource_arn #resource_arn} => String
1330
+ # * {Types::CreateResourcePolicyResponse#revision_id #revision_id} => String
1331
+ #
1332
+ # @example Request syntax with placeholder values
1333
+ #
1334
+ # resp = client.create_resource_policy({
1335
+ # resource_arn: "AmazonResourceName", # required
1336
+ # policy: "Policy", # required
1337
+ # })
1338
+ #
1339
+ # @example Response structure
1340
+ #
1341
+ # resp.resource_arn #=> String
1342
+ # resp.revision_id #=> String
1343
+ #
1344
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateResourcePolicy AWS API Documentation
1345
+ #
1346
+ # @overload create_resource_policy(params = {})
1347
+ # @param [Hash] params ({})
1348
+ def create_resource_policy(params = {}, options = {})
1349
+ req = build_request(:create_resource_policy, params)
1350
+ req.send_request(options)
1351
+ end
1352
+
1353
+ # Adds a new resource policy statement to a bot or bot alias. If a
1354
+ # resource policy exists, the statement is added to the current resource
1355
+ # policy. If a policy doesn't exist, a new policy is created.
1356
+ #
1357
+ # You can't create a resource policy statement that allows
1358
+ # cross-account access.
1359
+ #
1360
+ # @option params [required, String] :resource_arn
1361
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
1362
+ # resource policy is attached to.
1363
+ #
1364
+ # @option params [required, String] :statement_id
1365
+ # The name of the statement. The ID is the same as the `Sid` IAM
1366
+ # property. The statement name must be unique within the policy. For
1367
+ # more information, see [IAM JSON policy elements: Sid][1].
1368
+ #
1369
+ #
1370
+ #
1371
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html
1372
+ #
1373
+ # @option params [required, String] :effect
1374
+ # Determines whether the statement allows or denies access to the
1375
+ # resource.
1376
+ #
1377
+ # @option params [required, Array<Types::Principal>] :principal
1378
+ # An IAM principal, such as an IAM users, IAM roles, or AWS services
1379
+ # that is allowed or denied access to a resource. For more information,
1380
+ # see [AWS JSON policy elements: Principal][1].
1381
+ #
1382
+ #
1383
+ #
1384
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html
1385
+ #
1386
+ # @option params [required, Array<String>] :action
1387
+ # The Amazon Lex action that this policy either allows or denies. The
1388
+ # action must apply to the resource type of the specified ARN. For more
1389
+ # information, see [ Actions, resources, and condition keys for Amazon
1390
+ # Lex V2][1].
1391
+ #
1392
+ #
1393
+ #
1394
+ # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonlexv2.html
1395
+ #
1396
+ # @option params [Hash<String,Hash>] :condition
1397
+ # Specifies a condition when the policy is in effect. If the principal
1398
+ # of the policy is a service principal, you must provide two condition
1399
+ # blocks, one with a SourceAccount global condition key and one with a
1400
+ # SourceArn global condition key.
1401
+ #
1402
+ # For more information, see [IAM JSON policy elements: Condition ][1].
1403
+ #
1404
+ #
1405
+ #
1406
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html
1407
+ #
1408
+ # @option params [String] :expected_revision_id
1409
+ # The identifier of the revision of the policy to edit. If this revision
1410
+ # ID doesn't match the current revision ID, Amazon Lex throws an
1411
+ # exception.
1412
+ #
1413
+ # If you don't specify a revision, Amazon Lex overwrites the contents
1414
+ # of the policy with the new values.
1415
+ #
1416
+ # @return [Types::CreateResourcePolicyStatementResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1417
+ #
1418
+ # * {Types::CreateResourcePolicyStatementResponse#resource_arn #resource_arn} => String
1419
+ # * {Types::CreateResourcePolicyStatementResponse#revision_id #revision_id} => String
1420
+ #
1421
+ # @example Request syntax with placeholder values
1422
+ #
1423
+ # resp = client.create_resource_policy_statement({
1424
+ # resource_arn: "AmazonResourceName", # required
1425
+ # statement_id: "Name", # required
1426
+ # effect: "Allow", # required, accepts Allow, Deny
1427
+ # principal: [ # required
1428
+ # {
1429
+ # service: "ServicePrincipal",
1430
+ # arn: "PrincipalArn",
1431
+ # },
1432
+ # ],
1433
+ # action: ["Operation"], # required
1434
+ # condition: {
1435
+ # "ConditionOperator" => {
1436
+ # "ConditionKey" => "ConditionValue",
1437
+ # },
1438
+ # },
1439
+ # expected_revision_id: "RevisionId",
1440
+ # })
1441
+ #
1442
+ # @example Response structure
1443
+ #
1444
+ # resp.resource_arn #=> String
1445
+ # resp.revision_id #=> String
1446
+ #
1447
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateResourcePolicyStatement AWS API Documentation
1448
+ #
1449
+ # @overload create_resource_policy_statement(params = {})
1450
+ # @param [Hash] params ({})
1451
+ def create_resource_policy_statement(params = {}, options = {})
1452
+ req = build_request(:create_resource_policy_statement, params)
1453
+ req.send_request(options)
1454
+ end
1455
+
1232
1456
  # Creates a slot in an intent. A slot is a variable needed to fulfill an
1233
1457
  # intent. For example, an `OrderPizza` intent might need slots for size,
1234
1458
  # crust, and number of pizzas. For each slot, you define one or more
@@ -1268,16 +1492,24 @@ module Aws::LexModelsV2
1268
1492
  # The identifier of the language and locale that the slot will be used
1269
1493
  # in. The string must match one of the supported locales. All of the
1270
1494
  # bots, intents, slot types used by the slot must have the same locale.
1271
- # For more information, see
1272
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
1495
+ # For more information, see [Supported languages][1].
1273
1496
  #
1274
1497
  #
1275
1498
  #
1276
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
1499
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
1277
1500
  #
1278
1501
  # @option params [required, String] :intent_id
1279
1502
  # The identifier of the intent that contains the slot.
1280
1503
  #
1504
+ # @option params [Types::MultipleValuesSetting] :multiple_values_setting
1505
+ # Indicates whether the slot returns multiple values in one response.
1506
+ # Multi-value slots are only available in the en-US locale. If you set
1507
+ # this value to `true` in any other locale, Amazon Lex throws a
1508
+ # `ValidationException`.
1509
+ #
1510
+ # If the `multipleValuesSetting` is not set, the default value is
1511
+ # `false`.
1512
+ #
1281
1513
  # @return [Types::CreateSlotResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1282
1514
  #
1283
1515
  # * {Types::CreateSlotResponse#slot_id #slot_id} => String
@@ -1291,6 +1523,7 @@ module Aws::LexModelsV2
1291
1523
  # * {Types::CreateSlotResponse#locale_id #locale_id} => String
1292
1524
  # * {Types::CreateSlotResponse#intent_id #intent_id} => String
1293
1525
  # * {Types::CreateSlotResponse#creation_date_time #creation_date_time} => Time
1526
+ # * {Types::CreateSlotResponse#multiple_values_setting #multiple_values_setting} => Types::MultipleValuesSetting
1294
1527
  #
1295
1528
  # @example Request syntax with placeholder values
1296
1529
  #
@@ -1537,6 +1770,9 @@ module Aws::LexModelsV2
1537
1770
  # bot_version: "DraftBotVersion", # required
1538
1771
  # locale_id: "LocaleId", # required
1539
1772
  # intent_id: "Id", # required
1773
+ # multiple_values_setting: {
1774
+ # allow_multiple_values: false,
1775
+ # },
1540
1776
  # })
1541
1777
  #
1542
1778
  # @example Response structure
@@ -1643,6 +1879,7 @@ module Aws::LexModelsV2
1643
1879
  # resp.locale_id #=> String
1644
1880
  # resp.intent_id #=> String
1645
1881
  # resp.creation_date_time #=> Time
1882
+ # resp.multiple_values_setting.allow_multiple_values #=> Boolean
1646
1883
  #
1647
1884
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateSlot AWS API Documentation
1648
1885
  #
@@ -1705,12 +1942,11 @@ module Aws::LexModelsV2
1705
1942
  # The identifier of the language and locale that the slot type will be
1706
1943
  # used in. The string must match one of the supported locales. All of
1707
1944
  # the bots, intents, and slots used by the slot type must have the same
1708
- # locale. For more information, see
1709
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
1945
+ # locale. For more information, see [Supported languages][1].
1710
1946
  #
1711
1947
  #
1712
1948
  #
1713
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
1949
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
1714
1950
  #
1715
1951
  # @return [Types::CreateSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1716
1952
  #
@@ -1780,6 +2016,28 @@ module Aws::LexModelsV2
1780
2016
  req.send_request(options)
1781
2017
  end
1782
2018
 
2019
+ # Gets a pre-signed S3 write URL that you use to upload the zip archive
2020
+ # when importing a bot or a bot locale.
2021
+ #
2022
+ # @return [Types::CreateUploadUrlResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2023
+ #
2024
+ # * {Types::CreateUploadUrlResponse#import_id #import_id} => String
2025
+ # * {Types::CreateUploadUrlResponse#upload_url #upload_url} => String
2026
+ #
2027
+ # @example Response structure
2028
+ #
2029
+ # resp.import_id #=> String
2030
+ # resp.upload_url #=> String
2031
+ #
2032
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateUploadUrl AWS API Documentation
2033
+ #
2034
+ # @overload create_upload_url(params = {})
2035
+ # @param [Hash] params ({})
2036
+ def create_upload_url(params = {}, options = {})
2037
+ req = build_request(:create_upload_url, params)
2038
+ req.send_request(options)
2039
+ end
2040
+
1783
2041
  # Deletes all versions of a bot, including the `Draft` version. To
1784
2042
  # delete a specific version, use the `DeleteBotVersion` operation.
1785
2043
  #
@@ -1813,7 +2071,7 @@ module Aws::LexModelsV2
1813
2071
  # @example Response structure
1814
2072
  #
1815
2073
  # resp.bot_id #=> String
1816
- # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
2074
+ # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
1817
2075
  #
1818
2076
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteBot AWS API Documentation
1819
2077
  #
@@ -1879,12 +2137,11 @@ module Aws::LexModelsV2
1879
2137
  # @option params [required, String] :locale_id
1880
2138
  # The identifier of the language and locale that will be deleted. The
1881
2139
  # string must match one of the supported locales. For more information,
1882
- # see
1883
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
2140
+ # see [Supported languages][1].
1884
2141
  #
1885
2142
  #
1886
2143
  #
1887
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2144
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
1888
2145
  #
1889
2146
  # @return [Types::DeleteBotLocaleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1890
2147
  #
@@ -1906,7 +2163,7 @@ module Aws::LexModelsV2
1906
2163
  # resp.bot_id #=> String
1907
2164
  # resp.bot_version #=> String
1908
2165
  # resp.locale_id #=> String
1909
- # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt"
2166
+ # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
1910
2167
  #
1911
2168
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteBotLocale AWS API Documentation
1912
2169
  #
@@ -1951,7 +2208,7 @@ module Aws::LexModelsV2
1951
2208
  #
1952
2209
  # resp.bot_id #=> String
1953
2210
  # resp.bot_version #=> String
1954
- # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
2211
+ # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
1955
2212
  #
1956
2213
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteBotVersion AWS API Documentation
1957
2214
  #
@@ -1962,6 +2219,68 @@ module Aws::LexModelsV2
1962
2219
  req.send_request(options)
1963
2220
  end
1964
2221
 
2222
+ # Removes a previous export and the associated files stored in an S3
2223
+ # bucket.
2224
+ #
2225
+ # @option params [required, String] :export_id
2226
+ # The unique identifier of the export to delete.
2227
+ #
2228
+ # @return [Types::DeleteExportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2229
+ #
2230
+ # * {Types::DeleteExportResponse#export_id #export_id} => String
2231
+ # * {Types::DeleteExportResponse#export_status #export_status} => String
2232
+ #
2233
+ # @example Request syntax with placeholder values
2234
+ #
2235
+ # resp = client.delete_export({
2236
+ # export_id: "Id", # required
2237
+ # })
2238
+ #
2239
+ # @example Response structure
2240
+ #
2241
+ # resp.export_id #=> String
2242
+ # resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
2243
+ #
2244
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteExport AWS API Documentation
2245
+ #
2246
+ # @overload delete_export(params = {})
2247
+ # @param [Hash] params ({})
2248
+ def delete_export(params = {}, options = {})
2249
+ req = build_request(:delete_export, params)
2250
+ req.send_request(options)
2251
+ end
2252
+
2253
+ # Removes a previous import and the associated file stored in an S3
2254
+ # bucket.
2255
+ #
2256
+ # @option params [required, String] :import_id
2257
+ # The unique identifier of the import to delete.
2258
+ #
2259
+ # @return [Types::DeleteImportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2260
+ #
2261
+ # * {Types::DeleteImportResponse#import_id #import_id} => String
2262
+ # * {Types::DeleteImportResponse#import_status #import_status} => String
2263
+ #
2264
+ # @example Request syntax with placeholder values
2265
+ #
2266
+ # resp = client.delete_import({
2267
+ # import_id: "Id", # required
2268
+ # })
2269
+ #
2270
+ # @example Response structure
2271
+ #
2272
+ # resp.import_id #=> String
2273
+ # resp.import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
2274
+ #
2275
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteImport AWS API Documentation
2276
+ #
2277
+ # @overload delete_import(params = {})
2278
+ # @param [Hash] params ({})
2279
+ def delete_import(params = {}, options = {})
2280
+ req = build_request(:delete_import, params)
2281
+ req.send_request(options)
2282
+ end
2283
+
1965
2284
  # Removes the specified intent.
1966
2285
  #
1967
2286
  # Deleting an intent also deletes the slots associated with the intent.
@@ -1978,12 +2297,11 @@ module Aws::LexModelsV2
1978
2297
  # @option params [required, String] :locale_id
1979
2298
  # The identifier of the language and locale where the bot will be
1980
2299
  # deleted. The string must match one of the supported locales. For more
1981
- # information, see
1982
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
2300
+ # information, see [Supported languages][1].
1983
2301
  #
1984
2302
  #
1985
2303
  #
1986
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2304
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
1987
2305
  #
1988
2306
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1989
2307
  #
@@ -2005,6 +2323,94 @@ module Aws::LexModelsV2
2005
2323
  req.send_request(options)
2006
2324
  end
2007
2325
 
2326
+ # Removes an existing policy from a bot or bot alias. If the resource
2327
+ # doesn't have a policy attached, Amazon Lex returns an exception.
2328
+ #
2329
+ # @option params [required, String] :resource_arn
2330
+ # The Amazon Resource Name (ARN) of the bot or bot alias that has the
2331
+ # resource policy attached.
2332
+ #
2333
+ # @option params [String] :expected_revision_id
2334
+ # The identifier of the revision to edit. If this ID doesn't match the
2335
+ # current revision number, Amazon Lex returns an exception
2336
+ #
2337
+ # If you don't specify a revision ID, Amazon Lex will delete the
2338
+ # current policy.
2339
+ #
2340
+ # @return [Types::DeleteResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2341
+ #
2342
+ # * {Types::DeleteResourcePolicyResponse#resource_arn #resource_arn} => String
2343
+ # * {Types::DeleteResourcePolicyResponse#revision_id #revision_id} => String
2344
+ #
2345
+ # @example Request syntax with placeholder values
2346
+ #
2347
+ # resp = client.delete_resource_policy({
2348
+ # resource_arn: "AmazonResourceName", # required
2349
+ # expected_revision_id: "RevisionId",
2350
+ # })
2351
+ #
2352
+ # @example Response structure
2353
+ #
2354
+ # resp.resource_arn #=> String
2355
+ # resp.revision_id #=> String
2356
+ #
2357
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteResourcePolicy AWS API Documentation
2358
+ #
2359
+ # @overload delete_resource_policy(params = {})
2360
+ # @param [Hash] params ({})
2361
+ def delete_resource_policy(params = {}, options = {})
2362
+ req = build_request(:delete_resource_policy, params)
2363
+ req.send_request(options)
2364
+ end
2365
+
2366
+ # Deletes a policy statement from a resource policy. If you delete the
2367
+ # last statement from a policy, the policy is deleted. If you specify a
2368
+ # statement ID that doesn't exist in the policy, or if the bot or bot
2369
+ # alias doesn't have a policy attached, Amazon Lex returns an
2370
+ # exception.
2371
+ #
2372
+ # @option params [required, String] :resource_arn
2373
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
2374
+ # resource policy is attached to.
2375
+ #
2376
+ # @option params [required, String] :statement_id
2377
+ # The name of the statement (SID) to delete from the policy.
2378
+ #
2379
+ # @option params [String] :expected_revision_id
2380
+ # The identifier of the revision of the policy to delete the statement
2381
+ # from. If this revision ID doesn't match the current revision ID,
2382
+ # Amazon Lex throws an exception.
2383
+ #
2384
+ # If you don't specify a revision, Amazon Lex removes the current
2385
+ # contents of the statement.
2386
+ #
2387
+ # @return [Types::DeleteResourcePolicyStatementResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2388
+ #
2389
+ # * {Types::DeleteResourcePolicyStatementResponse#resource_arn #resource_arn} => String
2390
+ # * {Types::DeleteResourcePolicyStatementResponse#revision_id #revision_id} => String
2391
+ #
2392
+ # @example Request syntax with placeholder values
2393
+ #
2394
+ # resp = client.delete_resource_policy_statement({
2395
+ # resource_arn: "AmazonResourceName", # required
2396
+ # statement_id: "Name", # required
2397
+ # expected_revision_id: "RevisionId",
2398
+ # })
2399
+ #
2400
+ # @example Response structure
2401
+ #
2402
+ # resp.resource_arn #=> String
2403
+ # resp.revision_id #=> String
2404
+ #
2405
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteResourcePolicyStatement AWS API Documentation
2406
+ #
2407
+ # @overload delete_resource_policy_statement(params = {})
2408
+ # @param [Hash] params ({})
2409
+ def delete_resource_policy_statement(params = {}, options = {})
2410
+ req = build_request(:delete_resource_policy_statement, params)
2411
+ req.send_request(options)
2412
+ end
2413
+
2008
2414
  # Deletes the specified slot from an intent.
2009
2415
  #
2010
2416
  # @option params [required, String] :slot_id
@@ -2019,12 +2425,11 @@ module Aws::LexModelsV2
2019
2425
  # @option params [required, String] :locale_id
2020
2426
  # The identifier of the language and locale that the slot will be
2021
2427
  # deleted from. The string must match one of the supported locales. For
2022
- # more information, see
2023
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
2428
+ # more information, see [Supported languages][1].
2024
2429
  #
2025
2430
  #
2026
2431
  #
2027
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2432
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2028
2433
  #
2029
2434
  # @option params [required, String] :intent_id
2030
2435
  # The identifier of the intent associated with the slot.
@@ -2068,12 +2473,11 @@ module Aws::LexModelsV2
2068
2473
  # @option params [required, String] :locale_id
2069
2474
  # The identifier of the language and locale that the slot type will be
2070
2475
  # deleted from. The string must match one of the supported locales. For
2071
- # more information, see
2072
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
2476
+ # more information, see [Supported languages][1].
2073
2477
  #
2074
2478
  #
2075
2479
  #
2076
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2480
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2077
2481
  #
2078
2482
  # @option params [Boolean] :skip_resource_in_use_check
2079
2483
  # By default, the `DeleteSlotType` operations throws a
@@ -2133,10 +2537,15 @@ module Aws::LexModelsV2
2133
2537
  # resp.role_arn #=> String
2134
2538
  # resp.data_privacy.child_directed #=> Boolean
2135
2539
  # resp.idle_session_ttl_in_seconds #=> Integer
2136
- # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
2540
+ # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
2137
2541
  # resp.creation_date_time #=> Time
2138
2542
  # resp.last_updated_date_time #=> Time
2139
2543
  #
2544
+ #
2545
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
2546
+ #
2547
+ # * bot_available
2548
+ #
2140
2549
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeBot AWS API Documentation
2141
2550
  #
2142
2551
  # @overload describe_bot(params = {})
@@ -2205,6 +2614,11 @@ module Aws::LexModelsV2
2205
2614
  # resp.creation_date_time #=> Time
2206
2615
  # resp.last_updated_date_time #=> Time
2207
2616
  #
2617
+ #
2618
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
2619
+ #
2620
+ # * bot_alias_available
2621
+ #
2208
2622
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeBotAlias AWS API Documentation
2209
2623
  #
2210
2624
  # @overload describe_bot_alias(params = {})
@@ -2224,12 +2638,12 @@ module Aws::LexModelsV2
2224
2638
  #
2225
2639
  # @option params [required, String] :locale_id
2226
2640
  # The unique identifier of the locale to describe. The string must match
2227
- # one of the supported locales. For more information, see
2228
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
2641
+ # one of the supported locales. For more information, see [Supported
2642
+ # languages][1].
2229
2643
  #
2230
2644
  #
2231
2645
  #
2232
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2646
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2233
2647
  #
2234
2648
  # @return [Types::DescribeBotLocaleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2235
2649
  #
@@ -2268,7 +2682,7 @@ module Aws::LexModelsV2
2268
2682
  # resp.voice_settings.voice_id #=> String
2269
2683
  # resp.intents_count #=> Integer
2270
2684
  # resp.slot_types_count #=> Integer
2271
- # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt"
2685
+ # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
2272
2686
  # resp.failure_reasons #=> Array
2273
2687
  # resp.failure_reasons[0] #=> String
2274
2688
  # resp.creation_date_time #=> Time
@@ -2278,6 +2692,13 @@ module Aws::LexModelsV2
2278
2692
  # resp.bot_locale_history_events[0].event #=> String
2279
2693
  # resp.bot_locale_history_events[0].event_date #=> Time
2280
2694
  #
2695
+ #
2696
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
2697
+ #
2698
+ # * bot_locale_built
2699
+ # * bot_locale_created
2700
+ # * bot_locale_express_testing_available
2701
+ #
2281
2702
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeBotLocale AWS API Documentation
2282
2703
  #
2283
2704
  # @overload describe_bot_locale(params = {})
@@ -2325,11 +2746,16 @@ module Aws::LexModelsV2
2325
2746
  # resp.role_arn #=> String
2326
2747
  # resp.data_privacy.child_directed #=> Boolean
2327
2748
  # resp.idle_session_ttl_in_seconds #=> Integer
2328
- # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
2749
+ # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
2329
2750
  # resp.failure_reasons #=> Array
2330
2751
  # resp.failure_reasons[0] #=> String
2331
2752
  # resp.creation_date_time #=> Time
2332
2753
  #
2754
+ #
2755
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
2756
+ #
2757
+ # * bot_version_available
2758
+ #
2333
2759
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeBotVersion AWS API Documentation
2334
2760
  #
2335
2761
  # @overload describe_bot_version(params = {})
@@ -2339,6 +2765,120 @@ module Aws::LexModelsV2
2339
2765
  req.send_request(options)
2340
2766
  end
2341
2767
 
2768
+ # Gets information about a specific export.
2769
+ #
2770
+ # @option params [required, String] :export_id
2771
+ # The unique identifier of the export to describe.
2772
+ #
2773
+ # @return [Types::DescribeExportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2774
+ #
2775
+ # * {Types::DescribeExportResponse#export_id #export_id} => String
2776
+ # * {Types::DescribeExportResponse#resource_specification #resource_specification} => Types::ExportResourceSpecification
2777
+ # * {Types::DescribeExportResponse#file_format #file_format} => String
2778
+ # * {Types::DescribeExportResponse#export_status #export_status} => String
2779
+ # * {Types::DescribeExportResponse#failure_reasons #failure_reasons} => Array&lt;String&gt;
2780
+ # * {Types::DescribeExportResponse#download_url #download_url} => String
2781
+ # * {Types::DescribeExportResponse#creation_date_time #creation_date_time} => Time
2782
+ # * {Types::DescribeExportResponse#last_updated_date_time #last_updated_date_time} => Time
2783
+ #
2784
+ # @example Request syntax with placeholder values
2785
+ #
2786
+ # resp = client.describe_export({
2787
+ # export_id: "Id", # required
2788
+ # })
2789
+ #
2790
+ # @example Response structure
2791
+ #
2792
+ # resp.export_id #=> String
2793
+ # resp.resource_specification.bot_export_specification.bot_id #=> String
2794
+ # resp.resource_specification.bot_export_specification.bot_version #=> String
2795
+ # resp.resource_specification.bot_locale_export_specification.bot_id #=> String
2796
+ # resp.resource_specification.bot_locale_export_specification.bot_version #=> String
2797
+ # resp.resource_specification.bot_locale_export_specification.locale_id #=> String
2798
+ # resp.file_format #=> String, one of "LexJson"
2799
+ # resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
2800
+ # resp.failure_reasons #=> Array
2801
+ # resp.failure_reasons[0] #=> String
2802
+ # resp.download_url #=> String
2803
+ # resp.creation_date_time #=> Time
2804
+ # resp.last_updated_date_time #=> Time
2805
+ #
2806
+ #
2807
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
2808
+ #
2809
+ # * bot_export_completed
2810
+ #
2811
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeExport AWS API Documentation
2812
+ #
2813
+ # @overload describe_export(params = {})
2814
+ # @param [Hash] params ({})
2815
+ def describe_export(params = {}, options = {})
2816
+ req = build_request(:describe_export, params)
2817
+ req.send_request(options)
2818
+ end
2819
+
2820
+ # Gets information about a specific import.
2821
+ #
2822
+ # @option params [required, String] :import_id
2823
+ # The unique identifier of the import to describe.
2824
+ #
2825
+ # @return [Types::DescribeImportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2826
+ #
2827
+ # * {Types::DescribeImportResponse#import_id #import_id} => String
2828
+ # * {Types::DescribeImportResponse#resource_specification #resource_specification} => Types::ImportResourceSpecification
2829
+ # * {Types::DescribeImportResponse#imported_resource_id #imported_resource_id} => String
2830
+ # * {Types::DescribeImportResponse#imported_resource_name #imported_resource_name} => String
2831
+ # * {Types::DescribeImportResponse#merge_strategy #merge_strategy} => String
2832
+ # * {Types::DescribeImportResponse#import_status #import_status} => String
2833
+ # * {Types::DescribeImportResponse#failure_reasons #failure_reasons} => Array&lt;String&gt;
2834
+ # * {Types::DescribeImportResponse#creation_date_time #creation_date_time} => Time
2835
+ # * {Types::DescribeImportResponse#last_updated_date_time #last_updated_date_time} => Time
2836
+ #
2837
+ # @example Request syntax with placeholder values
2838
+ #
2839
+ # resp = client.describe_import({
2840
+ # import_id: "Id", # required
2841
+ # })
2842
+ #
2843
+ # @example Response structure
2844
+ #
2845
+ # resp.import_id #=> String
2846
+ # resp.resource_specification.bot_import_specification.bot_name #=> String
2847
+ # resp.resource_specification.bot_import_specification.role_arn #=> String
2848
+ # resp.resource_specification.bot_import_specification.data_privacy.child_directed #=> Boolean
2849
+ # resp.resource_specification.bot_import_specification.idle_session_ttl_in_seconds #=> Integer
2850
+ # resp.resource_specification.bot_import_specification.bot_tags #=> Hash
2851
+ # resp.resource_specification.bot_import_specification.bot_tags["TagKey"] #=> String
2852
+ # resp.resource_specification.bot_import_specification.test_bot_alias_tags #=> Hash
2853
+ # resp.resource_specification.bot_import_specification.test_bot_alias_tags["TagKey"] #=> String
2854
+ # resp.resource_specification.bot_locale_import_specification.bot_id #=> String
2855
+ # resp.resource_specification.bot_locale_import_specification.bot_version #=> String
2856
+ # resp.resource_specification.bot_locale_import_specification.locale_id #=> String
2857
+ # resp.resource_specification.bot_locale_import_specification.nlu_intent_confidence_threshold #=> Float
2858
+ # resp.resource_specification.bot_locale_import_specification.voice_settings.voice_id #=> String
2859
+ # resp.imported_resource_id #=> String
2860
+ # resp.imported_resource_name #=> String
2861
+ # resp.merge_strategy #=> String, one of "Overwrite", "FailOnConflict"
2862
+ # resp.import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
2863
+ # resp.failure_reasons #=> Array
2864
+ # resp.failure_reasons[0] #=> String
2865
+ # resp.creation_date_time #=> Time
2866
+ # resp.last_updated_date_time #=> Time
2867
+ #
2868
+ #
2869
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
2870
+ #
2871
+ # * bot_import_completed
2872
+ #
2873
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeImport AWS API Documentation
2874
+ #
2875
+ # @overload describe_import(params = {})
2876
+ # @param [Hash] params ({})
2877
+ def describe_import(params = {}, options = {})
2878
+ req = build_request(:describe_import, params)
2879
+ req.send_request(options)
2880
+ end
2881
+
2342
2882
  # Returns metadata about an intent.
2343
2883
  #
2344
2884
  # @option params [required, String] :intent_id
@@ -2353,12 +2893,11 @@ module Aws::LexModelsV2
2353
2893
  # @option params [required, String] :locale_id
2354
2894
  # The identifier of the language and locale of the intent to describe.
2355
2895
  # The string must match one of the supported locales. For more
2356
- # information, see
2357
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
2896
+ # information, see [Supported languages][1].
2358
2897
  #
2359
2898
  #
2360
2899
  #
2361
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2900
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2362
2901
  #
2363
2902
  # @return [Types::DescribeIntentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2364
2903
  #
@@ -2491,6 +3030,39 @@ module Aws::LexModelsV2
2491
3030
  req.send_request(options)
2492
3031
  end
2493
3032
 
3033
+ # Gets the resource policy and policy revision for a bot or bot alias.
3034
+ #
3035
+ # @option params [required, String] :resource_arn
3036
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
3037
+ # resource policy is attached to.
3038
+ #
3039
+ # @return [Types::DescribeResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3040
+ #
3041
+ # * {Types::DescribeResourcePolicyResponse#resource_arn #resource_arn} => String
3042
+ # * {Types::DescribeResourcePolicyResponse#policy #policy} => String
3043
+ # * {Types::DescribeResourcePolicyResponse#revision_id #revision_id} => String
3044
+ #
3045
+ # @example Request syntax with placeholder values
3046
+ #
3047
+ # resp = client.describe_resource_policy({
3048
+ # resource_arn: "AmazonResourceName", # required
3049
+ # })
3050
+ #
3051
+ # @example Response structure
3052
+ #
3053
+ # resp.resource_arn #=> String
3054
+ # resp.policy #=> String
3055
+ # resp.revision_id #=> String
3056
+ #
3057
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeResourcePolicy AWS API Documentation
3058
+ #
3059
+ # @overload describe_resource_policy(params = {})
3060
+ # @param [Hash] params ({})
3061
+ def describe_resource_policy(params = {}, options = {})
3062
+ req = build_request(:describe_resource_policy, params)
3063
+ req.send_request(options)
3064
+ end
3065
+
2494
3066
  # Gets metadata information about a slot.
2495
3067
  #
2496
3068
  # @option params [required, String] :slot_id
@@ -2505,12 +3077,11 @@ module Aws::LexModelsV2
2505
3077
  # @option params [required, String] :locale_id
2506
3078
  # The identifier of the language and locale of the slot to describe. The
2507
3079
  # string must match one of the supported locales. For more information,
2508
- # see
2509
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
3080
+ # see [Supported languages][1].
2510
3081
  #
2511
3082
  #
2512
3083
  #
2513
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3084
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2514
3085
  #
2515
3086
  # @option params [required, String] :intent_id
2516
3087
  # The identifier of the intent that contains the slot.
@@ -2529,6 +3100,7 @@ module Aws::LexModelsV2
2529
3100
  # * {Types::DescribeSlotResponse#intent_id #intent_id} => String
2530
3101
  # * {Types::DescribeSlotResponse#creation_date_time #creation_date_time} => Time
2531
3102
  # * {Types::DescribeSlotResponse#last_updated_date_time #last_updated_date_time} => Time
3103
+ # * {Types::DescribeSlotResponse#multiple_values_setting #multiple_values_setting} => Types::MultipleValuesSetting
2532
3104
  #
2533
3105
  # @example Request syntax with placeholder values
2534
3106
  #
@@ -2645,6 +3217,7 @@ module Aws::LexModelsV2
2645
3217
  # resp.intent_id #=> String
2646
3218
  # resp.creation_date_time #=> Time
2647
3219
  # resp.last_updated_date_time #=> Time
3220
+ # resp.multiple_values_setting.allow_multiple_values #=> Boolean
2648
3221
  #
2649
3222
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeSlot AWS API Documentation
2650
3223
  #
@@ -2669,12 +3242,11 @@ module Aws::LexModelsV2
2669
3242
  # @option params [required, String] :locale_id
2670
3243
  # The identifier of the language and locale of the slot type to
2671
3244
  # describe. The string must match one of the supported locales. For more
2672
- # information, see
2673
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
3245
+ # information, see [Supported languages][1].
2674
3246
  #
2675
3247
  #
2676
3248
  #
2677
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3249
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2678
3250
  #
2679
3251
  # @return [Types::DescribeSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2680
3252
  #
@@ -2846,7 +3418,7 @@ module Aws::LexModelsV2
2846
3418
  # resp.bot_locale_summaries[0].locale_id #=> String
2847
3419
  # resp.bot_locale_summaries[0].locale_name #=> String
2848
3420
  # resp.bot_locale_summaries[0].description #=> String
2849
- # resp.bot_locale_summaries[0].bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt"
3421
+ # resp.bot_locale_summaries[0].bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
2850
3422
  # resp.bot_locale_summaries[0].last_updated_date_time #=> Time
2851
3423
  # resp.bot_locale_summaries[0].last_build_submitted_date_time #=> Time
2852
3424
  #
@@ -2915,7 +3487,7 @@ module Aws::LexModelsV2
2915
3487
  # resp.bot_version_summaries[0].bot_name #=> String
2916
3488
  # resp.bot_version_summaries[0].bot_version #=> String
2917
3489
  # resp.bot_version_summaries[0].description #=> String
2918
- # resp.bot_version_summaries[0].bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
3490
+ # resp.bot_version_summaries[0].bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
2919
3491
  # resp.bot_version_summaries[0].creation_date_time #=> Time
2920
3492
  # resp.next_token #=> String
2921
3493
  #
@@ -2981,7 +3553,7 @@ module Aws::LexModelsV2
2981
3553
  # resp.bot_summaries[0].bot_id #=> String
2982
3554
  # resp.bot_summaries[0].bot_name #=> String
2983
3555
  # resp.bot_summaries[0].description #=> String
2984
- # resp.bot_summaries[0].bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
3556
+ # resp.bot_summaries[0].bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
2985
3557
  # resp.bot_summaries[0].latest_bot_version #=> String
2986
3558
  # resp.bot_summaries[0].last_updated_date_time #=> Time
2987
3559
  # resp.next_token #=> String
@@ -3006,12 +3578,11 @@ module Aws::LexModelsV2
3006
3578
  # @option params [required, String] :locale_id
3007
3579
  # The identifier of the language and locale of the intents to list. The
3008
3580
  # string must match one of the supported locales. For more information,
3009
- # see
3010
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
3581
+ # see [Supported languages][1].
3011
3582
  #
3012
3583
  #
3013
3584
  #
3014
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3585
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3015
3586
  #
3016
3587
  # @option params [Types::BuiltInIntentSortBy] :sort_by
3017
3588
  # Specifies sorting parameters for the list of built-in intents. You can
@@ -3071,12 +3642,11 @@ module Aws::LexModelsV2
3071
3642
  # @option params [required, String] :locale_id
3072
3643
  # The identifier of the language and locale of the slot types to list.
3073
3644
  # The string must match one of the supported locales. For more
3074
- # information, see
3075
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
3645
+ # information, see [Supported languages][1].
3076
3646
  #
3077
3647
  #
3078
3648
  #
3079
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3649
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3080
3650
  #
3081
3651
  # @option params [Types::BuiltInSlotTypeSortBy] :sort_by
3082
3652
  # Determines the sort order for the response from the
@@ -3131,6 +3701,173 @@ module Aws::LexModelsV2
3131
3701
  req.send_request(options)
3132
3702
  end
3133
3703
 
3704
+ # Lists the exports for a bot or bot locale. Exports are kept in the
3705
+ # list for 7 days.
3706
+ #
3707
+ # @option params [String] :bot_id
3708
+ # The unique identifier that Amazon Lex assigned to the bot.
3709
+ #
3710
+ # @option params [String] :bot_version
3711
+ # The version of the bot to list exports for.
3712
+ #
3713
+ # @option params [Types::ExportSortBy] :sort_by
3714
+ # Determines the field that the list of exports is sorted by. You can
3715
+ # sort by the `LastUpdatedDateTime` field in ascending or descending
3716
+ # order.
3717
+ #
3718
+ # @option params [Array<Types::ExportFilter>] :filters
3719
+ # Provides the specification of a filter used to limit the exports in
3720
+ # the response to only those that match the filter specification. You
3721
+ # can only specify one filter and one string to filter on.
3722
+ #
3723
+ # @option params [Integer] :max_results
3724
+ # The maximum number of exports to return in each page of results. If
3725
+ # there are fewer results than the max page size, only the actual number
3726
+ # of results are returned.
3727
+ #
3728
+ # @option params [String] :next_token
3729
+ # If the response from the `ListExports` operation contans more results
3730
+ # that specified in the `maxResults` parameter, a token is returned in
3731
+ # the response. Use that token in the `nextToken` parameter to return
3732
+ # the next page of results.
3733
+ #
3734
+ # @return [Types::ListExportsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3735
+ #
3736
+ # * {Types::ListExportsResponse#bot_id #bot_id} => String
3737
+ # * {Types::ListExportsResponse#bot_version #bot_version} => String
3738
+ # * {Types::ListExportsResponse#export_summaries #export_summaries} => Array&lt;Types::ExportSummary&gt;
3739
+ # * {Types::ListExportsResponse#next_token #next_token} => String
3740
+ #
3741
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3742
+ #
3743
+ # @example Request syntax with placeholder values
3744
+ #
3745
+ # resp = client.list_exports({
3746
+ # bot_id: "Id",
3747
+ # bot_version: "BotVersion",
3748
+ # sort_by: {
3749
+ # attribute: "LastUpdatedDateTime", # required, accepts LastUpdatedDateTime
3750
+ # order: "Ascending", # required, accepts Ascending, Descending
3751
+ # },
3752
+ # filters: [
3753
+ # {
3754
+ # name: "ExportResourceType", # required, accepts ExportResourceType
3755
+ # values: ["FilterValue"], # required
3756
+ # operator: "CO", # required, accepts CO, EQ
3757
+ # },
3758
+ # ],
3759
+ # max_results: 1,
3760
+ # next_token: "NextToken",
3761
+ # })
3762
+ #
3763
+ # @example Response structure
3764
+ #
3765
+ # resp.bot_id #=> String
3766
+ # resp.bot_version #=> String
3767
+ # resp.export_summaries #=> Array
3768
+ # resp.export_summaries[0].export_id #=> String
3769
+ # resp.export_summaries[0].resource_specification.bot_export_specification.bot_id #=> String
3770
+ # resp.export_summaries[0].resource_specification.bot_export_specification.bot_version #=> String
3771
+ # resp.export_summaries[0].resource_specification.bot_locale_export_specification.bot_id #=> String
3772
+ # resp.export_summaries[0].resource_specification.bot_locale_export_specification.bot_version #=> String
3773
+ # resp.export_summaries[0].resource_specification.bot_locale_export_specification.locale_id #=> String
3774
+ # resp.export_summaries[0].file_format #=> String, one of "LexJson"
3775
+ # resp.export_summaries[0].export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
3776
+ # resp.export_summaries[0].creation_date_time #=> Time
3777
+ # resp.export_summaries[0].last_updated_date_time #=> Time
3778
+ # resp.next_token #=> String
3779
+ #
3780
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListExports AWS API Documentation
3781
+ #
3782
+ # @overload list_exports(params = {})
3783
+ # @param [Hash] params ({})
3784
+ def list_exports(params = {}, options = {})
3785
+ req = build_request(:list_exports, params)
3786
+ req.send_request(options)
3787
+ end
3788
+
3789
+ # Lists the imports for a bot or bot locale. Imports are kept in the
3790
+ # list for 7 days.
3791
+ #
3792
+ # @option params [String] :bot_id
3793
+ # The unique identifier that Amazon Lex assigned to the bot.
3794
+ #
3795
+ # @option params [String] :bot_version
3796
+ # The version of the bot to list imports for.
3797
+ #
3798
+ # @option params [Types::ImportSortBy] :sort_by
3799
+ # Determines the field that the list of imports is sorted by. You can
3800
+ # sort by the `LastUpdatedDateTime` field in ascending or descending
3801
+ # order.
3802
+ #
3803
+ # @option params [Array<Types::ImportFilter>] :filters
3804
+ # Provides the specification of a filter used to limit the bots in the
3805
+ # response to only those that match the filter specification. You can
3806
+ # only specify one filter and one string to filter on.
3807
+ #
3808
+ # @option params [Integer] :max_results
3809
+ # The maximum number of imports to return in each page of results. If
3810
+ # there are fewer results than the max page size, only the actual number
3811
+ # of results are returned.
3812
+ #
3813
+ # @option params [String] :next_token
3814
+ # If the response from the `ListImports` operation contains more results
3815
+ # than specified in the `maxResults` parameter, a token is returned in
3816
+ # the response. Use that token in the `nextToken` parameter to return
3817
+ # the next page of results.
3818
+ #
3819
+ # @return [Types::ListImportsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3820
+ #
3821
+ # * {Types::ListImportsResponse#bot_id #bot_id} => String
3822
+ # * {Types::ListImportsResponse#bot_version #bot_version} => String
3823
+ # * {Types::ListImportsResponse#import_summaries #import_summaries} => Array&lt;Types::ImportSummary&gt;
3824
+ # * {Types::ListImportsResponse#next_token #next_token} => String
3825
+ #
3826
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3827
+ #
3828
+ # @example Request syntax with placeholder values
3829
+ #
3830
+ # resp = client.list_imports({
3831
+ # bot_id: "Id",
3832
+ # bot_version: "DraftBotVersion",
3833
+ # sort_by: {
3834
+ # attribute: "LastUpdatedDateTime", # required, accepts LastUpdatedDateTime
3835
+ # order: "Ascending", # required, accepts Ascending, Descending
3836
+ # },
3837
+ # filters: [
3838
+ # {
3839
+ # name: "ImportResourceType", # required, accepts ImportResourceType
3840
+ # values: ["FilterValue"], # required
3841
+ # operator: "CO", # required, accepts CO, EQ
3842
+ # },
3843
+ # ],
3844
+ # max_results: 1,
3845
+ # next_token: "NextToken",
3846
+ # })
3847
+ #
3848
+ # @example Response structure
3849
+ #
3850
+ # resp.bot_id #=> String
3851
+ # resp.bot_version #=> String
3852
+ # resp.import_summaries #=> Array
3853
+ # resp.import_summaries[0].import_id #=> String
3854
+ # resp.import_summaries[0].imported_resource_id #=> String
3855
+ # resp.import_summaries[0].imported_resource_name #=> String
3856
+ # resp.import_summaries[0].import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
3857
+ # resp.import_summaries[0].merge_strategy #=> String, one of "Overwrite", "FailOnConflict"
3858
+ # resp.import_summaries[0].creation_date_time #=> Time
3859
+ # resp.import_summaries[0].last_updated_date_time #=> Time
3860
+ # resp.next_token #=> String
3861
+ #
3862
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListImports AWS API Documentation
3863
+ #
3864
+ # @overload list_imports(params = {})
3865
+ # @param [Hash] params ({})
3866
+ def list_imports(params = {}, options = {})
3867
+ req = build_request(:list_imports, params)
3868
+ req.send_request(options)
3869
+ end
3870
+
3134
3871
  # Get a list of intents that meet the specified criteria.
3135
3872
  #
3136
3873
  # @option params [required, String] :bot_id
@@ -3142,12 +3879,11 @@ module Aws::LexModelsV2
3142
3879
  # @option params [required, String] :locale_id
3143
3880
  # The identifier of the language and locale of the intents to list. The
3144
3881
  # string must match one of the supported locales. For more information,
3145
- # see
3146
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
3882
+ # see [Supported languages][1].
3147
3883
  #
3148
3884
  #
3149
3885
  #
3150
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3886
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3151
3887
  #
3152
3888
  # @option params [Types::IntentSortBy] :sort_by
3153
3889
  # Determines the sort order for the response from the `ListIntents`
@@ -3240,12 +3976,11 @@ module Aws::LexModelsV2
3240
3976
  # @option params [required, String] :locale_id
3241
3977
  # The identifier of the language and locale of the slot types to list.
3242
3978
  # The string must match one of the supported locales. For more
3243
- # information, see
3244
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
3979
+ # information, see [Supported languages][1].
3245
3980
  #
3246
3981
  #
3247
3982
  #
3248
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3983
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3249
3984
  #
3250
3985
  # @option params [Types::SlotTypeSortBy] :sort_by
3251
3986
  # Determines the sort order for the response from the `ListSlotTypes`
@@ -3332,12 +4067,11 @@ module Aws::LexModelsV2
3332
4067
  # @option params [required, String] :locale_id
3333
4068
  # The identifier of the language and locale of the slots to list. The
3334
4069
  # string must match one of the supported locales. For more information,
3335
- # see
3336
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
4070
+ # see [Supported languages][1].
3337
4071
  #
3338
4072
  #
3339
4073
  #
3340
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
4074
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3341
4075
  #
3342
4076
  # @option params [required, String] :intent_id
3343
4077
  # The unique identifier of the intent that contains the slot.
@@ -3473,6 +4207,97 @@ module Aws::LexModelsV2
3473
4207
  req.send_request(options)
3474
4208
  end
3475
4209
 
4210
+ # Starts importing a bot or bot locale from a zip archive that you
4211
+ # uploaded to an S3 bucket.
4212
+ #
4213
+ # @option params [required, String] :import_id
4214
+ # The unique identifier for the import. It is included in the response
4215
+ # from the operation.
4216
+ #
4217
+ # @option params [required, Types::ImportResourceSpecification] :resource_specification
4218
+ # Parameters for creating the bot or bot locale.
4219
+ #
4220
+ # @option params [required, String] :merge_strategy
4221
+ # The strategy to use when there is a name conflict between the imported
4222
+ # resource and an existing resource. When the merge strategy is
4223
+ # `FailOnConflict` existing resources are not overwritten and the import
4224
+ # fails.
4225
+ #
4226
+ # @option params [String] :file_password
4227
+ # The password used to encrypt the zip archive that contains the bot or
4228
+ # bot locale definition. You should always encrypt the zip archive to
4229
+ # protect it during transit between your site and Amazon Lex.
4230
+ #
4231
+ # @return [Types::StartImportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4232
+ #
4233
+ # * {Types::StartImportResponse#import_id #import_id} => String
4234
+ # * {Types::StartImportResponse#resource_specification #resource_specification} => Types::ImportResourceSpecification
4235
+ # * {Types::StartImportResponse#merge_strategy #merge_strategy} => String
4236
+ # * {Types::StartImportResponse#import_status #import_status} => String
4237
+ # * {Types::StartImportResponse#creation_date_time #creation_date_time} => Time
4238
+ #
4239
+ # @example Request syntax with placeholder values
4240
+ #
4241
+ # resp = client.start_import({
4242
+ # import_id: "Id", # required
4243
+ # resource_specification: { # required
4244
+ # bot_import_specification: {
4245
+ # bot_name: "Name", # required
4246
+ # role_arn: "RoleArn", # required
4247
+ # data_privacy: { # required
4248
+ # child_directed: false, # required
4249
+ # },
4250
+ # idle_session_ttl_in_seconds: 1,
4251
+ # bot_tags: {
4252
+ # "TagKey" => "TagValue",
4253
+ # },
4254
+ # test_bot_alias_tags: {
4255
+ # "TagKey" => "TagValue",
4256
+ # },
4257
+ # },
4258
+ # bot_locale_import_specification: {
4259
+ # bot_id: "Id", # required
4260
+ # bot_version: "DraftBotVersion", # required
4261
+ # locale_id: "LocaleId", # required
4262
+ # nlu_intent_confidence_threshold: 1.0,
4263
+ # voice_settings: {
4264
+ # voice_id: "VoiceId", # required
4265
+ # },
4266
+ # },
4267
+ # },
4268
+ # merge_strategy: "Overwrite", # required, accepts Overwrite, FailOnConflict
4269
+ # file_password: "ImportExportFilePassword",
4270
+ # })
4271
+ #
4272
+ # @example Response structure
4273
+ #
4274
+ # resp.import_id #=> String
4275
+ # resp.resource_specification.bot_import_specification.bot_name #=> String
4276
+ # resp.resource_specification.bot_import_specification.role_arn #=> String
4277
+ # resp.resource_specification.bot_import_specification.data_privacy.child_directed #=> Boolean
4278
+ # resp.resource_specification.bot_import_specification.idle_session_ttl_in_seconds #=> Integer
4279
+ # resp.resource_specification.bot_import_specification.bot_tags #=> Hash
4280
+ # resp.resource_specification.bot_import_specification.bot_tags["TagKey"] #=> String
4281
+ # resp.resource_specification.bot_import_specification.test_bot_alias_tags #=> Hash
4282
+ # resp.resource_specification.bot_import_specification.test_bot_alias_tags["TagKey"] #=> String
4283
+ # resp.resource_specification.bot_locale_import_specification.bot_id #=> String
4284
+ # resp.resource_specification.bot_locale_import_specification.bot_version #=> String
4285
+ # resp.resource_specification.bot_locale_import_specification.locale_id #=> String
4286
+ # resp.resource_specification.bot_locale_import_specification.nlu_intent_confidence_threshold #=> Float
4287
+ # resp.resource_specification.bot_locale_import_specification.voice_settings.voice_id #=> String
4288
+ # resp.merge_strategy #=> String, one of "Overwrite", "FailOnConflict"
4289
+ # resp.import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
4290
+ # resp.creation_date_time #=> Time
4291
+ #
4292
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/StartImport AWS API Documentation
4293
+ #
4294
+ # @overload start_import(params = {})
4295
+ # @param [Hash] params ({})
4296
+ def start_import(params = {}, options = {})
4297
+ req = build_request(:start_import, params)
4298
+ req.send_request(options)
4299
+ end
4300
+
3476
4301
  # Adds the specified tags to the specified resource. If a tag key
3477
4302
  # already exists, the existing value is replaced with the new value.
3478
4303
  #
@@ -3596,7 +4421,7 @@ module Aws::LexModelsV2
3596
4421
  # resp.role_arn #=> String
3597
4422
  # resp.data_privacy.child_directed #=> Boolean
3598
4423
  # resp.idle_session_ttl_in_seconds #=> Integer
3599
- # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
4424
+ # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
3600
4425
  # resp.creation_date_time #=> Time
3601
4426
  # resp.last_updated_date_time #=> Time
3602
4427
  #
@@ -3746,11 +4571,11 @@ module Aws::LexModelsV2
3746
4571
  # @option params [required, String] :locale_id
3747
4572
  # The identifier of the language and locale to update. The string must
3748
4573
  # match one of the supported locales. For more information, see
3749
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
4574
+ # [Supported languages][1].
3750
4575
  #
3751
4576
  #
3752
4577
  #
3753
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
4578
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3754
4579
  #
3755
4580
  # @option params [String] :description
3756
4581
  # The new description of the locale.
@@ -3800,7 +4625,7 @@ module Aws::LexModelsV2
3800
4625
  # resp.description #=> String
3801
4626
  # resp.nlu_intent_confidence_threshold #=> Float
3802
4627
  # resp.voice_settings.voice_id #=> String
3803
- # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt"
4628
+ # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
3804
4629
  # resp.failure_reasons #=> Array
3805
4630
  # resp.failure_reasons[0] #=> String
3806
4631
  # resp.creation_date_time #=> Time
@@ -3815,6 +4640,57 @@ module Aws::LexModelsV2
3815
4640
  req.send_request(options)
3816
4641
  end
3817
4642
 
4643
+ # Updates the password used to protect an export zip archive.
4644
+ #
4645
+ # The password is not required. If you don't supply a password, Amazon
4646
+ # Lex generates a zip file that is not protected by a password. This is
4647
+ # the archive that is available at the pre-signed S3 URL provided by the
4648
+ # operation.
4649
+ #
4650
+ # @option params [required, String] :export_id
4651
+ # The unique identifier Amazon Lex assigned to the export.
4652
+ #
4653
+ # @option params [String] :file_password
4654
+ # The new password to use to encrypt the export zip archive.
4655
+ #
4656
+ # @return [Types::UpdateExportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4657
+ #
4658
+ # * {Types::UpdateExportResponse#export_id #export_id} => String
4659
+ # * {Types::UpdateExportResponse#resource_specification #resource_specification} => Types::ExportResourceSpecification
4660
+ # * {Types::UpdateExportResponse#file_format #file_format} => String
4661
+ # * {Types::UpdateExportResponse#export_status #export_status} => String
4662
+ # * {Types::UpdateExportResponse#creation_date_time #creation_date_time} => Time
4663
+ # * {Types::UpdateExportResponse#last_updated_date_time #last_updated_date_time} => Time
4664
+ #
4665
+ # @example Request syntax with placeholder values
4666
+ #
4667
+ # resp = client.update_export({
4668
+ # export_id: "Id", # required
4669
+ # file_password: "ImportExportFilePassword",
4670
+ # })
4671
+ #
4672
+ # @example Response structure
4673
+ #
4674
+ # resp.export_id #=> String
4675
+ # resp.resource_specification.bot_export_specification.bot_id #=> String
4676
+ # resp.resource_specification.bot_export_specification.bot_version #=> String
4677
+ # resp.resource_specification.bot_locale_export_specification.bot_id #=> String
4678
+ # resp.resource_specification.bot_locale_export_specification.bot_version #=> String
4679
+ # resp.resource_specification.bot_locale_export_specification.locale_id #=> String
4680
+ # resp.file_format #=> String, one of "LexJson"
4681
+ # resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
4682
+ # resp.creation_date_time #=> Time
4683
+ # resp.last_updated_date_time #=> Time
4684
+ #
4685
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateExport AWS API Documentation
4686
+ #
4687
+ # @overload update_export(params = {})
4688
+ # @param [Hash] params ({})
4689
+ def update_export(params = {}, options = {})
4690
+ req = build_request(:update_export, params)
4691
+ req.send_request(options)
4692
+ end
4693
+
3818
4694
  # Updates the settings for an intent.
3819
4695
  #
3820
4696
  # @option params [required, String] :intent_id
@@ -3873,12 +4749,11 @@ module Aws::LexModelsV2
3873
4749
  # @option params [required, String] :locale_id
3874
4750
  # The identifier of the language and locale where this intent is used.
3875
4751
  # The string must match one of the supported locales. For more
3876
- # information, see
3877
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
4752
+ # information, see [Supported languages][1].
3878
4753
  #
3879
4754
  #
3880
4755
  #
3881
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
4756
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3882
4757
  #
3883
4758
  # @return [Types::UpdateIntentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3884
4759
  #
@@ -4212,6 +5087,62 @@ module Aws::LexModelsV2
4212
5087
  req.send_request(options)
4213
5088
  end
4214
5089
 
5090
+ # Replaces the existing resource policy for a bot or bot alias with a
5091
+ # new one. If the policy doesn't exist, Amazon Lex returns an
5092
+ # exception.
5093
+ #
5094
+ # @option params [required, String] :resource_arn
5095
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
5096
+ # resource policy is attached to.
5097
+ #
5098
+ # @option params [required, String] :policy
5099
+ # A resource policy to add to the resource. The policy is a JSON
5100
+ # structure that contains one or more statements that define the policy.
5101
+ # The policy must follow the IAM syntax. For more information about the
5102
+ # contents of a JSON policy document, see [ IAM JSON policy reference
5103
+ # ][1].
5104
+ #
5105
+ # If the policy isn't valid, Amazon Lex returns a validation exception.
5106
+ #
5107
+ #
5108
+ #
5109
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html
5110
+ #
5111
+ # @option params [String] :expected_revision_id
5112
+ # The identifier of the revision of the policy to update. If this
5113
+ # revision ID doesn't match the current revision ID, Amazon Lex throws
5114
+ # an exception.
5115
+ #
5116
+ # If you don't specify a revision, Amazon Lex overwrites the contents
5117
+ # of the policy with the new values.
5118
+ #
5119
+ # @return [Types::UpdateResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5120
+ #
5121
+ # * {Types::UpdateResourcePolicyResponse#resource_arn #resource_arn} => String
5122
+ # * {Types::UpdateResourcePolicyResponse#revision_id #revision_id} => String
5123
+ #
5124
+ # @example Request syntax with placeholder values
5125
+ #
5126
+ # resp = client.update_resource_policy({
5127
+ # resource_arn: "AmazonResourceName", # required
5128
+ # policy: "Policy", # required
5129
+ # expected_revision_id: "RevisionId",
5130
+ # })
5131
+ #
5132
+ # @example Response structure
5133
+ #
5134
+ # resp.resource_arn #=> String
5135
+ # resp.revision_id #=> String
5136
+ #
5137
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateResourcePolicy AWS API Documentation
5138
+ #
5139
+ # @overload update_resource_policy(params = {})
5140
+ # @param [Hash] params ({})
5141
+ def update_resource_policy(params = {}, options = {})
5142
+ req = build_request(:update_resource_policy, params)
5143
+ req.send_request(options)
5144
+ end
5145
+
4215
5146
  # Updates the settings for a slot.
4216
5147
  #
4217
5148
  # @option params [required, String] :slot_id
@@ -4244,16 +5175,24 @@ module Aws::LexModelsV2
4244
5175
  # @option params [required, String] :locale_id
4245
5176
  # The identifier of the language and locale that contains the slot. The
4246
5177
  # string must match one of the supported locales. For more information,
4247
- # see
4248
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
5178
+ # see [Supported languages][1].
4249
5179
  #
4250
5180
  #
4251
5181
  #
4252
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
5182
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
4253
5183
  #
4254
5184
  # @option params [required, String] :intent_id
4255
5185
  # The identifier of the intent that contains the slot.
4256
5186
  #
5187
+ # @option params [Types::MultipleValuesSetting] :multiple_values_setting
5188
+ # Determines whether the slot accepts multiple values in one response.
5189
+ # Multiple value slots are only available in the en-US locale. If you
5190
+ # set this value to `true` in any other locale, Amazon Lex throws a
5191
+ # `ValidationException`.
5192
+ #
5193
+ # If the `multipleValuesSetting` is not set, the default value is
5194
+ # `false`.
5195
+ #
4257
5196
  # @return [Types::UpdateSlotResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4258
5197
  #
4259
5198
  # * {Types::UpdateSlotResponse#slot_id #slot_id} => String
@@ -4268,6 +5207,7 @@ module Aws::LexModelsV2
4268
5207
  # * {Types::UpdateSlotResponse#intent_id #intent_id} => String
4269
5208
  # * {Types::UpdateSlotResponse#creation_date_time #creation_date_time} => Time
4270
5209
  # * {Types::UpdateSlotResponse#last_updated_date_time #last_updated_date_time} => Time
5210
+ # * {Types::UpdateSlotResponse#multiple_values_setting #multiple_values_setting} => Types::MultipleValuesSetting
4271
5211
  #
4272
5212
  # @example Request syntax with placeholder values
4273
5213
  #
@@ -4515,6 +5455,9 @@ module Aws::LexModelsV2
4515
5455
  # bot_version: "DraftBotVersion", # required
4516
5456
  # locale_id: "LocaleId", # required
4517
5457
  # intent_id: "Id", # required
5458
+ # multiple_values_setting: {
5459
+ # allow_multiple_values: false,
5460
+ # },
4518
5461
  # })
4519
5462
  #
4520
5463
  # @example Response structure
@@ -4622,6 +5565,7 @@ module Aws::LexModelsV2
4622
5565
  # resp.intent_id #=> String
4623
5566
  # resp.creation_date_time #=> Time
4624
5567
  # resp.last_updated_date_time #=> Time
5568
+ # resp.multiple_values_setting.allow_multiple_values #=> Boolean
4625
5569
  #
4626
5570
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlot AWS API Documentation
4627
5571
  #
@@ -4664,12 +5608,11 @@ module Aws::LexModelsV2
4664
5608
  # @option params [required, String] :locale_id
4665
5609
  # The identifier of the language and locale that contains the slot type.
4666
5610
  # The string must match one of the supported locales. For more
4667
- # information, see
4668
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
5611
+ # information, see [Supported languages][1].
4669
5612
  #
4670
5613
  #
4671
5614
  #
4672
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
5615
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
4673
5616
  #
4674
5617
  # @return [Types::UpdateSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4675
5618
  #
@@ -4755,14 +5698,141 @@ module Aws::LexModelsV2
4755
5698
  params: params,
4756
5699
  config: config)
4757
5700
  context[:gem_name] = 'aws-sdk-lexmodelsv2'
4758
- context[:gem_version] = '1.2.0'
5701
+ context[:gem_version] = '1.6.0'
4759
5702
  Seahorse::Client::Request.new(handlers, context)
4760
5703
  end
4761
5704
 
5705
+ # Polls an API operation until a resource enters a desired state.
5706
+ #
5707
+ # ## Basic Usage
5708
+ #
5709
+ # A waiter will call an API operation until:
5710
+ #
5711
+ # * It is successful
5712
+ # * It enters a terminal state
5713
+ # * It makes the maximum number of attempts
5714
+ #
5715
+ # In between attempts, the waiter will sleep.
5716
+ #
5717
+ # # polls in a loop, sleeping between attempts
5718
+ # client.wait_until(waiter_name, params)
5719
+ #
5720
+ # ## Configuration
5721
+ #
5722
+ # You can configure the maximum number of polling attempts, and the
5723
+ # delay (in seconds) between each polling attempt. You can pass
5724
+ # configuration as the final arguments hash.
5725
+ #
5726
+ # # poll for ~25 seconds
5727
+ # client.wait_until(waiter_name, params, {
5728
+ # max_attempts: 5,
5729
+ # delay: 5,
5730
+ # })
5731
+ #
5732
+ # ## Callbacks
5733
+ #
5734
+ # You can be notified before each polling attempt and before each
5735
+ # delay. If you throw `:success` or `:failure` from these callbacks,
5736
+ # it will terminate the waiter.
5737
+ #
5738
+ # started_at = Time.now
5739
+ # client.wait_until(waiter_name, params, {
5740
+ #
5741
+ # # disable max attempts
5742
+ # max_attempts: nil,
5743
+ #
5744
+ # # poll for 1 hour, instead of a number of attempts
5745
+ # before_wait: -> (attempts, response) do
5746
+ # throw :failure if Time.now - started_at > 3600
5747
+ # end
5748
+ # })
5749
+ #
5750
+ # ## Handling Errors
5751
+ #
5752
+ # When a waiter is unsuccessful, it will raise an error.
5753
+ # All of the failure errors extend from
5754
+ # {Aws::Waiters::Errors::WaiterFailed}.
5755
+ #
5756
+ # begin
5757
+ # client.wait_until(...)
5758
+ # rescue Aws::Waiters::Errors::WaiterFailed
5759
+ # # resource did not enter the desired state in time
5760
+ # end
5761
+ #
5762
+ # ## Valid Waiters
5763
+ #
5764
+ # The following table lists the valid waiter names, the operations they call,
5765
+ # and the default `:delay` and `:max_attempts` values.
5766
+ #
5767
+ # | waiter_name | params | :delay | :max_attempts |
5768
+ # | ------------------------------------ | ----------------------------- | -------- | ------------- |
5769
+ # | bot_alias_available | {Client#describe_bot_alias} | 10 | 35 |
5770
+ # | bot_available | {Client#describe_bot} | 10 | 35 |
5771
+ # | bot_export_completed | {Client#describe_export} | 10 | 35 |
5772
+ # | bot_import_completed | {Client#describe_import} | 10 | 35 |
5773
+ # | bot_locale_built | {Client#describe_bot_locale} | 10 | 35 |
5774
+ # | bot_locale_created | {Client#describe_bot_locale} | 10 | 35 |
5775
+ # | bot_locale_express_testing_available | {Client#describe_bot_locale} | 10 | 35 |
5776
+ # | bot_version_available | {Client#describe_bot_version} | 10 | 35 |
5777
+ #
5778
+ # @raise [Errors::FailureStateError] Raised when the waiter terminates
5779
+ # because the waiter has entered a state that it will not transition
5780
+ # out of, preventing success.
5781
+ #
5782
+ # @raise [Errors::TooManyAttemptsError] Raised when the configured
5783
+ # maximum number of attempts have been made, and the waiter is not
5784
+ # yet successful.
5785
+ #
5786
+ # @raise [Errors::UnexpectedError] Raised when an error is encounted
5787
+ # while polling for a resource that is not expected.
5788
+ #
5789
+ # @raise [Errors::NoSuchWaiterError] Raised when you request to wait
5790
+ # for an unknown state.
5791
+ #
5792
+ # @return [Boolean] Returns `true` if the waiter was successful.
5793
+ # @param [Symbol] waiter_name
5794
+ # @param [Hash] params ({})
5795
+ # @param [Hash] options ({})
5796
+ # @option options [Integer] :max_attempts
5797
+ # @option options [Integer] :delay
5798
+ # @option options [Proc] :before_attempt
5799
+ # @option options [Proc] :before_wait
5800
+ def wait_until(waiter_name, params = {}, options = {})
5801
+ w = waiter(waiter_name, options)
5802
+ yield(w.waiter) if block_given? # deprecated
5803
+ w.wait(params)
5804
+ end
5805
+
4762
5806
  # @api private
4763
5807
  # @deprecated
4764
5808
  def waiter_names
4765
- []
5809
+ waiters.keys
5810
+ end
5811
+
5812
+ private
5813
+
5814
+ # @param [Symbol] waiter_name
5815
+ # @param [Hash] options ({})
5816
+ def waiter(waiter_name, options = {})
5817
+ waiter_class = waiters[waiter_name]
5818
+ if waiter_class
5819
+ waiter_class.new(options.merge(client: self))
5820
+ else
5821
+ raise Aws::Waiters::Errors::NoSuchWaiterError.new(waiter_name, waiters.keys)
5822
+ end
5823
+ end
5824
+
5825
+ def waiters
5826
+ {
5827
+ bot_alias_available: Waiters::BotAliasAvailable,
5828
+ bot_available: Waiters::BotAvailable,
5829
+ bot_export_completed: Waiters::BotExportCompleted,
5830
+ bot_import_completed: Waiters::BotImportCompleted,
5831
+ bot_locale_built: Waiters::BotLocaleBuilt,
5832
+ bot_locale_created: Waiters::BotLocaleCreated,
5833
+ bot_locale_express_testing_available: Waiters::BotLocaleExpressTestingAvailable,
5834
+ bot_version_available: Waiters::BotVersionAvailable
5835
+ }
4766
5836
  end
4767
5837
 
4768
5838
  class << self