aws-sdk-savingsplans 1.67.0 → 1.68.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-savingsplans/client.rb +1 -1
- data/lib/aws-sdk-savingsplans/endpoint_provider.rb +14 -0
- data/lib/aws-sdk-savingsplans.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 85c217231200e8622506e9359cf9b5e32158de99bfb5bb050595f0afa230ecd4
|
|
4
|
+
data.tar.gz: 6f6bafba2e103308189295f64cec671317a414fc844654bd1a09c23097ac1731
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c2c99e9fb4968233b11b990d348852be1a9eb8a8fb24c863701bea722b4d0774b0b63dbc58b0f0e9ac0f9da4c38de70e395b7d8aea64ed9c147b754536cfbcc3
|
|
7
|
+
data.tar.gz: 6c3e532c03a8361d60392b849e2a0ccc62f83b703d1cb2f3f4229801bc1e7098fd5006ee611456b128ee68196573e5d36f38f4e214fa35a660f5cef6e3886cf8
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.68.0
|
|
@@ -1023,7 +1023,7 @@ module Aws::SavingsPlans
|
|
|
1023
1023
|
tracer: tracer
|
|
1024
1024
|
)
|
|
1025
1025
|
context[:gem_name] = 'aws-sdk-savingsplans'
|
|
1026
|
-
context[:gem_version] = '1.
|
|
1026
|
+
context[:gem_version] = '1.68.0'
|
|
1027
1027
|
Seahorse::Client::Request.new(handlers, context)
|
|
1028
1028
|
end
|
|
1029
1029
|
|
|
@@ -10,6 +10,20 @@
|
|
|
10
10
|
module Aws::SavingsPlans
|
|
11
11
|
class EndpointProvider
|
|
12
12
|
def resolve_endpoint(parameters)
|
|
13
|
+
if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.endpoint)) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
14
|
+
if Aws::Endpoints::Matchers.set?(parameters.region) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
|
|
15
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")
|
|
16
|
+
return Aws::Endpoints::Endpoint.new(url: "https://savingsplans.global.api.aws", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "savingsplans", "signingRegion" => "us-east-1"}]})
|
|
17
|
+
end
|
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
19
|
+
return Aws::Endpoints::Endpoint.new(url: "https://savingsplans.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
20
|
+
end
|
|
21
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
22
|
+
end
|
|
23
|
+
if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.region))
|
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: "https://savingsplans.global.api.aws", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "savingsplans", "signingRegion" => "us-east-1"}]})
|
|
25
|
+
end
|
|
26
|
+
end
|
|
13
27
|
if Aws::Endpoints::Matchers.set?(parameters.endpoint)
|
|
14
28
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
15
29
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
data/lib/aws-sdk-savingsplans.rb
CHANGED