aws-sdk-lexmodelsv2 1.0.0 → 1.4.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: 9f893fba17f6da19d68558720c760d011c781c0b1acda6ad1859c80c430d9dcf
4
- data.tar.gz: ad0570a30228749be1bb01f79350897d6e75c14e08143ccb6b0d9699ef1d90d3
3
+ metadata.gz: dbd5c99d5bfb133ba82cd3ef06fcf3b460659d217b4977a4f22dfb86f0df8ab5
4
+ data.tar.gz: 7c10d9d7a366ca1cd919883e8ccb38c1edbedf38bf5b416173e98377c7e52fd5
5
5
  SHA512:
6
- metadata.gz: 9a4323f70cc23b2d709dbe3dea4c1e813e062a8738e5682f469627982e2d5f7a79ab483eb431944c45ad69ddc4fb4df02d5bf13188542e47b942193633f4e78d
7
- data.tar.gz: 0bb072eeceb72d71d5019ddd70e59e00a05740c486b8f1210f1a0ab53e68b6f30c24f35de48fcc8786fb10e224be7ed1fa73af039e4afdede2c2f736afb9ad73
6
+ metadata.gz: c99eb903424dff1e76991a0aba3fdda20c3a2d3eb7303e4742f20962733c7f9357f38e833c3ec9f62b49a741a9dc9f5222137ccd07886cec20926f8246d0898c
7
+ data.tar.gz: dc30dd61ddd22cc274dbb59a4b7631e5d7982769d7a0a17246a69c4a3e01afba5b8e3ea9e7d159f2d75193cead2cc7409f1596669d812a122b1c3e20b15914de
data/CHANGELOG.md ADDED
@@ -0,0 +1,32 @@
1
+ Unreleased Changes
2
+ ------------------
3
+
4
+ 1.4.0 (2021-05-20)
5
+ ------------------
6
+
7
+ * 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
8
+
9
+ 1.3.0 (2021-05-18)
10
+ ------------------
11
+
12
+ * 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
13
+
14
+ 1.2.0 (2021-03-10)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.1.0 (2021-02-02)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
24
+ 1.0.1 (2021-01-29)
25
+ ------------------
26
+
27
+ * Issue - Add a `Content-Type` header to mitigate a service side issue.
28
+
29
+ 1.0.0 (2021-01-22)
30
+ ------------------
31
+
32
+ * 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.4.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.0'
51
+ GEM_VERSION = '1.4.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
 
@@ -29,6 +29,7 @@ require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
31
31
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
32
+ require 'aws-sdk-lexmodelsv2/plugins/content_type.rb'
32
33
 
33
34
  Aws::Plugins::GlobalConfiguration.add_identifier(:lexmodelsv2)
34
35
 
@@ -75,6 +76,7 @@ module Aws::LexModelsV2
75
76
  add_plugin(Aws::Plugins::HttpChecksum)
76
77
  add_plugin(Aws::Plugins::SignatureV4)
77
78
  add_plugin(Aws::Plugins::Protocols::RestJson)
79
+ add_plugin(Aws::LexModelsV2::Plugins::ContentType)
78
80
 
79
81
  # @overload initialize(options)
80
82
  # @param [Hash] options
@@ -343,12 +345,11 @@ module Aws::LexModelsV2
343
345
  # The identifier of the language and locale that the bot will be used
344
346
  # in. The string must match one of the supported locales. All of the
345
347
  # intents, slot types, and slots used in the bot must have the same
346
- # locale. For more information, see
347
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
348
+ # locale. For more information, see [Supported languages][1].
348
349
  #
349
350
  #
350
351
  #
351
- # [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
352
353
  #
353
354
  # @return [Types::BuildBotLocaleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
354
355
  #
@@ -371,7 +372,7 @@ module Aws::LexModelsV2
371
372
  # resp.bot_id #=> String
372
373
  # resp.bot_version #=> String
373
374
  # resp.locale_id #=> String
374
- # 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"
375
376
  # resp.last_build_submitted_date_time #=> Time
376
377
  #
377
378
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BuildBotLocale AWS API Documentation
@@ -461,7 +462,7 @@ module Aws::LexModelsV2
461
462
  # resp.role_arn #=> String
462
463
  # resp.data_privacy.child_directed #=> Boolean
463
464
  # resp.idle_session_ttl_in_seconds #=> Integer
464
- # 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"
465
466
  # resp.creation_date_time #=> Time
466
467
  # resp.bot_tags #=> Hash
467
468
  # resp.bot_tags["TagKey"] #=> String
@@ -635,12 +636,11 @@ module Aws::LexModelsV2
635
636
  # The identifier of the language and locale that the bot will be used
636
637
  # in. The string must match one of the supported locales. All of the
637
638
  # intents, slot types, and slots used in the bot must have the same
638
- # locale. For more information, see
639
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
639
+ # locale. For more information, see [Supported languages][1].
640
640
  #
641
641
  #
642
642
  #
643
- # [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
644
644
  #
645
645
  # @option params [String] :description
646
646
  # A description of the bot locale. Use this to help identify the bot
@@ -705,7 +705,7 @@ module Aws::LexModelsV2
705
705
  # resp.description #=> String
706
706
  # resp.nlu_intent_confidence_threshold #=> Float
707
707
  # resp.voice_settings.voice_id #=> String
708
- # 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"
709
709
  # resp.creation_date_time #=> Time
710
710
  #
711
711
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateBotLocale AWS API Documentation
@@ -766,7 +766,7 @@ module Aws::LexModelsV2
766
766
  # resp.bot_version #=> String
767
767
  # resp.bot_version_locale_specification #=> Hash
768
768
  # resp.bot_version_locale_specification["LocaleId"].source_bot_version #=> String
769
- # 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"
770
770
  # resp.creation_date_time #=> Time
771
771
  #
772
772
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateBotVersion AWS API Documentation
@@ -778,6 +778,80 @@ module Aws::LexModelsV2
778
778
  req.send_request(options)
779
779
  end
780
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
+
781
855
  # Creates an intent.
782
856
  #
783
857
  # To define the interaction between the user and your bot, you define
@@ -906,7 +980,11 @@ module Aws::LexModelsV2
906
980
  # @option params [required, String] :locale_id
907
981
  # The identifier of the language and locale where this intent is used.
908
982
  # All of the bots, slot types, and slots used by the intent must have
909
- # 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
910
988
  #
911
989
  # @return [Types::CreateIntentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
912
990
  #
@@ -1227,6 +1305,154 @@ module Aws::LexModelsV2
1227
1305
  req.send_request(options)
1228
1306
  end
1229
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 create a resource policy statement that allows cross-account
1358
+ # 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
+
1230
1456
  # Creates a slot in an intent. A slot is a variable needed to fulfill an
1231
1457
  # intent. For example, an `OrderPizza` intent might need slots for size,
1232
1458
  # crust, and number of pizzas. For each slot, you define one or more
@@ -1266,12 +1492,11 @@ module Aws::LexModelsV2
1266
1492
  # The identifier of the language and locale that the slot will be used
1267
1493
  # in. The string must match one of the supported locales. All of the
1268
1494
  # bots, intents, slot types used by the slot must have the same locale.
1269
- # For more information, see
1270
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
1495
+ # For more information, see [Supported languages][1].
1271
1496
  #
1272
1497
  #
1273
1498
  #
1274
- # [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
1275
1500
  #
1276
1501
  # @option params [required, String] :intent_id
1277
1502
  # The identifier of the intent that contains the slot.
@@ -1703,12 +1928,11 @@ module Aws::LexModelsV2
1703
1928
  # The identifier of the language and locale that the slot type will be
1704
1929
  # used in. The string must match one of the supported locales. All of
1705
1930
  # the bots, intents, and slots used by the slot type must have the same
1706
- # locale. For more information, see
1707
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
1931
+ # locale. For more information, see [Supported languages][1].
1708
1932
  #
1709
1933
  #
1710
1934
  #
1711
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
1935
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
1712
1936
  #
1713
1937
  # @return [Types::CreateSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1714
1938
  #
@@ -1778,6 +2002,28 @@ module Aws::LexModelsV2
1778
2002
  req.send_request(options)
1779
2003
  end
1780
2004
 
2005
+ # Gets a pre-signed S3 write URL that you use to upload the zip archive
2006
+ # when importing a bot or a bot locale.
2007
+ #
2008
+ # @return [Types::CreateUploadUrlResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2009
+ #
2010
+ # * {Types::CreateUploadUrlResponse#import_id #import_id} => String
2011
+ # * {Types::CreateUploadUrlResponse#upload_url #upload_url} => String
2012
+ #
2013
+ # @example Response structure
2014
+ #
2015
+ # resp.import_id #=> String
2016
+ # resp.upload_url #=> String
2017
+ #
2018
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateUploadUrl AWS API Documentation
2019
+ #
2020
+ # @overload create_upload_url(params = {})
2021
+ # @param [Hash] params ({})
2022
+ def create_upload_url(params = {}, options = {})
2023
+ req = build_request(:create_upload_url, params)
2024
+ req.send_request(options)
2025
+ end
2026
+
1781
2027
  # Deletes all versions of a bot, including the `Draft` version. To
1782
2028
  # delete a specific version, use the `DeleteBotVersion` operation.
1783
2029
  #
@@ -1811,7 +2057,7 @@ module Aws::LexModelsV2
1811
2057
  # @example Response structure
1812
2058
  #
1813
2059
  # resp.bot_id #=> String
1814
- # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
2060
+ # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
1815
2061
  #
1816
2062
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteBot AWS API Documentation
1817
2063
  #
@@ -1877,12 +2123,11 @@ module Aws::LexModelsV2
1877
2123
  # @option params [required, String] :locale_id
1878
2124
  # The identifier of the language and locale that will be deleted. The
1879
2125
  # string must match one of the supported locales. For more information,
1880
- # see
1881
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
2126
+ # see [Supported languages][1].
1882
2127
  #
1883
2128
  #
1884
2129
  #
1885
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2130
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
1886
2131
  #
1887
2132
  # @return [Types::DeleteBotLocaleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1888
2133
  #
@@ -1904,7 +2149,7 @@ module Aws::LexModelsV2
1904
2149
  # resp.bot_id #=> String
1905
2150
  # resp.bot_version #=> String
1906
2151
  # resp.locale_id #=> String
1907
- # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt"
2152
+ # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
1908
2153
  #
1909
2154
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteBotLocale AWS API Documentation
1910
2155
  #
@@ -1949,7 +2194,7 @@ module Aws::LexModelsV2
1949
2194
  #
1950
2195
  # resp.bot_id #=> String
1951
2196
  # resp.bot_version #=> String
1952
- # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
2197
+ # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
1953
2198
  #
1954
2199
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteBotVersion AWS API Documentation
1955
2200
  #
@@ -1960,6 +2205,68 @@ module Aws::LexModelsV2
1960
2205
  req.send_request(options)
1961
2206
  end
1962
2207
 
2208
+ # Removes a previous export and the associated files stored in an S3
2209
+ # bucket.
2210
+ #
2211
+ # @option params [required, String] :export_id
2212
+ # The unique identifier of the export to delete.
2213
+ #
2214
+ # @return [Types::DeleteExportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2215
+ #
2216
+ # * {Types::DeleteExportResponse#export_id #export_id} => String
2217
+ # * {Types::DeleteExportResponse#export_status #export_status} => String
2218
+ #
2219
+ # @example Request syntax with placeholder values
2220
+ #
2221
+ # resp = client.delete_export({
2222
+ # export_id: "Id", # required
2223
+ # })
2224
+ #
2225
+ # @example Response structure
2226
+ #
2227
+ # resp.export_id #=> String
2228
+ # resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
2229
+ #
2230
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteExport AWS API Documentation
2231
+ #
2232
+ # @overload delete_export(params = {})
2233
+ # @param [Hash] params ({})
2234
+ def delete_export(params = {}, options = {})
2235
+ req = build_request(:delete_export, params)
2236
+ req.send_request(options)
2237
+ end
2238
+
2239
+ # Removes a previous import and the associated file stored in an S3
2240
+ # bucket.
2241
+ #
2242
+ # @option params [required, String] :import_id
2243
+ # The unique identifier of the import to delete.
2244
+ #
2245
+ # @return [Types::DeleteImportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2246
+ #
2247
+ # * {Types::DeleteImportResponse#import_id #import_id} => String
2248
+ # * {Types::DeleteImportResponse#import_status #import_status} => String
2249
+ #
2250
+ # @example Request syntax with placeholder values
2251
+ #
2252
+ # resp = client.delete_import({
2253
+ # import_id: "Id", # required
2254
+ # })
2255
+ #
2256
+ # @example Response structure
2257
+ #
2258
+ # resp.import_id #=> String
2259
+ # resp.import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
2260
+ #
2261
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteImport AWS API Documentation
2262
+ #
2263
+ # @overload delete_import(params = {})
2264
+ # @param [Hash] params ({})
2265
+ def delete_import(params = {}, options = {})
2266
+ req = build_request(:delete_import, params)
2267
+ req.send_request(options)
2268
+ end
2269
+
1963
2270
  # Removes the specified intent.
1964
2271
  #
1965
2272
  # Deleting an intent also deletes the slots associated with the intent.
@@ -1976,12 +2283,11 @@ module Aws::LexModelsV2
1976
2283
  # @option params [required, String] :locale_id
1977
2284
  # The identifier of the language and locale where the bot will be
1978
2285
  # deleted. The string must match one of the supported locales. For more
1979
- # information, see
1980
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
2286
+ # information, see [Supported languages][1].
1981
2287
  #
1982
2288
  #
1983
2289
  #
1984
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2290
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
1985
2291
  #
1986
2292
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1987
2293
  #
@@ -2003,6 +2309,94 @@ module Aws::LexModelsV2
2003
2309
  req.send_request(options)
2004
2310
  end
2005
2311
 
2312
+ # Removes an existing policy from a bot or bot alias. If the resource
2313
+ # doesn't have a policy attached, Amazon Lex returns an exception.
2314
+ #
2315
+ # @option params [required, String] :resource_arn
2316
+ # The Amazon Resource Name (ARN) of the bot or bot alias that has the
2317
+ # resource policy attached.
2318
+ #
2319
+ # @option params [String] :expected_revision_id
2320
+ # The identifier of the revision to edit. If this ID doesn't match the
2321
+ # current revision number, Amazon Lex returns an exception
2322
+ #
2323
+ # If you don't specify a revision ID, Amazon Lex will delete the
2324
+ # current policy.
2325
+ #
2326
+ # @return [Types::DeleteResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2327
+ #
2328
+ # * {Types::DeleteResourcePolicyResponse#resource_arn #resource_arn} => String
2329
+ # * {Types::DeleteResourcePolicyResponse#revision_id #revision_id} => String
2330
+ #
2331
+ # @example Request syntax with placeholder values
2332
+ #
2333
+ # resp = client.delete_resource_policy({
2334
+ # resource_arn: "AmazonResourceName", # required
2335
+ # expected_revision_id: "RevisionId",
2336
+ # })
2337
+ #
2338
+ # @example Response structure
2339
+ #
2340
+ # resp.resource_arn #=> String
2341
+ # resp.revision_id #=> String
2342
+ #
2343
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteResourcePolicy AWS API Documentation
2344
+ #
2345
+ # @overload delete_resource_policy(params = {})
2346
+ # @param [Hash] params ({})
2347
+ def delete_resource_policy(params = {}, options = {})
2348
+ req = build_request(:delete_resource_policy, params)
2349
+ req.send_request(options)
2350
+ end
2351
+
2352
+ # Deletes a policy statement from a resource policy. If you delete the
2353
+ # last statement from a policy, the policy is deleted. If you specify a
2354
+ # statement ID that doesn't exist in the policy, or if the bot or bot
2355
+ # alias doesn't have a policy attached, Amazon Lex returns an
2356
+ # exception.
2357
+ #
2358
+ # @option params [required, String] :resource_arn
2359
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
2360
+ # resource policy is attached to.
2361
+ #
2362
+ # @option params [required, String] :statement_id
2363
+ # The name of the statement (SID) to delete from the policy.
2364
+ #
2365
+ # @option params [String] :expected_revision_id
2366
+ # The identifier of the revision of the policy to delete the statement
2367
+ # from. If this revision ID doesn't match the current revision ID,
2368
+ # Amazon Lex throws an exception.
2369
+ #
2370
+ # If you don't specify a revision, Amazon Lex removes the current
2371
+ # contents of the statement.
2372
+ #
2373
+ # @return [Types::DeleteResourcePolicyStatementResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2374
+ #
2375
+ # * {Types::DeleteResourcePolicyStatementResponse#resource_arn #resource_arn} => String
2376
+ # * {Types::DeleteResourcePolicyStatementResponse#revision_id #revision_id} => String
2377
+ #
2378
+ # @example Request syntax with placeholder values
2379
+ #
2380
+ # resp = client.delete_resource_policy_statement({
2381
+ # resource_arn: "AmazonResourceName", # required
2382
+ # statement_id: "Name", # required
2383
+ # expected_revision_id: "RevisionId",
2384
+ # })
2385
+ #
2386
+ # @example Response structure
2387
+ #
2388
+ # resp.resource_arn #=> String
2389
+ # resp.revision_id #=> String
2390
+ #
2391
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteResourcePolicyStatement AWS API Documentation
2392
+ #
2393
+ # @overload delete_resource_policy_statement(params = {})
2394
+ # @param [Hash] params ({})
2395
+ def delete_resource_policy_statement(params = {}, options = {})
2396
+ req = build_request(:delete_resource_policy_statement, params)
2397
+ req.send_request(options)
2398
+ end
2399
+
2006
2400
  # Deletes the specified slot from an intent.
2007
2401
  #
2008
2402
  # @option params [required, String] :slot_id
@@ -2017,12 +2411,11 @@ module Aws::LexModelsV2
2017
2411
  # @option params [required, String] :locale_id
2018
2412
  # The identifier of the language and locale that the slot will be
2019
2413
  # deleted from. The string must match one of the supported locales. For
2020
- # more information, see
2021
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
2414
+ # more information, see [Supported languages][1].
2022
2415
  #
2023
2416
  #
2024
2417
  #
2025
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2418
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2026
2419
  #
2027
2420
  # @option params [required, String] :intent_id
2028
2421
  # The identifier of the intent associated with the slot.
@@ -2066,12 +2459,11 @@ module Aws::LexModelsV2
2066
2459
  # @option params [required, String] :locale_id
2067
2460
  # The identifier of the language and locale that the slot type will be
2068
2461
  # deleted from. The string must match one of the supported locales. For
2069
- # more information, see
2070
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
2462
+ # more information, see [Supported languages][1].
2071
2463
  #
2072
2464
  #
2073
2465
  #
2074
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2466
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2075
2467
  #
2076
2468
  # @option params [Boolean] :skip_resource_in_use_check
2077
2469
  # By default, the `DeleteSlotType` operations throws a
@@ -2131,7 +2523,7 @@ module Aws::LexModelsV2
2131
2523
  # resp.role_arn #=> String
2132
2524
  # resp.data_privacy.child_directed #=> Boolean
2133
2525
  # resp.idle_session_ttl_in_seconds #=> Integer
2134
- # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
2526
+ # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
2135
2527
  # resp.creation_date_time #=> Time
2136
2528
  # resp.last_updated_date_time #=> Time
2137
2529
  #
@@ -2222,12 +2614,12 @@ module Aws::LexModelsV2
2222
2614
  #
2223
2615
  # @option params [required, String] :locale_id
2224
2616
  # The unique identifier of the locale to describe. The string must match
2225
- # one of the supported locales. For more information, see
2226
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
2617
+ # one of the supported locales. For more information, see [Supported
2618
+ # languages][1].
2227
2619
  #
2228
2620
  #
2229
2621
  #
2230
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2622
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2231
2623
  #
2232
2624
  # @return [Types::DescribeBotLocaleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2233
2625
  #
@@ -2266,7 +2658,7 @@ module Aws::LexModelsV2
2266
2658
  # resp.voice_settings.voice_id #=> String
2267
2659
  # resp.intents_count #=> Integer
2268
2660
  # resp.slot_types_count #=> Integer
2269
- # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt"
2661
+ # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
2270
2662
  # resp.failure_reasons #=> Array
2271
2663
  # resp.failure_reasons[0] #=> String
2272
2664
  # resp.creation_date_time #=> Time
@@ -2323,7 +2715,7 @@ module Aws::LexModelsV2
2323
2715
  # resp.role_arn #=> String
2324
2716
  # resp.data_privacy.child_directed #=> Boolean
2325
2717
  # resp.idle_session_ttl_in_seconds #=> Integer
2326
- # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
2718
+ # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
2327
2719
  # resp.failure_reasons #=> Array
2328
2720
  # resp.failure_reasons[0] #=> String
2329
2721
  # resp.creation_date_time #=> Time
@@ -2337,6 +2729,110 @@ module Aws::LexModelsV2
2337
2729
  req.send_request(options)
2338
2730
  end
2339
2731
 
2732
+ # Gets information about a specific export.
2733
+ #
2734
+ # @option params [required, String] :export_id
2735
+ # The unique identifier of the export to describe.
2736
+ #
2737
+ # @return [Types::DescribeExportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2738
+ #
2739
+ # * {Types::DescribeExportResponse#export_id #export_id} => String
2740
+ # * {Types::DescribeExportResponse#resource_specification #resource_specification} => Types::ExportResourceSpecification
2741
+ # * {Types::DescribeExportResponse#file_format #file_format} => String
2742
+ # * {Types::DescribeExportResponse#export_status #export_status} => String
2743
+ # * {Types::DescribeExportResponse#failure_reasons #failure_reasons} => Array&lt;String&gt;
2744
+ # * {Types::DescribeExportResponse#download_url #download_url} => String
2745
+ # * {Types::DescribeExportResponse#creation_date_time #creation_date_time} => Time
2746
+ # * {Types::DescribeExportResponse#last_updated_date_time #last_updated_date_time} => Time
2747
+ #
2748
+ # @example Request syntax with placeholder values
2749
+ #
2750
+ # resp = client.describe_export({
2751
+ # export_id: "Id", # required
2752
+ # })
2753
+ #
2754
+ # @example Response structure
2755
+ #
2756
+ # resp.export_id #=> String
2757
+ # resp.resource_specification.bot_export_specification.bot_id #=> String
2758
+ # resp.resource_specification.bot_export_specification.bot_version #=> String
2759
+ # resp.resource_specification.bot_locale_export_specification.bot_id #=> String
2760
+ # resp.resource_specification.bot_locale_export_specification.bot_version #=> String
2761
+ # resp.resource_specification.bot_locale_export_specification.locale_id #=> String
2762
+ # resp.file_format #=> String, one of "LexJson"
2763
+ # resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
2764
+ # resp.failure_reasons #=> Array
2765
+ # resp.failure_reasons[0] #=> String
2766
+ # resp.download_url #=> String
2767
+ # resp.creation_date_time #=> Time
2768
+ # resp.last_updated_date_time #=> Time
2769
+ #
2770
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeExport AWS API Documentation
2771
+ #
2772
+ # @overload describe_export(params = {})
2773
+ # @param [Hash] params ({})
2774
+ def describe_export(params = {}, options = {})
2775
+ req = build_request(:describe_export, params)
2776
+ req.send_request(options)
2777
+ end
2778
+
2779
+ # Gets information about a specific import.
2780
+ #
2781
+ # @option params [required, String] :import_id
2782
+ # The unique identifier of the import to describe.
2783
+ #
2784
+ # @return [Types::DescribeImportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2785
+ #
2786
+ # * {Types::DescribeImportResponse#import_id #import_id} => String
2787
+ # * {Types::DescribeImportResponse#resource_specification #resource_specification} => Types::ImportResourceSpecification
2788
+ # * {Types::DescribeImportResponse#imported_resource_id #imported_resource_id} => String
2789
+ # * {Types::DescribeImportResponse#imported_resource_name #imported_resource_name} => String
2790
+ # * {Types::DescribeImportResponse#merge_strategy #merge_strategy} => String
2791
+ # * {Types::DescribeImportResponse#import_status #import_status} => String
2792
+ # * {Types::DescribeImportResponse#failure_reasons #failure_reasons} => Array&lt;String&gt;
2793
+ # * {Types::DescribeImportResponse#creation_date_time #creation_date_time} => Time
2794
+ # * {Types::DescribeImportResponse#last_updated_date_time #last_updated_date_time} => Time
2795
+ #
2796
+ # @example Request syntax with placeholder values
2797
+ #
2798
+ # resp = client.describe_import({
2799
+ # import_id: "Id", # required
2800
+ # })
2801
+ #
2802
+ # @example Response structure
2803
+ #
2804
+ # resp.import_id #=> String
2805
+ # resp.resource_specification.bot_import_specification.bot_name #=> String
2806
+ # resp.resource_specification.bot_import_specification.role_arn #=> String
2807
+ # resp.resource_specification.bot_import_specification.data_privacy.child_directed #=> Boolean
2808
+ # resp.resource_specification.bot_import_specification.idle_session_ttl_in_seconds #=> Integer
2809
+ # resp.resource_specification.bot_import_specification.bot_tags #=> Hash
2810
+ # resp.resource_specification.bot_import_specification.bot_tags["TagKey"] #=> String
2811
+ # resp.resource_specification.bot_import_specification.test_bot_alias_tags #=> Hash
2812
+ # resp.resource_specification.bot_import_specification.test_bot_alias_tags["TagKey"] #=> String
2813
+ # resp.resource_specification.bot_locale_import_specification.bot_id #=> String
2814
+ # resp.resource_specification.bot_locale_import_specification.bot_version #=> String
2815
+ # resp.resource_specification.bot_locale_import_specification.locale_id #=> String
2816
+ # resp.resource_specification.bot_locale_import_specification.nlu_intent_confidence_threshold #=> Float
2817
+ # resp.resource_specification.bot_locale_import_specification.voice_settings.voice_id #=> String
2818
+ # resp.imported_resource_id #=> String
2819
+ # resp.imported_resource_name #=> String
2820
+ # resp.merge_strategy #=> String, one of "Overwrite", "FailOnConflict"
2821
+ # resp.import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
2822
+ # resp.failure_reasons #=> Array
2823
+ # resp.failure_reasons[0] #=> String
2824
+ # resp.creation_date_time #=> Time
2825
+ # resp.last_updated_date_time #=> Time
2826
+ #
2827
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeImport AWS API Documentation
2828
+ #
2829
+ # @overload describe_import(params = {})
2830
+ # @param [Hash] params ({})
2831
+ def describe_import(params = {}, options = {})
2832
+ req = build_request(:describe_import, params)
2833
+ req.send_request(options)
2834
+ end
2835
+
2340
2836
  # Returns metadata about an intent.
2341
2837
  #
2342
2838
  # @option params [required, String] :intent_id
@@ -2351,12 +2847,11 @@ module Aws::LexModelsV2
2351
2847
  # @option params [required, String] :locale_id
2352
2848
  # The identifier of the language and locale of the intent to describe.
2353
2849
  # The string must match one of the supported locales. For more
2354
- # information, see
2355
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
2850
+ # information, see [Supported languages][1].
2356
2851
  #
2357
2852
  #
2358
2853
  #
2359
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2854
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2360
2855
  #
2361
2856
  # @return [Types::DescribeIntentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2362
2857
  #
@@ -2489,6 +2984,39 @@ module Aws::LexModelsV2
2489
2984
  req.send_request(options)
2490
2985
  end
2491
2986
 
2987
+ # Gets the resource policy and policy revision for a bot or bot alias.
2988
+ #
2989
+ # @option params [required, String] :resource_arn
2990
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
2991
+ # resource policy is attached to.
2992
+ #
2993
+ # @return [Types::DescribeResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2994
+ #
2995
+ # * {Types::DescribeResourcePolicyResponse#resource_arn #resource_arn} => String
2996
+ # * {Types::DescribeResourcePolicyResponse#policy #policy} => String
2997
+ # * {Types::DescribeResourcePolicyResponse#revision_id #revision_id} => String
2998
+ #
2999
+ # @example Request syntax with placeholder values
3000
+ #
3001
+ # resp = client.describe_resource_policy({
3002
+ # resource_arn: "AmazonResourceName", # required
3003
+ # })
3004
+ #
3005
+ # @example Response structure
3006
+ #
3007
+ # resp.resource_arn #=> String
3008
+ # resp.policy #=> String
3009
+ # resp.revision_id #=> String
3010
+ #
3011
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeResourcePolicy AWS API Documentation
3012
+ #
3013
+ # @overload describe_resource_policy(params = {})
3014
+ # @param [Hash] params ({})
3015
+ def describe_resource_policy(params = {}, options = {})
3016
+ req = build_request(:describe_resource_policy, params)
3017
+ req.send_request(options)
3018
+ end
3019
+
2492
3020
  # Gets metadata information about a slot.
2493
3021
  #
2494
3022
  # @option params [required, String] :slot_id
@@ -2503,12 +3031,11 @@ module Aws::LexModelsV2
2503
3031
  # @option params [required, String] :locale_id
2504
3032
  # The identifier of the language and locale of the slot to describe. The
2505
3033
  # string must match one of the supported locales. For more information,
2506
- # see
2507
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
3034
+ # see [Supported languages][1].
2508
3035
  #
2509
3036
  #
2510
3037
  #
2511
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3038
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2512
3039
  #
2513
3040
  # @option params [required, String] :intent_id
2514
3041
  # The identifier of the intent that contains the slot.
@@ -2667,12 +3194,11 @@ module Aws::LexModelsV2
2667
3194
  # @option params [required, String] :locale_id
2668
3195
  # The identifier of the language and locale of the slot type to
2669
3196
  # describe. The string must match one of the supported locales. For more
2670
- # information, see
2671
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
3197
+ # information, see [Supported languages][1].
2672
3198
  #
2673
3199
  #
2674
3200
  #
2675
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3201
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2676
3202
  #
2677
3203
  # @return [Types::DescribeSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2678
3204
  #
@@ -2844,7 +3370,7 @@ module Aws::LexModelsV2
2844
3370
  # resp.bot_locale_summaries[0].locale_id #=> String
2845
3371
  # resp.bot_locale_summaries[0].locale_name #=> String
2846
3372
  # resp.bot_locale_summaries[0].description #=> String
2847
- # resp.bot_locale_summaries[0].bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt"
3373
+ # resp.bot_locale_summaries[0].bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
2848
3374
  # resp.bot_locale_summaries[0].last_updated_date_time #=> Time
2849
3375
  # resp.bot_locale_summaries[0].last_build_submitted_date_time #=> Time
2850
3376
  #
@@ -2913,7 +3439,7 @@ module Aws::LexModelsV2
2913
3439
  # resp.bot_version_summaries[0].bot_name #=> String
2914
3440
  # resp.bot_version_summaries[0].bot_version #=> String
2915
3441
  # resp.bot_version_summaries[0].description #=> String
2916
- # resp.bot_version_summaries[0].bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
3442
+ # resp.bot_version_summaries[0].bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
2917
3443
  # resp.bot_version_summaries[0].creation_date_time #=> Time
2918
3444
  # resp.next_token #=> String
2919
3445
  #
@@ -2979,7 +3505,7 @@ module Aws::LexModelsV2
2979
3505
  # resp.bot_summaries[0].bot_id #=> String
2980
3506
  # resp.bot_summaries[0].bot_name #=> String
2981
3507
  # resp.bot_summaries[0].description #=> String
2982
- # resp.bot_summaries[0].bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
3508
+ # resp.bot_summaries[0].bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
2983
3509
  # resp.bot_summaries[0].latest_bot_version #=> String
2984
3510
  # resp.bot_summaries[0].last_updated_date_time #=> Time
2985
3511
  # resp.next_token #=> String
@@ -3004,12 +3530,11 @@ module Aws::LexModelsV2
3004
3530
  # @option params [required, String] :locale_id
3005
3531
  # The identifier of the language and locale of the intents to list. The
3006
3532
  # string must match one of the supported locales. For more information,
3007
- # see
3008
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
3533
+ # see [Supported languages][1].
3009
3534
  #
3010
3535
  #
3011
3536
  #
3012
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3537
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3013
3538
  #
3014
3539
  # @option params [Types::BuiltInIntentSortBy] :sort_by
3015
3540
  # Specifies sorting parameters for the list of built-in intents. You can
@@ -3069,12 +3594,11 @@ module Aws::LexModelsV2
3069
3594
  # @option params [required, String] :locale_id
3070
3595
  # The identifier of the language and locale of the slot types to list.
3071
3596
  # The string must match one of the supported locales. For more
3072
- # information, see
3073
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
3597
+ # information, see [Supported languages][1].
3074
3598
  #
3075
3599
  #
3076
3600
  #
3077
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3601
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3078
3602
  #
3079
3603
  # @option params [Types::BuiltInSlotTypeSortBy] :sort_by
3080
3604
  # Determines the sort order for the response from the
@@ -3129,6 +3653,173 @@ module Aws::LexModelsV2
3129
3653
  req.send_request(options)
3130
3654
  end
3131
3655
 
3656
+ # Lists the exports for a bot or bot locale. Exports are kept in the
3657
+ # list for 7 days.
3658
+ #
3659
+ # @option params [String] :bot_id
3660
+ # The unique identifier that Amazon Lex assigned to the bot.
3661
+ #
3662
+ # @option params [String] :bot_version
3663
+ # The version of the bot to list exports for.
3664
+ #
3665
+ # @option params [Types::ExportSortBy] :sort_by
3666
+ # Determines the field that the list of exports is sorted by. You can
3667
+ # sort by the `LastUpdatedDateTime` field in ascending or descending
3668
+ # order.
3669
+ #
3670
+ # @option params [Array<Types::ExportFilter>] :filters
3671
+ # Provides the specification of a filter used to limit the exports in
3672
+ # the response to only those that match the filter specification. You
3673
+ # can only specify one filter and one string to filter on.
3674
+ #
3675
+ # @option params [Integer] :max_results
3676
+ # The maximum number of exports to return in each page of results. If
3677
+ # there are fewer results than the max page size, only the actual number
3678
+ # of results are returned.
3679
+ #
3680
+ # @option params [String] :next_token
3681
+ # If the response from the `ListExports` operation contans more results
3682
+ # that specified in the `maxResults` parameter, a token is returned in
3683
+ # the response. Use that token in the `nextToken` parameter to return
3684
+ # the next page of results.
3685
+ #
3686
+ # @return [Types::ListExportsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3687
+ #
3688
+ # * {Types::ListExportsResponse#bot_id #bot_id} => String
3689
+ # * {Types::ListExportsResponse#bot_version #bot_version} => String
3690
+ # * {Types::ListExportsResponse#export_summaries #export_summaries} => Array&lt;Types::ExportSummary&gt;
3691
+ # * {Types::ListExportsResponse#next_token #next_token} => String
3692
+ #
3693
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3694
+ #
3695
+ # @example Request syntax with placeholder values
3696
+ #
3697
+ # resp = client.list_exports({
3698
+ # bot_id: "Id",
3699
+ # bot_version: "BotVersion",
3700
+ # sort_by: {
3701
+ # attribute: "LastUpdatedDateTime", # required, accepts LastUpdatedDateTime
3702
+ # order: "Ascending", # required, accepts Ascending, Descending
3703
+ # },
3704
+ # filters: [
3705
+ # {
3706
+ # name: "ExportResourceType", # required, accepts ExportResourceType
3707
+ # values: ["FilterValue"], # required
3708
+ # operator: "CO", # required, accepts CO, EQ
3709
+ # },
3710
+ # ],
3711
+ # max_results: 1,
3712
+ # next_token: "NextToken",
3713
+ # })
3714
+ #
3715
+ # @example Response structure
3716
+ #
3717
+ # resp.bot_id #=> String
3718
+ # resp.bot_version #=> String
3719
+ # resp.export_summaries #=> Array
3720
+ # resp.export_summaries[0].export_id #=> String
3721
+ # resp.export_summaries[0].resource_specification.bot_export_specification.bot_id #=> String
3722
+ # resp.export_summaries[0].resource_specification.bot_export_specification.bot_version #=> String
3723
+ # resp.export_summaries[0].resource_specification.bot_locale_export_specification.bot_id #=> String
3724
+ # resp.export_summaries[0].resource_specification.bot_locale_export_specification.bot_version #=> String
3725
+ # resp.export_summaries[0].resource_specification.bot_locale_export_specification.locale_id #=> String
3726
+ # resp.export_summaries[0].file_format #=> String, one of "LexJson"
3727
+ # resp.export_summaries[0].export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
3728
+ # resp.export_summaries[0].creation_date_time #=> Time
3729
+ # resp.export_summaries[0].last_updated_date_time #=> Time
3730
+ # resp.next_token #=> String
3731
+ #
3732
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListExports AWS API Documentation
3733
+ #
3734
+ # @overload list_exports(params = {})
3735
+ # @param [Hash] params ({})
3736
+ def list_exports(params = {}, options = {})
3737
+ req = build_request(:list_exports, params)
3738
+ req.send_request(options)
3739
+ end
3740
+
3741
+ # Lists the imports for a bot or bot locale. Imports are kept in the
3742
+ # list for 7 days.
3743
+ #
3744
+ # @option params [String] :bot_id
3745
+ # The unique identifier that Amazon Lex assigned to the bot.
3746
+ #
3747
+ # @option params [String] :bot_version
3748
+ # The version of the bot to list imports for.
3749
+ #
3750
+ # @option params [Types::ImportSortBy] :sort_by
3751
+ # Determines the field that the list of imports is sorted by. You can
3752
+ # sort by the `LastUpdatedDateTime` field in ascending or descending
3753
+ # order.
3754
+ #
3755
+ # @option params [Array<Types::ImportFilter>] :filters
3756
+ # Provides the specification of a filter used to limit the bots in the
3757
+ # response to only those that match the filter specification. You can
3758
+ # only specify one filter and one string to filter on.
3759
+ #
3760
+ # @option params [Integer] :max_results
3761
+ # The maximum number of imports to return in each page of results. If
3762
+ # there are fewer results than the max page size, only the actual number
3763
+ # of results are returned.
3764
+ #
3765
+ # @option params [String] :next_token
3766
+ # If the response from the `ListImports` operation contains more results
3767
+ # than specified in the `maxResults` parameter, a token is returned in
3768
+ # the response. Use that token in the `nextToken` parameter to return
3769
+ # the next page of results.
3770
+ #
3771
+ # @return [Types::ListImportsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3772
+ #
3773
+ # * {Types::ListImportsResponse#bot_id #bot_id} => String
3774
+ # * {Types::ListImportsResponse#bot_version #bot_version} => String
3775
+ # * {Types::ListImportsResponse#import_summaries #import_summaries} => Array&lt;Types::ImportSummary&gt;
3776
+ # * {Types::ListImportsResponse#next_token #next_token} => String
3777
+ #
3778
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3779
+ #
3780
+ # @example Request syntax with placeholder values
3781
+ #
3782
+ # resp = client.list_imports({
3783
+ # bot_id: "Id",
3784
+ # bot_version: "DraftBotVersion",
3785
+ # sort_by: {
3786
+ # attribute: "LastUpdatedDateTime", # required, accepts LastUpdatedDateTime
3787
+ # order: "Ascending", # required, accepts Ascending, Descending
3788
+ # },
3789
+ # filters: [
3790
+ # {
3791
+ # name: "ImportResourceType", # required, accepts ImportResourceType
3792
+ # values: ["FilterValue"], # required
3793
+ # operator: "CO", # required, accepts CO, EQ
3794
+ # },
3795
+ # ],
3796
+ # max_results: 1,
3797
+ # next_token: "NextToken",
3798
+ # })
3799
+ #
3800
+ # @example Response structure
3801
+ #
3802
+ # resp.bot_id #=> String
3803
+ # resp.bot_version #=> String
3804
+ # resp.import_summaries #=> Array
3805
+ # resp.import_summaries[0].import_id #=> String
3806
+ # resp.import_summaries[0].imported_resource_id #=> String
3807
+ # resp.import_summaries[0].imported_resource_name #=> String
3808
+ # resp.import_summaries[0].import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
3809
+ # resp.import_summaries[0].merge_strategy #=> String, one of "Overwrite", "FailOnConflict"
3810
+ # resp.import_summaries[0].creation_date_time #=> Time
3811
+ # resp.import_summaries[0].last_updated_date_time #=> Time
3812
+ # resp.next_token #=> String
3813
+ #
3814
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListImports AWS API Documentation
3815
+ #
3816
+ # @overload list_imports(params = {})
3817
+ # @param [Hash] params ({})
3818
+ def list_imports(params = {}, options = {})
3819
+ req = build_request(:list_imports, params)
3820
+ req.send_request(options)
3821
+ end
3822
+
3132
3823
  # Get a list of intents that meet the specified criteria.
3133
3824
  #
3134
3825
  # @option params [required, String] :bot_id
@@ -3140,12 +3831,11 @@ module Aws::LexModelsV2
3140
3831
  # @option params [required, String] :locale_id
3141
3832
  # The identifier of the language and locale of the intents to list. The
3142
3833
  # string must match one of the supported locales. For more information,
3143
- # see
3144
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
3834
+ # see [Supported languages][1].
3145
3835
  #
3146
3836
  #
3147
3837
  #
3148
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3838
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3149
3839
  #
3150
3840
  # @option params [Types::IntentSortBy] :sort_by
3151
3841
  # Determines the sort order for the response from the `ListIntents`
@@ -3238,12 +3928,11 @@ module Aws::LexModelsV2
3238
3928
  # @option params [required, String] :locale_id
3239
3929
  # The identifier of the language and locale of the slot types to list.
3240
3930
  # The string must match one of the supported locales. For more
3241
- # information, see
3242
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
3931
+ # information, see [Supported languages][1].
3243
3932
  #
3244
3933
  #
3245
3934
  #
3246
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3935
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3247
3936
  #
3248
3937
  # @option params [Types::SlotTypeSortBy] :sort_by
3249
3938
  # Determines the sort order for the response from the `ListSlotTypes`
@@ -3330,12 +4019,11 @@ module Aws::LexModelsV2
3330
4019
  # @option params [required, String] :locale_id
3331
4020
  # The identifier of the language and locale of the slots to list. The
3332
4021
  # string must match one of the supported locales. For more information,
3333
- # see
3334
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
4022
+ # see [Supported languages][1].
3335
4023
  #
3336
4024
  #
3337
4025
  #
3338
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
4026
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3339
4027
  #
3340
4028
  # @option params [required, String] :intent_id
3341
4029
  # The unique identifier of the intent that contains the slot.
@@ -3471,6 +4159,97 @@ module Aws::LexModelsV2
3471
4159
  req.send_request(options)
3472
4160
  end
3473
4161
 
4162
+ # Starts importing a bot or bot locale from a zip archive that you
4163
+ # uploaded to an S3 bucket.
4164
+ #
4165
+ # @option params [required, String] :import_id
4166
+ # The unique identifier for the import. It is included in the response
4167
+ # from the operation.
4168
+ #
4169
+ # @option params [required, Types::ImportResourceSpecification] :resource_specification
4170
+ # Parameters for creating the bot or bot locale.
4171
+ #
4172
+ # @option params [required, String] :merge_strategy
4173
+ # The strategy to use when there is a name conflict between the imported
4174
+ # resource and an existing resource. When the merge strategy is
4175
+ # `FailOnConflict` existing resources are not overwritten and the import
4176
+ # fails.
4177
+ #
4178
+ # @option params [String] :file_password
4179
+ # The password used to encrypt the zip archive that contains the bot or
4180
+ # bot locale definition. You should always encrypt the zip archive to
4181
+ # protect it during transit between your site and Amazon Lex.
4182
+ #
4183
+ # @return [Types::StartImportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4184
+ #
4185
+ # * {Types::StartImportResponse#import_id #import_id} => String
4186
+ # * {Types::StartImportResponse#resource_specification #resource_specification} => Types::ImportResourceSpecification
4187
+ # * {Types::StartImportResponse#merge_strategy #merge_strategy} => String
4188
+ # * {Types::StartImportResponse#import_status #import_status} => String
4189
+ # * {Types::StartImportResponse#creation_date_time #creation_date_time} => Time
4190
+ #
4191
+ # @example Request syntax with placeholder values
4192
+ #
4193
+ # resp = client.start_import({
4194
+ # import_id: "Id", # required
4195
+ # resource_specification: { # required
4196
+ # bot_import_specification: {
4197
+ # bot_name: "Name", # required
4198
+ # role_arn: "RoleArn", # required
4199
+ # data_privacy: { # required
4200
+ # child_directed: false, # required
4201
+ # },
4202
+ # idle_session_ttl_in_seconds: 1,
4203
+ # bot_tags: {
4204
+ # "TagKey" => "TagValue",
4205
+ # },
4206
+ # test_bot_alias_tags: {
4207
+ # "TagKey" => "TagValue",
4208
+ # },
4209
+ # },
4210
+ # bot_locale_import_specification: {
4211
+ # bot_id: "Id", # required
4212
+ # bot_version: "DraftBotVersion", # required
4213
+ # locale_id: "LocaleId", # required
4214
+ # nlu_intent_confidence_threshold: 1.0,
4215
+ # voice_settings: {
4216
+ # voice_id: "VoiceId", # required
4217
+ # },
4218
+ # },
4219
+ # },
4220
+ # merge_strategy: "Overwrite", # required, accepts Overwrite, FailOnConflict
4221
+ # file_password: "ImportExportFilePassword",
4222
+ # })
4223
+ #
4224
+ # @example Response structure
4225
+ #
4226
+ # resp.import_id #=> String
4227
+ # resp.resource_specification.bot_import_specification.bot_name #=> String
4228
+ # resp.resource_specification.bot_import_specification.role_arn #=> String
4229
+ # resp.resource_specification.bot_import_specification.data_privacy.child_directed #=> Boolean
4230
+ # resp.resource_specification.bot_import_specification.idle_session_ttl_in_seconds #=> Integer
4231
+ # resp.resource_specification.bot_import_specification.bot_tags #=> Hash
4232
+ # resp.resource_specification.bot_import_specification.bot_tags["TagKey"] #=> String
4233
+ # resp.resource_specification.bot_import_specification.test_bot_alias_tags #=> Hash
4234
+ # resp.resource_specification.bot_import_specification.test_bot_alias_tags["TagKey"] #=> String
4235
+ # resp.resource_specification.bot_locale_import_specification.bot_id #=> String
4236
+ # resp.resource_specification.bot_locale_import_specification.bot_version #=> String
4237
+ # resp.resource_specification.bot_locale_import_specification.locale_id #=> String
4238
+ # resp.resource_specification.bot_locale_import_specification.nlu_intent_confidence_threshold #=> Float
4239
+ # resp.resource_specification.bot_locale_import_specification.voice_settings.voice_id #=> String
4240
+ # resp.merge_strategy #=> String, one of "Overwrite", "FailOnConflict"
4241
+ # resp.import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
4242
+ # resp.creation_date_time #=> Time
4243
+ #
4244
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/StartImport AWS API Documentation
4245
+ #
4246
+ # @overload start_import(params = {})
4247
+ # @param [Hash] params ({})
4248
+ def start_import(params = {}, options = {})
4249
+ req = build_request(:start_import, params)
4250
+ req.send_request(options)
4251
+ end
4252
+
3474
4253
  # Adds the specified tags to the specified resource. If a tag key
3475
4254
  # already exists, the existing value is replaced with the new value.
3476
4255
  #
@@ -3594,7 +4373,7 @@ module Aws::LexModelsV2
3594
4373
  # resp.role_arn #=> String
3595
4374
  # resp.data_privacy.child_directed #=> Boolean
3596
4375
  # resp.idle_session_ttl_in_seconds #=> Integer
3597
- # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning"
4376
+ # resp.bot_status #=> String, one of "Creating", "Available", "Inactive", "Deleting", "Failed", "Versioning", "Importing"
3598
4377
  # resp.creation_date_time #=> Time
3599
4378
  # resp.last_updated_date_time #=> Time
3600
4379
  #
@@ -3744,11 +4523,11 @@ module Aws::LexModelsV2
3744
4523
  # @option params [required, String] :locale_id
3745
4524
  # The identifier of the language and locale to update. The string must
3746
4525
  # match one of the supported locales. For more information, see
3747
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
4526
+ # [Supported languages][1].
3748
4527
  #
3749
4528
  #
3750
4529
  #
3751
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
4530
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3752
4531
  #
3753
4532
  # @option params [String] :description
3754
4533
  # The new description of the locale.
@@ -3798,7 +4577,7 @@ module Aws::LexModelsV2
3798
4577
  # resp.description #=> String
3799
4578
  # resp.nlu_intent_confidence_threshold #=> Float
3800
4579
  # resp.voice_settings.voice_id #=> String
3801
- # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt"
4580
+ # resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
3802
4581
  # resp.failure_reasons #=> Array
3803
4582
  # resp.failure_reasons[0] #=> String
3804
4583
  # resp.creation_date_time #=> Time
@@ -3813,6 +4592,52 @@ module Aws::LexModelsV2
3813
4592
  req.send_request(options)
3814
4593
  end
3815
4594
 
4595
+ # Updates the password used to encrypt an export zip archive.
4596
+ #
4597
+ # @option params [required, String] :export_id
4598
+ # The unique identifier Amazon Lex assigned to the export.
4599
+ #
4600
+ # @option params [String] :file_password
4601
+ # The new password to use to encrypt the export zip archive.
4602
+ #
4603
+ # @return [Types::UpdateExportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4604
+ #
4605
+ # * {Types::UpdateExportResponse#export_id #export_id} => String
4606
+ # * {Types::UpdateExportResponse#resource_specification #resource_specification} => Types::ExportResourceSpecification
4607
+ # * {Types::UpdateExportResponse#file_format #file_format} => String
4608
+ # * {Types::UpdateExportResponse#export_status #export_status} => String
4609
+ # * {Types::UpdateExportResponse#creation_date_time #creation_date_time} => Time
4610
+ # * {Types::UpdateExportResponse#last_updated_date_time #last_updated_date_time} => Time
4611
+ #
4612
+ # @example Request syntax with placeholder values
4613
+ #
4614
+ # resp = client.update_export({
4615
+ # export_id: "Id", # required
4616
+ # file_password: "ImportExportFilePassword",
4617
+ # })
4618
+ #
4619
+ # @example Response structure
4620
+ #
4621
+ # resp.export_id #=> String
4622
+ # resp.resource_specification.bot_export_specification.bot_id #=> String
4623
+ # resp.resource_specification.bot_export_specification.bot_version #=> String
4624
+ # resp.resource_specification.bot_locale_export_specification.bot_id #=> String
4625
+ # resp.resource_specification.bot_locale_export_specification.bot_version #=> String
4626
+ # resp.resource_specification.bot_locale_export_specification.locale_id #=> String
4627
+ # resp.file_format #=> String, one of "LexJson"
4628
+ # resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
4629
+ # resp.creation_date_time #=> Time
4630
+ # resp.last_updated_date_time #=> Time
4631
+ #
4632
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateExport AWS API Documentation
4633
+ #
4634
+ # @overload update_export(params = {})
4635
+ # @param [Hash] params ({})
4636
+ def update_export(params = {}, options = {})
4637
+ req = build_request(:update_export, params)
4638
+ req.send_request(options)
4639
+ end
4640
+
3816
4641
  # Updates the settings for an intent.
3817
4642
  #
3818
4643
  # @option params [required, String] :intent_id
@@ -3871,12 +4696,11 @@ module Aws::LexModelsV2
3871
4696
  # @option params [required, String] :locale_id
3872
4697
  # The identifier of the language and locale where this intent is used.
3873
4698
  # The string must match one of the supported locales. For more
3874
- # information, see
3875
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
4699
+ # information, see [Supported languages][1].
3876
4700
  #
3877
4701
  #
3878
4702
  #
3879
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
4703
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3880
4704
  #
3881
4705
  # @return [Types::UpdateIntentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3882
4706
  #
@@ -4210,6 +5034,62 @@ module Aws::LexModelsV2
4210
5034
  req.send_request(options)
4211
5035
  end
4212
5036
 
5037
+ # Replaces the existing resource policy for a bot or bot alias with a
5038
+ # new one. If the policy doesn't exist, Amazon Lex returns an
5039
+ # exception.
5040
+ #
5041
+ # @option params [required, String] :resource_arn
5042
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
5043
+ # resource policy is attached to.
5044
+ #
5045
+ # @option params [required, String] :policy
5046
+ # A resource policy to add to the resource. The policy is a JSON
5047
+ # structure that contains one or more statements that define the policy.
5048
+ # The policy must follow the IAM syntax. For more information about the
5049
+ # contents of a JSON policy document, see [ IAM JSON policy reference
5050
+ # ][1].
5051
+ #
5052
+ # If the policy isn't valid, Amazon Lex returns a validation exception.
5053
+ #
5054
+ #
5055
+ #
5056
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html
5057
+ #
5058
+ # @option params [String] :expected_revision_id
5059
+ # The identifier of the revision of the policy to update. If this
5060
+ # revision ID doesn't match the current revision ID, Amazon Lex throws
5061
+ # an exception.
5062
+ #
5063
+ # If you don't specify a revision, Amazon Lex overwrites the contents
5064
+ # of the policy with the new values.
5065
+ #
5066
+ # @return [Types::UpdateResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5067
+ #
5068
+ # * {Types::UpdateResourcePolicyResponse#resource_arn #resource_arn} => String
5069
+ # * {Types::UpdateResourcePolicyResponse#revision_id #revision_id} => String
5070
+ #
5071
+ # @example Request syntax with placeholder values
5072
+ #
5073
+ # resp = client.update_resource_policy({
5074
+ # resource_arn: "AmazonResourceName", # required
5075
+ # policy: "Policy", # required
5076
+ # expected_revision_id: "RevisionId",
5077
+ # })
5078
+ #
5079
+ # @example Response structure
5080
+ #
5081
+ # resp.resource_arn #=> String
5082
+ # resp.revision_id #=> String
5083
+ #
5084
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateResourcePolicy AWS API Documentation
5085
+ #
5086
+ # @overload update_resource_policy(params = {})
5087
+ # @param [Hash] params ({})
5088
+ def update_resource_policy(params = {}, options = {})
5089
+ req = build_request(:update_resource_policy, params)
5090
+ req.send_request(options)
5091
+ end
5092
+
4213
5093
  # Updates the settings for a slot.
4214
5094
  #
4215
5095
  # @option params [required, String] :slot_id
@@ -4242,12 +5122,11 @@ module Aws::LexModelsV2
4242
5122
  # @option params [required, String] :locale_id
4243
5123
  # The identifier of the language and locale that contains the slot. The
4244
5124
  # string must match one of the supported locales. For more information,
4245
- # see
4246
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
5125
+ # see [Supported languages][1].
4247
5126
  #
4248
5127
  #
4249
5128
  #
4250
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
5129
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
4251
5130
  #
4252
5131
  # @option params [required, String] :intent_id
4253
5132
  # The identifier of the intent that contains the slot.
@@ -4662,12 +5541,11 @@ module Aws::LexModelsV2
4662
5541
  # @option params [required, String] :locale_id
4663
5542
  # The identifier of the language and locale that contains the slot type.
4664
5543
  # The string must match one of the supported locales. For more
4665
- # information, see
4666
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
5544
+ # information, see [Supported languages][1].
4667
5545
  #
4668
5546
  #
4669
5547
  #
4670
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
5548
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
4671
5549
  #
4672
5550
  # @return [Types::UpdateSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4673
5551
  #
@@ -4753,7 +5631,7 @@ module Aws::LexModelsV2
4753
5631
  params: params,
4754
5632
  config: config)
4755
5633
  context[:gem_name] = 'aws-sdk-lexmodelsv2'
4756
- context[:gem_version] = '1.0.0'
5634
+ context[:gem_version] = '1.4.0'
4757
5635
  Seahorse::Client::Request.new(handlers, context)
4758
5636
  end
4759
5637