aws-sdk-lexmodelsv2 1.15.0 → 1.19.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.
@@ -129,6 +129,55 @@ module Aws::LexModelsV2
129
129
  include Aws::Structure
130
130
  end
131
131
 
132
+ # The object containing information that associates the recommended
133
+ # intent/slot type with a conversation.
134
+ #
135
+ # @!attribute [rw] transcript
136
+ # The content of the transcript that meets the search filter criteria.
137
+ # For the JSON format of the transcript, see [Output transcript
138
+ # format][1].
139
+ #
140
+ #
141
+ #
142
+ # [1]: https://docs.aws.amazon.com/lex/latest/dg/designing-output-format.html
143
+ # @return [String]
144
+ #
145
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/AssociatedTranscript AWS API Documentation
146
+ #
147
+ class AssociatedTranscript < Struct.new(
148
+ :transcript)
149
+ SENSITIVE = []
150
+ include Aws::Structure
151
+ end
152
+
153
+ # Filters to search for the associated transcript.
154
+ #
155
+ # @note When making an API call, you may pass AssociatedTranscriptFilter
156
+ # data as a hash:
157
+ #
158
+ # {
159
+ # name: "IntentId", # required, accepts IntentId, SlotTypeId
160
+ # values: ["FilterValue"], # required
161
+ # }
162
+ #
163
+ # @!attribute [rw] name
164
+ # The name of the field to use for filtering. The allowed names are
165
+ # IntentId and SlotTypeId.
166
+ # @return [String]
167
+ #
168
+ # @!attribute [rw] values
169
+ # The values to use to filter the transcript.
170
+ # @return [Array<String>]
171
+ #
172
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/AssociatedTranscriptFilter AWS API Documentation
173
+ #
174
+ class AssociatedTranscriptFilter < Struct.new(
175
+ :name,
176
+ :values)
177
+ SENSITIVE = []
178
+ include Aws::Structure
179
+ end
180
+
132
181
  # The location of audio log files collected when conversation logging is
133
182
  # enabled for a bot.
134
183
  #
@@ -690,6 +739,87 @@ module Aws::LexModelsV2
690
739
  include Aws::Structure
691
740
  end
692
741
 
742
+ # A statistical summary of the bot recommendation results.
743
+ #
744
+ # @!attribute [rw] intents
745
+ # Statistical information about about the intents associated with the
746
+ # bot recommendation results.
747
+ # @return [Types::IntentStatistics]
748
+ #
749
+ # @!attribute [rw] slot_types
750
+ # Statistical information about the slot types associated with the bot
751
+ # recommendation results.
752
+ # @return [Types::SlotTypeStatistics]
753
+ #
754
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BotRecommendationResultStatistics AWS API Documentation
755
+ #
756
+ class BotRecommendationResultStatistics < Struct.new(
757
+ :intents,
758
+ :slot_types)
759
+ SENSITIVE = []
760
+ include Aws::Structure
761
+ end
762
+
763
+ # The object representing the URL of the bot definition, the URL of the
764
+ # associated transcript and a statistical summary of the bot
765
+ # recommendation results.
766
+ #
767
+ # @!attribute [rw] bot_locale_export_url
768
+ # The presigned URL link of the recommended bot definition.
769
+ # @return [String]
770
+ #
771
+ # @!attribute [rw] associated_transcripts_url
772
+ # The presigned url link of the associated transcript.
773
+ # @return [String]
774
+ #
775
+ # @!attribute [rw] statistics
776
+ # The statistical summary of the bot recommendation results.
777
+ # @return [Types::BotRecommendationResultStatistics]
778
+ #
779
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BotRecommendationResults AWS API Documentation
780
+ #
781
+ class BotRecommendationResults < Struct.new(
782
+ :bot_locale_export_url,
783
+ :associated_transcripts_url,
784
+ :statistics)
785
+ SENSITIVE = []
786
+ include Aws::Structure
787
+ end
788
+
789
+ # A summary of the bot recommendation.
790
+ #
791
+ # @!attribute [rw] bot_recommendation_status
792
+ # The status of the bot recommendation.
793
+ #
794
+ # If the status is Failed, then the reasons for the failure are listed
795
+ # in the failureReasons field.
796
+ # @return [String]
797
+ #
798
+ # @!attribute [rw] bot_recommendation_id
799
+ # The unique identifier of the bot recommendation to be updated.
800
+ # @return [String]
801
+ #
802
+ # @!attribute [rw] creation_date_time
803
+ # A timestamp of the date and time that the bot recommendation was
804
+ # created.
805
+ # @return [Time]
806
+ #
807
+ # @!attribute [rw] last_updated_date_time
808
+ # A timestamp of the date and time that the bot recommendation was
809
+ # last updated.
810
+ # @return [Time]
811
+ #
812
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BotRecommendationSummary AWS API Documentation
813
+ #
814
+ class BotRecommendationSummary < Struct.new(
815
+ :bot_recommendation_status,
816
+ :bot_recommendation_id,
817
+ :creation_date_time,
818
+ :last_updated_date_time)
819
+ SENSITIVE = []
820
+ include Aws::Structure
821
+ end
822
+
693
823
  # Specifies attributes for sorting a list of bots.
694
824
  #
695
825
  # @note When making an API call, you may pass BotSortBy
@@ -3130,7 +3260,7 @@ module Aws::LexModelsV2
3130
3260
  # ],
3131
3261
  # },
3132
3262
  # ],
3133
- # value_selection_setting: { # required
3263
+ # value_selection_setting: {
3134
3264
  # resolution_strategy: "OriginalValue", # required, accepts OriginalValue, TopResolution
3135
3265
  # regex_filter: {
3136
3266
  # pattern: "RegexPattern", # required
@@ -3140,6 +3270,15 @@ module Aws::LexModelsV2
3140
3270
  # bot_id: "Id", # required
3141
3271
  # bot_version: "DraftBotVersion", # required
3142
3272
  # locale_id: "LocaleId", # required
3273
+ # external_source_setting: {
3274
+ # grammar_slot_type_setting: {
3275
+ # source: {
3276
+ # s3_bucket_name: "S3BucketName", # required
3277
+ # s3_object_key: "S3ObjectPath", # required
3278
+ # kms_key_arn: "KmsKeyArn",
3279
+ # },
3280
+ # },
3281
+ # },
3143
3282
  # }
3144
3283
  #
3145
3284
  # @!attribute [rw] slot_type_name
@@ -3202,6 +3341,10 @@ module Aws::LexModelsV2
3202
3341
  # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
3203
3342
  # @return [String]
3204
3343
  #
3344
+ # @!attribute [rw] external_source_setting
3345
+ # Sets the type of external information used to create the slot type.
3346
+ # @return [Types::ExternalSourceSetting]
3347
+ #
3205
3348
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateSlotTypeRequest AWS API Documentation
3206
3349
  #
3207
3350
  class CreateSlotTypeRequest < Struct.new(
@@ -3212,7 +3355,8 @@ module Aws::LexModelsV2
3212
3355
  :parent_slot_type_signature,
3213
3356
  :bot_id,
3214
3357
  :bot_version,
3215
- :locale_id)
3358
+ :locale_id,
3359
+ :external_source_setting)
3216
3360
  SENSITIVE = []
3217
3361
  include Aws::Structure
3218
3362
  end
@@ -3260,6 +3404,10 @@ module Aws::LexModelsV2
3260
3404
  # A timestamp of the date and time that the slot type was created.
3261
3405
  # @return [Time]
3262
3406
  #
3407
+ # @!attribute [rw] external_source_setting
3408
+ # The type of external information used to create the slot type.
3409
+ # @return [Types::ExternalSourceSetting]
3410
+ #
3263
3411
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateSlotTypeResponse AWS API Documentation
3264
3412
  #
3265
3413
  class CreateSlotTypeResponse < Struct.new(
@@ -3272,7 +3420,8 @@ module Aws::LexModelsV2
3272
3420
  :bot_id,
3273
3421
  :bot_version,
3274
3422
  :locale_id,
3275
- :creation_date_time)
3423
+ :creation_date_time,
3424
+ :external_source_setting)
3276
3425
  SENSITIVE = []
3277
3426
  include Aws::Structure
3278
3427
  end
@@ -3379,6 +3528,34 @@ module Aws::LexModelsV2
3379
3528
  include Aws::Structure
3380
3529
  end
3381
3530
 
3531
+ # The object used for specifying the data range that the customer wants
3532
+ # Amazon Lex to read through in the input transcripts.
3533
+ #
3534
+ # @note When making an API call, you may pass DateRangeFilter
3535
+ # data as a hash:
3536
+ #
3537
+ # {
3538
+ # start_date_time: Time.now, # required
3539
+ # end_date_time: Time.now, # required
3540
+ # }
3541
+ #
3542
+ # @!attribute [rw] start_date_time
3543
+ # A timestamp indicating the start date for the date range filter.
3544
+ # @return [Time]
3545
+ #
3546
+ # @!attribute [rw] end_date_time
3547
+ # A timestamp indicating the end date for the date range filter.
3548
+ # @return [Time]
3549
+ #
3550
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DateRangeFilter AWS API Documentation
3551
+ #
3552
+ class DateRangeFilter < Struct.new(
3553
+ :start_date_time,
3554
+ :end_date_time)
3555
+ SENSITIVE = []
3556
+ include Aws::Structure
3557
+ end
3558
+
3382
3559
  # @note When making an API call, you may pass DeleteBotAliasRequest
3383
3560
  # data as a hash:
3384
3561
  #
@@ -4192,6 +4369,11 @@ module Aws::LexModelsV2
4192
4369
  # have taken place for the locale.
4193
4370
  # @return [Array<Types::BotLocaleHistoryEvent>]
4194
4371
  #
4372
+ # @!attribute [rw] recommended_actions
4373
+ # Recommended actions to take to resolve an error in the
4374
+ # `failureReasons` field.
4375
+ # @return [Array<String>]
4376
+ #
4195
4377
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeBotLocaleResponse AWS API Documentation
4196
4378
  #
4197
4379
  class DescribeBotLocaleResponse < Struct.new(
@@ -4209,7 +4391,121 @@ module Aws::LexModelsV2
4209
4391
  :creation_date_time,
4210
4392
  :last_updated_date_time,
4211
4393
  :last_build_submitted_date_time,
4212
- :bot_locale_history_events)
4394
+ :bot_locale_history_events,
4395
+ :recommended_actions)
4396
+ SENSITIVE = []
4397
+ include Aws::Structure
4398
+ end
4399
+
4400
+ # @note When making an API call, you may pass DescribeBotRecommendationRequest
4401
+ # data as a hash:
4402
+ #
4403
+ # {
4404
+ # bot_id: "Id", # required
4405
+ # bot_version: "DraftBotVersion", # required
4406
+ # locale_id: "LocaleId", # required
4407
+ # bot_recommendation_id: "Id", # required
4408
+ # }
4409
+ #
4410
+ # @!attribute [rw] bot_id
4411
+ # The unique identifier of the bot associated with the bot
4412
+ # recommendation.
4413
+ # @return [String]
4414
+ #
4415
+ # @!attribute [rw] bot_version
4416
+ # The version of the bot associated with the bot recommendation.
4417
+ # @return [String]
4418
+ #
4419
+ # @!attribute [rw] locale_id
4420
+ # The identifier of the language and locale of the bot recommendation
4421
+ # to describe. The string must match one of the supported locales. For
4422
+ # more information, see [Supported languages][1].
4423
+ #
4424
+ #
4425
+ #
4426
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
4427
+ # @return [String]
4428
+ #
4429
+ # @!attribute [rw] bot_recommendation_id
4430
+ # The identifier of the bot recommendation to describe.
4431
+ # @return [String]
4432
+ #
4433
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeBotRecommendationRequest AWS API Documentation
4434
+ #
4435
+ class DescribeBotRecommendationRequest < Struct.new(
4436
+ :bot_id,
4437
+ :bot_version,
4438
+ :locale_id,
4439
+ :bot_recommendation_id)
4440
+ SENSITIVE = []
4441
+ include Aws::Structure
4442
+ end
4443
+
4444
+ # @!attribute [rw] bot_id
4445
+ # The identifier of the bot associated with the bot recommendation.
4446
+ # @return [String]
4447
+ #
4448
+ # @!attribute [rw] bot_version
4449
+ # The version of the bot associated with the bot recommendation.
4450
+ # @return [String]
4451
+ #
4452
+ # @!attribute [rw] locale_id
4453
+ # The identifier of the language and locale of the bot recommendation
4454
+ # to describe.
4455
+ # @return [String]
4456
+ #
4457
+ # @!attribute [rw] bot_recommendation_status
4458
+ # The status of the bot recommendation. If the status is Failed, then
4459
+ # the reasons for the failure are listed in the failureReasons field.
4460
+ # @return [String]
4461
+ #
4462
+ # @!attribute [rw] bot_recommendation_id
4463
+ # The identifier of the bot recommendation being described.
4464
+ # @return [String]
4465
+ #
4466
+ # @!attribute [rw] failure_reasons
4467
+ # If botRecommendationStatus is Failed, Amazon Lex explains why.
4468
+ # @return [Array<String>]
4469
+ #
4470
+ # @!attribute [rw] creation_date_time
4471
+ # The date and time that the bot recommendation was created.
4472
+ # @return [Time]
4473
+ #
4474
+ # @!attribute [rw] last_updated_date_time
4475
+ # The date and time that the bot recommendation was last updated.
4476
+ # @return [Time]
4477
+ #
4478
+ # @!attribute [rw] transcript_source_setting
4479
+ # The object representing the Amazon S3 bucket containing the
4480
+ # transcript, as well as the associated metadata.
4481
+ # @return [Types::TranscriptSourceSetting]
4482
+ #
4483
+ # @!attribute [rw] encryption_setting
4484
+ # The object representing the passwords that were used to encrypt the
4485
+ # data related to the bot recommendation results, as well as the KMS
4486
+ # key ARN used to encrypt the associated metadata.
4487
+ # @return [Types::EncryptionSetting]
4488
+ #
4489
+ # @!attribute [rw] bot_recommendation_results
4490
+ # The object representing the URL of the bot definition, the URL of
4491
+ # the associated transcript and a statistical summary of the bot
4492
+ # recommendation results.
4493
+ # @return [Types::BotRecommendationResults]
4494
+ #
4495
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeBotRecommendationResponse AWS API Documentation
4496
+ #
4497
+ class DescribeBotRecommendationResponse < Struct.new(
4498
+ :bot_id,
4499
+ :bot_version,
4500
+ :locale_id,
4501
+ :bot_recommendation_status,
4502
+ :bot_recommendation_id,
4503
+ :failure_reasons,
4504
+ :creation_date_time,
4505
+ :last_updated_date_time,
4506
+ :transcript_source_setting,
4507
+ :encryption_setting,
4508
+ :bot_recommendation_results)
4213
4509
  SENSITIVE = []
4214
4510
  include Aws::Structure
4215
4511
  end
@@ -4941,6 +5237,11 @@ module Aws::LexModelsV2
4941
5237
  # updated.
4942
5238
  # @return [Time]
4943
5239
  #
5240
+ # @!attribute [rw] external_source_setting
5241
+ # Provides information about the external source of the slot type's
5242
+ # definition.
5243
+ # @return [Types::ExternalSourceSetting]
5244
+ #
4944
5245
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeSlotTypeResponse AWS API Documentation
4945
5246
  #
4946
5247
  class DescribeSlotTypeResponse < Struct.new(
@@ -4954,7 +5255,8 @@ module Aws::LexModelsV2
4954
5255
  :bot_version,
4955
5256
  :locale_id,
4956
5257
  :creation_date_time,
4957
- :last_updated_date_time)
5258
+ :last_updated_date_time,
5259
+ :external_source_setting)
4958
5260
  SENSITIVE = []
4959
5261
  include Aws::Structure
4960
5262
  end
@@ -4981,6 +5283,43 @@ module Aws::LexModelsV2
4981
5283
  include Aws::Structure
4982
5284
  end
4983
5285
 
5286
+ # The object representing the passwords that were used to encrypt the
5287
+ # data related to the bot recommendation, as well as the KMS key ARN
5288
+ # used to encrypt the associated metadata.
5289
+ #
5290
+ # @note When making an API call, you may pass EncryptionSetting
5291
+ # data as a hash:
5292
+ #
5293
+ # {
5294
+ # kms_key_arn: "KmsKeyArn",
5295
+ # bot_locale_export_password: "FilePassword",
5296
+ # associated_transcripts_password: "FilePassword",
5297
+ # }
5298
+ #
5299
+ # @!attribute [rw] kms_key_arn
5300
+ # The KMS key ARN used to encrypt the metadata associated with the bot
5301
+ # recommendation.
5302
+ # @return [String]
5303
+ #
5304
+ # @!attribute [rw] bot_locale_export_password
5305
+ # The password used to encrypt the recommended bot recommendation
5306
+ # file.
5307
+ # @return [String]
5308
+ #
5309
+ # @!attribute [rw] associated_transcripts_password
5310
+ # The password used to encrypt the associated transcript file.
5311
+ # @return [String]
5312
+ #
5313
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/EncryptionSetting AWS API Documentation
5314
+ #
5315
+ class EncryptionSetting < Struct.new(
5316
+ :kms_key_arn,
5317
+ :bot_locale_export_password,
5318
+ :associated_transcripts_password)
5319
+ SENSITIVE = [:bot_locale_export_password, :associated_transcripts_password]
5320
+ include Aws::Structure
5321
+ end
5322
+
4984
5323
  # Filters the response form the [ListExports][1] operation
4985
5324
  #
4986
5325
  #
@@ -5124,6 +5463,35 @@ module Aws::LexModelsV2
5124
5463
  include Aws::Structure
5125
5464
  end
5126
5465
 
5466
+ # Provides information about the external source of the slot type's
5467
+ # definition.
5468
+ #
5469
+ # @note When making an API call, you may pass ExternalSourceSetting
5470
+ # data as a hash:
5471
+ #
5472
+ # {
5473
+ # grammar_slot_type_setting: {
5474
+ # source: {
5475
+ # s3_bucket_name: "S3BucketName", # required
5476
+ # s3_object_key: "S3ObjectPath", # required
5477
+ # kms_key_arn: "KmsKeyArn",
5478
+ # },
5479
+ # },
5480
+ # }
5481
+ #
5482
+ # @!attribute [rw] grammar_slot_type_setting
5483
+ # Settings required for a slot type based on a grammar that you
5484
+ # provide.
5485
+ # @return [Types::GrammarSlotTypeSetting]
5486
+ #
5487
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ExternalSourceSetting AWS API Documentation
5488
+ #
5489
+ class ExternalSourceSetting < Struct.new(
5490
+ :grammar_slot_type_setting)
5491
+ SENSITIVE = []
5492
+ include Aws::Structure
5493
+ end
5494
+
5127
5495
  # Determines if a Lambda function should be invoked for a specific
5128
5496
  # intent.
5129
5497
  #
@@ -5762,6 +6130,66 @@ module Aws::LexModelsV2
5762
6130
  include Aws::Structure
5763
6131
  end
5764
6132
 
6133
+ # Settings requried for a slot type based on a grammar that you provide.
6134
+ #
6135
+ # @note When making an API call, you may pass GrammarSlotTypeSetting
6136
+ # data as a hash:
6137
+ #
6138
+ # {
6139
+ # source: {
6140
+ # s3_bucket_name: "S3BucketName", # required
6141
+ # s3_object_key: "S3ObjectPath", # required
6142
+ # kms_key_arn: "KmsKeyArn",
6143
+ # },
6144
+ # }
6145
+ #
6146
+ # @!attribute [rw] source
6147
+ # The source of the grammar used to create the slot type.
6148
+ # @return [Types::GrammarSlotTypeSource]
6149
+ #
6150
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/GrammarSlotTypeSetting AWS API Documentation
6151
+ #
6152
+ class GrammarSlotTypeSetting < Struct.new(
6153
+ :source)
6154
+ SENSITIVE = []
6155
+ include Aws::Structure
6156
+ end
6157
+
6158
+ # Describes the Amazon S3 bucket name and location for the grammar that
6159
+ # is the source for the slot type.
6160
+ #
6161
+ # @note When making an API call, you may pass GrammarSlotTypeSource
6162
+ # data as a hash:
6163
+ #
6164
+ # {
6165
+ # s3_bucket_name: "S3BucketName", # required
6166
+ # s3_object_key: "S3ObjectPath", # required
6167
+ # kms_key_arn: "KmsKeyArn",
6168
+ # }
6169
+ #
6170
+ # @!attribute [rw] s3_bucket_name
6171
+ # The name of the S3 bucket that contains the grammar source.
6172
+ # @return [String]
6173
+ #
6174
+ # @!attribute [rw] s3_object_key
6175
+ # The path to the grammar in the S3 bucket.
6176
+ # @return [String]
6177
+ #
6178
+ # @!attribute [rw] kms_key_arn
6179
+ # The Amazon KMS key required to decrypt the contents of the grammar,
6180
+ # if any.
6181
+ # @return [String]
6182
+ #
6183
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/GrammarSlotTypeSource AWS API Documentation
6184
+ #
6185
+ class GrammarSlotTypeSource < Struct.new(
6186
+ :s3_bucket_name,
6187
+ :s3_object_key,
6188
+ :kms_key_arn)
6189
+ SENSITIVE = []
6190
+ include Aws::Structure
6191
+ end
6192
+
5765
6193
  # A card that is shown to the user by a messaging platform. You define
5766
6194
  # the contents of the card, the card is displayed by the platform.
5767
6195
  #
@@ -6301,6 +6729,22 @@ module Aws::LexModelsV2
6301
6729
  include Aws::Structure
6302
6730
  end
6303
6731
 
6732
+ # The object that contains the statistical summary of recommended
6733
+ # intents associated with the bot recommendation.
6734
+ #
6735
+ # @!attribute [rw] discovered_intent_count
6736
+ # The number of recommended intents associated with the bot
6737
+ # recommendation.
6738
+ # @return [Integer]
6739
+ #
6740
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/IntentStatistics AWS API Documentation
6741
+ #
6742
+ class IntentStatistics < Struct.new(
6743
+ :discovered_intent_count)
6744
+ SENSITIVE = []
6745
+ include Aws::Structure
6746
+ end
6747
+
6304
6748
  # Summary information about an intent returned by the `ListIntents`
6305
6749
  # operation.
6306
6750
  #
@@ -6439,6 +6883,33 @@ module Aws::LexModelsV2
6439
6883
  include Aws::Structure
6440
6884
  end
6441
6885
 
6886
+ # The object that contains transcript filter details that are associated
6887
+ # with a bot recommendation.
6888
+ #
6889
+ # @note When making an API call, you may pass LexTranscriptFilter
6890
+ # data as a hash:
6891
+ #
6892
+ # {
6893
+ # date_range_filter: {
6894
+ # start_date_time: Time.now, # required
6895
+ # end_date_time: Time.now, # required
6896
+ # },
6897
+ # }
6898
+ #
6899
+ # @!attribute [rw] date_range_filter
6900
+ # The object that contains a date range filter that will be applied to
6901
+ # the transcript. Specify this object if you want Amazon Lex to only
6902
+ # read the files that are within the date range.
6903
+ # @return [Types::DateRangeFilter]
6904
+ #
6905
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/LexTranscriptFilter AWS API Documentation
6906
+ #
6907
+ class LexTranscriptFilter < Struct.new(
6908
+ :date_range_filter)
6909
+ SENSITIVE = []
6910
+ include Aws::Structure
6911
+ end
6912
+
6442
6913
  # @note When making an API call, you may pass ListAggregatedUtterancesRequest
6443
6914
  # data as a hash:
6444
6915
  #
@@ -6782,12 +7253,104 @@ module Aws::LexModelsV2
6782
7253
  include Aws::Structure
6783
7254
  end
6784
7255
 
6785
- # @note When making an API call, you may pass ListBotVersionsRequest
7256
+ # @note When making an API call, you may pass ListBotRecommendationsRequest
6786
7257
  # data as a hash:
6787
7258
  #
6788
7259
  # {
6789
7260
  # bot_id: "Id", # required
6790
- # sort_by: {
7261
+ # bot_version: "DraftBotVersion", # required
7262
+ # locale_id: "LocaleId", # required
7263
+ # max_results: 1,
7264
+ # next_token: "NextToken",
7265
+ # }
7266
+ #
7267
+ # @!attribute [rw] bot_id
7268
+ # The unique identifier of the bot that contains the bot
7269
+ # recommendation list.
7270
+ # @return [String]
7271
+ #
7272
+ # @!attribute [rw] bot_version
7273
+ # The version of the bot that contains the bot recommendation list.
7274
+ # @return [String]
7275
+ #
7276
+ # @!attribute [rw] locale_id
7277
+ # The identifier of the language and locale of the bot recommendation
7278
+ # list.
7279
+ # @return [String]
7280
+ #
7281
+ # @!attribute [rw] max_results
7282
+ # The maximum number of bot recommendations to return in each page of
7283
+ # results. If there are fewer results than the max page size, only the
7284
+ # actual number of results are returned.
7285
+ # @return [Integer]
7286
+ #
7287
+ # @!attribute [rw] next_token
7288
+ # If the response from the ListBotRecommendation operation contains
7289
+ # more results than specified in the maxResults parameter, a token is
7290
+ # returned in the response. Use that token in the nextToken parameter
7291
+ # to return the next page of results.
7292
+ # @return [String]
7293
+ #
7294
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBotRecommendationsRequest AWS API Documentation
7295
+ #
7296
+ class ListBotRecommendationsRequest < Struct.new(
7297
+ :bot_id,
7298
+ :bot_version,
7299
+ :locale_id,
7300
+ :max_results,
7301
+ :next_token)
7302
+ SENSITIVE = []
7303
+ include Aws::Structure
7304
+ end
7305
+
7306
+ # @!attribute [rw] bot_id
7307
+ # The unique identifier of the bot that contains the bot
7308
+ # recommendation list.
7309
+ # @return [String]
7310
+ #
7311
+ # @!attribute [rw] bot_version
7312
+ # The version of the bot that contains the bot recommendation list.
7313
+ # @return [String]
7314
+ #
7315
+ # @!attribute [rw] locale_id
7316
+ # The identifier of the language and locale of the bot recommendation
7317
+ # list.
7318
+ # @return [String]
7319
+ #
7320
+ # @!attribute [rw] bot_recommendation_summaries
7321
+ # Summary information for the bot recommendations that meet the filter
7322
+ # specified in this request. The length of the list is specified in
7323
+ # the maxResults parameter of the request. If there are more bot
7324
+ # recommendations available, the nextToken field contains a token to
7325
+ # get the next page of results.
7326
+ # @return [Array<Types::BotRecommendationSummary>]
7327
+ #
7328
+ # @!attribute [rw] next_token
7329
+ # A token that indicates whether there are more results to return in a
7330
+ # response to the ListBotRecommendations operation. If the nextToken
7331
+ # field is present, you send the contents as the nextToken parameter
7332
+ # of a ListBotRecommendations operation request to get the next page
7333
+ # of results.
7334
+ # @return [String]
7335
+ #
7336
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBotRecommendationsResponse AWS API Documentation
7337
+ #
7338
+ class ListBotRecommendationsResponse < Struct.new(
7339
+ :bot_id,
7340
+ :bot_version,
7341
+ :locale_id,
7342
+ :bot_recommendation_summaries,
7343
+ :next_token)
7344
+ SENSITIVE = []
7345
+ include Aws::Structure
7346
+ end
7347
+
7348
+ # @note When making an API call, you may pass ListBotVersionsRequest
7349
+ # data as a hash:
7350
+ #
7351
+ # {
7352
+ # bot_id: "Id", # required
7353
+ # sort_by: {
6791
7354
  # attribute: "BotVersion", # required, accepts BotVersion
6792
7355
  # order: "Ascending", # required, accepts Ascending, Descending
6793
7356
  # },
@@ -7422,6 +7985,116 @@ module Aws::LexModelsV2
7422
7985
  include Aws::Structure
7423
7986
  end
7424
7987
 
7988
+ # @note When making an API call, you may pass ListRecommendedIntentsRequest
7989
+ # data as a hash:
7990
+ #
7991
+ # {
7992
+ # bot_id: "Id", # required
7993
+ # bot_version: "DraftBotVersion", # required
7994
+ # locale_id: "LocaleId", # required
7995
+ # bot_recommendation_id: "Id", # required
7996
+ # next_token: "NextToken",
7997
+ # max_results: 1,
7998
+ # }
7999
+ #
8000
+ # @!attribute [rw] bot_id
8001
+ # The unique identifier of the bot associated with the recommended
8002
+ # intents.
8003
+ # @return [String]
8004
+ #
8005
+ # @!attribute [rw] bot_version
8006
+ # The version of the bot that contains the recommended intents.
8007
+ # @return [String]
8008
+ #
8009
+ # @!attribute [rw] locale_id
8010
+ # The identifier of the language and locale of the recommended
8011
+ # intents.
8012
+ # @return [String]
8013
+ #
8014
+ # @!attribute [rw] bot_recommendation_id
8015
+ # The identifier of the bot recommendation that contains the
8016
+ # recommended intents.
8017
+ # @return [String]
8018
+ #
8019
+ # @!attribute [rw] next_token
8020
+ # If the response from the ListRecommendedIntents operation contains
8021
+ # more results than specified in the maxResults parameter, a token is
8022
+ # returned in the response. Use that token in the nextToken parameter
8023
+ # to return the next page of results.
8024
+ # @return [String]
8025
+ #
8026
+ # @!attribute [rw] max_results
8027
+ # The maximum number of bot recommendations to return in each page of
8028
+ # results. If there are fewer results than the max page size, only the
8029
+ # actual number of results are returned.
8030
+ # @return [Integer]
8031
+ #
8032
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListRecommendedIntentsRequest AWS API Documentation
8033
+ #
8034
+ class ListRecommendedIntentsRequest < Struct.new(
8035
+ :bot_id,
8036
+ :bot_version,
8037
+ :locale_id,
8038
+ :bot_recommendation_id,
8039
+ :next_token,
8040
+ :max_results)
8041
+ SENSITIVE = []
8042
+ include Aws::Structure
8043
+ end
8044
+
8045
+ # @!attribute [rw] bot_id
8046
+ # The unique identifier of the bot associated with the recommended
8047
+ # intent.
8048
+ # @return [String]
8049
+ #
8050
+ # @!attribute [rw] bot_version
8051
+ # The version of the bot that contains the intent.
8052
+ # @return [String]
8053
+ #
8054
+ # @!attribute [rw] locale_id
8055
+ # The identifier of the language and locale of the intents to list.
8056
+ # The string must match one of the supported locales. For more
8057
+ # information, see [Supported languages][1].
8058
+ #
8059
+ #
8060
+ #
8061
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
8062
+ # @return [String]
8063
+ #
8064
+ # @!attribute [rw] bot_recommendation_id
8065
+ # The identifier of the bot recommendation that contains the
8066
+ # recommended intent.
8067
+ # @return [String]
8068
+ #
8069
+ # @!attribute [rw] summary_list
8070
+ # Summary information for the intents that meet the filter criteria
8071
+ # specified in the request. The length of the list is specified in the
8072
+ # maxResults parameter of the request. If there are more intents
8073
+ # available, the nextToken field contains a token to get the next page
8074
+ # of results.
8075
+ # @return [Array<Types::RecommendedIntentSummary>]
8076
+ #
8077
+ # @!attribute [rw] next_token
8078
+ # A token that indicates whether there are more results to return in a
8079
+ # response to the ListRecommendedIntents operation. If the nextToken
8080
+ # field is present, you send the contents as the nextToken parameter
8081
+ # of a ListRecommendedIntents operation request to get the next page
8082
+ # of results.
8083
+ # @return [String]
8084
+ #
8085
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListRecommendedIntentsResponse AWS API Documentation
8086
+ #
8087
+ class ListRecommendedIntentsResponse < Struct.new(
8088
+ :bot_id,
8089
+ :bot_version,
8090
+ :locale_id,
8091
+ :bot_recommendation_id,
8092
+ :summary_list,
8093
+ :next_token)
8094
+ SENSITIVE = []
8095
+ include Aws::Structure
8096
+ end
8097
+
7425
8098
  # @note When making an API call, you may pass ListSlotTypesRequest
7426
8099
  # data as a hash:
7427
8100
  #
@@ -7435,7 +8108,7 @@ module Aws::LexModelsV2
7435
8108
  # },
7436
8109
  # filters: [
7437
8110
  # {
7438
- # name: "SlotTypeName", # required, accepts SlotTypeName
8111
+ # name: "SlotTypeName", # required, accepts SlotTypeName, ExternalSourceType
7439
8112
  # values: ["FilterValue"], # required
7440
8113
  # operator: "CO", # required, accepts CO, EQ
7441
8114
  # },
@@ -7921,6 +8594,32 @@ module Aws::LexModelsV2
7921
8594
  include Aws::Structure
7922
8595
  end
7923
8596
 
8597
+ # The object that contains a path format that will be applied when
8598
+ # Amazon Lex reads the transcript file in the bucket you provide.
8599
+ # Specify this object if you only want Lex to read a subset of files in
8600
+ # your Amazon S3 bucket.
8601
+ #
8602
+ # @note When making an API call, you may pass PathFormat
8603
+ # data as a hash:
8604
+ #
8605
+ # {
8606
+ # object_prefixes: ["ObjectPrefix"],
8607
+ # }
8608
+ #
8609
+ # @!attribute [rw] object_prefixes
8610
+ # A list of Amazon S3 prefixes that points to sub-folders in the
8611
+ # Amazon S3 bucket. Specify this list if you only want Lex to read the
8612
+ # files under this set of sub-folders.
8613
+ # @return [Array<String>]
8614
+ #
8615
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/PathFormat AWS API Documentation
8616
+ #
8617
+ class PathFormat < Struct.new(
8618
+ :object_prefixes)
8619
+ SENSITIVE = []
8620
+ include Aws::Structure
8621
+ end
8622
+
7924
8623
  # Defines an ASCII text message to send to the user.
7925
8624
  #
7926
8625
  # @note When making an API call, you may pass PlainTextMessage
@@ -8275,6 +8974,33 @@ module Aws::LexModelsV2
8275
8974
  include Aws::Structure
8276
8975
  end
8277
8976
 
8977
+ # An object that contains a summary of a recommended intent.
8978
+ #
8979
+ # @!attribute [rw] intent_id
8980
+ # The unique identifier of a recommended intent associated with the
8981
+ # bot recommendation.
8982
+ # @return [String]
8983
+ #
8984
+ # @!attribute [rw] intent_name
8985
+ # The name of a recommended intent associated with the bot
8986
+ # recommendation.
8987
+ # @return [String]
8988
+ #
8989
+ # @!attribute [rw] sample_utterances_count
8990
+ # The count of sample utterances of a recommended intent that is
8991
+ # associated with a bot recommendation.
8992
+ # @return [Integer]
8993
+ #
8994
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/RecommendedIntentSummary AWS API Documentation
8995
+ #
8996
+ class RecommendedIntentSummary < Struct.new(
8997
+ :intent_id,
8998
+ :intent_name,
8999
+ :sample_utterances_count)
9000
+ SENSITIVE = []
9001
+ include Aws::Structure
9002
+ end
9003
+
8278
9004
  # Specifies the time window that utterance statistics are returned for.
8279
9005
  # The time window is always relative to the last time that the that
8280
9006
  # utterances were aggregated. For example, if the
@@ -8455,6 +9181,71 @@ module Aws::LexModelsV2
8455
9181
  include Aws::Structure
8456
9182
  end
8457
9183
 
9184
+ # The object representing the Amazon S3 bucket containing the
9185
+ # transcript, as well as the associated metadata.
9186
+ #
9187
+ # @note When making an API call, you may pass S3BucketTranscriptSource
9188
+ # data as a hash:
9189
+ #
9190
+ # {
9191
+ # s3_bucket_name: "S3BucketName", # required
9192
+ # path_format: {
9193
+ # object_prefixes: ["ObjectPrefix"],
9194
+ # },
9195
+ # transcript_format: "Lex", # required, accepts Lex
9196
+ # transcript_filter: {
9197
+ # lex_transcript_filter: {
9198
+ # date_range_filter: {
9199
+ # start_date_time: Time.now, # required
9200
+ # end_date_time: Time.now, # required
9201
+ # },
9202
+ # },
9203
+ # },
9204
+ # kms_key_arn: "KmsKeyArn",
9205
+ # }
9206
+ #
9207
+ # @!attribute [rw] s3_bucket_name
9208
+ # The name of the bucket containing the transcript and the associated
9209
+ # metadata.
9210
+ # @return [String]
9211
+ #
9212
+ # @!attribute [rw] path_format
9213
+ # The object that contains a path format that will be applied when
9214
+ # Amazon Lex reads the transcript file in the bucket you provide.
9215
+ # Specify this object if you only want Lex to read a subset of files
9216
+ # in your Amazon S3 bucket.
9217
+ # @return [Types::PathFormat]
9218
+ #
9219
+ # @!attribute [rw] transcript_format
9220
+ # The format of the transcript content. Currently, Genie only supports
9221
+ # the Amazon Lex transcript format.
9222
+ # @return [String]
9223
+ #
9224
+ # @!attribute [rw] transcript_filter
9225
+ # The object that contains the filter which will be applied when
9226
+ # Amazon Lex reads through the Amazon S3 bucket. Specify this object
9227
+ # if you want Amazon Lex to read only a subset of the Amazon S3 bucket
9228
+ # based on the filter you provide.
9229
+ # @return [Types::TranscriptFilter]
9230
+ #
9231
+ # @!attribute [rw] kms_key_arn
9232
+ # The ARN of the KMS key that customer use to encrypt their Amazon S3
9233
+ # bucket. Only use this field if your bucket is encrypted using a
9234
+ # customer managed KMS key.
9235
+ # @return [String]
9236
+ #
9237
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/S3BucketTranscriptSource AWS API Documentation
9238
+ #
9239
+ class S3BucketTranscriptSource < Struct.new(
9240
+ :s3_bucket_name,
9241
+ :path_format,
9242
+ :transcript_format,
9243
+ :transcript_filter,
9244
+ :kms_key_arn)
9245
+ SENSITIVE = []
9246
+ include Aws::Structure
9247
+ end
9248
+
8458
9249
  # Defines a Speech Synthesis Markup Language (SSML) prompt.
8459
9250
  #
8460
9251
  # @note When making an API call, you may pass SSMLMessage
@@ -8520,6 +9311,143 @@ module Aws::LexModelsV2
8520
9311
  include Aws::Structure
8521
9312
  end
8522
9313
 
9314
+ # @note When making an API call, you may pass SearchAssociatedTranscriptsRequest
9315
+ # data as a hash:
9316
+ #
9317
+ # {
9318
+ # bot_id: "Id", # required
9319
+ # bot_version: "BotVersion", # required
9320
+ # locale_id: "LocaleId", # required
9321
+ # bot_recommendation_id: "Id", # required
9322
+ # search_order: "Ascending", # accepts Ascending, Descending
9323
+ # filters: [ # required
9324
+ # {
9325
+ # name: "IntentId", # required, accepts IntentId, SlotTypeId
9326
+ # values: ["FilterValue"], # required
9327
+ # },
9328
+ # ],
9329
+ # max_results: 1,
9330
+ # next_index: 1,
9331
+ # }
9332
+ #
9333
+ # @!attribute [rw] bot_id
9334
+ # The unique identifier of the bot associated with the transcripts
9335
+ # that you are searching.
9336
+ # @return [String]
9337
+ #
9338
+ # @!attribute [rw] bot_version
9339
+ # The version of the bot containing the transcripts that you are
9340
+ # searching.
9341
+ # @return [String]
9342
+ #
9343
+ # @!attribute [rw] locale_id
9344
+ # The identifier of the language and locale of the transcripts to
9345
+ # search. The string must match one of the supported locales. For more
9346
+ # information, see [Supported languages][1]
9347
+ #
9348
+ #
9349
+ #
9350
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
9351
+ # @return [String]
9352
+ #
9353
+ # @!attribute [rw] bot_recommendation_id
9354
+ # The unique identifier of the bot recommendation associated with the
9355
+ # transcripts to search.
9356
+ # @return [String]
9357
+ #
9358
+ # @!attribute [rw] search_order
9359
+ # How SearchResults are ordered. Valid values are Ascending or
9360
+ # Descending. The default is Descending.
9361
+ # @return [String]
9362
+ #
9363
+ # @!attribute [rw] filters
9364
+ # A list of filter objects.
9365
+ # @return [Array<Types::AssociatedTranscriptFilter>]
9366
+ #
9367
+ # @!attribute [rw] max_results
9368
+ # The maximum number of bot recommendations to return in each page of
9369
+ # results. If there are fewer results than the max page size, only the
9370
+ # actual number of results are returned.
9371
+ # @return [Integer]
9372
+ #
9373
+ # @!attribute [rw] next_index
9374
+ # If the response from the SearchAssociatedTranscriptsRequest
9375
+ # operation contains more results than specified in the maxResults
9376
+ # parameter, an index is returned in the response. Use that index in
9377
+ # the nextIndex parameter to return the next page of results.
9378
+ # @return [Integer]
9379
+ #
9380
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/SearchAssociatedTranscriptsRequest AWS API Documentation
9381
+ #
9382
+ class SearchAssociatedTranscriptsRequest < Struct.new(
9383
+ :bot_id,
9384
+ :bot_version,
9385
+ :locale_id,
9386
+ :bot_recommendation_id,
9387
+ :search_order,
9388
+ :filters,
9389
+ :max_results,
9390
+ :next_index)
9391
+ SENSITIVE = []
9392
+ include Aws::Structure
9393
+ end
9394
+
9395
+ # @!attribute [rw] bot_id
9396
+ # The unique identifier of the bot associated with the transcripts
9397
+ # that you are searching.
9398
+ # @return [String]
9399
+ #
9400
+ # @!attribute [rw] bot_version
9401
+ # The version of the bot containing the transcripts that you are
9402
+ # searching.
9403
+ # @return [String]
9404
+ #
9405
+ # @!attribute [rw] locale_id
9406
+ # The identifier of the language and locale of the transcripts to
9407
+ # search. The string must match one of the supported locales. For more
9408
+ # information, see [Supported languages][1]
9409
+ #
9410
+ #
9411
+ #
9412
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
9413
+ # @return [String]
9414
+ #
9415
+ # @!attribute [rw] bot_recommendation_id
9416
+ # The unique identifier of the bot recommendation associated with the
9417
+ # transcripts to search.
9418
+ # @return [String]
9419
+ #
9420
+ # @!attribute [rw] next_index
9421
+ # A index that indicates whether there are more results to return in a
9422
+ # response to the SearchAssociatedTranscripts operation. If the
9423
+ # nextIndex field is present, you send the contents as the nextIndex
9424
+ # parameter of a SearchAssociatedTranscriptsRequest operation to get
9425
+ # the next page of results.
9426
+ # @return [Integer]
9427
+ #
9428
+ # @!attribute [rw] associated_transcripts
9429
+ # The object that contains the associated transcript that meet the
9430
+ # criteria you specified.
9431
+ # @return [Array<Types::AssociatedTranscript>]
9432
+ #
9433
+ # @!attribute [rw] total_results
9434
+ # The total number of transcripts returned by the search.
9435
+ # @return [Integer]
9436
+ #
9437
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/SearchAssociatedTranscriptsResponse AWS API Documentation
9438
+ #
9439
+ class SearchAssociatedTranscriptsResponse < Struct.new(
9440
+ :bot_id,
9441
+ :bot_version,
9442
+ :locale_id,
9443
+ :bot_recommendation_id,
9444
+ :next_index,
9445
+ :associated_transcripts,
9446
+ :total_results)
9447
+ SENSITIVE = []
9448
+ include Aws::Structure
9449
+ end
9450
+
8523
9451
  # Determines whether Amazon Lex will use Amazon Comprehend to detect the
8524
9452
  # sentiment of user utterances.
8525
9453
  #
@@ -8750,7 +9678,7 @@ module Aws::LexModelsV2
8750
9678
  # data as a hash:
8751
9679
  #
8752
9680
  # {
8753
- # name: "SlotTypeName", # required, accepts SlotTypeName
9681
+ # name: "SlotTypeName", # required, accepts SlotTypeName, ExternalSourceType
8754
9682
  # values: ["FilterValue"], # required
8755
9683
  # operator: "CO", # required, accepts CO, EQ
8756
9684
  # }
@@ -8807,6 +9735,22 @@ module Aws::LexModelsV2
8807
9735
  include Aws::Structure
8808
9736
  end
8809
9737
 
9738
+ # The object that contains the statistical summary of the recommended
9739
+ # slot type associated with the bot recommendation.
9740
+ #
9741
+ # @!attribute [rw] discovered_slot_type_count
9742
+ # The number of recommended slot types associated with the bot
9743
+ # recommendation.
9744
+ # @return [Integer]
9745
+ #
9746
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/SlotTypeStatistics AWS API Documentation
9747
+ #
9748
+ class SlotTypeStatistics < Struct.new(
9749
+ :discovered_slot_type_count)
9750
+ SENSITIVE = []
9751
+ include Aws::Structure
9752
+ end
9753
+
8810
9754
  # Provides summary information about a slot type.
8811
9755
  #
8812
9756
  # @!attribute [rw] slot_type_id
@@ -8831,6 +9775,27 @@ module Aws::LexModelsV2
8831
9775
  # updated.
8832
9776
  # @return [Time]
8833
9777
  #
9778
+ # @!attribute [rw] slot_type_category
9779
+ # Indicates the type of the slot type.
9780
+ #
9781
+ # * `Custom` - A slot type that you created using custom values. For
9782
+ # more information, see [Creating custom slot types][1].
9783
+ #
9784
+ # * `Extended` - A slot type created by extending the
9785
+ # AMAZON.AlphaNumeric built-in slot type. For more information, see
9786
+ # [AMAZON.AlphaNumeric][2].
9787
+ #
9788
+ # * `ExternalGrammar` - A slot type using a custom GRXML grammar to
9789
+ # define values. For more information, see [Using a custom grammar
9790
+ # slot type][3].
9791
+ #
9792
+ #
9793
+ #
9794
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/custom-slot-types.html
9795
+ # [2]: https://docs.aws.amazon.com/lexv2/latest/dg/built-in-slot-alphanumerice.html
9796
+ # [3]: https://docs.aws.amazon.com/lexv2/latest/dg/building-grxml.html
9797
+ # @return [String]
9798
+ #
8834
9799
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/SlotTypeSummary AWS API Documentation
8835
9800
  #
8836
9801
  class SlotTypeSummary < Struct.new(
@@ -8838,7 +9803,8 @@ module Aws::LexModelsV2
8838
9803
  :slot_type_name,
8839
9804
  :description,
8840
9805
  :parent_slot_type_signature,
8841
- :last_updated_date_time)
9806
+ :last_updated_date_time,
9807
+ :slot_type_category)
8842
9808
  SENSITIVE = []
8843
9809
  include Aws::Structure
8844
9810
  end
@@ -9236,6 +10202,139 @@ module Aws::LexModelsV2
9236
10202
  include Aws::Structure
9237
10203
  end
9238
10204
 
10205
+ # @note When making an API call, you may pass StartBotRecommendationRequest
10206
+ # data as a hash:
10207
+ #
10208
+ # {
10209
+ # bot_id: "Id", # required
10210
+ # bot_version: "DraftBotVersion", # required
10211
+ # locale_id: "LocaleId", # required
10212
+ # transcript_source_setting: { # required
10213
+ # s3_bucket_transcript_source: {
10214
+ # s3_bucket_name: "S3BucketName", # required
10215
+ # path_format: {
10216
+ # object_prefixes: ["ObjectPrefix"],
10217
+ # },
10218
+ # transcript_format: "Lex", # required, accepts Lex
10219
+ # transcript_filter: {
10220
+ # lex_transcript_filter: {
10221
+ # date_range_filter: {
10222
+ # start_date_time: Time.now, # required
10223
+ # end_date_time: Time.now, # required
10224
+ # },
10225
+ # },
10226
+ # },
10227
+ # kms_key_arn: "KmsKeyArn",
10228
+ # },
10229
+ # },
10230
+ # encryption_setting: {
10231
+ # kms_key_arn: "KmsKeyArn",
10232
+ # bot_locale_export_password: "FilePassword",
10233
+ # associated_transcripts_password: "FilePassword",
10234
+ # },
10235
+ # }
10236
+ #
10237
+ # @!attribute [rw] bot_id
10238
+ # The unique identifier of the bot containing the bot recommendation.
10239
+ # @return [String]
10240
+ #
10241
+ # @!attribute [rw] bot_version
10242
+ # The version of the bot containing the bot recommendation.
10243
+ # @return [String]
10244
+ #
10245
+ # @!attribute [rw] locale_id
10246
+ # The identifier of the language and locale of the bot recommendation
10247
+ # to start. The string must match one of the supported locales. For
10248
+ # more information, see [Supported languages][1]
10249
+ #
10250
+ #
10251
+ #
10252
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
10253
+ # @return [String]
10254
+ #
10255
+ # @!attribute [rw] transcript_source_setting
10256
+ # The object representing the Amazon S3 bucket containing the
10257
+ # transcript, as well as the associated metadata.
10258
+ # @return [Types::TranscriptSourceSetting]
10259
+ #
10260
+ # @!attribute [rw] encryption_setting
10261
+ # The object representing the passwords that will be used to encrypt
10262
+ # the data related to the bot recommendation results, as well as the
10263
+ # KMS key ARN used to encrypt the associated metadata.
10264
+ # @return [Types::EncryptionSetting]
10265
+ #
10266
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/StartBotRecommendationRequest AWS API Documentation
10267
+ #
10268
+ class StartBotRecommendationRequest < Struct.new(
10269
+ :bot_id,
10270
+ :bot_version,
10271
+ :locale_id,
10272
+ :transcript_source_setting,
10273
+ :encryption_setting)
10274
+ SENSITIVE = []
10275
+ include Aws::Structure
10276
+ end
10277
+
10278
+ # @!attribute [rw] bot_id
10279
+ # The unique identifier of the bot containing the bot recommendation.
10280
+ # @return [String]
10281
+ #
10282
+ # @!attribute [rw] bot_version
10283
+ # The version of the bot containing the bot recommendation.
10284
+ # @return [String]
10285
+ #
10286
+ # @!attribute [rw] locale_id
10287
+ # The identifier of the language and locale of the bot recommendation
10288
+ # to start. The string must match one of the supported locales. For
10289
+ # more information, see [Supported languages][1]
10290
+ #
10291
+ #
10292
+ #
10293
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
10294
+ # @return [String]
10295
+ #
10296
+ # @!attribute [rw] bot_recommendation_status
10297
+ # The status of the bot recommendation.
10298
+ #
10299
+ # If the status is Failed, then the reasons for the failure are listed
10300
+ # in the failureReasons field.
10301
+ # @return [String]
10302
+ #
10303
+ # @!attribute [rw] bot_recommendation_id
10304
+ # The identifier of the bot recommendation that you have created.
10305
+ # @return [String]
10306
+ #
10307
+ # @!attribute [rw] creation_date_time
10308
+ # A timestamp of the date and time that the bot recommendation was
10309
+ # created.
10310
+ # @return [Time]
10311
+ #
10312
+ # @!attribute [rw] transcript_source_setting
10313
+ # The object representing the Amazon S3 bucket containing the
10314
+ # transcript, as well as the associated metadata.
10315
+ # @return [Types::TranscriptSourceSetting]
10316
+ #
10317
+ # @!attribute [rw] encryption_setting
10318
+ # The object representing the passwords that were used to encrypt the
10319
+ # data related to the bot recommendation results, as well as the KMS
10320
+ # key ARN used to encrypt the associated metadata.
10321
+ # @return [Types::EncryptionSetting]
10322
+ #
10323
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/StartBotRecommendationResponse AWS API Documentation
10324
+ #
10325
+ class StartBotRecommendationResponse < Struct.new(
10326
+ :bot_id,
10327
+ :bot_version,
10328
+ :locale_id,
10329
+ :bot_recommendation_status,
10330
+ :bot_recommendation_id,
10331
+ :creation_date_time,
10332
+ :transcript_source_setting,
10333
+ :encryption_setting)
10334
+ SENSITIVE = []
10335
+ include Aws::Structure
10336
+ end
10337
+
9239
10338
  # @note When making an API call, you may pass StartImportRequest
9240
10339
  # data as a hash:
9241
10340
  #
@@ -9267,7 +10366,7 @@ module Aws::LexModelsV2
9267
10366
  # },
9268
10367
  # },
9269
10368
  # },
9270
- # merge_strategy: "Overwrite", # required, accepts Overwrite, FailOnConflict
10369
+ # merge_strategy: "Overwrite", # required, accepts Overwrite, FailOnConflict, Append
9271
10370
  # file_password: "ImportExportFilePassword",
9272
10371
  # }
9273
10372
  #
@@ -9546,6 +10645,72 @@ module Aws::LexModelsV2
9546
10645
  include Aws::Structure
9547
10646
  end
9548
10647
 
10648
+ # The object representing the filter that Amazon Lex will use to select
10649
+ # the appropriate transcript.
10650
+ #
10651
+ # @note When making an API call, you may pass TranscriptFilter
10652
+ # data as a hash:
10653
+ #
10654
+ # {
10655
+ # lex_transcript_filter: {
10656
+ # date_range_filter: {
10657
+ # start_date_time: Time.now, # required
10658
+ # end_date_time: Time.now, # required
10659
+ # },
10660
+ # },
10661
+ # }
10662
+ #
10663
+ # @!attribute [rw] lex_transcript_filter
10664
+ # The object representing the filter that Amazon Lex will use to
10665
+ # select the appropriate transcript when the transcript format is the
10666
+ # Amazon Lex format.
10667
+ # @return [Types::LexTranscriptFilter]
10668
+ #
10669
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/TranscriptFilter AWS API Documentation
10670
+ #
10671
+ class TranscriptFilter < Struct.new(
10672
+ :lex_transcript_filter)
10673
+ SENSITIVE = []
10674
+ include Aws::Structure
10675
+ end
10676
+
10677
+ # Indicates the setting of the location where the transcript is stored.
10678
+ #
10679
+ # @note When making an API call, you may pass TranscriptSourceSetting
10680
+ # data as a hash:
10681
+ #
10682
+ # {
10683
+ # s3_bucket_transcript_source: {
10684
+ # s3_bucket_name: "S3BucketName", # required
10685
+ # path_format: {
10686
+ # object_prefixes: ["ObjectPrefix"],
10687
+ # },
10688
+ # transcript_format: "Lex", # required, accepts Lex
10689
+ # transcript_filter: {
10690
+ # lex_transcript_filter: {
10691
+ # date_range_filter: {
10692
+ # start_date_time: Time.now, # required
10693
+ # end_date_time: Time.now, # required
10694
+ # },
10695
+ # },
10696
+ # },
10697
+ # kms_key_arn: "KmsKeyArn",
10698
+ # },
10699
+ # }
10700
+ #
10701
+ # @!attribute [rw] s3_bucket_transcript_source
10702
+ # Indicates the setting of the Amazon S3 bucket where the transcript
10703
+ # is stored.
10704
+ # @return [Types::S3BucketTranscriptSource]
10705
+ #
10706
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/TranscriptSourceSetting AWS API Documentation
10707
+ #
10708
+ class TranscriptSourceSetting < Struct.new(
10709
+ :s3_bucket_transcript_source)
10710
+ SENSITIVE = []
10711
+ include Aws::Structure
10712
+ end
10713
+
9549
10714
  # @note When making an API call, you may pass UntagResourceRequest
9550
10715
  # data as a hash:
9551
10716
  #
@@ -9853,6 +11018,11 @@ module Aws::LexModelsV2
9853
11018
  # A timestamp of the date and time that the locale was last updated.
9854
11019
  # @return [Time]
9855
11020
  #
11021
+ # @!attribute [rw] recommended_actions
11022
+ # Recommended actions to take to resolve an error in the
11023
+ # `failureReasons` field.
11024
+ # @return [Array<String>]
11025
+ #
9856
11026
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotLocaleResponse AWS API Documentation
9857
11027
  #
9858
11028
  class UpdateBotLocaleResponse < Struct.new(
@@ -9866,7 +11036,133 @@ module Aws::LexModelsV2
9866
11036
  :bot_locale_status,
9867
11037
  :failure_reasons,
9868
11038
  :creation_date_time,
9869
- :last_updated_date_time)
11039
+ :last_updated_date_time,
11040
+ :recommended_actions)
11041
+ SENSITIVE = []
11042
+ include Aws::Structure
11043
+ end
11044
+
11045
+ # @note When making an API call, you may pass UpdateBotRecommendationRequest
11046
+ # data as a hash:
11047
+ #
11048
+ # {
11049
+ # bot_id: "Id", # required
11050
+ # bot_version: "DraftBotVersion", # required
11051
+ # locale_id: "LocaleId", # required
11052
+ # bot_recommendation_id: "Id", # required
11053
+ # encryption_setting: { # required
11054
+ # kms_key_arn: "KmsKeyArn",
11055
+ # bot_locale_export_password: "FilePassword",
11056
+ # associated_transcripts_password: "FilePassword",
11057
+ # },
11058
+ # }
11059
+ #
11060
+ # @!attribute [rw] bot_id
11061
+ # The unique identifier of the bot containing the bot recommendation
11062
+ # to be updated.
11063
+ # @return [String]
11064
+ #
11065
+ # @!attribute [rw] bot_version
11066
+ # The version of the bot containing the bot recommendation to be
11067
+ # updated.
11068
+ # @return [String]
11069
+ #
11070
+ # @!attribute [rw] locale_id
11071
+ # The identifier of the language and locale of the bot recommendation
11072
+ # to update. The string must match one of the supported locales. For
11073
+ # more information, see [Supported languages][1]
11074
+ #
11075
+ #
11076
+ #
11077
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
11078
+ # @return [String]
11079
+ #
11080
+ # @!attribute [rw] bot_recommendation_id
11081
+ # The unique identifier of the bot recommendation to be updated.
11082
+ # @return [String]
11083
+ #
11084
+ # @!attribute [rw] encryption_setting
11085
+ # The object representing the passwords that will be used to encrypt
11086
+ # the data related to the bot recommendation results, as well as the
11087
+ # KMS key ARN used to encrypt the associated metadata.
11088
+ # @return [Types::EncryptionSetting]
11089
+ #
11090
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotRecommendationRequest AWS API Documentation
11091
+ #
11092
+ class UpdateBotRecommendationRequest < Struct.new(
11093
+ :bot_id,
11094
+ :bot_version,
11095
+ :locale_id,
11096
+ :bot_recommendation_id,
11097
+ :encryption_setting)
11098
+ SENSITIVE = []
11099
+ include Aws::Structure
11100
+ end
11101
+
11102
+ # @!attribute [rw] bot_id
11103
+ # The unique identifier of the bot containing the bot recommendation
11104
+ # that has been updated.
11105
+ # @return [String]
11106
+ #
11107
+ # @!attribute [rw] bot_version
11108
+ # The version of the bot containing the bot recommendation that has
11109
+ # been updated.
11110
+ # @return [String]
11111
+ #
11112
+ # @!attribute [rw] locale_id
11113
+ # The identifier of the language and locale of the bot recommendation
11114
+ # to update. The string must match one of the supported locales. For
11115
+ # more information, see [Supported languages][1]
11116
+ #
11117
+ #
11118
+ #
11119
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
11120
+ # @return [String]
11121
+ #
11122
+ # @!attribute [rw] bot_recommendation_status
11123
+ # The status of the bot recommendation.
11124
+ #
11125
+ # If the status is Failed, then the reasons for the failure are listed
11126
+ # in the failureReasons field.
11127
+ # @return [String]
11128
+ #
11129
+ # @!attribute [rw] bot_recommendation_id
11130
+ # The unique identifier of the bot recommendation to be updated.
11131
+ # @return [String]
11132
+ #
11133
+ # @!attribute [rw] creation_date_time
11134
+ # A timestamp of the date and time that the bot recommendation was
11135
+ # created.
11136
+ # @return [Time]
11137
+ #
11138
+ # @!attribute [rw] last_updated_date_time
11139
+ # A timestamp of the date and time that the bot recommendation was
11140
+ # last updated.
11141
+ # @return [Time]
11142
+ #
11143
+ # @!attribute [rw] transcript_source_setting
11144
+ # The object representing the Amazon S3 bucket containing the
11145
+ # transcript, as well as the associated metadata.
11146
+ # @return [Types::TranscriptSourceSetting]
11147
+ #
11148
+ # @!attribute [rw] encryption_setting
11149
+ # The object representing the passwords that were used to encrypt the
11150
+ # data related to the bot recommendation results, as well as the KMS
11151
+ # key ARN used to encrypt the associated metadata.
11152
+ # @return [Types::EncryptionSetting]
11153
+ #
11154
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotRecommendationResponse AWS API Documentation
11155
+ #
11156
+ class UpdateBotRecommendationResponse < Struct.new(
11157
+ :bot_id,
11158
+ :bot_version,
11159
+ :locale_id,
11160
+ :bot_recommendation_status,
11161
+ :bot_recommendation_id,
11162
+ :creation_date_time,
11163
+ :last_updated_date_time,
11164
+ :transcript_source_setting,
11165
+ :encryption_setting)
9870
11166
  SENSITIVE = []
9871
11167
  include Aws::Structure
9872
11168
  end
@@ -11245,7 +12541,7 @@ module Aws::LexModelsV2
11245
12541
  # ],
11246
12542
  # },
11247
12543
  # ],
11248
- # value_selection_setting: { # required
12544
+ # value_selection_setting: {
11249
12545
  # resolution_strategy: "OriginalValue", # required, accepts OriginalValue, TopResolution
11250
12546
  # regex_filter: {
11251
12547
  # pattern: "RegexPattern", # required
@@ -11255,6 +12551,15 @@ module Aws::LexModelsV2
11255
12551
  # bot_id: "Id", # required
11256
12552
  # bot_version: "DraftBotVersion", # required
11257
12553
  # locale_id: "LocaleId", # required
12554
+ # external_source_setting: {
12555
+ # grammar_slot_type_setting: {
12556
+ # source: {
12557
+ # s3_bucket_name: "S3BucketName", # required
12558
+ # s3_object_key: "S3ObjectPath", # required
12559
+ # kms_key_arn: "KmsKeyArn",
12560
+ # },
12561
+ # },
12562
+ # },
11258
12563
  # }
11259
12564
  #
11260
12565
  # @!attribute [rw] slot_type_id
@@ -11302,6 +12607,11 @@ module Aws::LexModelsV2
11302
12607
  # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
11303
12608
  # @return [String]
11304
12609
  #
12610
+ # @!attribute [rw] external_source_setting
12611
+ # Provides information about the external source of the slot type's
12612
+ # definition.
12613
+ # @return [Types::ExternalSourceSetting]
12614
+ #
11305
12615
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlotTypeRequest AWS API Documentation
11306
12616
  #
11307
12617
  class UpdateSlotTypeRequest < Struct.new(
@@ -11313,7 +12623,8 @@ module Aws::LexModelsV2
11313
12623
  :parent_slot_type_signature,
11314
12624
  :bot_id,
11315
12625
  :bot_version,
11316
- :locale_id)
12626
+ :locale_id,
12627
+ :external_source_setting)
11317
12628
  SENSITIVE = []
11318
12629
  include Aws::Structure
11319
12630
  end
@@ -11366,6 +12677,11 @@ module Aws::LexModelsV2
11366
12677
  # updated.
11367
12678
  # @return [Time]
11368
12679
  #
12680
+ # @!attribute [rw] external_source_setting
12681
+ # Provides information about the external source of the slot type's
12682
+ # definition.
12683
+ # @return [Types::ExternalSourceSetting]
12684
+ #
11369
12685
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlotTypeResponse AWS API Documentation
11370
12686
  #
11371
12687
  class UpdateSlotTypeResponse < Struct.new(
@@ -11379,7 +12695,8 @@ module Aws::LexModelsV2
11379
12695
  :bot_version,
11380
12696
  :locale_id,
11381
12697
  :creation_date_time,
11382
- :last_updated_date_time)
12698
+ :last_updated_date_time,
12699
+ :external_source_setting)
11383
12700
  SENSITIVE = []
11384
12701
  include Aws::Structure
11385
12702
  end
@@ -11440,12 +12757,15 @@ module Aws::LexModelsV2
11440
12757
  #
11441
12758
  # @!attribute [rw] engine
11442
12759
  # Indicates the type of Amazon Polly voice that Amazon Lex should use
11443
- # for voice interaction with the user. For more information, see
11444
- # [Voices in Amazon Polly][1].
12760
+ # for voice interaction with the user. For more information, see the [
12761
+ # `engine` parameter of the `SynthesizeSpeech` operation][1] in the
12762
+ # *Amazon Polly developer guide*.
12763
+ #
12764
+ # If you do not specify a value, the default is `standard`.
11445
12765
  #
11446
12766
  #
11447
12767
  #
11448
- # [1]: https://docs.aws.amazon.com/polly/latest/dg/voicelist.html
12768
+ # [1]: https://docs.aws.amazon.com/polly/latest/dg/API_SynthesizeSpeech.html#polly-SynthesizeSpeech-request-Engine
11449
12769
  # @return [String]
11450
12770
  #
11451
12771
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/VoiceSettings AWS API Documentation