aws-sdk-applicationinsights 1.26.0 → 1.41.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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')
@@ -84,6 +90,7 @@ module Aws::ApplicationInsights
84
90
  Feedback = Shapes::MapShape.new(name: 'Feedback')
85
91
  FeedbackKey = Shapes::StringShape.new(name: 'FeedbackKey')
86
92
  FeedbackValue = Shapes::StringShape.new(name: 'FeedbackValue')
93
+ GroupingType = Shapes::StringShape.new(name: 'GroupingType')
87
94
  HealthEventArn = Shapes::StringShape.new(name: 'HealthEventArn')
88
95
  HealthEventDescription = Shapes::StringShape.new(name: 'HealthEventDescription')
89
96
  HealthEventTypeCategory = Shapes::StringShape.new(name: 'HealthEventTypeCategory')
@@ -108,6 +115,8 @@ module Aws::ApplicationInsights
108
115
  ListProblemsResponse = Shapes::StructureShape.new(name: 'ListProblemsResponse')
109
116
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
110
117
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
118
+ ListWorkloadsRequest = Shapes::StructureShape.new(name: 'ListWorkloadsRequest')
119
+ ListWorkloadsResponse = Shapes::StructureShape.new(name: 'ListWorkloadsResponse')
111
120
  LogFilter = Shapes::StringShape.new(name: 'LogFilter')
112
121
  LogGroup = Shapes::StringShape.new(name: 'LogGroup')
113
122
  LogPattern = Shapes::StructureShape.new(name: 'LogPattern')
@@ -136,10 +145,14 @@ module Aws::ApplicationInsights
136
145
  ProblemList = Shapes::ListShape.new(name: 'ProblemList')
137
146
  RdsEventCategories = Shapes::StringShape.new(name: 'RdsEventCategories')
138
147
  RdsEventMessage = Shapes::StringShape.new(name: 'RdsEventMessage')
148
+ RecommendationType = Shapes::StringShape.new(name: 'RecommendationType')
139
149
  RecurringCount = Shapes::IntegerShape.new(name: 'RecurringCount')
140
150
  RelatedObservations = Shapes::StructureShape.new(name: 'RelatedObservations')
141
151
  Remarks = Shapes::StringShape.new(name: 'Remarks')
142
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')
143
156
  ResourceARN = Shapes::StringShape.new(name: 'ResourceARN')
144
157
  ResourceGroupName = Shapes::StringShape.new(name: 'ResourceGroupName')
145
158
  ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
@@ -178,9 +191,20 @@ module Aws::ApplicationInsights
178
191
  UpdateComponentResponse = Shapes::StructureShape.new(name: 'UpdateComponentResponse')
179
192
  UpdateLogPatternRequest = Shapes::StructureShape.new(name: 'UpdateLogPatternRequest')
180
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')
181
199
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
182
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')
183
206
  WorkloadMetaData = Shapes::MapShape.new(name: 'WorkloadMetaData')
207
+ WorkloadName = Shapes::StringShape.new(name: 'WorkloadName')
184
208
  XRayErrorPercent = Shapes::IntegerShape.new(name: 'XRayErrorPercent')
185
209
  XRayFaultPercent = Shapes::IntegerShape.new(name: 'XRayFaultPercent')
186
210
  XRayNodeName = Shapes::StringShape.new(name: 'XRayNodeName')
@@ -192,6 +216,15 @@ module Aws::ApplicationInsights
192
216
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMsg, location_name: "Message"))
193
217
  AccessDeniedException.struct_class = Types::AccessDeniedException
194
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
+
195
228
  ApplicationComponent.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, location_name: "ComponentName"))
196
229
  ApplicationComponent.add_member(:component_remarks, Shapes::ShapeRef.new(shape: Remarks, location_name: "ComponentRemarks"))
197
230
  ApplicationComponent.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
@@ -203,6 +236,7 @@ module Aws::ApplicationInsights
203
236
 
204
237
  ApplicationComponentList.member = Shapes::ShapeRef.new(shape: ApplicationComponent)
205
238
 
239
+ ApplicationInfo.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
206
240
  ApplicationInfo.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
207
241
  ApplicationInfo.add_member(:life_cycle, Shapes::ShapeRef.new(shape: LifeCycle, location_name: "LifeCycle"))
208
242
  ApplicationInfo.add_member(:ops_item_sns_topic_arn, Shapes::ShapeRef.new(shape: OpsItemSNSTopicArn, location_name: "OpsItemSNSTopicArn"))
@@ -211,6 +245,7 @@ module Aws::ApplicationInsights
211
245
  ApplicationInfo.add_member(:remarks, Shapes::ShapeRef.new(shape: Remarks, location_name: "Remarks"))
212
246
  ApplicationInfo.add_member(:auto_config_enabled, Shapes::ShapeRef.new(shape: AutoConfigEnabled, location_name: "AutoConfigEnabled"))
213
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"))
214
249
  ApplicationInfo.struct_class = Types::ApplicationInfo
215
250
 
216
251
  ApplicationInfoList.member = Shapes::ShapeRef.new(shape: ApplicationInfo)
@@ -218,6 +253,8 @@ module Aws::ApplicationInsights
218
253
  BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMsg, location_name: "Message"))
219
254
  BadRequestException.struct_class = Types::BadRequestException
220
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"))
221
258
  ConfigurationEvent.add_member(:monitored_resource_arn, Shapes::ShapeRef.new(shape: ConfigurationEventMonitoredResourceARN, location_name: "MonitoredResourceARN"))
222
259
  ConfigurationEvent.add_member(:event_status, Shapes::ShapeRef.new(shape: ConfigurationEventStatus, location_name: "EventStatus"))
223
260
  ConfigurationEvent.add_member(:event_resource_type, Shapes::ShapeRef.new(shape: ConfigurationEventResourceType, location_name: "EventResourceType"))
@@ -235,6 +272,8 @@ module Aws::ApplicationInsights
235
272
  CreateApplicationRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
236
273
  CreateApplicationRequest.add_member(:auto_config_enabled, Shapes::ShapeRef.new(shape: AutoConfigEnabled, location_name: "AutoConfigEnabled"))
237
274
  CreateApplicationRequest.add_member(:auto_create, Shapes::ShapeRef.new(shape: AutoCreate, location_name: "AutoCreate"))
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"))
238
277
  CreateApplicationRequest.struct_class = Types::CreateApplicationRequest
239
278
 
240
279
  CreateApplicationResponse.add_member(:application_info, Shapes::ShapeRef.new(shape: ApplicationInfo, location_name: "ApplicationInfo"))
@@ -277,6 +316,7 @@ module Aws::ApplicationInsights
277
316
  DeleteLogPatternResponse.struct_class = Types::DeleteLogPatternResponse
278
317
 
279
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"))
280
320
  DescribeApplicationRequest.struct_class = Types::DescribeApplicationRequest
281
321
 
282
322
  DescribeApplicationResponse.add_member(:application_info, Shapes::ShapeRef.new(shape: ApplicationInfo, location_name: "ApplicationInfo"))
@@ -285,6 +325,8 @@ module Aws::ApplicationInsights
285
325
  DescribeComponentConfigurationRecommendationRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
286
326
  DescribeComponentConfigurationRecommendationRequest.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, required: true, location_name: "ComponentName"))
287
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"))
288
330
  DescribeComponentConfigurationRecommendationRequest.struct_class = Types::DescribeComponentConfigurationRecommendationRequest
289
331
 
290
332
  DescribeComponentConfigurationRecommendationResponse.add_member(:component_configuration, Shapes::ShapeRef.new(shape: ComponentConfiguration, location_name: "ComponentConfiguration"))
@@ -292,6 +334,7 @@ module Aws::ApplicationInsights
292
334
 
293
335
  DescribeComponentConfigurationRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
294
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"))
295
338
  DescribeComponentConfigurationRequest.struct_class = Types::DescribeComponentConfigurationRequest
296
339
 
297
340
  DescribeComponentConfigurationResponse.add_member(:monitor, Shapes::ShapeRef.new(shape: Monitor, location_name: "Monitor"))
@@ -301,6 +344,7 @@ module Aws::ApplicationInsights
301
344
 
302
345
  DescribeComponentRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
303
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"))
304
348
  DescribeComponentRequest.struct_class = Types::DescribeComponentRequest
305
349
 
306
350
  DescribeComponentResponse.add_member(:application_component, Shapes::ShapeRef.new(shape: ApplicationComponent, location_name: "ApplicationComponent"))
@@ -310,30 +354,46 @@ module Aws::ApplicationInsights
310
354
  DescribeLogPatternRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
311
355
  DescribeLogPatternRequest.add_member(:pattern_set_name, Shapes::ShapeRef.new(shape: LogPatternSetName, required: true, location_name: "PatternSetName"))
312
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"))
313
358
  DescribeLogPatternRequest.struct_class = Types::DescribeLogPatternRequest
314
359
 
315
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"))
316
362
  DescribeLogPatternResponse.add_member(:log_pattern, Shapes::ShapeRef.new(shape: LogPattern, location_name: "LogPattern"))
317
363
  DescribeLogPatternResponse.struct_class = Types::DescribeLogPatternResponse
318
364
 
319
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"))
320
367
  DescribeObservationRequest.struct_class = Types::DescribeObservationRequest
321
368
 
322
369
  DescribeObservationResponse.add_member(:observation, Shapes::ShapeRef.new(shape: Observation, location_name: "Observation"))
323
370
  DescribeObservationResponse.struct_class = Types::DescribeObservationResponse
324
371
 
325
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"))
326
374
  DescribeProblemObservationsRequest.struct_class = Types::DescribeProblemObservationsRequest
327
375
 
328
376
  DescribeProblemObservationsResponse.add_member(:related_observations, Shapes::ShapeRef.new(shape: RelatedObservations, location_name: "RelatedObservations"))
329
377
  DescribeProblemObservationsResponse.struct_class = Types::DescribeProblemObservationsResponse
330
378
 
331
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"))
332
381
  DescribeProblemRequest.struct_class = Types::DescribeProblemRequest
333
382
 
334
383
  DescribeProblemResponse.add_member(:problem, Shapes::ShapeRef.new(shape: Problem, location_name: "Problem"))
335
384
  DescribeProblemResponse.struct_class = Types::DescribeProblemResponse
336
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
+
337
397
  DetectedWorkload.key = Shapes::ShapeRef.new(shape: Tier)
338
398
  DetectedWorkload.value = Shapes::ShapeRef.new(shape: WorkloadMetaData)
339
399
 
@@ -345,6 +405,7 @@ module Aws::ApplicationInsights
345
405
 
346
406
  ListApplicationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
347
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"))
348
409
  ListApplicationsRequest.struct_class = Types::ListApplicationsRequest
349
410
 
350
411
  ListApplicationsResponse.add_member(:application_info_list, Shapes::ShapeRef.new(shape: ApplicationInfoList, location_name: "ApplicationInfoList"))
@@ -354,6 +415,7 @@ module Aws::ApplicationInsights
354
415
  ListComponentsRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
355
416
  ListComponentsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
356
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"))
357
419
  ListComponentsRequest.struct_class = Types::ListComponentsRequest
358
420
 
359
421
  ListComponentsResponse.add_member(:application_component_list, Shapes::ShapeRef.new(shape: ApplicationComponentList, location_name: "ApplicationComponentList"))
@@ -366,6 +428,7 @@ module Aws::ApplicationInsights
366
428
  ListConfigurationHistoryRequest.add_member(:event_status, Shapes::ShapeRef.new(shape: ConfigurationEventStatus, location_name: "EventStatus"))
367
429
  ListConfigurationHistoryRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
368
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"))
369
432
  ListConfigurationHistoryRequest.struct_class = Types::ListConfigurationHistoryRequest
370
433
 
371
434
  ListConfigurationHistoryResponse.add_member(:event_list, Shapes::ShapeRef.new(shape: ConfigurationEventList, location_name: "EventList"))
@@ -375,9 +438,11 @@ module Aws::ApplicationInsights
375
438
  ListLogPatternSetsRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
376
439
  ListLogPatternSetsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
377
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"))
378
442
  ListLogPatternSetsRequest.struct_class = Types::ListLogPatternSetsRequest
379
443
 
380
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"))
381
446
  ListLogPatternSetsResponse.add_member(:log_pattern_sets, Shapes::ShapeRef.new(shape: LogPatternSetList, location_name: "LogPatternSets"))
382
447
  ListLogPatternSetsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
383
448
  ListLogPatternSetsResponse.struct_class = Types::ListLogPatternSetsResponse
@@ -386,24 +451,29 @@ module Aws::ApplicationInsights
386
451
  ListLogPatternsRequest.add_member(:pattern_set_name, Shapes::ShapeRef.new(shape: LogPatternSetName, location_name: "PatternSetName"))
387
452
  ListLogPatternsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
388
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"))
389
455
  ListLogPatternsRequest.struct_class = Types::ListLogPatternsRequest
390
456
 
391
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"))
392
459
  ListLogPatternsResponse.add_member(:log_patterns, Shapes::ShapeRef.new(shape: LogPatternList, location_name: "LogPatterns"))
393
460
  ListLogPatternsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
394
461
  ListLogPatternsResponse.struct_class = Types::ListLogPatternsResponse
395
462
 
463
+ ListProblemsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
396
464
  ListProblemsRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
397
465
  ListProblemsRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: StartTime, location_name: "StartTime"))
398
466
  ListProblemsRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: EndTime, location_name: "EndTime"))
399
467
  ListProblemsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
400
468
  ListProblemsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
401
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"))
402
471
  ListProblemsRequest.struct_class = Types::ListProblemsRequest
403
472
 
404
473
  ListProblemsResponse.add_member(:problem_list, Shapes::ShapeRef.new(shape: ProblemList, location_name: "ProblemList"))
405
474
  ListProblemsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
406
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"))
407
477
  ListProblemsResponse.struct_class = Types::ListProblemsResponse
408
478
 
409
479
  ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
@@ -412,6 +482,17 @@ module Aws::ApplicationInsights
412
482
  ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
413
483
  ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
414
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
+
415
496
  LogPattern.add_member(:pattern_set_name, Shapes::ShapeRef.new(shape: LogPatternSetName, location_name: "PatternSetName"))
416
497
  LogPattern.add_member(:pattern_name, Shapes::ShapeRef.new(shape: LogPatternName, location_name: "PatternName"))
417
498
  LogPattern.add_member(:pattern, Shapes::ShapeRef.new(shape: LogPatternRegex, location_name: "Pattern"))
@@ -479,10 +560,13 @@ module Aws::ApplicationInsights
479
560
  Problem.add_member(:start_time, Shapes::ShapeRef.new(shape: StartTime, location_name: "StartTime"))
480
561
  Problem.add_member(:end_time, Shapes::ShapeRef.new(shape: EndTime, location_name: "EndTime"))
481
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"))
482
564
  Problem.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
483
565
  Problem.add_member(:feedback, Shapes::ShapeRef.new(shape: Feedback, location_name: "Feedback"))
484
566
  Problem.add_member(:recurring_count, Shapes::ShapeRef.new(shape: RecurringCount, location_name: "RecurringCount"))
485
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"))
486
570
  Problem.struct_class = Types::Problem
487
571
 
488
572
  ProblemList.member = Shapes::ShapeRef.new(shape: Problem)
@@ -490,6 +574,13 @@ module Aws::ApplicationInsights
490
574
  RelatedObservations.add_member(:observation_list, Shapes::ShapeRef.new(shape: ObservationList, location_name: "ObservationList"))
491
575
  RelatedObservations.struct_class = Types::RelatedObservations
492
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
+
493
584
  ResourceInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMsg, location_name: "Message"))
494
585
  ResourceInUseException.struct_class = Types::ResourceInUseException
495
586
 
@@ -531,6 +622,7 @@ module Aws::ApplicationInsights
531
622
  UpdateApplicationRequest.add_member(:ops_item_sns_topic_arn, Shapes::ShapeRef.new(shape: OpsItemSNSTopicArn, location_name: "OpsItemSNSTopicArn"))
532
623
  UpdateApplicationRequest.add_member(:remove_sns_topic, Shapes::ShapeRef.new(shape: RemoveSNSTopic, location_name: "RemoveSNSTopic"))
533
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"))
534
626
  UpdateApplicationRequest.struct_class = Types::UpdateApplicationRequest
535
627
 
536
628
  UpdateApplicationResponse.add_member(:application_info, Shapes::ShapeRef.new(shape: ApplicationInfo, location_name: "ApplicationInfo"))
@@ -565,9 +657,40 @@ module Aws::ApplicationInsights
565
657
  UpdateLogPatternResponse.add_member(:log_pattern, Shapes::ShapeRef.new(shape: LogPattern, location_name: "LogPattern"))
566
658
  UpdateLogPatternResponse.struct_class = Types::UpdateLogPatternResponse
567
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
+
568
677
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMsg, location_name: "Message"))
569
678
  ValidationException.struct_class = Types::ValidationException
570
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
+
571
694
  WorkloadMetaData.key = Shapes::ShapeRef.new(shape: MetaDataKey)
572
695
  WorkloadMetaData.value = Shapes::ShapeRef.new(shape: MetaDataValue)
573
696
 
@@ -591,6 +714,18 @@ module Aws::ApplicationInsights
591
714
  "uid" => "application-insights-2018-11-25",
592
715
  }
593
716
 
717
+ api.add_operation(:add_workload, Seahorse::Model::Operation.new.tap do |o|
718
+ o.name = "AddWorkload"
719
+ o.http_method = "POST"
720
+ o.http_request_uri = "/"
721
+ o.input = Shapes::ShapeRef.new(shape: AddWorkloadRequest)
722
+ o.output = Shapes::ShapeRef.new(shape: AddWorkloadResponse)
723
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
724
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
725
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
726
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
727
+ end)
728
+
594
729
  api.add_operation(:create_application, Seahorse::Model::Operation.new.tap do |o|
595
730
  o.name = "CreateApplication"
596
731
  o.http_method = "POST"
@@ -752,6 +887,17 @@ module Aws::ApplicationInsights
752
887
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
753
888
  end)
754
889
 
890
+ api.add_operation(:describe_workload, Seahorse::Model::Operation.new.tap do |o|
891
+ o.name = "DescribeWorkload"
892
+ o.http_method = "POST"
893
+ o.http_request_uri = "/"
894
+ o.input = Shapes::ShapeRef.new(shape: DescribeWorkloadRequest)
895
+ o.output = Shapes::ShapeRef.new(shape: DescribeWorkloadResponse)
896
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
897
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
898
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
899
+ end)
900
+
755
901
  api.add_operation(:list_applications, Seahorse::Model::Operation.new.tap do |o|
756
902
  o.name = "ListApplications"
757
903
  o.http_method = "POST"
@@ -863,6 +1009,34 @@ module Aws::ApplicationInsights
863
1009
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
864
1010
  end)
865
1011
 
1012
+ api.add_operation(:list_workloads, Seahorse::Model::Operation.new.tap do |o|
1013
+ o.name = "ListWorkloads"
1014
+ o.http_method = "POST"
1015
+ o.http_request_uri = "/"
1016
+ o.input = Shapes::ShapeRef.new(shape: ListWorkloadsRequest)
1017
+ o.output = Shapes::ShapeRef.new(shape: ListWorkloadsResponse)
1018
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1019
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1020
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1021
+ o[:pager] = Aws::Pager.new(
1022
+ limit_key: "max_results",
1023
+ tokens: {
1024
+ "next_token" => "next_token"
1025
+ }
1026
+ )
1027
+ end)
1028
+
1029
+ api.add_operation(:remove_workload, Seahorse::Model::Operation.new.tap do |o|
1030
+ o.name = "RemoveWorkload"
1031
+ o.http_method = "POST"
1032
+ o.http_request_uri = "/"
1033
+ o.input = Shapes::ShapeRef.new(shape: RemoveWorkloadRequest)
1034
+ o.output = Shapes::ShapeRef.new(shape: RemoveWorkloadResponse)
1035
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1036
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1037
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1038
+ end)
1039
+
866
1040
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
867
1041
  o.name = "TagResource"
868
1042
  o.http_method = "POST"
@@ -916,6 +1090,7 @@ module Aws::ApplicationInsights
916
1090
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
917
1091
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
918
1092
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1093
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
919
1094
  end)
920
1095
 
921
1096
  api.add_operation(:update_log_pattern, Seahorse::Model::Operation.new.tap do |o|
@@ -929,6 +1104,28 @@ module Aws::ApplicationInsights
929
1104
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
930
1105
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
931
1106
  end)
1107
+
1108
+ api.add_operation(:update_problem, Seahorse::Model::Operation.new.tap do |o|
1109
+ o.name = "UpdateProblem"
1110
+ o.http_method = "POST"
1111
+ o.http_request_uri = "/"
1112
+ o.input = Shapes::ShapeRef.new(shape: UpdateProblemRequest)
1113
+ o.output = Shapes::ShapeRef.new(shape: UpdateProblemResponse)
1114
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1115
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1116
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1117
+ end)
1118
+
1119
+ api.add_operation(:update_workload, Seahorse::Model::Operation.new.tap do |o|
1120
+ o.name = "UpdateWorkload"
1121
+ o.http_method = "POST"
1122
+ o.http_request_uri = "/"
1123
+ o.input = Shapes::ShapeRef.new(shape: UpdateWorkloadRequest)
1124
+ o.output = Shapes::ShapeRef.new(shape: UpdateWorkloadResponse)
1125
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1126
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1127
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1128
+ end)
932
1129
  end
933
1130
 
934
1131
  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