aws-sdk-resourceexplorer2 1.15.0 → 1.16.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: aa7bdab7fdc662fc6eb00dc06fa7e5872fb43963440c4d8b730819c8ae9e0cd9
4
- data.tar.gz: 689005bfd0aec4f2ccdfd84d59203682310f51062a96746e6bd956b9a3bc1a47
3
+ metadata.gz: 3ba413ad30f88ed9f55e4cb00f9a00599bd06b33dd0121cf99adcf10443b3e88
4
+ data.tar.gz: 167baf338ff2801261a2dbbe16a385b266421a46ae242abfd60c64698f0d3a1c
5
5
  SHA512:
6
- metadata.gz: 7dee75dfe52cdebd948e4939f64eedda27ae98118e5b13068828742b3a0ded9bff764f70f0a312a198891e46e7ab1fc3de20935904a91294f1a77c38baff1b58
7
- data.tar.gz: beb85fbe922d6385d7397f242f08cef508410032db961dac1a385bb1bace0afda7bd0f51f48d5f4897e72536baa8c04374acf37913f1198aa01dccfe746b7b80
6
+ metadata.gz: edb3cd49ce1370b23c0248bccec58d4c67ea5a4a7799682b3b815ab12dfc5ee1874171a8ca32fd3ea895ccb159a7f1f16740127e749bd9260c6f3b00c3172cf8
7
+ data.tar.gz: ed80e08ff681b952c537571afbc51feacd7745eef028a7f21b5eb9a6a92cbfa1a35e0b2ad5b80ded3fe7d7d8c060da9f0de575193d41e18fcb658c7452d8f128
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.16.0 (2024-02-13)
5
+ ------------------
6
+
7
+ * Feature - Resource Explorer now uses newly supported IPv4 'amazonaws.com' endpoints by default.
8
+
4
9
  1.15.0 (2024-01-26)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.15.0
1
+ 1.16.0
@@ -1611,7 +1611,7 @@ module Aws::ResourceExplorer2
1611
1611
  params: params,
1612
1612
  config: config)
1613
1613
  context[:gem_name] = 'aws-sdk-resourceexplorer2'
1614
- context[:gem_version] = '1.15.0'
1614
+ context[:gem_version] = '1.16.0'
1615
1615
  Seahorse::Client::Request.new(handlers, context)
1616
1616
  end
1617
1617
 
@@ -15,6 +15,11 @@ module Aws::ResourceExplorer2
15
15
  #
16
16
  # @return [String]
17
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
+ #
18
23
  # @!attribute use_fips
19
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.
20
25
  #
@@ -27,6 +32,7 @@ module Aws::ResourceExplorer2
27
32
  #
28
33
  EndpointParameters = Struct.new(
29
34
  :region,
35
+ :use_dual_stack,
30
36
  :use_fips,
31
37
  :endpoint,
32
38
  ) do
@@ -36,6 +42,7 @@ module Aws::ResourceExplorer2
36
42
  class << self
37
43
  PARAM_MAP = {
38
44
  'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
39
46
  'UseFIPS' => :use_fips,
40
47
  'Endpoint' => :endpoint,
41
48
  }.freeze
@@ -43,6 +50,11 @@ module Aws::ResourceExplorer2
43
50
 
44
51
  def initialize(options = {})
45
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
46
58
  self[:use_fips] = options[:use_fips]
47
59
  self[:use_fips] = false if self[:use_fips].nil?
48
60
  if self[:use_fips].nil?
@@ -11,24 +11,25 @@ module Aws::ResourceExplorer2
11
11
  class EndpointProvider
12
12
  def resolve_endpoint(parameters)
13
13
  region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
14
15
  use_fips = parameters.use_fips
15
16
  endpoint = parameters.endpoint
16
17
  if Aws::Endpoints::Matchers.set?(endpoint)
17
18
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
18
19
  raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
19
20
  end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
20
24
  return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
21
25
  end
22
26
  if Aws::Endpoints::Matchers.set?(region)
23
27
  if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
24
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
25
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
26
- if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
27
- return Aws::Endpoints::Endpoint.new(url: "https://resource-explorer-2-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
28
- end
29
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
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://resource-explorer-2-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
31
  end
31
- return Aws::Endpoints::Endpoint.new(url: "https://resource-explorer-2.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
33
  end
33
34
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
35
  if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
@@ -36,6 +37,12 @@ module Aws::ResourceExplorer2
36
37
  end
37
38
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
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://resource-explorer-2.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
+ end
39
46
  return Aws::Endpoints::Endpoint.new(url: "https://resource-explorer-2.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
40
47
  end
41
48
  end
@@ -19,6 +19,7 @@ module Aws::ResourceExplorer2
19
19
  end
20
20
  Aws::ResourceExplorer2::EndpointParameters.new(
21
21
  region: context.config.region,
22
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
23
  use_fips: context.config.use_fips_endpoint,
23
24
  endpoint: endpoint,
24
25
  )
@@ -32,6 +33,7 @@ module Aws::ResourceExplorer2
32
33
  end
33
34
  Aws::ResourceExplorer2::EndpointParameters.new(
34
35
  region: context.config.region,
36
+ use_dual_stack: context.config.use_dualstack_endpoint,
35
37
  use_fips: context.config.use_fips_endpoint,
36
38
  endpoint: endpoint,
37
39
  )
@@ -45,6 +47,7 @@ module Aws::ResourceExplorer2
45
47
  end
46
48
  Aws::ResourceExplorer2::EndpointParameters.new(
47
49
  region: context.config.region,
50
+ use_dual_stack: context.config.use_dualstack_endpoint,
48
51
  use_fips: context.config.use_fips_endpoint,
49
52
  endpoint: endpoint,
50
53
  )
@@ -58,6 +61,7 @@ module Aws::ResourceExplorer2
58
61
  end
59
62
  Aws::ResourceExplorer2::EndpointParameters.new(
60
63
  region: context.config.region,
64
+ use_dual_stack: context.config.use_dualstack_endpoint,
61
65
  use_fips: context.config.use_fips_endpoint,
62
66
  endpoint: endpoint,
63
67
  )
@@ -71,6 +75,7 @@ module Aws::ResourceExplorer2
71
75
  end
72
76
  Aws::ResourceExplorer2::EndpointParameters.new(
73
77
  region: context.config.region,
78
+ use_dual_stack: context.config.use_dualstack_endpoint,
74
79
  use_fips: context.config.use_fips_endpoint,
75
80
  endpoint: endpoint,
76
81
  )
@@ -84,6 +89,7 @@ module Aws::ResourceExplorer2
84
89
  end
85
90
  Aws::ResourceExplorer2::EndpointParameters.new(
86
91
  region: context.config.region,
92
+ use_dual_stack: context.config.use_dualstack_endpoint,
87
93
  use_fips: context.config.use_fips_endpoint,
88
94
  endpoint: endpoint,
89
95
  )
@@ -97,6 +103,7 @@ module Aws::ResourceExplorer2
97
103
  end
98
104
  Aws::ResourceExplorer2::EndpointParameters.new(
99
105
  region: context.config.region,
106
+ use_dual_stack: context.config.use_dualstack_endpoint,
100
107
  use_fips: context.config.use_fips_endpoint,
101
108
  endpoint: endpoint,
102
109
  )
@@ -110,6 +117,7 @@ module Aws::ResourceExplorer2
110
117
  end
111
118
  Aws::ResourceExplorer2::EndpointParameters.new(
112
119
  region: context.config.region,
120
+ use_dual_stack: context.config.use_dualstack_endpoint,
113
121
  use_fips: context.config.use_fips_endpoint,
114
122
  endpoint: endpoint,
115
123
  )
@@ -123,6 +131,7 @@ module Aws::ResourceExplorer2
123
131
  end
124
132
  Aws::ResourceExplorer2::EndpointParameters.new(
125
133
  region: context.config.region,
134
+ use_dual_stack: context.config.use_dualstack_endpoint,
126
135
  use_fips: context.config.use_fips_endpoint,
127
136
  endpoint: endpoint,
128
137
  )
@@ -136,6 +145,7 @@ module Aws::ResourceExplorer2
136
145
  end
137
146
  Aws::ResourceExplorer2::EndpointParameters.new(
138
147
  region: context.config.region,
148
+ use_dual_stack: context.config.use_dualstack_endpoint,
139
149
  use_fips: context.config.use_fips_endpoint,
140
150
  endpoint: endpoint,
141
151
  )
@@ -149,6 +159,7 @@ module Aws::ResourceExplorer2
149
159
  end
150
160
  Aws::ResourceExplorer2::EndpointParameters.new(
151
161
  region: context.config.region,
162
+ use_dual_stack: context.config.use_dualstack_endpoint,
152
163
  use_fips: context.config.use_fips_endpoint,
153
164
  endpoint: endpoint,
154
165
  )
@@ -162,6 +173,7 @@ module Aws::ResourceExplorer2
162
173
  end
163
174
  Aws::ResourceExplorer2::EndpointParameters.new(
164
175
  region: context.config.region,
176
+ use_dual_stack: context.config.use_dualstack_endpoint,
165
177
  use_fips: context.config.use_fips_endpoint,
166
178
  endpoint: endpoint,
167
179
  )
@@ -175,6 +187,7 @@ module Aws::ResourceExplorer2
175
187
  end
176
188
  Aws::ResourceExplorer2::EndpointParameters.new(
177
189
  region: context.config.region,
190
+ use_dual_stack: context.config.use_dualstack_endpoint,
178
191
  use_fips: context.config.use_fips_endpoint,
179
192
  endpoint: endpoint,
180
193
  )
@@ -188,6 +201,7 @@ module Aws::ResourceExplorer2
188
201
  end
189
202
  Aws::ResourceExplorer2::EndpointParameters.new(
190
203
  region: context.config.region,
204
+ use_dual_stack: context.config.use_dualstack_endpoint,
191
205
  use_fips: context.config.use_fips_endpoint,
192
206
  endpoint: endpoint,
193
207
  )
@@ -201,6 +215,7 @@ module Aws::ResourceExplorer2
201
215
  end
202
216
  Aws::ResourceExplorer2::EndpointParameters.new(
203
217
  region: context.config.region,
218
+ use_dual_stack: context.config.use_dualstack_endpoint,
204
219
  use_fips: context.config.use_fips_endpoint,
205
220
  endpoint: endpoint,
206
221
  )
@@ -214,6 +229,7 @@ module Aws::ResourceExplorer2
214
229
  end
215
230
  Aws::ResourceExplorer2::EndpointParameters.new(
216
231
  region: context.config.region,
232
+ use_dual_stack: context.config.use_dualstack_endpoint,
217
233
  use_fips: context.config.use_fips_endpoint,
218
234
  endpoint: endpoint,
219
235
  )
@@ -227,6 +243,7 @@ module Aws::ResourceExplorer2
227
243
  end
228
244
  Aws::ResourceExplorer2::EndpointParameters.new(
229
245
  region: context.config.region,
246
+ use_dual_stack: context.config.use_dualstack_endpoint,
230
247
  use_fips: context.config.use_fips_endpoint,
231
248
  endpoint: endpoint,
232
249
  )
@@ -240,6 +257,7 @@ module Aws::ResourceExplorer2
240
257
  end
241
258
  Aws::ResourceExplorer2::EndpointParameters.new(
242
259
  region: context.config.region,
260
+ use_dual_stack: context.config.use_dualstack_endpoint,
243
261
  use_fips: context.config.use_fips_endpoint,
244
262
  endpoint: endpoint,
245
263
  )
@@ -253,6 +271,7 @@ module Aws::ResourceExplorer2
253
271
  end
254
272
  Aws::ResourceExplorer2::EndpointParameters.new(
255
273
  region: context.config.region,
274
+ use_dual_stack: context.config.use_dualstack_endpoint,
256
275
  use_fips: context.config.use_fips_endpoint,
257
276
  endpoint: endpoint,
258
277
  )
@@ -266,6 +285,7 @@ module Aws::ResourceExplorer2
266
285
  end
267
286
  Aws::ResourceExplorer2::EndpointParameters.new(
268
287
  region: context.config.region,
288
+ use_dual_stack: context.config.use_dualstack_endpoint,
269
289
  use_fips: context.config.use_fips_endpoint,
270
290
  endpoint: endpoint,
271
291
  )
@@ -279,6 +299,7 @@ module Aws::ResourceExplorer2
279
299
  end
280
300
  Aws::ResourceExplorer2::EndpointParameters.new(
281
301
  region: context.config.region,
302
+ use_dual_stack: context.config.use_dualstack_endpoint,
282
303
  use_fips: context.config.use_fips_endpoint,
283
304
  endpoint: endpoint,
284
305
  )
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-resourceexplorer2/customizations'
52
52
  # @!group service
53
53
  module Aws::ResourceExplorer2
54
54
 
55
- GEM_VERSION = '1.15.0'
55
+ GEM_VERSION = '1.16.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-resourceexplorer2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.0
4
+ version: 1.16.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: 2024-01-26 00:00:00.000000000 Z
11
+ date: 2024-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core