aws-sdk-prometheusservice 1.15.0 → 1.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e777501f52a4a2ba560f9b605b7c0b2afdaaeae5e5b0938c1f8170d26495ce2
4
- data.tar.gz: c399cfe0373207a19f2cd871848c477c566737b69147861b09e59c701100b969
3
+ metadata.gz: c4478a3c35eeabf9d0c770be456ec2bc1b038c081ed477b060f47c87973c08af
4
+ data.tar.gz: 5593228b63db87248b8f6f118b116c83d1b61ac33d4b154e3eddedefb24cd634
5
5
  SHA512:
6
- metadata.gz: c37049c1032774de83fd175f2a67f1993ac55c8dce02ed170133a231154b0929da17af842a0ea8138fb8a3c1b6ced2d84839691c8bc24c789b50e632b56c1611
7
- data.tar.gz: 9203aa7f90016d781e3eb6d76ccab6a45fc5bcf966b4a3c3f895117199be2f29afb1645de1a1b65063525b735327104d012d2092adf9e496edd2a2d7bfd24dd5
6
+ metadata.gz: f4ab0974d4cb33b6deae54f784a2cbb1c0521daebfe94596eb81ae2f6128d43969f907623bd82ca57023695b3d050bfb9e0216446ad9dc4e97f07bae103781f1
7
+ data.tar.gz: c58e8b9bf387b9abd07d06d365a1149012f4ef7a1942a56d310b405744a2703d6c3c3bfce8b95da1272f46c343ab83a79b36cfdaffa1aa8a238e89180276bc1f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.17.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
11
+ 1.16.0 (2022-10-25)
12
+ ------------------
13
+
14
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
15
+
4
16
  1.15.0 (2022-08-12)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.15.0
1
+ 1.17.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:prometheusservice)
@@ -79,8 +79,9 @@ module Aws::PrometheusService
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::PrometheusService::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::PrometheusService
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::PrometheusService
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::PrometheusService::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::PrometheusService::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -1186,7 +1203,7 @@ module Aws::PrometheusService
1186
1203
  params: params,
1187
1204
  config: config)
1188
1205
  context[:gem_name] = 'aws-sdk-prometheusservice'
1189
- context[:gem_version] = '1.15.0'
1206
+ context[:gem_version] = '1.17.0'
1190
1207
  Seahorse::Client::Request.new(handlers, context)
1191
1208
  end
1192
1209
 
@@ -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::PrometheusService
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,51 @@
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::PrometheusService
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 (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ 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"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://aps-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://aps-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://aps.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://aps.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
+ end
47
+ raise ArgumentError, 'No endpoint could be resolved'
48
+
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,309 @@
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
+
11
+ module Aws::PrometheusService
12
+ module Endpoints
13
+
14
+ class CreateAlertManagerDefinition
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::PrometheusService::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class CreateLoggingConfiguration
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::PrometheusService::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class CreateRuleGroupsNamespace
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::PrometheusService::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class CreateWorkspace
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::PrometheusService::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class DeleteAlertManagerDefinition
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::PrometheusService::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
84
+ class DeleteLoggingConfiguration
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::PrometheusService::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
98
+ class DeleteRuleGroupsNamespace
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::PrometheusService::EndpointParameters.new(
104
+ region: context.config.region,
105
+ use_dual_stack: context.config.use_dualstack_endpoint,
106
+ use_fips: context.config.use_fips_endpoint,
107
+ endpoint: endpoint,
108
+ )
109
+ end
110
+ end
111
+
112
+ class DeleteWorkspace
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::PrometheusService::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
126
+ class DescribeAlertManagerDefinition
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::PrometheusService::EndpointParameters.new(
132
+ region: context.config.region,
133
+ use_dual_stack: context.config.use_dualstack_endpoint,
134
+ use_fips: context.config.use_fips_endpoint,
135
+ endpoint: endpoint,
136
+ )
137
+ end
138
+ end
139
+
140
+ class DescribeLoggingConfiguration
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::PrometheusService::EndpointParameters.new(
146
+ region: context.config.region,
147
+ use_dual_stack: context.config.use_dualstack_endpoint,
148
+ use_fips: context.config.use_fips_endpoint,
149
+ endpoint: endpoint,
150
+ )
151
+ end
152
+ end
153
+
154
+ class DescribeRuleGroupsNamespace
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::PrometheusService::EndpointParameters.new(
160
+ region: context.config.region,
161
+ use_dual_stack: context.config.use_dualstack_endpoint,
162
+ use_fips: context.config.use_fips_endpoint,
163
+ endpoint: endpoint,
164
+ )
165
+ end
166
+ end
167
+
168
+ class DescribeWorkspace
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::PrometheusService::EndpointParameters.new(
174
+ region: context.config.region,
175
+ use_dual_stack: context.config.use_dualstack_endpoint,
176
+ use_fips: context.config.use_fips_endpoint,
177
+ endpoint: endpoint,
178
+ )
179
+ end
180
+ end
181
+
182
+ class ListRuleGroupsNamespaces
183
+ def self.build(context)
184
+ unless context.config.regional_endpoint
185
+ endpoint = context.config.endpoint.to_s
186
+ end
187
+ Aws::PrometheusService::EndpointParameters.new(
188
+ region: context.config.region,
189
+ use_dual_stack: context.config.use_dualstack_endpoint,
190
+ use_fips: context.config.use_fips_endpoint,
191
+ endpoint: endpoint,
192
+ )
193
+ end
194
+ end
195
+
196
+ class ListTagsForResource
197
+ def self.build(context)
198
+ unless context.config.regional_endpoint
199
+ endpoint = context.config.endpoint.to_s
200
+ end
201
+ Aws::PrometheusService::EndpointParameters.new(
202
+ region: context.config.region,
203
+ use_dual_stack: context.config.use_dualstack_endpoint,
204
+ use_fips: context.config.use_fips_endpoint,
205
+ endpoint: endpoint,
206
+ )
207
+ end
208
+ end
209
+
210
+ class ListWorkspaces
211
+ def self.build(context)
212
+ unless context.config.regional_endpoint
213
+ endpoint = context.config.endpoint.to_s
214
+ end
215
+ Aws::PrometheusService::EndpointParameters.new(
216
+ region: context.config.region,
217
+ use_dual_stack: context.config.use_dualstack_endpoint,
218
+ use_fips: context.config.use_fips_endpoint,
219
+ endpoint: endpoint,
220
+ )
221
+ end
222
+ end
223
+
224
+ class PutAlertManagerDefinition
225
+ def self.build(context)
226
+ unless context.config.regional_endpoint
227
+ endpoint = context.config.endpoint.to_s
228
+ end
229
+ Aws::PrometheusService::EndpointParameters.new(
230
+ region: context.config.region,
231
+ use_dual_stack: context.config.use_dualstack_endpoint,
232
+ use_fips: context.config.use_fips_endpoint,
233
+ endpoint: endpoint,
234
+ )
235
+ end
236
+ end
237
+
238
+ class PutRuleGroupsNamespace
239
+ def self.build(context)
240
+ unless context.config.regional_endpoint
241
+ endpoint = context.config.endpoint.to_s
242
+ end
243
+ Aws::PrometheusService::EndpointParameters.new(
244
+ region: context.config.region,
245
+ use_dual_stack: context.config.use_dualstack_endpoint,
246
+ use_fips: context.config.use_fips_endpoint,
247
+ endpoint: endpoint,
248
+ )
249
+ end
250
+ end
251
+
252
+ class TagResource
253
+ def self.build(context)
254
+ unless context.config.regional_endpoint
255
+ endpoint = context.config.endpoint.to_s
256
+ end
257
+ Aws::PrometheusService::EndpointParameters.new(
258
+ region: context.config.region,
259
+ use_dual_stack: context.config.use_dualstack_endpoint,
260
+ use_fips: context.config.use_fips_endpoint,
261
+ endpoint: endpoint,
262
+ )
263
+ end
264
+ end
265
+
266
+ class UntagResource
267
+ def self.build(context)
268
+ unless context.config.regional_endpoint
269
+ endpoint = context.config.endpoint.to_s
270
+ end
271
+ Aws::PrometheusService::EndpointParameters.new(
272
+ region: context.config.region,
273
+ use_dual_stack: context.config.use_dualstack_endpoint,
274
+ use_fips: context.config.use_fips_endpoint,
275
+ endpoint: endpoint,
276
+ )
277
+ end
278
+ end
279
+
280
+ class UpdateLoggingConfiguration
281
+ def self.build(context)
282
+ unless context.config.regional_endpoint
283
+ endpoint = context.config.endpoint.to_s
284
+ end
285
+ Aws::PrometheusService::EndpointParameters.new(
286
+ region: context.config.region,
287
+ use_dual_stack: context.config.use_dualstack_endpoint,
288
+ use_fips: context.config.use_fips_endpoint,
289
+ endpoint: endpoint,
290
+ )
291
+ end
292
+ end
293
+
294
+ class UpdateWorkspaceAlias
295
+ def self.build(context)
296
+ unless context.config.regional_endpoint
297
+ endpoint = context.config.endpoint.to_s
298
+ end
299
+ Aws::PrometheusService::EndpointParameters.new(
300
+ region: context.config.region,
301
+ use_dual_stack: context.config.use_dualstack_endpoint,
302
+ use_fips: context.config.use_fips_endpoint,
303
+ endpoint: endpoint,
304
+ )
305
+ end
306
+ end
307
+
308
+ end
309
+ end
@@ -0,0 +1,110 @@
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
+
11
+ module Aws::PrometheusService
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::PrometheusService::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::PrometheusService::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::PrometheusService::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :create_alert_manager_definition
60
+ Aws::PrometheusService::Endpoints::CreateAlertManagerDefinition.build(context)
61
+ when :create_logging_configuration
62
+ Aws::PrometheusService::Endpoints::CreateLoggingConfiguration.build(context)
63
+ when :create_rule_groups_namespace
64
+ Aws::PrometheusService::Endpoints::CreateRuleGroupsNamespace.build(context)
65
+ when :create_workspace
66
+ Aws::PrometheusService::Endpoints::CreateWorkspace.build(context)
67
+ when :delete_alert_manager_definition
68
+ Aws::PrometheusService::Endpoints::DeleteAlertManagerDefinition.build(context)
69
+ when :delete_logging_configuration
70
+ Aws::PrometheusService::Endpoints::DeleteLoggingConfiguration.build(context)
71
+ when :delete_rule_groups_namespace
72
+ Aws::PrometheusService::Endpoints::DeleteRuleGroupsNamespace.build(context)
73
+ when :delete_workspace
74
+ Aws::PrometheusService::Endpoints::DeleteWorkspace.build(context)
75
+ when :describe_alert_manager_definition
76
+ Aws::PrometheusService::Endpoints::DescribeAlertManagerDefinition.build(context)
77
+ when :describe_logging_configuration
78
+ Aws::PrometheusService::Endpoints::DescribeLoggingConfiguration.build(context)
79
+ when :describe_rule_groups_namespace
80
+ Aws::PrometheusService::Endpoints::DescribeRuleGroupsNamespace.build(context)
81
+ when :describe_workspace
82
+ Aws::PrometheusService::Endpoints::DescribeWorkspace.build(context)
83
+ when :list_rule_groups_namespaces
84
+ Aws::PrometheusService::Endpoints::ListRuleGroupsNamespaces.build(context)
85
+ when :list_tags_for_resource
86
+ Aws::PrometheusService::Endpoints::ListTagsForResource.build(context)
87
+ when :list_workspaces
88
+ Aws::PrometheusService::Endpoints::ListWorkspaces.build(context)
89
+ when :put_alert_manager_definition
90
+ Aws::PrometheusService::Endpoints::PutAlertManagerDefinition.build(context)
91
+ when :put_rule_groups_namespace
92
+ Aws::PrometheusService::Endpoints::PutRuleGroupsNamespace.build(context)
93
+ when :tag_resource
94
+ Aws::PrometheusService::Endpoints::TagResource.build(context)
95
+ when :untag_resource
96
+ Aws::PrometheusService::Endpoints::UntagResource.build(context)
97
+ when :update_logging_configuration
98
+ Aws::PrometheusService::Endpoints::UpdateLoggingConfiguration.build(context)
99
+ when :update_workspace_alias
100
+ Aws::PrometheusService::Endpoints::UpdateWorkspaceAlias.build(context)
101
+ end
102
+ end
103
+ end
104
+
105
+ def add_handlers(handlers, _config)
106
+ handlers.add(Handler, step: :build, priority: 75)
107
+ end
108
+ end
109
+ end
110
+ end
@@ -98,15 +98,6 @@ module Aws::PrometheusService
98
98
 
99
99
  # Represents the input of a CreateAlertManagerDefinition operation.
100
100
  #
101
- # @note When making an API call, you may pass CreateAlertManagerDefinitionRequest
102
- # data as a hash:
103
- #
104
- # {
105
- # client_token: "IdempotencyToken",
106
- # data: "data", # required
107
- # workspace_id: "WorkspaceId", # required
108
- # }
109
- #
110
101
  # @!attribute [rw] client_token
111
102
  # Optional, unique, case-sensitive, user-provided identifier to ensure
112
103
  # the idempotency of the request.
@@ -150,15 +141,6 @@ module Aws::PrometheusService
150
141
 
151
142
  # Represents the input of a CreateLoggingConfiguration operation.
152
143
  #
153
- # @note When making an API call, you may pass CreateLoggingConfigurationRequest
154
- # data as a hash:
155
- #
156
- # {
157
- # client_token: "IdempotencyToken",
158
- # log_group_arn: "LogGroupArn", # required
159
- # workspace_id: "WorkspaceId", # required
160
- # }
161
- #
162
144
  # @!attribute [rw] client_token
163
145
  # Optional, unique, case-sensitive, user-provided identifier to ensure
164
146
  # the idempotency of the request.
@@ -202,19 +184,6 @@ module Aws::PrometheusService
202
184
 
203
185
  # Represents the input of a CreateRuleGroupsNamespace operation.
204
186
  #
205
- # @note When making an API call, you may pass CreateRuleGroupsNamespaceRequest
206
- # data as a hash:
207
- #
208
- # {
209
- # client_token: "IdempotencyToken",
210
- # data: "data", # required
211
- # name: "RuleGroupsNamespaceName", # required
212
- # tags: {
213
- # "TagKey" => "TagValue",
214
- # },
215
- # workspace_id: "WorkspaceId", # required
216
- # }
217
- #
218
187
  # @!attribute [rw] client_token
219
188
  # Optional, unique, case-sensitive, user-provided identifier to ensure
220
189
  # the idempotency of the request.
@@ -282,17 +251,6 @@ module Aws::PrometheusService
282
251
 
283
252
  # Represents the input of a CreateWorkspace operation.
284
253
  #
285
- # @note When making an API call, you may pass CreateWorkspaceRequest
286
- # data as a hash:
287
- #
288
- # {
289
- # alias: "WorkspaceAlias",
290
- # client_token: "IdempotencyToken",
291
- # tags: {
292
- # "TagKey" => "TagValue",
293
- # },
294
- # }
295
- #
296
254
  # @!attribute [rw] alias
297
255
  # An optional user-assigned alias for this workspace. This alias is
298
256
  # for user reference and does not need to be unique.
@@ -352,14 +310,6 @@ module Aws::PrometheusService
352
310
 
353
311
  # Represents the input of a DeleteAlertManagerDefinition operation.
354
312
  #
355
- # @note When making an API call, you may pass DeleteAlertManagerDefinitionRequest
356
- # data as a hash:
357
- #
358
- # {
359
- # client_token: "IdempotencyToken",
360
- # workspace_id: "WorkspaceId", # required
361
- # }
362
- #
363
313
  # @!attribute [rw] client_token
364
314
  # Optional, unique, case-sensitive, user-provided identifier to ensure
365
315
  # the idempotency of the request.
@@ -384,14 +334,6 @@ module Aws::PrometheusService
384
334
 
385
335
  # Represents the input of a DeleteLoggingConfiguration operation.
386
336
  #
387
- # @note When making an API call, you may pass DeleteLoggingConfigurationRequest
388
- # data as a hash:
389
- #
390
- # {
391
- # client_token: "IdempotencyToken",
392
- # workspace_id: "WorkspaceId", # required
393
- # }
394
- #
395
337
  # @!attribute [rw] client_token
396
338
  # Optional, unique, case-sensitive, user-provided identifier to ensure
397
339
  # the idempotency of the request.
@@ -415,15 +357,6 @@ module Aws::PrometheusService
415
357
 
416
358
  # Represents the input of a DeleteRuleGroupsNamespace operation.
417
359
  #
418
- # @note When making an API call, you may pass DeleteRuleGroupsNamespaceRequest
419
- # data as a hash:
420
- #
421
- # {
422
- # client_token: "IdempotencyToken",
423
- # name: "RuleGroupsNamespaceName", # required
424
- # workspace_id: "WorkspaceId", # required
425
- # }
426
- #
427
360
  # @!attribute [rw] client_token
428
361
  # Optional, unique, case-sensitive, user-provided identifier to ensure
429
362
  # the idempotency of the request.
@@ -452,14 +385,6 @@ module Aws::PrometheusService
452
385
 
453
386
  # Represents the input of a DeleteWorkspace operation.
454
387
  #
455
- # @note When making an API call, you may pass DeleteWorkspaceRequest
456
- # data as a hash:
457
- #
458
- # {
459
- # client_token: "IdempotencyToken",
460
- # workspace_id: "WorkspaceId", # required
461
- # }
462
- #
463
388
  # @!attribute [rw] client_token
464
389
  # Optional, unique, case-sensitive, user-provided identifier to ensure
465
390
  # the idempotency of the request.
@@ -483,13 +408,6 @@ module Aws::PrometheusService
483
408
 
484
409
  # Represents the input of a DescribeAlertManagerDefinition operation.
485
410
  #
486
- # @note When making an API call, you may pass DescribeAlertManagerDefinitionRequest
487
- # data as a hash:
488
- #
489
- # {
490
- # workspace_id: "WorkspaceId", # required
491
- # }
492
- #
493
411
  # @!attribute [rw] workspace_id
494
412
  # The ID of the workspace to describe.
495
413
  # @return [String]
@@ -519,13 +437,6 @@ module Aws::PrometheusService
519
437
 
520
438
  # Represents the input of a DescribeLoggingConfiguration operation.
521
439
  #
522
- # @note When making an API call, you may pass DescribeLoggingConfigurationRequest
523
- # data as a hash:
524
- #
525
- # {
526
- # workspace_id: "WorkspaceId", # required
527
- # }
528
- #
529
440
  # @!attribute [rw] workspace_id
530
441
  # The ID of the workspace to vend logs to.
531
442
  # @return [String]
@@ -555,14 +466,6 @@ module Aws::PrometheusService
555
466
 
556
467
  # Represents the input of a DescribeRuleGroupsNamespace operation.
557
468
  #
558
- # @note When making an API call, you may pass DescribeRuleGroupsNamespaceRequest
559
- # data as a hash:
560
- #
561
- # {
562
- # name: "RuleGroupsNamespaceName", # required
563
- # workspace_id: "WorkspaceId", # required
564
- # }
565
- #
566
469
  # @!attribute [rw] name
567
470
  # The rule groups namespace.
568
471
  # @return [String]
@@ -596,13 +499,6 @@ module Aws::PrometheusService
596
499
 
597
500
  # Represents the input of a DescribeWorkspace operation.
598
501
  #
599
- # @note When making an API call, you may pass DescribeWorkspaceRequest
600
- # data as a hash:
601
- #
602
- # {
603
- # workspace_id: "WorkspaceId", # required
604
- # }
605
- #
606
502
  # @!attribute [rw] workspace_id
607
503
  # The ID of the workspace to describe.
608
504
  # @return [String]
@@ -650,16 +546,6 @@ module Aws::PrometheusService
650
546
 
651
547
  # Represents the input of a ListRuleGroupsNamespaces operation.
652
548
  #
653
- # @note When making an API call, you may pass ListRuleGroupsNamespacesRequest
654
- # data as a hash:
655
- #
656
- # {
657
- # max_results: 1,
658
- # name: "RuleGroupsNamespaceName",
659
- # next_token: "PaginationToken",
660
- # workspace_id: "WorkspaceId", # required
661
- # }
662
- #
663
549
  # @!attribute [rw] max_results
664
550
  # Maximum results to return in response (default=100, maximum=1000).
665
551
  # @return [Integer]
@@ -709,13 +595,6 @@ module Aws::PrometheusService
709
595
  include Aws::Structure
710
596
  end
711
597
 
712
- # @note When making an API call, you may pass ListTagsForResourceRequest
713
- # data as a hash:
714
- #
715
- # {
716
- # resource_arn: "String", # required
717
- # }
718
- #
719
598
  # @!attribute [rw] resource_arn
720
599
  # The ARN of the resource.
721
600
  # @return [String]
@@ -742,15 +621,6 @@ module Aws::PrometheusService
742
621
 
743
622
  # Represents the input of a ListWorkspaces operation.
744
623
  #
745
- # @note When making an API call, you may pass ListWorkspacesRequest
746
- # data as a hash:
747
- #
748
- # {
749
- # alias: "WorkspaceAlias",
750
- # max_results: 1,
751
- # next_token: "PaginationToken",
752
- # }
753
- #
754
624
  # @!attribute [rw] alias
755
625
  # Optional filter for workspace alias. Only the workspaces with
756
626
  # aliases that begin with this value will be returned.
@@ -852,15 +722,6 @@ module Aws::PrometheusService
852
722
 
853
723
  # Represents the input of a PutAlertManagerDefinition operation.
854
724
  #
855
- # @note When making an API call, you may pass PutAlertManagerDefinitionRequest
856
- # data as a hash:
857
- #
858
- # {
859
- # client_token: "IdempotencyToken",
860
- # data: "data", # required
861
- # workspace_id: "WorkspaceId", # required
862
- # }
863
- #
864
725
  # @!attribute [rw] client_token
865
726
  # Optional, unique, case-sensitive, user-provided identifier to ensure
866
727
  # the idempotency of the request.
@@ -904,16 +765,6 @@ module Aws::PrometheusService
904
765
 
905
766
  # Represents the input of a PutRuleGroupsNamespace operation.
906
767
  #
907
- # @note When making an API call, you may pass PutRuleGroupsNamespaceRequest
908
- # data as a hash:
909
- #
910
- # {
911
- # client_token: "IdempotencyToken",
912
- # data: "data", # required
913
- # name: "RuleGroupsNamespaceName", # required
914
- # workspace_id: "WorkspaceId", # required
915
- # }
916
- #
917
768
  # @!attribute [rw] client_token
918
769
  # Optional, unique, case-sensitive, user-provided identifier to ensure
919
770
  # the idempotency of the request.
@@ -1134,16 +985,6 @@ module Aws::PrometheusService
1134
985
  include Aws::Structure
1135
986
  end
1136
987
 
1137
- # @note When making an API call, you may pass TagResourceRequest
1138
- # data as a hash:
1139
- #
1140
- # {
1141
- # resource_arn: "String", # required
1142
- # tags: { # required
1143
- # "TagKey" => "TagValue",
1144
- # },
1145
- # }
1146
- #
1147
988
  # @!attribute [rw] resource_arn
1148
989
  # The ARN of the resource.
1149
990
  # @return [String]
@@ -1194,14 +1035,6 @@ module Aws::PrometheusService
1194
1035
  include Aws::Structure
1195
1036
  end
1196
1037
 
1197
- # @note When making an API call, you may pass UntagResourceRequest
1198
- # data as a hash:
1199
- #
1200
- # {
1201
- # resource_arn: "String", # required
1202
- # tag_keys: ["TagKey"], # required
1203
- # }
1204
- #
1205
1038
  # @!attribute [rw] resource_arn
1206
1039
  # The ARN of the resource.
1207
1040
  # @return [String]
@@ -1225,15 +1058,6 @@ module Aws::PrometheusService
1225
1058
 
1226
1059
  # Represents the input of an UpdateLoggingConfiguration operation.
1227
1060
  #
1228
- # @note When making an API call, you may pass UpdateLoggingConfigurationRequest
1229
- # data as a hash:
1230
- #
1231
- # {
1232
- # client_token: "IdempotencyToken",
1233
- # log_group_arn: "LogGroupArn", # required
1234
- # workspace_id: "WorkspaceId", # required
1235
- # }
1236
- #
1237
1061
  # @!attribute [rw] client_token
1238
1062
  # Optional, unique, case-sensitive, user-provided identifier to ensure
1239
1063
  # the idempotency of the request.
@@ -1277,15 +1101,6 @@ module Aws::PrometheusService
1277
1101
 
1278
1102
  # Represents the input of an UpdateWorkspaceAlias operation.
1279
1103
  #
1280
- # @note When making an API call, you may pass UpdateWorkspaceAliasRequest
1281
- # data as a hash:
1282
- #
1283
- # {
1284
- # alias: "WorkspaceAlias",
1285
- # client_token: "IdempotencyToken",
1286
- # workspace_id: "WorkspaceId", # required
1287
- # }
1288
- #
1289
1104
  # @!attribute [rw] alias
1290
1105
  # The new alias of the workspace.
1291
1106
  # @return [String]
@@ -13,10 +13,14 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-prometheusservice/types'
15
15
  require_relative 'aws-sdk-prometheusservice/client_api'
16
+ require_relative 'aws-sdk-prometheusservice/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-prometheusservice/client'
17
18
  require_relative 'aws-sdk-prometheusservice/errors'
18
19
  require_relative 'aws-sdk-prometheusservice/waiters'
19
20
  require_relative 'aws-sdk-prometheusservice/resource'
21
+ require_relative 'aws-sdk-prometheusservice/endpoint_parameters'
22
+ require_relative 'aws-sdk-prometheusservice/endpoint_provider'
23
+ require_relative 'aws-sdk-prometheusservice/endpoints'
20
24
  require_relative 'aws-sdk-prometheusservice/customizations'
21
25
 
22
26
  # This module provides support for Amazon Prometheus Service. This module is available in the
@@ -49,6 +53,6 @@ require_relative 'aws-sdk-prometheusservice/customizations'
49
53
  # @!group service
50
54
  module Aws::PrometheusService
51
55
 
52
- GEM_VERSION = '1.15.0'
56
+ GEM_VERSION = '1.17.0'
53
57
 
54
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-prometheusservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.0
4
+ version: 1.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-12 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-prometheusservice/client.rb
60
60
  - lib/aws-sdk-prometheusservice/client_api.rb
61
61
  - lib/aws-sdk-prometheusservice/customizations.rb
62
+ - lib/aws-sdk-prometheusservice/endpoint_parameters.rb
63
+ - lib/aws-sdk-prometheusservice/endpoint_provider.rb
64
+ - lib/aws-sdk-prometheusservice/endpoints.rb
62
65
  - lib/aws-sdk-prometheusservice/errors.rb
66
+ - lib/aws-sdk-prometheusservice/plugins/endpoints.rb
63
67
  - lib/aws-sdk-prometheusservice/resource.rb
64
68
  - lib/aws-sdk-prometheusservice/types.rb
65
69
  - lib/aws-sdk-prometheusservice/waiters.rb