aws-sdk-servicediscovery 1.103.0 → 1.104.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3badb32c394e721ebfe9ee763e59f5f40051b9009040d18c0c9f11b444af3fa8
4
- data.tar.gz: 924404d51808d2aa2bacd556cbc317cdedbb9fa885387287f562d40200ad714c
3
+ metadata.gz: bb60e37ccae97429faba816101e50a6e0c007c88049f0e3ddbac0710e48f7be9
4
+ data.tar.gz: 1191925995eb30bc8480731e8ab7c834d4b4c92c7716e7a2e07e74e3eed3fe4f
5
5
  SHA512:
6
- metadata.gz: 966b21a1280a167e07fba6a6753cec024cffbfd834363b3bebd92cac68ec57f9b22ef643bb78a8a4f66b70309d3c2f0825417fc3175775e1736d623d304bc353
7
- data.tar.gz: 3efbc1e24c5945aebd1d110cd30cf2a267cf2f677fe665bcc61e9fca8522aa8d3a7ce99003ff6a600118d7d22614163cbd335cdfb8dff64fc6b25e4e5e5c958c
6
+ metadata.gz: 1dea1f3e5e7c6f386974d37e80b77dcb5266a50e55e9d47eddafab887f02d8b35a3da9ad2eaa92257dd40ce0f3c2fec959c073b7d9c9c0e2cfbe7954254818b2
7
+ data.tar.gz: 9a0484d3e415d0652b772d41c5f1c46fe812ec40385b4d516733ef7e0a310841bc25fd3f05a341f16d791ac0800c4ac27a04778d528efd3235ed4c9e107e8a0a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.104.0 (2026-07-14)
5
+ ------------------
6
+
7
+ * Feature - Fixed Cloud Map endpoint resolution to correctly route to the dualstack endpoint when dualstack is enabled.
8
+
4
9
  1.103.0 (2026-07-09)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.103.0
1
+ 1.104.0
@@ -3731,7 +3731,7 @@ module Aws::ServiceDiscovery
3731
3731
  tracer: tracer
3732
3732
  )
3733
3733
  context[:gem_name] = 'aws-sdk-servicediscovery'
3734
- context[:gem_version] = '1.103.0'
3734
+ context[:gem_version] = '1.104.0'
3735
3735
  Seahorse::Client::Request.new(handlers, context)
3736
3736
  end
3737
3737
 
@@ -10,11 +10,6 @@
10
10
  module Aws::ServiceDiscovery
11
11
  # Endpoint parameters used to influence endpoints per request.
12
12
  #
13
- # @!attribute region
14
- # The AWS region used to dispatch the request.
15
- #
16
- # @return [string]
17
- #
18
13
  # @!attribute use_dual_stack
19
14
  # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
15
  #
@@ -30,39 +25,44 @@ module Aws::ServiceDiscovery
30
25
  #
31
26
  # @return [string]
32
27
  #
28
+ # @!attribute region
29
+ # The AWS region used to dispatch the request.
30
+ #
31
+ # @return [string]
32
+ #
33
33
  EndpointParameters = Struct.new(
34
- :region,
35
34
  :use_dual_stack,
36
35
  :use_fips,
37
36
  :endpoint,
37
+ :region,
38
38
  ) do
39
39
  include Aws::Structure
40
40
 
41
41
  # @api private
42
42
  class << self
43
43
  PARAM_MAP = {
44
- 'Region' => :region,
45
44
  'UseDualStack' => :use_dual_stack,
46
45
  'UseFIPS' => :use_fips,
47
46
  'Endpoint' => :endpoint,
47
+ 'Region' => :region,
48
48
  }.freeze
49
49
  end
50
50
 
51
51
  def initialize(options = {})
52
- self[:region] = options[:region]
53
52
  self[:use_dual_stack] = options[:use_dual_stack]
54
53
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
54
  self[:use_fips] = options[:use_fips]
56
55
  self[:use_fips] = false if self[:use_fips].nil?
57
56
  self[:endpoint] = options[:endpoint]
57
+ self[:region] = options[:region]
58
58
  end
59
59
 
60
60
  def self.create(config, options={})
61
61
  new({
62
- region: config.region,
63
62
  use_dual_stack: config.use_dualstack_endpoint,
64
63
  use_fips: config.use_fips_endpoint,
65
64
  endpoint: (config.endpoint.to_s unless config.regional_endpoint),
65
+ region: config.region,
66
66
  }.merge(options))
67
67
  end
68
68
  end
@@ -27,23 +27,14 @@ module Aws::ServiceDiscovery
27
27
  end
28
28
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
29
29
  end
30
- if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
30
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
31
31
  if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
32
32
  return Aws::Endpoints::Endpoint.new(url: "https://servicediscovery-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
33
33
  end
34
34
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
35
35
  end
36
- if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
36
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
37
37
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
38
- if Aws::Endpoints::Matchers.string_equals?("aws", Aws::Endpoints::Matchers.attr(partition_result, "name"))
39
- return Aws::Endpoints::Endpoint.new(url: "https://servicediscovery.#{parameters.region}.amazonaws.com", headers: {}, properties: {})
40
- end
41
- if Aws::Endpoints::Matchers.string_equals?("aws-cn", Aws::Endpoints::Matchers.attr(partition_result, "name"))
42
- return Aws::Endpoints::Endpoint.new(url: "https://servicediscovery.#{parameters.region}.amazonaws.com.cn", headers: {}, properties: {})
43
- end
44
- if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
45
- return Aws::Endpoints::Endpoint.new(url: "https://servicediscovery.#{parameters.region}.amazonaws.com", headers: {}, properties: {})
46
- end
47
38
  return Aws::Endpoints::Endpoint.new(url: "https://servicediscovery.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
48
39
  end
49
40
  raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
@@ -54,7 +54,7 @@ module Aws::ServiceDiscovery
54
54
  autoload :EndpointProvider, 'aws-sdk-servicediscovery/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-servicediscovery/endpoints'
56
56
 
57
- GEM_VERSION = '1.103.0'
57
+ GEM_VERSION = '1.104.0'
58
58
 
59
59
  end
60
60
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-servicediscovery
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.103.0
4
+ version: 1.104.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services