aws-sdk-georoutes 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-georoutes/client.rb +1 -1
- data/lib/aws-sdk-georoutes/endpoint_provider.rb +29 -33
- data/lib/aws-sdk-georoutes.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: 7ef8b2593bbf05b0fcacc73adf1d40aea20eea6334c7bc253b1f0e7fa5257802
|
4
|
+
data.tar.gz: e6eb8f277cf74ed1b79fd2cdf25c9c136c4806592cf72d40d75c9a835376d5ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b660e6f10ad5f38332101bb914a10bd937f86bfe83fc6cc76425e931a7482bbd5e1d0a1fd183e36697dddecdcf2e97ef9b35168cf9bd7d62ba7e63a5d618f57f
|
7
|
+
data.tar.gz: fb9838c44ddf468a835d19a412052686cd7f52c01bbd077a25a05eb504aa0554224caf00161799b6f69fe1bc0538dc2b3f5db15f63eff2abe4d270706596318b
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.4.0
|
@@ -10,64 +10,60 @@
|
|
10
10
|
module Aws::GeoRoutes
|
11
11
|
class EndpointProvider
|
12
12
|
def resolve_endpoint(parameters)
|
13
|
-
|
14
|
-
|
15
|
-
endpoint = parameters.endpoint
|
16
|
-
region = parameters.region
|
17
|
-
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
13
|
+
if Aws::Endpoints::Matchers.set?(parameters.endpoint)
|
14
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
19
15
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
20
16
|
end
|
21
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
17
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
22
18
|
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
19
|
end
|
24
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
20
|
+
return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
|
25
21
|
end
|
26
|
-
if Aws::Endpoints::Matchers.set?(region)
|
27
|
-
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
-
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, false)
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://routes.geo.#{region}.#{partition_result['dnsSuffix']}/v2", headers: {}, properties: {})
|
22
|
+
if Aws::Endpoints::Matchers.set?(parameters.region)
|
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://routes.geo.#{parameters.region}.#{partition_result['dnsSuffix']}/v2", headers: {}, properties: {})
|
30
26
|
end
|
31
|
-
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
32
|
-
return Aws::Endpoints::Endpoint.new(url: "https://routes.geo-fips.#{region}.#{partition_result['dualStackDnsSuffix']}/v2", headers: {}, properties: {})
|
27
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
28
|
+
return Aws::Endpoints::Endpoint.new(url: "https://routes.geo-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}/v2", headers: {}, properties: {})
|
33
29
|
end
|
34
|
-
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, false)
|
35
|
-
return Aws::Endpoints::Endpoint.new(url: "https://routes.geo-fips.#{region}.#{partition_result['dnsSuffix']}/v2", headers: {}, properties: {})
|
30
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
|
31
|
+
return Aws::Endpoints::Endpoint.new(url: "https://routes.geo-fips.#{parameters.region}.#{partition_result['dnsSuffix']}/v2", headers: {}, properties: {})
|
36
32
|
end
|
37
|
-
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
38
|
-
return Aws::Endpoints::Endpoint.new(url: "https://routes.geo.#{region}.#{partition_result['dualStackDnsSuffix']}/v2", headers: {}, properties: {})
|
33
|
+
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)
|
34
|
+
return Aws::Endpoints::Endpoint.new(url: "https://routes.geo.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}/v2", headers: {}, properties: {})
|
39
35
|
end
|
40
|
-
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && Aws::Endpoints::Matchers.boolean_equals?(use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, false)
|
41
|
-
return Aws::Endpoints::Endpoint.new(url: "https://routes.geo.#{region}.us-gov.#{partition_result['dnsSuffix']}/v2", headers: {}, properties: {})
|
36
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && 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://routes.geo.#{parameters.region}.us-gov.#{partition_result['dnsSuffix']}/v2", headers: {}, properties: {})
|
42
38
|
end
|
43
|
-
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
44
|
-
return Aws::Endpoints::Endpoint.new(url: "https://routes.geo-fips.#{region}.us-gov.#{partition_result['dualStackDnsSuffix']}/v2", headers: {}, properties: {})
|
39
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
40
|
+
return Aws::Endpoints::Endpoint.new(url: "https://routes.geo-fips.#{parameters.region}.us-gov.#{partition_result['dualStackDnsSuffix']}/v2", headers: {}, properties: {})
|
45
41
|
end
|
46
|
-
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, false)
|
47
|
-
return Aws::Endpoints::Endpoint.new(url: "https://routes.geo-fips.#{region}.us-gov.#{partition_result['dnsSuffix']}/v2", headers: {}, properties: {})
|
42
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
|
43
|
+
return Aws::Endpoints::Endpoint.new(url: "https://routes.geo-fips.#{parameters.region}.us-gov.#{partition_result['dnsSuffix']}/v2", headers: {}, properties: {})
|
48
44
|
end
|
49
|
-
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && Aws::Endpoints::Matchers.boolean_equals?(use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
50
|
-
return Aws::Endpoints::Endpoint.new(url: "https://routes.geo.#{region}.us-gov.#{partition_result['dualStackDnsSuffix']}/v2", headers: {}, properties: {})
|
45
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://routes.geo.#{parameters.region}.us-gov.#{partition_result['dualStackDnsSuffix']}/v2", headers: {}, properties: {})
|
51
47
|
end
|
52
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
48
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
53
49
|
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"))
|
54
|
-
return Aws::Endpoints::Endpoint.new(url: "https://geo-routes-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
50
|
+
return Aws::Endpoints::Endpoint.new(url: "https://geo-routes-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
55
51
|
end
|
56
52
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
57
53
|
end
|
58
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, false)
|
54
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
|
59
55
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
60
|
-
return Aws::Endpoints::Endpoint.new(url: "https://geo-routes-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
56
|
+
return Aws::Endpoints::Endpoint.new(url: "https://geo-routes-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
61
57
|
end
|
62
58
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
63
59
|
end
|
64
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
60
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
65
61
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
66
|
-
return Aws::Endpoints::Endpoint.new(url: "https://geo-routes.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
62
|
+
return Aws::Endpoints::Endpoint.new(url: "https://geo-routes.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
67
63
|
end
|
68
64
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
69
65
|
end
|
70
|
-
return Aws::Endpoints::Endpoint.new(url: "https://geo-routes.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
66
|
+
return Aws::Endpoints::Endpoint.new(url: "https://geo-routes.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
71
67
|
end
|
72
68
|
end
|
73
69
|
raise ArgumentError, "Invalid Configuration: Missing Region"
|
data/lib/aws-sdk-georoutes.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-georoutes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.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-
|
11
|
+
date: 2025-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|