aws-sdk-cloudwatch 1.121.0 → 1.122.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: 8a03add7d40bed51f7c7c3288a0f106bafb4c9e4c2e6b460a1322f53fb6aba2d
4
- data.tar.gz: 620618f349923856af6cd7251407f9519513cc171d4d30de55b96029820d456a
3
+ metadata.gz: bf937870deb8611fde060ac55a40e94ca8f39bcc728652fd31bab4c787b7740c
4
+ data.tar.gz: b9e1fea0c3b54ec97d235ba399bcc16e5b26d4f9d5f210e344aa7df2591e6db5
5
5
  SHA512:
6
- metadata.gz: 35e7f704a02ba5e3a0a9994bd5aecff28483ebb2629ee7268d6da151d95a70f2c6f2fbb47de471df6214e04d2e5703939de66c04ba3771db5998161f447ebabb
7
- data.tar.gz: bdb4988441063d2cb42fca27804abaf04a5824b6e99114c40e1f6363e32150da545f57f0a01279795c1f6f0802b47e335be5d41d0a7ad3aa6b12148f9ec9c4d0
6
+ metadata.gz: 9ed195394a21752617e429d7aa0601bde562dc0e2a57bf4c77308a1e906e3d4750b9f31ec3369407994431b10aa0420dc4ae5ff839c73c5563663c8f79320f35
7
+ data.tar.gz: b87e440e2a60c73dbf6352875729ca06bd6bfefc91209f546645d1caf1071552e78682e89ea1b0828886f631ad75a966d44cc910f0d22cc4c3371d85366e0a2f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.122.0 (2025-09-24)
5
+ ------------------
6
+
7
+ * Feature - Fix default dualstack FIPS endpoints in AWS GovCloud(US) regions
8
+
4
9
  1.121.0 (2025-09-09)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.121.0
1
+ 1.122.0
@@ -4395,7 +4395,7 @@ module Aws::CloudWatch
4395
4395
  tracer: tracer
4396
4396
  )
4397
4397
  context[:gem_name] = 'aws-sdk-cloudwatch'
4398
- context[:gem_version] = '1.121.0'
4398
+ context[:gem_version] = '1.122.0'
4399
4399
  Seahorse::Client::Request.new(handlers, context)
4400
4400
  end
4401
4401
 
@@ -10,11 +10,6 @@
10
10
  module Aws::CloudWatch
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::CloudWatch
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
@@ -21,22 +21,25 @@ module Aws::CloudWatch
21
21
  end
22
22
  if Aws::Endpoints::Matchers.set?(parameters.region)
23
23
  if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
24
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
25
+ return Aws::Endpoints::Endpoint.new(url: "https://monitoring.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
28
+ return Aws::Endpoints::Endpoint.new(url: "https://monitoring.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
29
+ end
24
30
  if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
25
31
  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"))
26
32
  return Aws::Endpoints::Endpoint.new(url: "https://monitoring-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
27
33
  end
28
34
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
29
35
  end
30
- if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
36
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
31
37
  if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
32
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
33
- return Aws::Endpoints::Endpoint.new(url: "https://monitoring.#{parameters.region}.amazonaws.com", headers: {}, properties: {})
34
- end
35
38
  return Aws::Endpoints::Endpoint.new(url: "https://monitoring-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
39
  end
37
40
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
41
  end
39
- if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
42
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
40
43
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
44
  return Aws::Endpoints::Endpoint.new(url: "https://monitoring.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
45
  end
@@ -58,7 +58,7 @@ module Aws::CloudWatch
58
58
  autoload :CompositeAlarm, 'aws-sdk-cloudwatch/composite_alarm'
59
59
  autoload :Metric, 'aws-sdk-cloudwatch/metric'
60
60
 
61
- GEM_VERSION = '1.121.0'
61
+ GEM_VERSION = '1.122.0'
62
62
 
63
63
  end
64
64
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudwatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.121.0
4
+ version: 1.122.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services