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.
@@ -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
 
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Aws
4
+ module LexModelsV2
5
+ module Plugins
6
+ class ContentType < Seahorse::Client::Plugin
7
+
8
+ def add_handlers(handlers, _config)
9
+ handlers.add(Handler)
10
+ end
11
+
12
+ class Handler < Seahorse::Client::Handler
13
+ def call(context)
14
+ # Some operations break when given an empty content-type header.
15
+ # The SDK adds this blank content-type header
16
+ # since Net::HTTP provides a default that can break services.
17
+ # We're setting one here even though it's not used or necessary.
18
+ context.http_request.headers['content-type'] = 'application/x-amz-json-1.1'
19
+ @handler.call(context)
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ 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
 
@@ -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
 
@@ -182,6 +182,34 @@ module Aws::LexModelsV2
182
182
  include Aws::Structure
183
183
  end
184
184
 
185
+ # Provided the identity of a the bot that was exported.
186
+ #
187
+ # @note When making an API call, you may pass BotExportSpecification
188
+ # data as a hash:
189
+ #
190
+ # {
191
+ # bot_id: "Id", # required
192
+ # bot_version: "BotVersion", # required
193
+ # }
194
+ #
195
+ # @!attribute [rw] bot_id
196
+ # The identifier of the bot assigned by Amazon Lex.
197
+ # @return [String]
198
+ #
199
+ # @!attribute [rw] bot_version
200
+ # The version of the bot that was exported. This will be either
201
+ # `DRAFT` or the version number.
202
+ # @return [String]
203
+ #
204
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BotExportSpecification AWS API Documentation
205
+ #
206
+ class BotExportSpecification < Struct.new(
207
+ :bot_id,
208
+ :bot_version)
209
+ SENSITIVE = []
210
+ include Aws::Structure
211
+ end
212
+
185
213
  # Filters the responses returned by the `ListBots` operation.
186
214
  #
187
215
  # @note When making an API call, you may pass BotFilter
@@ -218,6 +246,113 @@ module Aws::LexModelsV2
218
246
  include Aws::Structure
219
247
  end
220
248
 
249
+ # Provides the bot parameters required for importing a bot.
250
+ #
251
+ # @note When making an API call, you may pass BotImportSpecification
252
+ # data as a hash:
253
+ #
254
+ # {
255
+ # bot_name: "Name", # required
256
+ # role_arn: "RoleArn", # required
257
+ # data_privacy: { # required
258
+ # child_directed: false, # required
259
+ # },
260
+ # idle_session_ttl_in_seconds: 1,
261
+ # bot_tags: {
262
+ # "TagKey" => "TagValue",
263
+ # },
264
+ # test_bot_alias_tags: {
265
+ # "TagKey" => "TagValue",
266
+ # },
267
+ # }
268
+ #
269
+ # @!attribute [rw] bot_name
270
+ # The name that Amazon Lex should use for the bot.
271
+ # @return [String]
272
+ #
273
+ # @!attribute [rw] role_arn
274
+ # The Amazon Resource Name (ARN) of the IAM role used to build and run
275
+ # the bot.
276
+ # @return [String]
277
+ #
278
+ # @!attribute [rw] data_privacy
279
+ # By default, data stored by Amazon Lex is encrypted. The
280
+ # `DataPrivacy` structure provides settings that determine how Amazon
281
+ # Lex handles special cases of securing the data for your bot.
282
+ # @return [Types::DataPrivacy]
283
+ #
284
+ # @!attribute [rw] idle_session_ttl_in_seconds
285
+ # The time, in seconds, that Amazon Lex should keep information about
286
+ # a user's conversation with the bot.
287
+ #
288
+ # A user interaction remains active for the amount of time specified.
289
+ # If no conversation occurs during this time, the session expires and
290
+ # Amazon Lex deletes any data provided before the timeout.
291
+ #
292
+ # You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.
293
+ # @return [Integer]
294
+ #
295
+ # @!attribute [rw] bot_tags
296
+ # A list of tags to add to the bot. You can only add tags when you
297
+ # import a bot. You can't use the `UpdateBot` operation to update
298
+ # tags. To update tags, use the `TagResource` operation.
299
+ # @return [Hash<String,String>]
300
+ #
301
+ # @!attribute [rw] test_bot_alias_tags
302
+ # A list of tags to add to the test alias for a bot. You can only add
303
+ # tags when you import a bot. You can't use the `UpdateAlias`
304
+ # operation to update tags. To update tags on the test alias, use the
305
+ # `TagResource` operation.
306
+ # @return [Hash<String,String>]
307
+ #
308
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BotImportSpecification AWS API Documentation
309
+ #
310
+ class BotImportSpecification < Struct.new(
311
+ :bot_name,
312
+ :role_arn,
313
+ :data_privacy,
314
+ :idle_session_ttl_in_seconds,
315
+ :bot_tags,
316
+ :test_bot_alias_tags)
317
+ SENSITIVE = []
318
+ include Aws::Structure
319
+ end
320
+
321
+ # Provides the bot locale parameters required for exporting a bot
322
+ # locale.
323
+ #
324
+ # @note When making an API call, you may pass BotLocaleExportSpecification
325
+ # data as a hash:
326
+ #
327
+ # {
328
+ # bot_id: "Id", # required
329
+ # bot_version: "BotVersion", # required
330
+ # locale_id: "LocaleId", # required
331
+ # }
332
+ #
333
+ # @!attribute [rw] bot_id
334
+ # The identifier of the bot to create the locale for.
335
+ # @return [String]
336
+ #
337
+ # @!attribute [rw] bot_version
338
+ # The version of the bot to export.
339
+ # @return [String]
340
+ #
341
+ # @!attribute [rw] locale_id
342
+ # The identifier of the language and locale to export. The string must
343
+ # match one of the locales in the bot.
344
+ # @return [String]
345
+ #
346
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BotLocaleExportSpecification AWS API Documentation
347
+ #
348
+ class BotLocaleExportSpecification < Struct.new(
349
+ :bot_id,
350
+ :bot_version,
351
+ :locale_id)
352
+ SENSITIVE = []
353
+ include Aws::Structure
354
+ end
355
+
221
356
  # Filters responses returned by the `ListBotLocales` operation.
222
357
  #
223
358
  # @note When making an API call, you may pass BotLocaleFilter
@@ -274,6 +409,81 @@ module Aws::LexModelsV2
274
409
  include Aws::Structure
275
410
  end
276
411
 
412
+ # Provides the bot locale parameters required for importing a bot
413
+ # locale.
414
+ #
415
+ # @note When making an API call, you may pass BotLocaleImportSpecification
416
+ # data as a hash:
417
+ #
418
+ # {
419
+ # bot_id: "Id", # required
420
+ # bot_version: "DraftBotVersion", # required
421
+ # locale_id: "LocaleId", # required
422
+ # nlu_intent_confidence_threshold: 1.0,
423
+ # voice_settings: {
424
+ # voice_id: "VoiceId", # required
425
+ # },
426
+ # }
427
+ #
428
+ # @!attribute [rw] bot_id
429
+ # The identifier of the bot to import the locale to.
430
+ # @return [String]
431
+ #
432
+ # @!attribute [rw] bot_version
433
+ # The version of the bot to import the locale to. This can only be the
434
+ # `DRAFT` version of the bot.
435
+ # @return [String]
436
+ #
437
+ # @!attribute [rw] locale_id
438
+ # The identifier of the language and locale that the bot will be used
439
+ # in. The string must match one of the supported locales. All of the
440
+ # intents, slot types, and slots used in the bot must have the same
441
+ # locale. For more information, see [Supported languages][1].
442
+ #
443
+ #
444
+ #
445
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
446
+ # @return [String]
447
+ #
448
+ # @!attribute [rw] nlu_intent_confidence_threshold
449
+ # Determines the threshold where Amazon Lex will insert the
450
+ # `AMAZON.FallbackIntent`, `AMAZON.KendraSearchIntent`, or both when
451
+ # returning alternative intents. `AMAZON.FallbackIntent` and
452
+ # `AMAZON.KendraSearchIntent` are only inserted if they are configured
453
+ # for the bot.
454
+ #
455
+ # For example, suppose a bot is configured with the confidence
456
+ # threshold of 0.80 and the `AMAZON.FallbackIntent`. Amazon Lex
457
+ # returns three alternative intents with the following confidence
458
+ # scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response
459
+ # from the `PostText` operation would be:
460
+ #
461
+ # * `AMAZON.FallbackIntent`
462
+ #
463
+ # * `IntentA`
464
+ #
465
+ # * `IntentB`
466
+ #
467
+ # * `IntentC`
468
+ # @return [Float]
469
+ #
470
+ # @!attribute [rw] voice_settings
471
+ # Defines settings for using an Amazon Polly voice to communicate with
472
+ # a user.
473
+ # @return [Types::VoiceSettings]
474
+ #
475
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BotLocaleImportSpecification AWS API Documentation
476
+ #
477
+ class BotLocaleImportSpecification < Struct.new(
478
+ :bot_id,
479
+ :bot_version,
480
+ :locale_id,
481
+ :nlu_intent_confidence_threshold,
482
+ :voice_settings)
483
+ SENSITIVE = []
484
+ include Aws::Structure
485
+ end
486
+
277
487
  # Specifies attributes for sorting a list of bot locales.
278
488
  #
279
489
  # @note When making an API call, you may pass BotLocaleSortBy
@@ -521,12 +731,11 @@ module Aws::LexModelsV2
521
731
  # The identifier of the language and locale that the bot will be used
522
732
  # in. The string must match one of the supported locales. All of the
523
733
  # intents, slot types, and slots used in the bot must have the same
524
- # locale. For more information, see
525
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
734
+ # locale. For more information, see [Supported languages][1].
526
735
  #
527
736
  #
528
737
  #
529
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
738
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
530
739
  # @return [String]
531
740
  #
532
741
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BuildBotLocaleRequest AWS API Documentation
@@ -1023,12 +1232,11 @@ module Aws::LexModelsV2
1023
1232
  # The identifier of the language and locale that the bot will be used
1024
1233
  # in. The string must match one of the supported locales. All of the
1025
1234
  # intents, slot types, and slots used in the bot must have the same
1026
- # locale. For more information, see
1027
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
1235
+ # locale. For more information, see [Supported languages][1].
1028
1236
  #
1029
1237
  #
1030
1238
  #
1031
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
1239
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
1032
1240
  # @return [String]
1033
1241
  #
1034
1242
  # @!attribute [rw] description
@@ -1360,6 +1568,85 @@ module Aws::LexModelsV2
1360
1568
  include Aws::Structure
1361
1569
  end
1362
1570
 
1571
+ # @note When making an API call, you may pass CreateExportRequest
1572
+ # data as a hash:
1573
+ #
1574
+ # {
1575
+ # resource_specification: { # required
1576
+ # bot_export_specification: {
1577
+ # bot_id: "Id", # required
1578
+ # bot_version: "BotVersion", # required
1579
+ # },
1580
+ # bot_locale_export_specification: {
1581
+ # bot_id: "Id", # required
1582
+ # bot_version: "BotVersion", # required
1583
+ # locale_id: "LocaleId", # required
1584
+ # },
1585
+ # },
1586
+ # file_format: "LexJson", # required, accepts LexJson
1587
+ # file_password: "ImportExportFilePassword",
1588
+ # }
1589
+ #
1590
+ # @!attribute [rw] resource_specification
1591
+ # Specifies the type of resource to export, either a bot or a bot
1592
+ # locale. You can only specify one type of resource to export.
1593
+ # @return [Types::ExportResourceSpecification]
1594
+ #
1595
+ # @!attribute [rw] file_format
1596
+ # The file format of the bot or bot locale definition files.
1597
+ # @return [String]
1598
+ #
1599
+ # @!attribute [rw] file_password
1600
+ # An password to use to encrypt the exported archive. Using a password
1601
+ # is optional, but you should encrypt the archive to protect the data
1602
+ # in transit between Amazon Lex and your local computer.
1603
+ # @return [String]
1604
+ #
1605
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateExportRequest AWS API Documentation
1606
+ #
1607
+ class CreateExportRequest < Struct.new(
1608
+ :resource_specification,
1609
+ :file_format,
1610
+ :file_password)
1611
+ SENSITIVE = [:file_password]
1612
+ include Aws::Structure
1613
+ end
1614
+
1615
+ # @!attribute [rw] export_id
1616
+ # An identifier for a specific request to create an export.
1617
+ # @return [String]
1618
+ #
1619
+ # @!attribute [rw] resource_specification
1620
+ # A description of the type of resource that was exported, either a
1621
+ # bot or a bot locale.
1622
+ # @return [Types::ExportResourceSpecification]
1623
+ #
1624
+ # @!attribute [rw] file_format
1625
+ # The file format used for the bot or bot locale definition files.
1626
+ # @return [String]
1627
+ #
1628
+ # @!attribute [rw] export_status
1629
+ # The status of the export. When the status is `Completed`, you can
1630
+ # use the operation to get the pre-signed S3 URL link to your exported
1631
+ # bot or bot locale.
1632
+ # @return [String]
1633
+ #
1634
+ # @!attribute [rw] creation_date_time
1635
+ # The date and time that the request to export a bot was created.
1636
+ # @return [Time]
1637
+ #
1638
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateExportResponse AWS API Documentation
1639
+ #
1640
+ class CreateExportResponse < Struct.new(
1641
+ :export_id,
1642
+ :resource_specification,
1643
+ :file_format,
1644
+ :export_status,
1645
+ :creation_date_time)
1646
+ SENSITIVE = []
1647
+ include Aws::Structure
1648
+ end
1649
+
1363
1650
  # @note When making an API call, you may pass CreateIntentRequest
1364
1651
  # data as a hash:
1365
1652
  #
@@ -1678,7 +1965,11 @@ module Aws::LexModelsV2
1678
1965
  # @!attribute [rw] locale_id
1679
1966
  # The identifier of the language and locale where this intent is used.
1680
1967
  # All of the bots, slot types, and slots used by the intent must have
1681
- # the same locale.
1968
+ # the same locale. For more information, see [Supported languages][1].
1969
+ #
1970
+ #
1971
+ #
1972
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
1682
1973
  # @return [String]
1683
1974
  #
1684
1975
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateIntentRequest AWS API Documentation
@@ -1790,29 +2081,207 @@ module Aws::LexModelsV2
1790
2081
  include Aws::Structure
1791
2082
  end
1792
2083
 
1793
- # @note When making an API call, you may pass CreateSlotRequest
2084
+ # @note When making an API call, you may pass CreateResourcePolicyRequest
1794
2085
  # data as a hash:
1795
2086
  #
1796
2087
  # {
1797
- # slot_name: "Name", # required
1798
- # description: "Description",
1799
- # slot_type_id: "BuiltInOrCustomSlotTypeId", # required
1800
- # value_elicitation_setting: { # required
1801
- # default_value_specification: {
1802
- # default_value_list: [ # required
1803
- # {
1804
- # default_value: "SlotDefaultValueString", # required
1805
- # },
1806
- # ],
2088
+ # resource_arn: "AmazonResourceName", # required
2089
+ # policy: "Policy", # required
2090
+ # }
2091
+ #
2092
+ # @!attribute [rw] resource_arn
2093
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
2094
+ # resource policy is attached to.
2095
+ # @return [String]
2096
+ #
2097
+ # @!attribute [rw] policy
2098
+ # A resource policy to add to the resource. The policy is a JSON
2099
+ # structure that contains one or more statements that define the
2100
+ # policy. The policy must follow the IAM syntax. For more information
2101
+ # about the contents of a JSON policy document, see [ IAM JSON policy
2102
+ # reference ][1].
2103
+ #
2104
+ # If the policy isn't valid, Amazon Lex returns a validation
2105
+ # exception.
2106
+ #
2107
+ #
2108
+ #
2109
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html
2110
+ # @return [String]
2111
+ #
2112
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateResourcePolicyRequest AWS API Documentation
2113
+ #
2114
+ class CreateResourcePolicyRequest < Struct.new(
2115
+ :resource_arn,
2116
+ :policy)
2117
+ SENSITIVE = []
2118
+ include Aws::Structure
2119
+ end
2120
+
2121
+ # @!attribute [rw] resource_arn
2122
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
2123
+ # resource policy was attached to.
2124
+ # @return [String]
2125
+ #
2126
+ # @!attribute [rw] revision_id
2127
+ # The current revision of the resource policy. Use the revision ID to
2128
+ # make sure that you are updating the most current version of a
2129
+ # resource policy when you add a policy statement to a resource,
2130
+ # delete a resource, or update a resource.
2131
+ # @return [String]
2132
+ #
2133
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateResourcePolicyResponse AWS API Documentation
2134
+ #
2135
+ class CreateResourcePolicyResponse < Struct.new(
2136
+ :resource_arn,
2137
+ :revision_id)
2138
+ SENSITIVE = []
2139
+ include Aws::Structure
2140
+ end
2141
+
2142
+ # @note When making an API call, you may pass CreateResourcePolicyStatementRequest
2143
+ # data as a hash:
2144
+ #
2145
+ # {
2146
+ # resource_arn: "AmazonResourceName", # required
2147
+ # statement_id: "Name", # required
2148
+ # effect: "Allow", # required, accepts Allow, Deny
2149
+ # principal: [ # required
2150
+ # {
2151
+ # service: "ServicePrincipal",
2152
+ # arn: "PrincipalArn",
1807
2153
  # },
1808
- # slot_constraint: "Required", # required, accepts Required, Optional
1809
- # prompt_specification: {
1810
- # message_groups: [ # required
1811
- # {
1812
- # message: { # required
1813
- # plain_text_message: {
1814
- # value: "PlainTextMessageValue", # required
1815
- # },
2154
+ # ],
2155
+ # action: ["Operation"], # required
2156
+ # condition: {
2157
+ # "ConditionOperator" => {
2158
+ # "ConditionKey" => "ConditionValue",
2159
+ # },
2160
+ # },
2161
+ # expected_revision_id: "RevisionId",
2162
+ # }
2163
+ #
2164
+ # @!attribute [rw] resource_arn
2165
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
2166
+ # resource policy is attached to.
2167
+ # @return [String]
2168
+ #
2169
+ # @!attribute [rw] statement_id
2170
+ # The name of the statement. The ID is the same as the `Sid` IAM
2171
+ # property. The statement name must be unique within the policy. For
2172
+ # more information, see [IAM JSON policy elements: Sid][1].
2173
+ #
2174
+ #
2175
+ #
2176
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html
2177
+ # @return [String]
2178
+ #
2179
+ # @!attribute [rw] effect
2180
+ # Determines whether the statement allows or denies access to the
2181
+ # resource.
2182
+ # @return [String]
2183
+ #
2184
+ # @!attribute [rw] principal
2185
+ # An IAM principal, such as an IAM users, IAM roles, or AWS services
2186
+ # that is allowed or denied access to a resource. For more
2187
+ # information, see [AWS JSON policy elements: Principal][1].
2188
+ #
2189
+ #
2190
+ #
2191
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html
2192
+ # @return [Array<Types::Principal>]
2193
+ #
2194
+ # @!attribute [rw] action
2195
+ # The Amazon Lex action that this policy either allows or denies. The
2196
+ # action must apply to the resource type of the specified ARN. For
2197
+ # more information, see [ Actions, resources, and condition keys for
2198
+ # Amazon Lex V2][1].
2199
+ #
2200
+ #
2201
+ #
2202
+ # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonlexv2.html
2203
+ # @return [Array<String>]
2204
+ #
2205
+ # @!attribute [rw] condition
2206
+ # Specifies a condition when the policy is in effect. If the principal
2207
+ # of the policy is a service principal, you must provide two condition
2208
+ # blocks, one with a SourceAccount global condition key and one with a
2209
+ # SourceArn global condition key.
2210
+ #
2211
+ # For more information, see [IAM JSON policy elements: Condition ][1].
2212
+ #
2213
+ #
2214
+ #
2215
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html
2216
+ # @return [Hash<String,Hash<String,String>>]
2217
+ #
2218
+ # @!attribute [rw] expected_revision_id
2219
+ # The identifier of the revision of the policy to edit. If this
2220
+ # revision ID doesn't match the current revision ID, Amazon Lex
2221
+ # throws an exception.
2222
+ #
2223
+ # If you don't specify a revision, Amazon Lex overwrites the contents
2224
+ # of the policy with the new values.
2225
+ # @return [String]
2226
+ #
2227
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateResourcePolicyStatementRequest AWS API Documentation
2228
+ #
2229
+ class CreateResourcePolicyStatementRequest < Struct.new(
2230
+ :resource_arn,
2231
+ :statement_id,
2232
+ :effect,
2233
+ :principal,
2234
+ :action,
2235
+ :condition,
2236
+ :expected_revision_id)
2237
+ SENSITIVE = []
2238
+ include Aws::Structure
2239
+ end
2240
+
2241
+ # @!attribute [rw] resource_arn
2242
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
2243
+ # resource policy is attached to.
2244
+ # @return [String]
2245
+ #
2246
+ # @!attribute [rw] revision_id
2247
+ # The current revision of the resource policy. Use the revision ID to
2248
+ # make sure that you are updating the most current version of a
2249
+ # resource policy when you add a policy statement to a resource,
2250
+ # delete a resource, or update a resource.
2251
+ # @return [String]
2252
+ #
2253
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateResourcePolicyStatementResponse AWS API Documentation
2254
+ #
2255
+ class CreateResourcePolicyStatementResponse < Struct.new(
2256
+ :resource_arn,
2257
+ :revision_id)
2258
+ SENSITIVE = []
2259
+ include Aws::Structure
2260
+ end
2261
+
2262
+ # @note When making an API call, you may pass CreateSlotRequest
2263
+ # data as a hash:
2264
+ #
2265
+ # {
2266
+ # slot_name: "Name", # required
2267
+ # description: "Description",
2268
+ # slot_type_id: "BuiltInOrCustomSlotTypeId", # required
2269
+ # value_elicitation_setting: { # required
2270
+ # default_value_specification: {
2271
+ # default_value_list: [ # required
2272
+ # {
2273
+ # default_value: "SlotDefaultValueString", # required
2274
+ # },
2275
+ # ],
2276
+ # },
2277
+ # slot_constraint: "Required", # required, accepts Required, Optional
2278
+ # prompt_specification: {
2279
+ # message_groups: [ # required
2280
+ # {
2281
+ # message: { # required
2282
+ # plain_text_message: {
2283
+ # value: "PlainTextMessageValue", # required
2284
+ # },
1816
2285
  # custom_payload: {
1817
2286
  # value: "CustomPayloadValue", # required
1818
2287
  # },
@@ -2081,12 +2550,11 @@ module Aws::LexModelsV2
2081
2550
  # The identifier of the language and locale that the slot will be used
2082
2551
  # in. The string must match one of the supported locales. All of the
2083
2552
  # bots, intents, slot types used by the slot must have the same
2084
- # locale. For more information, see
2085
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
2553
+ # locale. For more information, see [Supported languages][1].
2086
2554
  #
2087
2555
  #
2088
2556
  #
2089
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2557
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2090
2558
  # @return [String]
2091
2559
  #
2092
2560
  # @!attribute [rw] intent_id
@@ -2256,12 +2724,11 @@ module Aws::LexModelsV2
2256
2724
  # The identifier of the language and locale that the slot type will be
2257
2725
  # used in. The string must match one of the supported locales. All of
2258
2726
  # the bots, intents, and slots used by the slot type must have the
2259
- # same locale. For more information, see
2260
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
2727
+ # same locale. For more information, see [Supported languages][1].
2261
2728
  #
2262
2729
  #
2263
2730
  #
2264
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2731
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2265
2732
  # @return [String]
2266
2733
  #
2267
2734
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateSlotTypeRequest AWS API Documentation
@@ -2339,6 +2806,31 @@ module Aws::LexModelsV2
2339
2806
  include Aws::Structure
2340
2807
  end
2341
2808
 
2809
+ # @api private
2810
+ #
2811
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateUploadUrlRequest AWS API Documentation
2812
+ #
2813
+ class CreateUploadUrlRequest < Aws::EmptyStructure; end
2814
+
2815
+ # @!attribute [rw] import_id
2816
+ # An identifier for a unique import job. Use it when you call the
2817
+ # operation.
2818
+ # @return [String]
2819
+ #
2820
+ # @!attribute [rw] upload_url
2821
+ # A pre-signed S3 write URL. Upload the zip archive file that contains
2822
+ # the definition of your bot or bot locale.
2823
+ # @return [String]
2824
+ #
2825
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateUploadUrlResponse AWS API Documentation
2826
+ #
2827
+ class CreateUploadUrlResponse < Struct.new(
2828
+ :import_id,
2829
+ :upload_url)
2830
+ SENSITIVE = []
2831
+ include Aws::Structure
2832
+ end
2833
+
2342
2834
  # A custom response string that Amazon Lex sends to your application.
2343
2835
  # You define the content and structure the string.
2344
2836
  #
@@ -2490,12 +2982,11 @@ module Aws::LexModelsV2
2490
2982
  # @!attribute [rw] locale_id
2491
2983
  # The identifier of the language and locale that will be deleted. The
2492
2984
  # string must match one of the supported locales. For more
2493
- # information, see
2494
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
2985
+ # information, see [Supported languages][1].
2495
2986
  #
2496
2987
  #
2497
2988
  #
2498
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2989
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2499
2990
  # @return [String]
2500
2991
  #
2501
2992
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteBotLocaleRequest AWS API Documentation
@@ -2638,6 +3129,82 @@ module Aws::LexModelsV2
2638
3129
  include Aws::Structure
2639
3130
  end
2640
3131
 
3132
+ # @note When making an API call, you may pass DeleteExportRequest
3133
+ # data as a hash:
3134
+ #
3135
+ # {
3136
+ # export_id: "Id", # required
3137
+ # }
3138
+ #
3139
+ # @!attribute [rw] export_id
3140
+ # The unique identifier of the export to delete.
3141
+ # @return [String]
3142
+ #
3143
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteExportRequest AWS API Documentation
3144
+ #
3145
+ class DeleteExportRequest < Struct.new(
3146
+ :export_id)
3147
+ SENSITIVE = []
3148
+ include Aws::Structure
3149
+ end
3150
+
3151
+ # @!attribute [rw] export_id
3152
+ # The unique identifier of the deleted export.
3153
+ # @return [String]
3154
+ #
3155
+ # @!attribute [rw] export_status
3156
+ # The current status of the deletion. When the deletion is complete,
3157
+ # the export will no longer be returned by the operation and calls to
3158
+ # the with the export identifier will fail.
3159
+ # @return [String]
3160
+ #
3161
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteExportResponse AWS API Documentation
3162
+ #
3163
+ class DeleteExportResponse < Struct.new(
3164
+ :export_id,
3165
+ :export_status)
3166
+ SENSITIVE = []
3167
+ include Aws::Structure
3168
+ end
3169
+
3170
+ # @note When making an API call, you may pass DeleteImportRequest
3171
+ # data as a hash:
3172
+ #
3173
+ # {
3174
+ # import_id: "Id", # required
3175
+ # }
3176
+ #
3177
+ # @!attribute [rw] import_id
3178
+ # The unique identifier of the import to delete.
3179
+ # @return [String]
3180
+ #
3181
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteImportRequest AWS API Documentation
3182
+ #
3183
+ class DeleteImportRequest < Struct.new(
3184
+ :import_id)
3185
+ SENSITIVE = []
3186
+ include Aws::Structure
3187
+ end
3188
+
3189
+ # @!attribute [rw] import_id
3190
+ # The unique identifier of the deleted import.
3191
+ # @return [String]
3192
+ #
3193
+ # @!attribute [rw] import_status
3194
+ # The current status of the deletion. When the deletion is complete,
3195
+ # the import will no longer be returned by the operation and calls to
3196
+ # the with the import identifier will fail.
3197
+ # @return [String]
3198
+ #
3199
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteImportResponse AWS API Documentation
3200
+ #
3201
+ class DeleteImportResponse < Struct.new(
3202
+ :import_id,
3203
+ :import_status)
3204
+ SENSITIVE = []
3205
+ include Aws::Structure
3206
+ end
3207
+
2641
3208
  # @note When making an API call, you may pass DeleteIntentRequest
2642
3209
  # data as a hash:
2643
3210
  #
@@ -2663,12 +3230,11 @@ module Aws::LexModelsV2
2663
3230
  # @!attribute [rw] locale_id
2664
3231
  # The identifier of the language and locale where the bot will be
2665
3232
  # deleted. The string must match one of the supported locales. For
2666
- # more information, see
2667
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
3233
+ # more information, see [Supported languages][1].
2668
3234
  #
2669
3235
  #
2670
3236
  #
2671
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3237
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2672
3238
  # @return [String]
2673
3239
  #
2674
3240
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteIntentRequest AWS API Documentation
@@ -2682,6 +3248,115 @@ module Aws::LexModelsV2
2682
3248
  include Aws::Structure
2683
3249
  end
2684
3250
 
3251
+ # @note When making an API call, you may pass DeleteResourcePolicyRequest
3252
+ # data as a hash:
3253
+ #
3254
+ # {
3255
+ # resource_arn: "AmazonResourceName", # required
3256
+ # expected_revision_id: "RevisionId",
3257
+ # }
3258
+ #
3259
+ # @!attribute [rw] resource_arn
3260
+ # The Amazon Resource Name (ARN) of the bot or bot alias that has the
3261
+ # resource policy attached.
3262
+ # @return [String]
3263
+ #
3264
+ # @!attribute [rw] expected_revision_id
3265
+ # The identifier of the revision to edit. If this ID doesn't match
3266
+ # the current revision number, Amazon Lex returns an exception
3267
+ #
3268
+ # If you don't specify a revision ID, Amazon Lex will delete the
3269
+ # current policy.
3270
+ # @return [String]
3271
+ #
3272
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteResourcePolicyRequest AWS API Documentation
3273
+ #
3274
+ class DeleteResourcePolicyRequest < Struct.new(
3275
+ :resource_arn,
3276
+ :expected_revision_id)
3277
+ SENSITIVE = []
3278
+ include Aws::Structure
3279
+ end
3280
+
3281
+ # @!attribute [rw] resource_arn
3282
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
3283
+ # resource policy was deleted from.
3284
+ # @return [String]
3285
+ #
3286
+ # @!attribute [rw] revision_id
3287
+ # The current revision of the resource policy. Use the revision ID to
3288
+ # make sure that you are updating the most current version of a
3289
+ # resource policy when you add a policy statement to a resource,
3290
+ # delete a resource, or update a resource.
3291
+ # @return [String]
3292
+ #
3293
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteResourcePolicyResponse AWS API Documentation
3294
+ #
3295
+ class DeleteResourcePolicyResponse < Struct.new(
3296
+ :resource_arn,
3297
+ :revision_id)
3298
+ SENSITIVE = []
3299
+ include Aws::Structure
3300
+ end
3301
+
3302
+ # @note When making an API call, you may pass DeleteResourcePolicyStatementRequest
3303
+ # data as a hash:
3304
+ #
3305
+ # {
3306
+ # resource_arn: "AmazonResourceName", # required
3307
+ # statement_id: "Name", # required
3308
+ # expected_revision_id: "RevisionId",
3309
+ # }
3310
+ #
3311
+ # @!attribute [rw] resource_arn
3312
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
3313
+ # resource policy is attached to.
3314
+ # @return [String]
3315
+ #
3316
+ # @!attribute [rw] statement_id
3317
+ # The name of the statement (SID) to delete from the policy.
3318
+ # @return [String]
3319
+ #
3320
+ # @!attribute [rw] expected_revision_id
3321
+ # The identifier of the revision of the policy to delete the statement
3322
+ # from. If this revision ID doesn't match the current revision ID,
3323
+ # Amazon Lex throws an exception.
3324
+ #
3325
+ # If you don't specify a revision, Amazon Lex removes the current
3326
+ # contents of the statement.
3327
+ # @return [String]
3328
+ #
3329
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteResourcePolicyStatementRequest AWS API Documentation
3330
+ #
3331
+ class DeleteResourcePolicyStatementRequest < Struct.new(
3332
+ :resource_arn,
3333
+ :statement_id,
3334
+ :expected_revision_id)
3335
+ SENSITIVE = []
3336
+ include Aws::Structure
3337
+ end
3338
+
3339
+ # @!attribute [rw] resource_arn
3340
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
3341
+ # resource policy statement was removed from.
3342
+ # @return [String]
3343
+ #
3344
+ # @!attribute [rw] revision_id
3345
+ # The current revision of the resource policy. Use the revision ID to
3346
+ # make sure that you are updating the most current version of a
3347
+ # resource policy when you add a policy statement to a resource,
3348
+ # delete a resource, or update a resource.
3349
+ # @return [String]
3350
+ #
3351
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteResourcePolicyStatementResponse AWS API Documentation
3352
+ #
3353
+ class DeleteResourcePolicyStatementResponse < Struct.new(
3354
+ :resource_arn,
3355
+ :revision_id)
3356
+ SENSITIVE = []
3357
+ include Aws::Structure
3358
+ end
3359
+
2685
3360
  # @note When making an API call, you may pass DeleteSlotRequest
2686
3361
  # data as a hash:
2687
3362
  #
@@ -2708,12 +3383,11 @@ module Aws::LexModelsV2
2708
3383
  # @!attribute [rw] locale_id
2709
3384
  # The identifier of the language and locale that the slot will be
2710
3385
  # deleted from. The string must match one of the supported locales.
2711
- # For more information, see
2712
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
3386
+ # For more information, see [Supported languages][1].
2713
3387
  #
2714
3388
  #
2715
3389
  #
2716
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3390
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2717
3391
  # @return [String]
2718
3392
  #
2719
3393
  # @!attribute [rw] intent_id
@@ -2758,12 +3432,11 @@ module Aws::LexModelsV2
2758
3432
  # @!attribute [rw] locale_id
2759
3433
  # The identifier of the language and locale that the slot type will be
2760
3434
  # deleted from. The string must match one of the supported locales.
2761
- # For more information, see
2762
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
3435
+ # For more information, see [Supported languages][1].
2763
3436
  #
2764
3437
  #
2765
3438
  #
2766
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3439
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2767
3440
  # @return [String]
2768
3441
  #
2769
3442
  # @!attribute [rw] skip_resource_in_use_check
@@ -2901,11 +3574,11 @@ module Aws::LexModelsV2
2901
3574
  # @!attribute [rw] locale_id
2902
3575
  # The unique identifier of the locale to describe. The string must
2903
3576
  # match one of the supported locales. For more information, see
2904
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
3577
+ # [Supported languages][1].
2905
3578
  #
2906
3579
  #
2907
3580
  #
2908
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3581
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2909
3582
  # @return [String]
2910
3583
  #
2911
3584
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeBotLocaleRequest AWS API Documentation
@@ -3168,75 +3841,223 @@ module Aws::LexModelsV2
3168
3841
  include Aws::Structure
3169
3842
  end
3170
3843
 
3171
- # @note When making an API call, you may pass DescribeIntentRequest
3844
+ # @note When making an API call, you may pass DescribeExportRequest
3172
3845
  # data as a hash:
3173
3846
  #
3174
3847
  # {
3175
- # intent_id: "Id", # required
3176
- # bot_id: "Id", # required
3177
- # bot_version: "BotVersion", # required
3178
- # locale_id: "LocaleId", # required
3848
+ # export_id: "Id", # required
3179
3849
  # }
3180
3850
  #
3181
- # @!attribute [rw] intent_id
3182
- # The identifier of the intent to describe.
3851
+ # @!attribute [rw] export_id
3852
+ # The unique identifier of the export to describe.
3183
3853
  # @return [String]
3184
3854
  #
3185
- # @!attribute [rw] bot_id
3186
- # The identifier of the bot associated with the intent.
3855
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeExportRequest AWS API Documentation
3856
+ #
3857
+ class DescribeExportRequest < Struct.new(
3858
+ :export_id)
3859
+ SENSITIVE = []
3860
+ include Aws::Structure
3861
+ end
3862
+
3863
+ # @!attribute [rw] export_id
3864
+ # The unique identifier of the described export.
3187
3865
  # @return [String]
3188
3866
  #
3189
- # @!attribute [rw] bot_version
3190
- # The version of the bot associated with the intent.
3867
+ # @!attribute [rw] resource_specification
3868
+ # The bot, bot ID, and optional locale ID of the exported bot or bot
3869
+ # locale.
3870
+ # @return [Types::ExportResourceSpecification]
3871
+ #
3872
+ # @!attribute [rw] file_format
3873
+ # The file format used in the files that describe the bot or bot
3874
+ # locale.
3191
3875
  # @return [String]
3192
3876
  #
3193
- # @!attribute [rw] locale_id
3194
- # The identifier of the language and locale of the intent to describe.
3195
- # The string must match one of the supported locales. For more
3196
- # information, see
3197
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
3877
+ # @!attribute [rw] export_status
3878
+ # The status of the export. When the status is `Complete` the export
3879
+ # archive file is available for download.
3880
+ # @return [String]
3198
3881
  #
3882
+ # @!attribute [rw] failure_reasons
3883
+ # If the `exportStatus` is failed, contains one or more reasons why
3884
+ # the export could not be completed.
3885
+ # @return [Array<String>]
3886
+ #
3887
+ # @!attribute [rw] download_url
3888
+ # A pre-signed S3 URL that points to the bot or bot locale archive.
3889
+ # The URL is only available for 5 minutes after calling the
3890
+ # `DescribeExport` operation.
3891
+ # @return [String]
3892
+ #
3893
+ # @!attribute [rw] creation_date_time
3894
+ # The date and time that the export was created.
3895
+ # @return [Time]
3896
+ #
3897
+ # @!attribute [rw] last_updated_date_time
3898
+ # The last date and time that the export was updated.
3899
+ # @return [Time]
3900
+ #
3901
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeExportResponse AWS API Documentation
3902
+ #
3903
+ class DescribeExportResponse < Struct.new(
3904
+ :export_id,
3905
+ :resource_specification,
3906
+ :file_format,
3907
+ :export_status,
3908
+ :failure_reasons,
3909
+ :download_url,
3910
+ :creation_date_time,
3911
+ :last_updated_date_time)
3912
+ SENSITIVE = []
3913
+ include Aws::Structure
3914
+ end
3915
+
3916
+ # @note When making an API call, you may pass DescribeImportRequest
3917
+ # data as a hash:
3199
3918
  #
3919
+ # {
3920
+ # import_id: "Id", # required
3921
+ # }
3200
3922
  #
3201
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3923
+ # @!attribute [rw] import_id
3924
+ # The unique identifier of the import to describe.
3202
3925
  # @return [String]
3203
3926
  #
3204
- # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeIntentRequest AWS API Documentation
3927
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeImportRequest AWS API Documentation
3205
3928
  #
3206
- class DescribeIntentRequest < Struct.new(
3207
- :intent_id,
3208
- :bot_id,
3209
- :bot_version,
3210
- :locale_id)
3929
+ class DescribeImportRequest < Struct.new(
3930
+ :import_id)
3211
3931
  SENSITIVE = []
3212
3932
  include Aws::Structure
3213
3933
  end
3214
3934
 
3215
- # @!attribute [rw] intent_id
3216
- # The unique identifier assigned to the intent when it was created.
3935
+ # @!attribute [rw] import_id
3936
+ # The unique identifier of the described import.
3217
3937
  # @return [String]
3218
3938
  #
3219
- # @!attribute [rw] intent_name
3220
- # The name specified for the intent.
3939
+ # @!attribute [rw] resource_specification
3940
+ # The specifications of the imported bot or bot locale.
3941
+ # @return [Types::ImportResourceSpecification]
3942
+ #
3943
+ # @!attribute [rw] imported_resource_id
3944
+ # The unique identifier that Amazon Lex assigned to the resource
3945
+ # created by the import.
3221
3946
  # @return [String]
3222
3947
  #
3223
- # @!attribute [rw] description
3224
- # The description of the intent.
3948
+ # @!attribute [rw] imported_resource_name
3949
+ # The name of the imported resource.
3225
3950
  # @return [String]
3226
3951
  #
3227
- # @!attribute [rw] parent_intent_signature
3228
- # The identifier of the built-in intent that this intent is derived
3229
- # from, if any.
3952
+ # @!attribute [rw] merge_strategy
3953
+ # The strategy used when there was a name conflict between the
3954
+ # imported resource and an existing resource. When the merge strategy
3955
+ # is `FailOnConflict` existing resources are not overwritten and the
3956
+ # import fails.
3230
3957
  # @return [String]
3231
3958
  #
3232
- # @!attribute [rw] sample_utterances
3233
- # User utterances that trigger this intent.
3234
- # @return [Array<Types::SampleUtterance>]
3959
+ # @!attribute [rw] import_status
3960
+ # The status of the import process. When the status is `Completed` the
3961
+ # resource is imported and ready for use.
3962
+ # @return [String]
3235
3963
  #
3236
- # @!attribute [rw] dialog_code_hook
3237
- # The Lambda function called during each turn of a conversation with
3238
- # the intent.
3239
- # @return [Types::DialogCodeHookSettings]
3964
+ # @!attribute [rw] failure_reasons
3965
+ # If the `importStatus` field is `Failed`, this provides one or more
3966
+ # reasons for the failture.
3967
+ # @return [Array<String>]
3968
+ #
3969
+ # @!attribute [rw] creation_date_time
3970
+ # The date and time that the import was created.
3971
+ # @return [Time]
3972
+ #
3973
+ # @!attribute [rw] last_updated_date_time
3974
+ # The date and time that the import was last updated.
3975
+ # @return [Time]
3976
+ #
3977
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeImportResponse AWS API Documentation
3978
+ #
3979
+ class DescribeImportResponse < Struct.new(
3980
+ :import_id,
3981
+ :resource_specification,
3982
+ :imported_resource_id,
3983
+ :imported_resource_name,
3984
+ :merge_strategy,
3985
+ :import_status,
3986
+ :failure_reasons,
3987
+ :creation_date_time,
3988
+ :last_updated_date_time)
3989
+ SENSITIVE = []
3990
+ include Aws::Structure
3991
+ end
3992
+
3993
+ # @note When making an API call, you may pass DescribeIntentRequest
3994
+ # data as a hash:
3995
+ #
3996
+ # {
3997
+ # intent_id: "Id", # required
3998
+ # bot_id: "Id", # required
3999
+ # bot_version: "BotVersion", # required
4000
+ # locale_id: "LocaleId", # required
4001
+ # }
4002
+ #
4003
+ # @!attribute [rw] intent_id
4004
+ # The identifier of the intent to describe.
4005
+ # @return [String]
4006
+ #
4007
+ # @!attribute [rw] bot_id
4008
+ # The identifier of the bot associated with the intent.
4009
+ # @return [String]
4010
+ #
4011
+ # @!attribute [rw] bot_version
4012
+ # The version of the bot associated with the intent.
4013
+ # @return [String]
4014
+ #
4015
+ # @!attribute [rw] locale_id
4016
+ # The identifier of the language and locale of the intent to describe.
4017
+ # The string must match one of the supported locales. For more
4018
+ # information, see [Supported languages][1].
4019
+ #
4020
+ #
4021
+ #
4022
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
4023
+ # @return [String]
4024
+ #
4025
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeIntentRequest AWS API Documentation
4026
+ #
4027
+ class DescribeIntentRequest < Struct.new(
4028
+ :intent_id,
4029
+ :bot_id,
4030
+ :bot_version,
4031
+ :locale_id)
4032
+ SENSITIVE = []
4033
+ include Aws::Structure
4034
+ end
4035
+
4036
+ # @!attribute [rw] intent_id
4037
+ # The unique identifier assigned to the intent when it was created.
4038
+ # @return [String]
4039
+ #
4040
+ # @!attribute [rw] intent_name
4041
+ # The name specified for the intent.
4042
+ # @return [String]
4043
+ #
4044
+ # @!attribute [rw] description
4045
+ # The description of the intent.
4046
+ # @return [String]
4047
+ #
4048
+ # @!attribute [rw] parent_intent_signature
4049
+ # The identifier of the built-in intent that this intent is derived
4050
+ # from, if any.
4051
+ # @return [String]
4052
+ #
4053
+ # @!attribute [rw] sample_utterances
4054
+ # User utterances that trigger this intent.
4055
+ # @return [Array<Types::SampleUtterance>]
4056
+ #
4057
+ # @!attribute [rw] dialog_code_hook
4058
+ # The Lambda function called during each turn of a conversation with
4059
+ # the intent.
4060
+ # @return [Types::DialogCodeHookSettings]
3240
4061
  #
3241
4062
  # @!attribute [rw] fulfillment_code_hook
3242
4063
  # The Lambda function called when the intent is complete and ready for
@@ -3316,6 +4137,58 @@ module Aws::LexModelsV2
3316
4137
  include Aws::Structure
3317
4138
  end
3318
4139
 
4140
+ # @note When making an API call, you may pass DescribeResourcePolicyRequest
4141
+ # data as a hash:
4142
+ #
4143
+ # {
4144
+ # resource_arn: "AmazonResourceName", # required
4145
+ # }
4146
+ #
4147
+ # @!attribute [rw] resource_arn
4148
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
4149
+ # resource policy is attached to.
4150
+ # @return [String]
4151
+ #
4152
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeResourcePolicyRequest AWS API Documentation
4153
+ #
4154
+ class DescribeResourcePolicyRequest < Struct.new(
4155
+ :resource_arn)
4156
+ SENSITIVE = []
4157
+ include Aws::Structure
4158
+ end
4159
+
4160
+ # @!attribute [rw] resource_arn
4161
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
4162
+ # resource policy is attached to.
4163
+ # @return [String]
4164
+ #
4165
+ # @!attribute [rw] policy
4166
+ # The JSON structure that contains the resource policy. For more
4167
+ # information about the contents of a JSON policy document, see [ IAM
4168
+ # JSON policy reference ][1].
4169
+ #
4170
+ #
4171
+ #
4172
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html
4173
+ # @return [String]
4174
+ #
4175
+ # @!attribute [rw] revision_id
4176
+ # The current revision of the resource policy. Use the revision ID to
4177
+ # make sure that you are updating the most current version of a
4178
+ # resource policy when you add a policy statement to a resource,
4179
+ # delete a resource, or update a resource.
4180
+ # @return [String]
4181
+ #
4182
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeResourcePolicyResponse AWS API Documentation
4183
+ #
4184
+ class DescribeResourcePolicyResponse < Struct.new(
4185
+ :resource_arn,
4186
+ :policy,
4187
+ :revision_id)
4188
+ SENSITIVE = []
4189
+ include Aws::Structure
4190
+ end
4191
+
3319
4192
  # @note When making an API call, you may pass DescribeSlotRequest
3320
4193
  # data as a hash:
3321
4194
  #
@@ -3342,12 +4215,11 @@ module Aws::LexModelsV2
3342
4215
  # @!attribute [rw] locale_id
3343
4216
  # The identifier of the language and locale of the slot to describe.
3344
4217
  # The string must match one of the supported locales. For more
3345
- # information, see
3346
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
4218
+ # information, see [Supported languages][1].
3347
4219
  #
3348
4220
  #
3349
4221
  #
3350
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
4222
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3351
4223
  # @return [String]
3352
4224
  #
3353
4225
  # @!attribute [rw] intent_id
@@ -3460,12 +4332,11 @@ module Aws::LexModelsV2
3460
4332
  # @!attribute [rw] locale_id
3461
4333
  # The identifier of the language and locale of the slot type to
3462
4334
  # describe. The string must match one of the supported locales. For
3463
- # more information, see
3464
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
4335
+ # more information, see [Supported languages][1].
3465
4336
  #
3466
4337
  #
3467
4338
  #
3468
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
4339
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3469
4340
  # @return [String]
3470
4341
  #
3471
4342
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeSlotTypeRequest AWS API Documentation
@@ -3566,6 +4437,145 @@ module Aws::LexModelsV2
3566
4437
  include Aws::Structure
3567
4438
  end
3568
4439
 
4440
+ # Filtes the response form the operation
4441
+ #
4442
+ # @note When making an API call, you may pass ExportFilter
4443
+ # data as a hash:
4444
+ #
4445
+ # {
4446
+ # name: "ExportResourceType", # required, accepts ExportResourceType
4447
+ # values: ["FilterValue"], # required
4448
+ # operator: "CO", # required, accepts CO, EQ
4449
+ # }
4450
+ #
4451
+ # @!attribute [rw] name
4452
+ # The name of the field to use for filtering.
4453
+ # @return [String]
4454
+ #
4455
+ # @!attribute [rw] values
4456
+ # The values to use to fileter the response.
4457
+ # @return [Array<String>]
4458
+ #
4459
+ # @!attribute [rw] operator
4460
+ # The operator to use for the filter. Specify EQ when the
4461
+ # `ListExports` operation should return only resource types that equal
4462
+ # the specified value. Specify CO when the `ListExports` operation
4463
+ # should return resource types that contain the specified value.
4464
+ # @return [String]
4465
+ #
4466
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ExportFilter AWS API Documentation
4467
+ #
4468
+ class ExportFilter < Struct.new(
4469
+ :name,
4470
+ :values,
4471
+ :operator)
4472
+ SENSITIVE = []
4473
+ include Aws::Structure
4474
+ end
4475
+
4476
+ # Provides information about the bot or bot locale that you want to
4477
+ # export. You can specify the `botExportSpecification` or the
4478
+ # `botLocaleExportSpecification`, but not both.
4479
+ #
4480
+ # @note When making an API call, you may pass ExportResourceSpecification
4481
+ # data as a hash:
4482
+ #
4483
+ # {
4484
+ # bot_export_specification: {
4485
+ # bot_id: "Id", # required
4486
+ # bot_version: "BotVersion", # required
4487
+ # },
4488
+ # bot_locale_export_specification: {
4489
+ # bot_id: "Id", # required
4490
+ # bot_version: "BotVersion", # required
4491
+ # locale_id: "LocaleId", # required
4492
+ # },
4493
+ # }
4494
+ #
4495
+ # @!attribute [rw] bot_export_specification
4496
+ # Parameters for exporting a bot.
4497
+ # @return [Types::BotExportSpecification]
4498
+ #
4499
+ # @!attribute [rw] bot_locale_export_specification
4500
+ # Parameters for exporting a bot locale.
4501
+ # @return [Types::BotLocaleExportSpecification]
4502
+ #
4503
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ExportResourceSpecification AWS API Documentation
4504
+ #
4505
+ class ExportResourceSpecification < Struct.new(
4506
+ :bot_export_specification,
4507
+ :bot_locale_export_specification)
4508
+ SENSITIVE = []
4509
+ include Aws::Structure
4510
+ end
4511
+
4512
+ # Provides information about sorting a list of exports.
4513
+ #
4514
+ # @note When making an API call, you may pass ExportSortBy
4515
+ # data as a hash:
4516
+ #
4517
+ # {
4518
+ # attribute: "LastUpdatedDateTime", # required, accepts LastUpdatedDateTime
4519
+ # order: "Ascending", # required, accepts Ascending, Descending
4520
+ # }
4521
+ #
4522
+ # @!attribute [rw] attribute
4523
+ # The export field to use for sorting.
4524
+ # @return [String]
4525
+ #
4526
+ # @!attribute [rw] order
4527
+ # The order to sort the list.
4528
+ # @return [String]
4529
+ #
4530
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ExportSortBy AWS API Documentation
4531
+ #
4532
+ class ExportSortBy < Struct.new(
4533
+ :attribute,
4534
+ :order)
4535
+ SENSITIVE = []
4536
+ include Aws::Structure
4537
+ end
4538
+
4539
+ # Provides summary information about an export in an export list.
4540
+ #
4541
+ # @!attribute [rw] export_id
4542
+ # The unique identifier that Amazon Lex assigned to the export.
4543
+ # @return [String]
4544
+ #
4545
+ # @!attribute [rw] resource_specification
4546
+ # Information about the bot or bot locale that was exported.
4547
+ # @return [Types::ExportResourceSpecification]
4548
+ #
4549
+ # @!attribute [rw] file_format
4550
+ # The file format used in the export files.
4551
+ # @return [String]
4552
+ #
4553
+ # @!attribute [rw] export_status
4554
+ # The status of the export. When the status is `Completed` the export
4555
+ # is ready to download.
4556
+ # @return [String]
4557
+ #
4558
+ # @!attribute [rw] creation_date_time
4559
+ # The date and time that the export was created.
4560
+ # @return [Time]
4561
+ #
4562
+ # @!attribute [rw] last_updated_date_time
4563
+ # The date and time that the export was last updated.
4564
+ # @return [Time]
4565
+ #
4566
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ExportSummary AWS API Documentation
4567
+ #
4568
+ class ExportSummary < Struct.new(
4569
+ :export_id,
4570
+ :resource_specification,
4571
+ :file_format,
4572
+ :export_status,
4573
+ :creation_date_time,
4574
+ :last_updated_date_time)
4575
+ SENSITIVE = []
4576
+ include Aws::Structure
4577
+ end
4578
+
3569
4579
  # Determines if a Lambda function should be invoked for a specific
3570
4580
  # intent.
3571
4581
  #
@@ -3643,6 +4653,166 @@ module Aws::LexModelsV2
3643
4653
  include Aws::Structure
3644
4654
  end
3645
4655
 
4656
+ # Filters the response from the operation.
4657
+ #
4658
+ # @note When making an API call, you may pass ImportFilter
4659
+ # data as a hash:
4660
+ #
4661
+ # {
4662
+ # name: "ImportResourceType", # required, accepts ImportResourceType
4663
+ # values: ["FilterValue"], # required
4664
+ # operator: "CO", # required, accepts CO, EQ
4665
+ # }
4666
+ #
4667
+ # @!attribute [rw] name
4668
+ # The name of the field to use for filtering.
4669
+ # @return [String]
4670
+ #
4671
+ # @!attribute [rw] values
4672
+ # The values to use to filter the response.
4673
+ # @return [Array<String>]
4674
+ #
4675
+ # @!attribute [rw] operator
4676
+ # The operator to use for the filter. Specify EQ when the
4677
+ # `ListImports` operation should return only resource types that equal
4678
+ # the specified value. Specify CO when the `ListImports` operation
4679
+ # should return resource types that contain the specified value.
4680
+ # @return [String]
4681
+ #
4682
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ImportFilter AWS API Documentation
4683
+ #
4684
+ class ImportFilter < Struct.new(
4685
+ :name,
4686
+ :values,
4687
+ :operator)
4688
+ SENSITIVE = []
4689
+ include Aws::Structure
4690
+ end
4691
+
4692
+ # Provides information about the bot or bot locale that you want to
4693
+ # import. You can sepcifiy the `botImportSpecification` or the
4694
+ # `botLocaleImportSpecification`, but not both.
4695
+ #
4696
+ # @note When making an API call, you may pass ImportResourceSpecification
4697
+ # data as a hash:
4698
+ #
4699
+ # {
4700
+ # bot_import_specification: {
4701
+ # bot_name: "Name", # required
4702
+ # role_arn: "RoleArn", # required
4703
+ # data_privacy: { # required
4704
+ # child_directed: false, # required
4705
+ # },
4706
+ # idle_session_ttl_in_seconds: 1,
4707
+ # bot_tags: {
4708
+ # "TagKey" => "TagValue",
4709
+ # },
4710
+ # test_bot_alias_tags: {
4711
+ # "TagKey" => "TagValue",
4712
+ # },
4713
+ # },
4714
+ # bot_locale_import_specification: {
4715
+ # bot_id: "Id", # required
4716
+ # bot_version: "DraftBotVersion", # required
4717
+ # locale_id: "LocaleId", # required
4718
+ # nlu_intent_confidence_threshold: 1.0,
4719
+ # voice_settings: {
4720
+ # voice_id: "VoiceId", # required
4721
+ # },
4722
+ # },
4723
+ # }
4724
+ #
4725
+ # @!attribute [rw] bot_import_specification
4726
+ # Parameters for importing a bot.
4727
+ # @return [Types::BotImportSpecification]
4728
+ #
4729
+ # @!attribute [rw] bot_locale_import_specification
4730
+ # Parameters for importing a bot locale.
4731
+ # @return [Types::BotLocaleImportSpecification]
4732
+ #
4733
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ImportResourceSpecification AWS API Documentation
4734
+ #
4735
+ class ImportResourceSpecification < Struct.new(
4736
+ :bot_import_specification,
4737
+ :bot_locale_import_specification)
4738
+ SENSITIVE = []
4739
+ include Aws::Structure
4740
+ end
4741
+
4742
+ # Provides information for sorting a list of imports.
4743
+ #
4744
+ # @note When making an API call, you may pass ImportSortBy
4745
+ # data as a hash:
4746
+ #
4747
+ # {
4748
+ # attribute: "LastUpdatedDateTime", # required, accepts LastUpdatedDateTime
4749
+ # order: "Ascending", # required, accepts Ascending, Descending
4750
+ # }
4751
+ #
4752
+ # @!attribute [rw] attribute
4753
+ # The export field to use for sorting.
4754
+ # @return [String]
4755
+ #
4756
+ # @!attribute [rw] order
4757
+ # The order to sort the list.
4758
+ # @return [String]
4759
+ #
4760
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ImportSortBy AWS API Documentation
4761
+ #
4762
+ class ImportSortBy < Struct.new(
4763
+ :attribute,
4764
+ :order)
4765
+ SENSITIVE = []
4766
+ include Aws::Structure
4767
+ end
4768
+
4769
+ # Provides summary information about an import in an import list.
4770
+ #
4771
+ # @!attribute [rw] import_id
4772
+ # The unique identifier that Amazon Lex assigned to the import.
4773
+ # @return [String]
4774
+ #
4775
+ # @!attribute [rw] imported_resource_id
4776
+ # The unique identifier that Amazon Lex assigned to the imported
4777
+ # resource.
4778
+ # @return [String]
4779
+ #
4780
+ # @!attribute [rw] imported_resource_name
4781
+ # The name that you gave the imported resource.
4782
+ # @return [String]
4783
+ #
4784
+ # @!attribute [rw] import_status
4785
+ # The status of the resource. When the status is `Completed` the
4786
+ # resource is ready to build.
4787
+ # @return [String]
4788
+ #
4789
+ # @!attribute [rw] merge_strategy
4790
+ # The strategy used to merge existing bot or bot locale definitions
4791
+ # with the imported definition.
4792
+ # @return [String]
4793
+ #
4794
+ # @!attribute [rw] creation_date_time
4795
+ # The date and time that the import was created.
4796
+ # @return [Time]
4797
+ #
4798
+ # @!attribute [rw] last_updated_date_time
4799
+ # The date and time that the import was last updated.
4800
+ # @return [Time]
4801
+ #
4802
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ImportSummary AWS API Documentation
4803
+ #
4804
+ class ImportSummary < Struct.new(
4805
+ :import_id,
4806
+ :imported_resource_id,
4807
+ :imported_resource_name,
4808
+ :import_status,
4809
+ :merge_strategy,
4810
+ :creation_date_time,
4811
+ :last_updated_date_time)
4812
+ SENSITIVE = []
4813
+ include Aws::Structure
4814
+ end
4815
+
3646
4816
  # The name of a context that must be active for an intent to be selected
3647
4817
  # by Amazon Lex.
3648
4818
  #
@@ -4418,154 +5588,352 @@ module Aws::LexModelsV2
4418
5588
  # @!attribute [rw] locale_id
4419
5589
  # The identifier of the language and locale of the intents to list.
4420
5590
  # The string must match one of the supported locales. For more
4421
- # information, see
4422
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
5591
+ # information, see [Supported languages][1].
5592
+ #
5593
+ #
5594
+ #
5595
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
5596
+ # @return [String]
5597
+ #
5598
+ # @!attribute [rw] sort_by
5599
+ # Specifies sorting parameters for the list of built-in intents. You
5600
+ # can specify that the list be sorted by the built-in intent signature
5601
+ # in either ascending or descending order.
5602
+ # @return [Types::BuiltInIntentSortBy]
5603
+ #
5604
+ # @!attribute [rw] max_results
5605
+ # The maximum number of built-in intents to return in each page of
5606
+ # results. If there are fewer results than the max page size, only the
5607
+ # actual number of results are returned.
5608
+ # @return [Integer]
5609
+ #
5610
+ # @!attribute [rw] next_token
5611
+ # If the response from the `ListBuiltInIntents` operation contains
5612
+ # more results than specified in the `maxResults` parameter, a token
5613
+ # is returned in the response. Use that token in the `nextToken`
5614
+ # parameter to return the next page of results.
5615
+ # @return [String]
5616
+ #
5617
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBuiltInIntentsRequest AWS API Documentation
5618
+ #
5619
+ class ListBuiltInIntentsRequest < Struct.new(
5620
+ :locale_id,
5621
+ :sort_by,
5622
+ :max_results,
5623
+ :next_token)
5624
+ SENSITIVE = []
5625
+ include Aws::Structure
5626
+ end
5627
+
5628
+ # @!attribute [rw] built_in_intent_summaries
5629
+ # Summary information for the built-in intents that meet the filter
5630
+ # criteria specified in the request. The length of the list is
5631
+ # specified in the `maxResults` parameter of the request. If there are
5632
+ # more intents available, the `nextToken` field contains a token to
5633
+ # get the next page of results.
5634
+ # @return [Array<Types::BuiltInIntentSummary>]
5635
+ #
5636
+ # @!attribute [rw] next_token
5637
+ # A token that indicates whether there are more results to return in a
5638
+ # response to the `ListBuiltInIntents` operation. If the `nextToken`
5639
+ # field is present, you send the contents as the `nextToken` parameter
5640
+ # of a `ListBotAliases` operation request to get the next page of
5641
+ # results.
5642
+ # @return [String]
5643
+ #
5644
+ # @!attribute [rw] locale_id
5645
+ # The language and locale of the intents in the list.
5646
+ # @return [String]
5647
+ #
5648
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBuiltInIntentsResponse AWS API Documentation
5649
+ #
5650
+ class ListBuiltInIntentsResponse < Struct.new(
5651
+ :built_in_intent_summaries,
5652
+ :next_token,
5653
+ :locale_id)
5654
+ SENSITIVE = []
5655
+ include Aws::Structure
5656
+ end
5657
+
5658
+ # @note When making an API call, you may pass ListBuiltInSlotTypesRequest
5659
+ # data as a hash:
5660
+ #
5661
+ # {
5662
+ # locale_id: "LocaleId", # required
5663
+ # sort_by: {
5664
+ # attribute: "SlotTypeSignature", # required, accepts SlotTypeSignature
5665
+ # order: "Ascending", # required, accepts Ascending, Descending
5666
+ # },
5667
+ # max_results: 1,
5668
+ # next_token: "NextToken",
5669
+ # }
5670
+ #
5671
+ # @!attribute [rw] locale_id
5672
+ # The identifier of the language and locale of the slot types to list.
5673
+ # The string must match one of the supported locales. For more
5674
+ # information, see [Supported languages][1].
5675
+ #
5676
+ #
5677
+ #
5678
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
5679
+ # @return [String]
5680
+ #
5681
+ # @!attribute [rw] sort_by
5682
+ # Determines the sort order for the response from the
5683
+ # `ListBuiltInSlotTypes` operation. You can choose to sort by the slot
5684
+ # type signature in either ascending or descending order.
5685
+ # @return [Types::BuiltInSlotTypeSortBy]
5686
+ #
5687
+ # @!attribute [rw] max_results
5688
+ # The maximum number of built-in slot types to return in each page of
5689
+ # results. If there are fewer results than the max page size, only the
5690
+ # actual number of results are returned.
5691
+ # @return [Integer]
5692
+ #
5693
+ # @!attribute [rw] next_token
5694
+ # If the response from the `ListBuiltInSlotTypes` operation contains
5695
+ # more results than specified in the `maxResults` parameter, a token
5696
+ # is returned in the response. Use that token in the `nextToken`
5697
+ # parameter to return the next page of results.
5698
+ # @return [String]
5699
+ #
5700
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBuiltInSlotTypesRequest AWS API Documentation
4423
5701
  #
5702
+ class ListBuiltInSlotTypesRequest < Struct.new(
5703
+ :locale_id,
5704
+ :sort_by,
5705
+ :max_results,
5706
+ :next_token)
5707
+ SENSITIVE = []
5708
+ include Aws::Structure
5709
+ end
5710
+
5711
+ # @!attribute [rw] built_in_slot_type_summaries
5712
+ # Summary information for the built-in slot types that meet the filter
5713
+ # criteria specified in the request. The length of the list is
5714
+ # specified in the `maxResults` parameter of the request. If there are
5715
+ # more slot types available, the `nextToken` field contains a token to
5716
+ # get the next page of results.
5717
+ # @return [Array<Types::BuiltInSlotTypeSummary>]
5718
+ #
5719
+ # @!attribute [rw] next_token
5720
+ # A token that indicates whether there are more results to return in a
5721
+ # response to the `ListBuiltInSlotTypes` operation. If the `nextToken`
5722
+ # field is present, you send the contents as the `nextToken` parameter
5723
+ # of a `LIstBuiltInSlotTypes` operation request to get the next page
5724
+ # of results.
5725
+ # @return [String]
5726
+ #
5727
+ # @!attribute [rw] locale_id
5728
+ # The language and locale of the slot types in the list.
5729
+ # @return [String]
5730
+ #
5731
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBuiltInSlotTypesResponse AWS API Documentation
5732
+ #
5733
+ class ListBuiltInSlotTypesResponse < Struct.new(
5734
+ :built_in_slot_type_summaries,
5735
+ :next_token,
5736
+ :locale_id)
5737
+ SENSITIVE = []
5738
+ include Aws::Structure
5739
+ end
5740
+
5741
+ # @note When making an API call, you may pass ListExportsRequest
5742
+ # data as a hash:
5743
+ #
5744
+ # {
5745
+ # bot_id: "Id",
5746
+ # bot_version: "BotVersion",
5747
+ # sort_by: {
5748
+ # attribute: "LastUpdatedDateTime", # required, accepts LastUpdatedDateTime
5749
+ # order: "Ascending", # required, accepts Ascending, Descending
5750
+ # },
5751
+ # filters: [
5752
+ # {
5753
+ # name: "ExportResourceType", # required, accepts ExportResourceType
5754
+ # values: ["FilterValue"], # required
5755
+ # operator: "CO", # required, accepts CO, EQ
5756
+ # },
5757
+ # ],
5758
+ # max_results: 1,
5759
+ # next_token: "NextToken",
5760
+ # }
4424
5761
  #
5762
+ # @!attribute [rw] bot_id
5763
+ # The unique identifier that Amazon Lex assigned to the bot.
5764
+ # @return [String]
4425
5765
  #
4426
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
5766
+ # @!attribute [rw] bot_version
5767
+ # The version of the bot to list exports for.
4427
5768
  # @return [String]
4428
5769
  #
4429
5770
  # @!attribute [rw] sort_by
4430
- # Specifies sorting parameters for the list of built-in intents. You
4431
- # can specify that the list be sorted by the built-in intent signature
4432
- # in either ascending or descending order.
4433
- # @return [Types::BuiltInIntentSortBy]
5771
+ # Determines the field that the list of exports is sorted by. You can
5772
+ # sort by the `LastUpdatedDateTime` field in ascending or descending
5773
+ # order.
5774
+ # @return [Types::ExportSortBy]
5775
+ #
5776
+ # @!attribute [rw] filters
5777
+ # Provides the specification of a filter used to limit the exports in
5778
+ # the response to only those that match the filter specification. You
5779
+ # can only specify one filter and one string to filter on.
5780
+ # @return [Array<Types::ExportFilter>]
4434
5781
  #
4435
5782
  # @!attribute [rw] max_results
4436
- # The maximum number of built-in intents to return in each page of
4437
- # results. If there are fewer results than the max page size, only the
4438
- # actual number of results are returned.
5783
+ # The maximum number of exports to return in each page of results. If
5784
+ # there are fewer results than the max page size, only the actual
5785
+ # number of results are returned.
4439
5786
  # @return [Integer]
4440
5787
  #
4441
5788
  # @!attribute [rw] next_token
4442
- # If the response from the `ListBuiltInIntents` operation contains
4443
- # more results than specified in the `maxResults` parameter, a token
4444
- # is returned in the response. Use that token in the `nextToken`
5789
+ # If the response from the `ListExports` operation contans more
5790
+ # results that specified in the `maxResults` parameter, a token is
5791
+ # returned in the response. Use that token in the `nextToken`
4445
5792
  # parameter to return the next page of results.
4446
5793
  # @return [String]
4447
5794
  #
4448
- # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBuiltInIntentsRequest AWS API Documentation
5795
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListExportsRequest AWS API Documentation
4449
5796
  #
4450
- class ListBuiltInIntentsRequest < Struct.new(
4451
- :locale_id,
5797
+ class ListExportsRequest < Struct.new(
5798
+ :bot_id,
5799
+ :bot_version,
4452
5800
  :sort_by,
5801
+ :filters,
4453
5802
  :max_results,
4454
5803
  :next_token)
4455
5804
  SENSITIVE = []
4456
5805
  include Aws::Structure
4457
5806
  end
4458
5807
 
4459
- # @!attribute [rw] built_in_intent_summaries
4460
- # Summary information for the built-in intents that meet the filter
4461
- # criteria specified in the request. The length of the list is
4462
- # specified in the `maxResults` parameter of the request. If there are
4463
- # more intents available, the `nextToken` field contains a token to
4464
- # get the next page of results.
4465
- # @return [Array<Types::BuiltInIntentSummary>]
5808
+ # @!attribute [rw] bot_id
5809
+ # The unique identifier assigned to the bot by Amazon Lex.
5810
+ # @return [String]
4466
5811
  #
4467
- # @!attribute [rw] next_token
4468
- # A token that indicates whether there are more results to return in a
4469
- # response to the `ListBuiltInIntents` operation. If the `nextToken`
4470
- # field is present, you send the contents as the `nextToken` parameter
4471
- # of a `ListBotAliases` operation request to get the next page of
4472
- # results.
5812
+ # @!attribute [rw] bot_version
5813
+ # The version of the bot that was exported.
4473
5814
  # @return [String]
4474
5815
  #
4475
- # @!attribute [rw] locale_id
4476
- # The language and locale of the intents in the list.
5816
+ # @!attribute [rw] export_summaries
5817
+ # Summary information for the exports that meet the filter criteria
5818
+ # specified in the request. The length of the list is specified in the
5819
+ # `maxResults` parameter. If there are more exports available, the
5820
+ # `nextToken` field contains a token to get the next page of results.
5821
+ # @return [Array<Types::ExportSummary>]
5822
+ #
5823
+ # @!attribute [rw] next_token
5824
+ # A token that indicates whether there are more results to return in a
5825
+ # response to the `ListExports` operation. If the `nextToken` field is
5826
+ # present, you send the contents as the `nextToken` parameter of a
5827
+ # `ListExports` operation request to get the next page of results.
4477
5828
  # @return [String]
4478
5829
  #
4479
- # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBuiltInIntentsResponse AWS API Documentation
5830
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListExportsResponse AWS API Documentation
4480
5831
  #
4481
- class ListBuiltInIntentsResponse < Struct.new(
4482
- :built_in_intent_summaries,
4483
- :next_token,
4484
- :locale_id)
5832
+ class ListExportsResponse < Struct.new(
5833
+ :bot_id,
5834
+ :bot_version,
5835
+ :export_summaries,
5836
+ :next_token)
4485
5837
  SENSITIVE = []
4486
5838
  include Aws::Structure
4487
5839
  end
4488
5840
 
4489
- # @note When making an API call, you may pass ListBuiltInSlotTypesRequest
5841
+ # @note When making an API call, you may pass ListImportsRequest
4490
5842
  # data as a hash:
4491
5843
  #
4492
5844
  # {
4493
- # locale_id: "LocaleId", # required
5845
+ # bot_id: "Id",
5846
+ # bot_version: "DraftBotVersion",
4494
5847
  # sort_by: {
4495
- # attribute: "SlotTypeSignature", # required, accepts SlotTypeSignature
5848
+ # attribute: "LastUpdatedDateTime", # required, accepts LastUpdatedDateTime
4496
5849
  # order: "Ascending", # required, accepts Ascending, Descending
4497
5850
  # },
5851
+ # filters: [
5852
+ # {
5853
+ # name: "ImportResourceType", # required, accepts ImportResourceType
5854
+ # values: ["FilterValue"], # required
5855
+ # operator: "CO", # required, accepts CO, EQ
5856
+ # },
5857
+ # ],
4498
5858
  # max_results: 1,
4499
5859
  # next_token: "NextToken",
4500
5860
  # }
4501
5861
  #
4502
- # @!attribute [rw] locale_id
4503
- # The identifier of the language and locale of the slot types to list.
4504
- # The string must match one of the supported locales. For more
4505
- # information, see
4506
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
4507
- #
4508
- #
5862
+ # @!attribute [rw] bot_id
5863
+ # The unique identifier that Amazon Lex assigned to the bot.
5864
+ # @return [String]
4509
5865
  #
4510
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
5866
+ # @!attribute [rw] bot_version
5867
+ # The version of the bot to list imports for.
4511
5868
  # @return [String]
4512
5869
  #
4513
5870
  # @!attribute [rw] sort_by
4514
- # Determines the sort order for the response from the
4515
- # `ListBuiltInSlotTypes` operation. You can choose to sort by the slot
4516
- # type signature in either ascending or descending order.
4517
- # @return [Types::BuiltInSlotTypeSortBy]
5871
+ # Determines the field that the list of imports is sorted by. You can
5872
+ # sort by the `LastUpdatedDateTime` field in ascending or descending
5873
+ # order.
5874
+ # @return [Types::ImportSortBy]
5875
+ #
5876
+ # @!attribute [rw] filters
5877
+ # Provides the specification of a filter used to limit the bots in the
5878
+ # response to only those that match the filter specification. You can
5879
+ # only specify one filter and one string to filter on.
5880
+ # @return [Array<Types::ImportFilter>]
4518
5881
  #
4519
5882
  # @!attribute [rw] max_results
4520
- # The maximum number of built-in slot types to return in each page of
4521
- # results. If there are fewer results than the max page size, only the
4522
- # actual number of results are returned.
5883
+ # The maximum number of imports to return in each page of results. If
5884
+ # there are fewer results than the max page size, only the actual
5885
+ # number of results are returned.
4523
5886
  # @return [Integer]
4524
5887
  #
4525
5888
  # @!attribute [rw] next_token
4526
- # If the response from the `ListBuiltInSlotTypes` operation contains
4527
- # more results than specified in the `maxResults` parameter, a token
4528
- # is returned in the response. Use that token in the `nextToken`
5889
+ # If the response from the `ListImports` operation contains more
5890
+ # results than specified in the `maxResults` parameter, a token is
5891
+ # returned in the response. Use that token in the `nextToken`
4529
5892
  # parameter to return the next page of results.
4530
5893
  # @return [String]
4531
5894
  #
4532
- # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBuiltInSlotTypesRequest AWS API Documentation
5895
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListImportsRequest AWS API Documentation
4533
5896
  #
4534
- class ListBuiltInSlotTypesRequest < Struct.new(
4535
- :locale_id,
5897
+ class ListImportsRequest < Struct.new(
5898
+ :bot_id,
5899
+ :bot_version,
4536
5900
  :sort_by,
5901
+ :filters,
4537
5902
  :max_results,
4538
5903
  :next_token)
4539
5904
  SENSITIVE = []
4540
5905
  include Aws::Structure
4541
5906
  end
4542
5907
 
4543
- # @!attribute [rw] built_in_slot_type_summaries
4544
- # Summary information for the built-in slot types that meet the filter
4545
- # criteria specified in the request. The length of the list is
4546
- # specified in the `maxResults` parameter of the request. If there are
4547
- # more slot types available, the `nextToken` field contains a token to
4548
- # get the next page of results.
4549
- # @return [Array<Types::BuiltInSlotTypeSummary>]
5908
+ # @!attribute [rw] bot_id
5909
+ # The unique identifier assigned by Amazon Lex to the bot.
5910
+ # @return [String]
4550
5911
  #
4551
- # @!attribute [rw] next_token
4552
- # A token that indicates whether there are more results to return in a
4553
- # response to the `ListBuiltInSlotTypes` operation. If the `nextToken`
4554
- # field is present, you send the contents as the `nextToken` parameter
4555
- # of a `LIstBuiltInSlotTypes` operation request to get the next page
4556
- # of results.
5912
+ # @!attribute [rw] bot_version
5913
+ # The version of the bot that was imported. It will always be `DRAFT`.
4557
5914
  # @return [String]
4558
5915
  #
4559
- # @!attribute [rw] locale_id
4560
- # The language and locale of the slot types in the list.
5916
+ # @!attribute [rw] import_summaries
5917
+ # Summary information for the imports that meet the filter criteria
5918
+ # specified in the request. The length of the list is specified in the
5919
+ # `maxResults` parameter. If there are more imports available, the
5920
+ # `nextToken` field contains a token to get the next page of results.
5921
+ # @return [Array<Types::ImportSummary>]
5922
+ #
5923
+ # @!attribute [rw] next_token
5924
+ # A token that indicates whether there are more results to return in a
5925
+ # response to the `ListImports` operation. If the `nextToken` field is
5926
+ # present, you send the contents as the `nextToken` parameter of a
5927
+ # `ListImports` operation request to get the next page of results.
4561
5928
  # @return [String]
4562
5929
  #
4563
- # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBuiltInSlotTypesResponse AWS API Documentation
5930
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListImportsResponse AWS API Documentation
4564
5931
  #
4565
- class ListBuiltInSlotTypesResponse < Struct.new(
4566
- :built_in_slot_type_summaries,
4567
- :next_token,
4568
- :locale_id)
5932
+ class ListImportsResponse < Struct.new(
5933
+ :bot_id,
5934
+ :bot_version,
5935
+ :import_summaries,
5936
+ :next_token)
4569
5937
  SENSITIVE = []
4570
5938
  include Aws::Structure
4571
5939
  end
@@ -4603,12 +5971,11 @@ module Aws::LexModelsV2
4603
5971
  # @!attribute [rw] locale_id
4604
5972
  # The identifier of the language and locale of the intents to list.
4605
5973
  # The string must match one of the supported locales. For more
4606
- # information, see
4607
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
5974
+ # information, see [Supported languages][1].
4608
5975
  #
4609
5976
  #
4610
5977
  #
4611
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
5978
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
4612
5979
  # @return [String]
4613
5980
  #
4614
5981
  # @!attribute [rw] sort_by
@@ -4722,12 +6089,11 @@ module Aws::LexModelsV2
4722
6089
  # @!attribute [rw] locale_id
4723
6090
  # The identifier of the language and locale of the slot types to list.
4724
6091
  # The string must match one of the supported locales. For more
4725
- # information, see
4726
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
6092
+ # information, see [Supported languages][1].
4727
6093
  #
4728
6094
  #
4729
6095
  #
4730
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
6096
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
4731
6097
  # @return [String]
4732
6098
  #
4733
6099
  # @!attribute [rw] sort_by
@@ -4842,12 +6208,11 @@ module Aws::LexModelsV2
4842
6208
  # @!attribute [rw] locale_id
4843
6209
  # The identifier of the language and locale of the slots to list. The
4844
6210
  # string must match one of the supported locales. For more
4845
- # information, see
4846
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
6211
+ # information, see [Supported languages][1].
4847
6212
  #
4848
6213
  #
4849
6214
  #
4850
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
6215
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
4851
6216
  # @return [String]
4852
6217
  #
4853
6218
  # @!attribute [rw] intent_id
@@ -5192,6 +6557,41 @@ module Aws::LexModelsV2
5192
6557
  include Aws::Structure
5193
6558
  end
5194
6559
 
6560
+ # The IAM principal that you allowing or denying access to an Amazon Lex
6561
+ # action. You must provide a `service` or an `arn`, but not both in the
6562
+ # same statement. For more information, see [ AWS JSON policy elements:
6563
+ # Principal ][1].
6564
+ #
6565
+ #
6566
+ #
6567
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html
6568
+ #
6569
+ # @note When making an API call, you may pass Principal
6570
+ # data as a hash:
6571
+ #
6572
+ # {
6573
+ # service: "ServicePrincipal",
6574
+ # arn: "PrincipalArn",
6575
+ # }
6576
+ #
6577
+ # @!attribute [rw] service
6578
+ # The name of the AWS service that should allowed or denied access to
6579
+ # an Amazon Lex action.
6580
+ # @return [String]
6581
+ #
6582
+ # @!attribute [rw] arn
6583
+ # The Amazon Resource Name (ARN) of the principal.
6584
+ # @return [String]
6585
+ #
6586
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/Principal AWS API Documentation
6587
+ #
6588
+ class Principal < Struct.new(
6589
+ :service,
6590
+ :arn)
6591
+ SENSITIVE = []
6592
+ include Aws::Structure
6593
+ end
6594
+
5195
6595
  # Specifies a list of message groups that Amazon Lex sends to a user to
5196
6596
  # elicit a response.
5197
6597
  #
@@ -6181,6 +7581,109 @@ module Aws::LexModelsV2
6181
7581
  include Aws::Structure
6182
7582
  end
6183
7583
 
7584
+ # @note When making an API call, you may pass StartImportRequest
7585
+ # data as a hash:
7586
+ #
7587
+ # {
7588
+ # import_id: "Id", # required
7589
+ # resource_specification: { # required
7590
+ # bot_import_specification: {
7591
+ # bot_name: "Name", # required
7592
+ # role_arn: "RoleArn", # required
7593
+ # data_privacy: { # required
7594
+ # child_directed: false, # required
7595
+ # },
7596
+ # idle_session_ttl_in_seconds: 1,
7597
+ # bot_tags: {
7598
+ # "TagKey" => "TagValue",
7599
+ # },
7600
+ # test_bot_alias_tags: {
7601
+ # "TagKey" => "TagValue",
7602
+ # },
7603
+ # },
7604
+ # bot_locale_import_specification: {
7605
+ # bot_id: "Id", # required
7606
+ # bot_version: "DraftBotVersion", # required
7607
+ # locale_id: "LocaleId", # required
7608
+ # nlu_intent_confidence_threshold: 1.0,
7609
+ # voice_settings: {
7610
+ # voice_id: "VoiceId", # required
7611
+ # },
7612
+ # },
7613
+ # },
7614
+ # merge_strategy: "Overwrite", # required, accepts Overwrite, FailOnConflict
7615
+ # file_password: "ImportExportFilePassword",
7616
+ # }
7617
+ #
7618
+ # @!attribute [rw] import_id
7619
+ # The unique identifier for the import. It is included in the response
7620
+ # from the operation.
7621
+ # @return [String]
7622
+ #
7623
+ # @!attribute [rw] resource_specification
7624
+ # Parameters for creating the bot or bot locale.
7625
+ # @return [Types::ImportResourceSpecification]
7626
+ #
7627
+ # @!attribute [rw] merge_strategy
7628
+ # The strategy to use when there is a name conflict between the
7629
+ # imported resource and an existing resource. When the merge strategy
7630
+ # is `FailOnConflict` existing resources are not overwritten and the
7631
+ # import fails.
7632
+ # @return [String]
7633
+ #
7634
+ # @!attribute [rw] file_password
7635
+ # The password used to encrypt the zip archive that contains the bot
7636
+ # or bot locale definition. You should always encrypt the zip archive
7637
+ # to protect it during transit between your site and Amazon Lex.
7638
+ # @return [String]
7639
+ #
7640
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/StartImportRequest AWS API Documentation
7641
+ #
7642
+ class StartImportRequest < Struct.new(
7643
+ :import_id,
7644
+ :resource_specification,
7645
+ :merge_strategy,
7646
+ :file_password)
7647
+ SENSITIVE = [:file_password]
7648
+ include Aws::Structure
7649
+ end
7650
+
7651
+ # @!attribute [rw] import_id
7652
+ # A unique identifier for the import.
7653
+ # @return [String]
7654
+ #
7655
+ # @!attribute [rw] resource_specification
7656
+ # The parameters used when importing the bot or bot locale.
7657
+ # @return [Types::ImportResourceSpecification]
7658
+ #
7659
+ # @!attribute [rw] merge_strategy
7660
+ # The strategy used when there was a name conflict between the
7661
+ # imported resource and an existing resource. When the merge strategy
7662
+ # is `FailOnConflict` existing resources are not overwritten and the
7663
+ # import fails.
7664
+ # @return [String]
7665
+ #
7666
+ # @!attribute [rw] import_status
7667
+ # The current status of the import. When the status is `Complete` the
7668
+ # bot or bot alias is ready to use.
7669
+ # @return [String]
7670
+ #
7671
+ # @!attribute [rw] creation_date_time
7672
+ # The date and time that the import request was created.
7673
+ # @return [Time]
7674
+ #
7675
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/StartImportResponse AWS API Documentation
7676
+ #
7677
+ class StartImportResponse < Struct.new(
7678
+ :import_id,
7679
+ :resource_specification,
7680
+ :merge_strategy,
7681
+ :import_status,
7682
+ :creation_date_time)
7683
+ SENSITIVE = []
7684
+ include Aws::Structure
7685
+ end
7686
+
6184
7687
  # Defines the messages that Amazon Lex sends to a user to remind them
6185
7688
  # that the bot is waiting for a response.
6186
7689
  #
@@ -6603,11 +8106,11 @@ module Aws::LexModelsV2
6603
8106
  # @!attribute [rw] locale_id
6604
8107
  # The identifier of the language and locale to update. The string must
6605
8108
  # match one of the supported locales. For more information, see
6606
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
8109
+ # [Supported languages][1].
6607
8110
  #
6608
8111
  #
6609
8112
  #
6610
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
8113
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
6611
8114
  # @return [String]
6612
8115
  #
6613
8116
  # @!attribute [rw] description
@@ -6823,6 +8326,70 @@ module Aws::LexModelsV2
6823
8326
  include Aws::Structure
6824
8327
  end
6825
8328
 
8329
+ # @note When making an API call, you may pass UpdateExportRequest
8330
+ # data as a hash:
8331
+ #
8332
+ # {
8333
+ # export_id: "Id", # required
8334
+ # file_password: "ImportExportFilePassword",
8335
+ # }
8336
+ #
8337
+ # @!attribute [rw] export_id
8338
+ # The unique identifier Amazon Lex assigned to the export.
8339
+ # @return [String]
8340
+ #
8341
+ # @!attribute [rw] file_password
8342
+ # The new password to use to encrypt the export zip archive.
8343
+ # @return [String]
8344
+ #
8345
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateExportRequest AWS API Documentation
8346
+ #
8347
+ class UpdateExportRequest < Struct.new(
8348
+ :export_id,
8349
+ :file_password)
8350
+ SENSITIVE = [:file_password]
8351
+ include Aws::Structure
8352
+ end
8353
+
8354
+ # @!attribute [rw] export_id
8355
+ # The unique identifier Amazon Lex assigned to the export.
8356
+ # @return [String]
8357
+ #
8358
+ # @!attribute [rw] resource_specification
8359
+ # A description of the type of resource that was exported, either a
8360
+ # bot or a bot locale.
8361
+ # @return [Types::ExportResourceSpecification]
8362
+ #
8363
+ # @!attribute [rw] file_format
8364
+ # The file format used for the files that define the resource.
8365
+ # @return [String]
8366
+ #
8367
+ # @!attribute [rw] export_status
8368
+ # The status of the export. When the status is `Completed` the export
8369
+ # archive is available for download.
8370
+ # @return [String]
8371
+ #
8372
+ # @!attribute [rw] creation_date_time
8373
+ # The date and time that the export was created.
8374
+ # @return [Time]
8375
+ #
8376
+ # @!attribute [rw] last_updated_date_time
8377
+ # The date and time that the export was last updated.
8378
+ # @return [Time]
8379
+ #
8380
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateExportResponse AWS API Documentation
8381
+ #
8382
+ class UpdateExportResponse < Struct.new(
8383
+ :export_id,
8384
+ :resource_specification,
8385
+ :file_format,
8386
+ :export_status,
8387
+ :creation_date_time,
8388
+ :last_updated_date_time)
8389
+ SENSITIVE = []
8390
+ include Aws::Structure
8391
+ end
8392
+
6826
8393
  # @note When making an API call, you may pass UpdateIntentRequest
6827
8394
  # data as a hash:
6828
8395
  #
@@ -7105,12 +8672,11 @@ module Aws::LexModelsV2
7105
8672
  # @!attribute [rw] locale_id
7106
8673
  # The identifier of the language and locale where this intent is used.
7107
8674
  # The string must match one of the supported locales. For more
7108
- # information, see
7109
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
8675
+ # information, see [Supported languages][1].
7110
8676
  #
7111
8677
  #
7112
8678
  #
7113
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
8679
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
7114
8680
  # @return [String]
7115
8681
  #
7116
8682
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateIntentRequest AWS API Documentation
@@ -7242,6 +8808,75 @@ module Aws::LexModelsV2
7242
8808
  include Aws::Structure
7243
8809
  end
7244
8810
 
8811
+ # @note When making an API call, you may pass UpdateResourcePolicyRequest
8812
+ # data as a hash:
8813
+ #
8814
+ # {
8815
+ # resource_arn: "AmazonResourceName", # required
8816
+ # policy: "Policy", # required
8817
+ # expected_revision_id: "RevisionId",
8818
+ # }
8819
+ #
8820
+ # @!attribute [rw] resource_arn
8821
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
8822
+ # resource policy is attached to.
8823
+ # @return [String]
8824
+ #
8825
+ # @!attribute [rw] policy
8826
+ # A resource policy to add to the resource. The policy is a JSON
8827
+ # structure that contains one or more statements that define the
8828
+ # policy. The policy must follow the IAM syntax. For more information
8829
+ # about the contents of a JSON policy document, see [ IAM JSON policy
8830
+ # reference ][1].
8831
+ #
8832
+ # If the policy isn't valid, Amazon Lex returns a validation
8833
+ # exception.
8834
+ #
8835
+ #
8836
+ #
8837
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html
8838
+ # @return [String]
8839
+ #
8840
+ # @!attribute [rw] expected_revision_id
8841
+ # The identifier of the revision of the policy to update. If this
8842
+ # revision ID doesn't match the current revision ID, Amazon Lex
8843
+ # throws an exception.
8844
+ #
8845
+ # If you don't specify a revision, Amazon Lex overwrites the contents
8846
+ # of the policy with the new values.
8847
+ # @return [String]
8848
+ #
8849
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateResourcePolicyRequest AWS API Documentation
8850
+ #
8851
+ class UpdateResourcePolicyRequest < Struct.new(
8852
+ :resource_arn,
8853
+ :policy,
8854
+ :expected_revision_id)
8855
+ SENSITIVE = []
8856
+ include Aws::Structure
8857
+ end
8858
+
8859
+ # @!attribute [rw] resource_arn
8860
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
8861
+ # resource policy is attached to.
8862
+ # @return [String]
8863
+ #
8864
+ # @!attribute [rw] revision_id
8865
+ # The current revision of the resource policy. Use the revision ID to
8866
+ # make sure that you are updating the most current version of a
8867
+ # resource policy when you add a policy statement to a resource,
8868
+ # delete a resource, or update a resource.
8869
+ # @return [String]
8870
+ #
8871
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateResourcePolicyResponse AWS API Documentation
8872
+ #
8873
+ class UpdateResourcePolicyResponse < Struct.new(
8874
+ :resource_arn,
8875
+ :revision_id)
8876
+ SENSITIVE = []
8877
+ include Aws::Structure
8878
+ end
8879
+
7245
8880
  # @note When making an API call, you may pass UpdateSlotRequest
7246
8881
  # data as a hash:
7247
8882
  #
@@ -7530,12 +9165,11 @@ module Aws::LexModelsV2
7530
9165
  # @!attribute [rw] locale_id
7531
9166
  # The identifier of the language and locale that contains the slot.
7532
9167
  # The string must match one of the supported locales. For more
7533
- # information, see
7534
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
9168
+ # information, see [Supported languages][1].
7535
9169
  #
7536
9170
  #
7537
9171
  #
7538
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
9172
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
7539
9173
  # @return [String]
7540
9174
  #
7541
9175
  # @!attribute [rw] intent_id
@@ -7699,12 +9333,11 @@ module Aws::LexModelsV2
7699
9333
  # @!attribute [rw] locale_id
7700
9334
  # The identifier of the language and locale that contains the slot
7701
9335
  # type. The string must match one of the supported locales. For more
7702
- # information, see
7703
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
9336
+ # information, see [Supported languages][1].
7704
9337
  #
7705
9338
  #
7706
9339
  #
7707
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
9340
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
7708
9341
  # @return [String]
7709
9342
  #
7710
9343
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlotTypeRequest AWS API Documentation