aws-sdk-applicationinsights 1.31.0 → 1.51.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.
@@ -14,12 +14,16 @@ module Aws::ApplicationInsights
14
14
  include Seahorse::Model
15
15
 
16
16
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ AccountId = Shapes::StringShape.new(name: 'AccountId')
18
+ AddWorkloadRequest = Shapes::StructureShape.new(name: 'AddWorkloadRequest')
19
+ AddWorkloadResponse = Shapes::StructureShape.new(name: 'AddWorkloadResponse')
17
20
  AffectedResource = Shapes::StringShape.new(name: 'AffectedResource')
18
21
  AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
19
22
  ApplicationComponent = Shapes::StructureShape.new(name: 'ApplicationComponent')
20
23
  ApplicationComponentList = Shapes::ListShape.new(name: 'ApplicationComponentList')
21
24
  ApplicationInfo = Shapes::StructureShape.new(name: 'ApplicationInfo')
22
25
  ApplicationInfoList = Shapes::ListShape.new(name: 'ApplicationInfoList')
26
+ AttachMissingPermission = Shapes::BooleanShape.new(name: 'AttachMissingPermission')
23
27
  AutoConfigEnabled = Shapes::BooleanShape.new(name: 'AutoConfigEnabled')
24
28
  AutoCreate = Shapes::BooleanShape.new(name: 'AutoCreate')
25
29
  BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
@@ -71,6 +75,8 @@ module Aws::ApplicationInsights
71
75
  DescribeProblemObservationsResponse = Shapes::StructureShape.new(name: 'DescribeProblemObservationsResponse')
72
76
  DescribeProblemRequest = Shapes::StructureShape.new(name: 'DescribeProblemRequest')
73
77
  DescribeProblemResponse = Shapes::StructureShape.new(name: 'DescribeProblemResponse')
78
+ DescribeWorkloadRequest = Shapes::StructureShape.new(name: 'DescribeWorkloadRequest')
79
+ DescribeWorkloadResponse = Shapes::StructureShape.new(name: 'DescribeWorkloadResponse')
74
80
  DetectedWorkload = Shapes::MapShape.new(name: 'DetectedWorkload')
75
81
  DiscoveryType = Shapes::StringShape.new(name: 'DiscoveryType')
76
82
  EbsCause = Shapes::StringShape.new(name: 'EbsCause')
@@ -109,6 +115,8 @@ module Aws::ApplicationInsights
109
115
  ListProblemsResponse = Shapes::StructureShape.new(name: 'ListProblemsResponse')
110
116
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
111
117
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
118
+ ListWorkloadsRequest = Shapes::StructureShape.new(name: 'ListWorkloadsRequest')
119
+ ListWorkloadsResponse = Shapes::StructureShape.new(name: 'ListWorkloadsResponse')
112
120
  LogFilter = Shapes::StringShape.new(name: 'LogFilter')
113
121
  LogGroup = Shapes::StringShape.new(name: 'LogGroup')
114
122
  LogPattern = Shapes::StructureShape.new(name: 'LogPattern')
@@ -137,10 +145,14 @@ module Aws::ApplicationInsights
137
145
  ProblemList = Shapes::ListShape.new(name: 'ProblemList')
138
146
  RdsEventCategories = Shapes::StringShape.new(name: 'RdsEventCategories')
139
147
  RdsEventMessage = Shapes::StringShape.new(name: 'RdsEventMessage')
148
+ RecommendationType = Shapes::StringShape.new(name: 'RecommendationType')
140
149
  RecurringCount = Shapes::IntegerShape.new(name: 'RecurringCount')
141
150
  RelatedObservations = Shapes::StructureShape.new(name: 'RelatedObservations')
142
151
  Remarks = Shapes::StringShape.new(name: 'Remarks')
143
152
  RemoveSNSTopic = Shapes::BooleanShape.new(name: 'RemoveSNSTopic')
153
+ RemoveWorkloadRequest = Shapes::StructureShape.new(name: 'RemoveWorkloadRequest')
154
+ RemoveWorkloadResponse = Shapes::StructureShape.new(name: 'RemoveWorkloadResponse')
155
+ ResolutionMethod = Shapes::StringShape.new(name: 'ResolutionMethod')
144
156
  ResourceARN = Shapes::StringShape.new(name: 'ResourceARN')
145
157
  ResourceGroupName = Shapes::StringShape.new(name: 'ResourceGroupName')
146
158
  ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
@@ -179,9 +191,20 @@ module Aws::ApplicationInsights
179
191
  UpdateComponentResponse = Shapes::StructureShape.new(name: 'UpdateComponentResponse')
180
192
  UpdateLogPatternRequest = Shapes::StructureShape.new(name: 'UpdateLogPatternRequest')
181
193
  UpdateLogPatternResponse = Shapes::StructureShape.new(name: 'UpdateLogPatternResponse')
194
+ UpdateProblemRequest = Shapes::StructureShape.new(name: 'UpdateProblemRequest')
195
+ UpdateProblemResponse = Shapes::StructureShape.new(name: 'UpdateProblemResponse')
196
+ UpdateStatus = Shapes::StringShape.new(name: 'UpdateStatus')
197
+ UpdateWorkloadRequest = Shapes::StructureShape.new(name: 'UpdateWorkloadRequest')
198
+ UpdateWorkloadResponse = Shapes::StructureShape.new(name: 'UpdateWorkloadResponse')
182
199
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
183
200
  Value = Shapes::FloatShape.new(name: 'Value')
201
+ Visibility = Shapes::StringShape.new(name: 'Visibility')
202
+ Workload = Shapes::StructureShape.new(name: 'Workload')
203
+ WorkloadConfiguration = Shapes::StructureShape.new(name: 'WorkloadConfiguration')
204
+ WorkloadId = Shapes::StringShape.new(name: 'WorkloadId')
205
+ WorkloadList = Shapes::ListShape.new(name: 'WorkloadList')
184
206
  WorkloadMetaData = Shapes::MapShape.new(name: 'WorkloadMetaData')
207
+ WorkloadName = Shapes::StringShape.new(name: 'WorkloadName')
185
208
  XRayErrorPercent = Shapes::IntegerShape.new(name: 'XRayErrorPercent')
186
209
  XRayFaultPercent = Shapes::IntegerShape.new(name: 'XRayFaultPercent')
187
210
  XRayNodeName = Shapes::StringShape.new(name: 'XRayNodeName')
@@ -193,6 +216,15 @@ module Aws::ApplicationInsights
193
216
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMsg, location_name: "Message"))
194
217
  AccessDeniedException.struct_class = Types::AccessDeniedException
195
218
 
219
+ AddWorkloadRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
220
+ AddWorkloadRequest.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, required: true, location_name: "ComponentName"))
221
+ AddWorkloadRequest.add_member(:workload_configuration, Shapes::ShapeRef.new(shape: WorkloadConfiguration, required: true, location_name: "WorkloadConfiguration"))
222
+ AddWorkloadRequest.struct_class = Types::AddWorkloadRequest
223
+
224
+ AddWorkloadResponse.add_member(:workload_id, Shapes::ShapeRef.new(shape: WorkloadId, location_name: "WorkloadId"))
225
+ AddWorkloadResponse.add_member(:workload_configuration, Shapes::ShapeRef.new(shape: WorkloadConfiguration, location_name: "WorkloadConfiguration"))
226
+ AddWorkloadResponse.struct_class = Types::AddWorkloadResponse
227
+
196
228
  ApplicationComponent.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, location_name: "ComponentName"))
197
229
  ApplicationComponent.add_member(:component_remarks, Shapes::ShapeRef.new(shape: Remarks, location_name: "ComponentRemarks"))
198
230
  ApplicationComponent.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
@@ -204,6 +236,7 @@ module Aws::ApplicationInsights
204
236
 
205
237
  ApplicationComponentList.member = Shapes::ShapeRef.new(shape: ApplicationComponent)
206
238
 
239
+ ApplicationInfo.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
207
240
  ApplicationInfo.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
208
241
  ApplicationInfo.add_member(:life_cycle, Shapes::ShapeRef.new(shape: LifeCycle, location_name: "LifeCycle"))
209
242
  ApplicationInfo.add_member(:ops_item_sns_topic_arn, Shapes::ShapeRef.new(shape: OpsItemSNSTopicArn, location_name: "OpsItemSNSTopicArn"))
@@ -212,6 +245,7 @@ module Aws::ApplicationInsights
212
245
  ApplicationInfo.add_member(:remarks, Shapes::ShapeRef.new(shape: Remarks, location_name: "Remarks"))
213
246
  ApplicationInfo.add_member(:auto_config_enabled, Shapes::ShapeRef.new(shape: AutoConfigEnabled, location_name: "AutoConfigEnabled"))
214
247
  ApplicationInfo.add_member(:discovery_type, Shapes::ShapeRef.new(shape: DiscoveryType, location_name: "DiscoveryType"))
248
+ ApplicationInfo.add_member(:attach_missing_permission, Shapes::ShapeRef.new(shape: AttachMissingPermission, location_name: "AttachMissingPermission"))
215
249
  ApplicationInfo.struct_class = Types::ApplicationInfo
216
250
 
217
251
  ApplicationInfoList.member = Shapes::ShapeRef.new(shape: ApplicationInfo)
@@ -219,6 +253,8 @@ module Aws::ApplicationInsights
219
253
  BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMsg, location_name: "Message"))
220
254
  BadRequestException.struct_class = Types::BadRequestException
221
255
 
256
+ ConfigurationEvent.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
257
+ ConfigurationEvent.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
222
258
  ConfigurationEvent.add_member(:monitored_resource_arn, Shapes::ShapeRef.new(shape: ConfigurationEventMonitoredResourceARN, location_name: "MonitoredResourceARN"))
223
259
  ConfigurationEvent.add_member(:event_status, Shapes::ShapeRef.new(shape: ConfigurationEventStatus, location_name: "EventStatus"))
224
260
  ConfigurationEvent.add_member(:event_resource_type, Shapes::ShapeRef.new(shape: ConfigurationEventResourceType, location_name: "EventResourceType"))
@@ -237,6 +273,7 @@ module Aws::ApplicationInsights
237
273
  CreateApplicationRequest.add_member(:auto_config_enabled, Shapes::ShapeRef.new(shape: AutoConfigEnabled, location_name: "AutoConfigEnabled"))
238
274
  CreateApplicationRequest.add_member(:auto_create, Shapes::ShapeRef.new(shape: AutoCreate, location_name: "AutoCreate"))
239
275
  CreateApplicationRequest.add_member(:grouping_type, Shapes::ShapeRef.new(shape: GroupingType, location_name: "GroupingType"))
276
+ CreateApplicationRequest.add_member(:attach_missing_permission, Shapes::ShapeRef.new(shape: AttachMissingPermission, location_name: "AttachMissingPermission"))
240
277
  CreateApplicationRequest.struct_class = Types::CreateApplicationRequest
241
278
 
242
279
  CreateApplicationResponse.add_member(:application_info, Shapes::ShapeRef.new(shape: ApplicationInfo, location_name: "ApplicationInfo"))
@@ -279,6 +316,7 @@ module Aws::ApplicationInsights
279
316
  DeleteLogPatternResponse.struct_class = Types::DeleteLogPatternResponse
280
317
 
281
318
  DescribeApplicationRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
319
+ DescribeApplicationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
282
320
  DescribeApplicationRequest.struct_class = Types::DescribeApplicationRequest
283
321
 
284
322
  DescribeApplicationResponse.add_member(:application_info, Shapes::ShapeRef.new(shape: ApplicationInfo, location_name: "ApplicationInfo"))
@@ -287,6 +325,8 @@ module Aws::ApplicationInsights
287
325
  DescribeComponentConfigurationRecommendationRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
288
326
  DescribeComponentConfigurationRecommendationRequest.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, required: true, location_name: "ComponentName"))
289
327
  DescribeComponentConfigurationRecommendationRequest.add_member(:tier, Shapes::ShapeRef.new(shape: Tier, required: true, location_name: "Tier"))
328
+ DescribeComponentConfigurationRecommendationRequest.add_member(:workload_name, Shapes::ShapeRef.new(shape: WorkloadName, location_name: "WorkloadName"))
329
+ DescribeComponentConfigurationRecommendationRequest.add_member(:recommendation_type, Shapes::ShapeRef.new(shape: RecommendationType, location_name: "RecommendationType"))
290
330
  DescribeComponentConfigurationRecommendationRequest.struct_class = Types::DescribeComponentConfigurationRecommendationRequest
291
331
 
292
332
  DescribeComponentConfigurationRecommendationResponse.add_member(:component_configuration, Shapes::ShapeRef.new(shape: ComponentConfiguration, location_name: "ComponentConfiguration"))
@@ -294,6 +334,7 @@ module Aws::ApplicationInsights
294
334
 
295
335
  DescribeComponentConfigurationRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
296
336
  DescribeComponentConfigurationRequest.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, required: true, location_name: "ComponentName"))
337
+ DescribeComponentConfigurationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
297
338
  DescribeComponentConfigurationRequest.struct_class = Types::DescribeComponentConfigurationRequest
298
339
 
299
340
  DescribeComponentConfigurationResponse.add_member(:monitor, Shapes::ShapeRef.new(shape: Monitor, location_name: "Monitor"))
@@ -303,6 +344,7 @@ module Aws::ApplicationInsights
303
344
 
304
345
  DescribeComponentRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
305
346
  DescribeComponentRequest.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, required: true, location_name: "ComponentName"))
347
+ DescribeComponentRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
306
348
  DescribeComponentRequest.struct_class = Types::DescribeComponentRequest
307
349
 
308
350
  DescribeComponentResponse.add_member(:application_component, Shapes::ShapeRef.new(shape: ApplicationComponent, location_name: "ApplicationComponent"))
@@ -312,30 +354,46 @@ module Aws::ApplicationInsights
312
354
  DescribeLogPatternRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
313
355
  DescribeLogPatternRequest.add_member(:pattern_set_name, Shapes::ShapeRef.new(shape: LogPatternSetName, required: true, location_name: "PatternSetName"))
314
356
  DescribeLogPatternRequest.add_member(:pattern_name, Shapes::ShapeRef.new(shape: LogPatternName, required: true, location_name: "PatternName"))
357
+ DescribeLogPatternRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
315
358
  DescribeLogPatternRequest.struct_class = Types::DescribeLogPatternRequest
316
359
 
317
360
  DescribeLogPatternResponse.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
361
+ DescribeLogPatternResponse.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
318
362
  DescribeLogPatternResponse.add_member(:log_pattern, Shapes::ShapeRef.new(shape: LogPattern, location_name: "LogPattern"))
319
363
  DescribeLogPatternResponse.struct_class = Types::DescribeLogPatternResponse
320
364
 
321
365
  DescribeObservationRequest.add_member(:observation_id, Shapes::ShapeRef.new(shape: ObservationId, required: true, location_name: "ObservationId"))
366
+ DescribeObservationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
322
367
  DescribeObservationRequest.struct_class = Types::DescribeObservationRequest
323
368
 
324
369
  DescribeObservationResponse.add_member(:observation, Shapes::ShapeRef.new(shape: Observation, location_name: "Observation"))
325
370
  DescribeObservationResponse.struct_class = Types::DescribeObservationResponse
326
371
 
327
372
  DescribeProblemObservationsRequest.add_member(:problem_id, Shapes::ShapeRef.new(shape: ProblemId, required: true, location_name: "ProblemId"))
373
+ DescribeProblemObservationsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
328
374
  DescribeProblemObservationsRequest.struct_class = Types::DescribeProblemObservationsRequest
329
375
 
330
376
  DescribeProblemObservationsResponse.add_member(:related_observations, Shapes::ShapeRef.new(shape: RelatedObservations, location_name: "RelatedObservations"))
331
377
  DescribeProblemObservationsResponse.struct_class = Types::DescribeProblemObservationsResponse
332
378
 
333
379
  DescribeProblemRequest.add_member(:problem_id, Shapes::ShapeRef.new(shape: ProblemId, required: true, location_name: "ProblemId"))
380
+ DescribeProblemRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
334
381
  DescribeProblemRequest.struct_class = Types::DescribeProblemRequest
335
382
 
336
383
  DescribeProblemResponse.add_member(:problem, Shapes::ShapeRef.new(shape: Problem, location_name: "Problem"))
337
384
  DescribeProblemResponse.struct_class = Types::DescribeProblemResponse
338
385
 
386
+ DescribeWorkloadRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
387
+ DescribeWorkloadRequest.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, required: true, location_name: "ComponentName"))
388
+ DescribeWorkloadRequest.add_member(:workload_id, Shapes::ShapeRef.new(shape: WorkloadId, required: true, location_name: "WorkloadId"))
389
+ DescribeWorkloadRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
390
+ DescribeWorkloadRequest.struct_class = Types::DescribeWorkloadRequest
391
+
392
+ DescribeWorkloadResponse.add_member(:workload_id, Shapes::ShapeRef.new(shape: WorkloadId, location_name: "WorkloadId"))
393
+ DescribeWorkloadResponse.add_member(:workload_remarks, Shapes::ShapeRef.new(shape: Remarks, location_name: "WorkloadRemarks"))
394
+ DescribeWorkloadResponse.add_member(:workload_configuration, Shapes::ShapeRef.new(shape: WorkloadConfiguration, location_name: "WorkloadConfiguration"))
395
+ DescribeWorkloadResponse.struct_class = Types::DescribeWorkloadResponse
396
+
339
397
  DetectedWorkload.key = Shapes::ShapeRef.new(shape: Tier)
340
398
  DetectedWorkload.value = Shapes::ShapeRef.new(shape: WorkloadMetaData)
341
399
 
@@ -347,6 +405,7 @@ module Aws::ApplicationInsights
347
405
 
348
406
  ListApplicationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
349
407
  ListApplicationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
408
+ ListApplicationsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
350
409
  ListApplicationsRequest.struct_class = Types::ListApplicationsRequest
351
410
 
352
411
  ListApplicationsResponse.add_member(:application_info_list, Shapes::ShapeRef.new(shape: ApplicationInfoList, location_name: "ApplicationInfoList"))
@@ -356,6 +415,7 @@ module Aws::ApplicationInsights
356
415
  ListComponentsRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
357
416
  ListComponentsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
358
417
  ListComponentsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
418
+ ListComponentsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
359
419
  ListComponentsRequest.struct_class = Types::ListComponentsRequest
360
420
 
361
421
  ListComponentsResponse.add_member(:application_component_list, Shapes::ShapeRef.new(shape: ApplicationComponentList, location_name: "ApplicationComponentList"))
@@ -368,6 +428,7 @@ module Aws::ApplicationInsights
368
428
  ListConfigurationHistoryRequest.add_member(:event_status, Shapes::ShapeRef.new(shape: ConfigurationEventStatus, location_name: "EventStatus"))
369
429
  ListConfigurationHistoryRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
370
430
  ListConfigurationHistoryRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
431
+ ListConfigurationHistoryRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
371
432
  ListConfigurationHistoryRequest.struct_class = Types::ListConfigurationHistoryRequest
372
433
 
373
434
  ListConfigurationHistoryResponse.add_member(:event_list, Shapes::ShapeRef.new(shape: ConfigurationEventList, location_name: "EventList"))
@@ -377,9 +438,11 @@ module Aws::ApplicationInsights
377
438
  ListLogPatternSetsRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
378
439
  ListLogPatternSetsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
379
440
  ListLogPatternSetsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
441
+ ListLogPatternSetsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
380
442
  ListLogPatternSetsRequest.struct_class = Types::ListLogPatternSetsRequest
381
443
 
382
444
  ListLogPatternSetsResponse.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
445
+ ListLogPatternSetsResponse.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
383
446
  ListLogPatternSetsResponse.add_member(:log_pattern_sets, Shapes::ShapeRef.new(shape: LogPatternSetList, location_name: "LogPatternSets"))
384
447
  ListLogPatternSetsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
385
448
  ListLogPatternSetsResponse.struct_class = Types::ListLogPatternSetsResponse
@@ -388,24 +451,29 @@ module Aws::ApplicationInsights
388
451
  ListLogPatternsRequest.add_member(:pattern_set_name, Shapes::ShapeRef.new(shape: LogPatternSetName, location_name: "PatternSetName"))
389
452
  ListLogPatternsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
390
453
  ListLogPatternsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
454
+ ListLogPatternsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
391
455
  ListLogPatternsRequest.struct_class = Types::ListLogPatternsRequest
392
456
 
393
457
  ListLogPatternsResponse.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
458
+ ListLogPatternsResponse.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
394
459
  ListLogPatternsResponse.add_member(:log_patterns, Shapes::ShapeRef.new(shape: LogPatternList, location_name: "LogPatterns"))
395
460
  ListLogPatternsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
396
461
  ListLogPatternsResponse.struct_class = Types::ListLogPatternsResponse
397
462
 
463
+ ListProblemsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
398
464
  ListProblemsRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
399
465
  ListProblemsRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: StartTime, location_name: "StartTime"))
400
466
  ListProblemsRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: EndTime, location_name: "EndTime"))
401
467
  ListProblemsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
402
468
  ListProblemsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
403
469
  ListProblemsRequest.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, location_name: "ComponentName"))
470
+ ListProblemsRequest.add_member(:visibility, Shapes::ShapeRef.new(shape: Visibility, location_name: "Visibility"))
404
471
  ListProblemsRequest.struct_class = Types::ListProblemsRequest
405
472
 
406
473
  ListProblemsResponse.add_member(:problem_list, Shapes::ShapeRef.new(shape: ProblemList, location_name: "ProblemList"))
407
474
  ListProblemsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
408
475
  ListProblemsResponse.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
476
+ ListProblemsResponse.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
409
477
  ListProblemsResponse.struct_class = Types::ListProblemsResponse
410
478
 
411
479
  ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
@@ -414,6 +482,17 @@ module Aws::ApplicationInsights
414
482
  ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
415
483
  ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
416
484
 
485
+ ListWorkloadsRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
486
+ ListWorkloadsRequest.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, required: true, location_name: "ComponentName"))
487
+ ListWorkloadsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
488
+ ListWorkloadsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
489
+ ListWorkloadsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
490
+ ListWorkloadsRequest.struct_class = Types::ListWorkloadsRequest
491
+
492
+ ListWorkloadsResponse.add_member(:workload_list, Shapes::ShapeRef.new(shape: WorkloadList, location_name: "WorkloadList"))
493
+ ListWorkloadsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
494
+ ListWorkloadsResponse.struct_class = Types::ListWorkloadsResponse
495
+
417
496
  LogPattern.add_member(:pattern_set_name, Shapes::ShapeRef.new(shape: LogPatternSetName, location_name: "PatternSetName"))
418
497
  LogPattern.add_member(:pattern_name, Shapes::ShapeRef.new(shape: LogPatternName, location_name: "PatternName"))
419
498
  LogPattern.add_member(:pattern, Shapes::ShapeRef.new(shape: LogPatternRegex, location_name: "Pattern"))
@@ -481,10 +560,13 @@ module Aws::ApplicationInsights
481
560
  Problem.add_member(:start_time, Shapes::ShapeRef.new(shape: StartTime, location_name: "StartTime"))
482
561
  Problem.add_member(:end_time, Shapes::ShapeRef.new(shape: EndTime, location_name: "EndTime"))
483
562
  Problem.add_member(:severity_level, Shapes::ShapeRef.new(shape: SeverityLevel, location_name: "SeverityLevel"))
563
+ Problem.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
484
564
  Problem.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
485
565
  Problem.add_member(:feedback, Shapes::ShapeRef.new(shape: Feedback, location_name: "Feedback"))
486
566
  Problem.add_member(:recurring_count, Shapes::ShapeRef.new(shape: RecurringCount, location_name: "RecurringCount"))
487
567
  Problem.add_member(:last_recurrence_time, Shapes::ShapeRef.new(shape: LastRecurrenceTime, location_name: "LastRecurrenceTime"))
568
+ Problem.add_member(:visibility, Shapes::ShapeRef.new(shape: Visibility, location_name: "Visibility"))
569
+ Problem.add_member(:resolution_method, Shapes::ShapeRef.new(shape: ResolutionMethod, location_name: "ResolutionMethod"))
488
570
  Problem.struct_class = Types::Problem
489
571
 
490
572
  ProblemList.member = Shapes::ShapeRef.new(shape: Problem)
@@ -492,6 +574,13 @@ module Aws::ApplicationInsights
492
574
  RelatedObservations.add_member(:observation_list, Shapes::ShapeRef.new(shape: ObservationList, location_name: "ObservationList"))
493
575
  RelatedObservations.struct_class = Types::RelatedObservations
494
576
 
577
+ RemoveWorkloadRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
578
+ RemoveWorkloadRequest.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, required: true, location_name: "ComponentName"))
579
+ RemoveWorkloadRequest.add_member(:workload_id, Shapes::ShapeRef.new(shape: WorkloadId, required: true, location_name: "WorkloadId"))
580
+ RemoveWorkloadRequest.struct_class = Types::RemoveWorkloadRequest
581
+
582
+ RemoveWorkloadResponse.struct_class = Types::RemoveWorkloadResponse
583
+
495
584
  ResourceInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMsg, location_name: "Message"))
496
585
  ResourceInUseException.struct_class = Types::ResourceInUseException
497
586
 
@@ -533,6 +622,7 @@ module Aws::ApplicationInsights
533
622
  UpdateApplicationRequest.add_member(:ops_item_sns_topic_arn, Shapes::ShapeRef.new(shape: OpsItemSNSTopicArn, location_name: "OpsItemSNSTopicArn"))
534
623
  UpdateApplicationRequest.add_member(:remove_sns_topic, Shapes::ShapeRef.new(shape: RemoveSNSTopic, location_name: "RemoveSNSTopic"))
535
624
  UpdateApplicationRequest.add_member(:auto_config_enabled, Shapes::ShapeRef.new(shape: AutoConfigEnabled, location_name: "AutoConfigEnabled"))
625
+ UpdateApplicationRequest.add_member(:attach_missing_permission, Shapes::ShapeRef.new(shape: AttachMissingPermission, location_name: "AttachMissingPermission"))
536
626
  UpdateApplicationRequest.struct_class = Types::UpdateApplicationRequest
537
627
 
538
628
  UpdateApplicationResponse.add_member(:application_info, Shapes::ShapeRef.new(shape: ApplicationInfo, location_name: "ApplicationInfo"))
@@ -567,9 +657,40 @@ module Aws::ApplicationInsights
567
657
  UpdateLogPatternResponse.add_member(:log_pattern, Shapes::ShapeRef.new(shape: LogPattern, location_name: "LogPattern"))
568
658
  UpdateLogPatternResponse.struct_class = Types::UpdateLogPatternResponse
569
659
 
660
+ UpdateProblemRequest.add_member(:problem_id, Shapes::ShapeRef.new(shape: ProblemId, required: true, location_name: "ProblemId"))
661
+ UpdateProblemRequest.add_member(:update_status, Shapes::ShapeRef.new(shape: UpdateStatus, location_name: "UpdateStatus"))
662
+ UpdateProblemRequest.add_member(:visibility, Shapes::ShapeRef.new(shape: Visibility, location_name: "Visibility"))
663
+ UpdateProblemRequest.struct_class = Types::UpdateProblemRequest
664
+
665
+ UpdateProblemResponse.struct_class = Types::UpdateProblemResponse
666
+
667
+ UpdateWorkloadRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
668
+ UpdateWorkloadRequest.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, required: true, location_name: "ComponentName"))
669
+ UpdateWorkloadRequest.add_member(:workload_id, Shapes::ShapeRef.new(shape: WorkloadId, location_name: "WorkloadId"))
670
+ UpdateWorkloadRequest.add_member(:workload_configuration, Shapes::ShapeRef.new(shape: WorkloadConfiguration, required: true, location_name: "WorkloadConfiguration"))
671
+ UpdateWorkloadRequest.struct_class = Types::UpdateWorkloadRequest
672
+
673
+ UpdateWorkloadResponse.add_member(:workload_id, Shapes::ShapeRef.new(shape: WorkloadId, location_name: "WorkloadId"))
674
+ UpdateWorkloadResponse.add_member(:workload_configuration, Shapes::ShapeRef.new(shape: WorkloadConfiguration, location_name: "WorkloadConfiguration"))
675
+ UpdateWorkloadResponse.struct_class = Types::UpdateWorkloadResponse
676
+
570
677
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMsg, location_name: "Message"))
571
678
  ValidationException.struct_class = Types::ValidationException
572
679
 
680
+ Workload.add_member(:workload_id, Shapes::ShapeRef.new(shape: WorkloadId, location_name: "WorkloadId"))
681
+ Workload.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, location_name: "ComponentName"))
682
+ Workload.add_member(:workload_name, Shapes::ShapeRef.new(shape: WorkloadName, location_name: "WorkloadName"))
683
+ Workload.add_member(:tier, Shapes::ShapeRef.new(shape: Tier, location_name: "Tier"))
684
+ Workload.add_member(:workload_remarks, Shapes::ShapeRef.new(shape: Remarks, location_name: "WorkloadRemarks"))
685
+ Workload.struct_class = Types::Workload
686
+
687
+ WorkloadConfiguration.add_member(:workload_name, Shapes::ShapeRef.new(shape: WorkloadName, location_name: "WorkloadName"))
688
+ WorkloadConfiguration.add_member(:tier, Shapes::ShapeRef.new(shape: Tier, location_name: "Tier"))
689
+ WorkloadConfiguration.add_member(:configuration, Shapes::ShapeRef.new(shape: ComponentConfiguration, location_name: "Configuration"))
690
+ WorkloadConfiguration.struct_class = Types::WorkloadConfiguration
691
+
692
+ WorkloadList.member = Shapes::ShapeRef.new(shape: Workload)
693
+
573
694
  WorkloadMetaData.key = Shapes::ShapeRef.new(shape: MetaDataKey)
574
695
  WorkloadMetaData.value = Shapes::ShapeRef.new(shape: MetaDataValue)
575
696
 
@@ -581,9 +702,11 @@ module Aws::ApplicationInsights
581
702
 
582
703
  api.metadata = {
583
704
  "apiVersion" => "2018-11-25",
705
+ "auth" => ["aws.auth#sigv4"],
584
706
  "endpointPrefix" => "applicationinsights",
585
707
  "jsonVersion" => "1.1",
586
708
  "protocol" => "json",
709
+ "protocols" => ["json"],
587
710
  "serviceAbbreviation" => "Application Insights",
588
711
  "serviceFullName" => "Amazon CloudWatch Application Insights",
589
712
  "serviceId" => "Application Insights",
@@ -593,6 +716,18 @@ module Aws::ApplicationInsights
593
716
  "uid" => "application-insights-2018-11-25",
594
717
  }
595
718
 
719
+ api.add_operation(:add_workload, Seahorse::Model::Operation.new.tap do |o|
720
+ o.name = "AddWorkload"
721
+ o.http_method = "POST"
722
+ o.http_request_uri = "/"
723
+ o.input = Shapes::ShapeRef.new(shape: AddWorkloadRequest)
724
+ o.output = Shapes::ShapeRef.new(shape: AddWorkloadResponse)
725
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
726
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
727
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
728
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
729
+ end)
730
+
596
731
  api.add_operation(:create_application, Seahorse::Model::Operation.new.tap do |o|
597
732
  o.name = "CreateApplication"
598
733
  o.http_method = "POST"
@@ -754,6 +889,17 @@ module Aws::ApplicationInsights
754
889
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
755
890
  end)
756
891
 
892
+ api.add_operation(:describe_workload, Seahorse::Model::Operation.new.tap do |o|
893
+ o.name = "DescribeWorkload"
894
+ o.http_method = "POST"
895
+ o.http_request_uri = "/"
896
+ o.input = Shapes::ShapeRef.new(shape: DescribeWorkloadRequest)
897
+ o.output = Shapes::ShapeRef.new(shape: DescribeWorkloadResponse)
898
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
899
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
900
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
901
+ end)
902
+
757
903
  api.add_operation(:list_applications, Seahorse::Model::Operation.new.tap do |o|
758
904
  o.name = "ListApplications"
759
905
  o.http_method = "POST"
@@ -865,6 +1011,34 @@ module Aws::ApplicationInsights
865
1011
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
866
1012
  end)
867
1013
 
1014
+ api.add_operation(:list_workloads, Seahorse::Model::Operation.new.tap do |o|
1015
+ o.name = "ListWorkloads"
1016
+ o.http_method = "POST"
1017
+ o.http_request_uri = "/"
1018
+ o.input = Shapes::ShapeRef.new(shape: ListWorkloadsRequest)
1019
+ o.output = Shapes::ShapeRef.new(shape: ListWorkloadsResponse)
1020
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1021
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1022
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1023
+ o[:pager] = Aws::Pager.new(
1024
+ limit_key: "max_results",
1025
+ tokens: {
1026
+ "next_token" => "next_token"
1027
+ }
1028
+ )
1029
+ end)
1030
+
1031
+ api.add_operation(:remove_workload, Seahorse::Model::Operation.new.tap do |o|
1032
+ o.name = "RemoveWorkload"
1033
+ o.http_method = "POST"
1034
+ o.http_request_uri = "/"
1035
+ o.input = Shapes::ShapeRef.new(shape: RemoveWorkloadRequest)
1036
+ o.output = Shapes::ShapeRef.new(shape: RemoveWorkloadResponse)
1037
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1038
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1039
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1040
+ end)
1041
+
868
1042
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
869
1043
  o.name = "TagResource"
870
1044
  o.http_method = "POST"
@@ -918,6 +1092,7 @@ module Aws::ApplicationInsights
918
1092
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
919
1093
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
920
1094
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1095
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
921
1096
  end)
922
1097
 
923
1098
  api.add_operation(:update_log_pattern, Seahorse::Model::Operation.new.tap do |o|
@@ -931,6 +1106,28 @@ module Aws::ApplicationInsights
931
1106
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
932
1107
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
933
1108
  end)
1109
+
1110
+ api.add_operation(:update_problem, Seahorse::Model::Operation.new.tap do |o|
1111
+ o.name = "UpdateProblem"
1112
+ o.http_method = "POST"
1113
+ o.http_request_uri = "/"
1114
+ o.input = Shapes::ShapeRef.new(shape: UpdateProblemRequest)
1115
+ o.output = Shapes::ShapeRef.new(shape: UpdateProblemResponse)
1116
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1117
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1118
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1119
+ end)
1120
+
1121
+ api.add_operation(:update_workload, Seahorse::Model::Operation.new.tap do |o|
1122
+ o.name = "UpdateWorkload"
1123
+ o.http_method = "POST"
1124
+ o.http_request_uri = "/"
1125
+ o.input = Shapes::ShapeRef.new(shape: UpdateWorkloadRequest)
1126
+ o.output = Shapes::ShapeRef.new(shape: UpdateWorkloadResponse)
1127
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1128
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1129
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1130
+ end)
934
1131
  end
935
1132
 
936
1133
  end
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::ApplicationInsights
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::ApplicationInsights
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://applicationinsights-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
+ return Aws::Endpoints::Endpoint.new(url: "https://applicationinsights-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://applicationinsights.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
+ end
46
+ return Aws::Endpoints::Endpoint.new(url: "https://applicationinsights.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
+ end
48
+ end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
+ raise ArgumentError, 'No endpoint could be resolved'
51
+
52
+ end
53
+ end
54
+ end