aws-sdk-lexmodelsv2 1.2.0 → 1.3.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: 8b253026c4990cc2405291342012919dc31d257ab49b2e4174d17de16fb9c495
4
+ data.tar.gz: 1f532da8491cffbeb75b02b50f2843bf8a0af8131e295c1975c133d7f2bf87b3
5
5
  SHA512:
6
- metadata.gz: a08a1d9b8e7163031003c61fda1192d6b30d54216a31f3f6c918f2ffd6b5732727fc997142c6ca63df6864fd8bfd40c483a0b1cb309a358caba9b11aedc27f5b
7
- data.tar.gz: 6d59a5bf953b282abf2bcd12273cd65f35eeeccf8e977c5d0c77e03af4291d0d0ce937086e50ced8595e1df9088c3ab46f0210b57c1fdb7d7de917e29fc41ec9
6
+ metadata.gz: 348dde856044652c80b0d1ab7a961a4eb530c94564e7b15de27842ddd9a258cacd5405efc2e23db4ddbaaef9bcb3b75bc8ae866bf84d8a5de9a5fa07cfabe872
7
+ data.tar.gz: d27a2bbb50e4004b42f0a3f852df563caee482059713d163bdc7d2d338414884afeeaeb9217bb92df71b6188051d0086737a8760aca75ef12f0e33d75a518b92
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.3.0 (2021-05-18)
5
+ ------------------
6
+
7
+ * 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
8
+
4
9
  1.2.0 (2021-03-10)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.3.0
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-lexmodelsv2/customizations'
48
48
  # @!group service
49
49
  module Aws::LexModelsV2
50
50
 
51
- GEM_VERSION = '1.2.0'
51
+ GEM_VERSION = '1.3.0'
52
52
 
53
53
  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
  #
@@ -1268,12 +1344,11 @@ module Aws::LexModelsV2
1268
1344
  # The identifier of the language and locale that the slot will be used
1269
1345
  # in. The string must match one of the supported locales. All of the
1270
1346
  # 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].
1347
+ # For more information, see [Supported languages][1].
1273
1348
  #
1274
1349
  #
1275
1350
  #
1276
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
1351
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
1277
1352
  #
1278
1353
  # @option params [required, String] :intent_id
1279
1354
  # The identifier of the intent that contains the slot.
@@ -1705,12 +1780,11 @@ module Aws::LexModelsV2
1705
1780
  # The identifier of the language and locale that the slot type will be
1706
1781
  # used in. The string must match one of the supported locales. All of
1707
1782
  # 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].
1783
+ # locale. For more information, see [Supported languages][1].
1710
1784
  #
1711
1785
  #
1712
1786
  #
1713
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
1787
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
1714
1788
  #
1715
1789
  # @return [Types::CreateSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1716
1790
  #
@@ -1780,6 +1854,28 @@ module Aws::LexModelsV2
1780
1854
  req.send_request(options)
1781
1855
  end
1782
1856
 
1857
+ # Gets a pre-signed S3 write URL that you use to upload the zip archive
1858
+ # when importing a bot or a bot locale.
1859
+ #
1860
+ # @return [Types::CreateUploadUrlResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1861
+ #
1862
+ # * {Types::CreateUploadUrlResponse#import_id #import_id} => String
1863
+ # * {Types::CreateUploadUrlResponse#upload_url #upload_url} => String
1864
+ #
1865
+ # @example Response structure
1866
+ #
1867
+ # resp.import_id #=> String
1868
+ # resp.upload_url #=> String
1869
+ #
1870
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateUploadUrl AWS API Documentation
1871
+ #
1872
+ # @overload create_upload_url(params = {})
1873
+ # @param [Hash] params ({})
1874
+ def create_upload_url(params = {}, options = {})
1875
+ req = build_request(:create_upload_url, params)
1876
+ req.send_request(options)
1877
+ end
1878
+
1783
1879
  # Deletes all versions of a bot, including the `Draft` version. To
1784
1880
  # delete a specific version, use the `DeleteBotVersion` operation.
1785
1881
  #
@@ -1813,7 +1909,7 @@ module Aws::LexModelsV2
1813
1909
  # @example Response structure
1814
1910
  #
1815
1911
  # resp.bot_id #=> String
1816
- # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
1912
+ # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
1817
1913
  #
1818
1914
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteBot AWS API Documentation
1819
1915
  #
@@ -1879,12 +1975,11 @@ module Aws::LexModelsV2
1879
1975
  # @option params [required, String] :locale_id
1880
1976
  # The identifier of the language and locale that will be deleted. The
1881
1977
  # 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].
1978
+ # see [Supported languages][1].
1884
1979
  #
1885
1980
  #
1886
1981
  #
1887
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
1982
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
1888
1983
  #
1889
1984
  # @return [Types::DeleteBotLocaleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1890
1985
  #
@@ -1906,7 +2001,7 @@ module Aws::LexModelsV2
1906
2001
  # resp.bot_id #=> String
1907
2002
  # resp.bot_version #=> String
1908
2003
  # resp.locale_id #=> String
1909
- # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt"
2004
+ # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
1910
2005
  #
1911
2006
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteBotLocale AWS API Documentation
1912
2007
  #
@@ -1951,7 +2046,7 @@ module Aws::LexModelsV2
1951
2046
  #
1952
2047
  # resp.bot_id #=> String
1953
2048
  # resp.bot_version #=> String
1954
- # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
2049
+ # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
1955
2050
  #
1956
2051
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteBotVersion AWS API Documentation
1957
2052
  #
@@ -1962,6 +2057,68 @@ module Aws::LexModelsV2
1962
2057
  req.send_request(options)
1963
2058
  end
1964
2059
 
2060
+ # Removes a previous export and the associated files stored in an S3
2061
+ # bucket.
2062
+ #
2063
+ # @option params [required, String] :export_id
2064
+ # The unique identifier of the export to delete.
2065
+ #
2066
+ # @return [Types::DeleteExportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2067
+ #
2068
+ # * {Types::DeleteExportResponse#export_id #export_id} => String
2069
+ # * {Types::DeleteExportResponse#export_status #export_status} => String
2070
+ #
2071
+ # @example Request syntax with placeholder values
2072
+ #
2073
+ # resp = client.delete_export({
2074
+ # export_id: "Id", # required
2075
+ # })
2076
+ #
2077
+ # @example Response structure
2078
+ #
2079
+ # resp.export_id #=> String
2080
+ # resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
2081
+ #
2082
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteExport AWS API Documentation
2083
+ #
2084
+ # @overload delete_export(params = {})
2085
+ # @param [Hash] params ({})
2086
+ def delete_export(params = {}, options = {})
2087
+ req = build_request(:delete_export, params)
2088
+ req.send_request(options)
2089
+ end
2090
+
2091
+ # Removes a previous import and the associated file stored in an S3
2092
+ # bucket.
2093
+ #
2094
+ # @option params [required, String] :import_id
2095
+ # The unique identifier of the import to delete.
2096
+ #
2097
+ # @return [Types::DeleteImportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2098
+ #
2099
+ # * {Types::DeleteImportResponse#import_id #import_id} => String
2100
+ # * {Types::DeleteImportResponse#import_status #import_status} => String
2101
+ #
2102
+ # @example Request syntax with placeholder values
2103
+ #
2104
+ # resp = client.delete_import({
2105
+ # import_id: "Id", # required
2106
+ # })
2107
+ #
2108
+ # @example Response structure
2109
+ #
2110
+ # resp.import_id #=> String
2111
+ # resp.import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
2112
+ #
2113
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteImport AWS API Documentation
2114
+ #
2115
+ # @overload delete_import(params = {})
2116
+ # @param [Hash] params ({})
2117
+ def delete_import(params = {}, options = {})
2118
+ req = build_request(:delete_import, params)
2119
+ req.send_request(options)
2120
+ end
2121
+
1965
2122
  # Removes the specified intent.
1966
2123
  #
1967
2124
  # Deleting an intent also deletes the slots associated with the intent.
@@ -1978,12 +2135,11 @@ module Aws::LexModelsV2
1978
2135
  # @option params [required, String] :locale_id
1979
2136
  # The identifier of the language and locale where the bot will be
1980
2137
  # 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].
2138
+ # information, see [Supported languages][1].
1983
2139
  #
1984
2140
  #
1985
2141
  #
1986
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2142
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
1987
2143
  #
1988
2144
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1989
2145
  #
@@ -2019,12 +2175,11 @@ module Aws::LexModelsV2
2019
2175
  # @option params [required, String] :locale_id
2020
2176
  # The identifier of the language and locale that the slot will be
2021
2177
  # 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].
2178
+ # more information, see [Supported languages][1].
2024
2179
  #
2025
2180
  #
2026
2181
  #
2027
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2182
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2028
2183
  #
2029
2184
  # @option params [required, String] :intent_id
2030
2185
  # The identifier of the intent associated with the slot.
@@ -2068,12 +2223,11 @@ module Aws::LexModelsV2
2068
2223
  # @option params [required, String] :locale_id
2069
2224
  # The identifier of the language and locale that the slot type will be
2070
2225
  # 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].
2226
+ # more information, see [Supported languages][1].
2073
2227
  #
2074
2228
  #
2075
2229
  #
2076
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2230
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2077
2231
  #
2078
2232
  # @option params [Boolean] :skip_resource_in_use_check
2079
2233
  # By default, the `DeleteSlotType` operations throws a
@@ -2133,7 +2287,7 @@ module Aws::LexModelsV2
2133
2287
  # resp.role_arn #=> String
2134
2288
  # resp.data_privacy.child_directed #=> Boolean
2135
2289
  # resp.idle_session_ttl_in_seconds #=> Integer
2136
- # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
2290
+ # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
2137
2291
  # resp.creation_date_time #=> Time
2138
2292
  # resp.last_updated_date_time #=> Time
2139
2293
  #
@@ -2224,12 +2378,12 @@ module Aws::LexModelsV2
2224
2378
  #
2225
2379
  # @option params [required, String] :locale_id
2226
2380
  # 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].
2381
+ # one of the supported locales. For more information, see [Supported
2382
+ # languages][1].
2229
2383
  #
2230
2384
  #
2231
2385
  #
2232
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2386
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2233
2387
  #
2234
2388
  # @return [Types::DescribeBotLocaleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2235
2389
  #
@@ -2268,7 +2422,7 @@ module Aws::LexModelsV2
2268
2422
  # resp.voice_settings.voice_id #=> String
2269
2423
  # resp.intents_count #=> Integer
2270
2424
  # resp.slot_types_count #=> Integer
2271
- # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt"
2425
+ # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
2272
2426
  # resp.failure_reasons #=> Array
2273
2427
  # resp.failure_reasons[0] #=> String
2274
2428
  # resp.creation_date_time #=> Time
@@ -2325,7 +2479,7 @@ module Aws::LexModelsV2
2325
2479
  # resp.role_arn #=> String
2326
2480
  # resp.data_privacy.child_directed #=> Boolean
2327
2481
  # resp.idle_session_ttl_in_seconds #=> Integer
2328
- # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
2482
+ # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
2329
2483
  # resp.failure_reasons #=> Array
2330
2484
  # resp.failure_reasons[0] #=> String
2331
2485
  # resp.creation_date_time #=> Time
@@ -2339,6 +2493,110 @@ module Aws::LexModelsV2
2339
2493
  req.send_request(options)
2340
2494
  end
2341
2495
 
2496
+ # Gets information about a specific export.
2497
+ #
2498
+ # @option params [required, String] :export_id
2499
+ # The unique identifier of the export to describe.
2500
+ #
2501
+ # @return [Types::DescribeExportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2502
+ #
2503
+ # * {Types::DescribeExportResponse#export_id #export_id} => String
2504
+ # * {Types::DescribeExportResponse#resource_specification #resource_specification} => Types::ExportResourceSpecification
2505
+ # * {Types::DescribeExportResponse#file_format #file_format} => String
2506
+ # * {Types::DescribeExportResponse#export_status #export_status} => String
2507
+ # * {Types::DescribeExportResponse#failure_reasons #failure_reasons} => Array<String>
2508
+ # * {Types::DescribeExportResponse#download_url #download_url} => String
2509
+ # * {Types::DescribeExportResponse#creation_date_time #creation_date_time} => Time
2510
+ # * {Types::DescribeExportResponse#last_updated_date_time #last_updated_date_time} => Time
2511
+ #
2512
+ # @example Request syntax with placeholder values
2513
+ #
2514
+ # resp = client.describe_export({
2515
+ # export_id: "Id", # required
2516
+ # })
2517
+ #
2518
+ # @example Response structure
2519
+ #
2520
+ # resp.export_id #=> String
2521
+ # resp.resource_specification.bot_export_specification.bot_id #=> String
2522
+ # resp.resource_specification.bot_export_specification.bot_version #=> String
2523
+ # resp.resource_specification.bot_locale_export_specification.bot_id #=> String
2524
+ # resp.resource_specification.bot_locale_export_specification.bot_version #=> String
2525
+ # resp.resource_specification.bot_locale_export_specification.locale_id #=> String
2526
+ # resp.file_format #=> String, one of "LexJson"
2527
+ # resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
2528
+ # resp.failure_reasons #=> Array
2529
+ # resp.failure_reasons[0] #=> String
2530
+ # resp.download_url #=> String
2531
+ # resp.creation_date_time #=> Time
2532
+ # resp.last_updated_date_time #=> Time
2533
+ #
2534
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeExport AWS API Documentation
2535
+ #
2536
+ # @overload describe_export(params = {})
2537
+ # @param [Hash] params ({})
2538
+ def describe_export(params = {}, options = {})
2539
+ req = build_request(:describe_export, params)
2540
+ req.send_request(options)
2541
+ end
2542
+
2543
+ # Gets information about a specific import.
2544
+ #
2545
+ # @option params [required, String] :import_id
2546
+ # The unique identifier of the import to describe.
2547
+ #
2548
+ # @return [Types::DescribeImportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2549
+ #
2550
+ # * {Types::DescribeImportResponse#import_id #import_id} => String
2551
+ # * {Types::DescribeImportResponse#resource_specification #resource_specification} => Types::ImportResourceSpecification
2552
+ # * {Types::DescribeImportResponse#imported_resource_id #imported_resource_id} => String
2553
+ # * {Types::DescribeImportResponse#imported_resource_name #imported_resource_name} => String
2554
+ # * {Types::DescribeImportResponse#merge_strategy #merge_strategy} => String
2555
+ # * {Types::DescribeImportResponse#import_status #import_status} => String
2556
+ # * {Types::DescribeImportResponse#failure_reasons #failure_reasons} => Array<String>
2557
+ # * {Types::DescribeImportResponse#creation_date_time #creation_date_time} => Time
2558
+ # * {Types::DescribeImportResponse#last_updated_date_time #last_updated_date_time} => Time
2559
+ #
2560
+ # @example Request syntax with placeholder values
2561
+ #
2562
+ # resp = client.describe_import({
2563
+ # import_id: "Id", # required
2564
+ # })
2565
+ #
2566
+ # @example Response structure
2567
+ #
2568
+ # resp.import_id #=> String
2569
+ # resp.resource_specification.bot_import_specification.bot_name #=> String
2570
+ # resp.resource_specification.bot_import_specification.role_arn #=> String
2571
+ # resp.resource_specification.bot_import_specification.data_privacy.child_directed #=> Boolean
2572
+ # resp.resource_specification.bot_import_specification.idle_session_ttl_in_seconds #=> Integer
2573
+ # resp.resource_specification.bot_import_specification.bot_tags #=> Hash
2574
+ # resp.resource_specification.bot_import_specification.bot_tags["TagKey"] #=> String
2575
+ # resp.resource_specification.bot_import_specification.test_bot_alias_tags #=> Hash
2576
+ # resp.resource_specification.bot_import_specification.test_bot_alias_tags["TagKey"] #=> String
2577
+ # resp.resource_specification.bot_locale_import_specification.bot_id #=> String
2578
+ # resp.resource_specification.bot_locale_import_specification.bot_version #=> String
2579
+ # resp.resource_specification.bot_locale_import_specification.locale_id #=> String
2580
+ # resp.resource_specification.bot_locale_import_specification.nlu_intent_confidence_threshold #=> Float
2581
+ # resp.resource_specification.bot_locale_import_specification.voice_settings.voice_id #=> String
2582
+ # resp.imported_resource_id #=> String
2583
+ # resp.imported_resource_name #=> String
2584
+ # resp.merge_strategy #=> String, one of "Overwrite", "FailOnConflict"
2585
+ # resp.import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
2586
+ # resp.failure_reasons #=> Array
2587
+ # resp.failure_reasons[0] #=> String
2588
+ # resp.creation_date_time #=> Time
2589
+ # resp.last_updated_date_time #=> Time
2590
+ #
2591
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeImport AWS API Documentation
2592
+ #
2593
+ # @overload describe_import(params = {})
2594
+ # @param [Hash] params ({})
2595
+ def describe_import(params = {}, options = {})
2596
+ req = build_request(:describe_import, params)
2597
+ req.send_request(options)
2598
+ end
2599
+
2342
2600
  # Returns metadata about an intent.
2343
2601
  #
2344
2602
  # @option params [required, String] :intent_id
@@ -2353,12 +2611,11 @@ module Aws::LexModelsV2
2353
2611
  # @option params [required, String] :locale_id
2354
2612
  # The identifier of the language and locale of the intent to describe.
2355
2613
  # 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].
2614
+ # information, see [Supported languages][1].
2358
2615
  #
2359
2616
  #
2360
2617
  #
2361
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2618
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2362
2619
  #
2363
2620
  # @return [Types::DescribeIntentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2364
2621
  #
@@ -2505,12 +2762,11 @@ module Aws::LexModelsV2
2505
2762
  # @option params [required, String] :locale_id
2506
2763
  # The identifier of the language and locale of the slot to describe. The
2507
2764
  # 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].
2765
+ # see [Supported languages][1].
2510
2766
  #
2511
2767
  #
2512
2768
  #
2513
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2769
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2514
2770
  #
2515
2771
  # @option params [required, String] :intent_id
2516
2772
  # The identifier of the intent that contains the slot.
@@ -2669,12 +2925,11 @@ module Aws::LexModelsV2
2669
2925
  # @option params [required, String] :locale_id
2670
2926
  # The identifier of the language and locale of the slot type to
2671
2927
  # 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].
2928
+ # information, see [Supported languages][1].
2674
2929
  #
2675
2930
  #
2676
2931
  #
2677
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2932
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2678
2933
  #
2679
2934
  # @return [Types::DescribeSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2680
2935
  #
@@ -2846,7 +3101,7 @@ module Aws::LexModelsV2
2846
3101
  # resp.bot_locale_summaries[0].locale_id #=> String
2847
3102
  # resp.bot_locale_summaries[0].locale_name #=> String
2848
3103
  # 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"
3104
+ # resp.bot_locale_summaries[0].bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
2850
3105
  # resp.bot_locale_summaries[0].last_updated_date_time #=> Time
2851
3106
  # resp.bot_locale_summaries[0].last_build_submitted_date_time #=> Time
2852
3107
  #
@@ -2915,7 +3170,7 @@ module Aws::LexModelsV2
2915
3170
  # resp.bot_version_summaries[0].bot_name #=> String
2916
3171
  # resp.bot_version_summaries[0].bot_version #=> String
2917
3172
  # resp.bot_version_summaries[0].description #=> String
2918
- # resp.bot_version_summaries[0].bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
3173
+ # resp.bot_version_summaries[0].bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
2919
3174
  # resp.bot_version_summaries[0].creation_date_time #=> Time
2920
3175
  # resp.next_token #=> String
2921
3176
  #
@@ -2981,7 +3236,7 @@ module Aws::LexModelsV2
2981
3236
  # resp.bot_summaries[0].bot_id #=> String
2982
3237
  # resp.bot_summaries[0].bot_name #=> String
2983
3238
  # resp.bot_summaries[0].description #=> String
2984
- # resp.bot_summaries[0].bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
3239
+ # resp.bot_summaries[0].bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
2985
3240
  # resp.bot_summaries[0].latest_bot_version #=> String
2986
3241
  # resp.bot_summaries[0].last_updated_date_time #=> Time
2987
3242
  # resp.next_token #=> String
@@ -3006,12 +3261,11 @@ module Aws::LexModelsV2
3006
3261
  # @option params [required, String] :locale_id
3007
3262
  # The identifier of the language and locale of the intents to list. The
3008
3263
  # 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].
3264
+ # see [Supported languages][1].
3011
3265
  #
3012
3266
  #
3013
3267
  #
3014
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3268
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3015
3269
  #
3016
3270
  # @option params [Types::BuiltInIntentSortBy] :sort_by
3017
3271
  # Specifies sorting parameters for the list of built-in intents. You can
@@ -3071,12 +3325,11 @@ module Aws::LexModelsV2
3071
3325
  # @option params [required, String] :locale_id
3072
3326
  # The identifier of the language and locale of the slot types to list.
3073
3327
  # 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].
3328
+ # information, see [Supported languages][1].
3076
3329
  #
3077
3330
  #
3078
3331
  #
3079
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3332
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3080
3333
  #
3081
3334
  # @option params [Types::BuiltInSlotTypeSortBy] :sort_by
3082
3335
  # Determines the sort order for the response from the
@@ -3131,6 +3384,173 @@ module Aws::LexModelsV2
3131
3384
  req.send_request(options)
3132
3385
  end
3133
3386
 
3387
+ # Lists the exports for a bot or bot locale. Exports are kept in the
3388
+ # list for 7 days.
3389
+ #
3390
+ # @option params [String] :bot_id
3391
+ # The unique identifier that Amazon Lex assigned to the bot.
3392
+ #
3393
+ # @option params [String] :bot_version
3394
+ # The version of the bot to list exports for.
3395
+ #
3396
+ # @option params [Types::ExportSortBy] :sort_by
3397
+ # Determines the field that the list of exports is sorted by. You can
3398
+ # sort by the `LastUpdatedDateTime` field in ascending or descending
3399
+ # order.
3400
+ #
3401
+ # @option params [Array<Types::ExportFilter>] :filters
3402
+ # Provides the specification of a filter used to limit the exports in
3403
+ # the response to only those that match the filter specification. You
3404
+ # can only specify one filter and one string to filter on.
3405
+ #
3406
+ # @option params [Integer] :max_results
3407
+ # The maximum number of exports to return in each page of results. If
3408
+ # there are fewer results than the max page size, only the actual number
3409
+ # of results are returned.
3410
+ #
3411
+ # @option params [String] :next_token
3412
+ # If the response from the `ListExports` operation contans more results
3413
+ # that specified in the `maxResults` parameter, a token is returned in
3414
+ # the response. Use that token in the `nextToken` parameter to return
3415
+ # the next page of results.
3416
+ #
3417
+ # @return [Types::ListExportsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3418
+ #
3419
+ # * {Types::ListExportsResponse#bot_id #bot_id} => String
3420
+ # * {Types::ListExportsResponse#bot_version #bot_version} => String
3421
+ # * {Types::ListExportsResponse#export_summaries #export_summaries} => Array&lt;Types::ExportSummary&gt;
3422
+ # * {Types::ListExportsResponse#next_token #next_token} => String
3423
+ #
3424
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3425
+ #
3426
+ # @example Request syntax with placeholder values
3427
+ #
3428
+ # resp = client.list_exports({
3429
+ # bot_id: "Id",
3430
+ # bot_version: "BotVersion",
3431
+ # sort_by: {
3432
+ # attribute: "LastUpdatedDateTime", # required, accepts LastUpdatedDateTime
3433
+ # order: "Ascending", # required, accepts Ascending, Descending
3434
+ # },
3435
+ # filters: [
3436
+ # {
3437
+ # name: "ExportResourceType", # required, accepts ExportResourceType
3438
+ # values: ["FilterValue"], # required
3439
+ # operator: "CO", # required, accepts CO, EQ
3440
+ # },
3441
+ # ],
3442
+ # max_results: 1,
3443
+ # next_token: "NextToken",
3444
+ # })
3445
+ #
3446
+ # @example Response structure
3447
+ #
3448
+ # resp.bot_id #=> String
3449
+ # resp.bot_version #=> String
3450
+ # resp.export_summaries #=> Array
3451
+ # resp.export_summaries[0].export_id #=> String
3452
+ # resp.export_summaries[0].resource_specification.bot_export_specification.bot_id #=> String
3453
+ # resp.export_summaries[0].resource_specification.bot_export_specification.bot_version #=> String
3454
+ # resp.export_summaries[0].resource_specification.bot_locale_export_specification.bot_id #=> String
3455
+ # resp.export_summaries[0].resource_specification.bot_locale_export_specification.bot_version #=> String
3456
+ # resp.export_summaries[0].resource_specification.bot_locale_export_specification.locale_id #=> String
3457
+ # resp.export_summaries[0].file_format #=> String, one of "LexJson"
3458
+ # resp.export_summaries[0].export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
3459
+ # resp.export_summaries[0].creation_date_time #=> Time
3460
+ # resp.export_summaries[0].last_updated_date_time #=> Time
3461
+ # resp.next_token #=> String
3462
+ #
3463
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListExports AWS API Documentation
3464
+ #
3465
+ # @overload list_exports(params = {})
3466
+ # @param [Hash] params ({})
3467
+ def list_exports(params = {}, options = {})
3468
+ req = build_request(:list_exports, params)
3469
+ req.send_request(options)
3470
+ end
3471
+
3472
+ # Lists the imports for a bot or bot locale. Imports are kept in the
3473
+ # list for 7 days.
3474
+ #
3475
+ # @option params [String] :bot_id
3476
+ # The unique identifier that Amazon Lex assigned to the bot.
3477
+ #
3478
+ # @option params [String] :bot_version
3479
+ # The version of the bot to list imports for.
3480
+ #
3481
+ # @option params [Types::ImportSortBy] :sort_by
3482
+ # Determines the field that the list of imports is sorted by. You can
3483
+ # sort by the `LastUpdatedDateTime` field in ascending or descending
3484
+ # order.
3485
+ #
3486
+ # @option params [Array<Types::ImportFilter>] :filters
3487
+ # Provides the specification of a filter used to limit the bots in the
3488
+ # response to only those that match the filter specification. You can
3489
+ # only specify one filter and one string to filter on.
3490
+ #
3491
+ # @option params [Integer] :max_results
3492
+ # The maximum number of imports to return in each page of results. If
3493
+ # there are fewer results than the max page size, only the actual number
3494
+ # of results are returned.
3495
+ #
3496
+ # @option params [String] :next_token
3497
+ # If the response from the `ListImports` operation contains more results
3498
+ # than specified in the `maxResults` parameter, a token is returned in
3499
+ # the response. Use that token in the `nextToken` parameter to return
3500
+ # the next page of results.
3501
+ #
3502
+ # @return [Types::ListImportsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3503
+ #
3504
+ # * {Types::ListImportsResponse#bot_id #bot_id} => String
3505
+ # * {Types::ListImportsResponse#bot_version #bot_version} => String
3506
+ # * {Types::ListImportsResponse#import_summaries #import_summaries} => Array&lt;Types::ImportSummary&gt;
3507
+ # * {Types::ListImportsResponse#next_token #next_token} => String
3508
+ #
3509
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3510
+ #
3511
+ # @example Request syntax with placeholder values
3512
+ #
3513
+ # resp = client.list_imports({
3514
+ # bot_id: "Id",
3515
+ # bot_version: "DraftBotVersion",
3516
+ # sort_by: {
3517
+ # attribute: "LastUpdatedDateTime", # required, accepts LastUpdatedDateTime
3518
+ # order: "Ascending", # required, accepts Ascending, Descending
3519
+ # },
3520
+ # filters: [
3521
+ # {
3522
+ # name: "ImportResourceType", # required, accepts ImportResourceType
3523
+ # values: ["FilterValue"], # required
3524
+ # operator: "CO", # required, accepts CO, EQ
3525
+ # },
3526
+ # ],
3527
+ # max_results: 1,
3528
+ # next_token: "NextToken",
3529
+ # })
3530
+ #
3531
+ # @example Response structure
3532
+ #
3533
+ # resp.bot_id #=> String
3534
+ # resp.bot_version #=> String
3535
+ # resp.import_summaries #=> Array
3536
+ # resp.import_summaries[0].import_id #=> String
3537
+ # resp.import_summaries[0].imported_resource_id #=> String
3538
+ # resp.import_summaries[0].imported_resource_name #=> String
3539
+ # resp.import_summaries[0].import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
3540
+ # resp.import_summaries[0].merge_strategy #=> String, one of "Overwrite", "FailOnConflict"
3541
+ # resp.import_summaries[0].creation_date_time #=> Time
3542
+ # resp.import_summaries[0].last_updated_date_time #=> Time
3543
+ # resp.next_token #=> String
3544
+ #
3545
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListImports AWS API Documentation
3546
+ #
3547
+ # @overload list_imports(params = {})
3548
+ # @param [Hash] params ({})
3549
+ def list_imports(params = {}, options = {})
3550
+ req = build_request(:list_imports, params)
3551
+ req.send_request(options)
3552
+ end
3553
+
3134
3554
  # Get a list of intents that meet the specified criteria.
3135
3555
  #
3136
3556
  # @option params [required, String] :bot_id
@@ -3142,12 +3562,11 @@ module Aws::LexModelsV2
3142
3562
  # @option params [required, String] :locale_id
3143
3563
  # The identifier of the language and locale of the intents to list. The
3144
3564
  # 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].
3565
+ # see [Supported languages][1].
3147
3566
  #
3148
3567
  #
3149
3568
  #
3150
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3569
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3151
3570
  #
3152
3571
  # @option params [Types::IntentSortBy] :sort_by
3153
3572
  # Determines the sort order for the response from the `ListIntents`
@@ -3240,12 +3659,11 @@ module Aws::LexModelsV2
3240
3659
  # @option params [required, String] :locale_id
3241
3660
  # The identifier of the language and locale of the slot types to list.
3242
3661
  # 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].
3662
+ # information, see [Supported languages][1].
3245
3663
  #
3246
3664
  #
3247
3665
  #
3248
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3666
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3249
3667
  #
3250
3668
  # @option params [Types::SlotTypeSortBy] :sort_by
3251
3669
  # Determines the sort order for the response from the `ListSlotTypes`
@@ -3332,12 +3750,11 @@ module Aws::LexModelsV2
3332
3750
  # @option params [required, String] :locale_id
3333
3751
  # The identifier of the language and locale of the slots to list. The
3334
3752
  # 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].
3753
+ # see [Supported languages][1].
3337
3754
  #
3338
3755
  #
3339
3756
  #
3340
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3757
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3341
3758
  #
3342
3759
  # @option params [required, String] :intent_id
3343
3760
  # The unique identifier of the intent that contains the slot.
@@ -3473,6 +3890,97 @@ module Aws::LexModelsV2
3473
3890
  req.send_request(options)
3474
3891
  end
3475
3892
 
3893
+ # Starts importing a bot or bot locale from a zip archive that you
3894
+ # uploaded to an S3 bucket.
3895
+ #
3896
+ # @option params [required, String] :import_id
3897
+ # The unique identifier for the import. It is included in the response
3898
+ # from the operation.
3899
+ #
3900
+ # @option params [required, Types::ImportResourceSpecification] :resource_specification
3901
+ # Parameters for creating the bot or bot locale.
3902
+ #
3903
+ # @option params [required, String] :merge_strategy
3904
+ # The strategy to use when there is a name conflict between the imported
3905
+ # resource and an existing resource. When the merge strategy is
3906
+ # `FailOnConflict` existing resources are not overwritten and the import
3907
+ # fails.
3908
+ #
3909
+ # @option params [String] :file_password
3910
+ # The password used to encrypt the zip archive that contains the bot or
3911
+ # bot locale definition. You should always encrypt the zip archive to
3912
+ # protect it during transit between your site and Amazon Lex.
3913
+ #
3914
+ # @return [Types::StartImportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3915
+ #
3916
+ # * {Types::StartImportResponse#import_id #import_id} => String
3917
+ # * {Types::StartImportResponse#resource_specification #resource_specification} => Types::ImportResourceSpecification
3918
+ # * {Types::StartImportResponse#merge_strategy #merge_strategy} => String
3919
+ # * {Types::StartImportResponse#import_status #import_status} => String
3920
+ # * {Types::StartImportResponse#creation_date_time #creation_date_time} => Time
3921
+ #
3922
+ # @example Request syntax with placeholder values
3923
+ #
3924
+ # resp = client.start_import({
3925
+ # import_id: "Id", # required
3926
+ # resource_specification: { # required
3927
+ # bot_import_specification: {
3928
+ # bot_name: "Name", # required
3929
+ # role_arn: "RoleArn", # required
3930
+ # data_privacy: { # required
3931
+ # child_directed: false, # required
3932
+ # },
3933
+ # idle_session_ttl_in_seconds: 1,
3934
+ # bot_tags: {
3935
+ # "TagKey" => "TagValue",
3936
+ # },
3937
+ # test_bot_alias_tags: {
3938
+ # "TagKey" => "TagValue",
3939
+ # },
3940
+ # },
3941
+ # bot_locale_import_specification: {
3942
+ # bot_id: "Id", # required
3943
+ # bot_version: "DraftBotVersion", # required
3944
+ # locale_id: "LocaleId", # required
3945
+ # nlu_intent_confidence_threshold: 1.0,
3946
+ # voice_settings: {
3947
+ # voice_id: "VoiceId", # required
3948
+ # },
3949
+ # },
3950
+ # },
3951
+ # merge_strategy: "Overwrite", # required, accepts Overwrite, FailOnConflict
3952
+ # file_password: "ImportExportFilePassword",
3953
+ # })
3954
+ #
3955
+ # @example Response structure
3956
+ #
3957
+ # resp.import_id #=> String
3958
+ # resp.resource_specification.bot_import_specification.bot_name #=> String
3959
+ # resp.resource_specification.bot_import_specification.role_arn #=> String
3960
+ # resp.resource_specification.bot_import_specification.data_privacy.child_directed #=> Boolean
3961
+ # resp.resource_specification.bot_import_specification.idle_session_ttl_in_seconds #=> Integer
3962
+ # resp.resource_specification.bot_import_specification.bot_tags #=> Hash
3963
+ # resp.resource_specification.bot_import_specification.bot_tags["TagKey"] #=> String
3964
+ # resp.resource_specification.bot_import_specification.test_bot_alias_tags #=> Hash
3965
+ # resp.resource_specification.bot_import_specification.test_bot_alias_tags["TagKey"] #=> String
3966
+ # resp.resource_specification.bot_locale_import_specification.bot_id #=> String
3967
+ # resp.resource_specification.bot_locale_import_specification.bot_version #=> String
3968
+ # resp.resource_specification.bot_locale_import_specification.locale_id #=> String
3969
+ # resp.resource_specification.bot_locale_import_specification.nlu_intent_confidence_threshold #=> Float
3970
+ # resp.resource_specification.bot_locale_import_specification.voice_settings.voice_id #=> String
3971
+ # resp.merge_strategy #=> String, one of "Overwrite", "FailOnConflict"
3972
+ # resp.import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
3973
+ # resp.creation_date_time #=> Time
3974
+ #
3975
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/StartImport AWS API Documentation
3976
+ #
3977
+ # @overload start_import(params = {})
3978
+ # @param [Hash] params ({})
3979
+ def start_import(params = {}, options = {})
3980
+ req = build_request(:start_import, params)
3981
+ req.send_request(options)
3982
+ end
3983
+
3476
3984
  # Adds the specified tags to the specified resource. If a tag key
3477
3985
  # already exists, the existing value is replaced with the new value.
3478
3986
  #
@@ -3596,7 +4104,7 @@ module Aws::LexModelsV2
3596
4104
  # resp.role_arn #=> String
3597
4105
  # resp.data_privacy.child_directed #=> Boolean
3598
4106
  # resp.idle_session_ttl_in_seconds #=> Integer
3599
- # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
4107
+ # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
3600
4108
  # resp.creation_date_time #=> Time
3601
4109
  # resp.last_updated_date_time #=> Time
3602
4110
  #
@@ -3746,11 +4254,11 @@ module Aws::LexModelsV2
3746
4254
  # @option params [required, String] :locale_id
3747
4255
  # The identifier of the language and locale to update. The string must
3748
4256
  # match one of the supported locales. For more information, see
3749
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
4257
+ # [Supported languages][1].
3750
4258
  #
3751
4259
  #
3752
4260
  #
3753
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
4261
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3754
4262
  #
3755
4263
  # @option params [String] :description
3756
4264
  # The new description of the locale.
@@ -3800,7 +4308,7 @@ module Aws::LexModelsV2
3800
4308
  # resp.description #=> String
3801
4309
  # resp.nlu_intent_confidence_threshold #=> Float
3802
4310
  # resp.voice_settings.voice_id #=> String
3803
- # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt"
4311
+ # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
3804
4312
  # resp.failure_reasons #=> Array
3805
4313
  # resp.failure_reasons[0] #=> String
3806
4314
  # resp.creation_date_time #=> Time
@@ -3815,6 +4323,52 @@ module Aws::LexModelsV2
3815
4323
  req.send_request(options)
3816
4324
  end
3817
4325
 
4326
+ # Updates the password used to encrypt an export zip archive.
4327
+ #
4328
+ # @option params [required, String] :export_id
4329
+ # The unique identifier Amazon Lex assigned to the export.
4330
+ #
4331
+ # @option params [String] :file_password
4332
+ # The new password to use to encrypt the export zip archive.
4333
+ #
4334
+ # @return [Types::UpdateExportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4335
+ #
4336
+ # * {Types::UpdateExportResponse#export_id #export_id} => String
4337
+ # * {Types::UpdateExportResponse#resource_specification #resource_specification} => Types::ExportResourceSpecification
4338
+ # * {Types::UpdateExportResponse#file_format #file_format} => String
4339
+ # * {Types::UpdateExportResponse#export_status #export_status} => String
4340
+ # * {Types::UpdateExportResponse#creation_date_time #creation_date_time} => Time
4341
+ # * {Types::UpdateExportResponse#last_updated_date_time #last_updated_date_time} => Time
4342
+ #
4343
+ # @example Request syntax with placeholder values
4344
+ #
4345
+ # resp = client.update_export({
4346
+ # export_id: "Id", # required
4347
+ # file_password: "ImportExportFilePassword",
4348
+ # })
4349
+ #
4350
+ # @example Response structure
4351
+ #
4352
+ # resp.export_id #=> String
4353
+ # resp.resource_specification.bot_export_specification.bot_id #=> String
4354
+ # resp.resource_specification.bot_export_specification.bot_version #=> String
4355
+ # resp.resource_specification.bot_locale_export_specification.bot_id #=> String
4356
+ # resp.resource_specification.bot_locale_export_specification.bot_version #=> String
4357
+ # resp.resource_specification.bot_locale_export_specification.locale_id #=> String
4358
+ # resp.file_format #=> String, one of "LexJson"
4359
+ # resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
4360
+ # resp.creation_date_time #=> Time
4361
+ # resp.last_updated_date_time #=> Time
4362
+ #
4363
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateExport AWS API Documentation
4364
+ #
4365
+ # @overload update_export(params = {})
4366
+ # @param [Hash] params ({})
4367
+ def update_export(params = {}, options = {})
4368
+ req = build_request(:update_export, params)
4369
+ req.send_request(options)
4370
+ end
4371
+
3818
4372
  # Updates the settings for an intent.
3819
4373
  #
3820
4374
  # @option params [required, String] :intent_id
@@ -3873,12 +4427,11 @@ module Aws::LexModelsV2
3873
4427
  # @option params [required, String] :locale_id
3874
4428
  # The identifier of the language and locale where this intent is used.
3875
4429
  # 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].
4430
+ # information, see [Supported languages][1].
3878
4431
  #
3879
4432
  #
3880
4433
  #
3881
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
4434
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3882
4435
  #
3883
4436
  # @return [Types::UpdateIntentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3884
4437
  #
@@ -4244,12 +4797,11 @@ module Aws::LexModelsV2
4244
4797
  # @option params [required, String] :locale_id
4245
4798
  # The identifier of the language and locale that contains the slot. The
4246
4799
  # 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].
4800
+ # see [Supported languages][1].
4249
4801
  #
4250
4802
  #
4251
4803
  #
4252
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
4804
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
4253
4805
  #
4254
4806
  # @option params [required, String] :intent_id
4255
4807
  # The identifier of the intent that contains the slot.
@@ -4664,12 +5216,11 @@ module Aws::LexModelsV2
4664
5216
  # @option params [required, String] :locale_id
4665
5217
  # The identifier of the language and locale that contains the slot type.
4666
5218
  # 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].
5219
+ # information, see [Supported languages][1].
4669
5220
  #
4670
5221
  #
4671
5222
  #
4672
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
5223
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
4673
5224
  #
4674
5225
  # @return [Types::UpdateSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4675
5226
  #
@@ -4755,7 +5306,7 @@ module Aws::LexModelsV2
4755
5306
  params: params,
4756
5307
  config: config)
4757
5308
  context[:gem_name] = 'aws-sdk-lexmodelsv2'
4758
- context[:gem_version] = '1.2.0'
5309
+ context[:gem_version] = '1.3.0'
4759
5310
  Seahorse::Client::Request.new(handlers, context)
4760
5311
  end
4761
5312