aws-sdk-health 1.47.0 → 1.49.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: 30d6ef8fe852d9913ac9cf079b8560abeb3d9c4764983dd732a0dec4cd6b73a2
4
- data.tar.gz: 71378b6c37ff47eab287e8b96e5aa0ae7c24f619fb779fdfcdd37326a188745e
3
+ metadata.gz: 5e78f68a7fd4bd126a0b4e9c13cc01892e4c8f0430093b993f5c02edf0dbf8f3
4
+ data.tar.gz: d91a1ac497ba5c6a007bbe57723a34ed4f9501280e434987571bba5793f329d7
5
5
  SHA512:
6
- metadata.gz: fcbf7890bed44932561ac96076c21567638f730555893cf1754ca53fd40961946e687fe5073eef5dd5b55875e259e1e8c08c0c3b027cc19f72373a301a1b373e
7
- data.tar.gz: 686161d14206459cedbaa0b3bc5283800c086d2361dedf55a3bc023b7f419aca23d93c4520b67fc40693d0916cccb4753c7b164cb2d49fd818127faedee64933
6
+ metadata.gz: b82651be8e5748be000e07833ab47c5a509348028986d885cdd8497c7cc7eb44870d3897f5cbd195668ee87d5dcb10f21d4f3869deb66d25854ab355111ed096
7
+ data.tar.gz: be63f037cc9170bdc89b545ab375eba4e80c3fec1a5ea1991770fa7d08ff77735d7c50dcea13bba4fb5a53c2d5e7cde1d6ec48d01c810a12313d82b34f61e846
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.49.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.48.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.47.0 (2022-02-24)
5
17
  ------------------
6
18
 
@@ -308,4 +320,4 @@ Unreleased Changes
308
320
  1.0.0.rc2 (2016-12-09)
309
321
  ------------------
310
322
 
311
- * Feature - Initial release of `aws-sdk-health`.
323
+ * Feature - Initial release of `aws-sdk-health`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.47.0
1
+ 1.49.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/json_rpc.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:health)
@@ -79,8 +79,9 @@ module Aws::Health
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::JsonRpc)
84
+ add_plugin(Aws::Health::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -297,6 +298,19 @@ module Aws::Health
297
298
  # ** Please note ** When response stubbing is enabled, no HTTP
298
299
  # requests are made, and retries are disabled.
299
300
  #
301
+ # @option options [Aws::TokenProvider] :token_provider
302
+ # A Bearer Token Provider. This can be an instance of any one of the
303
+ # following classes:
304
+ #
305
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
306
+ # tokens.
307
+ #
308
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
309
+ # access token generated from `aws login`.
310
+ #
311
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
312
+ # will be used to search for tokens configured for your profile in shared configuration files.
313
+ #
300
314
  # @option options [Boolean] :use_dualstack_endpoint
301
315
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
302
316
  # will be used if available.
@@ -310,6 +324,9 @@ module Aws::Health
310
324
  # When `true`, request parameters are validated before
311
325
  # sending the request.
312
326
  #
327
+ # @option options [Aws::Health::EndpointProvider] :endpoint_provider
328
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::Health::EndpointParameters`
329
+ #
313
330
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
314
331
  # requests through. Formatted like 'http://proxy.com:123'.
315
332
  #
@@ -1362,7 +1379,7 @@ module Aws::Health
1362
1379
  params: params,
1363
1380
  config: config)
1364
1381
  context[:gem_name] = 'aws-sdk-health'
1365
- context[:gem_version] = '1.47.0'
1382
+ context[:gem_version] = '1.49.0'
1366
1383
  Seahorse::Client::Request.new(handlers, context)
1367
1384
  end
1368
1385
 
@@ -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::Health
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,99 @@
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::Health
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.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://health-fips.#{region}.api.aws", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"health", "signingRegion"=>"us-east-1"}]})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://health-fips.#{region}.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"health", "signingRegion"=>"us-east-1"}]})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://health.#{region}.api.aws", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"health", "signingRegion"=>"us-east-1"}]})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
+ end
46
+ return Aws::Endpoints::Endpoint.new(url: "https://global.health.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"health", "signingRegion"=>"us-east-1"}]})
47
+ end
48
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn")
49
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
50
+ 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"))
51
+ return Aws::Endpoints::Endpoint.new(url: "https://health-fips.#{region}.api.amazonwebservices.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"health", "signingRegion"=>"cn-northwest-1"}]})
52
+ end
53
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
54
+ end
55
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
56
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
57
+ return Aws::Endpoints::Endpoint.new(url: "https://health-fips.#{region}.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"health", "signingRegion"=>"cn-northwest-1"}]})
58
+ end
59
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
60
+ end
61
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
62
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
63
+ return Aws::Endpoints::Endpoint.new(url: "https://health.#{region}.api.amazonwebservices.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"health", "signingRegion"=>"cn-northwest-1"}]})
64
+ end
65
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
66
+ end
67
+ return Aws::Endpoints::Endpoint.new(url: "https://global.health.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"health", "signingRegion"=>"cn-northwest-1"}]})
68
+ end
69
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
70
+ 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"))
71
+ return Aws::Endpoints::Endpoint.new(url: "https://health-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
72
+ end
73
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
74
+ end
75
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
76
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
77
+ return Aws::Endpoints::Endpoint.new(url: "https://health-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
78
+ end
79
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
80
+ end
81
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
82
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
83
+ return Aws::Endpoints::Endpoint.new(url: "https://health.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
84
+ end
85
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
86
+ end
87
+ if Aws::Endpoints::Matchers.string_equals?(region, "aws-global")
88
+ return Aws::Endpoints::Endpoint.new(url: "https://global.health.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"health", "signingRegion"=>"us-east-1"}]})
89
+ end
90
+ if Aws::Endpoints::Matchers.string_equals?(region, "aws-cn-global")
91
+ return Aws::Endpoints::Endpoint.new(url: "https://global.health.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"health", "signingRegion"=>"cn-northwest-1"}]})
92
+ end
93
+ return Aws::Endpoints::Endpoint.new(url: "https://health.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
94
+ end
95
+ raise ArgumentError, 'No endpoint could be resolved'
96
+
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,197 @@
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::Health
12
+ module Endpoints
13
+
14
+ class DescribeAffectedAccountsForOrganization
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::Health::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 DescribeAffectedEntities
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::Health::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 DescribeAffectedEntitiesForOrganization
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::Health::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 DescribeEntityAggregates
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::Health::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 DescribeEventAggregates
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::Health::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 DescribeEventDetails
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::Health::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 DescribeEventDetailsForOrganization
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::Health::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 DescribeEventTypes
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::Health::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 DescribeEvents
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::Health::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 DescribeEventsForOrganization
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::Health::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 DescribeHealthServiceStatusForOrganization
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::Health::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 DisableHealthServiceAccessForOrganization
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::Health::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 EnableHealthServiceAccessForOrganization
183
+ def self.build(context)
184
+ unless context.config.regional_endpoint
185
+ endpoint = context.config.endpoint.to_s
186
+ end
187
+ Aws::Health::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
+ end
197
+ end
@@ -0,0 +1,94 @@
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::Health
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::Health::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::Health::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::Health::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 :describe_affected_accounts_for_organization
60
+ Aws::Health::Endpoints::DescribeAffectedAccountsForOrganization.build(context)
61
+ when :describe_affected_entities
62
+ Aws::Health::Endpoints::DescribeAffectedEntities.build(context)
63
+ when :describe_affected_entities_for_organization
64
+ Aws::Health::Endpoints::DescribeAffectedEntitiesForOrganization.build(context)
65
+ when :describe_entity_aggregates
66
+ Aws::Health::Endpoints::DescribeEntityAggregates.build(context)
67
+ when :describe_event_aggregates
68
+ Aws::Health::Endpoints::DescribeEventAggregates.build(context)
69
+ when :describe_event_details
70
+ Aws::Health::Endpoints::DescribeEventDetails.build(context)
71
+ when :describe_event_details_for_organization
72
+ Aws::Health::Endpoints::DescribeEventDetailsForOrganization.build(context)
73
+ when :describe_event_types
74
+ Aws::Health::Endpoints::DescribeEventTypes.build(context)
75
+ when :describe_events
76
+ Aws::Health::Endpoints::DescribeEvents.build(context)
77
+ when :describe_events_for_organization
78
+ Aws::Health::Endpoints::DescribeEventsForOrganization.build(context)
79
+ when :describe_health_service_status_for_organization
80
+ Aws::Health::Endpoints::DescribeHealthServiceStatusForOrganization.build(context)
81
+ when :disable_health_service_access_for_organization
82
+ Aws::Health::Endpoints::DisableHealthServiceAccessForOrganization.build(context)
83
+ when :enable_health_service_access_for_organization
84
+ Aws::Health::Endpoints::EnableHealthServiceAccessForOrganization.build(context)
85
+ end
86
+ end
87
+ end
88
+
89
+ def add_handlers(handlers, _config)
90
+ handlers.add(Handler, step: :build, priority: 75)
91
+ end
92
+ end
93
+ end
94
+ end
@@ -108,14 +108,6 @@ module Aws::Health
108
108
  # [1]: https://docs.aws.amazon.com/health/latest/APIReference/API_EventFilter.html
109
109
  # [2]: https://docs.aws.amazon.com/health/latest/APIReference/API_EntityFilter.html
110
110
  #
111
- # @note When making an API call, you may pass DateTimeRange
112
- # data as a hash:
113
- #
114
- # {
115
- # from: Time.now,
116
- # to: Time.now,
117
- # }
118
- #
119
111
  # @!attribute [rw] from
120
112
  # The starting date and time of a time range.
121
113
  # @return [Time]
@@ -133,15 +125,6 @@ module Aws::Health
133
125
  include Aws::Structure
134
126
  end
135
127
 
136
- # @note When making an API call, you may pass DescribeAffectedAccountsForOrganizationRequest
137
- # data as a hash:
138
- #
139
- # {
140
- # event_arn: "eventArn", # required
141
- # next_token: "nextToken",
142
- # max_results: 1,
143
- # }
144
- #
145
128
  # @!attribute [rw] event_arn
146
129
  # The unique identifier for the event. The event ARN has the
147
130
  # `arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
@@ -215,21 +198,6 @@ module Aws::Health
215
198
  include Aws::Structure
216
199
  end
217
200
 
218
- # @note When making an API call, you may pass DescribeAffectedEntitiesForOrganizationRequest
219
- # data as a hash:
220
- #
221
- # {
222
- # organization_entity_filters: [ # required
223
- # {
224
- # event_arn: "eventArn", # required
225
- # aws_account_id: "accountId",
226
- # },
227
- # ],
228
- # locale: "locale",
229
- # next_token: "nextToken",
230
- # max_results: 1,
231
- # }
232
- #
233
201
  # @!attribute [rw] organization_entity_filters
234
202
  # A JSON set of elements including the `awsAccountId` and the
235
203
  # `eventArn`.
@@ -293,32 +261,6 @@ module Aws::Health
293
261
  include Aws::Structure
294
262
  end
295
263
 
296
- # @note When making an API call, you may pass DescribeAffectedEntitiesRequest
297
- # data as a hash:
298
- #
299
- # {
300
- # filter: { # required
301
- # event_arns: ["eventArn"], # required
302
- # entity_arns: ["entityArn"],
303
- # entity_values: ["entityValue"],
304
- # last_updated_times: [
305
- # {
306
- # from: Time.now,
307
- # to: Time.now,
308
- # },
309
- # ],
310
- # tags: [
311
- # {
312
- # "tagKey" => "tagValue",
313
- # },
314
- # ],
315
- # status_codes: ["IMPAIRED"], # accepts IMPAIRED, UNIMPAIRED, UNKNOWN
316
- # },
317
- # locale: "locale",
318
- # next_token: "nextToken",
319
- # max_results: 1,
320
- # }
321
- #
322
264
  # @!attribute [rw] filter
323
265
  # Values to narrow the results returned. At least one event ARN is
324
266
  # required.
@@ -374,13 +316,6 @@ module Aws::Health
374
316
  include Aws::Structure
375
317
  end
376
318
 
377
- # @note When making an API call, you may pass DescribeEntityAggregatesRequest
378
- # data as a hash:
379
- #
380
- # {
381
- # event_arns: ["eventArn"],
382
- # }
383
- #
384
319
  # @!attribute [rw] event_arns
385
320
  # A list of event ARNs (unique identifiers). For example:
386
321
  # `"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
@@ -408,49 +343,6 @@ module Aws::Health
408
343
  include Aws::Structure
409
344
  end
410
345
 
411
- # @note When making an API call, you may pass DescribeEventAggregatesRequest
412
- # data as a hash:
413
- #
414
- # {
415
- # filter: {
416
- # event_arns: ["eventArn"],
417
- # event_type_codes: ["eventType"],
418
- # services: ["service"],
419
- # regions: ["region"],
420
- # availability_zones: ["availabilityZone"],
421
- # start_times: [
422
- # {
423
- # from: Time.now,
424
- # to: Time.now,
425
- # },
426
- # ],
427
- # end_times: [
428
- # {
429
- # from: Time.now,
430
- # to: Time.now,
431
- # },
432
- # ],
433
- # last_updated_times: [
434
- # {
435
- # from: Time.now,
436
- # to: Time.now,
437
- # },
438
- # ],
439
- # entity_arns: ["entityArn"],
440
- # entity_values: ["entityValue"],
441
- # event_type_categories: ["issue"], # accepts issue, accountNotification, scheduledChange, investigation
442
- # tags: [
443
- # {
444
- # "tagKey" => "tagValue",
445
- # },
446
- # ],
447
- # event_status_codes: ["open"], # accepts open, closed, upcoming
448
- # },
449
- # aggregate_field: "eventTypeCategory", # required, accepts eventTypeCategory
450
- # max_results: 1,
451
- # next_token: "nextToken",
452
- # }
453
- #
454
346
  # @!attribute [rw] filter
455
347
  # Values to narrow the results returned.
456
348
  # @return [Types::EventFilter]
@@ -505,19 +397,6 @@ module Aws::Health
505
397
  include Aws::Structure
506
398
  end
507
399
 
508
- # @note When making an API call, you may pass DescribeEventDetailsForOrganizationRequest
509
- # data as a hash:
510
- #
511
- # {
512
- # organization_event_detail_filters: [ # required
513
- # {
514
- # event_arn: "eventArn", # required
515
- # aws_account_id: "accountId",
516
- # },
517
- # ],
518
- # locale: "locale",
519
- # }
520
- #
521
400
  # @!attribute [rw] organization_event_detail_filters
522
401
  # A set of JSON elements that includes the `awsAccountId` and the
523
402
  # `eventArn`.
@@ -554,14 +433,6 @@ module Aws::Health
554
433
  include Aws::Structure
555
434
  end
556
435
 
557
- # @note When making an API call, you may pass DescribeEventDetailsRequest
558
- # data as a hash:
559
- #
560
- # {
561
- # event_arns: ["eventArn"], # required
562
- # locale: "locale",
563
- # }
564
- #
565
436
  # @!attribute [rw] event_arns
566
437
  # A list of event ARNs (unique identifiers). For example:
567
438
  # `"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
@@ -599,20 +470,6 @@ module Aws::Health
599
470
  include Aws::Structure
600
471
  end
601
472
 
602
- # @note When making an API call, you may pass DescribeEventTypesRequest
603
- # data as a hash:
604
- #
605
- # {
606
- # filter: {
607
- # event_type_codes: ["eventTypeCode"],
608
- # services: ["service"],
609
- # event_type_categories: ["issue"], # accepts issue, accountNotification, scheduledChange, investigation
610
- # },
611
- # locale: "locale",
612
- # next_token: "nextToken",
613
- # max_results: 1,
614
- # }
615
- #
616
473
  # @!attribute [rw] filter
617
474
  # Values to narrow the results returned.
618
475
  # @return [Types::EventTypeFilter]
@@ -672,37 +529,6 @@ module Aws::Health
672
529
  include Aws::Structure
673
530
  end
674
531
 
675
- # @note When making an API call, you may pass DescribeEventsForOrganizationRequest
676
- # data as a hash:
677
- #
678
- # {
679
- # filter: {
680
- # event_type_codes: ["eventType"],
681
- # aws_account_ids: ["accountId"],
682
- # services: ["service"],
683
- # regions: ["region"],
684
- # start_time: {
685
- # from: Time.now,
686
- # to: Time.now,
687
- # },
688
- # end_time: {
689
- # from: Time.now,
690
- # to: Time.now,
691
- # },
692
- # last_updated_time: {
693
- # from: Time.now,
694
- # to: Time.now,
695
- # },
696
- # entity_arns: ["entityArn"],
697
- # entity_values: ["entityValue"],
698
- # event_type_categories: ["issue"], # accepts issue, accountNotification, scheduledChange, investigation
699
- # event_status_codes: ["open"], # accepts open, closed, upcoming
700
- # },
701
- # next_token: "nextToken",
702
- # max_results: 1,
703
- # locale: "locale",
704
- # }
705
- #
706
532
  # @!attribute [rw] filter
707
533
  # Values to narrow the results returned.
708
534
  # @return [Types::OrganizationEventFilter]
@@ -757,49 +583,6 @@ module Aws::Health
757
583
  include Aws::Structure
758
584
  end
759
585
 
760
- # @note When making an API call, you may pass DescribeEventsRequest
761
- # data as a hash:
762
- #
763
- # {
764
- # filter: {
765
- # event_arns: ["eventArn"],
766
- # event_type_codes: ["eventType"],
767
- # services: ["service"],
768
- # regions: ["region"],
769
- # availability_zones: ["availabilityZone"],
770
- # start_times: [
771
- # {
772
- # from: Time.now,
773
- # to: Time.now,
774
- # },
775
- # ],
776
- # end_times: [
777
- # {
778
- # from: Time.now,
779
- # to: Time.now,
780
- # },
781
- # ],
782
- # last_updated_times: [
783
- # {
784
- # from: Time.now,
785
- # to: Time.now,
786
- # },
787
- # ],
788
- # entity_arns: ["entityArn"],
789
- # entity_values: ["entityValue"],
790
- # event_type_categories: ["issue"], # accepts issue, accountNotification, scheduledChange, investigation
791
- # tags: [
792
- # {
793
- # "tagKey" => "tagValue",
794
- # },
795
- # ],
796
- # event_status_codes: ["open"], # accepts open, closed, upcoming
797
- # },
798
- # next_token: "nextToken",
799
- # max_results: 1,
800
- # locale: "locale",
801
- # }
802
- #
803
586
  # @!attribute [rw] filter
804
587
  # Values to narrow the results returned.
805
588
  # @return [Types::EventFilter]
@@ -907,27 +690,6 @@ module Aws::Health
907
690
  #
908
691
  # [1]: https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html
909
692
  #
910
- # @note When making an API call, you may pass EntityFilter
911
- # data as a hash:
912
- #
913
- # {
914
- # event_arns: ["eventArn"], # required
915
- # entity_arns: ["entityArn"],
916
- # entity_values: ["entityValue"],
917
- # last_updated_times: [
918
- # {
919
- # from: Time.now,
920
- # to: Time.now,
921
- # },
922
- # ],
923
- # tags: [
924
- # {
925
- # "tagKey" => "tagValue",
926
- # },
927
- # ],
928
- # status_codes: ["IMPAIRED"], # accepts IMPAIRED, UNIMPAIRED, UNKNOWN
929
- # }
930
- #
931
693
  # @!attribute [rw] event_arns
932
694
  # A list of event ARNs (unique identifiers). For example:
933
695
  # `"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
@@ -1094,14 +856,6 @@ module Aws::Health
1094
856
  # [1]: https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html
1095
857
  # [2]: https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html
1096
858
  #
1097
- # @note When making an API call, you may pass EventAccountFilter
1098
- # data as a hash:
1099
- #
1100
- # {
1101
- # event_arn: "eventArn", # required
1102
- # aws_account_id: "accountId",
1103
- # }
1104
- #
1105
859
  # @!attribute [rw] event_arn
1106
860
  # The unique identifier for the event. The event ARN has the
1107
861
  # `arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
@@ -1244,44 +998,6 @@ module Aws::Health
1244
998
  # [1]: https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEvents.html
1245
999
  # [2]: https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventAggregates.html
1246
1000
  #
1247
- # @note When making an API call, you may pass EventFilter
1248
- # data as a hash:
1249
- #
1250
- # {
1251
- # event_arns: ["eventArn"],
1252
- # event_type_codes: ["eventType"],
1253
- # services: ["service"],
1254
- # regions: ["region"],
1255
- # availability_zones: ["availabilityZone"],
1256
- # start_times: [
1257
- # {
1258
- # from: Time.now,
1259
- # to: Time.now,
1260
- # },
1261
- # ],
1262
- # end_times: [
1263
- # {
1264
- # from: Time.now,
1265
- # to: Time.now,
1266
- # },
1267
- # ],
1268
- # last_updated_times: [
1269
- # {
1270
- # from: Time.now,
1271
- # to: Time.now,
1272
- # },
1273
- # ],
1274
- # entity_arns: ["entityArn"],
1275
- # entity_values: ["entityValue"],
1276
- # event_type_categories: ["issue"], # accepts issue, accountNotification, scheduledChange, investigation
1277
- # tags: [
1278
- # {
1279
- # "tagKey" => "tagValue",
1280
- # },
1281
- # ],
1282
- # event_status_codes: ["open"], # accepts open, closed, upcoming
1283
- # }
1284
- #
1285
1001
  # @!attribute [rw] event_arns
1286
1002
  # A list of event ARNs (unique identifiers). For example:
1287
1003
  # `"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
@@ -1419,15 +1135,6 @@ module Aws::Health
1419
1135
  #
1420
1136
  # [1]: https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventTypes.html
1421
1137
  #
1422
- # @note When making an API call, you may pass EventTypeFilter
1423
- # data as a hash:
1424
- #
1425
- # {
1426
- # event_type_codes: ["eventTypeCode"],
1427
- # services: ["service"],
1428
- # event_type_categories: ["issue"], # accepts issue, accountNotification, scheduledChange, investigation
1429
- # }
1430
- #
1431
1138
  # @!attribute [rw] event_type_codes
1432
1139
  # A list of event type codes.
1433
1140
  # @return [Array<String>]
@@ -1738,32 +1445,6 @@ module Aws::Health
1738
1445
  #
1739
1446
  # [1]: https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventsForOrganization.html
1740
1447
  #
1741
- # @note When making an API call, you may pass OrganizationEventFilter
1742
- # data as a hash:
1743
- #
1744
- # {
1745
- # event_type_codes: ["eventType"],
1746
- # aws_account_ids: ["accountId"],
1747
- # services: ["service"],
1748
- # regions: ["region"],
1749
- # start_time: {
1750
- # from: Time.now,
1751
- # to: Time.now,
1752
- # },
1753
- # end_time: {
1754
- # from: Time.now,
1755
- # to: Time.now,
1756
- # },
1757
- # last_updated_time: {
1758
- # from: Time.now,
1759
- # to: Time.now,
1760
- # },
1761
- # entity_arns: ["entityArn"],
1762
- # entity_values: ["entityValue"],
1763
- # event_type_categories: ["issue"], # accepts issue, accountNotification, scheduledChange, investigation
1764
- # event_status_codes: ["open"], # accepts open, closed, upcoming
1765
- # }
1766
- #
1767
1448
  # @!attribute [rw] event_type_codes
1768
1449
  # A list of unique identifiers for event types. For example,
1769
1450
  # `"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".`
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-health/types'
15
15
  require_relative 'aws-sdk-health/client_api'
16
+ require_relative 'aws-sdk-health/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-health/client'
17
18
  require_relative 'aws-sdk-health/errors'
18
19
  require_relative 'aws-sdk-health/resource'
20
+ require_relative 'aws-sdk-health/endpoint_parameters'
21
+ require_relative 'aws-sdk-health/endpoint_provider'
22
+ require_relative 'aws-sdk-health/endpoints'
19
23
  require_relative 'aws-sdk-health/customizations'
20
24
 
21
25
  # This module provides support for AWS Health APIs and Notifications. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-health/customizations'
48
52
  # @!group service
49
53
  module Aws::Health
50
54
 
51
- GEM_VERSION = '1.47.0'
55
+ GEM_VERSION = '1.49.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-health
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.47.0
4
+ version: 1.49.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-02-24 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-health/client.rb
60
60
  - lib/aws-sdk-health/client_api.rb
61
61
  - lib/aws-sdk-health/customizations.rb
62
+ - lib/aws-sdk-health/endpoint_parameters.rb
63
+ - lib/aws-sdk-health/endpoint_provider.rb
64
+ - lib/aws-sdk-health/endpoints.rb
62
65
  - lib/aws-sdk-health/errors.rb
66
+ - lib/aws-sdk-health/plugins/endpoints.rb
63
67
  - lib/aws-sdk-health/resource.rb
64
68
  - lib/aws-sdk-health/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby