aws-sdk-marketplaceentitlementservice 1.36.0 → 1.37.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: 996ff1c98a870182b7a38ef070d7e7ebfc5b05e7c1f2536bbbda3b95cfe8776f
4
- data.tar.gz: fde713fe35dcd21c6903714caefbd948ddb92ad2284cca09ac0f9109a9729ed3
3
+ metadata.gz: 13b415e22be4f710430613a7a1caae2e85a402c0eaeac225050f035791bb468f
4
+ data.tar.gz: 382c39a167b89b3a6e0f8f31f095493e94107de5a9df3adf261067b83ff598d3
5
5
  SHA512:
6
- metadata.gz: 237378fe5217c1ec2a371f25cd78dcccba1cd48e60e39ec39baeab1403eda01b74a8cf8d1119e02f48446242ad4993a1f67700f5cee248e43d05baabf4b95743
7
- data.tar.gz: 1899fb3532da3a9a02212707d5e436acfcd231587427e1d3239a0c351b5cd890450e0e0fb50c51433b31f7efadac0def521dd2e57d9aeefd51f303ad75c4005c
6
+ metadata.gz: a015ebdd3f5569682a6d90219e0d5cff46ebd81d5851cf828e89515daf5789da833219be7ddb1290358a8f67c4afb870cae500db33b266eb0860ef2f9830ebbb
7
+ data.tar.gz: ca681851a670306ad680a913a21e584d2b237ba2ca961502d737f15346b40000399d876ac3c92bc0c6f824f160e37ed9f3742eef1782081bbf57c920a52e5448
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.37.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
4
11
  1.36.0 (2022-10-25)
5
12
  ------------------
6
13
 
@@ -243,4 +250,4 @@ Unreleased Changes
243
250
  1.0.0.rc1 (2017-05-05)
244
251
  ------------------
245
252
 
246
- * Feature - Initial release of `aws-sdk-marketplaceentitlementservice`.
253
+ * Feature - Initial release of `aws-sdk-marketplaceentitlementservice`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.36.0
1
+ 1.37.0
@@ -453,7 +453,7 @@ module Aws::MarketplaceEntitlementService
453
453
  params: params,
454
454
  config: config)
455
455
  context[:gem_name] = 'aws-sdk-marketplaceentitlementservice'
456
- context[:gem_version] = '1.36.0'
456
+ context[:gem_version] = '1.37.0'
457
457
  Seahorse::Client::Request.new(handlers, context)
458
458
  end
459
459
 
@@ -9,105 +9,43 @@
9
9
 
10
10
  module Aws::MarketplaceEntitlementService
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
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"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://entitlement.marketplace-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://entitlement.marketplace-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://entitlement.marketplace.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://entitlement.marketplace.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZC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yJ1cmwiOiJodHRwczovL2VudGl0bGVtZW50Lm1hcmtldHBs
101
- YWNlLntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZHVhbFN0YWNrRG5zU3Vm
102
- Zml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJl
103
- bmRwb2ludCJ9XX0seyJjb25kaXRpb25zIjpbXSwiZXJyb3IiOiJEdWFsU3Rh
104
- Y2sgaXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qgc3Vw
105
- cG9ydCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9u
106
- cyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vZW50aXRsZW1lbnQu
107
- bWFya2V0cGxhY2Uue1JlZ2lvbn0ue1BhcnRpdGlvblJlc3VsdCNkbnNTdWZm
108
- aXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVu
109
- ZHBvaW50In1dfV19
110
-
111
- JSON
112
50
  end
113
51
  end
@@ -98,18 +98,6 @@ module Aws::MarketplaceEntitlementService
98
98
  # The GetEntitlementsRequest contains parameters for the GetEntitlements
99
99
  # operation.
100
100
  #
101
- # @note When making an API call, you may pass GetEntitlementsRequest
102
- # data as a hash:
103
- #
104
- # {
105
- # product_code: "ProductCode", # required
106
- # filter: {
107
- # "CUSTOMER_IDENTIFIER" => ["FilterValue"],
108
- # },
109
- # next_token: "NonEmptyString",
110
- # max_results: 1,
111
- # }
112
- #
113
101
  # @!attribute [rw] product_code
114
102
  # Product code is used to uniquely identify a product in AWS
115
103
  # Marketplace. The product code will be provided by AWS Marketplace
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-marketplaceentitlementservice/customizations'
52
52
  # @!group service
53
53
  module Aws::MarketplaceEntitlementService
54
54
 
55
- GEM_VERSION = '1.36.0'
55
+ GEM_VERSION = '1.37.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-marketplaceentitlementservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.36.0
4
+ version: 1.37.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: 2022-10-25 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core