aws-sdk-costexplorer 1.127.0 → 1.128.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: d8ac19dd9f07ec1092cb9a297285d8f87069e76db1f56ab3bd9c8cd2c32c6c06
4
- data.tar.gz: b4a6e253efc4ce14501100ed449f51505c3a3a4ffd2fb0ac914387ef65dfe1de
3
+ metadata.gz: 41dbf44a003a1834471b9a2eae7fa4d4ced84ab07700926e501b8c98759cf691
4
+ data.tar.gz: c696ffcb9aaa24dd75e65ecb47ecb1cecc51356db7974ce0282d8e3559671687
5
5
  SHA512:
6
- metadata.gz: 1c0793afe1757844b19584c06580f302ad09ea79a3d11c3a5143aa9445fa69f433936a6ae16db3d302c5d82e4c3a6213312ac59648363331a761bf420fa45579
7
- data.tar.gz: ac5c27ae3e984d027e9fb012d0c5fc45425f1e8a7e269304ab49a2020a6d848f59025896088b39ed926e484e6e751f5c524a56daba372938510ec0ad1272b3c4
6
+ metadata.gz: 9aca8f9ed9b1e263fab5c08fb523aa7474a81692882c1b85606050f3947f29e15f85ad6600d5d36f38caa0e46b4daad0d52a9398dd678577e49a55dbd256f964
7
+ data.tar.gz: 3db2b9d1c0eaacd31c2f74da247df6611fbb885e253a6bb7f47c737ab2b0037a6cc570bda8cfe1a780e475329c331e8f456d6df0509a5b783dd345790532d32e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.128.0 (2025-06-09)
5
+ ------------------
6
+
7
+ * Feature - Support dual-stack endpoints for ce api
8
+
4
9
  1.127.0 (2025-06-02)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.127.0
1
+ 1.128.0
@@ -6106,7 +6106,7 @@ module Aws::CostExplorer
6106
6106
  tracer: tracer
6107
6107
  )
6108
6108
  context[:gem_name] = 'aws-sdk-costexplorer'
6109
- context[:gem_version] = '1.127.0'
6109
+ context[:gem_version] = '1.128.0'
6110
6110
  Seahorse::Client::Request.new(handlers, context)
6111
6111
  end
6112
6112
 
@@ -10,11 +10,6 @@
10
10
  module Aws::CostExplorer
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::CostExplorer
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,43 +21,43 @@ module Aws::CostExplorer
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") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
25
- return Aws::Endpoints::Endpoint.new(url: "https://ce.us-east-1.amazonaws.com", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "us-east-1"}]})
24
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
25
+ return Aws::Endpoints::Endpoint.new(url: "https://ce.us-east-1.api.aws", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-east-1"}]})
26
26
  end
27
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
28
- return Aws::Endpoints::Endpoint.new(url: "https://ce.cn-northwest-1.amazonaws.com.cn", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "cn-northwest-1"}]})
27
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
28
+ return Aws::Endpoints::Endpoint.new(url: "https://ce.cn-northwest-1.api.amazonwebservices.com.cn", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "cn-northwest-1"}]})
29
29
  end
30
30
  if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
31
- return Aws::Endpoints::Endpoint.new(url: "https://ce.us-iso-east-1.c2s.ic.gov", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "us-iso-east-1"}]})
31
+ return Aws::Endpoints::Endpoint.new(url: "https://ce.us-iso-east-1.c2s.ic.gov", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-iso-east-1"}]})
32
32
  end
33
33
  if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-b") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
34
- return Aws::Endpoints::Endpoint.new(url: "https://ce.us-isob-east-1.sc2s.sgov.gov", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "us-isob-east-1"}]})
34
+ return Aws::Endpoints::Endpoint.new(url: "https://ce.us-isob-east-1.sc2s.sgov.gov", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-isob-east-1"}]})
35
35
  end
36
36
  if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-e") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
37
- return Aws::Endpoints::Endpoint.new(url: "https://ce.eu-isoe-west-1.cloud.adc-e.uk", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "eu-isoe-west-1"}]})
37
+ return Aws::Endpoints::Endpoint.new(url: "https://ce.eu-isoe-west-1.cloud.adc-e.uk", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "eu-isoe-west-1"}]})
38
38
  end
39
39
  if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-f") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
40
- return Aws::Endpoints::Endpoint.new(url: "https://ce.us-isof-south-1.csp.hci.ic.gov", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "us-isof-south-1"}]})
40
+ return Aws::Endpoints::Endpoint.new(url: "https://ce.us-isof-south-1.csp.hci.ic.gov", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-isof-south-1"}]})
41
41
  end
42
42
  if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
43
43
  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"))
44
- return Aws::Endpoints::Endpoint.new(url: "https://ce-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
44
+ return Aws::Endpoints::Endpoint.new(url: "https://ce-fips.#{partition_result['implicitGlobalRegion']}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "#{partition_result['implicitGlobalRegion']}"}]})
45
45
  end
46
46
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
47
47
  end
48
- if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
48
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
49
49
  if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
50
- return Aws::Endpoints::Endpoint.new(url: "https://ce-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
50
+ return Aws::Endpoints::Endpoint.new(url: "https://ce-fips.#{partition_result['implicitGlobalRegion']}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "#{partition_result['implicitGlobalRegion']}"}]})
51
51
  end
52
52
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
53
53
  end
54
- if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
54
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
55
55
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
56
- return Aws::Endpoints::Endpoint.new(url: "https://ce.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
56
+ return Aws::Endpoints::Endpoint.new(url: "https://ce.#{partition_result['implicitGlobalRegion']}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "#{partition_result['implicitGlobalRegion']}"}]})
57
57
  end
58
58
  raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
59
59
  end
60
- return Aws::Endpoints::Endpoint.new(url: "https://ce.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
60
+ return Aws::Endpoints::Endpoint.new(url: "https://ce.#{partition_result['implicitGlobalRegion']}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "#{partition_result['implicitGlobalRegion']}"}]})
61
61
  end
62
62
  end
63
63
  raise ArgumentError, "Invalid Configuration: Missing Region"
@@ -54,7 +54,7 @@ module Aws::CostExplorer
54
54
  autoload :EndpointProvider, 'aws-sdk-costexplorer/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-costexplorer/endpoints'
56
56
 
57
- GEM_VERSION = '1.127.0'
57
+ GEM_VERSION = '1.128.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-costexplorer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.127.0
4
+ version: 1.128.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services