aws-sdk-lexmodelsv2 1.31.0 → 1.33.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -49,6 +49,7 @@ module Aws::LexModelsV2
49
49
  BotAliasId = Shapes::StringShape.new(name: 'BotAliasId')
50
50
  BotAliasLocaleSettings = Shapes::StructureShape.new(name: 'BotAliasLocaleSettings')
51
51
  BotAliasLocaleSettingsMap = Shapes::MapShape.new(name: 'BotAliasLocaleSettingsMap')
52
+ BotAliasName = Shapes::StringShape.new(name: 'BotAliasName')
52
53
  BotAliasStatus = Shapes::StringShape.new(name: 'BotAliasStatus')
53
54
  BotAliasSummary = Shapes::StructureShape.new(name: 'BotAliasSummary')
54
55
  BotAliasSummaryList = Shapes::ListShape.new(name: 'BotAliasSummaryList')
@@ -72,6 +73,8 @@ module Aws::LexModelsV2
72
73
  BotLocaleStatus = Shapes::StringShape.new(name: 'BotLocaleStatus')
73
74
  BotLocaleSummary = Shapes::StructureShape.new(name: 'BotLocaleSummary')
74
75
  BotLocaleSummaryList = Shapes::ListShape.new(name: 'BotLocaleSummaryList')
76
+ BotMember = Shapes::StructureShape.new(name: 'BotMember')
77
+ BotMembers = Shapes::ListShape.new(name: 'BotMembers')
75
78
  BotRecommendationResultStatistics = Shapes::StructureShape.new(name: 'BotRecommendationResultStatistics')
76
79
  BotRecommendationResults = Shapes::StructureShape.new(name: 'BotRecommendationResults')
77
80
  BotRecommendationStatus = Shapes::StringShape.new(name: 'BotRecommendationStatus')
@@ -82,6 +85,7 @@ module Aws::LexModelsV2
82
85
  BotStatus = Shapes::StringShape.new(name: 'BotStatus')
83
86
  BotSummary = Shapes::StructureShape.new(name: 'BotSummary')
84
87
  BotSummaryList = Shapes::ListShape.new(name: 'BotSummaryList')
88
+ BotType = Shapes::StringShape.new(name: 'BotType')
85
89
  BotVersion = Shapes::StringShape.new(name: 'BotVersion')
86
90
  BotVersionLocaleDetails = Shapes::StructureShape.new(name: 'BotVersionLocaleDetails')
87
91
  BotVersionLocaleSpecification = Shapes::MapShape.new(name: 'BotVersionLocaleSpecification')
@@ -352,6 +356,8 @@ module Aws::LexModelsV2
352
356
  OperationList = Shapes::ListShape.new(name: 'OperationList')
353
357
  OutputContext = Shapes::StructureShape.new(name: 'OutputContext')
354
358
  OutputContextsList = Shapes::ListShape.new(name: 'OutputContextsList')
359
+ ParentBotNetwork = Shapes::StructureShape.new(name: 'ParentBotNetwork')
360
+ ParentBotNetworks = Shapes::ListShape.new(name: 'ParentBotNetworks')
355
361
  PathFormat = Shapes::StructureShape.new(name: 'PathFormat')
356
362
  Phrase = Shapes::StringShape.new(name: 'Phrase')
357
363
  PlainTextMessage = Shapes::StructureShape.new(name: 'PlainTextMessage')
@@ -690,6 +696,15 @@ module Aws::LexModelsV2
690
696
 
691
697
  BotLocaleSummaryList.member = Shapes::ShapeRef.new(shape: BotLocaleSummary)
692
698
 
699
+ BotMember.add_member(:bot_member_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "botMemberId"))
700
+ BotMember.add_member(:bot_member_name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "botMemberName"))
701
+ BotMember.add_member(:bot_member_alias_id, Shapes::ShapeRef.new(shape: BotAliasId, required: true, location_name: "botMemberAliasId"))
702
+ BotMember.add_member(:bot_member_alias_name, Shapes::ShapeRef.new(shape: BotAliasName, required: true, location_name: "botMemberAliasName"))
703
+ BotMember.add_member(:bot_member_version, Shapes::ShapeRef.new(shape: BotVersion, required: true, location_name: "botMemberVersion"))
704
+ BotMember.struct_class = Types::BotMember
705
+
706
+ BotMembers.member = Shapes::ShapeRef.new(shape: BotMember)
707
+
693
708
  BotRecommendationResultStatistics.add_member(:intents, Shapes::ShapeRef.new(shape: IntentStatistics, location_name: "intents"))
694
709
  BotRecommendationResultStatistics.add_member(:slot_types, Shapes::ShapeRef.new(shape: SlotTypeStatistics, location_name: "slotTypes"))
695
710
  BotRecommendationResultStatistics.struct_class = Types::BotRecommendationResultStatistics
@@ -717,6 +732,7 @@ module Aws::LexModelsV2
717
732
  BotSummary.add_member(:bot_status, Shapes::ShapeRef.new(shape: BotStatus, location_name: "botStatus"))
718
733
  BotSummary.add_member(:latest_bot_version, Shapes::ShapeRef.new(shape: NumericalBotVersion, location_name: "latestBotVersion"))
719
734
  BotSummary.add_member(:last_updated_date_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdatedDateTime"))
735
+ BotSummary.add_member(:bot_type, Shapes::ShapeRef.new(shape: BotType, location_name: "botType"))
720
736
  BotSummary.struct_class = Types::BotSummary
721
737
 
722
738
  BotSummaryList.member = Shapes::ShapeRef.new(shape: BotSummary)
@@ -866,6 +882,8 @@ module Aws::LexModelsV2
866
882
  CreateBotRequest.add_member(:idle_session_ttl_in_seconds, Shapes::ShapeRef.new(shape: SessionTTL, required: true, location_name: "idleSessionTTLInSeconds"))
867
883
  CreateBotRequest.add_member(:bot_tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "botTags"))
868
884
  CreateBotRequest.add_member(:test_bot_alias_tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "testBotAliasTags"))
885
+ CreateBotRequest.add_member(:bot_type, Shapes::ShapeRef.new(shape: BotType, location_name: "botType"))
886
+ CreateBotRequest.add_member(:bot_members, Shapes::ShapeRef.new(shape: BotMembers, location_name: "botMembers"))
869
887
  CreateBotRequest.struct_class = Types::CreateBotRequest
870
888
 
871
889
  CreateBotResponse.add_member(:bot_id, Shapes::ShapeRef.new(shape: Id, location_name: "botId"))
@@ -878,6 +896,8 @@ module Aws::LexModelsV2
878
896
  CreateBotResponse.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "creationDateTime"))
879
897
  CreateBotResponse.add_member(:bot_tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "botTags"))
880
898
  CreateBotResponse.add_member(:test_bot_alias_tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "testBotAliasTags"))
899
+ CreateBotResponse.add_member(:bot_type, Shapes::ShapeRef.new(shape: BotType, location_name: "botType"))
900
+ CreateBotResponse.add_member(:bot_members, Shapes::ShapeRef.new(shape: BotMembers, location_name: "botMembers"))
881
901
  CreateBotResponse.struct_class = Types::CreateBotResponse
882
902
 
883
903
  CreateBotVersionRequest.add_member(:bot_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "botId"))
@@ -1191,6 +1211,7 @@ module Aws::LexModelsV2
1191
1211
  DescribeBotAliasResponse.add_member(:bot_id, Shapes::ShapeRef.new(shape: Id, location_name: "botId"))
1192
1212
  DescribeBotAliasResponse.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "creationDateTime"))
1193
1213
  DescribeBotAliasResponse.add_member(:last_updated_date_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdatedDateTime"))
1214
+ DescribeBotAliasResponse.add_member(:parent_bot_networks, Shapes::ShapeRef.new(shape: ParentBotNetworks, location_name: "parentBotNetworks"))
1194
1215
  DescribeBotAliasResponse.struct_class = Types::DescribeBotAliasResponse
1195
1216
 
1196
1217
  DescribeBotLocaleRequest.add_member(:bot_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "botId"))
@@ -1247,6 +1268,9 @@ module Aws::LexModelsV2
1247
1268
  DescribeBotResponse.add_member(:bot_status, Shapes::ShapeRef.new(shape: BotStatus, location_name: "botStatus"))
1248
1269
  DescribeBotResponse.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "creationDateTime"))
1249
1270
  DescribeBotResponse.add_member(:last_updated_date_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdatedDateTime"))
1271
+ DescribeBotResponse.add_member(:bot_type, Shapes::ShapeRef.new(shape: BotType, location_name: "botType"))
1272
+ DescribeBotResponse.add_member(:bot_members, Shapes::ShapeRef.new(shape: BotMembers, location_name: "botMembers"))
1273
+ DescribeBotResponse.add_member(:failure_reasons, Shapes::ShapeRef.new(shape: FailureReasons, location_name: "failureReasons"))
1250
1274
  DescribeBotResponse.struct_class = Types::DescribeBotResponse
1251
1275
 
1252
1276
  DescribeBotVersionRequest.add_member(:bot_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "botId"))
@@ -1263,6 +1287,9 @@ module Aws::LexModelsV2
1263
1287
  DescribeBotVersionResponse.add_member(:bot_status, Shapes::ShapeRef.new(shape: BotStatus, location_name: "botStatus"))
1264
1288
  DescribeBotVersionResponse.add_member(:failure_reasons, Shapes::ShapeRef.new(shape: FailureReasons, location_name: "failureReasons"))
1265
1289
  DescribeBotVersionResponse.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "creationDateTime"))
1290
+ DescribeBotVersionResponse.add_member(:parent_bot_networks, Shapes::ShapeRef.new(shape: ParentBotNetworks, location_name: "parentBotNetworks"))
1291
+ DescribeBotVersionResponse.add_member(:bot_type, Shapes::ShapeRef.new(shape: BotType, location_name: "botType"))
1292
+ DescribeBotVersionResponse.add_member(:bot_members, Shapes::ShapeRef.new(shape: BotMembers, location_name: "botMembers"))
1266
1293
  DescribeBotVersionResponse.struct_class = Types::DescribeBotVersionResponse
1267
1294
 
1268
1295
  DescribeCustomVocabularyMetadataRequest.add_member(:bot_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "botId"))
@@ -1850,6 +1877,12 @@ module Aws::LexModelsV2
1850
1877
 
1851
1878
  OutputContextsList.member = Shapes::ShapeRef.new(shape: OutputContext)
1852
1879
 
1880
+ ParentBotNetwork.add_member(:bot_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "botId"))
1881
+ ParentBotNetwork.add_member(:bot_version, Shapes::ShapeRef.new(shape: BotVersion, required: true, location_name: "botVersion"))
1882
+ ParentBotNetwork.struct_class = Types::ParentBotNetwork
1883
+
1884
+ ParentBotNetworks.member = Shapes::ShapeRef.new(shape: ParentBotNetwork)
1885
+
1853
1886
  PathFormat.add_member(:object_prefixes, Shapes::ShapeRef.new(shape: ObjectPrefixes, location_name: "objectPrefixes"))
1854
1887
  PathFormat.struct_class = Types::PathFormat
1855
1888
 
@@ -2261,6 +2294,8 @@ module Aws::LexModelsV2
2261
2294
  UpdateBotRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
2262
2295
  UpdateBotRequest.add_member(:data_privacy, Shapes::ShapeRef.new(shape: DataPrivacy, required: true, location_name: "dataPrivacy"))
2263
2296
  UpdateBotRequest.add_member(:idle_session_ttl_in_seconds, Shapes::ShapeRef.new(shape: SessionTTL, required: true, location_name: "idleSessionTTLInSeconds"))
2297
+ UpdateBotRequest.add_member(:bot_type, Shapes::ShapeRef.new(shape: BotType, location_name: "botType"))
2298
+ UpdateBotRequest.add_member(:bot_members, Shapes::ShapeRef.new(shape: BotMembers, location_name: "botMembers"))
2264
2299
  UpdateBotRequest.struct_class = Types::UpdateBotRequest
2265
2300
 
2266
2301
  UpdateBotResponse.add_member(:bot_id, Shapes::ShapeRef.new(shape: Id, location_name: "botId"))
@@ -2272,6 +2307,8 @@ module Aws::LexModelsV2
2272
2307
  UpdateBotResponse.add_member(:bot_status, Shapes::ShapeRef.new(shape: BotStatus, location_name: "botStatus"))
2273
2308
  UpdateBotResponse.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "creationDateTime"))
2274
2309
  UpdateBotResponse.add_member(:last_updated_date_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdatedDateTime"))
2310
+ UpdateBotResponse.add_member(:bot_type, Shapes::ShapeRef.new(shape: BotType, location_name: "botType"))
2311
+ UpdateBotResponse.add_member(:bot_members, Shapes::ShapeRef.new(shape: BotMembers, location_name: "botMembers"))
2275
2312
  UpdateBotResponse.struct_class = Types::UpdateBotResponse
2276
2313
 
2277
2314
  UpdateCustomVocabularyItemsList.member = Shapes::ShapeRef.new(shape: CustomVocabularyItem)
@@ -50,6 +50,9 @@ module Aws::LexModelsV2
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
+ if self[:region].nil?
54
+ raise ArgumentError, "Missing required EndpointParameter: :region"
55
+ end
53
56
  self[:use_dual_stack] = options[:use_dual_stack]
54
57
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
58
  if self[:use_dual_stack].nil?
@@ -15,7 +15,7 @@ module Aws::LexModelsV2
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
17
  if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
18
+ if Aws::Endpoints::Matchers.set?(endpoint)
19
19
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
20
  raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
21
  end