aws-sdk-marketplacemetering 1.76.0 → 1.77.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: 58e46d10ce672c1e9dba2ee7d611d4f0b50358f239c161c60681dcae9b440d58
4
- data.tar.gz: '08238e4f044537a92ba1edccf6f0d208f8895c1df70e90b063092c6b50ea5fd1'
3
+ metadata.gz: f2e0f229f3886ac3c1429703225077b472136724c798baf88ba59b8be7e2ba4a
4
+ data.tar.gz: b8301b94b5c90bd50a1c618e305c6f9533b13435920e1db33f726709ff148120
5
5
  SHA512:
6
- metadata.gz: 61bff44cef6997858a42c0a95bac30ea83dfbc937016c23014951a32a7dbc2d132d5fe91d6041b570682101152e6976acc089fe01369625e41566cbabaa8214b
7
- data.tar.gz: 9bd007cc73d8aa1f497bf7d9330ec2fabfa3cbed539859a7f26838a46a94c8f15344e284091bf46ca9c27a1d1c927c59ca2bea2395b3134c5dd73ba21f5d8096
6
+ metadata.gz: 532aebc2e7cd1aa0d300ab4422de147e1830c6c6b33ff6810cf050d26607bad2b820219f69b9e7b26f7d10314767cbe6496ba7ace5ecfbf286cc10ba189e4ef9
7
+ data.tar.gz: 6d6e7a25ff152002de90eb774c831202972199226ef8c8941bf7848610dbfeab51c2f0f8ae2347a58633b5d9f4dd270dd74b58045d4dc51a363ae4819eb139bd
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.77.0 (2025-03-28)
5
+ ------------------
6
+
7
+ * Feature - Add support for Marketplace Metering Service dual-stack endpoints.
8
+
4
9
  1.76.0 (2025-03-25)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.76.0
1
+ 1.77.0
@@ -858,7 +858,7 @@ module Aws::MarketplaceMetering
858
858
  tracer: tracer
859
859
  )
860
860
  context[:gem_name] = 'aws-sdk-marketplacemetering'
861
- context[:gem_version] = '1.76.0'
861
+ context[:gem_version] = '1.77.0'
862
862
  Seahorse::Client::Request.new(handlers, context)
863
863
  end
864
864
 
@@ -10,11 +10,6 @@
10
10
  module Aws::MarketplaceMetering
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::MarketplaceMetering
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,30 +21,27 @@ module Aws::MarketplaceMetering
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, true)
25
+ return Aws::Endpoints::Endpoint.new(url: "https://metering-marketplace.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
26
+ end
24
27
  if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
25
28
  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
29
  return Aws::Endpoints::Endpoint.new(url: "https://metering.marketplace-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
27
30
  end
28
31
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
29
32
  end
30
- if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
33
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
31
34
  if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
32
35
  return Aws::Endpoints::Endpoint.new(url: "https://metering.marketplace-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
33
36
  end
34
37
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
35
38
  end
36
- if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
39
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
37
40
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
38
41
  return Aws::Endpoints::Endpoint.new(url: "https://metering.marketplace.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
39
42
  end
40
43
  raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
41
44
  end
42
- if Aws::Endpoints::Matchers.string_equals?("aws", Aws::Endpoints::Matchers.attr(partition_result, "name"))
43
- return Aws::Endpoints::Endpoint.new(url: "https://metering.marketplace.#{parameters.region}.amazonaws.com", headers: {}, properties: {})
44
- end
45
- if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
46
- return Aws::Endpoints::Endpoint.new(url: "https://metering.marketplace.#{parameters.region}.amazonaws.com", headers: {}, properties: {})
47
- end
48
45
  return Aws::Endpoints::Endpoint.new(url: "https://metering.marketplace.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
49
46
  end
50
47
  end
@@ -54,7 +54,7 @@ module Aws::MarketplaceMetering
54
54
  autoload :EndpointProvider, 'aws-sdk-marketplacemetering/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-marketplacemetering/endpoints'
56
56
 
57
- GEM_VERSION = '1.76.0'
57
+ GEM_VERSION = '1.77.0'
58
58
 
59
59
  end
60
60
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-marketplacemetering
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.76.0
4
+ version: 1.77.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: 2025-03-25 00:00:00.000000000 Z
11
+ date: 2025-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core