aws-sdk-internetmonitor 1.8.0 → 1.9.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-internetmonitor/client.rb +1 -1
- data/lib/aws-sdk-internetmonitor/endpoint_parameters.rb +12 -0
- data/lib/aws-sdk-internetmonitor/endpoint_provider.rb +14 -7
- data/lib/aws-sdk-internetmonitor/endpoints.rb +10 -0
- data/lib/aws-sdk-internetmonitor.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: 30db1a4f38d1e7ea5b9e11c9d22d8eb4c790b675173d3665ccfb45f71bf1de3e
|
4
|
+
data.tar.gz: d8a992c640568415b9715a3b41bc3faf2e7cf8634a7ed6d17773c1473d994472
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9a3da4b7f674d3e6f84fcd0c2d314ec777565f55ccd70d6abb0d56b531f8ff9e8c99f729e92406a6b6aa3886481ea76eec723876ff721ad60c20760f3cf19a9
|
7
|
+
data.tar.gz: e81fbf0f89ce0a2d45fb3aab5d1184bd7b2a32194736270d94e8f5070904e39a2676242480df0ea43f9c2d4fc74ccf9c7d4129f297b546dac114ae2b686fe242
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.9.0
|
@@ -1125,7 +1125,7 @@ module Aws::InternetMonitor
|
|
1125
1125
|
params: params,
|
1126
1126
|
config: config)
|
1127
1127
|
context[:gem_name] = 'aws-sdk-internetmonitor'
|
1128
|
-
context[:gem_version] = '1.
|
1128
|
+
context[:gem_version] = '1.9.0'
|
1129
1129
|
Seahorse::Client::Request.new(handlers, context)
|
1130
1130
|
end
|
1131
1131
|
|
@@ -15,6 +15,11 @@ module Aws::InternetMonitor
|
|
15
15
|
#
|
16
16
|
# @return [String]
|
17
17
|
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
18
23
|
# @!attribute use_fips
|
19
24
|
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
20
25
|
#
|
@@ -27,6 +32,7 @@ module Aws::InternetMonitor
|
|
27
32
|
#
|
28
33
|
EndpointParameters = Struct.new(
|
29
34
|
:region,
|
35
|
+
:use_dual_stack,
|
30
36
|
:use_fips,
|
31
37
|
:endpoint,
|
32
38
|
) do
|
@@ -36,6 +42,7 @@ module Aws::InternetMonitor
|
|
36
42
|
class << self
|
37
43
|
PARAM_MAP = {
|
38
44
|
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
39
46
|
'UseFIPS' => :use_fips,
|
40
47
|
'Endpoint' => :endpoint,
|
41
48
|
}.freeze
|
@@ -43,6 +50,11 @@ module Aws::InternetMonitor
|
|
43
50
|
|
44
51
|
def initialize(options = {})
|
45
52
|
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
46
58
|
self[:use_fips] = options[:use_fips]
|
47
59
|
self[:use_fips] = false if self[:use_fips].nil?
|
48
60
|
if self[:use_fips].nil?
|
@@ -11,24 +11,25 @@ module Aws::InternetMonitor
|
|
11
11
|
class EndpointProvider
|
12
12
|
def resolve_endpoint(parameters)
|
13
13
|
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
14
15
|
use_fips = parameters.use_fips
|
15
16
|
endpoint = parameters.endpoint
|
16
17
|
if Aws::Endpoints::Matchers.set?(endpoint)
|
17
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
18
19
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
19
20
|
end
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
20
24
|
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
21
25
|
end
|
22
26
|
if Aws::Endpoints::Matchers.set?(region)
|
23
27
|
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
24
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
25
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
26
|
-
|
27
|
-
return Aws::Endpoints::Endpoint.new(url: "https://internetmonitor-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
28
|
-
end
|
29
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
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"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://internetmonitor-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
31
|
end
|
31
|
-
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
33
|
end
|
33
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
35
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
@@ -36,6 +37,12 @@ module Aws::InternetMonitor
|
|
36
37
|
end
|
37
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
38
39
|
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://internetmonitor.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
45
|
+
end
|
39
46
|
return Aws::Endpoints::Endpoint.new(url: "https://internetmonitor.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
40
47
|
end
|
41
48
|
end
|
@@ -19,6 +19,7 @@ module Aws::InternetMonitor
|
|
19
19
|
end
|
20
20
|
Aws::InternetMonitor::EndpointParameters.new(
|
21
21
|
region: context.config.region,
|
22
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
22
23
|
use_fips: context.config.use_fips_endpoint,
|
23
24
|
endpoint: endpoint,
|
24
25
|
)
|
@@ -32,6 +33,7 @@ module Aws::InternetMonitor
|
|
32
33
|
end
|
33
34
|
Aws::InternetMonitor::EndpointParameters.new(
|
34
35
|
region: context.config.region,
|
36
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
35
37
|
use_fips: context.config.use_fips_endpoint,
|
36
38
|
endpoint: endpoint,
|
37
39
|
)
|
@@ -45,6 +47,7 @@ module Aws::InternetMonitor
|
|
45
47
|
end
|
46
48
|
Aws::InternetMonitor::EndpointParameters.new(
|
47
49
|
region: context.config.region,
|
50
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
48
51
|
use_fips: context.config.use_fips_endpoint,
|
49
52
|
endpoint: endpoint,
|
50
53
|
)
|
@@ -58,6 +61,7 @@ module Aws::InternetMonitor
|
|
58
61
|
end
|
59
62
|
Aws::InternetMonitor::EndpointParameters.new(
|
60
63
|
region: context.config.region,
|
64
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
61
65
|
use_fips: context.config.use_fips_endpoint,
|
62
66
|
endpoint: endpoint,
|
63
67
|
)
|
@@ -71,6 +75,7 @@ module Aws::InternetMonitor
|
|
71
75
|
end
|
72
76
|
Aws::InternetMonitor::EndpointParameters.new(
|
73
77
|
region: context.config.region,
|
78
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
74
79
|
use_fips: context.config.use_fips_endpoint,
|
75
80
|
endpoint: endpoint,
|
76
81
|
)
|
@@ -84,6 +89,7 @@ module Aws::InternetMonitor
|
|
84
89
|
end
|
85
90
|
Aws::InternetMonitor::EndpointParameters.new(
|
86
91
|
region: context.config.region,
|
92
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
87
93
|
use_fips: context.config.use_fips_endpoint,
|
88
94
|
endpoint: endpoint,
|
89
95
|
)
|
@@ -97,6 +103,7 @@ module Aws::InternetMonitor
|
|
97
103
|
end
|
98
104
|
Aws::InternetMonitor::EndpointParameters.new(
|
99
105
|
region: context.config.region,
|
106
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
100
107
|
use_fips: context.config.use_fips_endpoint,
|
101
108
|
endpoint: endpoint,
|
102
109
|
)
|
@@ -110,6 +117,7 @@ module Aws::InternetMonitor
|
|
110
117
|
end
|
111
118
|
Aws::InternetMonitor::EndpointParameters.new(
|
112
119
|
region: context.config.region,
|
120
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
113
121
|
use_fips: context.config.use_fips_endpoint,
|
114
122
|
endpoint: endpoint,
|
115
123
|
)
|
@@ -123,6 +131,7 @@ module Aws::InternetMonitor
|
|
123
131
|
end
|
124
132
|
Aws::InternetMonitor::EndpointParameters.new(
|
125
133
|
region: context.config.region,
|
134
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
126
135
|
use_fips: context.config.use_fips_endpoint,
|
127
136
|
endpoint: endpoint,
|
128
137
|
)
|
@@ -136,6 +145,7 @@ module Aws::InternetMonitor
|
|
136
145
|
end
|
137
146
|
Aws::InternetMonitor::EndpointParameters.new(
|
138
147
|
region: context.config.region,
|
148
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
139
149
|
use_fips: context.config.use_fips_endpoint,
|
140
150
|
endpoint: endpoint,
|
141
151
|
)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-internetmonitor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.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: 2023-
|
11
|
+
date: 2023-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|