aws-sdk-applicationinsights 1.31.0 → 1.82.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.
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  module Aws::ApplicationInsights
11
12
  # @api private
12
13
  module ClientApi
@@ -14,12 +15,16 @@ module Aws::ApplicationInsights
14
15
  include Seahorse::Model
15
16
 
16
17
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
18
+ AccountId = Shapes::StringShape.new(name: 'AccountId')
19
+ AddWorkloadRequest = Shapes::StructureShape.new(name: 'AddWorkloadRequest')
20
+ AddWorkloadResponse = Shapes::StructureShape.new(name: 'AddWorkloadResponse')
17
21
  AffectedResource = Shapes::StringShape.new(name: 'AffectedResource')
18
22
  AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
19
23
  ApplicationComponent = Shapes::StructureShape.new(name: 'ApplicationComponent')
20
24
  ApplicationComponentList = Shapes::ListShape.new(name: 'ApplicationComponentList')
21
25
  ApplicationInfo = Shapes::StructureShape.new(name: 'ApplicationInfo')
22
26
  ApplicationInfoList = Shapes::ListShape.new(name: 'ApplicationInfoList')
27
+ AttachMissingPermission = Shapes::BooleanShape.new(name: 'AttachMissingPermission')
23
28
  AutoConfigEnabled = Shapes::BooleanShape.new(name: 'AutoConfigEnabled')
24
29
  AutoCreate = Shapes::BooleanShape.new(name: 'AutoCreate')
25
30
  BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
@@ -71,6 +76,8 @@ module Aws::ApplicationInsights
71
76
  DescribeProblemObservationsResponse = Shapes::StructureShape.new(name: 'DescribeProblemObservationsResponse')
72
77
  DescribeProblemRequest = Shapes::StructureShape.new(name: 'DescribeProblemRequest')
73
78
  DescribeProblemResponse = Shapes::StructureShape.new(name: 'DescribeProblemResponse')
79
+ DescribeWorkloadRequest = Shapes::StructureShape.new(name: 'DescribeWorkloadRequest')
80
+ DescribeWorkloadResponse = Shapes::StructureShape.new(name: 'DescribeWorkloadResponse')
74
81
  DetectedWorkload = Shapes::MapShape.new(name: 'DetectedWorkload')
75
82
  DiscoveryType = Shapes::StringShape.new(name: 'DiscoveryType')
76
83
  EbsCause = Shapes::StringShape.new(name: 'EbsCause')
@@ -109,6 +116,8 @@ module Aws::ApplicationInsights
109
116
  ListProblemsResponse = Shapes::StructureShape.new(name: 'ListProblemsResponse')
110
117
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
111
118
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
119
+ ListWorkloadsRequest = Shapes::StructureShape.new(name: 'ListWorkloadsRequest')
120
+ ListWorkloadsResponse = Shapes::StructureShape.new(name: 'ListWorkloadsResponse')
112
121
  LogFilter = Shapes::StringShape.new(name: 'LogFilter')
113
122
  LogGroup = Shapes::StringShape.new(name: 'LogGroup')
114
123
  LogPattern = Shapes::StructureShape.new(name: 'LogPattern')
@@ -124,6 +133,7 @@ module Aws::ApplicationInsights
124
133
  MetaDataValue = Shapes::StringShape.new(name: 'MetaDataValue')
125
134
  MetricName = Shapes::StringShape.new(name: 'MetricName')
126
135
  MetricNamespace = Shapes::StringShape.new(name: 'MetricNamespace')
136
+ MissingWorkloadConfig = Shapes::BooleanShape.new(name: 'MissingWorkloadConfig')
127
137
  Monitor = Shapes::BooleanShape.new(name: 'Monitor')
128
138
  Observation = Shapes::StructureShape.new(name: 'Observation')
129
139
  ObservationId = Shapes::StringShape.new(name: 'ObservationId')
@@ -137,10 +147,14 @@ module Aws::ApplicationInsights
137
147
  ProblemList = Shapes::ListShape.new(name: 'ProblemList')
138
148
  RdsEventCategories = Shapes::StringShape.new(name: 'RdsEventCategories')
139
149
  RdsEventMessage = Shapes::StringShape.new(name: 'RdsEventMessage')
150
+ RecommendationType = Shapes::StringShape.new(name: 'RecommendationType')
140
151
  RecurringCount = Shapes::IntegerShape.new(name: 'RecurringCount')
141
152
  RelatedObservations = Shapes::StructureShape.new(name: 'RelatedObservations')
142
153
  Remarks = Shapes::StringShape.new(name: 'Remarks')
143
154
  RemoveSNSTopic = Shapes::BooleanShape.new(name: 'RemoveSNSTopic')
155
+ RemoveWorkloadRequest = Shapes::StructureShape.new(name: 'RemoveWorkloadRequest')
156
+ RemoveWorkloadResponse = Shapes::StructureShape.new(name: 'RemoveWorkloadResponse')
157
+ ResolutionMethod = Shapes::StringShape.new(name: 'ResolutionMethod')
144
158
  ResourceARN = Shapes::StringShape.new(name: 'ResourceARN')
145
159
  ResourceGroupName = Shapes::StringShape.new(name: 'ResourceGroupName')
146
160
  ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
@@ -148,7 +162,9 @@ module Aws::ApplicationInsights
148
162
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
149
163
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
150
164
  S3EventName = Shapes::StringShape.new(name: 'S3EventName')
165
+ SNSNotificationArn = Shapes::StringShape.new(name: 'SNSNotificationArn')
151
166
  SeverityLevel = Shapes::StringShape.new(name: 'SeverityLevel')
167
+ ShortName = Shapes::StringShape.new(name: 'ShortName')
152
168
  SourceARN = Shapes::StringShape.new(name: 'SourceARN')
153
169
  SourceType = Shapes::StringShape.new(name: 'SourceType')
154
170
  StartTime = Shapes::TimestampShape.new(name: 'StartTime')
@@ -179,9 +195,20 @@ module Aws::ApplicationInsights
179
195
  UpdateComponentResponse = Shapes::StructureShape.new(name: 'UpdateComponentResponse')
180
196
  UpdateLogPatternRequest = Shapes::StructureShape.new(name: 'UpdateLogPatternRequest')
181
197
  UpdateLogPatternResponse = Shapes::StructureShape.new(name: 'UpdateLogPatternResponse')
198
+ UpdateProblemRequest = Shapes::StructureShape.new(name: 'UpdateProblemRequest')
199
+ UpdateProblemResponse = Shapes::StructureShape.new(name: 'UpdateProblemResponse')
200
+ UpdateStatus = Shapes::StringShape.new(name: 'UpdateStatus')
201
+ UpdateWorkloadRequest = Shapes::StructureShape.new(name: 'UpdateWorkloadRequest')
202
+ UpdateWorkloadResponse = Shapes::StructureShape.new(name: 'UpdateWorkloadResponse')
182
203
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
183
204
  Value = Shapes::FloatShape.new(name: 'Value')
205
+ Visibility = Shapes::StringShape.new(name: 'Visibility')
206
+ Workload = Shapes::StructureShape.new(name: 'Workload')
207
+ WorkloadConfiguration = Shapes::StructureShape.new(name: 'WorkloadConfiguration')
208
+ WorkloadId = Shapes::StringShape.new(name: 'WorkloadId')
209
+ WorkloadList = Shapes::ListShape.new(name: 'WorkloadList')
184
210
  WorkloadMetaData = Shapes::MapShape.new(name: 'WorkloadMetaData')
211
+ WorkloadName = Shapes::StringShape.new(name: 'WorkloadName')
185
212
  XRayErrorPercent = Shapes::IntegerShape.new(name: 'XRayErrorPercent')
186
213
  XRayFaultPercent = Shapes::IntegerShape.new(name: 'XRayFaultPercent')
187
214
  XRayNodeName = Shapes::StringShape.new(name: 'XRayNodeName')
@@ -193,6 +220,15 @@ module Aws::ApplicationInsights
193
220
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMsg, location_name: "Message"))
194
221
  AccessDeniedException.struct_class = Types::AccessDeniedException
195
222
 
223
+ AddWorkloadRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
224
+ AddWorkloadRequest.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, required: true, location_name: "ComponentName"))
225
+ AddWorkloadRequest.add_member(:workload_configuration, Shapes::ShapeRef.new(shape: WorkloadConfiguration, required: true, location_name: "WorkloadConfiguration"))
226
+ AddWorkloadRequest.struct_class = Types::AddWorkloadRequest
227
+
228
+ AddWorkloadResponse.add_member(:workload_id, Shapes::ShapeRef.new(shape: WorkloadId, location_name: "WorkloadId"))
229
+ AddWorkloadResponse.add_member(:workload_configuration, Shapes::ShapeRef.new(shape: WorkloadConfiguration, location_name: "WorkloadConfiguration"))
230
+ AddWorkloadResponse.struct_class = Types::AddWorkloadResponse
231
+
196
232
  ApplicationComponent.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, location_name: "ComponentName"))
197
233
  ApplicationComponent.add_member(:component_remarks, Shapes::ShapeRef.new(shape: Remarks, location_name: "ComponentRemarks"))
198
234
  ApplicationComponent.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
@@ -204,14 +240,17 @@ module Aws::ApplicationInsights
204
240
 
205
241
  ApplicationComponentList.member = Shapes::ShapeRef.new(shape: ApplicationComponent)
206
242
 
243
+ ApplicationInfo.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
207
244
  ApplicationInfo.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
208
245
  ApplicationInfo.add_member(:life_cycle, Shapes::ShapeRef.new(shape: LifeCycle, location_name: "LifeCycle"))
209
246
  ApplicationInfo.add_member(:ops_item_sns_topic_arn, Shapes::ShapeRef.new(shape: OpsItemSNSTopicArn, location_name: "OpsItemSNSTopicArn"))
247
+ ApplicationInfo.add_member(:sns_notification_arn, Shapes::ShapeRef.new(shape: SNSNotificationArn, location_name: "SNSNotificationArn"))
210
248
  ApplicationInfo.add_member(:ops_center_enabled, Shapes::ShapeRef.new(shape: OpsCenterEnabled, location_name: "OpsCenterEnabled"))
211
249
  ApplicationInfo.add_member(:cwe_monitor_enabled, Shapes::ShapeRef.new(shape: CWEMonitorEnabled, location_name: "CWEMonitorEnabled"))
212
250
  ApplicationInfo.add_member(:remarks, Shapes::ShapeRef.new(shape: Remarks, location_name: "Remarks"))
213
251
  ApplicationInfo.add_member(:auto_config_enabled, Shapes::ShapeRef.new(shape: AutoConfigEnabled, location_name: "AutoConfigEnabled"))
214
252
  ApplicationInfo.add_member(:discovery_type, Shapes::ShapeRef.new(shape: DiscoveryType, location_name: "DiscoveryType"))
253
+ ApplicationInfo.add_member(:attach_missing_permission, Shapes::ShapeRef.new(shape: AttachMissingPermission, location_name: "AttachMissingPermission"))
215
254
  ApplicationInfo.struct_class = Types::ApplicationInfo
216
255
 
217
256
  ApplicationInfoList.member = Shapes::ShapeRef.new(shape: ApplicationInfo)
@@ -219,6 +258,8 @@ module Aws::ApplicationInsights
219
258
  BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMsg, location_name: "Message"))
220
259
  BadRequestException.struct_class = Types::BadRequestException
221
260
 
261
+ ConfigurationEvent.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
262
+ ConfigurationEvent.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
222
263
  ConfigurationEvent.add_member(:monitored_resource_arn, Shapes::ShapeRef.new(shape: ConfigurationEventMonitoredResourceARN, location_name: "MonitoredResourceARN"))
223
264
  ConfigurationEvent.add_member(:event_status, Shapes::ShapeRef.new(shape: ConfigurationEventStatus, location_name: "EventStatus"))
224
265
  ConfigurationEvent.add_member(:event_resource_type, Shapes::ShapeRef.new(shape: ConfigurationEventResourceType, location_name: "EventResourceType"))
@@ -233,10 +274,12 @@ module Aws::ApplicationInsights
233
274
  CreateApplicationRequest.add_member(:ops_center_enabled, Shapes::ShapeRef.new(shape: OpsCenterEnabled, location_name: "OpsCenterEnabled"))
234
275
  CreateApplicationRequest.add_member(:cwe_monitor_enabled, Shapes::ShapeRef.new(shape: CWEMonitorEnabled, location_name: "CWEMonitorEnabled"))
235
276
  CreateApplicationRequest.add_member(:ops_item_sns_topic_arn, Shapes::ShapeRef.new(shape: OpsItemSNSTopicArn, location_name: "OpsItemSNSTopicArn"))
277
+ CreateApplicationRequest.add_member(:sns_notification_arn, Shapes::ShapeRef.new(shape: SNSNotificationArn, location_name: "SNSNotificationArn"))
236
278
  CreateApplicationRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
237
279
  CreateApplicationRequest.add_member(:auto_config_enabled, Shapes::ShapeRef.new(shape: AutoConfigEnabled, location_name: "AutoConfigEnabled"))
238
280
  CreateApplicationRequest.add_member(:auto_create, Shapes::ShapeRef.new(shape: AutoCreate, location_name: "AutoCreate"))
239
281
  CreateApplicationRequest.add_member(:grouping_type, Shapes::ShapeRef.new(shape: GroupingType, location_name: "GroupingType"))
282
+ CreateApplicationRequest.add_member(:attach_missing_permission, Shapes::ShapeRef.new(shape: AttachMissingPermission, location_name: "AttachMissingPermission"))
240
283
  CreateApplicationRequest.struct_class = Types::CreateApplicationRequest
241
284
 
242
285
  CreateApplicationResponse.add_member(:application_info, Shapes::ShapeRef.new(shape: ApplicationInfo, location_name: "ApplicationInfo"))
@@ -279,6 +322,7 @@ module Aws::ApplicationInsights
279
322
  DeleteLogPatternResponse.struct_class = Types::DeleteLogPatternResponse
280
323
 
281
324
  DescribeApplicationRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
325
+ DescribeApplicationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
282
326
  DescribeApplicationRequest.struct_class = Types::DescribeApplicationRequest
283
327
 
284
328
  DescribeApplicationResponse.add_member(:application_info, Shapes::ShapeRef.new(shape: ApplicationInfo, location_name: "ApplicationInfo"))
@@ -287,6 +331,8 @@ module Aws::ApplicationInsights
287
331
  DescribeComponentConfigurationRecommendationRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
288
332
  DescribeComponentConfigurationRecommendationRequest.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, required: true, location_name: "ComponentName"))
289
333
  DescribeComponentConfigurationRecommendationRequest.add_member(:tier, Shapes::ShapeRef.new(shape: Tier, required: true, location_name: "Tier"))
334
+ DescribeComponentConfigurationRecommendationRequest.add_member(:workload_name, Shapes::ShapeRef.new(shape: WorkloadName, location_name: "WorkloadName"))
335
+ DescribeComponentConfigurationRecommendationRequest.add_member(:recommendation_type, Shapes::ShapeRef.new(shape: RecommendationType, location_name: "RecommendationType"))
290
336
  DescribeComponentConfigurationRecommendationRequest.struct_class = Types::DescribeComponentConfigurationRecommendationRequest
291
337
 
292
338
  DescribeComponentConfigurationRecommendationResponse.add_member(:component_configuration, Shapes::ShapeRef.new(shape: ComponentConfiguration, location_name: "ComponentConfiguration"))
@@ -294,6 +340,7 @@ module Aws::ApplicationInsights
294
340
 
295
341
  DescribeComponentConfigurationRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
296
342
  DescribeComponentConfigurationRequest.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, required: true, location_name: "ComponentName"))
343
+ DescribeComponentConfigurationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
297
344
  DescribeComponentConfigurationRequest.struct_class = Types::DescribeComponentConfigurationRequest
298
345
 
299
346
  DescribeComponentConfigurationResponse.add_member(:monitor, Shapes::ShapeRef.new(shape: Monitor, location_name: "Monitor"))
@@ -303,6 +350,7 @@ module Aws::ApplicationInsights
303
350
 
304
351
  DescribeComponentRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
305
352
  DescribeComponentRequest.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, required: true, location_name: "ComponentName"))
353
+ DescribeComponentRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
306
354
  DescribeComponentRequest.struct_class = Types::DescribeComponentRequest
307
355
 
308
356
  DescribeComponentResponse.add_member(:application_component, Shapes::ShapeRef.new(shape: ApplicationComponent, location_name: "ApplicationComponent"))
@@ -312,30 +360,47 @@ module Aws::ApplicationInsights
312
360
  DescribeLogPatternRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
313
361
  DescribeLogPatternRequest.add_member(:pattern_set_name, Shapes::ShapeRef.new(shape: LogPatternSetName, required: true, location_name: "PatternSetName"))
314
362
  DescribeLogPatternRequest.add_member(:pattern_name, Shapes::ShapeRef.new(shape: LogPatternName, required: true, location_name: "PatternName"))
363
+ DescribeLogPatternRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
315
364
  DescribeLogPatternRequest.struct_class = Types::DescribeLogPatternRequest
316
365
 
317
366
  DescribeLogPatternResponse.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
367
+ DescribeLogPatternResponse.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
318
368
  DescribeLogPatternResponse.add_member(:log_pattern, Shapes::ShapeRef.new(shape: LogPattern, location_name: "LogPattern"))
319
369
  DescribeLogPatternResponse.struct_class = Types::DescribeLogPatternResponse
320
370
 
321
371
  DescribeObservationRequest.add_member(:observation_id, Shapes::ShapeRef.new(shape: ObservationId, required: true, location_name: "ObservationId"))
372
+ DescribeObservationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
322
373
  DescribeObservationRequest.struct_class = Types::DescribeObservationRequest
323
374
 
324
375
  DescribeObservationResponse.add_member(:observation, Shapes::ShapeRef.new(shape: Observation, location_name: "Observation"))
325
376
  DescribeObservationResponse.struct_class = Types::DescribeObservationResponse
326
377
 
327
378
  DescribeProblemObservationsRequest.add_member(:problem_id, Shapes::ShapeRef.new(shape: ProblemId, required: true, location_name: "ProblemId"))
379
+ DescribeProblemObservationsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
328
380
  DescribeProblemObservationsRequest.struct_class = Types::DescribeProblemObservationsRequest
329
381
 
330
382
  DescribeProblemObservationsResponse.add_member(:related_observations, Shapes::ShapeRef.new(shape: RelatedObservations, location_name: "RelatedObservations"))
331
383
  DescribeProblemObservationsResponse.struct_class = Types::DescribeProblemObservationsResponse
332
384
 
333
385
  DescribeProblemRequest.add_member(:problem_id, Shapes::ShapeRef.new(shape: ProblemId, required: true, location_name: "ProblemId"))
386
+ DescribeProblemRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
334
387
  DescribeProblemRequest.struct_class = Types::DescribeProblemRequest
335
388
 
336
389
  DescribeProblemResponse.add_member(:problem, Shapes::ShapeRef.new(shape: Problem, location_name: "Problem"))
390
+ DescribeProblemResponse.add_member(:sns_notification_arn, Shapes::ShapeRef.new(shape: SNSNotificationArn, location_name: "SNSNotificationArn"))
337
391
  DescribeProblemResponse.struct_class = Types::DescribeProblemResponse
338
392
 
393
+ DescribeWorkloadRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
394
+ DescribeWorkloadRequest.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, required: true, location_name: "ComponentName"))
395
+ DescribeWorkloadRequest.add_member(:workload_id, Shapes::ShapeRef.new(shape: WorkloadId, required: true, location_name: "WorkloadId"))
396
+ DescribeWorkloadRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
397
+ DescribeWorkloadRequest.struct_class = Types::DescribeWorkloadRequest
398
+
399
+ DescribeWorkloadResponse.add_member(:workload_id, Shapes::ShapeRef.new(shape: WorkloadId, location_name: "WorkloadId"))
400
+ DescribeWorkloadResponse.add_member(:workload_remarks, Shapes::ShapeRef.new(shape: Remarks, location_name: "WorkloadRemarks"))
401
+ DescribeWorkloadResponse.add_member(:workload_configuration, Shapes::ShapeRef.new(shape: WorkloadConfiguration, location_name: "WorkloadConfiguration"))
402
+ DescribeWorkloadResponse.struct_class = Types::DescribeWorkloadResponse
403
+
339
404
  DetectedWorkload.key = Shapes::ShapeRef.new(shape: Tier)
340
405
  DetectedWorkload.value = Shapes::ShapeRef.new(shape: WorkloadMetaData)
341
406
 
@@ -347,6 +412,7 @@ module Aws::ApplicationInsights
347
412
 
348
413
  ListApplicationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
349
414
  ListApplicationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
415
+ ListApplicationsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
350
416
  ListApplicationsRequest.struct_class = Types::ListApplicationsRequest
351
417
 
352
418
  ListApplicationsResponse.add_member(:application_info_list, Shapes::ShapeRef.new(shape: ApplicationInfoList, location_name: "ApplicationInfoList"))
@@ -356,6 +422,7 @@ module Aws::ApplicationInsights
356
422
  ListComponentsRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
357
423
  ListComponentsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
358
424
  ListComponentsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
425
+ ListComponentsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
359
426
  ListComponentsRequest.struct_class = Types::ListComponentsRequest
360
427
 
361
428
  ListComponentsResponse.add_member(:application_component_list, Shapes::ShapeRef.new(shape: ApplicationComponentList, location_name: "ApplicationComponentList"))
@@ -368,6 +435,7 @@ module Aws::ApplicationInsights
368
435
  ListConfigurationHistoryRequest.add_member(:event_status, Shapes::ShapeRef.new(shape: ConfigurationEventStatus, location_name: "EventStatus"))
369
436
  ListConfigurationHistoryRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
370
437
  ListConfigurationHistoryRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
438
+ ListConfigurationHistoryRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
371
439
  ListConfigurationHistoryRequest.struct_class = Types::ListConfigurationHistoryRequest
372
440
 
373
441
  ListConfigurationHistoryResponse.add_member(:event_list, Shapes::ShapeRef.new(shape: ConfigurationEventList, location_name: "EventList"))
@@ -377,9 +445,11 @@ module Aws::ApplicationInsights
377
445
  ListLogPatternSetsRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
378
446
  ListLogPatternSetsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
379
447
  ListLogPatternSetsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
448
+ ListLogPatternSetsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
380
449
  ListLogPatternSetsRequest.struct_class = Types::ListLogPatternSetsRequest
381
450
 
382
451
  ListLogPatternSetsResponse.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
452
+ ListLogPatternSetsResponse.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
383
453
  ListLogPatternSetsResponse.add_member(:log_pattern_sets, Shapes::ShapeRef.new(shape: LogPatternSetList, location_name: "LogPatternSets"))
384
454
  ListLogPatternSetsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
385
455
  ListLogPatternSetsResponse.struct_class = Types::ListLogPatternSetsResponse
@@ -388,24 +458,29 @@ module Aws::ApplicationInsights
388
458
  ListLogPatternsRequest.add_member(:pattern_set_name, Shapes::ShapeRef.new(shape: LogPatternSetName, location_name: "PatternSetName"))
389
459
  ListLogPatternsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
390
460
  ListLogPatternsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
461
+ ListLogPatternsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
391
462
  ListLogPatternsRequest.struct_class = Types::ListLogPatternsRequest
392
463
 
393
464
  ListLogPatternsResponse.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
465
+ ListLogPatternsResponse.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
394
466
  ListLogPatternsResponse.add_member(:log_patterns, Shapes::ShapeRef.new(shape: LogPatternList, location_name: "LogPatterns"))
395
467
  ListLogPatternsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
396
468
  ListLogPatternsResponse.struct_class = Types::ListLogPatternsResponse
397
469
 
470
+ ListProblemsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
398
471
  ListProblemsRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
399
472
  ListProblemsRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: StartTime, location_name: "StartTime"))
400
473
  ListProblemsRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: EndTime, location_name: "EndTime"))
401
474
  ListProblemsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
402
475
  ListProblemsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
403
476
  ListProblemsRequest.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, location_name: "ComponentName"))
477
+ ListProblemsRequest.add_member(:visibility, Shapes::ShapeRef.new(shape: Visibility, location_name: "Visibility"))
404
478
  ListProblemsRequest.struct_class = Types::ListProblemsRequest
405
479
 
406
480
  ListProblemsResponse.add_member(:problem_list, Shapes::ShapeRef.new(shape: ProblemList, location_name: "ProblemList"))
407
481
  ListProblemsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
408
482
  ListProblemsResponse.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
483
+ ListProblemsResponse.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
409
484
  ListProblemsResponse.struct_class = Types::ListProblemsResponse
410
485
 
411
486
  ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
@@ -414,6 +489,17 @@ module Aws::ApplicationInsights
414
489
  ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
415
490
  ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
416
491
 
492
+ ListWorkloadsRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
493
+ ListWorkloadsRequest.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, required: true, location_name: "ComponentName"))
494
+ ListWorkloadsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
495
+ ListWorkloadsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
496
+ ListWorkloadsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
497
+ ListWorkloadsRequest.struct_class = Types::ListWorkloadsRequest
498
+
499
+ ListWorkloadsResponse.add_member(:workload_list, Shapes::ShapeRef.new(shape: WorkloadList, location_name: "WorkloadList"))
500
+ ListWorkloadsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
501
+ ListWorkloadsResponse.struct_class = Types::ListWorkloadsResponse
502
+
417
503
  LogPattern.add_member(:pattern_set_name, Shapes::ShapeRef.new(shape: LogPatternSetName, location_name: "PatternSetName"))
418
504
  LogPattern.add_member(:pattern_name, Shapes::ShapeRef.new(shape: LogPatternName, location_name: "PatternName"))
419
505
  LogPattern.add_member(:pattern, Shapes::ShapeRef.new(shape: LogPatternRegex, location_name: "Pattern"))
@@ -475,16 +561,20 @@ module Aws::ApplicationInsights
475
561
 
476
562
  Problem.add_member(:id, Shapes::ShapeRef.new(shape: ProblemId, location_name: "Id"))
477
563
  Problem.add_member(:title, Shapes::ShapeRef.new(shape: Title, location_name: "Title"))
564
+ Problem.add_member(:short_name, Shapes::ShapeRef.new(shape: ShortName, location_name: "ShortName"))
478
565
  Problem.add_member(:insights, Shapes::ShapeRef.new(shape: Insights, location_name: "Insights"))
479
566
  Problem.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "Status"))
480
567
  Problem.add_member(:affected_resource, Shapes::ShapeRef.new(shape: AffectedResource, location_name: "AffectedResource"))
481
568
  Problem.add_member(:start_time, Shapes::ShapeRef.new(shape: StartTime, location_name: "StartTime"))
482
569
  Problem.add_member(:end_time, Shapes::ShapeRef.new(shape: EndTime, location_name: "EndTime"))
483
570
  Problem.add_member(:severity_level, Shapes::ShapeRef.new(shape: SeverityLevel, location_name: "SeverityLevel"))
571
+ Problem.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
484
572
  Problem.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
485
573
  Problem.add_member(:feedback, Shapes::ShapeRef.new(shape: Feedback, location_name: "Feedback"))
486
574
  Problem.add_member(:recurring_count, Shapes::ShapeRef.new(shape: RecurringCount, location_name: "RecurringCount"))
487
575
  Problem.add_member(:last_recurrence_time, Shapes::ShapeRef.new(shape: LastRecurrenceTime, location_name: "LastRecurrenceTime"))
576
+ Problem.add_member(:visibility, Shapes::ShapeRef.new(shape: Visibility, location_name: "Visibility"))
577
+ Problem.add_member(:resolution_method, Shapes::ShapeRef.new(shape: ResolutionMethod, location_name: "ResolutionMethod"))
488
578
  Problem.struct_class = Types::Problem
489
579
 
490
580
  ProblemList.member = Shapes::ShapeRef.new(shape: Problem)
@@ -492,6 +582,13 @@ module Aws::ApplicationInsights
492
582
  RelatedObservations.add_member(:observation_list, Shapes::ShapeRef.new(shape: ObservationList, location_name: "ObservationList"))
493
583
  RelatedObservations.struct_class = Types::RelatedObservations
494
584
 
585
+ RemoveWorkloadRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
586
+ RemoveWorkloadRequest.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, required: true, location_name: "ComponentName"))
587
+ RemoveWorkloadRequest.add_member(:workload_id, Shapes::ShapeRef.new(shape: WorkloadId, required: true, location_name: "WorkloadId"))
588
+ RemoveWorkloadRequest.struct_class = Types::RemoveWorkloadRequest
589
+
590
+ RemoveWorkloadResponse.struct_class = Types::RemoveWorkloadResponse
591
+
495
592
  ResourceInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMsg, location_name: "Message"))
496
593
  ResourceInUseException.struct_class = Types::ResourceInUseException
497
594
 
@@ -531,8 +628,10 @@ module Aws::ApplicationInsights
531
628
  UpdateApplicationRequest.add_member(:ops_center_enabled, Shapes::ShapeRef.new(shape: OpsCenterEnabled, location_name: "OpsCenterEnabled"))
532
629
  UpdateApplicationRequest.add_member(:cwe_monitor_enabled, Shapes::ShapeRef.new(shape: CWEMonitorEnabled, location_name: "CWEMonitorEnabled"))
533
630
  UpdateApplicationRequest.add_member(:ops_item_sns_topic_arn, Shapes::ShapeRef.new(shape: OpsItemSNSTopicArn, location_name: "OpsItemSNSTopicArn"))
631
+ UpdateApplicationRequest.add_member(:sns_notification_arn, Shapes::ShapeRef.new(shape: SNSNotificationArn, location_name: "SNSNotificationArn"))
534
632
  UpdateApplicationRequest.add_member(:remove_sns_topic, Shapes::ShapeRef.new(shape: RemoveSNSTopic, location_name: "RemoveSNSTopic"))
535
633
  UpdateApplicationRequest.add_member(:auto_config_enabled, Shapes::ShapeRef.new(shape: AutoConfigEnabled, location_name: "AutoConfigEnabled"))
634
+ UpdateApplicationRequest.add_member(:attach_missing_permission, Shapes::ShapeRef.new(shape: AttachMissingPermission, location_name: "AttachMissingPermission"))
536
635
  UpdateApplicationRequest.struct_class = Types::UpdateApplicationRequest
537
636
 
538
637
  UpdateApplicationResponse.add_member(:application_info, Shapes::ShapeRef.new(shape: ApplicationInfo, location_name: "ApplicationInfo"))
@@ -567,9 +666,41 @@ module Aws::ApplicationInsights
567
666
  UpdateLogPatternResponse.add_member(:log_pattern, Shapes::ShapeRef.new(shape: LogPattern, location_name: "LogPattern"))
568
667
  UpdateLogPatternResponse.struct_class = Types::UpdateLogPatternResponse
569
668
 
669
+ UpdateProblemRequest.add_member(:problem_id, Shapes::ShapeRef.new(shape: ProblemId, required: true, location_name: "ProblemId"))
670
+ UpdateProblemRequest.add_member(:update_status, Shapes::ShapeRef.new(shape: UpdateStatus, location_name: "UpdateStatus"))
671
+ UpdateProblemRequest.add_member(:visibility, Shapes::ShapeRef.new(shape: Visibility, location_name: "Visibility"))
672
+ UpdateProblemRequest.struct_class = Types::UpdateProblemRequest
673
+
674
+ UpdateProblemResponse.struct_class = Types::UpdateProblemResponse
675
+
676
+ UpdateWorkloadRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
677
+ UpdateWorkloadRequest.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, required: true, location_name: "ComponentName"))
678
+ UpdateWorkloadRequest.add_member(:workload_id, Shapes::ShapeRef.new(shape: WorkloadId, location_name: "WorkloadId"))
679
+ UpdateWorkloadRequest.add_member(:workload_configuration, Shapes::ShapeRef.new(shape: WorkloadConfiguration, required: true, location_name: "WorkloadConfiguration"))
680
+ UpdateWorkloadRequest.struct_class = Types::UpdateWorkloadRequest
681
+
682
+ UpdateWorkloadResponse.add_member(:workload_id, Shapes::ShapeRef.new(shape: WorkloadId, location_name: "WorkloadId"))
683
+ UpdateWorkloadResponse.add_member(:workload_configuration, Shapes::ShapeRef.new(shape: WorkloadConfiguration, location_name: "WorkloadConfiguration"))
684
+ UpdateWorkloadResponse.struct_class = Types::UpdateWorkloadResponse
685
+
570
686
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMsg, location_name: "Message"))
571
687
  ValidationException.struct_class = Types::ValidationException
572
688
 
689
+ Workload.add_member(:workload_id, Shapes::ShapeRef.new(shape: WorkloadId, location_name: "WorkloadId"))
690
+ Workload.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, location_name: "ComponentName"))
691
+ Workload.add_member(:workload_name, Shapes::ShapeRef.new(shape: WorkloadName, location_name: "WorkloadName"))
692
+ Workload.add_member(:tier, Shapes::ShapeRef.new(shape: Tier, location_name: "Tier"))
693
+ Workload.add_member(:workload_remarks, Shapes::ShapeRef.new(shape: Remarks, location_name: "WorkloadRemarks"))
694
+ Workload.add_member(:missing_workload_config, Shapes::ShapeRef.new(shape: MissingWorkloadConfig, location_name: "MissingWorkloadConfig"))
695
+ Workload.struct_class = Types::Workload
696
+
697
+ WorkloadConfiguration.add_member(:workload_name, Shapes::ShapeRef.new(shape: WorkloadName, location_name: "WorkloadName"))
698
+ WorkloadConfiguration.add_member(:tier, Shapes::ShapeRef.new(shape: Tier, location_name: "Tier"))
699
+ WorkloadConfiguration.add_member(:configuration, Shapes::ShapeRef.new(shape: ComponentConfiguration, location_name: "Configuration"))
700
+ WorkloadConfiguration.struct_class = Types::WorkloadConfiguration
701
+
702
+ WorkloadList.member = Shapes::ShapeRef.new(shape: Workload)
703
+
573
704
  WorkloadMetaData.key = Shapes::ShapeRef.new(shape: MetaDataKey)
574
705
  WorkloadMetaData.value = Shapes::ShapeRef.new(shape: MetaDataValue)
575
706
 
@@ -581,9 +712,11 @@ module Aws::ApplicationInsights
581
712
 
582
713
  api.metadata = {
583
714
  "apiVersion" => "2018-11-25",
715
+ "auth" => ["aws.auth#sigv4"],
584
716
  "endpointPrefix" => "applicationinsights",
585
717
  "jsonVersion" => "1.1",
586
718
  "protocol" => "json",
719
+ "protocols" => ["json"],
587
720
  "serviceAbbreviation" => "Application Insights",
588
721
  "serviceFullName" => "Amazon CloudWatch Application Insights",
589
722
  "serviceId" => "Application Insights",
@@ -593,6 +726,18 @@ module Aws::ApplicationInsights
593
726
  "uid" => "application-insights-2018-11-25",
594
727
  }
595
728
 
729
+ api.add_operation(:add_workload, Seahorse::Model::Operation.new.tap do |o|
730
+ o.name = "AddWorkload"
731
+ o.http_method = "POST"
732
+ o.http_request_uri = "/"
733
+ o.input = Shapes::ShapeRef.new(shape: AddWorkloadRequest)
734
+ o.output = Shapes::ShapeRef.new(shape: AddWorkloadResponse)
735
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
736
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
737
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
738
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
739
+ end)
740
+
596
741
  api.add_operation(:create_application, Seahorse::Model::Operation.new.tap do |o|
597
742
  o.name = "CreateApplication"
598
743
  o.http_method = "POST"
@@ -754,6 +899,17 @@ module Aws::ApplicationInsights
754
899
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
755
900
  end)
756
901
 
902
+ api.add_operation(:describe_workload, Seahorse::Model::Operation.new.tap do |o|
903
+ o.name = "DescribeWorkload"
904
+ o.http_method = "POST"
905
+ o.http_request_uri = "/"
906
+ o.input = Shapes::ShapeRef.new(shape: DescribeWorkloadRequest)
907
+ o.output = Shapes::ShapeRef.new(shape: DescribeWorkloadResponse)
908
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
909
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
910
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
911
+ end)
912
+
757
913
  api.add_operation(:list_applications, Seahorse::Model::Operation.new.tap do |o|
758
914
  o.name = "ListApplications"
759
915
  o.http_method = "POST"
@@ -865,6 +1021,34 @@ module Aws::ApplicationInsights
865
1021
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
866
1022
  end)
867
1023
 
1024
+ api.add_operation(:list_workloads, Seahorse::Model::Operation.new.tap do |o|
1025
+ o.name = "ListWorkloads"
1026
+ o.http_method = "POST"
1027
+ o.http_request_uri = "/"
1028
+ o.input = Shapes::ShapeRef.new(shape: ListWorkloadsRequest)
1029
+ o.output = Shapes::ShapeRef.new(shape: ListWorkloadsResponse)
1030
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1031
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1032
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1033
+ o[:pager] = Aws::Pager.new(
1034
+ limit_key: "max_results",
1035
+ tokens: {
1036
+ "next_token" => "next_token"
1037
+ }
1038
+ )
1039
+ end)
1040
+
1041
+ api.add_operation(:remove_workload, Seahorse::Model::Operation.new.tap do |o|
1042
+ o.name = "RemoveWorkload"
1043
+ o.http_method = "POST"
1044
+ o.http_request_uri = "/"
1045
+ o.input = Shapes::ShapeRef.new(shape: RemoveWorkloadRequest)
1046
+ o.output = Shapes::ShapeRef.new(shape: RemoveWorkloadResponse)
1047
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1048
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1049
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1050
+ end)
1051
+
868
1052
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
869
1053
  o.name = "TagResource"
870
1054
  o.http_method = "POST"
@@ -918,6 +1102,7 @@ module Aws::ApplicationInsights
918
1102
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
919
1103
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
920
1104
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1105
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
921
1106
  end)
922
1107
 
923
1108
  api.add_operation(:update_log_pattern, Seahorse::Model::Operation.new.tap do |o|
@@ -931,6 +1116,28 @@ module Aws::ApplicationInsights
931
1116
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
932
1117
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
933
1118
  end)
1119
+
1120
+ api.add_operation(:update_problem, Seahorse::Model::Operation.new.tap do |o|
1121
+ o.name = "UpdateProblem"
1122
+ o.http_method = "POST"
1123
+ o.http_request_uri = "/"
1124
+ o.input = Shapes::ShapeRef.new(shape: UpdateProblemRequest)
1125
+ o.output = Shapes::ShapeRef.new(shape: UpdateProblemResponse)
1126
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1127
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1128
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1129
+ end)
1130
+
1131
+ api.add_operation(:update_workload, Seahorse::Model::Operation.new.tap do |o|
1132
+ o.name = "UpdateWorkload"
1133
+ o.http_method = "POST"
1134
+ o.http_request_uri = "/"
1135
+ o.input = Shapes::ShapeRef.new(shape: UpdateWorkloadRequest)
1136
+ o.output = Shapes::ShapeRef.new(shape: UpdateWorkloadResponse)
1137
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1138
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1139
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1140
+ end)
934
1141
  end
935
1142
 
936
1143
  end
@@ -0,0 +1,69 @@
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
+ self[:use_fips] = options[:use_fips]
56
+ self[:use_fips] = false if self[:use_fips].nil?
57
+ self[:endpoint] = options[:endpoint]
58
+ end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_dual_stack: config.use_dualstack_endpoint,
64
+ use_fips: config.use_fips_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,50 @@
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
+ if Aws::Endpoints::Matchers.set?(parameters.endpoint)
14
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
15
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
16
+ end
17
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
18
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
19
+ end
20
+ return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
21
+ end
22
+ if Aws::Endpoints::Matchers.set?(parameters.region)
23
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
24
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
25
+ 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"))
26
+ return Aws::Endpoints::Endpoint.new(url: "https://applicationinsights-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
27
+ end
28
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
29
+ end
30
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
31
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
32
+ return Aws::Endpoints::Endpoint.new(url: "https://applicationinsights-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
33
+ end
34
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
35
+ end
36
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
37
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
38
+ return Aws::Endpoints::Endpoint.new(url: "https://applicationinsights.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
39
+ end
40
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
41
+ end
42
+ return Aws::Endpoints::Endpoint.new(url: "https://applicationinsights.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ end
45
+ raise ArgumentError, "Invalid Configuration: Missing Region"
46
+ raise ArgumentError, 'No endpoint could be resolved'
47
+
48
+ end
49
+ end
50
+ end