aws-sdk-applicationinsights 1.46.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
@@ -132,6 +133,7 @@ module Aws::ApplicationInsights
132
133
  MetaDataValue = Shapes::StringShape.new(name: 'MetaDataValue')
133
134
  MetricName = Shapes::StringShape.new(name: 'MetricName')
134
135
  MetricNamespace = Shapes::StringShape.new(name: 'MetricNamespace')
136
+ MissingWorkloadConfig = Shapes::BooleanShape.new(name: 'MissingWorkloadConfig')
135
137
  Monitor = Shapes::BooleanShape.new(name: 'Monitor')
136
138
  Observation = Shapes::StructureShape.new(name: 'Observation')
137
139
  ObservationId = Shapes::StringShape.new(name: 'ObservationId')
@@ -160,7 +162,9 @@ module Aws::ApplicationInsights
160
162
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
161
163
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
162
164
  S3EventName = Shapes::StringShape.new(name: 'S3EventName')
165
+ SNSNotificationArn = Shapes::StringShape.new(name: 'SNSNotificationArn')
163
166
  SeverityLevel = Shapes::StringShape.new(name: 'SeverityLevel')
167
+ ShortName = Shapes::StringShape.new(name: 'ShortName')
164
168
  SourceARN = Shapes::StringShape.new(name: 'SourceARN')
165
169
  SourceType = Shapes::StringShape.new(name: 'SourceType')
166
170
  StartTime = Shapes::TimestampShape.new(name: 'StartTime')
@@ -240,6 +244,7 @@ module Aws::ApplicationInsights
240
244
  ApplicationInfo.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
241
245
  ApplicationInfo.add_member(:life_cycle, Shapes::ShapeRef.new(shape: LifeCycle, location_name: "LifeCycle"))
242
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"))
243
248
  ApplicationInfo.add_member(:ops_center_enabled, Shapes::ShapeRef.new(shape: OpsCenterEnabled, location_name: "OpsCenterEnabled"))
244
249
  ApplicationInfo.add_member(:cwe_monitor_enabled, Shapes::ShapeRef.new(shape: CWEMonitorEnabled, location_name: "CWEMonitorEnabled"))
245
250
  ApplicationInfo.add_member(:remarks, Shapes::ShapeRef.new(shape: Remarks, location_name: "Remarks"))
@@ -269,6 +274,7 @@ module Aws::ApplicationInsights
269
274
  CreateApplicationRequest.add_member(:ops_center_enabled, Shapes::ShapeRef.new(shape: OpsCenterEnabled, location_name: "OpsCenterEnabled"))
270
275
  CreateApplicationRequest.add_member(:cwe_monitor_enabled, Shapes::ShapeRef.new(shape: CWEMonitorEnabled, location_name: "CWEMonitorEnabled"))
271
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"))
272
278
  CreateApplicationRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
273
279
  CreateApplicationRequest.add_member(:auto_config_enabled, Shapes::ShapeRef.new(shape: AutoConfigEnabled, location_name: "AutoConfigEnabled"))
274
280
  CreateApplicationRequest.add_member(:auto_create, Shapes::ShapeRef.new(shape: AutoCreate, location_name: "AutoCreate"))
@@ -381,6 +387,7 @@ module Aws::ApplicationInsights
381
387
  DescribeProblemRequest.struct_class = Types::DescribeProblemRequest
382
388
 
383
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"))
384
391
  DescribeProblemResponse.struct_class = Types::DescribeProblemResponse
385
392
 
386
393
  DescribeWorkloadRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
@@ -554,6 +561,7 @@ module Aws::ApplicationInsights
554
561
 
555
562
  Problem.add_member(:id, Shapes::ShapeRef.new(shape: ProblemId, location_name: "Id"))
556
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"))
557
565
  Problem.add_member(:insights, Shapes::ShapeRef.new(shape: Insights, location_name: "Insights"))
558
566
  Problem.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "Status"))
559
567
  Problem.add_member(:affected_resource, Shapes::ShapeRef.new(shape: AffectedResource, location_name: "AffectedResource"))
@@ -620,6 +628,7 @@ module Aws::ApplicationInsights
620
628
  UpdateApplicationRequest.add_member(:ops_center_enabled, Shapes::ShapeRef.new(shape: OpsCenterEnabled, location_name: "OpsCenterEnabled"))
621
629
  UpdateApplicationRequest.add_member(:cwe_monitor_enabled, Shapes::ShapeRef.new(shape: CWEMonitorEnabled, location_name: "CWEMonitorEnabled"))
622
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"))
623
632
  UpdateApplicationRequest.add_member(:remove_sns_topic, Shapes::ShapeRef.new(shape: RemoveSNSTopic, location_name: "RemoveSNSTopic"))
624
633
  UpdateApplicationRequest.add_member(:auto_config_enabled, Shapes::ShapeRef.new(shape: AutoConfigEnabled, location_name: "AutoConfigEnabled"))
625
634
  UpdateApplicationRequest.add_member(:attach_missing_permission, Shapes::ShapeRef.new(shape: AttachMissingPermission, location_name: "AttachMissingPermission"))
@@ -682,6 +691,7 @@ module Aws::ApplicationInsights
682
691
  Workload.add_member(:workload_name, Shapes::ShapeRef.new(shape: WorkloadName, location_name: "WorkloadName"))
683
692
  Workload.add_member(:tier, Shapes::ShapeRef.new(shape: Tier, location_name: "Tier"))
684
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"))
685
695
  Workload.struct_class = Types::Workload
686
696
 
687
697
  WorkloadConfiguration.add_member(:workload_name, Shapes::ShapeRef.new(shape: WorkloadName, location_name: "WorkloadName"))
@@ -702,9 +712,11 @@ module Aws::ApplicationInsights
702
712
 
703
713
  api.metadata = {
704
714
  "apiVersion" => "2018-11-25",
715
+ "auth" => ["aws.auth#sigv4"],
705
716
  "endpointPrefix" => "applicationinsights",
706
717
  "jsonVersion" => "1.1",
707
718
  "protocol" => "json",
719
+ "protocols" => ["json"],
708
720
  "serviceAbbreviation" => "Application Insights",
709
721
  "serviceFullName" => "Amazon CloudWatch Application Insights",
710
722
  "serviceId" => "Application Insights",
@@ -13,22 +13,22 @@ module Aws::ApplicationInsights
13
13
  # @!attribute region
14
14
  # The AWS region used to dispatch the request.
15
15
  #
16
- # @return [String]
16
+ # @return [string]
17
17
  #
18
18
  # @!attribute use_dual_stack
19
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
20
  #
21
- # @return [Boolean]
21
+ # @return [boolean]
22
22
  #
23
23
  # @!attribute use_fips
24
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
25
  #
26
- # @return [Boolean]
26
+ # @return [boolean]
27
27
  #
28
28
  # @!attribute endpoint
29
29
  # Override the endpoint used to send this request
30
30
  #
31
- # @return [String]
31
+ # @return [string]
32
32
  #
33
33
  EndpointParameters = Struct.new(
34
34
  :region,
@@ -52,15 +52,18 @@ module Aws::ApplicationInsights
52
52
  self[:region] = options[:region]
53
53
  self[:use_dual_stack] = options[:use_dual_stack]
54
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
55
  self[:use_fips] = options[:use_fips]
59
56
  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
57
  self[:endpoint] = options[:endpoint]
64
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
65
68
  end
66
69
  end
@@ -10,40 +10,36 @@
10
10
  module Aws::ApplicationInsights
11
11
  class EndpointProvider
12
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)
13
+ if Aws::Endpoints::Matchers.set?(parameters.endpoint)
14
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
19
15
  raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
16
  end
21
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
17
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
22
18
  raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
19
  end
24
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
20
+ return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
25
21
  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)
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)
29
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"))
30
- return Aws::Endpoints::Endpoint.new(url: "https://applicationinsights-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
26
+ return Aws::Endpoints::Endpoint.new(url: "https://applicationinsights-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
27
  end
32
28
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
29
  end
34
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
30
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
35
31
  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: {})
32
+ return Aws::Endpoints::Endpoint.new(url: "https://applicationinsights-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
33
  end
38
34
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
35
  end
40
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
36
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
41
37
  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: {})
38
+ return Aws::Endpoints::Endpoint.new(url: "https://applicationinsights.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
39
  end
44
40
  raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
41
  end
46
- return Aws::Endpoints::Endpoint.new(url: "https://applicationinsights.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
42
+ return Aws::Endpoints::Endpoint.new(url: "https://applicationinsights.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
43
  end
48
44
  end
49
45
  raise ArgumentError, "Invalid Configuration: Missing Region"
@@ -12,467 +12,9 @@ module Aws::ApplicationInsights
12
12
  # @api private
13
13
  module Endpoints
14
14
 
15
- class AddWorkload
16
- def self.build(context)
17
- unless context.config.regional_endpoint
18
- endpoint = context.config.endpoint.to_s
19
- end
20
- Aws::ApplicationInsights::EndpointParameters.new(
21
- region: context.config.region,
22
- use_dual_stack: context.config.use_dualstack_endpoint,
23
- use_fips: context.config.use_fips_endpoint,
24
- endpoint: endpoint,
25
- )
26
- end
27
- end
28
-
29
- class CreateApplication
30
- def self.build(context)
31
- unless context.config.regional_endpoint
32
- endpoint = context.config.endpoint.to_s
33
- end
34
- Aws::ApplicationInsights::EndpointParameters.new(
35
- region: context.config.region,
36
- use_dual_stack: context.config.use_dualstack_endpoint,
37
- use_fips: context.config.use_fips_endpoint,
38
- endpoint: endpoint,
39
- )
40
- end
41
- end
42
-
43
- class CreateComponent
44
- def self.build(context)
45
- unless context.config.regional_endpoint
46
- endpoint = context.config.endpoint.to_s
47
- end
48
- Aws::ApplicationInsights::EndpointParameters.new(
49
- region: context.config.region,
50
- use_dual_stack: context.config.use_dualstack_endpoint,
51
- use_fips: context.config.use_fips_endpoint,
52
- endpoint: endpoint,
53
- )
54
- end
55
- end
56
-
57
- class CreateLogPattern
58
- def self.build(context)
59
- unless context.config.regional_endpoint
60
- endpoint = context.config.endpoint.to_s
61
- end
62
- Aws::ApplicationInsights::EndpointParameters.new(
63
- region: context.config.region,
64
- use_dual_stack: context.config.use_dualstack_endpoint,
65
- use_fips: context.config.use_fips_endpoint,
66
- endpoint: endpoint,
67
- )
68
- end
69
- end
70
-
71
- class DeleteApplication
72
- def self.build(context)
73
- unless context.config.regional_endpoint
74
- endpoint = context.config.endpoint.to_s
75
- end
76
- Aws::ApplicationInsights::EndpointParameters.new(
77
- region: context.config.region,
78
- use_dual_stack: context.config.use_dualstack_endpoint,
79
- use_fips: context.config.use_fips_endpoint,
80
- endpoint: endpoint,
81
- )
82
- end
83
- end
84
-
85
- class DeleteComponent
86
- def self.build(context)
87
- unless context.config.regional_endpoint
88
- endpoint = context.config.endpoint.to_s
89
- end
90
- Aws::ApplicationInsights::EndpointParameters.new(
91
- region: context.config.region,
92
- use_dual_stack: context.config.use_dualstack_endpoint,
93
- use_fips: context.config.use_fips_endpoint,
94
- endpoint: endpoint,
95
- )
96
- end
97
- end
98
-
99
- class DeleteLogPattern
100
- def self.build(context)
101
- unless context.config.regional_endpoint
102
- endpoint = context.config.endpoint.to_s
103
- end
104
- Aws::ApplicationInsights::EndpointParameters.new(
105
- region: context.config.region,
106
- use_dual_stack: context.config.use_dualstack_endpoint,
107
- use_fips: context.config.use_fips_endpoint,
108
- endpoint: endpoint,
109
- )
110
- end
111
- end
112
-
113
- class DescribeApplication
114
- def self.build(context)
115
- unless context.config.regional_endpoint
116
- endpoint = context.config.endpoint.to_s
117
- end
118
- Aws::ApplicationInsights::EndpointParameters.new(
119
- region: context.config.region,
120
- use_dual_stack: context.config.use_dualstack_endpoint,
121
- use_fips: context.config.use_fips_endpoint,
122
- endpoint: endpoint,
123
- )
124
- end
125
- end
126
-
127
- class DescribeComponent
128
- def self.build(context)
129
- unless context.config.regional_endpoint
130
- endpoint = context.config.endpoint.to_s
131
- end
132
- Aws::ApplicationInsights::EndpointParameters.new(
133
- region: context.config.region,
134
- use_dual_stack: context.config.use_dualstack_endpoint,
135
- use_fips: context.config.use_fips_endpoint,
136
- endpoint: endpoint,
137
- )
138
- end
139
- end
140
-
141
- class DescribeComponentConfiguration
142
- def self.build(context)
143
- unless context.config.regional_endpoint
144
- endpoint = context.config.endpoint.to_s
145
- end
146
- Aws::ApplicationInsights::EndpointParameters.new(
147
- region: context.config.region,
148
- use_dual_stack: context.config.use_dualstack_endpoint,
149
- use_fips: context.config.use_fips_endpoint,
150
- endpoint: endpoint,
151
- )
152
- end
153
- end
154
-
155
- class DescribeComponentConfigurationRecommendation
156
- def self.build(context)
157
- unless context.config.regional_endpoint
158
- endpoint = context.config.endpoint.to_s
159
- end
160
- Aws::ApplicationInsights::EndpointParameters.new(
161
- region: context.config.region,
162
- use_dual_stack: context.config.use_dualstack_endpoint,
163
- use_fips: context.config.use_fips_endpoint,
164
- endpoint: endpoint,
165
- )
166
- end
167
- end
168
-
169
- class DescribeLogPattern
170
- def self.build(context)
171
- unless context.config.regional_endpoint
172
- endpoint = context.config.endpoint.to_s
173
- end
174
- Aws::ApplicationInsights::EndpointParameters.new(
175
- region: context.config.region,
176
- use_dual_stack: context.config.use_dualstack_endpoint,
177
- use_fips: context.config.use_fips_endpoint,
178
- endpoint: endpoint,
179
- )
180
- end
181
- end
182
-
183
- class DescribeObservation
184
- def self.build(context)
185
- unless context.config.regional_endpoint
186
- endpoint = context.config.endpoint.to_s
187
- end
188
- Aws::ApplicationInsights::EndpointParameters.new(
189
- region: context.config.region,
190
- use_dual_stack: context.config.use_dualstack_endpoint,
191
- use_fips: context.config.use_fips_endpoint,
192
- endpoint: endpoint,
193
- )
194
- end
195
- end
196
-
197
- class DescribeProblem
198
- def self.build(context)
199
- unless context.config.regional_endpoint
200
- endpoint = context.config.endpoint.to_s
201
- end
202
- Aws::ApplicationInsights::EndpointParameters.new(
203
- region: context.config.region,
204
- use_dual_stack: context.config.use_dualstack_endpoint,
205
- use_fips: context.config.use_fips_endpoint,
206
- endpoint: endpoint,
207
- )
208
- end
209
- end
210
-
211
- class DescribeProblemObservations
212
- def self.build(context)
213
- unless context.config.regional_endpoint
214
- endpoint = context.config.endpoint.to_s
215
- end
216
- Aws::ApplicationInsights::EndpointParameters.new(
217
- region: context.config.region,
218
- use_dual_stack: context.config.use_dualstack_endpoint,
219
- use_fips: context.config.use_fips_endpoint,
220
- endpoint: endpoint,
221
- )
222
- end
223
- end
224
-
225
- class DescribeWorkload
226
- def self.build(context)
227
- unless context.config.regional_endpoint
228
- endpoint = context.config.endpoint.to_s
229
- end
230
- Aws::ApplicationInsights::EndpointParameters.new(
231
- region: context.config.region,
232
- use_dual_stack: context.config.use_dualstack_endpoint,
233
- use_fips: context.config.use_fips_endpoint,
234
- endpoint: endpoint,
235
- )
236
- end
237
- end
238
-
239
- class ListApplications
240
- def self.build(context)
241
- unless context.config.regional_endpoint
242
- endpoint = context.config.endpoint.to_s
243
- end
244
- Aws::ApplicationInsights::EndpointParameters.new(
245
- region: context.config.region,
246
- use_dual_stack: context.config.use_dualstack_endpoint,
247
- use_fips: context.config.use_fips_endpoint,
248
- endpoint: endpoint,
249
- )
250
- end
251
- end
252
-
253
- class ListComponents
254
- def self.build(context)
255
- unless context.config.regional_endpoint
256
- endpoint = context.config.endpoint.to_s
257
- end
258
- Aws::ApplicationInsights::EndpointParameters.new(
259
- region: context.config.region,
260
- use_dual_stack: context.config.use_dualstack_endpoint,
261
- use_fips: context.config.use_fips_endpoint,
262
- endpoint: endpoint,
263
- )
264
- end
265
- end
266
-
267
- class ListConfigurationHistory
268
- def self.build(context)
269
- unless context.config.regional_endpoint
270
- endpoint = context.config.endpoint.to_s
271
- end
272
- Aws::ApplicationInsights::EndpointParameters.new(
273
- region: context.config.region,
274
- use_dual_stack: context.config.use_dualstack_endpoint,
275
- use_fips: context.config.use_fips_endpoint,
276
- endpoint: endpoint,
277
- )
278
- end
279
- end
280
-
281
- class ListLogPatternSets
282
- def self.build(context)
283
- unless context.config.regional_endpoint
284
- endpoint = context.config.endpoint.to_s
285
- end
286
- Aws::ApplicationInsights::EndpointParameters.new(
287
- region: context.config.region,
288
- use_dual_stack: context.config.use_dualstack_endpoint,
289
- use_fips: context.config.use_fips_endpoint,
290
- endpoint: endpoint,
291
- )
292
- end
293
- end
294
-
295
- class ListLogPatterns
296
- def self.build(context)
297
- unless context.config.regional_endpoint
298
- endpoint = context.config.endpoint.to_s
299
- end
300
- Aws::ApplicationInsights::EndpointParameters.new(
301
- region: context.config.region,
302
- use_dual_stack: context.config.use_dualstack_endpoint,
303
- use_fips: context.config.use_fips_endpoint,
304
- endpoint: endpoint,
305
- )
306
- end
307
- end
308
-
309
- class ListProblems
310
- def self.build(context)
311
- unless context.config.regional_endpoint
312
- endpoint = context.config.endpoint.to_s
313
- end
314
- Aws::ApplicationInsights::EndpointParameters.new(
315
- region: context.config.region,
316
- use_dual_stack: context.config.use_dualstack_endpoint,
317
- use_fips: context.config.use_fips_endpoint,
318
- endpoint: endpoint,
319
- )
320
- end
321
- end
322
-
323
- class ListTagsForResource
324
- def self.build(context)
325
- unless context.config.regional_endpoint
326
- endpoint = context.config.endpoint.to_s
327
- end
328
- Aws::ApplicationInsights::EndpointParameters.new(
329
- region: context.config.region,
330
- use_dual_stack: context.config.use_dualstack_endpoint,
331
- use_fips: context.config.use_fips_endpoint,
332
- endpoint: endpoint,
333
- )
334
- end
335
- end
336
-
337
- class ListWorkloads
338
- def self.build(context)
339
- unless context.config.regional_endpoint
340
- endpoint = context.config.endpoint.to_s
341
- end
342
- Aws::ApplicationInsights::EndpointParameters.new(
343
- region: context.config.region,
344
- use_dual_stack: context.config.use_dualstack_endpoint,
345
- use_fips: context.config.use_fips_endpoint,
346
- endpoint: endpoint,
347
- )
348
- end
349
- end
350
-
351
- class RemoveWorkload
352
- def self.build(context)
353
- unless context.config.regional_endpoint
354
- endpoint = context.config.endpoint.to_s
355
- end
356
- Aws::ApplicationInsights::EndpointParameters.new(
357
- region: context.config.region,
358
- use_dual_stack: context.config.use_dualstack_endpoint,
359
- use_fips: context.config.use_fips_endpoint,
360
- endpoint: endpoint,
361
- )
362
- end
363
- end
364
-
365
- class TagResource
366
- def self.build(context)
367
- unless context.config.regional_endpoint
368
- endpoint = context.config.endpoint.to_s
369
- end
370
- Aws::ApplicationInsights::EndpointParameters.new(
371
- region: context.config.region,
372
- use_dual_stack: context.config.use_dualstack_endpoint,
373
- use_fips: context.config.use_fips_endpoint,
374
- endpoint: endpoint,
375
- )
376
- end
377
- end
378
-
379
- class UntagResource
380
- def self.build(context)
381
- unless context.config.regional_endpoint
382
- endpoint = context.config.endpoint.to_s
383
- end
384
- Aws::ApplicationInsights::EndpointParameters.new(
385
- region: context.config.region,
386
- use_dual_stack: context.config.use_dualstack_endpoint,
387
- use_fips: context.config.use_fips_endpoint,
388
- endpoint: endpoint,
389
- )
390
- end
391
- end
392
-
393
- class UpdateApplication
394
- def self.build(context)
395
- unless context.config.regional_endpoint
396
- endpoint = context.config.endpoint.to_s
397
- end
398
- Aws::ApplicationInsights::EndpointParameters.new(
399
- region: context.config.region,
400
- use_dual_stack: context.config.use_dualstack_endpoint,
401
- use_fips: context.config.use_fips_endpoint,
402
- endpoint: endpoint,
403
- )
404
- end
405
- end
406
-
407
- class UpdateComponent
408
- def self.build(context)
409
- unless context.config.regional_endpoint
410
- endpoint = context.config.endpoint.to_s
411
- end
412
- Aws::ApplicationInsights::EndpointParameters.new(
413
- region: context.config.region,
414
- use_dual_stack: context.config.use_dualstack_endpoint,
415
- use_fips: context.config.use_fips_endpoint,
416
- endpoint: endpoint,
417
- )
418
- end
419
- end
420
-
421
- class UpdateComponentConfiguration
422
- def self.build(context)
423
- unless context.config.regional_endpoint
424
- endpoint = context.config.endpoint.to_s
425
- end
426
- Aws::ApplicationInsights::EndpointParameters.new(
427
- region: context.config.region,
428
- use_dual_stack: context.config.use_dualstack_endpoint,
429
- use_fips: context.config.use_fips_endpoint,
430
- endpoint: endpoint,
431
- )
432
- end
433
- end
434
-
435
- class UpdateLogPattern
436
- def self.build(context)
437
- unless context.config.regional_endpoint
438
- endpoint = context.config.endpoint.to_s
439
- end
440
- Aws::ApplicationInsights::EndpointParameters.new(
441
- region: context.config.region,
442
- use_dual_stack: context.config.use_dualstack_endpoint,
443
- use_fips: context.config.use_fips_endpoint,
444
- endpoint: endpoint,
445
- )
446
- end
447
- end
448
-
449
- class UpdateProblem
450
- def self.build(context)
451
- unless context.config.regional_endpoint
452
- endpoint = context.config.endpoint.to_s
453
- end
454
- Aws::ApplicationInsights::EndpointParameters.new(
455
- region: context.config.region,
456
- use_dual_stack: context.config.use_dualstack_endpoint,
457
- use_fips: context.config.use_fips_endpoint,
458
- endpoint: endpoint,
459
- )
460
- end
461
- end
462
15
 
463
- class UpdateWorkload
464
- def self.build(context)
465
- unless context.config.regional_endpoint
466
- endpoint = context.config.endpoint.to_s
467
- end
468
- Aws::ApplicationInsights::EndpointParameters.new(
469
- region: context.config.region,
470
- use_dual_stack: context.config.use_dualstack_endpoint,
471
- use_fips: context.config.use_fips_endpoint,
472
- endpoint: endpoint,
473
- )
474
- end
16
+ def self.parameters_for_operation(context)
17
+ Aws::ApplicationInsights::EndpointParameters.create(context.config)
475
18
  end
476
-
477
19
  end
478
20
  end