aws-sdk-lexmodelsv2 1.0.1 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
 
@@ -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
  # },
@@ -2036,6 +2505,9 @@ module Aws::LexModelsV2
2036
2505
  # bot_version: "DraftBotVersion", # required
2037
2506
  # locale_id: "LocaleId", # required
2038
2507
  # intent_id: "Id", # required
2508
+ # multiple_values_setting: {
2509
+ # allow_multiple_values: false,
2510
+ # },
2039
2511
  # }
2040
2512
  #
2041
2513
  # @!attribute [rw] slot_name
@@ -2081,18 +2553,27 @@ module Aws::LexModelsV2
2081
2553
  # The identifier of the language and locale that the slot will be used
2082
2554
  # in. The string must match one of the supported locales. All of the
2083
2555
  # 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].
2556
+ # locale. For more information, see [Supported languages][1].
2086
2557
  #
2087
2558
  #
2088
2559
  #
2089
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2560
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2090
2561
  # @return [String]
2091
2562
  #
2092
2563
  # @!attribute [rw] intent_id
2093
2564
  # The identifier of the intent that contains the slot.
2094
2565
  # @return [String]
2095
2566
  #
2567
+ # @!attribute [rw] multiple_values_setting
2568
+ # Indicates whether the slot returns multiple values in one response.
2569
+ # Multi-value slots are only available in the en-US locale. If you set
2570
+ # this value to `true` in any other locale, Amazon Lex throws a
2571
+ # `ValidationException`.
2572
+ #
2573
+ # If the `multipleValuesSetting` is not set, the default value is
2574
+ # `false`.
2575
+ # @return [Types::MultipleValuesSetting]
2576
+ #
2096
2577
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateSlotRequest AWS API Documentation
2097
2578
  #
2098
2579
  class CreateSlotRequest < Struct.new(
@@ -2104,7 +2585,8 @@ module Aws::LexModelsV2
2104
2585
  :bot_id,
2105
2586
  :bot_version,
2106
2587
  :locale_id,
2107
- :intent_id)
2588
+ :intent_id,
2589
+ :multiple_values_setting)
2108
2590
  SENSITIVE = []
2109
2591
  include Aws::Structure
2110
2592
  end
@@ -2155,6 +2637,10 @@ module Aws::LexModelsV2
2155
2637
  # The timestamp of the date and time that the slot was created.
2156
2638
  # @return [Time]
2157
2639
  #
2640
+ # @!attribute [rw] multiple_values_setting
2641
+ # Indicates whether the slot returns multiple values in one response.
2642
+ # @return [Types::MultipleValuesSetting]
2643
+ #
2158
2644
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateSlotResponse AWS API Documentation
2159
2645
  #
2160
2646
  class CreateSlotResponse < Struct.new(
@@ -2168,7 +2654,8 @@ module Aws::LexModelsV2
2168
2654
  :bot_version,
2169
2655
  :locale_id,
2170
2656
  :intent_id,
2171
- :creation_date_time)
2657
+ :creation_date_time,
2658
+ :multiple_values_setting)
2172
2659
  SENSITIVE = []
2173
2660
  include Aws::Structure
2174
2661
  end
@@ -2256,12 +2743,11 @@ module Aws::LexModelsV2
2256
2743
  # The identifier of the language and locale that the slot type will be
2257
2744
  # used in. The string must match one of the supported locales. All of
2258
2745
  # 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].
2746
+ # same locale. For more information, see [Supported languages][1].
2261
2747
  #
2262
2748
  #
2263
2749
  #
2264
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
2750
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2265
2751
  # @return [String]
2266
2752
  #
2267
2753
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateSlotTypeRequest AWS API Documentation
@@ -2339,6 +2825,31 @@ module Aws::LexModelsV2
2339
2825
  include Aws::Structure
2340
2826
  end
2341
2827
 
2828
+ # @api private
2829
+ #
2830
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateUploadUrlRequest AWS API Documentation
2831
+ #
2832
+ class CreateUploadUrlRequest < Aws::EmptyStructure; end
2833
+
2834
+ # @!attribute [rw] import_id
2835
+ # An identifier for a unique import job. Use it when you call the
2836
+ # operation.
2837
+ # @return [String]
2838
+ #
2839
+ # @!attribute [rw] upload_url
2840
+ # A pre-signed S3 write URL. Upload the zip archive file that contains
2841
+ # the definition of your bot or bot locale.
2842
+ # @return [String]
2843
+ #
2844
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateUploadUrlResponse AWS API Documentation
2845
+ #
2846
+ class CreateUploadUrlResponse < Struct.new(
2847
+ :import_id,
2848
+ :upload_url)
2849
+ SENSITIVE = []
2850
+ include Aws::Structure
2851
+ end
2852
+
2342
2853
  # A custom response string that Amazon Lex sends to your application.
2343
2854
  # You define the content and structure the string.
2344
2855
  #
@@ -2490,12 +3001,11 @@ module Aws::LexModelsV2
2490
3001
  # @!attribute [rw] locale_id
2491
3002
  # The identifier of the language and locale that will be deleted. The
2492
3003
  # 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].
3004
+ # information, see [Supported languages][1].
2495
3005
  #
2496
3006
  #
2497
3007
  #
2498
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3008
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2499
3009
  # @return [String]
2500
3010
  #
2501
3011
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteBotLocaleRequest AWS API Documentation
@@ -2638,6 +3148,82 @@ module Aws::LexModelsV2
2638
3148
  include Aws::Structure
2639
3149
  end
2640
3150
 
3151
+ # @note When making an API call, you may pass DeleteExportRequest
3152
+ # data as a hash:
3153
+ #
3154
+ # {
3155
+ # export_id: "Id", # required
3156
+ # }
3157
+ #
3158
+ # @!attribute [rw] export_id
3159
+ # The unique identifier of the export to delete.
3160
+ # @return [String]
3161
+ #
3162
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteExportRequest AWS API Documentation
3163
+ #
3164
+ class DeleteExportRequest < Struct.new(
3165
+ :export_id)
3166
+ SENSITIVE = []
3167
+ include Aws::Structure
3168
+ end
3169
+
3170
+ # @!attribute [rw] export_id
3171
+ # The unique identifier of the deleted export.
3172
+ # @return [String]
3173
+ #
3174
+ # @!attribute [rw] export_status
3175
+ # The current status of the deletion. When the deletion is complete,
3176
+ # the export will no longer be returned by the operation and calls to
3177
+ # the with the export identifier will fail.
3178
+ # @return [String]
3179
+ #
3180
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteExportResponse AWS API Documentation
3181
+ #
3182
+ class DeleteExportResponse < Struct.new(
3183
+ :export_id,
3184
+ :export_status)
3185
+ SENSITIVE = []
3186
+ include Aws::Structure
3187
+ end
3188
+
3189
+ # @note When making an API call, you may pass DeleteImportRequest
3190
+ # data as a hash:
3191
+ #
3192
+ # {
3193
+ # import_id: "Id", # required
3194
+ # }
3195
+ #
3196
+ # @!attribute [rw] import_id
3197
+ # The unique identifier of the import to delete.
3198
+ # @return [String]
3199
+ #
3200
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteImportRequest AWS API Documentation
3201
+ #
3202
+ class DeleteImportRequest < Struct.new(
3203
+ :import_id)
3204
+ SENSITIVE = []
3205
+ include Aws::Structure
3206
+ end
3207
+
3208
+ # @!attribute [rw] import_id
3209
+ # The unique identifier of the deleted import.
3210
+ # @return [String]
3211
+ #
3212
+ # @!attribute [rw] import_status
3213
+ # The current status of the deletion. When the deletion is complete,
3214
+ # the import will no longer be returned by the operation and calls to
3215
+ # the with the import identifier will fail.
3216
+ # @return [String]
3217
+ #
3218
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteImportResponse AWS API Documentation
3219
+ #
3220
+ class DeleteImportResponse < Struct.new(
3221
+ :import_id,
3222
+ :import_status)
3223
+ SENSITIVE = []
3224
+ include Aws::Structure
3225
+ end
3226
+
2641
3227
  # @note When making an API call, you may pass DeleteIntentRequest
2642
3228
  # data as a hash:
2643
3229
  #
@@ -2663,12 +3249,11 @@ module Aws::LexModelsV2
2663
3249
  # @!attribute [rw] locale_id
2664
3250
  # The identifier of the language and locale where the bot will be
2665
3251
  # 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].
3252
+ # more information, see [Supported languages][1].
2668
3253
  #
2669
3254
  #
2670
3255
  #
2671
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3256
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2672
3257
  # @return [String]
2673
3258
  #
2674
3259
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteIntentRequest AWS API Documentation
@@ -2682,6 +3267,115 @@ module Aws::LexModelsV2
2682
3267
  include Aws::Structure
2683
3268
  end
2684
3269
 
3270
+ # @note When making an API call, you may pass DeleteResourcePolicyRequest
3271
+ # data as a hash:
3272
+ #
3273
+ # {
3274
+ # resource_arn: "AmazonResourceName", # required
3275
+ # expected_revision_id: "RevisionId",
3276
+ # }
3277
+ #
3278
+ # @!attribute [rw] resource_arn
3279
+ # The Amazon Resource Name (ARN) of the bot or bot alias that has the
3280
+ # resource policy attached.
3281
+ # @return [String]
3282
+ #
3283
+ # @!attribute [rw] expected_revision_id
3284
+ # The identifier of the revision to edit. If this ID doesn't match
3285
+ # the current revision number, Amazon Lex returns an exception
3286
+ #
3287
+ # If you don't specify a revision ID, Amazon Lex will delete the
3288
+ # current policy.
3289
+ # @return [String]
3290
+ #
3291
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteResourcePolicyRequest AWS API Documentation
3292
+ #
3293
+ class DeleteResourcePolicyRequest < Struct.new(
3294
+ :resource_arn,
3295
+ :expected_revision_id)
3296
+ SENSITIVE = []
3297
+ include Aws::Structure
3298
+ end
3299
+
3300
+ # @!attribute [rw] resource_arn
3301
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
3302
+ # resource policy was deleted from.
3303
+ # @return [String]
3304
+ #
3305
+ # @!attribute [rw] revision_id
3306
+ # The current revision of the resource policy. Use the revision ID to
3307
+ # make sure that you are updating the most current version of a
3308
+ # resource policy when you add a policy statement to a resource,
3309
+ # delete a resource, or update a resource.
3310
+ # @return [String]
3311
+ #
3312
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteResourcePolicyResponse AWS API Documentation
3313
+ #
3314
+ class DeleteResourcePolicyResponse < Struct.new(
3315
+ :resource_arn,
3316
+ :revision_id)
3317
+ SENSITIVE = []
3318
+ include Aws::Structure
3319
+ end
3320
+
3321
+ # @note When making an API call, you may pass DeleteResourcePolicyStatementRequest
3322
+ # data as a hash:
3323
+ #
3324
+ # {
3325
+ # resource_arn: "AmazonResourceName", # required
3326
+ # statement_id: "Name", # required
3327
+ # expected_revision_id: "RevisionId",
3328
+ # }
3329
+ #
3330
+ # @!attribute [rw] resource_arn
3331
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
3332
+ # resource policy is attached to.
3333
+ # @return [String]
3334
+ #
3335
+ # @!attribute [rw] statement_id
3336
+ # The name of the statement (SID) to delete from the policy.
3337
+ # @return [String]
3338
+ #
3339
+ # @!attribute [rw] expected_revision_id
3340
+ # The identifier of the revision of the policy to delete the statement
3341
+ # from. If this revision ID doesn't match the current revision ID,
3342
+ # Amazon Lex throws an exception.
3343
+ #
3344
+ # If you don't specify a revision, Amazon Lex removes the current
3345
+ # contents of the statement.
3346
+ # @return [String]
3347
+ #
3348
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteResourcePolicyStatementRequest AWS API Documentation
3349
+ #
3350
+ class DeleteResourcePolicyStatementRequest < Struct.new(
3351
+ :resource_arn,
3352
+ :statement_id,
3353
+ :expected_revision_id)
3354
+ SENSITIVE = []
3355
+ include Aws::Structure
3356
+ end
3357
+
3358
+ # @!attribute [rw] resource_arn
3359
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
3360
+ # resource policy statement was removed from.
3361
+ # @return [String]
3362
+ #
3363
+ # @!attribute [rw] revision_id
3364
+ # The current revision of the resource policy. Use the revision ID to
3365
+ # make sure that you are updating the most current version of a
3366
+ # resource policy when you add a policy statement to a resource,
3367
+ # delete a resource, or update a resource.
3368
+ # @return [String]
3369
+ #
3370
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteResourcePolicyStatementResponse AWS API Documentation
3371
+ #
3372
+ class DeleteResourcePolicyStatementResponse < Struct.new(
3373
+ :resource_arn,
3374
+ :revision_id)
3375
+ SENSITIVE = []
3376
+ include Aws::Structure
3377
+ end
3378
+
2685
3379
  # @note When making an API call, you may pass DeleteSlotRequest
2686
3380
  # data as a hash:
2687
3381
  #
@@ -2708,12 +3402,11 @@ module Aws::LexModelsV2
2708
3402
  # @!attribute [rw] locale_id
2709
3403
  # The identifier of the language and locale that the slot will be
2710
3404
  # 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].
3405
+ # For more information, see [Supported languages][1].
2713
3406
  #
2714
3407
  #
2715
3408
  #
2716
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3409
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2717
3410
  # @return [String]
2718
3411
  #
2719
3412
  # @!attribute [rw] intent_id
@@ -2758,12 +3451,11 @@ module Aws::LexModelsV2
2758
3451
  # @!attribute [rw] locale_id
2759
3452
  # The identifier of the language and locale that the slot type will be
2760
3453
  # 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].
3454
+ # For more information, see [Supported languages][1].
2763
3455
  #
2764
3456
  #
2765
3457
  #
2766
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3458
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2767
3459
  # @return [String]
2768
3460
  #
2769
3461
  # @!attribute [rw] skip_resource_in_use_check
@@ -2901,11 +3593,11 @@ module Aws::LexModelsV2
2901
3593
  # @!attribute [rw] locale_id
2902
3594
  # The unique identifier of the locale to describe. The string must
2903
3595
  # match one of the supported locales. For more information, see
2904
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
3596
+ # [Supported languages][1].
2905
3597
  #
2906
3598
  #
2907
3599
  #
2908
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3600
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2909
3601
  # @return [String]
2910
3602
  #
2911
3603
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeBotLocaleRequest AWS API Documentation
@@ -3168,69 +3860,217 @@ module Aws::LexModelsV2
3168
3860
  include Aws::Structure
3169
3861
  end
3170
3862
 
3171
- # @note When making an API call, you may pass DescribeIntentRequest
3863
+ # @note When making an API call, you may pass DescribeExportRequest
3172
3864
  # data as a hash:
3173
3865
  #
3174
3866
  # {
3175
- # intent_id: "Id", # required
3176
- # bot_id: "Id", # required
3177
- # bot_version: "BotVersion", # required
3178
- # locale_id: "LocaleId", # required
3867
+ # export_id: "Id", # required
3179
3868
  # }
3180
3869
  #
3181
- # @!attribute [rw] intent_id
3182
- # The identifier of the intent to describe.
3870
+ # @!attribute [rw] export_id
3871
+ # The unique identifier of the export to describe.
3183
3872
  # @return [String]
3184
3873
  #
3185
- # @!attribute [rw] bot_id
3186
- # The identifier of the bot associated with the intent.
3874
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeExportRequest AWS API Documentation
3875
+ #
3876
+ class DescribeExportRequest < Struct.new(
3877
+ :export_id)
3878
+ SENSITIVE = []
3879
+ include Aws::Structure
3880
+ end
3881
+
3882
+ # @!attribute [rw] export_id
3883
+ # The unique identifier of the described export.
3187
3884
  # @return [String]
3188
3885
  #
3189
- # @!attribute [rw] bot_version
3190
- # The version of the bot associated with the intent.
3886
+ # @!attribute [rw] resource_specification
3887
+ # The bot, bot ID, and optional locale ID of the exported bot or bot
3888
+ # locale.
3889
+ # @return [Types::ExportResourceSpecification]
3890
+ #
3891
+ # @!attribute [rw] file_format
3892
+ # The file format used in the files that describe the bot or bot
3893
+ # locale.
3191
3894
  # @return [String]
3192
3895
  #
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].
3896
+ # @!attribute [rw] export_status
3897
+ # The status of the export. When the status is `Complete` the export
3898
+ # archive file is available for download.
3899
+ # @return [String]
3900
+ #
3901
+ # @!attribute [rw] failure_reasons
3902
+ # If the `exportStatus` is failed, contains one or more reasons why
3903
+ # the export could not be completed.
3904
+ # @return [Array<String>]
3905
+ #
3906
+ # @!attribute [rw] download_url
3907
+ # A pre-signed S3 URL that points to the bot or bot locale archive.
3908
+ # The URL is only available for 5 minutes after calling the
3909
+ # `DescribeExport` operation.
3910
+ # @return [String]
3911
+ #
3912
+ # @!attribute [rw] creation_date_time
3913
+ # The date and time that the export was created.
3914
+ # @return [Time]
3198
3915
  #
3916
+ # @!attribute [rw] last_updated_date_time
3917
+ # The last date and time that the export was updated.
3918
+ # @return [Time]
3919
+ #
3920
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeExportResponse AWS API Documentation
3921
+ #
3922
+ class DescribeExportResponse < Struct.new(
3923
+ :export_id,
3924
+ :resource_specification,
3925
+ :file_format,
3926
+ :export_status,
3927
+ :failure_reasons,
3928
+ :download_url,
3929
+ :creation_date_time,
3930
+ :last_updated_date_time)
3931
+ SENSITIVE = []
3932
+ include Aws::Structure
3933
+ end
3934
+
3935
+ # @note When making an API call, you may pass DescribeImportRequest
3936
+ # data as a hash:
3199
3937
  #
3938
+ # {
3939
+ # import_id: "Id", # required
3940
+ # }
3200
3941
  #
3201
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
3942
+ # @!attribute [rw] import_id
3943
+ # The unique identifier of the import to describe.
3202
3944
  # @return [String]
3203
3945
  #
3204
- # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeIntentRequest AWS API Documentation
3946
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeImportRequest AWS API Documentation
3205
3947
  #
3206
- class DescribeIntentRequest < Struct.new(
3207
- :intent_id,
3208
- :bot_id,
3209
- :bot_version,
3210
- :locale_id)
3948
+ class DescribeImportRequest < Struct.new(
3949
+ :import_id)
3211
3950
  SENSITIVE = []
3212
3951
  include Aws::Structure
3213
3952
  end
3214
3953
 
3215
- # @!attribute [rw] intent_id
3216
- # The unique identifier assigned to the intent when it was created.
3954
+ # @!attribute [rw] import_id
3955
+ # The unique identifier of the described import.
3217
3956
  # @return [String]
3218
3957
  #
3219
- # @!attribute [rw] intent_name
3220
- # The name specified for the intent.
3958
+ # @!attribute [rw] resource_specification
3959
+ # The specifications of the imported bot or bot locale.
3960
+ # @return [Types::ImportResourceSpecification]
3961
+ #
3962
+ # @!attribute [rw] imported_resource_id
3963
+ # The unique identifier that Amazon Lex assigned to the resource
3964
+ # created by the import.
3221
3965
  # @return [String]
3222
3966
  #
3223
- # @!attribute [rw] description
3224
- # The description of the intent.
3967
+ # @!attribute [rw] imported_resource_name
3968
+ # The name of the imported resource.
3225
3969
  # @return [String]
3226
3970
  #
3227
- # @!attribute [rw] parent_intent_signature
3228
- # The identifier of the built-in intent that this intent is derived
3229
- # from, if any.
3971
+ # @!attribute [rw] merge_strategy
3972
+ # The strategy used when there was a name conflict between the
3973
+ # imported resource and an existing resource. When the merge strategy
3974
+ # is `FailOnConflict` existing resources are not overwritten and the
3975
+ # import fails.
3230
3976
  # @return [String]
3231
3977
  #
3232
- # @!attribute [rw] sample_utterances
3233
- # User utterances that trigger this intent.
3978
+ # @!attribute [rw] import_status
3979
+ # The status of the import process. When the status is `Completed` the
3980
+ # resource is imported and ready for use.
3981
+ # @return [String]
3982
+ #
3983
+ # @!attribute [rw] failure_reasons
3984
+ # If the `importStatus` field is `Failed`, this provides one or more
3985
+ # reasons for the failture.
3986
+ # @return [Array<String>]
3987
+ #
3988
+ # @!attribute [rw] creation_date_time
3989
+ # The date and time that the import was created.
3990
+ # @return [Time]
3991
+ #
3992
+ # @!attribute [rw] last_updated_date_time
3993
+ # The date and time that the import was last updated.
3994
+ # @return [Time]
3995
+ #
3996
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeImportResponse AWS API Documentation
3997
+ #
3998
+ class DescribeImportResponse < Struct.new(
3999
+ :import_id,
4000
+ :resource_specification,
4001
+ :imported_resource_id,
4002
+ :imported_resource_name,
4003
+ :merge_strategy,
4004
+ :import_status,
4005
+ :failure_reasons,
4006
+ :creation_date_time,
4007
+ :last_updated_date_time)
4008
+ SENSITIVE = []
4009
+ include Aws::Structure
4010
+ end
4011
+
4012
+ # @note When making an API call, you may pass DescribeIntentRequest
4013
+ # data as a hash:
4014
+ #
4015
+ # {
4016
+ # intent_id: "Id", # required
4017
+ # bot_id: "Id", # required
4018
+ # bot_version: "BotVersion", # required
4019
+ # locale_id: "LocaleId", # required
4020
+ # }
4021
+ #
4022
+ # @!attribute [rw] intent_id
4023
+ # The identifier of the intent to describe.
4024
+ # @return [String]
4025
+ #
4026
+ # @!attribute [rw] bot_id
4027
+ # The identifier of the bot associated with the intent.
4028
+ # @return [String]
4029
+ #
4030
+ # @!attribute [rw] bot_version
4031
+ # The version of the bot associated with the intent.
4032
+ # @return [String]
4033
+ #
4034
+ # @!attribute [rw] locale_id
4035
+ # The identifier of the language and locale of the intent to describe.
4036
+ # The string must match one of the supported locales. For more
4037
+ # information, see [Supported languages][1].
4038
+ #
4039
+ #
4040
+ #
4041
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
4042
+ # @return [String]
4043
+ #
4044
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeIntentRequest AWS API Documentation
4045
+ #
4046
+ class DescribeIntentRequest < Struct.new(
4047
+ :intent_id,
4048
+ :bot_id,
4049
+ :bot_version,
4050
+ :locale_id)
4051
+ SENSITIVE = []
4052
+ include Aws::Structure
4053
+ end
4054
+
4055
+ # @!attribute [rw] intent_id
4056
+ # The unique identifier assigned to the intent when it was created.
4057
+ # @return [String]
4058
+ #
4059
+ # @!attribute [rw] intent_name
4060
+ # The name specified for the intent.
4061
+ # @return [String]
4062
+ #
4063
+ # @!attribute [rw] description
4064
+ # The description of the intent.
4065
+ # @return [String]
4066
+ #
4067
+ # @!attribute [rw] parent_intent_signature
4068
+ # The identifier of the built-in intent that this intent is derived
4069
+ # from, if any.
4070
+ # @return [String]
4071
+ #
4072
+ # @!attribute [rw] sample_utterances
4073
+ # User utterances that trigger this intent.
3234
4074
  # @return [Array<Types::SampleUtterance>]
3235
4075
  #
3236
4076
  # @!attribute [rw] dialog_code_hook
@@ -3316,6 +4156,58 @@ module Aws::LexModelsV2
3316
4156
  include Aws::Structure
3317
4157
  end
3318
4158
 
4159
+ # @note When making an API call, you may pass DescribeResourcePolicyRequest
4160
+ # data as a hash:
4161
+ #
4162
+ # {
4163
+ # resource_arn: "AmazonResourceName", # required
4164
+ # }
4165
+ #
4166
+ # @!attribute [rw] resource_arn
4167
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
4168
+ # resource policy is attached to.
4169
+ # @return [String]
4170
+ #
4171
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeResourcePolicyRequest AWS API Documentation
4172
+ #
4173
+ class DescribeResourcePolicyRequest < Struct.new(
4174
+ :resource_arn)
4175
+ SENSITIVE = []
4176
+ include Aws::Structure
4177
+ end
4178
+
4179
+ # @!attribute [rw] resource_arn
4180
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
4181
+ # resource policy is attached to.
4182
+ # @return [String]
4183
+ #
4184
+ # @!attribute [rw] policy
4185
+ # The JSON structure that contains the resource policy. For more
4186
+ # information about the contents of a JSON policy document, see [ IAM
4187
+ # JSON policy reference ][1].
4188
+ #
4189
+ #
4190
+ #
4191
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html
4192
+ # @return [String]
4193
+ #
4194
+ # @!attribute [rw] revision_id
4195
+ # The current revision of the resource policy. Use the revision ID to
4196
+ # make sure that you are updating the most current version of a
4197
+ # resource policy when you add a policy statement to a resource,
4198
+ # delete a resource, or update a resource.
4199
+ # @return [String]
4200
+ #
4201
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeResourcePolicyResponse AWS API Documentation
4202
+ #
4203
+ class DescribeResourcePolicyResponse < Struct.new(
4204
+ :resource_arn,
4205
+ :policy,
4206
+ :revision_id)
4207
+ SENSITIVE = []
4208
+ include Aws::Structure
4209
+ end
4210
+
3319
4211
  # @note When making an API call, you may pass DescribeSlotRequest
3320
4212
  # data as a hash:
3321
4213
  #
@@ -3342,12 +4234,11 @@ module Aws::LexModelsV2
3342
4234
  # @!attribute [rw] locale_id
3343
4235
  # The identifier of the language and locale of the slot to describe.
3344
4236
  # 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].
4237
+ # information, see [Supported languages][1].
3347
4238
  #
3348
4239
  #
3349
4240
  #
3350
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
4241
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3351
4242
  # @return [String]
3352
4243
  #
3353
4244
  # @!attribute [rw] intent_id
@@ -3416,6 +4307,14 @@ module Aws::LexModelsV2
3416
4307
  # A timestamp of the date and time that the slot was last updated.
3417
4308
  # @return [Time]
3418
4309
  #
4310
+ # @!attribute [rw] multiple_values_setting
4311
+ # Indicates whether the slot accepts multiple values in a single
4312
+ # utterance.
4313
+ #
4314
+ # If the `multipleValuesSetting` is not set, the default value is
4315
+ # `false`.
4316
+ # @return [Types::MultipleValuesSetting]
4317
+ #
3419
4318
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeSlotResponse AWS API Documentation
3420
4319
  #
3421
4320
  class DescribeSlotResponse < Struct.new(
@@ -3430,7 +4329,8 @@ module Aws::LexModelsV2
3430
4329
  :locale_id,
3431
4330
  :intent_id,
3432
4331
  :creation_date_time,
3433
- :last_updated_date_time)
4332
+ :last_updated_date_time,
4333
+ :multiple_values_setting)
3434
4334
  SENSITIVE = []
3435
4335
  include Aws::Structure
3436
4336
  end
@@ -3460,12 +4360,11 @@ module Aws::LexModelsV2
3460
4360
  # @!attribute [rw] locale_id
3461
4361
  # The identifier of the language and locale of the slot type to
3462
4362
  # 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].
4363
+ # more information, see [Supported languages][1].
3465
4364
  #
3466
4365
  #
3467
4366
  #
3468
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
4367
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3469
4368
  # @return [String]
3470
4369
  #
3471
4370
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeSlotTypeRequest AWS API Documentation
@@ -3566,6 +4465,145 @@ module Aws::LexModelsV2
3566
4465
  include Aws::Structure
3567
4466
  end
3568
4467
 
4468
+ # Filtes the response form the operation
4469
+ #
4470
+ # @note When making an API call, you may pass ExportFilter
4471
+ # data as a hash:
4472
+ #
4473
+ # {
4474
+ # name: "ExportResourceType", # required, accepts ExportResourceType
4475
+ # values: ["FilterValue"], # required
4476
+ # operator: "CO", # required, accepts CO, EQ
4477
+ # }
4478
+ #
4479
+ # @!attribute [rw] name
4480
+ # The name of the field to use for filtering.
4481
+ # @return [String]
4482
+ #
4483
+ # @!attribute [rw] values
4484
+ # The values to use to fileter the response.
4485
+ # @return [Array<String>]
4486
+ #
4487
+ # @!attribute [rw] operator
4488
+ # The operator to use for the filter. Specify EQ when the
4489
+ # `ListExports` operation should return only resource types that equal
4490
+ # the specified value. Specify CO when the `ListExports` operation
4491
+ # should return resource types that contain the specified value.
4492
+ # @return [String]
4493
+ #
4494
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ExportFilter AWS API Documentation
4495
+ #
4496
+ class ExportFilter < Struct.new(
4497
+ :name,
4498
+ :values,
4499
+ :operator)
4500
+ SENSITIVE = []
4501
+ include Aws::Structure
4502
+ end
4503
+
4504
+ # Provides information about the bot or bot locale that you want to
4505
+ # export. You can specify the `botExportSpecification` or the
4506
+ # `botLocaleExportSpecification`, but not both.
4507
+ #
4508
+ # @note When making an API call, you may pass ExportResourceSpecification
4509
+ # data as a hash:
4510
+ #
4511
+ # {
4512
+ # bot_export_specification: {
4513
+ # bot_id: "Id", # required
4514
+ # bot_version: "BotVersion", # required
4515
+ # },
4516
+ # bot_locale_export_specification: {
4517
+ # bot_id: "Id", # required
4518
+ # bot_version: "BotVersion", # required
4519
+ # locale_id: "LocaleId", # required
4520
+ # },
4521
+ # }
4522
+ #
4523
+ # @!attribute [rw] bot_export_specification
4524
+ # Parameters for exporting a bot.
4525
+ # @return [Types::BotExportSpecification]
4526
+ #
4527
+ # @!attribute [rw] bot_locale_export_specification
4528
+ # Parameters for exporting a bot locale.
4529
+ # @return [Types::BotLocaleExportSpecification]
4530
+ #
4531
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ExportResourceSpecification AWS API Documentation
4532
+ #
4533
+ class ExportResourceSpecification < Struct.new(
4534
+ :bot_export_specification,
4535
+ :bot_locale_export_specification)
4536
+ SENSITIVE = []
4537
+ include Aws::Structure
4538
+ end
4539
+
4540
+ # Provides information about sorting a list of exports.
4541
+ #
4542
+ # @note When making an API call, you may pass ExportSortBy
4543
+ # data as a hash:
4544
+ #
4545
+ # {
4546
+ # attribute: "LastUpdatedDateTime", # required, accepts LastUpdatedDateTime
4547
+ # order: "Ascending", # required, accepts Ascending, Descending
4548
+ # }
4549
+ #
4550
+ # @!attribute [rw] attribute
4551
+ # The export field to use for sorting.
4552
+ # @return [String]
4553
+ #
4554
+ # @!attribute [rw] order
4555
+ # The order to sort the list.
4556
+ # @return [String]
4557
+ #
4558
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ExportSortBy AWS API Documentation
4559
+ #
4560
+ class ExportSortBy < Struct.new(
4561
+ :attribute,
4562
+ :order)
4563
+ SENSITIVE = []
4564
+ include Aws::Structure
4565
+ end
4566
+
4567
+ # Provides summary information about an export in an export list.
4568
+ #
4569
+ # @!attribute [rw] export_id
4570
+ # The unique identifier that Amazon Lex assigned to the export.
4571
+ # @return [String]
4572
+ #
4573
+ # @!attribute [rw] resource_specification
4574
+ # Information about the bot or bot locale that was exported.
4575
+ # @return [Types::ExportResourceSpecification]
4576
+ #
4577
+ # @!attribute [rw] file_format
4578
+ # The file format used in the export files.
4579
+ # @return [String]
4580
+ #
4581
+ # @!attribute [rw] export_status
4582
+ # The status of the export. When the status is `Completed` the export
4583
+ # is ready to download.
4584
+ # @return [String]
4585
+ #
4586
+ # @!attribute [rw] creation_date_time
4587
+ # The date and time that the export was created.
4588
+ # @return [Time]
4589
+ #
4590
+ # @!attribute [rw] last_updated_date_time
4591
+ # The date and time that the export was last updated.
4592
+ # @return [Time]
4593
+ #
4594
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ExportSummary AWS API Documentation
4595
+ #
4596
+ class ExportSummary < Struct.new(
4597
+ :export_id,
4598
+ :resource_specification,
4599
+ :file_format,
4600
+ :export_status,
4601
+ :creation_date_time,
4602
+ :last_updated_date_time)
4603
+ SENSITIVE = []
4604
+ include Aws::Structure
4605
+ end
4606
+
3569
4607
  # Determines if a Lambda function should be invoked for a specific
3570
4608
  # intent.
3571
4609
  #
@@ -3643,6 +4681,166 @@ module Aws::LexModelsV2
3643
4681
  include Aws::Structure
3644
4682
  end
3645
4683
 
4684
+ # Filters the response from the operation.
4685
+ #
4686
+ # @note When making an API call, you may pass ImportFilter
4687
+ # data as a hash:
4688
+ #
4689
+ # {
4690
+ # name: "ImportResourceType", # required, accepts ImportResourceType
4691
+ # values: ["FilterValue"], # required
4692
+ # operator: "CO", # required, accepts CO, EQ
4693
+ # }
4694
+ #
4695
+ # @!attribute [rw] name
4696
+ # The name of the field to use for filtering.
4697
+ # @return [String]
4698
+ #
4699
+ # @!attribute [rw] values
4700
+ # The values to use to filter the response.
4701
+ # @return [Array<String>]
4702
+ #
4703
+ # @!attribute [rw] operator
4704
+ # The operator to use for the filter. Specify EQ when the
4705
+ # `ListImports` operation should return only resource types that equal
4706
+ # the specified value. Specify CO when the `ListImports` operation
4707
+ # should return resource types that contain the specified value.
4708
+ # @return [String]
4709
+ #
4710
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ImportFilter AWS API Documentation
4711
+ #
4712
+ class ImportFilter < Struct.new(
4713
+ :name,
4714
+ :values,
4715
+ :operator)
4716
+ SENSITIVE = []
4717
+ include Aws::Structure
4718
+ end
4719
+
4720
+ # Provides information about the bot or bot locale that you want to
4721
+ # import. You can sepcifiy the `botImportSpecification` or the
4722
+ # `botLocaleImportSpecification`, but not both.
4723
+ #
4724
+ # @note When making an API call, you may pass ImportResourceSpecification
4725
+ # data as a hash:
4726
+ #
4727
+ # {
4728
+ # bot_import_specification: {
4729
+ # bot_name: "Name", # required
4730
+ # role_arn: "RoleArn", # required
4731
+ # data_privacy: { # required
4732
+ # child_directed: false, # required
4733
+ # },
4734
+ # idle_session_ttl_in_seconds: 1,
4735
+ # bot_tags: {
4736
+ # "TagKey" => "TagValue",
4737
+ # },
4738
+ # test_bot_alias_tags: {
4739
+ # "TagKey" => "TagValue",
4740
+ # },
4741
+ # },
4742
+ # bot_locale_import_specification: {
4743
+ # bot_id: "Id", # required
4744
+ # bot_version: "DraftBotVersion", # required
4745
+ # locale_id: "LocaleId", # required
4746
+ # nlu_intent_confidence_threshold: 1.0,
4747
+ # voice_settings: {
4748
+ # voice_id: "VoiceId", # required
4749
+ # },
4750
+ # },
4751
+ # }
4752
+ #
4753
+ # @!attribute [rw] bot_import_specification
4754
+ # Parameters for importing a bot.
4755
+ # @return [Types::BotImportSpecification]
4756
+ #
4757
+ # @!attribute [rw] bot_locale_import_specification
4758
+ # Parameters for importing a bot locale.
4759
+ # @return [Types::BotLocaleImportSpecification]
4760
+ #
4761
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ImportResourceSpecification AWS API Documentation
4762
+ #
4763
+ class ImportResourceSpecification < Struct.new(
4764
+ :bot_import_specification,
4765
+ :bot_locale_import_specification)
4766
+ SENSITIVE = []
4767
+ include Aws::Structure
4768
+ end
4769
+
4770
+ # Provides information for sorting a list of imports.
4771
+ #
4772
+ # @note When making an API call, you may pass ImportSortBy
4773
+ # data as a hash:
4774
+ #
4775
+ # {
4776
+ # attribute: "LastUpdatedDateTime", # required, accepts LastUpdatedDateTime
4777
+ # order: "Ascending", # required, accepts Ascending, Descending
4778
+ # }
4779
+ #
4780
+ # @!attribute [rw] attribute
4781
+ # The export field to use for sorting.
4782
+ # @return [String]
4783
+ #
4784
+ # @!attribute [rw] order
4785
+ # The order to sort the list.
4786
+ # @return [String]
4787
+ #
4788
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ImportSortBy AWS API Documentation
4789
+ #
4790
+ class ImportSortBy < Struct.new(
4791
+ :attribute,
4792
+ :order)
4793
+ SENSITIVE = []
4794
+ include Aws::Structure
4795
+ end
4796
+
4797
+ # Provides summary information about an import in an import list.
4798
+ #
4799
+ # @!attribute [rw] import_id
4800
+ # The unique identifier that Amazon Lex assigned to the import.
4801
+ # @return [String]
4802
+ #
4803
+ # @!attribute [rw] imported_resource_id
4804
+ # The unique identifier that Amazon Lex assigned to the imported
4805
+ # resource.
4806
+ # @return [String]
4807
+ #
4808
+ # @!attribute [rw] imported_resource_name
4809
+ # The name that you gave the imported resource.
4810
+ # @return [String]
4811
+ #
4812
+ # @!attribute [rw] import_status
4813
+ # The status of the resource. When the status is `Completed` the
4814
+ # resource is ready to build.
4815
+ # @return [String]
4816
+ #
4817
+ # @!attribute [rw] merge_strategy
4818
+ # The strategy used to merge existing bot or bot locale definitions
4819
+ # with the imported definition.
4820
+ # @return [String]
4821
+ #
4822
+ # @!attribute [rw] creation_date_time
4823
+ # The date and time that the import was created.
4824
+ # @return [Time]
4825
+ #
4826
+ # @!attribute [rw] last_updated_date_time
4827
+ # The date and time that the import was last updated.
4828
+ # @return [Time]
4829
+ #
4830
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ImportSummary AWS API Documentation
4831
+ #
4832
+ class ImportSummary < Struct.new(
4833
+ :import_id,
4834
+ :imported_resource_id,
4835
+ :imported_resource_name,
4836
+ :import_status,
4837
+ :merge_strategy,
4838
+ :creation_date_time,
4839
+ :last_updated_date_time)
4840
+ SENSITIVE = []
4841
+ include Aws::Structure
4842
+ end
4843
+
3646
4844
  # The name of a context that must be active for an intent to be selected
3647
4845
  # by Amazon Lex.
3648
4846
  #
@@ -4418,12 +5616,11 @@ module Aws::LexModelsV2
4418
5616
  # @!attribute [rw] locale_id
4419
5617
  # The identifier of the language and locale of the intents to list.
4420
5618
  # 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].
5619
+ # information, see [Supported languages][1].
4423
5620
  #
4424
5621
  #
4425
5622
  #
4426
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
5623
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
4427
5624
  # @return [String]
4428
5625
  #
4429
5626
  # @!attribute [rw] sort_by
@@ -4456,116 +5653,315 @@ module Aws::LexModelsV2
4456
5653
  include Aws::Structure
4457
5654
  end
4458
5655
 
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>]
5656
+ # @!attribute [rw] built_in_intent_summaries
5657
+ # Summary information for the built-in intents that meet the filter
5658
+ # criteria specified in the request. The length of the list is
5659
+ # specified in the `maxResults` parameter of the request. If there are
5660
+ # more intents available, the `nextToken` field contains a token to
5661
+ # get the next page of results.
5662
+ # @return [Array<Types::BuiltInIntentSummary>]
5663
+ #
5664
+ # @!attribute [rw] next_token
5665
+ # A token that indicates whether there are more results to return in a
5666
+ # response to the `ListBuiltInIntents` operation. If the `nextToken`
5667
+ # field is present, you send the contents as the `nextToken` parameter
5668
+ # of a `ListBotAliases` operation request to get the next page of
5669
+ # results.
5670
+ # @return [String]
5671
+ #
5672
+ # @!attribute [rw] locale_id
5673
+ # The language and locale of the intents in the list.
5674
+ # @return [String]
5675
+ #
5676
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBuiltInIntentsResponse AWS API Documentation
5677
+ #
5678
+ class ListBuiltInIntentsResponse < Struct.new(
5679
+ :built_in_intent_summaries,
5680
+ :next_token,
5681
+ :locale_id)
5682
+ SENSITIVE = []
5683
+ include Aws::Structure
5684
+ end
5685
+
5686
+ # @note When making an API call, you may pass ListBuiltInSlotTypesRequest
5687
+ # data as a hash:
5688
+ #
5689
+ # {
5690
+ # locale_id: "LocaleId", # required
5691
+ # sort_by: {
5692
+ # attribute: "SlotTypeSignature", # required, accepts SlotTypeSignature
5693
+ # order: "Ascending", # required, accepts Ascending, Descending
5694
+ # },
5695
+ # max_results: 1,
5696
+ # next_token: "NextToken",
5697
+ # }
5698
+ #
5699
+ # @!attribute [rw] locale_id
5700
+ # The identifier of the language and locale of the slot types to list.
5701
+ # The string must match one of the supported locales. For more
5702
+ # information, see [Supported languages][1].
5703
+ #
5704
+ #
5705
+ #
5706
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
5707
+ # @return [String]
5708
+ #
5709
+ # @!attribute [rw] sort_by
5710
+ # Determines the sort order for the response from the
5711
+ # `ListBuiltInSlotTypes` operation. You can choose to sort by the slot
5712
+ # type signature in either ascending or descending order.
5713
+ # @return [Types::BuiltInSlotTypeSortBy]
5714
+ #
5715
+ # @!attribute [rw] max_results
5716
+ # The maximum number of built-in slot types to return in each page of
5717
+ # results. If there are fewer results than the max page size, only the
5718
+ # actual number of results are returned.
5719
+ # @return [Integer]
5720
+ #
5721
+ # @!attribute [rw] next_token
5722
+ # If the response from the `ListBuiltInSlotTypes` operation contains
5723
+ # more results than specified in the `maxResults` parameter, a token
5724
+ # is returned in the response. Use that token in the `nextToken`
5725
+ # parameter to return the next page of results.
5726
+ # @return [String]
5727
+ #
5728
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBuiltInSlotTypesRequest AWS API Documentation
5729
+ #
5730
+ class ListBuiltInSlotTypesRequest < Struct.new(
5731
+ :locale_id,
5732
+ :sort_by,
5733
+ :max_results,
5734
+ :next_token)
5735
+ SENSITIVE = []
5736
+ include Aws::Structure
5737
+ end
5738
+
5739
+ # @!attribute [rw] built_in_slot_type_summaries
5740
+ # Summary information for the built-in slot types that meet the filter
5741
+ # criteria specified in the request. The length of the list is
5742
+ # specified in the `maxResults` parameter of the request. If there are
5743
+ # more slot types available, the `nextToken` field contains a token to
5744
+ # get the next page of results.
5745
+ # @return [Array<Types::BuiltInSlotTypeSummary>]
5746
+ #
5747
+ # @!attribute [rw] next_token
5748
+ # A token that indicates whether there are more results to return in a
5749
+ # response to the `ListBuiltInSlotTypes` operation. If the `nextToken`
5750
+ # field is present, you send the contents as the `nextToken` parameter
5751
+ # of a `LIstBuiltInSlotTypes` operation request to get the next page
5752
+ # of results.
5753
+ # @return [String]
5754
+ #
5755
+ # @!attribute [rw] locale_id
5756
+ # The language and locale of the slot types in the list.
5757
+ # @return [String]
5758
+ #
5759
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBuiltInSlotTypesResponse AWS API Documentation
5760
+ #
5761
+ class ListBuiltInSlotTypesResponse < Struct.new(
5762
+ :built_in_slot_type_summaries,
5763
+ :next_token,
5764
+ :locale_id)
5765
+ SENSITIVE = []
5766
+ include Aws::Structure
5767
+ end
5768
+
5769
+ # @note When making an API call, you may pass ListExportsRequest
5770
+ # data as a hash:
5771
+ #
5772
+ # {
5773
+ # bot_id: "Id",
5774
+ # bot_version: "BotVersion",
5775
+ # sort_by: {
5776
+ # attribute: "LastUpdatedDateTime", # required, accepts LastUpdatedDateTime
5777
+ # order: "Ascending", # required, accepts Ascending, Descending
5778
+ # },
5779
+ # filters: [
5780
+ # {
5781
+ # name: "ExportResourceType", # required, accepts ExportResourceType
5782
+ # values: ["FilterValue"], # required
5783
+ # operator: "CO", # required, accepts CO, EQ
5784
+ # },
5785
+ # ],
5786
+ # max_results: 1,
5787
+ # next_token: "NextToken",
5788
+ # }
5789
+ #
5790
+ # @!attribute [rw] bot_id
5791
+ # The unique identifier that Amazon Lex assigned to the bot.
5792
+ # @return [String]
5793
+ #
5794
+ # @!attribute [rw] bot_version
5795
+ # The version of the bot to list exports for.
5796
+ # @return [String]
5797
+ #
5798
+ # @!attribute [rw] sort_by
5799
+ # Determines the field that the list of exports is sorted by. You can
5800
+ # sort by the `LastUpdatedDateTime` field in ascending or descending
5801
+ # order.
5802
+ # @return [Types::ExportSortBy]
5803
+ #
5804
+ # @!attribute [rw] filters
5805
+ # Provides the specification of a filter used to limit the exports in
5806
+ # the response to only those that match the filter specification. You
5807
+ # can only specify one filter and one string to filter on.
5808
+ # @return [Array<Types::ExportFilter>]
5809
+ #
5810
+ # @!attribute [rw] max_results
5811
+ # The maximum number of exports to return in each page of results. If
5812
+ # there are fewer results than the max page size, only the actual
5813
+ # number of results are returned.
5814
+ # @return [Integer]
5815
+ #
5816
+ # @!attribute [rw] next_token
5817
+ # If the response from the `ListExports` operation contans more
5818
+ # results that specified in the `maxResults` parameter, a token is
5819
+ # returned in the response. Use that token in the `nextToken`
5820
+ # parameter to return the next page of results.
5821
+ # @return [String]
5822
+ #
5823
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListExportsRequest AWS API Documentation
5824
+ #
5825
+ class ListExportsRequest < Struct.new(
5826
+ :bot_id,
5827
+ :bot_version,
5828
+ :sort_by,
5829
+ :filters,
5830
+ :max_results,
5831
+ :next_token)
5832
+ SENSITIVE = []
5833
+ include Aws::Structure
5834
+ end
5835
+
5836
+ # @!attribute [rw] bot_id
5837
+ # The unique identifier assigned to the bot by Amazon Lex.
5838
+ # @return [String]
4466
5839
  #
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.
5840
+ # @!attribute [rw] bot_version
5841
+ # The version of the bot that was exported.
4473
5842
  # @return [String]
4474
5843
  #
4475
- # @!attribute [rw] locale_id
4476
- # The language and locale of the intents in the list.
5844
+ # @!attribute [rw] export_summaries
5845
+ # Summary information for the exports that meet the filter criteria
5846
+ # specified in the request. The length of the list is specified in the
5847
+ # `maxResults` parameter. If there are more exports available, the
5848
+ # `nextToken` field contains a token to get the next page of results.
5849
+ # @return [Array<Types::ExportSummary>]
5850
+ #
5851
+ # @!attribute [rw] next_token
5852
+ # A token that indicates whether there are more results to return in a
5853
+ # response to the `ListExports` operation. If the `nextToken` field is
5854
+ # present, you send the contents as the `nextToken` parameter of a
5855
+ # `ListExports` operation request to get the next page of results.
4477
5856
  # @return [String]
4478
5857
  #
4479
- # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBuiltInIntentsResponse AWS API Documentation
5858
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListExportsResponse AWS API Documentation
4480
5859
  #
4481
- class ListBuiltInIntentsResponse < Struct.new(
4482
- :built_in_intent_summaries,
4483
- :next_token,
4484
- :locale_id)
5860
+ class ListExportsResponse < Struct.new(
5861
+ :bot_id,
5862
+ :bot_version,
5863
+ :export_summaries,
5864
+ :next_token)
4485
5865
  SENSITIVE = []
4486
5866
  include Aws::Structure
4487
5867
  end
4488
5868
 
4489
- # @note When making an API call, you may pass ListBuiltInSlotTypesRequest
5869
+ # @note When making an API call, you may pass ListImportsRequest
4490
5870
  # data as a hash:
4491
5871
  #
4492
5872
  # {
4493
- # locale_id: "LocaleId", # required
5873
+ # bot_id: "Id",
5874
+ # bot_version: "DraftBotVersion",
4494
5875
  # sort_by: {
4495
- # attribute: "SlotTypeSignature", # required, accepts SlotTypeSignature
5876
+ # attribute: "LastUpdatedDateTime", # required, accepts LastUpdatedDateTime
4496
5877
  # order: "Ascending", # required, accepts Ascending, Descending
4497
5878
  # },
5879
+ # filters: [
5880
+ # {
5881
+ # name: "ImportResourceType", # required, accepts ImportResourceType
5882
+ # values: ["FilterValue"], # required
5883
+ # operator: "CO", # required, accepts CO, EQ
5884
+ # },
5885
+ # ],
4498
5886
  # max_results: 1,
4499
5887
  # next_token: "NextToken",
4500
5888
  # }
4501
5889
  #
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
- #
5890
+ # @!attribute [rw] bot_id
5891
+ # The unique identifier that Amazon Lex assigned to the bot.
5892
+ # @return [String]
4509
5893
  #
4510
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
5894
+ # @!attribute [rw] bot_version
5895
+ # The version of the bot to list imports for.
4511
5896
  # @return [String]
4512
5897
  #
4513
5898
  # @!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]
5899
+ # Determines the field that the list of imports is sorted by. You can
5900
+ # sort by the `LastUpdatedDateTime` field in ascending or descending
5901
+ # order.
5902
+ # @return [Types::ImportSortBy]
5903
+ #
5904
+ # @!attribute [rw] filters
5905
+ # Provides the specification of a filter used to limit the bots in the
5906
+ # response to only those that match the filter specification. You can
5907
+ # only specify one filter and one string to filter on.
5908
+ # @return [Array<Types::ImportFilter>]
4518
5909
  #
4519
5910
  # @!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.
5911
+ # The maximum number of imports to return in each page of results. If
5912
+ # there are fewer results than the max page size, only the actual
5913
+ # number of results are returned.
4523
5914
  # @return [Integer]
4524
5915
  #
4525
5916
  # @!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`
5917
+ # If the response from the `ListImports` operation contains more
5918
+ # results than specified in the `maxResults` parameter, a token is
5919
+ # returned in the response. Use that token in the `nextToken`
4529
5920
  # parameter to return the next page of results.
4530
5921
  # @return [String]
4531
5922
  #
4532
- # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBuiltInSlotTypesRequest AWS API Documentation
5923
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListImportsRequest AWS API Documentation
4533
5924
  #
4534
- class ListBuiltInSlotTypesRequest < Struct.new(
4535
- :locale_id,
5925
+ class ListImportsRequest < Struct.new(
5926
+ :bot_id,
5927
+ :bot_version,
4536
5928
  :sort_by,
5929
+ :filters,
4537
5930
  :max_results,
4538
5931
  :next_token)
4539
5932
  SENSITIVE = []
4540
5933
  include Aws::Structure
4541
5934
  end
4542
5935
 
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>]
5936
+ # @!attribute [rw] bot_id
5937
+ # The unique identifier assigned by Amazon Lex to the bot.
5938
+ # @return [String]
4550
5939
  #
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.
5940
+ # @!attribute [rw] bot_version
5941
+ # The version of the bot that was imported. It will always be `DRAFT`.
4557
5942
  # @return [String]
4558
5943
  #
4559
- # @!attribute [rw] locale_id
4560
- # The language and locale of the slot types in the list.
5944
+ # @!attribute [rw] import_summaries
5945
+ # Summary information for the imports that meet the filter criteria
5946
+ # specified in the request. The length of the list is specified in the
5947
+ # `maxResults` parameter. If there are more imports available, the
5948
+ # `nextToken` field contains a token to get the next page of results.
5949
+ # @return [Array<Types::ImportSummary>]
5950
+ #
5951
+ # @!attribute [rw] next_token
5952
+ # A token that indicates whether there are more results to return in a
5953
+ # response to the `ListImports` operation. If the `nextToken` field is
5954
+ # present, you send the contents as the `nextToken` parameter of a
5955
+ # `ListImports` operation request to get the next page of results.
4561
5956
  # @return [String]
4562
5957
  #
4563
- # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBuiltInSlotTypesResponse AWS API Documentation
5958
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListImportsResponse AWS API Documentation
4564
5959
  #
4565
- class ListBuiltInSlotTypesResponse < Struct.new(
4566
- :built_in_slot_type_summaries,
4567
- :next_token,
4568
- :locale_id)
5960
+ class ListImportsResponse < Struct.new(
5961
+ :bot_id,
5962
+ :bot_version,
5963
+ :import_summaries,
5964
+ :next_token)
4569
5965
  SENSITIVE = []
4570
5966
  include Aws::Structure
4571
5967
  end
@@ -4603,12 +5999,11 @@ module Aws::LexModelsV2
4603
5999
  # @!attribute [rw] locale_id
4604
6000
  # The identifier of the language and locale of the intents to list.
4605
6001
  # 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].
6002
+ # information, see [Supported languages][1].
4608
6003
  #
4609
6004
  #
4610
6005
  #
4611
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
6006
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
4612
6007
  # @return [String]
4613
6008
  #
4614
6009
  # @!attribute [rw] sort_by
@@ -4722,12 +6117,11 @@ module Aws::LexModelsV2
4722
6117
  # @!attribute [rw] locale_id
4723
6118
  # The identifier of the language and locale of the slot types to list.
4724
6119
  # 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].
6120
+ # information, see [Supported languages][1].
4727
6121
  #
4728
6122
  #
4729
6123
  #
4730
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
6124
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
4731
6125
  # @return [String]
4732
6126
  #
4733
6127
  # @!attribute [rw] sort_by
@@ -4842,12 +6236,11 @@ module Aws::LexModelsV2
4842
6236
  # @!attribute [rw] locale_id
4843
6237
  # The identifier of the language and locale of the slots to list. The
4844
6238
  # 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].
6239
+ # information, see [Supported languages][1].
4847
6240
  #
4848
6241
  #
4849
6242
  #
4850
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
6243
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
4851
6244
  # @return [String]
4852
6245
  #
4853
6246
  # @!attribute [rw] intent_id
@@ -5099,6 +6492,36 @@ module Aws::LexModelsV2
5099
6492
  include Aws::Structure
5100
6493
  end
5101
6494
 
6495
+ # Indicates whether a slot can return multiple values.
6496
+ #
6497
+ # @note When making an API call, you may pass MultipleValuesSetting
6498
+ # data as a hash:
6499
+ #
6500
+ # {
6501
+ # allow_multiple_values: false,
6502
+ # }
6503
+ #
6504
+ # @!attribute [rw] allow_multiple_values
6505
+ # Indicates whether a slot can return multiple values. When `true`,
6506
+ # the slot may return more than one value in a response. When `false`,
6507
+ # the slot returns only a single value.
6508
+ #
6509
+ # Multi-value slots are only available in the en-US locale. If you set
6510
+ # this value to `true` in any other locale, Amazon Lex throws a
6511
+ # `ValidationException`.
6512
+ #
6513
+ # If the `allowMutlipleValues` is not set, the default value is
6514
+ # `false`.
6515
+ # @return [Boolean]
6516
+ #
6517
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/MultipleValuesSetting AWS API Documentation
6518
+ #
6519
+ class MultipleValuesSetting < Struct.new(
6520
+ :allow_multiple_values)
6521
+ SENSITIVE = []
6522
+ include Aws::Structure
6523
+ end
6524
+
5102
6525
  # Determines whether Amazon Lex obscures slot values in conversation
5103
6526
  # logs.
5104
6527
  #
@@ -5192,6 +6615,41 @@ module Aws::LexModelsV2
5192
6615
  include Aws::Structure
5193
6616
  end
5194
6617
 
6618
+ # The IAM principal that you allowing or denying access to an Amazon Lex
6619
+ # action. You must provide a `service` or an `arn`, but not both in the
6620
+ # same statement. For more information, see [ AWS JSON policy elements:
6621
+ # Principal ][1].
6622
+ #
6623
+ #
6624
+ #
6625
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html
6626
+ #
6627
+ # @note When making an API call, you may pass Principal
6628
+ # data as a hash:
6629
+ #
6630
+ # {
6631
+ # service: "ServicePrincipal",
6632
+ # arn: "PrincipalArn",
6633
+ # }
6634
+ #
6635
+ # @!attribute [rw] service
6636
+ # The name of the AWS service that should allowed or denied access to
6637
+ # an Amazon Lex action.
6638
+ # @return [String]
6639
+ #
6640
+ # @!attribute [rw] arn
6641
+ # The Amazon Resource Name (ARN) of the principal.
6642
+ # @return [String]
6643
+ #
6644
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/Principal AWS API Documentation
6645
+ #
6646
+ class Principal < Struct.new(
6647
+ :service,
6648
+ :arn)
6649
+ SENSITIVE = []
6650
+ include Aws::Structure
6651
+ end
6652
+
5195
6653
  # Specifies a list of message groups that Amazon Lex sends to a user to
5196
6654
  # elicit a response.
5197
6655
  #
@@ -6181,6 +7639,109 @@ module Aws::LexModelsV2
6181
7639
  include Aws::Structure
6182
7640
  end
6183
7641
 
7642
+ # @note When making an API call, you may pass StartImportRequest
7643
+ # data as a hash:
7644
+ #
7645
+ # {
7646
+ # import_id: "Id", # required
7647
+ # resource_specification: { # required
7648
+ # bot_import_specification: {
7649
+ # bot_name: "Name", # required
7650
+ # role_arn: "RoleArn", # required
7651
+ # data_privacy: { # required
7652
+ # child_directed: false, # required
7653
+ # },
7654
+ # idle_session_ttl_in_seconds: 1,
7655
+ # bot_tags: {
7656
+ # "TagKey" => "TagValue",
7657
+ # },
7658
+ # test_bot_alias_tags: {
7659
+ # "TagKey" => "TagValue",
7660
+ # },
7661
+ # },
7662
+ # bot_locale_import_specification: {
7663
+ # bot_id: "Id", # required
7664
+ # bot_version: "DraftBotVersion", # required
7665
+ # locale_id: "LocaleId", # required
7666
+ # nlu_intent_confidence_threshold: 1.0,
7667
+ # voice_settings: {
7668
+ # voice_id: "VoiceId", # required
7669
+ # },
7670
+ # },
7671
+ # },
7672
+ # merge_strategy: "Overwrite", # required, accepts Overwrite, FailOnConflict
7673
+ # file_password: "ImportExportFilePassword",
7674
+ # }
7675
+ #
7676
+ # @!attribute [rw] import_id
7677
+ # The unique identifier for the import. It is included in the response
7678
+ # from the operation.
7679
+ # @return [String]
7680
+ #
7681
+ # @!attribute [rw] resource_specification
7682
+ # Parameters for creating the bot or bot locale.
7683
+ # @return [Types::ImportResourceSpecification]
7684
+ #
7685
+ # @!attribute [rw] merge_strategy
7686
+ # The strategy to use when there is a name conflict between the
7687
+ # imported resource and an existing resource. When the merge strategy
7688
+ # is `FailOnConflict` existing resources are not overwritten and the
7689
+ # import fails.
7690
+ # @return [String]
7691
+ #
7692
+ # @!attribute [rw] file_password
7693
+ # The password used to encrypt the zip archive that contains the bot
7694
+ # or bot locale definition. You should always encrypt the zip archive
7695
+ # to protect it during transit between your site and Amazon Lex.
7696
+ # @return [String]
7697
+ #
7698
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/StartImportRequest AWS API Documentation
7699
+ #
7700
+ class StartImportRequest < Struct.new(
7701
+ :import_id,
7702
+ :resource_specification,
7703
+ :merge_strategy,
7704
+ :file_password)
7705
+ SENSITIVE = [:file_password]
7706
+ include Aws::Structure
7707
+ end
7708
+
7709
+ # @!attribute [rw] import_id
7710
+ # A unique identifier for the import.
7711
+ # @return [String]
7712
+ #
7713
+ # @!attribute [rw] resource_specification
7714
+ # The parameters used when importing the bot or bot locale.
7715
+ # @return [Types::ImportResourceSpecification]
7716
+ #
7717
+ # @!attribute [rw] merge_strategy
7718
+ # The strategy used when there was a name conflict between the
7719
+ # imported resource and an existing resource. When the merge strategy
7720
+ # is `FailOnConflict` existing resources are not overwritten and the
7721
+ # import fails.
7722
+ # @return [String]
7723
+ #
7724
+ # @!attribute [rw] import_status
7725
+ # The current status of the import. When the status is `Complete` the
7726
+ # bot or bot alias is ready to use.
7727
+ # @return [String]
7728
+ #
7729
+ # @!attribute [rw] creation_date_time
7730
+ # The date and time that the import request was created.
7731
+ # @return [Time]
7732
+ #
7733
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/StartImportResponse AWS API Documentation
7734
+ #
7735
+ class StartImportResponse < Struct.new(
7736
+ :import_id,
7737
+ :resource_specification,
7738
+ :merge_strategy,
7739
+ :import_status,
7740
+ :creation_date_time)
7741
+ SENSITIVE = []
7742
+ include Aws::Structure
7743
+ end
7744
+
6184
7745
  # Defines the messages that Amazon Lex sends to a user to remind them
6185
7746
  # that the bot is waiting for a response.
6186
7747
  #
@@ -6603,11 +8164,11 @@ module Aws::LexModelsV2
6603
8164
  # @!attribute [rw] locale_id
6604
8165
  # The identifier of the language and locale to update. The string must
6605
8166
  # match one of the supported locales. For more information, see
6606
- # [https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html][1].
8167
+ # [Supported languages][1].
6607
8168
  #
6608
8169
  #
6609
8170
  #
6610
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
8171
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
6611
8172
  # @return [String]
6612
8173
  #
6613
8174
  # @!attribute [rw] description
@@ -6823,6 +8384,70 @@ module Aws::LexModelsV2
6823
8384
  include Aws::Structure
6824
8385
  end
6825
8386
 
8387
+ # @note When making an API call, you may pass UpdateExportRequest
8388
+ # data as a hash:
8389
+ #
8390
+ # {
8391
+ # export_id: "Id", # required
8392
+ # file_password: "ImportExportFilePassword",
8393
+ # }
8394
+ #
8395
+ # @!attribute [rw] export_id
8396
+ # The unique identifier Amazon Lex assigned to the export.
8397
+ # @return [String]
8398
+ #
8399
+ # @!attribute [rw] file_password
8400
+ # The new password to use to encrypt the export zip archive.
8401
+ # @return [String]
8402
+ #
8403
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateExportRequest AWS API Documentation
8404
+ #
8405
+ class UpdateExportRequest < Struct.new(
8406
+ :export_id,
8407
+ :file_password)
8408
+ SENSITIVE = [:file_password]
8409
+ include Aws::Structure
8410
+ end
8411
+
8412
+ # @!attribute [rw] export_id
8413
+ # The unique identifier Amazon Lex assigned to the export.
8414
+ # @return [String]
8415
+ #
8416
+ # @!attribute [rw] resource_specification
8417
+ # A description of the type of resource that was exported, either a
8418
+ # bot or a bot locale.
8419
+ # @return [Types::ExportResourceSpecification]
8420
+ #
8421
+ # @!attribute [rw] file_format
8422
+ # The file format used for the files that define the resource.
8423
+ # @return [String]
8424
+ #
8425
+ # @!attribute [rw] export_status
8426
+ # The status of the export. When the status is `Completed` the export
8427
+ # archive is available for download.
8428
+ # @return [String]
8429
+ #
8430
+ # @!attribute [rw] creation_date_time
8431
+ # The date and time that the export was created.
8432
+ # @return [Time]
8433
+ #
8434
+ # @!attribute [rw] last_updated_date_time
8435
+ # The date and time that the export was last updated.
8436
+ # @return [Time]
8437
+ #
8438
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateExportResponse AWS API Documentation
8439
+ #
8440
+ class UpdateExportResponse < Struct.new(
8441
+ :export_id,
8442
+ :resource_specification,
8443
+ :file_format,
8444
+ :export_status,
8445
+ :creation_date_time,
8446
+ :last_updated_date_time)
8447
+ SENSITIVE = []
8448
+ include Aws::Structure
8449
+ end
8450
+
6826
8451
  # @note When making an API call, you may pass UpdateIntentRequest
6827
8452
  # data as a hash:
6828
8453
  #
@@ -7105,12 +8730,11 @@ module Aws::LexModelsV2
7105
8730
  # @!attribute [rw] locale_id
7106
8731
  # The identifier of the language and locale where this intent is used.
7107
8732
  # 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].
8733
+ # information, see [Supported languages][1].
7110
8734
  #
7111
8735
  #
7112
8736
  #
7113
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
8737
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
7114
8738
  # @return [String]
7115
8739
  #
7116
8740
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateIntentRequest AWS API Documentation
@@ -7242,6 +8866,75 @@ module Aws::LexModelsV2
7242
8866
  include Aws::Structure
7243
8867
  end
7244
8868
 
8869
+ # @note When making an API call, you may pass UpdateResourcePolicyRequest
8870
+ # data as a hash:
8871
+ #
8872
+ # {
8873
+ # resource_arn: "AmazonResourceName", # required
8874
+ # policy: "Policy", # required
8875
+ # expected_revision_id: "RevisionId",
8876
+ # }
8877
+ #
8878
+ # @!attribute [rw] resource_arn
8879
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
8880
+ # resource policy is attached to.
8881
+ # @return [String]
8882
+ #
8883
+ # @!attribute [rw] policy
8884
+ # A resource policy to add to the resource. The policy is a JSON
8885
+ # structure that contains one or more statements that define the
8886
+ # policy. The policy must follow the IAM syntax. For more information
8887
+ # about the contents of a JSON policy document, see [ IAM JSON policy
8888
+ # reference ][1].
8889
+ #
8890
+ # If the policy isn't valid, Amazon Lex returns a validation
8891
+ # exception.
8892
+ #
8893
+ #
8894
+ #
8895
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html
8896
+ # @return [String]
8897
+ #
8898
+ # @!attribute [rw] expected_revision_id
8899
+ # The identifier of the revision of the policy to update. If this
8900
+ # revision ID doesn't match the current revision ID, Amazon Lex
8901
+ # throws an exception.
8902
+ #
8903
+ # If you don't specify a revision, Amazon Lex overwrites the contents
8904
+ # of the policy with the new values.
8905
+ # @return [String]
8906
+ #
8907
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateResourcePolicyRequest AWS API Documentation
8908
+ #
8909
+ class UpdateResourcePolicyRequest < Struct.new(
8910
+ :resource_arn,
8911
+ :policy,
8912
+ :expected_revision_id)
8913
+ SENSITIVE = []
8914
+ include Aws::Structure
8915
+ end
8916
+
8917
+ # @!attribute [rw] resource_arn
8918
+ # The Amazon Resource Name (ARN) of the bot or bot alias that the
8919
+ # resource policy is attached to.
8920
+ # @return [String]
8921
+ #
8922
+ # @!attribute [rw] revision_id
8923
+ # The current revision of the resource policy. Use the revision ID to
8924
+ # make sure that you are updating the most current version of a
8925
+ # resource policy when you add a policy statement to a resource,
8926
+ # delete a resource, or update a resource.
8927
+ # @return [String]
8928
+ #
8929
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateResourcePolicyResponse AWS API Documentation
8930
+ #
8931
+ class UpdateResourcePolicyResponse < Struct.new(
8932
+ :resource_arn,
8933
+ :revision_id)
8934
+ SENSITIVE = []
8935
+ include Aws::Structure
8936
+ end
8937
+
7245
8938
  # @note When making an API call, you may pass UpdateSlotRequest
7246
8939
  # data as a hash:
7247
8940
  #
@@ -7489,6 +9182,9 @@ module Aws::LexModelsV2
7489
9182
  # bot_version: "DraftBotVersion", # required
7490
9183
  # locale_id: "LocaleId", # required
7491
9184
  # intent_id: "Id", # required
9185
+ # multiple_values_setting: {
9186
+ # allow_multiple_values: false,
9187
+ # },
7492
9188
  # }
7493
9189
  #
7494
9190
  # @!attribute [rw] slot_id
@@ -7530,18 +9226,27 @@ module Aws::LexModelsV2
7530
9226
  # @!attribute [rw] locale_id
7531
9227
  # The identifier of the language and locale that contains the slot.
7532
9228
  # 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].
9229
+ # information, see [Supported languages][1].
7535
9230
  #
7536
9231
  #
7537
9232
  #
7538
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
9233
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
7539
9234
  # @return [String]
7540
9235
  #
7541
9236
  # @!attribute [rw] intent_id
7542
9237
  # The identifier of the intent that contains the slot.
7543
9238
  # @return [String]
7544
9239
  #
9240
+ # @!attribute [rw] multiple_values_setting
9241
+ # Determines whether the slot accepts multiple values in one response.
9242
+ # Multiple value slots are only available in the en-US locale. If you
9243
+ # set this value to `true` in any other locale, Amazon Lex throws a
9244
+ # `ValidationException`.
9245
+ #
9246
+ # If the `multipleValuesSetting` is not set, the default value is
9247
+ # `false`.
9248
+ # @return [Types::MultipleValuesSetting]
9249
+ #
7545
9250
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlotRequest AWS API Documentation
7546
9251
  #
7547
9252
  class UpdateSlotRequest < Struct.new(
@@ -7554,7 +9259,8 @@ module Aws::LexModelsV2
7554
9259
  :bot_id,
7555
9260
  :bot_version,
7556
9261
  :locale_id,
7557
- :intent_id)
9262
+ :intent_id,
9263
+ :multiple_values_setting)
7558
9264
  SENSITIVE = []
7559
9265
  include Aws::Structure
7560
9266
  end
@@ -7611,6 +9317,10 @@ module Aws::LexModelsV2
7611
9317
  # The timestamp of the date and time that the slot was last updated.
7612
9318
  # @return [Time]
7613
9319
  #
9320
+ # @!attribute [rw] multiple_values_setting
9321
+ # Indicates whether the slot accepts multiple values in one response.
9322
+ # @return [Types::MultipleValuesSetting]
9323
+ #
7614
9324
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlotResponse AWS API Documentation
7615
9325
  #
7616
9326
  class UpdateSlotResponse < Struct.new(
@@ -7625,7 +9335,8 @@ module Aws::LexModelsV2
7625
9335
  :locale_id,
7626
9336
  :intent_id,
7627
9337
  :creation_date_time,
7628
- :last_updated_date_time)
9338
+ :last_updated_date_time,
9339
+ :multiple_values_setting)
7629
9340
  SENSITIVE = []
7630
9341
  include Aws::Structure
7631
9342
  end
@@ -7699,12 +9410,11 @@ module Aws::LexModelsV2
7699
9410
  # @!attribute [rw] locale_id
7700
9411
  # The identifier of the language and locale that contains the slot
7701
9412
  # 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].
9413
+ # information, see [Supported languages][1].
7704
9414
  #
7705
9415
  #
7706
9416
  #
7707
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html
9417
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
7708
9418
  # @return [String]
7709
9419
  #
7710
9420
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlotTypeRequest AWS API Documentation