aws-sdk-route53 1.124.0 → 1.125.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-route53/client.rb +1 -1
- data/lib/aws-sdk-route53/endpoint_parameters.rb +9 -9
- data/lib/aws-sdk-route53/endpoint_provider.rb +34 -16
- data/lib/aws-sdk-route53.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: f55f6e84634d66b57c71d31057da9a53fff0d14fdd25f0cdd635c0540c748912
|
|
4
|
+
data.tar.gz: 3789c59973e0affc18f61a2d64f815e171c96a0cc75d57545fc41b4d40f9e4d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ef4aaeb1fcfa1e9e4c7e8b1c6fcff9f4760b1ea5d52164f8f39c07bc2b60dff988246f764ba8876739331211b091d5abf5b8f3c29566b1d0ab9f3d50e5682404
|
|
7
|
+
data.tar.gz: 89a8cb841cc37e4680f7c391af22c05c6e697b66d431c032679ca054ff26ffe06e23ce3796b517ca1c9f3eb2cb245f9146905311c8315e8f1f41fcab62d150ae
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.125.0
|
|
@@ -10,11 +10,6 @@
|
|
|
10
10
|
module Aws::Route53
|
|
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::Route53
|
|
|
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
|
|
@@ -22,54 +22,72 @@ module Aws::Route53
|
|
|
22
22
|
if Aws::Endpoints::Matchers.set?(parameters.region)
|
|
23
23
|
if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
|
|
24
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://route53.amazonaws.com", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "
|
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53.amazonaws.com", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-east-1"}]})
|
|
26
26
|
end
|
|
27
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, false)
|
|
28
|
-
return Aws::Endpoints::Endpoint.new(url: "https://route53-fips.amazonaws.com", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "
|
|
28
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53-fips.amazonaws.com", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-east-1"}]})
|
|
29
|
+
end
|
|
30
|
+
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)
|
|
31
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53.global.api.aws", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-east-1"}]})
|
|
32
|
+
end
|
|
33
|
+
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)
|
|
34
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53-fips.global.api.aws", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-east-1"}]})
|
|
29
35
|
end
|
|
30
36
|
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
|
|
31
|
-
return Aws::Endpoints::Endpoint.new(url: "https://route53.amazonaws.com.cn", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "
|
|
37
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53.amazonaws.com.cn", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "cn-northwest-1"}]})
|
|
38
|
+
end
|
|
39
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
40
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53.global.api.amazonwebservices.com.cn", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "cn-northwest-1"}]})
|
|
32
41
|
end
|
|
33
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, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
|
|
34
|
-
return Aws::Endpoints::Endpoint.new(url: "https://route53.us-gov.amazonaws.com", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "
|
|
43
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53.us-gov.amazonaws.com", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-gov-west-1"}]})
|
|
35
44
|
end
|
|
36
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, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
|
|
37
|
-
return Aws::Endpoints::Endpoint.new(url: "https://route53.us-gov.amazonaws.com", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "
|
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53.us-gov.amazonaws.com", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-gov-west-1"}]})
|
|
47
|
+
end
|
|
48
|
+
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)
|
|
49
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53.us-gov.api.aws", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-gov-west-1"}]})
|
|
50
|
+
end
|
|
51
|
+
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)
|
|
52
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53.us-gov.api.aws", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-gov-west-1"}]})
|
|
38
53
|
end
|
|
39
54
|
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
|
|
40
|
-
return Aws::Endpoints::Endpoint.new(url: "https://route53.c2s.ic.gov", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "
|
|
55
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53.c2s.ic.gov", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-iso-east-1"}]})
|
|
41
56
|
end
|
|
42
57
|
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-b") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
|
|
43
|
-
return Aws::Endpoints::Endpoint.new(url: "https://route53.sc2s.sgov.gov", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "
|
|
58
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53.sc2s.sgov.gov", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-isob-east-1"}]})
|
|
44
59
|
end
|
|
45
60
|
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-e") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
|
|
46
|
-
return Aws::Endpoints::Endpoint.new(url: "https://route53.cloud.adc-e.uk", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "
|
|
61
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53.cloud.adc-e.uk", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "eu-isoe-west-1"}]})
|
|
47
62
|
end
|
|
48
63
|
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-f") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
|
|
49
|
-
return Aws::Endpoints::Endpoint.new(url: "https://route53.csp.hci.ic.gov", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "
|
|
64
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53.csp.hci.ic.gov", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-isof-south-1"}]})
|
|
50
65
|
end
|
|
51
66
|
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-eusc") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
|
|
52
|
-
return Aws::Endpoints::Endpoint.new(url: "https://route53.amazonaws.eu", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "
|
|
67
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53.amazonaws.eu", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "eusc-de-east-1"}]})
|
|
68
|
+
end
|
|
69
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-eusc") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
70
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53.global.api.amazonwebservices.eu", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "eusc-de-east-1"}]})
|
|
53
71
|
end
|
|
54
72
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
55
73
|
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"))
|
|
56
|
-
return Aws::Endpoints::Endpoint.new(url: "https://route53-fips.#{
|
|
74
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53-fips.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "#{partition_result['implicitGlobalRegion']}"}]})
|
|
57
75
|
end
|
|
58
76
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
|
59
77
|
end
|
|
60
|
-
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
78
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
|
|
61
79
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
62
|
-
return Aws::Endpoints::Endpoint.new(url: "https://route53-fips.#{
|
|
80
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53-fips.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "#{partition_result['implicitGlobalRegion']}"}]})
|
|
63
81
|
end
|
|
64
82
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
65
83
|
end
|
|
66
|
-
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
84
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
67
85
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
68
|
-
return Aws::Endpoints::Endpoint.new(url: "https://route53.#{
|
|
86
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "#{partition_result['implicitGlobalRegion']}"}]})
|
|
69
87
|
end
|
|
70
88
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
71
89
|
end
|
|
72
|
-
return Aws::Endpoints::Endpoint.new(url: "https://route53.#{
|
|
90
|
+
return Aws::Endpoints::Endpoint.new(url: "https://route53.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "#{partition_result['implicitGlobalRegion']}"}]})
|
|
73
91
|
end
|
|
74
92
|
end
|
|
75
93
|
raise ArgumentError, "Invalid Configuration: Missing Region"
|
data/lib/aws-sdk-route53.rb
CHANGED