aws-sdk-kinesis 1.72.0 → 1.73.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-kinesis/async_client.rb +1 -1
- data/lib/aws-sdk-kinesis/client.rb +1 -1
- data/lib/aws-sdk-kinesis/endpoint_provider.rb +44 -52
- data/lib/aws-sdk-kinesis.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: 8a5d7234de605b2626ede39e3c55e870d7ae2387322e9fdd6a2e65627a1bc403
|
4
|
+
data.tar.gz: 541b35ef963f5253a111631148ff8bfa5da3b7159f4b853fc4cad2a860e346f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7494527bc6df433344992bab1bbf3285d4a53e68a9b312f3ef6f104981d9fe5ee911b6406c3ec950a47dc75cb1174d7ef7a6cf3b1f969c1081661c63b409f34b
|
7
|
+
data.tar.gz: 3402da5f6c8b506ab1a33a32f7b7e2f2b6a3b15656b0c7288acb837d89d112f084d90624a4dd04052677807bec32f0229ec6ac92af782a8693d8f0f15d7bff0d
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.73.0
|
@@ -10,45 +10,37 @@
|
|
10
10
|
module Aws::Kinesis
|
11
11
|
class EndpointProvider
|
12
12
|
def resolve_endpoint(parameters)
|
13
|
-
region = parameters.region
|
14
|
-
|
15
|
-
use_fips = parameters.use_fips
|
16
|
-
endpoint = parameters.endpoint
|
17
|
-
stream_arn = parameters.stream_arn
|
18
|
-
operation_type = parameters.operation_type
|
19
|
-
consumer_arn = parameters.consumer_arn
|
20
|
-
resource_arn = parameters.resource_arn
|
21
|
-
if Aws::Endpoints::Matchers.set?(stream_arn) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(endpoint)) && Aws::Endpoints::Matchers.set?(region) && (partition_result = Aws::Endpoints::Matchers.aws_partition(region)) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-b"))
|
22
|
-
if (arn = Aws::Endpoints::Matchers.aws_parse_arn(stream_arn))
|
13
|
+
if Aws::Endpoints::Matchers.set?(parameters.stream_arn) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.endpoint)) && Aws::Endpoints::Matchers.set?(parameters.region) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region)) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-b"))
|
14
|
+
if (arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.stream_arn))
|
23
15
|
if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "accountId"), false)
|
24
16
|
if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "region"), false)
|
25
17
|
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(arn, "service"), "kinesis")
|
26
18
|
if (arn_type = Aws::Endpoints::Matchers.attr(arn, "resourceId[0]")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(arn_type, ""))
|
27
19
|
if Aws::Endpoints::Matchers.string_equals?(arn_type, "stream")
|
28
20
|
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "#{arn['partition']}")
|
29
|
-
if Aws::Endpoints::Matchers.set?(operation_type)
|
30
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
21
|
+
if Aws::Endpoints::Matchers.set?(parameters.operation_type)
|
22
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
31
23
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
32
24
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
33
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
34
26
|
end
|
35
27
|
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
36
28
|
end
|
37
29
|
raise ArgumentError, "FIPS is enabled, but this partition does not support FIPS."
|
38
30
|
end
|
39
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
31
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
40
32
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
41
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
33
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
42
34
|
end
|
43
35
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
44
36
|
end
|
45
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
37
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
46
38
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
47
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
39
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
48
40
|
end
|
49
41
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
50
42
|
end
|
51
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
43
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
52
44
|
end
|
53
45
|
raise ArgumentError, "Operation Type is not set. Please contact service team for resolution."
|
54
46
|
end
|
@@ -66,37 +58,37 @@ module Aws::Kinesis
|
|
66
58
|
end
|
67
59
|
raise ArgumentError, "Invalid ARN: Failed to parse ARN."
|
68
60
|
end
|
69
|
-
if Aws::Endpoints::Matchers.set?(consumer_arn) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(endpoint)) && Aws::Endpoints::Matchers.set?(region) && (partition_result = Aws::Endpoints::Matchers.aws_partition(region)) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-b"))
|
70
|
-
if (arn = Aws::Endpoints::Matchers.aws_parse_arn(consumer_arn))
|
61
|
+
if Aws::Endpoints::Matchers.set?(parameters.consumer_arn) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.endpoint)) && Aws::Endpoints::Matchers.set?(parameters.region) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region)) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-b"))
|
62
|
+
if (arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.consumer_arn))
|
71
63
|
if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "accountId"), false)
|
72
64
|
if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "region"), false)
|
73
65
|
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(arn, "service"), "kinesis")
|
74
66
|
if (arn_type = Aws::Endpoints::Matchers.attr(arn, "resourceId[0]")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(arn_type, ""))
|
75
67
|
if Aws::Endpoints::Matchers.string_equals?(arn_type, "stream")
|
76
68
|
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "#{arn['partition']}")
|
77
|
-
if Aws::Endpoints::Matchers.set?(operation_type)
|
78
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
69
|
+
if Aws::Endpoints::Matchers.set?(parameters.operation_type)
|
70
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
79
71
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
80
72
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
81
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
73
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
82
74
|
end
|
83
75
|
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
84
76
|
end
|
85
77
|
raise ArgumentError, "FIPS is enabled, but this partition does not support FIPS."
|
86
78
|
end
|
87
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
79
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
88
80
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
89
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
81
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
90
82
|
end
|
91
83
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
92
84
|
end
|
93
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
85
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
94
86
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
95
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
87
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
96
88
|
end
|
97
89
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
98
90
|
end
|
99
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
91
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
100
92
|
end
|
101
93
|
raise ArgumentError, "Operation Type is not set. Please contact service team for resolution."
|
102
94
|
end
|
@@ -114,37 +106,37 @@ module Aws::Kinesis
|
|
114
106
|
end
|
115
107
|
raise ArgumentError, "Invalid ARN: Failed to parse ARN."
|
116
108
|
end
|
117
|
-
if Aws::Endpoints::Matchers.set?(resource_arn) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(endpoint)) && Aws::Endpoints::Matchers.set?(region) && (partition_result = Aws::Endpoints::Matchers.aws_partition(region)) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-b"))
|
118
|
-
if (arn = Aws::Endpoints::Matchers.aws_parse_arn(resource_arn))
|
109
|
+
if Aws::Endpoints::Matchers.set?(parameters.resource_arn) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.endpoint)) && Aws::Endpoints::Matchers.set?(parameters.region) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region)) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-b"))
|
110
|
+
if (arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.resource_arn))
|
119
111
|
if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "accountId"), false)
|
120
112
|
if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "region"), false)
|
121
113
|
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(arn, "service"), "kinesis")
|
122
114
|
if (arn_type = Aws::Endpoints::Matchers.attr(arn, "resourceId[0]")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(arn_type, ""))
|
123
115
|
if Aws::Endpoints::Matchers.string_equals?(arn_type, "stream")
|
124
116
|
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "#{arn['partition']}")
|
125
|
-
if Aws::Endpoints::Matchers.set?(operation_type)
|
126
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
117
|
+
if Aws::Endpoints::Matchers.set?(parameters.operation_type)
|
118
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
127
119
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
128
120
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
129
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
121
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
130
122
|
end
|
131
123
|
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
132
124
|
end
|
133
125
|
raise ArgumentError, "FIPS is enabled, but this partition does not support FIPS."
|
134
126
|
end
|
135
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
127
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
136
128
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
137
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
129
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
138
130
|
end
|
139
131
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
140
132
|
end
|
141
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
133
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
142
134
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
143
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
135
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
144
136
|
end
|
145
137
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
146
138
|
end
|
147
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
139
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
148
140
|
end
|
149
141
|
raise ArgumentError, "Operation Type is not set. Please contact service team for resolution."
|
150
142
|
end
|
@@ -162,39 +154,39 @@ module Aws::Kinesis
|
|
162
154
|
end
|
163
155
|
raise ArgumentError, "Invalid ARN: Failed to parse ARN."
|
164
156
|
end
|
165
|
-
if Aws::Endpoints::Matchers.set?(endpoint)
|
166
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
157
|
+
if Aws::Endpoints::Matchers.set?(parameters.endpoint)
|
158
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
167
159
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
168
160
|
end
|
169
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
161
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
170
162
|
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
171
163
|
end
|
172
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
164
|
+
return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
|
173
165
|
end
|
174
|
-
if Aws::Endpoints::Matchers.set?(region)
|
175
|
-
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
176
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
166
|
+
if Aws::Endpoints::Matchers.set?(parameters.region)
|
167
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
|
168
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
177
169
|
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"))
|
178
|
-
return Aws::Endpoints::Endpoint.new(url: "https://kinesis-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
170
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kinesis-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
179
171
|
end
|
180
172
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
181
173
|
end
|
182
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
174
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
183
175
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
184
176
|
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
|
185
|
-
return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{region}.amazonaws.com", headers: {}, properties: {})
|
177
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{parameters.region}.amazonaws.com", headers: {}, properties: {})
|
186
178
|
end
|
187
|
-
return Aws::Endpoints::Endpoint.new(url: "https://kinesis-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
179
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kinesis-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
188
180
|
end
|
189
181
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
190
182
|
end
|
191
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
183
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
192
184
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
193
|
-
return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
185
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
194
186
|
end
|
195
187
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
196
188
|
end
|
197
|
-
return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
189
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
198
190
|
end
|
199
191
|
end
|
200
192
|
raise ArgumentError, "Invalid Configuration: Missing Region"
|
data/lib/aws-sdk-kinesis.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-kinesis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.73.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
|