aws-sdk-lexmodelsv2 1.0.1 → 1.5.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: 802237c58f2e57c00bfb248b567988fc14cdccce6dd81f763265c6d2fff9ba18
4
- data.tar.gz: c2f56b8a62fbd30781b12287b33268ed7972b691d90b6c15d610c96f6ddcce7e
3
+ metadata.gz: df49853c552b1f57b85d1b5d55f36262cc20a3c26cfed2b052754a822cfb1063
4
+ data.tar.gz: 87e3f47f883152ed32a678fdcd4cf478316e63a0027ac6a6b5595cc9eb1e0906
5
5
  SHA512:
6
- metadata.gz: 34bad10d34dd2c91a655bcd917a9c4bd52d1631707fed154db4b339dd76439c8617e569204df8786f26c61bf9646beda08c11083d526cbad9441b207f69d4317
7
- data.tar.gz: b8a86bc34498f0283dd51d03d41f5f517bee4a35d20b940c1fb725e3f387e4e3e9bcb49dc00339910110f780f478599ca4c02cdb1546217a98ad59aa9f473196
6
+ metadata.gz: 6eefb79965dc75737a1b2ac33dea94c33e6dca7a700d7b9a68947ebbe189b13ec9de5cceb32771b2e0068d70bec7062cb32ac1c8b64817d019f2723a87e698bc
7
+ data.tar.gz: 40d1be2efaf54a0f0be7856ec2afda01d0f5ac7d3647502357aae5aab19319a55a6fd96d8e09c14104575f3540f8622591abfba29ccf95c2a42ba46f3d1f1e1a
data/CHANGELOG.md ADDED
@@ -0,0 +1,37 @@
1
+ Unreleased Changes
2
+ ------------------
3
+
4
+ 1.5.0 (2021-06-15)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for Multi Valued slots in Amazon Lex V2 APIs for model building
8
+
9
+ 1.4.0 (2021-05-20)
10
+ ------------------
11
+
12
+ * 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
13
+
14
+ 1.3.0 (2021-05-18)
15
+ ------------------
16
+
17
+ * 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
18
+
19
+ 1.2.0 (2021-03-10)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
24
+ 1.1.0 (2021-02-02)
25
+ ------------------
26
+
27
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
28
+
29
+ 1.0.1 (2021-01-29)
30
+ ------------------
31
+
32
+ * Issue - Add a `Content-Type` header to mitigate a service side issue.
33
+
34
+ 1.0.0 (2021-01-22)
35
+ ------------------
36
+
37
+ * Feature - Initial release of `aws-sdk-lexmodelsv2`.
data/LICENSE.txt ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.5.0
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -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.0.1'
51
+ GEM_VERSION = '1.5.0'
52
52
 
53
53
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -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,7 +2537,7 @@ 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
  #
@@ -2224,12 +2628,12 @@ module Aws::LexModelsV2
2224
2628
  #
2225
2629
  # @option params [required, String] :locale_id
2226
2630
  # 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].
2631
+ # one of the supported locales. For more information, see [Supported
2632
+ # languages][1].
2229
2633
  #
2230
2634
  #
2231
2635
  #
2232
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2636
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2233
2637
  #
2234
2638
  # @return [Types::DescribeBotLocaleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2235
2639
  #
@@ -2268,7 +2672,7 @@ module Aws::LexModelsV2
2268
2672
  # resp.voice_settings.voice_id #=> String
2269
2673
  # resp.intents_count #=> Integer
2270
2674
  # resp.slot_types_count #=> Integer
2271
- # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt"
2675
+ # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
2272
2676
  # resp.failure_reasons #=> Array
2273
2677
  # resp.failure_reasons[0] #=> String
2274
2678
  # resp.creation_date_time #=> Time
@@ -2325,7 +2729,7 @@ module Aws::LexModelsV2
2325
2729
  # resp.role_arn #=> String
2326
2730
  # resp.data_privacy.child_directed #=> Boolean
2327
2731
  # resp.idle_session_ttl_in_seconds #=> Integer
2328
- # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
2732
+ # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
2329
2733
  # resp.failure_reasons #=> Array
2330
2734
  # resp.failure_reasons[0] #=> String
2331
2735
  # resp.creation_date_time #=> Time
@@ -2339,6 +2743,110 @@ module Aws::LexModelsV2
2339
2743
  req.send_request(options)
2340
2744
  end
2341
2745
 
2746
+ # Gets information about a specific export.
2747
+ #
2748
+ # @option params [required, String] :export_id
2749
+ # The unique identifier of the export to describe.
2750
+ #
2751
+ # @return [Types::DescribeExportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2752
+ #
2753
+ # * {Types::DescribeExportResponse#export_id #export_id} => String
2754
+ # * {Types::DescribeExportResponse#resource_specification #resource_specification} => Types::ExportResourceSpecification
2755
+ # * {Types::DescribeExportResponse#file_format #file_format} => String
2756
+ # * {Types::DescribeExportResponse#export_status #export_status} => String
2757
+ # * {Types::DescribeExportResponse#failure_reasons #failure_reasons} => Array&lt;String&gt;
2758
+ # * {Types::DescribeExportResponse#download_url #download_url} => String
2759
+ # * {Types::DescribeExportResponse#creation_date_time #creation_date_time} => Time
2760
+ # * {Types::DescribeExportResponse#last_updated_date_time #last_updated_date_time} => Time
2761
+ #
2762
+ # @example Request syntax with placeholder values
2763
+ #
2764
+ # resp = client.describe_export({
2765
+ # export_id: "Id", # required
2766
+ # })
2767
+ #
2768
+ # @example Response structure
2769
+ #
2770
+ # resp.export_id #=> String
2771
+ # resp.resource_specification.bot_export_specification.bot_id #=> String
2772
+ # resp.resource_specification.bot_export_specification.bot_version #=> String
2773
+ # resp.resource_specification.bot_locale_export_specification.bot_id #=> String
2774
+ # resp.resource_specification.bot_locale_export_specification.bot_version #=> String
2775
+ # resp.resource_specification.bot_locale_export_specification.locale_id #=> String
2776
+ # resp.file_format #=> String, one of "LexJson"
2777
+ # resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
2778
+ # resp.failure_reasons #=> Array
2779
+ # resp.failure_reasons[0] #=> String
2780
+ # resp.download_url #=> String
2781
+ # resp.creation_date_time #=> Time
2782
+ # resp.last_updated_date_time #=> Time
2783
+ #
2784
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeExport AWS API Documentation
2785
+ #
2786
+ # @overload describe_export(params = {})
2787
+ # @param [Hash] params ({})
2788
+ def describe_export(params = {}, options = {})
2789
+ req = build_request(:describe_export, params)
2790
+ req.send_request(options)
2791
+ end
2792
+
2793
+ # Gets information about a specific import.
2794
+ #
2795
+ # @option params [required, String] :import_id
2796
+ # The unique identifier of the import to describe.
2797
+ #
2798
+ # @return [Types::DescribeImportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2799
+ #
2800
+ # * {Types::DescribeImportResponse#import_id #import_id} => String
2801
+ # * {Types::DescribeImportResponse#resource_specification #resource_specification} => Types::ImportResourceSpecification
2802
+ # * {Types::DescribeImportResponse#imported_resource_id #imported_resource_id} => String
2803
+ # * {Types::DescribeImportResponse#imported_resource_name #imported_resource_name} => String
2804
+ # * {Types::DescribeImportResponse#merge_strategy #merge_strategy} => String
2805
+ # * {Types::DescribeImportResponse#import_status #import_status} => String
2806
+ # * {Types::DescribeImportResponse#failure_reasons #failure_reasons} => Array&lt;String&gt;
2807
+ # * {Types::DescribeImportResponse#creation_date_time #creation_date_time} => Time
2808
+ # * {Types::DescribeImportResponse#last_updated_date_time #last_updated_date_time} => Time
2809
+ #
2810
+ # @example Request syntax with placeholder values
2811
+ #
2812
+ # resp = client.describe_import({
2813
+ # import_id: "Id", # required
2814
+ # })
2815
+ #
2816
+ # @example Response structure
2817
+ #
2818
+ # resp.import_id #=> String
2819
+ # resp.resource_specification.bot_import_specification.bot_name #=> String
2820
+ # resp.resource_specification.bot_import_specification.role_arn #=> String
2821
+ # resp.resource_specification.bot_import_specification.data_privacy.child_directed #=> Boolean
2822
+ # resp.resource_specification.bot_import_specification.idle_session_ttl_in_seconds #=> Integer
2823
+ # resp.resource_specification.bot_import_specification.bot_tags #=> Hash
2824
+ # resp.resource_specification.bot_import_specification.bot_tags["TagKey"] #=> String
2825
+ # resp.resource_specification.bot_import_specification.test_bot_alias_tags #=> Hash
2826
+ # resp.resource_specification.bot_import_specification.test_bot_alias_tags["TagKey"] #=> String
2827
+ # resp.resource_specification.bot_locale_import_specification.bot_id #=> String
2828
+ # resp.resource_specification.bot_locale_import_specification.bot_version #=> String
2829
+ # resp.resource_specification.bot_locale_import_specification.locale_id #=> String
2830
+ # resp.resource_specification.bot_locale_import_specification.nlu_intent_confidence_threshold #=> Float
2831
+ # resp.resource_specification.bot_locale_import_specification.voice_settings.voice_id #=> String
2832
+ # resp.imported_resource_id #=> String
2833
+ # resp.imported_resource_name #=> String
2834
+ # resp.merge_strategy #=> String, one of "Overwrite", "FailOnConflict"
2835
+ # resp.import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
2836
+ # resp.failure_reasons #=> Array
2837
+ # resp.failure_reasons[0] #=> String
2838
+ # resp.creation_date_time #=> Time
2839
+ # resp.last_updated_date_time #=> Time
2840
+ #
2841
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeImport AWS API Documentation
2842
+ #
2843
+ # @overload describe_import(params = {})
2844
+ # @param [Hash] params ({})
2845
+ def describe_import(params = {}, options = {})
2846
+ req = build_request(:describe_import, params)
2847
+ req.send_request(options)
2848
+ end
2849
+
2342
2850
  # Returns metadata about an intent.
2343
2851
  #
2344
2852
  # @option params [required, String] :intent_id
@@ -2353,12 +2861,11 @@ module Aws::LexModelsV2
2353
2861
  # @option params [required, String] :locale_id
2354
2862
  # The identifier of the language and locale of the intent to describe.
2355
2863
  # 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].
2864
+ # information, see [Supported languages][1].
2358
2865
  #
2359
2866
  #
2360
2867
  #
2361
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2868
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2362
2869
  #
2363
2870
  # @return [Types::DescribeIntentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2364
2871
  #
@@ -2491,6 +2998,39 @@ module Aws::LexModelsV2
2491
2998
  req.send_request(options)
2492
2999
  end
2493
3000
 
3001
+ # Gets the resource policy and policy revision for a bot or bot alias.
3002
+ #
3003
+ # @option params [required, String] :resource_arn
3004
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
3005
+ # resource policy is attached to.
3006
+ #
3007
+ # @return [Types::DescribeResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3008
+ #
3009
+ # * {Types::DescribeResourcePolicyResponse#resource_arn #resource_arn} => String
3010
+ # * {Types::DescribeResourcePolicyResponse#policy #policy} => String
3011
+ # * {Types::DescribeResourcePolicyResponse#revision_id #revision_id} => String
3012
+ #
3013
+ # @example Request syntax with placeholder values
3014
+ #
3015
+ # resp = client.describe_resource_policy({
3016
+ # resource_arn: "AmazonResourceName", # required
3017
+ # })
3018
+ #
3019
+ # @example Response structure
3020
+ #
3021
+ # resp.resource_arn #=> String
3022
+ # resp.policy #=> String
3023
+ # resp.revision_id #=> String
3024
+ #
3025
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeResourcePolicy AWS API Documentation
3026
+ #
3027
+ # @overload describe_resource_policy(params = {})
3028
+ # @param [Hash] params ({})
3029
+ def describe_resource_policy(params = {}, options = {})
3030
+ req = build_request(:describe_resource_policy, params)
3031
+ req.send_request(options)
3032
+ end
3033
+
2494
3034
  # Gets metadata information about a slot.
2495
3035
  #
2496
3036
  # @option params [required, String] :slot_id
@@ -2505,12 +3045,11 @@ module Aws::LexModelsV2
2505
3045
  # @option params [required, String] :locale_id
2506
3046
  # The identifier of the language and locale of the slot to describe. The
2507
3047
  # 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].
3048
+ # see [Supported languages][1].
2510
3049
  #
2511
3050
  #
2512
3051
  #
2513
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3052
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2514
3053
  #
2515
3054
  # @option params [required, String] :intent_id
2516
3055
  # The identifier of the intent that contains the slot.
@@ -2529,6 +3068,7 @@ module Aws::LexModelsV2
2529
3068
  # * {Types::DescribeSlotResponse#intent_id #intent_id} => String
2530
3069
  # * {Types::DescribeSlotResponse#creation_date_time #creation_date_time} => Time
2531
3070
  # * {Types::DescribeSlotResponse#last_updated_date_time #last_updated_date_time} => Time
3071
+ # * {Types::DescribeSlotResponse#multiple_values_setting #multiple_values_setting} => Types::MultipleValuesSetting
2532
3072
  #
2533
3073
  # @example Request syntax with placeholder values
2534
3074
  #
@@ -2645,6 +3185,7 @@ module Aws::LexModelsV2
2645
3185
  # resp.intent_id #=> String
2646
3186
  # resp.creation_date_time #=> Time
2647
3187
  # resp.last_updated_date_time #=> Time
3188
+ # resp.multiple_values_setting.allow_multiple_values #=> Boolean
2648
3189
  #
2649
3190
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeSlot AWS API Documentation
2650
3191
  #
@@ -2669,12 +3210,11 @@ module Aws::LexModelsV2
2669
3210
  # @option params [required, String] :locale_id
2670
3211
  # The identifier of the language and locale of the slot type to
2671
3212
  # 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].
3213
+ # information, see [Supported languages][1].
2674
3214
  #
2675
3215
  #
2676
3216
  #
2677
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3217
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2678
3218
  #
2679
3219
  # @return [Types::DescribeSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2680
3220
  #
@@ -2846,7 +3386,7 @@ module Aws::LexModelsV2
2846
3386
  # resp.bot_locale_summaries[0].locale_id #=> String
2847
3387
  # resp.bot_locale_summaries[0].locale_name #=> String
2848
3388
  # 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"
3389
+ # resp.bot_locale_summaries[0].bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
2850
3390
  # resp.bot_locale_summaries[0].last_updated_date_time #=> Time
2851
3391
  # resp.bot_locale_summaries[0].last_build_submitted_date_time #=> Time
2852
3392
  #
@@ -2915,7 +3455,7 @@ module Aws::LexModelsV2
2915
3455
  # resp.bot_version_summaries[0].bot_name #=> String
2916
3456
  # resp.bot_version_summaries[0].bot_version #=> String
2917
3457
  # resp.bot_version_summaries[0].description #=> String
2918
- # resp.bot_version_summaries[0].bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
3458
+ # resp.bot_version_summaries[0].bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
2919
3459
  # resp.bot_version_summaries[0].creation_date_time #=> Time
2920
3460
  # resp.next_token #=> String
2921
3461
  #
@@ -2981,7 +3521,7 @@ module Aws::LexModelsV2
2981
3521
  # resp.bot_summaries[0].bot_id #=> String
2982
3522
  # resp.bot_summaries[0].bot_name #=> String
2983
3523
  # resp.bot_summaries[0].description #=> String
2984
- # resp.bot_summaries[0].bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
3524
+ # resp.bot_summaries[0].bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
2985
3525
  # resp.bot_summaries[0].latest_bot_version #=> String
2986
3526
  # resp.bot_summaries[0].last_updated_date_time #=> Time
2987
3527
  # resp.next_token #=> String
@@ -3006,12 +3546,11 @@ module Aws::LexModelsV2
3006
3546
  # @option params [required, String] :locale_id
3007
3547
  # The identifier of the language and locale of the intents to list. The
3008
3548
  # 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].
3549
+ # see [Supported languages][1].
3011
3550
  #
3012
3551
  #
3013
3552
  #
3014
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3553
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3015
3554
  #
3016
3555
  # @option params [Types::BuiltInIntentSortBy] :sort_by
3017
3556
  # Specifies sorting parameters for the list of built-in intents. You can
@@ -3071,12 +3610,11 @@ module Aws::LexModelsV2
3071
3610
  # @option params [required, String] :locale_id
3072
3611
  # The identifier of the language and locale of the slot types to list.
3073
3612
  # 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].
3613
+ # information, see [Supported languages][1].
3076
3614
  #
3077
3615
  #
3078
3616
  #
3079
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3617
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3080
3618
  #
3081
3619
  # @option params [Types::BuiltInSlotTypeSortBy] :sort_by
3082
3620
  # Determines the sort order for the response from the
@@ -3131,6 +3669,173 @@ module Aws::LexModelsV2
3131
3669
  req.send_request(options)
3132
3670
  end
3133
3671
 
3672
+ # Lists the exports for a bot or bot locale. Exports are kept in the
3673
+ # list for 7 days.
3674
+ #
3675
+ # @option params [String] :bot_id
3676
+ # The unique identifier that Amazon Lex assigned to the bot.
3677
+ #
3678
+ # @option params [String] :bot_version
3679
+ # The version of the bot to list exports for.
3680
+ #
3681
+ # @option params [Types::ExportSortBy] :sort_by
3682
+ # Determines the field that the list of exports is sorted by. You can
3683
+ # sort by the `LastUpdatedDateTime` field in ascending or descending
3684
+ # order.
3685
+ #
3686
+ # @option params [Array<Types::ExportFilter>] :filters
3687
+ # Provides the specification of a filter used to limit the exports in
3688
+ # the response to only those that match the filter specification. You
3689
+ # can only specify one filter and one string to filter on.
3690
+ #
3691
+ # @option params [Integer] :max_results
3692
+ # The maximum number of exports to return in each page of results. If
3693
+ # there are fewer results than the max page size, only the actual number
3694
+ # of results are returned.
3695
+ #
3696
+ # @option params [String] :next_token
3697
+ # If the response from the `ListExports` operation contans more results
3698
+ # that specified in the `maxResults` parameter, a token is returned in
3699
+ # the response. Use that token in the `nextToken` parameter to return
3700
+ # the next page of results.
3701
+ #
3702
+ # @return [Types::ListExportsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3703
+ #
3704
+ # * {Types::ListExportsResponse#bot_id #bot_id} => String
3705
+ # * {Types::ListExportsResponse#bot_version #bot_version} => String
3706
+ # * {Types::ListExportsResponse#export_summaries #export_summaries} => Array&lt;Types::ExportSummary&gt;
3707
+ # * {Types::ListExportsResponse#next_token #next_token} => String
3708
+ #
3709
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3710
+ #
3711
+ # @example Request syntax with placeholder values
3712
+ #
3713
+ # resp = client.list_exports({
3714
+ # bot_id: "Id",
3715
+ # bot_version: "BotVersion",
3716
+ # sort_by: {
3717
+ # attribute: "LastUpdatedDateTime", # required, accepts LastUpdatedDateTime
3718
+ # order: "Ascending", # required, accepts Ascending, Descending
3719
+ # },
3720
+ # filters: [
3721
+ # {
3722
+ # name: "ExportResourceType", # required, accepts ExportResourceType
3723
+ # values: ["FilterValue"], # required
3724
+ # operator: "CO", # required, accepts CO, EQ
3725
+ # },
3726
+ # ],
3727
+ # max_results: 1,
3728
+ # next_token: "NextToken",
3729
+ # })
3730
+ #
3731
+ # @example Response structure
3732
+ #
3733
+ # resp.bot_id #=> String
3734
+ # resp.bot_version #=> String
3735
+ # resp.export_summaries #=> Array
3736
+ # resp.export_summaries[0].export_id #=> String
3737
+ # resp.export_summaries[0].resource_specification.bot_export_specification.bot_id #=> String
3738
+ # resp.export_summaries[0].resource_specification.bot_export_specification.bot_version #=> String
3739
+ # resp.export_summaries[0].resource_specification.bot_locale_export_specification.bot_id #=> String
3740
+ # resp.export_summaries[0].resource_specification.bot_locale_export_specification.bot_version #=> String
3741
+ # resp.export_summaries[0].resource_specification.bot_locale_export_specification.locale_id #=> String
3742
+ # resp.export_summaries[0].file_format #=> String, one of "LexJson"
3743
+ # resp.export_summaries[0].export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
3744
+ # resp.export_summaries[0].creation_date_time #=> Time
3745
+ # resp.export_summaries[0].last_updated_date_time #=> Time
3746
+ # resp.next_token #=> String
3747
+ #
3748
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListExports AWS API Documentation
3749
+ #
3750
+ # @overload list_exports(params = {})
3751
+ # @param [Hash] params ({})
3752
+ def list_exports(params = {}, options = {})
3753
+ req = build_request(:list_exports, params)
3754
+ req.send_request(options)
3755
+ end
3756
+
3757
+ # Lists the imports for a bot or bot locale. Imports are kept in the
3758
+ # list for 7 days.
3759
+ #
3760
+ # @option params [String] :bot_id
3761
+ # The unique identifier that Amazon Lex assigned to the bot.
3762
+ #
3763
+ # @option params [String] :bot_version
3764
+ # The version of the bot to list imports for.
3765
+ #
3766
+ # @option params [Types::ImportSortBy] :sort_by
3767
+ # Determines the field that the list of imports is sorted by. You can
3768
+ # sort by the `LastUpdatedDateTime` field in ascending or descending
3769
+ # order.
3770
+ #
3771
+ # @option params [Array<Types::ImportFilter>] :filters
3772
+ # Provides the specification of a filter used to limit the bots in the
3773
+ # response to only those that match the filter specification. You can
3774
+ # only specify one filter and one string to filter on.
3775
+ #
3776
+ # @option params [Integer] :max_results
3777
+ # The maximum number of imports to return in each page of results. If
3778
+ # there are fewer results than the max page size, only the actual number
3779
+ # of results are returned.
3780
+ #
3781
+ # @option params [String] :next_token
3782
+ # If the response from the `ListImports` operation contains more results
3783
+ # than specified in the `maxResults` parameter, a token is returned in
3784
+ # the response. Use that token in the `nextToken` parameter to return
3785
+ # the next page of results.
3786
+ #
3787
+ # @return [Types::ListImportsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3788
+ #
3789
+ # * {Types::ListImportsResponse#bot_id #bot_id} => String
3790
+ # * {Types::ListImportsResponse#bot_version #bot_version} => String
3791
+ # * {Types::ListImportsResponse#import_summaries #import_summaries} => Array&lt;Types::ImportSummary&gt;
3792
+ # * {Types::ListImportsResponse#next_token #next_token} => String
3793
+ #
3794
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3795
+ #
3796
+ # @example Request syntax with placeholder values
3797
+ #
3798
+ # resp = client.list_imports({
3799
+ # bot_id: "Id",
3800
+ # bot_version: "DraftBotVersion",
3801
+ # sort_by: {
3802
+ # attribute: "LastUpdatedDateTime", # required, accepts LastUpdatedDateTime
3803
+ # order: "Ascending", # required, accepts Ascending, Descending
3804
+ # },
3805
+ # filters: [
3806
+ # {
3807
+ # name: "ImportResourceType", # required, accepts ImportResourceType
3808
+ # values: ["FilterValue"], # required
3809
+ # operator: "CO", # required, accepts CO, EQ
3810
+ # },
3811
+ # ],
3812
+ # max_results: 1,
3813
+ # next_token: "NextToken",
3814
+ # })
3815
+ #
3816
+ # @example Response structure
3817
+ #
3818
+ # resp.bot_id #=> String
3819
+ # resp.bot_version #=> String
3820
+ # resp.import_summaries #=> Array
3821
+ # resp.import_summaries[0].import_id #=> String
3822
+ # resp.import_summaries[0].imported_resource_id #=> String
3823
+ # resp.import_summaries[0].imported_resource_name #=> String
3824
+ # resp.import_summaries[0].import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
3825
+ # resp.import_summaries[0].merge_strategy #=> String, one of "Overwrite", "FailOnConflict"
3826
+ # resp.import_summaries[0].creation_date_time #=> Time
3827
+ # resp.import_summaries[0].last_updated_date_time #=> Time
3828
+ # resp.next_token #=> String
3829
+ #
3830
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListImports AWS API Documentation
3831
+ #
3832
+ # @overload list_imports(params = {})
3833
+ # @param [Hash] params ({})
3834
+ def list_imports(params = {}, options = {})
3835
+ req = build_request(:list_imports, params)
3836
+ req.send_request(options)
3837
+ end
3838
+
3134
3839
  # Get a list of intents that meet the specified criteria.
3135
3840
  #
3136
3841
  # @option params [required, String] :bot_id
@@ -3142,12 +3847,11 @@ module Aws::LexModelsV2
3142
3847
  # @option params [required, String] :locale_id
3143
3848
  # The identifier of the language and locale of the intents to list. The
3144
3849
  # 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].
3850
+ # see [Supported languages][1].
3147
3851
  #
3148
3852
  #
3149
3853
  #
3150
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3854
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3151
3855
  #
3152
3856
  # @option params [Types::IntentSortBy] :sort_by
3153
3857
  # Determines the sort order for the response from the `ListIntents`
@@ -3240,12 +3944,11 @@ module Aws::LexModelsV2
3240
3944
  # @option params [required, String] :locale_id
3241
3945
  # The identifier of the language and locale of the slot types to list.
3242
3946
  # 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].
3947
+ # information, see [Supported languages][1].
3245
3948
  #
3246
3949
  #
3247
3950
  #
3248
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3951
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3249
3952
  #
3250
3953
  # @option params [Types::SlotTypeSortBy] :sort_by
3251
3954
  # Determines the sort order for the response from the `ListSlotTypes`
@@ -3332,12 +4035,11 @@ module Aws::LexModelsV2
3332
4035
  # @option params [required, String] :locale_id
3333
4036
  # The identifier of the language and locale of the slots to list. The
3334
4037
  # 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].
4038
+ # see [Supported languages][1].
3337
4039
  #
3338
4040
  #
3339
4041
  #
3340
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
4042
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3341
4043
  #
3342
4044
  # @option params [required, String] :intent_id
3343
4045
  # The unique identifier of the intent that contains the slot.
@@ -3473,6 +4175,97 @@ module Aws::LexModelsV2
3473
4175
  req.send_request(options)
3474
4176
  end
3475
4177
 
4178
+ # Starts importing a bot or bot locale from a zip archive that you
4179
+ # uploaded to an S3 bucket.
4180
+ #
4181
+ # @option params [required, String] :import_id
4182
+ # The unique identifier for the import. It is included in the response
4183
+ # from the operation.
4184
+ #
4185
+ # @option params [required, Types::ImportResourceSpecification] :resource_specification
4186
+ # Parameters for creating the bot or bot locale.
4187
+ #
4188
+ # @option params [required, String] :merge_strategy
4189
+ # The strategy to use when there is a name conflict between the imported
4190
+ # resource and an existing resource. When the merge strategy is
4191
+ # `FailOnConflict` existing resources are not overwritten and the import
4192
+ # fails.
4193
+ #
4194
+ # @option params [String] :file_password
4195
+ # The password used to encrypt the zip archive that contains the bot or
4196
+ # bot locale definition. You should always encrypt the zip archive to
4197
+ # protect it during transit between your site and Amazon Lex.
4198
+ #
4199
+ # @return [Types::StartImportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4200
+ #
4201
+ # * {Types::StartImportResponse#import_id #import_id} => String
4202
+ # * {Types::StartImportResponse#resource_specification #resource_specification} => Types::ImportResourceSpecification
4203
+ # * {Types::StartImportResponse#merge_strategy #merge_strategy} => String
4204
+ # * {Types::StartImportResponse#import_status #import_status} => String
4205
+ # * {Types::StartImportResponse#creation_date_time #creation_date_time} => Time
4206
+ #
4207
+ # @example Request syntax with placeholder values
4208
+ #
4209
+ # resp = client.start_import({
4210
+ # import_id: "Id", # required
4211
+ # resource_specification: { # required
4212
+ # bot_import_specification: {
4213
+ # bot_name: "Name", # required
4214
+ # role_arn: "RoleArn", # required
4215
+ # data_privacy: { # required
4216
+ # child_directed: false, # required
4217
+ # },
4218
+ # idle_session_ttl_in_seconds: 1,
4219
+ # bot_tags: {
4220
+ # "TagKey" => "TagValue",
4221
+ # },
4222
+ # test_bot_alias_tags: {
4223
+ # "TagKey" => "TagValue",
4224
+ # },
4225
+ # },
4226
+ # bot_locale_import_specification: {
4227
+ # bot_id: "Id", # required
4228
+ # bot_version: "DraftBotVersion", # required
4229
+ # locale_id: "LocaleId", # required
4230
+ # nlu_intent_confidence_threshold: 1.0,
4231
+ # voice_settings: {
4232
+ # voice_id: "VoiceId", # required
4233
+ # },
4234
+ # },
4235
+ # },
4236
+ # merge_strategy: "Overwrite", # required, accepts Overwrite, FailOnConflict
4237
+ # file_password: "ImportExportFilePassword",
4238
+ # })
4239
+ #
4240
+ # @example Response structure
4241
+ #
4242
+ # resp.import_id #=> String
4243
+ # resp.resource_specification.bot_import_specification.bot_name #=> String
4244
+ # resp.resource_specification.bot_import_specification.role_arn #=> String
4245
+ # resp.resource_specification.bot_import_specification.data_privacy.child_directed #=> Boolean
4246
+ # resp.resource_specification.bot_import_specification.idle_session_ttl_in_seconds #=> Integer
4247
+ # resp.resource_specification.bot_import_specification.bot_tags #=> Hash
4248
+ # resp.resource_specification.bot_import_specification.bot_tags["TagKey"] #=> String
4249
+ # resp.resource_specification.bot_import_specification.test_bot_alias_tags #=> Hash
4250
+ # resp.resource_specification.bot_import_specification.test_bot_alias_tags["TagKey"] #=> String
4251
+ # resp.resource_specification.bot_locale_import_specification.bot_id #=> String
4252
+ # resp.resource_specification.bot_locale_import_specification.bot_version #=> String
4253
+ # resp.resource_specification.bot_locale_import_specification.locale_id #=> String
4254
+ # resp.resource_specification.bot_locale_import_specification.nlu_intent_confidence_threshold #=> Float
4255
+ # resp.resource_specification.bot_locale_import_specification.voice_settings.voice_id #=> String
4256
+ # resp.merge_strategy #=> String, one of "Overwrite", "FailOnConflict"
4257
+ # resp.import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
4258
+ # resp.creation_date_time #=> Time
4259
+ #
4260
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/StartImport AWS API Documentation
4261
+ #
4262
+ # @overload start_import(params = {})
4263
+ # @param [Hash] params ({})
4264
+ def start_import(params = {}, options = {})
4265
+ req = build_request(:start_import, params)
4266
+ req.send_request(options)
4267
+ end
4268
+
3476
4269
  # Adds the specified tags to the specified resource. If a tag key
3477
4270
  # already exists, the existing value is replaced with the new value.
3478
4271
  #
@@ -3596,7 +4389,7 @@ module Aws::LexModelsV2
3596
4389
  # resp.role_arn #=> String
3597
4390
  # resp.data_privacy.child_directed #=> Boolean
3598
4391
  # resp.idle_session_ttl_in_seconds #=> Integer
3599
- # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
4392
+ # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
3600
4393
  # resp.creation_date_time #=> Time
3601
4394
  # resp.last_updated_date_time #=> Time
3602
4395
  #
@@ -3746,11 +4539,11 @@ module Aws::LexModelsV2
3746
4539
  # @option params [required, String] :locale_id
3747
4540
  # The identifier of the language and locale to update. The string must
3748
4541
  # match one of the supported locales. For more information, see
3749
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
4542
+ # [Supported languages][1].
3750
4543
  #
3751
4544
  #
3752
4545
  #
3753
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
4546
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3754
4547
  #
3755
4548
  # @option params [String] :description
3756
4549
  # The new description of the locale.
@@ -3800,7 +4593,7 @@ module Aws::LexModelsV2
3800
4593
  # resp.description #=> String
3801
4594
  # resp.nlu_intent_confidence_threshold #=> Float
3802
4595
  # resp.voice_settings.voice_id #=> String
3803
- # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt"
4596
+ # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
3804
4597
  # resp.failure_reasons #=> Array
3805
4598
  # resp.failure_reasons[0] #=> String
3806
4599
  # resp.creation_date_time #=> Time
@@ -3815,6 +4608,57 @@ module Aws::LexModelsV2
3815
4608
  req.send_request(options)
3816
4609
  end
3817
4610
 
4611
+ # Updates the password used to protect an export zip archive.
4612
+ #
4613
+ # The password is not required. If you don't supply a password, Amazon
4614
+ # Lex generates a zip file that is not protected by a password. This is
4615
+ # the archive that is available at the pre-signed S3 URL provided by the
4616
+ # operation.
4617
+ #
4618
+ # @option params [required, String] :export_id
4619
+ # The unique identifier Amazon Lex assigned to the export.
4620
+ #
4621
+ # @option params [String] :file_password
4622
+ # The new password to use to encrypt the export zip archive.
4623
+ #
4624
+ # @return [Types::UpdateExportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4625
+ #
4626
+ # * {Types::UpdateExportResponse#export_id #export_id} => String
4627
+ # * {Types::UpdateExportResponse#resource_specification #resource_specification} => Types::ExportResourceSpecification
4628
+ # * {Types::UpdateExportResponse#file_format #file_format} => String
4629
+ # * {Types::UpdateExportResponse#export_status #export_status} => String
4630
+ # * {Types::UpdateExportResponse#creation_date_time #creation_date_time} => Time
4631
+ # * {Types::UpdateExportResponse#last_updated_date_time #last_updated_date_time} => Time
4632
+ #
4633
+ # @example Request syntax with placeholder values
4634
+ #
4635
+ # resp = client.update_export({
4636
+ # export_id: "Id", # required
4637
+ # file_password: "ImportExportFilePassword",
4638
+ # })
4639
+ #
4640
+ # @example Response structure
4641
+ #
4642
+ # resp.export_id #=> String
4643
+ # resp.resource_specification.bot_export_specification.bot_id #=> String
4644
+ # resp.resource_specification.bot_export_specification.bot_version #=> String
4645
+ # resp.resource_specification.bot_locale_export_specification.bot_id #=> String
4646
+ # resp.resource_specification.bot_locale_export_specification.bot_version #=> String
4647
+ # resp.resource_specification.bot_locale_export_specification.locale_id #=> String
4648
+ # resp.file_format #=> String, one of "LexJson"
4649
+ # resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
4650
+ # resp.creation_date_time #=> Time
4651
+ # resp.last_updated_date_time #=> Time
4652
+ #
4653
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateExport AWS API Documentation
4654
+ #
4655
+ # @overload update_export(params = {})
4656
+ # @param [Hash] params ({})
4657
+ def update_export(params = {}, options = {})
4658
+ req = build_request(:update_export, params)
4659
+ req.send_request(options)
4660
+ end
4661
+
3818
4662
  # Updates the settings for an intent.
3819
4663
  #
3820
4664
  # @option params [required, String] :intent_id
@@ -3873,12 +4717,11 @@ module Aws::LexModelsV2
3873
4717
  # @option params [required, String] :locale_id
3874
4718
  # The identifier of the language and locale where this intent is used.
3875
4719
  # 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].
4720
+ # information, see [Supported languages][1].
3878
4721
  #
3879
4722
  #
3880
4723
  #
3881
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
4724
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3882
4725
  #
3883
4726
  # @return [Types::UpdateIntentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3884
4727
  #
@@ -4212,6 +5055,62 @@ module Aws::LexModelsV2
4212
5055
  req.send_request(options)
4213
5056
  end
4214
5057
 
5058
+ # Replaces the existing resource policy for a bot or bot alias with a
5059
+ # new one. If the policy doesn't exist, Amazon Lex returns an
5060
+ # exception.
5061
+ #
5062
+ # @option params [required, String] :resource_arn
5063
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
5064
+ # resource policy is attached to.
5065
+ #
5066
+ # @option params [required, String] :policy
5067
+ # A resource policy to add to the resource. The policy is a JSON
5068
+ # structure that contains one or more statements that define the policy.
5069
+ # The policy must follow the IAM syntax. For more information about the
5070
+ # contents of a JSON policy document, see [ IAM JSON policy reference
5071
+ # ][1].
5072
+ #
5073
+ # If the policy isn't valid, Amazon Lex returns a validation exception.
5074
+ #
5075
+ #
5076
+ #
5077
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html
5078
+ #
5079
+ # @option params [String] :expected_revision_id
5080
+ # The identifier of the revision of the policy to update. If this
5081
+ # revision ID doesn't match the current revision ID, Amazon Lex throws
5082
+ # an exception.
5083
+ #
5084
+ # If you don't specify a revision, Amazon Lex overwrites the contents
5085
+ # of the policy with the new values.
5086
+ #
5087
+ # @return [Types::UpdateResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5088
+ #
5089
+ # * {Types::UpdateResourcePolicyResponse#resource_arn #resource_arn} => String
5090
+ # * {Types::UpdateResourcePolicyResponse#revision_id #revision_id} => String
5091
+ #
5092
+ # @example Request syntax with placeholder values
5093
+ #
5094
+ # resp = client.update_resource_policy({
5095
+ # resource_arn: "AmazonResourceName", # required
5096
+ # policy: "Policy", # required
5097
+ # expected_revision_id: "RevisionId",
5098
+ # })
5099
+ #
5100
+ # @example Response structure
5101
+ #
5102
+ # resp.resource_arn #=> String
5103
+ # resp.revision_id #=> String
5104
+ #
5105
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateResourcePolicy AWS API Documentation
5106
+ #
5107
+ # @overload update_resource_policy(params = {})
5108
+ # @param [Hash] params ({})
5109
+ def update_resource_policy(params = {}, options = {})
5110
+ req = build_request(:update_resource_policy, params)
5111
+ req.send_request(options)
5112
+ end
5113
+
4215
5114
  # Updates the settings for a slot.
4216
5115
  #
4217
5116
  # @option params [required, String] :slot_id
@@ -4244,16 +5143,24 @@ module Aws::LexModelsV2
4244
5143
  # @option params [required, String] :locale_id
4245
5144
  # The identifier of the language and locale that contains the slot. The
4246
5145
  # 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].
5146
+ # see [Supported languages][1].
4249
5147
  #
4250
5148
  #
4251
5149
  #
4252
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
5150
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
4253
5151
  #
4254
5152
  # @option params [required, String] :intent_id
4255
5153
  # The identifier of the intent that contains the slot.
4256
5154
  #
5155
+ # @option params [Types::MultipleValuesSetting] :multiple_values_setting
5156
+ # Determines whether the slot accepts multiple values in one response.
5157
+ # Multiple value slots are only available in the en-US locale. If you
5158
+ # set this value to `true` in any other locale, Amazon Lex throws a
5159
+ # `ValidationException`.
5160
+ #
5161
+ # If the `multipleValuesSetting` is not set, the default value is
5162
+ # `false`.
5163
+ #
4257
5164
  # @return [Types::UpdateSlotResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4258
5165
  #
4259
5166
  # * {Types::UpdateSlotResponse#slot_id #slot_id} => String
@@ -4268,6 +5175,7 @@ module Aws::LexModelsV2
4268
5175
  # * {Types::UpdateSlotResponse#intent_id #intent_id} => String
4269
5176
  # * {Types::UpdateSlotResponse#creation_date_time #creation_date_time} => Time
4270
5177
  # * {Types::UpdateSlotResponse#last_updated_date_time #last_updated_date_time} => Time
5178
+ # * {Types::UpdateSlotResponse#multiple_values_setting #multiple_values_setting} => Types::MultipleValuesSetting
4271
5179
  #
4272
5180
  # @example Request syntax with placeholder values
4273
5181
  #
@@ -4515,6 +5423,9 @@ module Aws::LexModelsV2
4515
5423
  # bot_version: "DraftBotVersion", # required
4516
5424
  # locale_id: "LocaleId", # required
4517
5425
  # intent_id: "Id", # required
5426
+ # multiple_values_setting: {
5427
+ # allow_multiple_values: false,
5428
+ # },
4518
5429
  # })
4519
5430
  #
4520
5431
  # @example Response structure
@@ -4622,6 +5533,7 @@ module Aws::LexModelsV2
4622
5533
  # resp.intent_id #=> String
4623
5534
  # resp.creation_date_time #=> Time
4624
5535
  # resp.last_updated_date_time #=> Time
5536
+ # resp.multiple_values_setting.allow_multiple_values #=> Boolean
4625
5537
  #
4626
5538
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlot AWS API Documentation
4627
5539
  #
@@ -4664,12 +5576,11 @@ module Aws::LexModelsV2
4664
5576
  # @option params [required, String] :locale_id
4665
5577
  # The identifier of the language and locale that contains the slot type.
4666
5578
  # 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].
5579
+ # information, see [Supported languages][1].
4669
5580
  #
4670
5581
  #
4671
5582
  #
4672
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
5583
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
4673
5584
  #
4674
5585
  # @return [Types::UpdateSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4675
5586
  #
@@ -4755,7 +5666,7 @@ module Aws::LexModelsV2
4755
5666
  params: params,
4756
5667
  config: config)
4757
5668
  context[:gem_name] = 'aws-sdk-lexmodelsv2'
4758
- context[:gem_version] = '1.0.1'
5669
+ context[:gem_version] = '1.5.0'
4759
5670
  Seahorse::Client::Request.new(handlers, context)
4760
5671
  end
4761
5672