aws-sdk-pricing 1.41.0 → 1.42.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 +4 -4
- data/CHANGELOG.md +8 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-pricing/client.rb +1 -1
- data/lib/aws-sdk-pricing/endpoint_provider.rb +35 -96
- data/lib/aws-sdk-pricing/types.rb +0 -46
- data/lib/aws-sdk-pricing.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6417c454cc32c106948ba165d0426ddcf5272c365da6310691d6073678145b7b
|
|
4
|
+
data.tar.gz: cfce9da89edae3c6eaed9424715f06826b37e46514ee023cee4c7658be2e4707
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 21431e28e9ce274f0c506b3da9d1b61f8e2cd6eb660f9a6fca1d97b0df8811a205f70335163fe34dde74a43c89f0d297ef8edb8987e0ba74871483558266b517
|
|
7
|
+
data.tar.gz: 302cf29267ab4a45e0ef515a435903997cf347a5aba7913f825dd431521b12f4d6660c24ace656f81b481d97c9d3c4ab646fef8e43547ed0cadf1aa5b078b16f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.42.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.41.0 (2022-10-25)
|
|
5
12
|
------------------
|
|
6
13
|
|
|
@@ -215,4 +222,4 @@ Unreleased Changes
|
|
|
215
222
|
1.0.0 (2017-11-07)
|
|
216
223
|
------------------
|
|
217
224
|
|
|
218
|
-
* Feature - Initial release of `aws-sdk-pricing`.
|
|
225
|
+
* Feature - Initial release of `aws-sdk-pricing`.
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.42.0
|
|
@@ -9,104 +9,43 @@
|
|
|
9
9
|
|
|
10
10
|
module Aws::Pricing
|
|
11
11
|
class EndpointProvider
|
|
12
|
-
def
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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://api.pricing-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://api.pricing-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://api.pricing.#{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://api.pricing.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
21
46
|
end
|
|
22
|
-
|
|
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
|
-
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJ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Jlc3VsdCNkbnNTdWZmaXh9
|
|
107
|
-
IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVuZHBv
|
|
108
|
-
aW50In1dfV19
|
|
109
|
-
|
|
110
|
-
JSON
|
|
111
50
|
end
|
|
112
51
|
end
|
|
@@ -25,16 +25,6 @@ module Aws::Pricing
|
|
|
25
25
|
include Aws::Structure
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
# @note When making an API call, you may pass DescribeServicesRequest
|
|
29
|
-
# data as a hash:
|
|
30
|
-
#
|
|
31
|
-
# {
|
|
32
|
-
# service_code: "String",
|
|
33
|
-
# format_version: "String",
|
|
34
|
-
# next_token: "String",
|
|
35
|
-
# max_results: 1,
|
|
36
|
-
# }
|
|
37
|
-
#
|
|
38
28
|
# @!attribute [rw] service_code
|
|
39
29
|
# The code for the service whose information you want to retrieve,
|
|
40
30
|
# such as `AmazonEC2`. You can use the `ServiceCode` to filter the
|
|
@@ -106,15 +96,6 @@ module Aws::Pricing
|
|
|
106
96
|
|
|
107
97
|
# The constraints that you want all returned products to match.
|
|
108
98
|
#
|
|
109
|
-
# @note When making an API call, you may pass Filter
|
|
110
|
-
# data as a hash:
|
|
111
|
-
#
|
|
112
|
-
# {
|
|
113
|
-
# type: "TERM_MATCH", # required, accepts TERM_MATCH
|
|
114
|
-
# field: "String", # required
|
|
115
|
-
# value: "String", # required
|
|
116
|
-
# }
|
|
117
|
-
#
|
|
118
99
|
# @!attribute [rw] type
|
|
119
100
|
# The type of filter that you want to use.
|
|
120
101
|
#
|
|
@@ -154,16 +135,6 @@ module Aws::Pricing
|
|
|
154
135
|
include Aws::Structure
|
|
155
136
|
end
|
|
156
137
|
|
|
157
|
-
# @note When making an API call, you may pass GetAttributeValuesRequest
|
|
158
|
-
# data as a hash:
|
|
159
|
-
#
|
|
160
|
-
# {
|
|
161
|
-
# service_code: "String", # required
|
|
162
|
-
# attribute_name: "String", # required
|
|
163
|
-
# next_token: "String",
|
|
164
|
-
# max_results: 1,
|
|
165
|
-
# }
|
|
166
|
-
#
|
|
167
138
|
# @!attribute [rw] service_code
|
|
168
139
|
# The service code for the service whose attributes you want to
|
|
169
140
|
# retrieve. For example, if you want the retrieve an EC2 attribute,
|
|
@@ -215,23 +186,6 @@ module Aws::Pricing
|
|
|
215
186
|
include Aws::Structure
|
|
216
187
|
end
|
|
217
188
|
|
|
218
|
-
# @note When making an API call, you may pass GetProductsRequest
|
|
219
|
-
# data as a hash:
|
|
220
|
-
#
|
|
221
|
-
# {
|
|
222
|
-
# service_code: "String", # required
|
|
223
|
-
# filters: [
|
|
224
|
-
# {
|
|
225
|
-
# type: "TERM_MATCH", # required, accepts TERM_MATCH
|
|
226
|
-
# field: "String", # required
|
|
227
|
-
# value: "String", # required
|
|
228
|
-
# },
|
|
229
|
-
# ],
|
|
230
|
-
# format_version: "String",
|
|
231
|
-
# next_token: "String",
|
|
232
|
-
# max_results: 1,
|
|
233
|
-
# }
|
|
234
|
-
#
|
|
235
189
|
# @!attribute [rw] service_code
|
|
236
190
|
# The code for the service whose products you want to retrieve.
|
|
237
191
|
# @return [String]
|
data/lib/aws-sdk-pricing.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-pricing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.42.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:
|
|
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
|