aws-sdk-lexmodelsv2 1.17.0 → 1.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,6 +10,29 @@
10
10
  module Aws::LexModelsV2
11
11
  module Types
12
12
 
13
+ # Provides settings that enable advanced recognition settings for slot
14
+ # values.
15
+ #
16
+ # @note When making an API call, you may pass AdvancedRecognitionSetting
17
+ # data as a hash:
18
+ #
19
+ # {
20
+ # audio_recognition_strategy: "UseSlotValuesAsCustomVocabulary", # accepts UseSlotValuesAsCustomVocabulary
21
+ # }
22
+ #
23
+ # @!attribute [rw] audio_recognition_strategy
24
+ # Enables using the slot values as a custom vocabulary for recognizing
25
+ # user utterances.
26
+ # @return [String]
27
+ #
28
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/AdvancedRecognitionSetting AWS API Documentation
29
+ #
30
+ class AdvancedRecognitionSetting < Struct.new(
31
+ :audio_recognition_strategy)
32
+ SENSITIVE = []
33
+ include Aws::Structure
34
+ end
35
+
13
36
  # Filters responses returned by the `ListAggregatedUtterances`
14
37
  # operation.
15
38
  #
@@ -1884,8 +1907,13 @@ module Aws::LexModelsV2
1884
1907
  # bot_version: "BotVersion", # required
1885
1908
  # locale_id: "LocaleId", # required
1886
1909
  # },
1910
+ # custom_vocabulary_export_specification: {
1911
+ # bot_id: "Id", # required
1912
+ # bot_version: "BotVersion", # required
1913
+ # locale_id: "LocaleId", # required
1914
+ # },
1887
1915
  # },
1888
- # file_format: "LexJson", # required, accepts LexJson
1916
+ # file_format: "LexJson", # required, accepts LexJson, TSV
1889
1917
  # file_password: "ImportExportFilePassword",
1890
1918
  # }
1891
1919
  #
@@ -3260,16 +3288,28 @@ module Aws::LexModelsV2
3260
3288
  # ],
3261
3289
  # },
3262
3290
  # ],
3263
- # value_selection_setting: { # required
3291
+ # value_selection_setting: {
3264
3292
  # resolution_strategy: "OriginalValue", # required, accepts OriginalValue, TopResolution
3265
3293
  # regex_filter: {
3266
3294
  # pattern: "RegexPattern", # required
3267
3295
  # },
3296
+ # advanced_recognition_setting: {
3297
+ # audio_recognition_strategy: "UseSlotValuesAsCustomVocabulary", # accepts UseSlotValuesAsCustomVocabulary
3298
+ # },
3268
3299
  # },
3269
3300
  # parent_slot_type_signature: "SlotTypeSignature",
3270
3301
  # bot_id: "Id", # required
3271
3302
  # bot_version: "DraftBotVersion", # required
3272
3303
  # locale_id: "LocaleId", # required
3304
+ # external_source_setting: {
3305
+ # grammar_slot_type_setting: {
3306
+ # source: {
3307
+ # s3_bucket_name: "S3BucketName", # required
3308
+ # s3_object_key: "S3ObjectPath", # required
3309
+ # kms_key_arn: "KmsKeyArn",
3310
+ # },
3311
+ # },
3312
+ # },
3273
3313
  # }
3274
3314
  #
3275
3315
  # @!attribute [rw] slot_type_name
@@ -3332,6 +3372,10 @@ module Aws::LexModelsV2
3332
3372
  # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3333
3373
  # @return [String]
3334
3374
  #
3375
+ # @!attribute [rw] external_source_setting
3376
+ # Sets the type of external information used to create the slot type.
3377
+ # @return [Types::ExternalSourceSetting]
3378
+ #
3335
3379
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateSlotTypeRequest AWS API Documentation
3336
3380
  #
3337
3381
  class CreateSlotTypeRequest < Struct.new(
@@ -3342,7 +3386,8 @@ module Aws::LexModelsV2
3342
3386
  :parent_slot_type_signature,
3343
3387
  :bot_id,
3344
3388
  :bot_version,
3345
- :locale_id)
3389
+ :locale_id,
3390
+ :external_source_setting)
3346
3391
  SENSITIVE = []
3347
3392
  include Aws::Structure
3348
3393
  end
@@ -3390,6 +3435,10 @@ module Aws::LexModelsV2
3390
3435
  # A timestamp of the date and time that the slot type was created.
3391
3436
  # @return [Time]
3392
3437
  #
3438
+ # @!attribute [rw] external_source_setting
3439
+ # The type of external information used to create the slot type.
3440
+ # @return [Types::ExternalSourceSetting]
3441
+ #
3393
3442
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateSlotTypeResponse AWS API Documentation
3394
3443
  #
3395
3444
  class CreateSlotTypeResponse < Struct.new(
@@ -3402,7 +3451,8 @@ module Aws::LexModelsV2
3402
3451
  :bot_id,
3403
3452
  :bot_version,
3404
3453
  :locale_id,
3405
- :creation_date_time)
3454
+ :creation_date_time,
3455
+ :external_source_setting)
3406
3456
  SENSITIVE = []
3407
3457
  include Aws::Structure
3408
3458
  end
@@ -3458,6 +3508,75 @@ module Aws::LexModelsV2
3458
3508
  include Aws::Structure
3459
3509
  end
3460
3510
 
3511
+ # Provides the parameters required for exporting a custom vocabulary.
3512
+ #
3513
+ # @note When making an API call, you may pass CustomVocabularyExportSpecification
3514
+ # data as a hash:
3515
+ #
3516
+ # {
3517
+ # bot_id: "Id", # required
3518
+ # bot_version: "BotVersion", # required
3519
+ # locale_id: "LocaleId", # required
3520
+ # }
3521
+ #
3522
+ # @!attribute [rw] bot_id
3523
+ # The identifier of the bot that contains the custom vocabulary to
3524
+ # export.
3525
+ # @return [String]
3526
+ #
3527
+ # @!attribute [rw] bot_version
3528
+ # The version of the bot that contains the custom vocabulary to
3529
+ # export.
3530
+ # @return [String]
3531
+ #
3532
+ # @!attribute [rw] locale_id
3533
+ # The locale of the bot that contains the custom vocabulary to export.
3534
+ # @return [String]
3535
+ #
3536
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CustomVocabularyExportSpecification AWS API Documentation
3537
+ #
3538
+ class CustomVocabularyExportSpecification < Struct.new(
3539
+ :bot_id,
3540
+ :bot_version,
3541
+ :locale_id)
3542
+ SENSITIVE = []
3543
+ include Aws::Structure
3544
+ end
3545
+
3546
+ # Provides the parameters required for importing a custom vocabulary.
3547
+ #
3548
+ # @note When making an API call, you may pass CustomVocabularyImportSpecification
3549
+ # data as a hash:
3550
+ #
3551
+ # {
3552
+ # bot_id: "Id", # required
3553
+ # bot_version: "DraftBotVersion", # required
3554
+ # locale_id: "LocaleId", # required
3555
+ # }
3556
+ #
3557
+ # @!attribute [rw] bot_id
3558
+ # The identifier of the bot to import the custom vocabulary to.
3559
+ # @return [String]
3560
+ #
3561
+ # @!attribute [rw] bot_version
3562
+ # The version of the bot to import the custom vocabulary to.
3563
+ # @return [String]
3564
+ #
3565
+ # @!attribute [rw] locale_id
3566
+ # The identifier of the local to import the custom vocabulary to. The
3567
+ # value must be `en_GB`.
3568
+ # @return [String]
3569
+ #
3570
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CustomVocabularyImportSpecification AWS API Documentation
3571
+ #
3572
+ class CustomVocabularyImportSpecification < Struct.new(
3573
+ :bot_id,
3574
+ :bot_version,
3575
+ :locale_id)
3576
+ SENSITIVE = []
3577
+ include Aws::Structure
3578
+ end
3579
+
3461
3580
  # By default, data stored by Amazon Lex is encrypted. The `DataPrivacy`
3462
3581
  # structure provides settings that determine how Amazon Lex handles
3463
3582
  # special cases of securing the data for your bot.
@@ -3762,6 +3881,68 @@ module Aws::LexModelsV2
3762
3881
  include Aws::Structure
3763
3882
  end
3764
3883
 
3884
+ # @note When making an API call, you may pass DeleteCustomVocabularyRequest
3885
+ # data as a hash:
3886
+ #
3887
+ # {
3888
+ # bot_id: "Id", # required
3889
+ # bot_version: "DraftBotVersion", # required
3890
+ # locale_id: "LocaleId", # required
3891
+ # }
3892
+ #
3893
+ # @!attribute [rw] bot_id
3894
+ # The unique identifier of the bot to remove the custom vocabulary
3895
+ # from.
3896
+ # @return [String]
3897
+ #
3898
+ # @!attribute [rw] bot_version
3899
+ # The version of the bot to remove the custom vocabulary from.
3900
+ # @return [String]
3901
+ #
3902
+ # @!attribute [rw] locale_id
3903
+ # The locale identifier for the locale that contains the custom
3904
+ # vocabulary to remove.
3905
+ # @return [String]
3906
+ #
3907
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteCustomVocabularyRequest AWS API Documentation
3908
+ #
3909
+ class DeleteCustomVocabularyRequest < Struct.new(
3910
+ :bot_id,
3911
+ :bot_version,
3912
+ :locale_id)
3913
+ SENSITIVE = []
3914
+ include Aws::Structure
3915
+ end
3916
+
3917
+ # @!attribute [rw] bot_id
3918
+ # The identifier of the bot that the custom vocabulary was removed
3919
+ # from.
3920
+ # @return [String]
3921
+ #
3922
+ # @!attribute [rw] bot_version
3923
+ # The version of the bot that the custom vocabulary was removed from.
3924
+ # @return [String]
3925
+ #
3926
+ # @!attribute [rw] locale_id
3927
+ # The locale identifier for the locale that the custom vocabulary was
3928
+ # removed from.
3929
+ # @return [String]
3930
+ #
3931
+ # @!attribute [rw] custom_vocabulary_status
3932
+ # The status of removing the custom vocabulary.
3933
+ # @return [String]
3934
+ #
3935
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteCustomVocabularyResponse AWS API Documentation
3936
+ #
3937
+ class DeleteCustomVocabularyResponse < Struct.new(
3938
+ :bot_id,
3939
+ :bot_version,
3940
+ :locale_id,
3941
+ :custom_vocabulary_status)
3942
+ SENSITIVE = []
3943
+ include Aws::Structure
3944
+ end
3945
+
3765
3946
  # @note When making an API call, you may pass DeleteExportRequest
3766
3947
  # data as a hash:
3767
3948
  #
@@ -4350,6 +4531,11 @@ module Aws::LexModelsV2
4350
4531
  # have taken place for the locale.
4351
4532
  # @return [Array<Types::BotLocaleHistoryEvent>]
4352
4533
  #
4534
+ # @!attribute [rw] recommended_actions
4535
+ # Recommended actions to take to resolve an error in the
4536
+ # `failureReasons` field.
4537
+ # @return [Array<String>]
4538
+ #
4353
4539
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeBotLocaleResponse AWS API Documentation
4354
4540
  #
4355
4541
  class DescribeBotLocaleResponse < Struct.new(
@@ -4367,7 +4553,8 @@ module Aws::LexModelsV2
4367
4553
  :creation_date_time,
4368
4554
  :last_updated_date_time,
4369
4555
  :last_build_submitted_date_time,
4370
- :bot_locale_history_events)
4556
+ :bot_locale_history_events,
4557
+ :recommended_actions)
4371
4558
  SENSITIVE = []
4372
4559
  include Aws::Structure
4373
4560
  end
@@ -4647,6 +4834,78 @@ module Aws::LexModelsV2
4647
4834
  include Aws::Structure
4648
4835
  end
4649
4836
 
4837
+ # @note When making an API call, you may pass DescribeCustomVocabularyMetadataRequest
4838
+ # data as a hash:
4839
+ #
4840
+ # {
4841
+ # bot_id: "Id", # required
4842
+ # bot_version: "BotVersion", # required
4843
+ # locale_id: "LocaleId", # required
4844
+ # }
4845
+ #
4846
+ # @!attribute [rw] bot_id
4847
+ # The unique identifier of the bot that contains the custom
4848
+ # vocabulary.
4849
+ # @return [String]
4850
+ #
4851
+ # @!attribute [rw] bot_version
4852
+ # The bot version of the bot to return metadata for.
4853
+ # @return [String]
4854
+ #
4855
+ # @!attribute [rw] locale_id
4856
+ # The locale to return the custom vocabulary information for. The
4857
+ # locale must be `en_GB`.
4858
+ # @return [String]
4859
+ #
4860
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeCustomVocabularyMetadataRequest AWS API Documentation
4861
+ #
4862
+ class DescribeCustomVocabularyMetadataRequest < Struct.new(
4863
+ :bot_id,
4864
+ :bot_version,
4865
+ :locale_id)
4866
+ SENSITIVE = []
4867
+ include Aws::Structure
4868
+ end
4869
+
4870
+ # @!attribute [rw] bot_id
4871
+ # The identifier of the bot that contains the custom vocabulary.
4872
+ # @return [String]
4873
+ #
4874
+ # @!attribute [rw] bot_version
4875
+ # The version of the bot that contains the custom vocabulary to
4876
+ # describe.
4877
+ # @return [String]
4878
+ #
4879
+ # @!attribute [rw] locale_id
4880
+ # The locale that contains the custom vocabulary to describe.
4881
+ # @return [String]
4882
+ #
4883
+ # @!attribute [rw] custom_vocabulary_status
4884
+ # The status of the custom vocabulary. If the status is `Ready` the
4885
+ # custom vocabulary is ready to use.
4886
+ # @return [String]
4887
+ #
4888
+ # @!attribute [rw] creation_date_time
4889
+ # The date and time that the custom vocabulary was created.
4890
+ # @return [Time]
4891
+ #
4892
+ # @!attribute [rw] last_updated_date_time
4893
+ # The date and time that the custom vocabulary was last updated.
4894
+ # @return [Time]
4895
+ #
4896
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeCustomVocabularyMetadataResponse AWS API Documentation
4897
+ #
4898
+ class DescribeCustomVocabularyMetadataResponse < Struct.new(
4899
+ :bot_id,
4900
+ :bot_version,
4901
+ :locale_id,
4902
+ :custom_vocabulary_status,
4903
+ :creation_date_time,
4904
+ :last_updated_date_time)
4905
+ SENSITIVE = []
4906
+ include Aws::Structure
4907
+ end
4908
+
4650
4909
  # @note When making an API call, you may pass DescribeExportRequest
4651
4910
  # data as a hash:
4652
4911
  #
@@ -4676,8 +4935,7 @@ module Aws::LexModelsV2
4676
4935
  # @return [Types::ExportResourceSpecification]
4677
4936
  #
4678
4937
  # @!attribute [rw] file_format
4679
- # The file format used in the files that describe the bot or bot
4680
- # locale.
4938
+ # The file format used in the files that describe the resource.
4681
4939
  # @return [String]
4682
4940
  #
4683
4941
  # @!attribute [rw] export_status
@@ -4743,7 +5001,8 @@ module Aws::LexModelsV2
4743
5001
  # @return [String]
4744
5002
  #
4745
5003
  # @!attribute [rw] resource_specification
4746
- # The specifications of the imported bot or bot locale.
5004
+ # The specifications of the imported bot, bot locale, or custom
5005
+ # vocabulary.
4747
5006
  # @return [Types::ImportResourceSpecification]
4748
5007
  #
4749
5008
  # @!attribute [rw] imported_resource_id
@@ -5212,6 +5471,11 @@ module Aws::LexModelsV2
5212
5471
  # updated.
5213
5472
  # @return [Time]
5214
5473
  #
5474
+ # @!attribute [rw] external_source_setting
5475
+ # Provides information about the external source of the slot type's
5476
+ # definition.
5477
+ # @return [Types::ExternalSourceSetting]
5478
+ #
5215
5479
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeSlotTypeResponse AWS API Documentation
5216
5480
  #
5217
5481
  class DescribeSlotTypeResponse < Struct.new(
@@ -5225,7 +5489,8 @@ module Aws::LexModelsV2
5225
5489
  :bot_version,
5226
5490
  :locale_id,
5227
5491
  :creation_date_time,
5228
- :last_updated_date_time)
5492
+ :last_updated_date_time,
5493
+ :external_source_setting)
5229
5494
  SENSITIVE = []
5230
5495
  include Aws::Structure
5231
5496
  end
@@ -5309,7 +5574,8 @@ module Aws::LexModelsV2
5309
5574
  # @return [String]
5310
5575
  #
5311
5576
  # @!attribute [rw] values
5312
- # The values to use to filter the response.
5577
+ # The values to use to filter the response. The values must be `Bot`,
5578
+ # `BotLocale`, or `CustomVocabulary`.
5313
5579
  # @return [Array<String>]
5314
5580
  #
5315
5581
  # @!attribute [rw] operator
@@ -5346,6 +5612,11 @@ module Aws::LexModelsV2
5346
5612
  # bot_version: "BotVersion", # required
5347
5613
  # locale_id: "LocaleId", # required
5348
5614
  # },
5615
+ # custom_vocabulary_export_specification: {
5616
+ # bot_id: "Id", # required
5617
+ # bot_version: "BotVersion", # required
5618
+ # locale_id: "LocaleId", # required
5619
+ # },
5349
5620
  # }
5350
5621
  #
5351
5622
  # @!attribute [rw] bot_export_specification
@@ -5356,11 +5627,16 @@ module Aws::LexModelsV2
5356
5627
  # Parameters for exporting a bot locale.
5357
5628
  # @return [Types::BotLocaleExportSpecification]
5358
5629
  #
5630
+ # @!attribute [rw] custom_vocabulary_export_specification
5631
+ # The parameters required to export a custom vocabulary.
5632
+ # @return [Types::CustomVocabularyExportSpecification]
5633
+ #
5359
5634
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ExportResourceSpecification AWS API Documentation
5360
5635
  #
5361
5636
  class ExportResourceSpecification < Struct.new(
5362
5637
  :bot_export_specification,
5363
- :bot_locale_export_specification)
5638
+ :bot_locale_export_specification,
5639
+ :custom_vocabulary_export_specification)
5364
5640
  SENSITIVE = []
5365
5641
  include Aws::Structure
5366
5642
  end
@@ -5432,6 +5708,35 @@ module Aws::LexModelsV2
5432
5708
  include Aws::Structure
5433
5709
  end
5434
5710
 
5711
+ # Provides information about the external source of the slot type's
5712
+ # definition.
5713
+ #
5714
+ # @note When making an API call, you may pass ExternalSourceSetting
5715
+ # data as a hash:
5716
+ #
5717
+ # {
5718
+ # grammar_slot_type_setting: {
5719
+ # source: {
5720
+ # s3_bucket_name: "S3BucketName", # required
5721
+ # s3_object_key: "S3ObjectPath", # required
5722
+ # kms_key_arn: "KmsKeyArn",
5723
+ # },
5724
+ # },
5725
+ # }
5726
+ #
5727
+ # @!attribute [rw] grammar_slot_type_setting
5728
+ # Settings required for a slot type based on a grammar that you
5729
+ # provide.
5730
+ # @return [Types::GrammarSlotTypeSetting]
5731
+ #
5732
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ExternalSourceSetting AWS API Documentation
5733
+ #
5734
+ class ExternalSourceSetting < Struct.new(
5735
+ :grammar_slot_type_setting)
5736
+ SENSITIVE = []
5737
+ include Aws::Structure
5738
+ end
5739
+
5435
5740
  # Determines if a Lambda function should be invoked for a specific
5436
5741
  # intent.
5437
5742
  #
@@ -6070,6 +6375,66 @@ module Aws::LexModelsV2
6070
6375
  include Aws::Structure
6071
6376
  end
6072
6377
 
6378
+ # Settings requried for a slot type based on a grammar that you provide.
6379
+ #
6380
+ # @note When making an API call, you may pass GrammarSlotTypeSetting
6381
+ # data as a hash:
6382
+ #
6383
+ # {
6384
+ # source: {
6385
+ # s3_bucket_name: "S3BucketName", # required
6386
+ # s3_object_key: "S3ObjectPath", # required
6387
+ # kms_key_arn: "KmsKeyArn",
6388
+ # },
6389
+ # }
6390
+ #
6391
+ # @!attribute [rw] source
6392
+ # The source of the grammar used to create the slot type.
6393
+ # @return [Types::GrammarSlotTypeSource]
6394
+ #
6395
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/GrammarSlotTypeSetting AWS API Documentation
6396
+ #
6397
+ class GrammarSlotTypeSetting < Struct.new(
6398
+ :source)
6399
+ SENSITIVE = []
6400
+ include Aws::Structure
6401
+ end
6402
+
6403
+ # Describes the Amazon S3 bucket name and location for the grammar that
6404
+ # is the source for the slot type.
6405
+ #
6406
+ # @note When making an API call, you may pass GrammarSlotTypeSource
6407
+ # data as a hash:
6408
+ #
6409
+ # {
6410
+ # s3_bucket_name: "S3BucketName", # required
6411
+ # s3_object_key: "S3ObjectPath", # required
6412
+ # kms_key_arn: "KmsKeyArn",
6413
+ # }
6414
+ #
6415
+ # @!attribute [rw] s3_bucket_name
6416
+ # The name of the S3 bucket that contains the grammar source.
6417
+ # @return [String]
6418
+ #
6419
+ # @!attribute [rw] s3_object_key
6420
+ # The path to the grammar in the S3 bucket.
6421
+ # @return [String]
6422
+ #
6423
+ # @!attribute [rw] kms_key_arn
6424
+ # The Amazon KMS key required to decrypt the contents of the grammar,
6425
+ # if any.
6426
+ # @return [String]
6427
+ #
6428
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/GrammarSlotTypeSource AWS API Documentation
6429
+ #
6430
+ class GrammarSlotTypeSource < Struct.new(
6431
+ :s3_bucket_name,
6432
+ :s3_object_key,
6433
+ :kms_key_arn)
6434
+ SENSITIVE = []
6435
+ include Aws::Structure
6436
+ end
6437
+
6073
6438
  # A card that is shown to the user by a messaging platform. You define
6074
6439
  # the contents of the card, the card is displayed by the platform.
6075
6440
  #
@@ -6144,7 +6509,8 @@ module Aws::LexModelsV2
6144
6509
  # @return [String]
6145
6510
  #
6146
6511
  # @!attribute [rw] values
6147
- # The values to use to filter the response.
6512
+ # The values to use to filter the response. The values must be `Bot`,
6513
+ # `BotLocale`, or `CustomVocabulary`.
6148
6514
  # @return [Array<String>]
6149
6515
  #
6150
6516
  # @!attribute [rw] operator
@@ -6196,6 +6562,11 @@ module Aws::LexModelsV2
6196
6562
  # engine: "standard", # accepts standard, neural
6197
6563
  # },
6198
6564
  # },
6565
+ # custom_vocabulary_import_specification: {
6566
+ # bot_id: "Id", # required
6567
+ # bot_version: "DraftBotVersion", # required
6568
+ # locale_id: "LocaleId", # required
6569
+ # },
6199
6570
  # }
6200
6571
  #
6201
6572
  # @!attribute [rw] bot_import_specification
@@ -6206,11 +6577,16 @@ module Aws::LexModelsV2
6206
6577
  # Parameters for importing a bot locale.
6207
6578
  # @return [Types::BotLocaleImportSpecification]
6208
6579
  #
6580
+ # @!attribute [rw] custom_vocabulary_import_specification
6581
+ # Provides the parameters required for importing a custom vocabulary.
6582
+ # @return [Types::CustomVocabularyImportSpecification]
6583
+ #
6209
6584
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ImportResourceSpecification AWS API Documentation
6210
6585
  #
6211
6586
  class ImportResourceSpecification < Struct.new(
6212
6587
  :bot_import_specification,
6213
- :bot_locale_import_specification)
6588
+ :bot_locale_import_specification,
6589
+ :custom_vocabulary_import_specification)
6214
6590
  SENSITIVE = []
6215
6591
  include Aws::Structure
6216
6592
  end
@@ -6275,6 +6651,10 @@ module Aws::LexModelsV2
6275
6651
  # The date and time that the import was last updated.
6276
6652
  # @return [Time]
6277
6653
  #
6654
+ # @!attribute [rw] imported_resource_type
6655
+ # The type of resource that was imported.
6656
+ # @return [String]
6657
+ #
6278
6658
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ImportSummary AWS API Documentation
6279
6659
  #
6280
6660
  class ImportSummary < Struct.new(
@@ -6284,7 +6664,8 @@ module Aws::LexModelsV2
6284
6664
  :import_status,
6285
6665
  :merge_strategy,
6286
6666
  :creation_date_time,
6287
- :last_updated_date_time)
6667
+ :last_updated_date_time,
6668
+ :imported_resource_type)
6288
6669
  SENSITIVE = []
6289
6670
  include Aws::Structure
6290
6671
  end
@@ -7342,8 +7723,12 @@ module Aws::LexModelsV2
7342
7723
  # @!attribute [rw] next_token
7343
7724
  # If the response from the `ListBots` operation contains more results
7344
7725
  # than specified in the `maxResults` parameter, a token is returned in
7345
- # the response. Use that token in the `nextToken` parameter to return
7346
- # the next page of results.
7726
+ # the response.
7727
+ #
7728
+ # Use the returned token in the `nextToken` parameter of a `ListBots`
7729
+ # request to return the next page of results. For a complete set of
7730
+ # results, call the `ListBots` operation until the `nextToken`
7731
+ # returned in the response is null.
7347
7732
  # @return [String]
7348
7733
  #
7349
7734
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBotsRequest AWS API Documentation
@@ -7566,6 +7951,7 @@ module Aws::LexModelsV2
7566
7951
  # ],
7567
7952
  # max_results: 1,
7568
7953
  # next_token: "NextToken",
7954
+ # locale_id: "LocaleId",
7569
7955
  # }
7570
7956
  #
7571
7957
  # @!attribute [rw] bot_id
@@ -7597,8 +7983,18 @@ module Aws::LexModelsV2
7597
7983
  # @!attribute [rw] next_token
7598
7984
  # If the response from the `ListExports` operation contains more
7599
7985
  # results that specified in the `maxResults` parameter, a token is
7600
- # returned in the response. Use that token in the `nextToken`
7601
- # parameter to return the next page of results.
7986
+ # returned in the response.
7987
+ #
7988
+ # Use the returned token in the `nextToken` parameter of a
7989
+ # `ListExports` request to return the next page of results. For a
7990
+ # complete set of results, call the `ListExports` operation until the
7991
+ # `nextToken` returned in the response is null.
7992
+ # @return [String]
7993
+ #
7994
+ # @!attribute [rw] locale_id
7995
+ # Specifies the resources that should be exported. If you don't
7996
+ # specify a resource type in the `filters` parameter, both bot locales
7997
+ # and custom vocabularies are exported.
7602
7998
  # @return [String]
7603
7999
  #
7604
8000
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListExportsRequest AWS API Documentation
@@ -7609,7 +8005,8 @@ module Aws::LexModelsV2
7609
8005
  :sort_by,
7610
8006
  :filters,
7611
8007
  :max_results,
7612
- :next_token)
8008
+ :next_token,
8009
+ :locale_id)
7613
8010
  SENSITIVE = []
7614
8011
  include Aws::Structure
7615
8012
  end
@@ -7636,13 +8033,18 @@ module Aws::LexModelsV2
7636
8033
  # `ListExports` operation request to get the next page of results.
7637
8034
  # @return [String]
7638
8035
  #
8036
+ # @!attribute [rw] locale_id
8037
+ # The locale specified in the request.
8038
+ # @return [String]
8039
+ #
7639
8040
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListExportsResponse AWS API Documentation
7640
8041
  #
7641
8042
  class ListExportsResponse < Struct.new(
7642
8043
  :bot_id,
7643
8044
  :bot_version,
7644
8045
  :export_summaries,
7645
- :next_token)
8046
+ :next_token,
8047
+ :locale_id)
7646
8048
  SENSITIVE = []
7647
8049
  include Aws::Structure
7648
8050
  end
@@ -7666,6 +8068,7 @@ module Aws::LexModelsV2
7666
8068
  # ],
7667
8069
  # max_results: 1,
7668
8070
  # next_token: "NextToken",
8071
+ # locale_id: "LocaleId",
7669
8072
  # }
7670
8073
  #
7671
8074
  # @!attribute [rw] bot_id
@@ -7697,8 +8100,18 @@ module Aws::LexModelsV2
7697
8100
  # @!attribute [rw] next_token
7698
8101
  # If the response from the `ListImports` operation contains more
7699
8102
  # results than specified in the `maxResults` parameter, a token is
7700
- # returned in the response. Use that token in the `nextToken`
7701
- # parameter to return the next page of results.
8103
+ # returned in the response.
8104
+ #
8105
+ # Use the returned token in the `nextToken` parameter of a
8106
+ # `ListImports` request to return the next page of results. For a
8107
+ # complete set of results, call the `ListImports` operation until the
8108
+ # `nextToken` returned in the response is null.
8109
+ # @return [String]
8110
+ #
8111
+ # @!attribute [rw] locale_id
8112
+ # Specifies the locale that should be present in the list. If you
8113
+ # don't specify a resource type in the `filters` parameter, the list
8114
+ # contains both bot locales and custom vocabularies.
7702
8115
  # @return [String]
7703
8116
  #
7704
8117
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListImportsRequest AWS API Documentation
@@ -7709,7 +8122,8 @@ module Aws::LexModelsV2
7709
8122
  :sort_by,
7710
8123
  :filters,
7711
8124
  :max_results,
7712
- :next_token)
8125
+ :next_token,
8126
+ :locale_id)
7713
8127
  SENSITIVE = []
7714
8128
  include Aws::Structure
7715
8129
  end
@@ -7736,13 +8150,18 @@ module Aws::LexModelsV2
7736
8150
  # `ListImports` operation request to get the next page of results.
7737
8151
  # @return [String]
7738
8152
  #
8153
+ # @!attribute [rw] locale_id
8154
+ # The locale specified in the request.
8155
+ # @return [String]
8156
+ #
7739
8157
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListImportsResponse AWS API Documentation
7740
8158
  #
7741
8159
  class ListImportsResponse < Struct.new(
7742
8160
  :bot_id,
7743
8161
  :bot_version,
7744
8162
  :import_summaries,
7745
- :next_token)
8163
+ :next_token,
8164
+ :locale_id)
7746
8165
  SENSITIVE = []
7747
8166
  include Aws::Structure
7748
8167
  end
@@ -7808,8 +8227,12 @@ module Aws::LexModelsV2
7808
8227
  # @!attribute [rw] next_token
7809
8228
  # If the response from the `ListIntents` operation contains more
7810
8229
  # results than specified in the `maxResults` parameter, a token is
7811
- # returned in the response. Use that token in the `nextToken`
7812
- # parameter to return the next page of results.
8230
+ # returned in the response.
8231
+ #
8232
+ # Use the returned token in the `nextToken` parameter of a
8233
+ # `ListIntents` request to return the next page of results. For a
8234
+ # complete set of results, call the `ListIntents` operation until the
8235
+ # `nextToken` returned in the response is null.
7813
8236
  # @return [String]
7814
8237
  #
7815
8238
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListIntentsRequest AWS API Documentation
@@ -7988,7 +8411,7 @@ module Aws::LexModelsV2
7988
8411
  # },
7989
8412
  # filters: [
7990
8413
  # {
7991
- # name: "SlotTypeName", # required, accepts SlotTypeName
8414
+ # name: "SlotTypeName", # required, accepts SlotTypeName, ExternalSourceType
7992
8415
  # values: ["FilterValue"], # required
7993
8416
  # operator: "CO", # required, accepts CO, EQ
7994
8417
  # },
@@ -9558,7 +9981,7 @@ module Aws::LexModelsV2
9558
9981
  # data as a hash:
9559
9982
  #
9560
9983
  # {
9561
- # name: "SlotTypeName", # required, accepts SlotTypeName
9984
+ # name: "SlotTypeName", # required, accepts SlotTypeName, ExternalSourceType
9562
9985
  # values: ["FilterValue"], # required
9563
9986
  # operator: "CO", # required, accepts CO, EQ
9564
9987
  # }
@@ -9655,6 +10078,27 @@ module Aws::LexModelsV2
9655
10078
  # updated.
9656
10079
  # @return [Time]
9657
10080
  #
10081
+ # @!attribute [rw] slot_type_category
10082
+ # Indicates the type of the slot type.
10083
+ #
10084
+ # * `Custom` - A slot type that you created using custom values. For
10085
+ # more information, see [Creating custom slot types][1].
10086
+ #
10087
+ # * `Extended` - A slot type created by extending the
10088
+ # AMAZON.AlphaNumeric built-in slot type. For more information, see
10089
+ # [AMAZON.AlphaNumeric][2].
10090
+ #
10091
+ # * `ExternalGrammar` - A slot type using a custom GRXML grammar to
10092
+ # define values. For more information, see [Using a custom grammar
10093
+ # slot type][3].
10094
+ #
10095
+ #
10096
+ #
10097
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/custom-slot-types.html
10098
+ # [2]: https://docs.aws.amazon.com/lexv2/latest/dg/built-in-slot-alphanumerice.html
10099
+ # [3]: https://docs.aws.amazon.com/lexv2/latest/dg/building-grxml.html
10100
+ # @return [String]
10101
+ #
9658
10102
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/SlotTypeSummary AWS API Documentation
9659
10103
  #
9660
10104
  class SlotTypeSummary < Struct.new(
@@ -9662,7 +10106,8 @@ module Aws::LexModelsV2
9662
10106
  :slot_type_name,
9663
10107
  :description,
9664
10108
  :parent_slot_type_signature,
9665
- :last_updated_date_time)
10109
+ :last_updated_date_time,
10110
+ :slot_type_category)
9666
10111
  SENSITIVE = []
9667
10112
  include Aws::Structure
9668
10113
  end
@@ -10029,6 +10474,9 @@ module Aws::LexModelsV2
10029
10474
  # regex_filter: {
10030
10475
  # pattern: "RegexPattern", # required
10031
10476
  # },
10477
+ # advanced_recognition_setting: {
10478
+ # audio_recognition_strategy: "UseSlotValuesAsCustomVocabulary", # accepts UseSlotValuesAsCustomVocabulary
10479
+ # },
10032
10480
  # }
10033
10481
  #
10034
10482
  # @!attribute [rw] resolution_strategy
@@ -10051,11 +10499,17 @@ module Aws::LexModelsV2
10051
10499
  # A regular expression used to validate the value of a slot.
10052
10500
  # @return [Types::SlotValueRegexFilter]
10053
10501
  #
10502
+ # @!attribute [rw] advanced_recognition_setting
10503
+ # Provides settings that enable advanced recognition settings for slot
10504
+ # values.
10505
+ # @return [Types::AdvancedRecognitionSetting]
10506
+ #
10054
10507
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/SlotValueSelectionSetting AWS API Documentation
10055
10508
  #
10056
10509
  class SlotValueSelectionSetting < Struct.new(
10057
10510
  :resolution_strategy,
10058
- :regex_filter)
10511
+ :regex_filter,
10512
+ :advanced_recognition_setting)
10059
10513
  SENSITIVE = []
10060
10514
  include Aws::Structure
10061
10515
  end
@@ -10223,6 +10677,11 @@ module Aws::LexModelsV2
10223
10677
  # engine: "standard", # accepts standard, neural
10224
10678
  # },
10225
10679
  # },
10680
+ # custom_vocabulary_import_specification: {
10681
+ # bot_id: "Id", # required
10682
+ # bot_version: "DraftBotVersion", # required
10683
+ # locale_id: "LocaleId", # required
10684
+ # },
10226
10685
  # },
10227
10686
  # merge_strategy: "Overwrite", # required, accepts Overwrite, FailOnConflict, Append
10228
10687
  # file_password: "ImportExportFilePassword",
@@ -10238,7 +10697,7 @@ module Aws::LexModelsV2
10238
10697
  # @return [String]
10239
10698
  #
10240
10699
  # @!attribute [rw] resource_specification
10241
- # Parameters for creating the bot or bot locale.
10700
+ # Parameters for creating the bot, bot locale or custom vocabulary.
10242
10701
  # @return [Types::ImportResourceSpecification]
10243
10702
  #
10244
10703
  # @!attribute [rw] merge_strategy
@@ -10249,9 +10708,9 @@ module Aws::LexModelsV2
10249
10708
  # @return [String]
10250
10709
  #
10251
10710
  # @!attribute [rw] file_password
10252
- # The password used to encrypt the zip archive that contains the bot
10253
- # or bot locale definition. You should always encrypt the zip archive
10254
- # to protect it during transit between your site and Amazon Lex.
10711
+ # The password used to encrypt the zip archive that contains the
10712
+ # resource definition. You should always encrypt the zip archive to
10713
+ # protect it during transit between your site and Amazon Lex.
10255
10714
  # @return [String]
10256
10715
  #
10257
10716
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/StartImportRequest AWS API Documentation
@@ -10270,7 +10729,7 @@ module Aws::LexModelsV2
10270
10729
  # @return [String]
10271
10730
  #
10272
10731
  # @!attribute [rw] resource_specification
10273
- # The parameters used when importing the bot or bot locale.
10732
+ # The parameters used when importing the resource.
10274
10733
  # @return [Types::ImportResourceSpecification]
10275
10734
  #
10276
10735
  # @!attribute [rw] merge_strategy
@@ -10282,7 +10741,7 @@ module Aws::LexModelsV2
10282
10741
  #
10283
10742
  # @!attribute [rw] import_status
10284
10743
  # The current status of the import. When the status is `Complete` the
10285
- # bot or bot alias is ready to use.
10744
+ # bot, bot alias, or custom vocabulary is ready to use.
10286
10745
  # @return [String]
10287
10746
  #
10288
10747
  # @!attribute [rw] creation_date_time
@@ -10876,6 +11335,11 @@ module Aws::LexModelsV2
10876
11335
  # A timestamp of the date and time that the locale was last updated.
10877
11336
  # @return [Time]
10878
11337
  #
11338
+ # @!attribute [rw] recommended_actions
11339
+ # Recommended actions to take to resolve an error in the
11340
+ # `failureReasons` field.
11341
+ # @return [Array<String>]
11342
+ #
10879
11343
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotLocaleResponse AWS API Documentation
10880
11344
  #
10881
11345
  class UpdateBotLocaleResponse < Struct.new(
@@ -10889,7 +11353,8 @@ module Aws::LexModelsV2
10889
11353
  :bot_locale_status,
10890
11354
  :failure_reasons,
10891
11355
  :creation_date_time,
10892
- :last_updated_date_time)
11356
+ :last_updated_date_time,
11357
+ :recommended_actions)
10893
11358
  SENSITIVE = []
10894
11359
  include Aws::Structure
10895
11360
  end
@@ -11176,7 +11641,9 @@ module Aws::LexModelsV2
11176
11641
  # @return [Types::ExportResourceSpecification]
11177
11642
  #
11178
11643
  # @!attribute [rw] file_format
11179
- # The file format used for the files that define the resource.
11644
+ # The file format used for the files that define the resource. The
11645
+ # `TSV` format is required to export a custom vocabulary only;
11646
+ # otherwise use `LexJson` format.
11180
11647
  # @return [String]
11181
11648
  #
11182
11649
  # @!attribute [rw] export_status
@@ -12393,16 +12860,28 @@ module Aws::LexModelsV2
12393
12860
  # ],
12394
12861
  # },
12395
12862
  # ],
12396
- # value_selection_setting: { # required
12863
+ # value_selection_setting: {
12397
12864
  # resolution_strategy: "OriginalValue", # required, accepts OriginalValue, TopResolution
12398
12865
  # regex_filter: {
12399
12866
  # pattern: "RegexPattern", # required
12400
12867
  # },
12868
+ # advanced_recognition_setting: {
12869
+ # audio_recognition_strategy: "UseSlotValuesAsCustomVocabulary", # accepts UseSlotValuesAsCustomVocabulary
12870
+ # },
12401
12871
  # },
12402
12872
  # parent_slot_type_signature: "SlotTypeSignature",
12403
12873
  # bot_id: "Id", # required
12404
12874
  # bot_version: "DraftBotVersion", # required
12405
12875
  # locale_id: "LocaleId", # required
12876
+ # external_source_setting: {
12877
+ # grammar_slot_type_setting: {
12878
+ # source: {
12879
+ # s3_bucket_name: "S3BucketName", # required
12880
+ # s3_object_key: "S3ObjectPath", # required
12881
+ # kms_key_arn: "KmsKeyArn",
12882
+ # },
12883
+ # },
12884
+ # },
12406
12885
  # }
12407
12886
  #
12408
12887
  # @!attribute [rw] slot_type_id
@@ -12450,6 +12929,11 @@ module Aws::LexModelsV2
12450
12929
  # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
12451
12930
  # @return [String]
12452
12931
  #
12932
+ # @!attribute [rw] external_source_setting
12933
+ # Provides information about the external source of the slot type's
12934
+ # definition.
12935
+ # @return [Types::ExternalSourceSetting]
12936
+ #
12453
12937
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlotTypeRequest AWS API Documentation
12454
12938
  #
12455
12939
  class UpdateSlotTypeRequest < Struct.new(
@@ -12461,7 +12945,8 @@ module Aws::LexModelsV2
12461
12945
  :parent_slot_type_signature,
12462
12946
  :bot_id,
12463
12947
  :bot_version,
12464
- :locale_id)
12948
+ :locale_id,
12949
+ :external_source_setting)
12465
12950
  SENSITIVE = []
12466
12951
  include Aws::Structure
12467
12952
  end
@@ -12514,6 +12999,11 @@ module Aws::LexModelsV2
12514
12999
  # updated.
12515
13000
  # @return [Time]
12516
13001
  #
13002
+ # @!attribute [rw] external_source_setting
13003
+ # Provides information about the external source of the slot type's
13004
+ # definition.
13005
+ # @return [Types::ExternalSourceSetting]
13006
+ #
12517
13007
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlotTypeResponse AWS API Documentation
12518
13008
  #
12519
13009
  class UpdateSlotTypeResponse < Struct.new(
@@ -12527,7 +13017,8 @@ module Aws::LexModelsV2
12527
13017
  :bot_version,
12528
13018
  :locale_id,
12529
13019
  :creation_date_time,
12530
- :last_updated_date_time)
13020
+ :last_updated_date_time,
13021
+ :external_source_setting)
12531
13022
  SENSITIVE = []
12532
13023
  include Aws::Structure
12533
13024
  end
@@ -12588,12 +13079,15 @@ module Aws::LexModelsV2
12588
13079
  #
12589
13080
  # @!attribute [rw] engine
12590
13081
  # Indicates the type of Amazon Polly voice that Amazon Lex should use
12591
- # for voice interaction with the user. For more information, see
12592
- # [Voices in Amazon Polly][1].
13082
+ # for voice interaction with the user. For more information, see the [
13083
+ # `engine` parameter of the `SynthesizeSpeech` operation][1] in the
13084
+ # *Amazon Polly developer guide*.
13085
+ #
13086
+ # If you do not specify a value, the default is `standard`.
12593
13087
  #
12594
13088
  #
12595
13089
  #
12596
- # [1]: https://docs.aws.amazon.com/polly/latest/dg/voicelist.html
13090
+ # [1]: https://docs.aws.amazon.com/polly/latest/dg/API_SynthesizeSpeech.html#polly-SynthesizeSpeech-request-Engine
12597
13091
  # @return [String]
12598
13092
  #
12599
13093
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/VoiceSettings AWS API Documentation