aws-sdk-kinesis 1.42.0 → 1.44.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 +12 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-kinesis/async_client.rb +1 -1
- data/lib/aws-sdk-kinesis/client.rb +260 -53
- data/lib/aws-sdk-kinesis/client_api.rb +93 -27
- data/lib/aws-sdk-kinesis/endpoint_parameters.rb +27 -0
- data/lib/aws-sdk-kinesis/endpoint_provider.rb +134 -95
- data/lib/aws-sdk-kinesis/endpoints.rb +87 -0
- data/lib/aws-sdk-kinesis/errors.rb +16 -0
- data/lib/aws-sdk-kinesis/types.rb +200 -323
- data/lib/aws-sdk-kinesis.rb +1 -1
- metadata +2 -2
@@ -9,103 +9,142 @@
|
|
9
9
|
|
10
10
|
module Aws::Kinesis
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
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
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
21
|
+
if Aws::Endpoints::Matchers.set?(stream_arn) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(endpoint)) && 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))
|
23
|
+
if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "accountId"), false)
|
24
|
+
if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "region"), false)
|
25
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(arn, "service"), "kinesis")
|
26
|
+
if (arn_type = Aws::Endpoints::Matchers.attr(arn, "resourceId[0]")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(arn_type, ""))
|
27
|
+
if Aws::Endpoints::Matchers.string_equals?(arn_type, "stream")
|
28
|
+
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)
|
31
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
32
|
+
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: {})
|
34
|
+
end
|
35
|
+
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
36
|
+
end
|
37
|
+
raise ArgumentError, "FIPS is enabled, but this partition does not support FIPS."
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
40
|
+
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: {})
|
42
|
+
end
|
43
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
44
|
+
end
|
45
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
46
|
+
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: {})
|
48
|
+
end
|
49
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
50
|
+
end
|
51
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
52
|
+
end
|
53
|
+
raise ArgumentError, "Operation Type is not set. Please contact service team for resolution."
|
54
|
+
end
|
55
|
+
raise ArgumentError, "Partition: #{arn['partition']} from ARN doesn't match with partition name: #{partition_result['name']}."
|
56
|
+
end
|
57
|
+
raise ArgumentError, "Invalid ARN: Kinesis ARNs don't support `#{arn_type}` arn types."
|
58
|
+
end
|
59
|
+
raise ArgumentError, "Invalid ARN: No ARN type specified"
|
60
|
+
end
|
61
|
+
raise ArgumentError, "Invalid ARN: The ARN was not for the Kinesis service, found: #{arn['service']}."
|
62
|
+
end
|
63
|
+
raise ArgumentError, "Invalid ARN: Invalid region."
|
64
|
+
end
|
65
|
+
raise ArgumentError, "Invalid ARN: Invalid account id."
|
66
|
+
end
|
67
|
+
raise ArgumentError, "Invalid ARN: Failed to parse ARN."
|
68
|
+
end
|
69
|
+
if Aws::Endpoints::Matchers.set?(consumer_arn) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(endpoint)) && 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))
|
71
|
+
if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "accountId"), false)
|
72
|
+
if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "region"), false)
|
73
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(arn, "service"), "kinesis")
|
74
|
+
if (arn_type = Aws::Endpoints::Matchers.attr(arn, "resourceId[0]")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(arn_type, ""))
|
75
|
+
if Aws::Endpoints::Matchers.string_equals?(arn_type, "stream")
|
76
|
+
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)
|
79
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
80
|
+
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: {})
|
82
|
+
end
|
83
|
+
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
84
|
+
end
|
85
|
+
raise ArgumentError, "FIPS is enabled, but this partition does not support FIPS."
|
86
|
+
end
|
87
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
88
|
+
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: {})
|
90
|
+
end
|
91
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
92
|
+
end
|
93
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
94
|
+
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: {})
|
96
|
+
end
|
97
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
98
|
+
end
|
99
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
100
|
+
end
|
101
|
+
raise ArgumentError, "Operation Type is not set. Please contact service team for resolution."
|
102
|
+
end
|
103
|
+
raise ArgumentError, "Partition: #{arn['partition']} from ARN doesn't match with partition name: #{partition_result['name']}."
|
104
|
+
end
|
105
|
+
raise ArgumentError, "Invalid ARN: Kinesis ARNs don't support `#{arn_type}` arn types."
|
106
|
+
end
|
107
|
+
raise ArgumentError, "Invalid ARN: No ARN type specified"
|
108
|
+
end
|
109
|
+
raise ArgumentError, "Invalid ARN: The ARN was not for the Kinesis service, found: #{arn['service']}."
|
110
|
+
end
|
111
|
+
raise ArgumentError, "Invalid ARN: Invalid region."
|
112
|
+
end
|
113
|
+
raise ArgumentError, "Invalid ARN: Invalid account id."
|
114
|
+
end
|
115
|
+
raise ArgumentError, "Invalid ARN: Failed to parse ARN."
|
116
|
+
end
|
117
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
118
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
119
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
120
|
+
end
|
121
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
122
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
123
|
+
end
|
124
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
125
|
+
end
|
126
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
127
|
+
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"))
|
128
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kinesis-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
129
|
+
end
|
130
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
131
|
+
end
|
132
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
133
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
134
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kinesis-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
135
|
+
end
|
136
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
137
|
+
end
|
138
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
139
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
140
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
141
|
+
end
|
142
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
143
|
+
end
|
144
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
21
145
|
end
|
22
|
-
|
23
|
-
end
|
146
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
147
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
148
|
end
|
28
|
-
|
29
|
-
# @api private
|
30
|
-
RULES = <<-JSON
|
31
|
-
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
-
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
|
33
|
-
dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
|
34
|
-
cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
|
35
|
-
dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
|
36
|
-
ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
|
37
|
-
ZSB0aGUgZHVhbC1zdGFjayBlbmRwb2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQg
|
38
|
-
ZW5kcG9pbnQgZG9lcyBub3Qgc3VwcG9ydCBkdWFsLXN0YWNrLCBkaXNwYXRj
|
39
|
-
aGluZyB0aGUgcmVxdWVzdCBNQVkgcmV0dXJuIGFuIGVycm9yLiIsInR5cGUi
|
40
|
-
OiJCb29sZWFuIn0sIlVzZUZJUFMiOnsiYnVpbHRJbiI6IkFXUzo6VXNlRklQ
|
41
|
-
UyIsInJlcXVpcmVkIjp0cnVlLCJkZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRh
|
42
|
-
dGlvbiI6IldoZW4gdHJ1ZSwgc2V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U3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6
|
105
|
-
W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8va2luZXNpcy57UmVnaW9u
|
106
|
-
fS57UGFydGl0aW9uUmVzdWx0I2Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7
|
107
|
-
fSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19XX0=
|
108
|
-
|
109
|
-
JSON
|
110
149
|
end
|
111
150
|
end
|
@@ -21,6 +21,9 @@ module Aws::Kinesis
|
|
21
21
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
22
22
|
use_fips: context.config.use_fips_endpoint,
|
23
23
|
endpoint: endpoint,
|
24
|
+
stream_arn: context.params[:stream_arn],
|
25
|
+
operation_type: "control",
|
26
|
+
consumer_arn: nil,
|
24
27
|
)
|
25
28
|
end
|
26
29
|
end
|
@@ -35,6 +38,9 @@ module Aws::Kinesis
|
|
35
38
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
36
39
|
use_fips: context.config.use_fips_endpoint,
|
37
40
|
endpoint: endpoint,
|
41
|
+
stream_arn: nil,
|
42
|
+
operation_type: nil,
|
43
|
+
consumer_arn: nil,
|
38
44
|
)
|
39
45
|
end
|
40
46
|
end
|
@@ -49,6 +55,9 @@ module Aws::Kinesis
|
|
49
55
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
50
56
|
use_fips: context.config.use_fips_endpoint,
|
51
57
|
endpoint: endpoint,
|
58
|
+
stream_arn: context.params[:stream_arn],
|
59
|
+
operation_type: "control",
|
60
|
+
consumer_arn: nil,
|
52
61
|
)
|
53
62
|
end
|
54
63
|
end
|
@@ -63,6 +72,9 @@ module Aws::Kinesis
|
|
63
72
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
73
|
use_fips: context.config.use_fips_endpoint,
|
65
74
|
endpoint: endpoint,
|
75
|
+
stream_arn: context.params[:stream_arn],
|
76
|
+
operation_type: "control",
|
77
|
+
consumer_arn: nil,
|
66
78
|
)
|
67
79
|
end
|
68
80
|
end
|
@@ -77,6 +89,9 @@ module Aws::Kinesis
|
|
77
89
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
78
90
|
use_fips: context.config.use_fips_endpoint,
|
79
91
|
endpoint: endpoint,
|
92
|
+
stream_arn: context.params[:stream_arn],
|
93
|
+
operation_type: "control",
|
94
|
+
consumer_arn: context.params[:consumer_arn],
|
80
95
|
)
|
81
96
|
end
|
82
97
|
end
|
@@ -91,6 +106,9 @@ module Aws::Kinesis
|
|
91
106
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
92
107
|
use_fips: context.config.use_fips_endpoint,
|
93
108
|
endpoint: endpoint,
|
109
|
+
stream_arn: nil,
|
110
|
+
operation_type: nil,
|
111
|
+
consumer_arn: nil,
|
94
112
|
)
|
95
113
|
end
|
96
114
|
end
|
@@ -105,6 +123,9 @@ module Aws::Kinesis
|
|
105
123
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
106
124
|
use_fips: context.config.use_fips_endpoint,
|
107
125
|
endpoint: endpoint,
|
126
|
+
stream_arn: context.params[:stream_arn],
|
127
|
+
operation_type: "control",
|
128
|
+
consumer_arn: nil,
|
108
129
|
)
|
109
130
|
end
|
110
131
|
end
|
@@ -119,6 +140,9 @@ module Aws::Kinesis
|
|
119
140
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
120
141
|
use_fips: context.config.use_fips_endpoint,
|
121
142
|
endpoint: endpoint,
|
143
|
+
stream_arn: context.params[:stream_arn],
|
144
|
+
operation_type: "control",
|
145
|
+
consumer_arn: context.params[:consumer_arn],
|
122
146
|
)
|
123
147
|
end
|
124
148
|
end
|
@@ -133,6 +157,9 @@ module Aws::Kinesis
|
|
133
157
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
134
158
|
use_fips: context.config.use_fips_endpoint,
|
135
159
|
endpoint: endpoint,
|
160
|
+
stream_arn: context.params[:stream_arn],
|
161
|
+
operation_type: "control",
|
162
|
+
consumer_arn: nil,
|
136
163
|
)
|
137
164
|
end
|
138
165
|
end
|
@@ -147,6 +174,9 @@ module Aws::Kinesis
|
|
147
174
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
148
175
|
use_fips: context.config.use_fips_endpoint,
|
149
176
|
endpoint: endpoint,
|
177
|
+
stream_arn: context.params[:stream_arn],
|
178
|
+
operation_type: "control",
|
179
|
+
consumer_arn: nil,
|
150
180
|
)
|
151
181
|
end
|
152
182
|
end
|
@@ -161,6 +191,9 @@ module Aws::Kinesis
|
|
161
191
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
162
192
|
use_fips: context.config.use_fips_endpoint,
|
163
193
|
endpoint: endpoint,
|
194
|
+
stream_arn: context.params[:stream_arn],
|
195
|
+
operation_type: "control",
|
196
|
+
consumer_arn: nil,
|
164
197
|
)
|
165
198
|
end
|
166
199
|
end
|
@@ -175,6 +208,9 @@ module Aws::Kinesis
|
|
175
208
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
176
209
|
use_fips: context.config.use_fips_endpoint,
|
177
210
|
endpoint: endpoint,
|
211
|
+
stream_arn: context.params[:stream_arn],
|
212
|
+
operation_type: "data",
|
213
|
+
consumer_arn: nil,
|
178
214
|
)
|
179
215
|
end
|
180
216
|
end
|
@@ -189,6 +225,9 @@ module Aws::Kinesis
|
|
189
225
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
190
226
|
use_fips: context.config.use_fips_endpoint,
|
191
227
|
endpoint: endpoint,
|
228
|
+
stream_arn: context.params[:stream_arn],
|
229
|
+
operation_type: "data",
|
230
|
+
consumer_arn: nil,
|
192
231
|
)
|
193
232
|
end
|
194
233
|
end
|
@@ -203,6 +242,9 @@ module Aws::Kinesis
|
|
203
242
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
204
243
|
use_fips: context.config.use_fips_endpoint,
|
205
244
|
endpoint: endpoint,
|
245
|
+
stream_arn: context.params[:stream_arn],
|
246
|
+
operation_type: "control",
|
247
|
+
consumer_arn: nil,
|
206
248
|
)
|
207
249
|
end
|
208
250
|
end
|
@@ -217,6 +259,9 @@ module Aws::Kinesis
|
|
217
259
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
218
260
|
use_fips: context.config.use_fips_endpoint,
|
219
261
|
endpoint: endpoint,
|
262
|
+
stream_arn: context.params[:stream_arn],
|
263
|
+
operation_type: "control",
|
264
|
+
consumer_arn: nil,
|
220
265
|
)
|
221
266
|
end
|
222
267
|
end
|
@@ -231,6 +276,9 @@ module Aws::Kinesis
|
|
231
276
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
232
277
|
use_fips: context.config.use_fips_endpoint,
|
233
278
|
endpoint: endpoint,
|
279
|
+
stream_arn: context.params[:stream_arn],
|
280
|
+
operation_type: "control",
|
281
|
+
consumer_arn: nil,
|
234
282
|
)
|
235
283
|
end
|
236
284
|
end
|
@@ -245,6 +293,9 @@ module Aws::Kinesis
|
|
245
293
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
246
294
|
use_fips: context.config.use_fips_endpoint,
|
247
295
|
endpoint: endpoint,
|
296
|
+
stream_arn: nil,
|
297
|
+
operation_type: nil,
|
298
|
+
consumer_arn: nil,
|
248
299
|
)
|
249
300
|
end
|
250
301
|
end
|
@@ -259,6 +310,9 @@ module Aws::Kinesis
|
|
259
310
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
260
311
|
use_fips: context.config.use_fips_endpoint,
|
261
312
|
endpoint: endpoint,
|
313
|
+
stream_arn: context.params[:stream_arn],
|
314
|
+
operation_type: "control",
|
315
|
+
consumer_arn: nil,
|
262
316
|
)
|
263
317
|
end
|
264
318
|
end
|
@@ -273,6 +327,9 @@ module Aws::Kinesis
|
|
273
327
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
274
328
|
use_fips: context.config.use_fips_endpoint,
|
275
329
|
endpoint: endpoint,
|
330
|
+
stream_arn: context.params[:stream_arn],
|
331
|
+
operation_type: "control",
|
332
|
+
consumer_arn: nil,
|
276
333
|
)
|
277
334
|
end
|
278
335
|
end
|
@@ -287,6 +344,9 @@ module Aws::Kinesis
|
|
287
344
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
288
345
|
use_fips: context.config.use_fips_endpoint,
|
289
346
|
endpoint: endpoint,
|
347
|
+
stream_arn: context.params[:stream_arn],
|
348
|
+
operation_type: "data",
|
349
|
+
consumer_arn: nil,
|
290
350
|
)
|
291
351
|
end
|
292
352
|
end
|
@@ -301,6 +361,9 @@ module Aws::Kinesis
|
|
301
361
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
302
362
|
use_fips: context.config.use_fips_endpoint,
|
303
363
|
endpoint: endpoint,
|
364
|
+
stream_arn: context.params[:stream_arn],
|
365
|
+
operation_type: "data",
|
366
|
+
consumer_arn: nil,
|
304
367
|
)
|
305
368
|
end
|
306
369
|
end
|
@@ -315,6 +378,9 @@ module Aws::Kinesis
|
|
315
378
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
316
379
|
use_fips: context.config.use_fips_endpoint,
|
317
380
|
endpoint: endpoint,
|
381
|
+
stream_arn: context.params[:stream_arn],
|
382
|
+
operation_type: "control",
|
383
|
+
consumer_arn: nil,
|
318
384
|
)
|
319
385
|
end
|
320
386
|
end
|
@@ -329,6 +395,9 @@ module Aws::Kinesis
|
|
329
395
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
330
396
|
use_fips: context.config.use_fips_endpoint,
|
331
397
|
endpoint: endpoint,
|
398
|
+
stream_arn: context.params[:stream_arn],
|
399
|
+
operation_type: "control",
|
400
|
+
consumer_arn: nil,
|
332
401
|
)
|
333
402
|
end
|
334
403
|
end
|
@@ -343,6 +412,9 @@ module Aws::Kinesis
|
|
343
412
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
344
413
|
use_fips: context.config.use_fips_endpoint,
|
345
414
|
endpoint: endpoint,
|
415
|
+
stream_arn: context.params[:stream_arn],
|
416
|
+
operation_type: "control",
|
417
|
+
consumer_arn: nil,
|
346
418
|
)
|
347
419
|
end
|
348
420
|
end
|
@@ -357,6 +429,9 @@ module Aws::Kinesis
|
|
357
429
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
358
430
|
use_fips: context.config.use_fips_endpoint,
|
359
431
|
endpoint: endpoint,
|
432
|
+
stream_arn: context.params[:stream_arn],
|
433
|
+
operation_type: "control",
|
434
|
+
consumer_arn: nil,
|
360
435
|
)
|
361
436
|
end
|
362
437
|
end
|
@@ -371,6 +446,9 @@ module Aws::Kinesis
|
|
371
446
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
372
447
|
use_fips: context.config.use_fips_endpoint,
|
373
448
|
endpoint: endpoint,
|
449
|
+
stream_arn: context.params[:stream_arn],
|
450
|
+
operation_type: "control",
|
451
|
+
consumer_arn: nil,
|
374
452
|
)
|
375
453
|
end
|
376
454
|
end
|
@@ -385,6 +463,9 @@ module Aws::Kinesis
|
|
385
463
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
386
464
|
use_fips: context.config.use_fips_endpoint,
|
387
465
|
endpoint: endpoint,
|
466
|
+
stream_arn: nil,
|
467
|
+
operation_type: "data",
|
468
|
+
consumer_arn: context.params[:consumer_arn],
|
388
469
|
)
|
389
470
|
end
|
390
471
|
end
|
@@ -399,6 +480,9 @@ module Aws::Kinesis
|
|
399
480
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
400
481
|
use_fips: context.config.use_fips_endpoint,
|
401
482
|
endpoint: endpoint,
|
483
|
+
stream_arn: context.params[:stream_arn],
|
484
|
+
operation_type: "control",
|
485
|
+
consumer_arn: nil,
|
402
486
|
)
|
403
487
|
end
|
404
488
|
end
|
@@ -413,6 +497,9 @@ module Aws::Kinesis
|
|
413
497
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
414
498
|
use_fips: context.config.use_fips_endpoint,
|
415
499
|
endpoint: endpoint,
|
500
|
+
stream_arn: context.params[:stream_arn],
|
501
|
+
operation_type: "control",
|
502
|
+
consumer_arn: nil,
|
416
503
|
)
|
417
504
|
end
|
418
505
|
end
|
@@ -27,6 +27,7 @@ module Aws::Kinesis
|
|
27
27
|
# See {Seahorse::Client::RequestContext} for more information.
|
28
28
|
#
|
29
29
|
# ## Error Classes
|
30
|
+
# * {AccessDeniedException}
|
30
31
|
# * {ExpiredIteratorException}
|
31
32
|
# * {ExpiredNextTokenException}
|
32
33
|
# * {InvalidArgumentException}
|
@@ -40,6 +41,21 @@ module Aws::Kinesis
|
|
40
41
|
|
41
42
|
extend Aws::Errors::DynamicErrors
|
42
43
|
|
44
|
+
class AccessDeniedException < ServiceError
|
45
|
+
|
46
|
+
# @param [Seahorse::Client::RequestContext] context
|
47
|
+
# @param [String] message
|
48
|
+
# @param [Aws::Kinesis::Types::AccessDeniedException] data
|
49
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
50
|
+
super(context, message, data)
|
51
|
+
end
|
52
|
+
|
53
|
+
# @return [String]
|
54
|
+
def message
|
55
|
+
@message || @data[:message]
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
43
59
|
class ExpiredIteratorException < ServiceError
|
44
60
|
|
45
61
|
# @param [Seahorse::Client::RequestContext] context
|