aws-sdk-kinesis 1.68.0 → 1.70.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 770b2d6ac351ce4671e8201af411606e5fb105bb4d9d3f7f86984c56de8ef12c
4
- data.tar.gz: 4373b71e89fb43e668b571ba0aeb36926608bdb5d8465b1cfce449b265b44f1f
3
+ metadata.gz: 8051203698e4a5d97c4a6b2054e9bf65e634d2da4110c868e7dc607a9cef31a0
4
+ data.tar.gz: cb8f7150bdb98fa8676c47a280a2e98f327d1e7b532f6df02610417864967bc9
5
5
  SHA512:
6
- metadata.gz: 32ba31f2ae6af36a4df29835bd6a67a3b2e924357799d8062c233f9c1ce4445fbd3bce23c4ae82985ea113d255c9dfc6451c6c9c7c4f66b9b977d6149ce4a768
7
- data.tar.gz: 6fff6e4124f4b939fbfbd32c27c57c34ddf21171925b7850e9cb671c35e88494aec72892883e48fb391b4519872310e5b2d0b77d4b061f3a3733a999cca89b61
6
+ metadata.gz: d846615ac047613867c205b9c4e4f8d28a466450b7910b2a0440d2e76bb23411d4860892dd7332a37e324a542a2adbb74309468f055042b9d42abe08cc5ddbbf
7
+ data.tar.gz: 6cd118cbf629f12d7412f75a581dc0a8dd691efdb4e469f27a30edc0ff2b337d3031dd5272c9fa10d2ac708fc6d76750873f3c3ff43ab89c8d25a35ed9309a11
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.70.0 (2024-10-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.69.0 (2024-09-24)
10
+ ------------------
11
+
12
+ * Feature - This release includes support to add tags when creating a stream
13
+
4
14
  1.68.0 (2024-09-23)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.68.0
1
+ 1.70.0
@@ -397,9 +397,12 @@ module Aws::Kinesis
397
397
  # subscription and the previous connection expires or fails with a
398
398
  # `ResourceInUseException`.
399
399
  #
400
- # For an example of how to use this operations, see [Enhanced Fan-Out
401
- # Using the Kinesis Data Streams
402
- # API](/streams/latest/dev/building-enhanced-consumers-api.html).
400
+ # For an example of how to use this operation, see [Enhanced Fan-Out
401
+ # Using the Kinesis Data Streams API][1].
402
+ #
403
+ #
404
+ #
405
+ # [1]: https://docs.aws.amazon.com/streams/latest/dev/building-enhanced-consumers-api.html
403
406
  #
404
407
  # @option params [required, String] :consumer_arn
405
408
  # For this parameter, use the value you obtained when you called
@@ -687,7 +690,7 @@ module Aws::Kinesis
687
690
  tracer: tracer
688
691
  )
689
692
  context[:gem_name] = 'aws-sdk-kinesis'
690
- context[:gem_version] = '1.68.0'
693
+ context[:gem_version] = '1.70.0'
691
694
  Seahorse::Client::Request.new(handlers, context)
692
695
  end
693
696
 
@@ -37,8 +37,6 @@ require 'aws-sdk-core/plugins/sign.rb'
37
37
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
38
38
  require 'aws-sdk-core/plugins/event_stream_configuration.rb'
39
39
 
40
- Aws::Plugins::GlobalConfiguration.add_identifier(:kinesis)
41
-
42
40
  module Aws::Kinesis
43
41
  # An API client for Kinesis. To construct a client, you need to configure a `:region` and `:credentials`.
44
42
  #
@@ -562,6 +560,13 @@ module Aws::Kinesis
562
560
  #
563
561
  # CreateStream has a limit of five transactions per second per account.
564
562
  #
563
+ # You can add tags to the stream when making a `CreateStream` request by
564
+ # setting the `Tags` parameter. If you pass `Tags` parameter, in
565
+ # addition to having `kinesis:createStream` permission, you must also
566
+ # have `kinesis:addTagsToStream` permission for the stream that will be
567
+ # created. Tags will take effect from the `CREATING` status of the
568
+ # stream.
569
+ #
565
570
  #
566
571
  #
567
572
  # [1]: https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html
@@ -585,6 +590,9 @@ module Aws::Kinesis
585
590
  # Data Streams, you can choose between an **on-demand** capacity mode
586
591
  # and a **provisioned** capacity mode for your data streams.
587
592
  #
593
+ # @option params [Hash<String,String>] :tags
594
+ # A set of up to 10 key-value pairs to use to create the tags.
595
+ #
588
596
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
589
597
  #
590
598
  # @example Request syntax with placeholder values
@@ -595,6 +603,9 @@ module Aws::Kinesis
595
603
  # stream_mode_details: {
596
604
  # stream_mode: "PROVISIONED", # required, accepts PROVISIONED, ON_DEMAND
597
605
  # },
606
+ # tags: {
607
+ # "TagKey" => "TagValue",
608
+ # },
598
609
  # })
599
610
  #
600
611
  # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/CreateStream AWS API Documentation
@@ -2322,9 +2333,8 @@ module Aws::Kinesis
2322
2333
  # You can register up to 20 consumers per stream. A given consumer can
2323
2334
  # only be registered with one stream at a time.
2324
2335
  #
2325
- # For an example of how to use this operations, see [Enhanced Fan-Out
2326
- # Using the Kinesis Data Streams
2327
- # API](/streams/latest/dev/building-enhanced-consumers-api.html).
2336
+ # For an example of how to use this operation, see [Enhanced Fan-Out
2337
+ # Using the Kinesis Data Streams API][1].
2328
2338
  #
2329
2339
  # The use of this operation has a limit of five transactions per second
2330
2340
  # per account. Also, only 5 consumers can be created simultaneously. In
@@ -2332,6 +2342,10 @@ module Aws::Kinesis
2332
2342
  # status at the same time. Registering a 6th consumer while there are 5
2333
2343
  # in a `CREATING` status results in a `LimitExceededException`.
2334
2344
  #
2345
+ #
2346
+ #
2347
+ # [1]: https://docs.aws.amazon.com/streams/latest/dev/building-enhanced-consumers-api.html
2348
+ #
2335
2349
  # @option params [required, String] :stream_arn
2336
2350
  # The ARN of the Kinesis data stream that you want to register the
2337
2351
  # consumer with. For more info, see [Amazon Resource Names (ARNs) and
@@ -2840,7 +2854,7 @@ module Aws::Kinesis
2840
2854
  tracer: tracer
2841
2855
  )
2842
2856
  context[:gem_name] = 'aws-sdk-kinesis'
2843
- context[:gem_version] = '1.68.0'
2857
+ context[:gem_version] = '1.70.0'
2844
2858
  Seahorse::Client::Request.new(handlers, context)
2845
2859
  end
2846
2860
 
@@ -187,6 +187,7 @@ module Aws::Kinesis
187
187
  CreateStreamInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
188
188
  CreateStreamInput.add_member(:shard_count, Shapes::ShapeRef.new(shape: PositiveIntegerObject, location_name: "ShardCount"))
189
189
  CreateStreamInput.add_member(:stream_mode_details, Shapes::ShapeRef.new(shape: StreamModeDetails, location_name: "StreamModeDetails"))
190
+ CreateStreamInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
190
191
  CreateStreamInput.struct_class = Types::CreateStreamInput
191
192
 
192
193
  DecreaseStreamRetentionPeriodInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName"))
@@ -795,6 +796,7 @@ module Aws::Kinesis
795
796
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
796
797
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
797
798
  o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
799
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
798
800
  end)
799
801
 
800
802
  api.add_operation(:get_shard_iterator, Seahorse::Model::Operation.new.tap do |o|
@@ -80,19 +80,22 @@ module Aws::Kinesis
80
80
  self[:region] = options[:region]
81
81
  self[:use_dual_stack] = options[:use_dual_stack]
82
82
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
83
- if self[:use_dual_stack].nil?
84
- raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
85
- end
86
83
  self[:use_fips] = options[:use_fips]
87
84
  self[:use_fips] = false if self[:use_fips].nil?
88
- if self[:use_fips].nil?
89
- raise ArgumentError, "Missing required EndpointParameter: :use_fips"
90
- end
91
85
  self[:endpoint] = options[:endpoint]
92
86
  self[:stream_arn] = options[:stream_arn]
93
87
  self[:operation_type] = options[:operation_type]
94
88
  self[:consumer_arn] = options[:consumer_arn]
95
89
  self[:resource_arn] = options[:resource_arn]
96
90
  end
91
+
92
+ def self.create(config, options={})
93
+ new({
94
+ region: config.region,
95
+ use_dual_stack: config.use_dualstack_endpoint,
96
+ use_fips: config.use_fips_endpoint,
97
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
98
+ }.merge(options))
99
+ end
97
100
  end
98
101
  end
@@ -14,59 +14,29 @@ module Aws::Kinesis
14
14
 
15
15
  class AddTagsToStream
16
16
  def self.build(context)
17
- Aws::Kinesis::EndpointParameters.new(
18
- region: context.config.region,
19
- use_dual_stack: context.config.use_dualstack_endpoint,
20
- use_fips: context.config.use_fips_endpoint,
21
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
17
+ Aws::Kinesis::EndpointParameters.create(
18
+ context.config,
22
19
  stream_arn: context.params[:stream_arn],
23
20
  operation_type: "control",
24
- consumer_arn: nil,
25
- resource_arn: nil,
26
- )
27
- end
28
- end
29
-
30
- class CreateStream
31
- def self.build(context)
32
- Aws::Kinesis::EndpointParameters.new(
33
- region: context.config.region,
34
- use_dual_stack: context.config.use_dualstack_endpoint,
35
- use_fips: context.config.use_fips_endpoint,
36
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
37
- stream_arn: nil,
38
- operation_type: nil,
39
- consumer_arn: nil,
40
- resource_arn: nil,
41
21
  )
42
22
  end
43
23
  end
44
24
 
45
25
  class DecreaseStreamRetentionPeriod
46
26
  def self.build(context)
47
- Aws::Kinesis::EndpointParameters.new(
48
- region: context.config.region,
49
- use_dual_stack: context.config.use_dualstack_endpoint,
50
- use_fips: context.config.use_fips_endpoint,
51
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
27
+ Aws::Kinesis::EndpointParameters.create(
28
+ context.config,
52
29
  stream_arn: context.params[:stream_arn],
53
30
  operation_type: "control",
54
- consumer_arn: nil,
55
- resource_arn: nil,
56
31
  )
57
32
  end
58
33
  end
59
34
 
60
35
  class DeleteResourcePolicy
61
36
  def self.build(context)
62
- Aws::Kinesis::EndpointParameters.new(
63
- region: context.config.region,
64
- use_dual_stack: context.config.use_dualstack_endpoint,
65
- use_fips: context.config.use_fips_endpoint,
66
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
67
- stream_arn: nil,
37
+ Aws::Kinesis::EndpointParameters.create(
38
+ context.config,
68
39
  operation_type: "control",
69
- consumer_arn: nil,
70
40
  resource_arn: context.params[:resource_arn],
71
41
  )
72
42
  end
@@ -74,149 +44,91 @@ module Aws::Kinesis
74
44
 
75
45
  class DeleteStream
76
46
  def self.build(context)
77
- Aws::Kinesis::EndpointParameters.new(
78
- region: context.config.region,
79
- use_dual_stack: context.config.use_dualstack_endpoint,
80
- use_fips: context.config.use_fips_endpoint,
81
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
47
+ Aws::Kinesis::EndpointParameters.create(
48
+ context.config,
82
49
  stream_arn: context.params[:stream_arn],
83
50
  operation_type: "control",
84
- consumer_arn: nil,
85
- resource_arn: nil,
86
51
  )
87
52
  end
88
53
  end
89
54
 
90
55
  class DeregisterStreamConsumer
91
56
  def self.build(context)
92
- Aws::Kinesis::EndpointParameters.new(
93
- region: context.config.region,
94
- use_dual_stack: context.config.use_dualstack_endpoint,
95
- use_fips: context.config.use_fips_endpoint,
96
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
57
+ Aws::Kinesis::EndpointParameters.create(
58
+ context.config,
97
59
  stream_arn: context.params[:stream_arn],
98
60
  operation_type: "control",
99
61
  consumer_arn: context.params[:consumer_arn],
100
- resource_arn: nil,
101
- )
102
- end
103
- end
104
-
105
- class DescribeLimits
106
- def self.build(context)
107
- Aws::Kinesis::EndpointParameters.new(
108
- region: context.config.region,
109
- use_dual_stack: context.config.use_dualstack_endpoint,
110
- use_fips: context.config.use_fips_endpoint,
111
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
112
- stream_arn: nil,
113
- operation_type: nil,
114
- consumer_arn: nil,
115
- resource_arn: nil,
116
62
  )
117
63
  end
118
64
  end
119
65
 
120
66
  class DescribeStream
121
67
  def self.build(context)
122
- Aws::Kinesis::EndpointParameters.new(
123
- region: context.config.region,
124
- use_dual_stack: context.config.use_dualstack_endpoint,
125
- use_fips: context.config.use_fips_endpoint,
126
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
68
+ Aws::Kinesis::EndpointParameters.create(
69
+ context.config,
127
70
  stream_arn: context.params[:stream_arn],
128
71
  operation_type: "control",
129
- consumer_arn: nil,
130
- resource_arn: nil,
131
72
  )
132
73
  end
133
74
  end
134
75
 
135
76
  class DescribeStreamConsumer
136
77
  def self.build(context)
137
- Aws::Kinesis::EndpointParameters.new(
138
- region: context.config.region,
139
- use_dual_stack: context.config.use_dualstack_endpoint,
140
- use_fips: context.config.use_fips_endpoint,
141
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
78
+ Aws::Kinesis::EndpointParameters.create(
79
+ context.config,
142
80
  stream_arn: context.params[:stream_arn],
143
81
  operation_type: "control",
144
82
  consumer_arn: context.params[:consumer_arn],
145
- resource_arn: nil,
146
83
  )
147
84
  end
148
85
  end
149
86
 
150
87
  class DescribeStreamSummary
151
88
  def self.build(context)
152
- Aws::Kinesis::EndpointParameters.new(
153
- region: context.config.region,
154
- use_dual_stack: context.config.use_dualstack_endpoint,
155
- use_fips: context.config.use_fips_endpoint,
156
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
89
+ Aws::Kinesis::EndpointParameters.create(
90
+ context.config,
157
91
  stream_arn: context.params[:stream_arn],
158
92
  operation_type: "control",
159
- consumer_arn: nil,
160
- resource_arn: nil,
161
93
  )
162
94
  end
163
95
  end
164
96
 
165
97
  class DisableEnhancedMonitoring
166
98
  def self.build(context)
167
- Aws::Kinesis::EndpointParameters.new(
168
- region: context.config.region,
169
- use_dual_stack: context.config.use_dualstack_endpoint,
170
- use_fips: context.config.use_fips_endpoint,
171
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
99
+ Aws::Kinesis::EndpointParameters.create(
100
+ context.config,
172
101
  stream_arn: context.params[:stream_arn],
173
102
  operation_type: "control",
174
- consumer_arn: nil,
175
- resource_arn: nil,
176
103
  )
177
104
  end
178
105
  end
179
106
 
180
107
  class EnableEnhancedMonitoring
181
108
  def self.build(context)
182
- Aws::Kinesis::EndpointParameters.new(
183
- region: context.config.region,
184
- use_dual_stack: context.config.use_dualstack_endpoint,
185
- use_fips: context.config.use_fips_endpoint,
186
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
109
+ Aws::Kinesis::EndpointParameters.create(
110
+ context.config,
187
111
  stream_arn: context.params[:stream_arn],
188
112
  operation_type: "control",
189
- consumer_arn: nil,
190
- resource_arn: nil,
191
113
  )
192
114
  end
193
115
  end
194
116
 
195
117
  class GetRecords
196
118
  def self.build(context)
197
- Aws::Kinesis::EndpointParameters.new(
198
- region: context.config.region,
199
- use_dual_stack: context.config.use_dualstack_endpoint,
200
- use_fips: context.config.use_fips_endpoint,
201
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
119
+ Aws::Kinesis::EndpointParameters.create(
120
+ context.config,
202
121
  stream_arn: context.params[:stream_arn],
203
122
  operation_type: "data",
204
- consumer_arn: nil,
205
- resource_arn: nil,
206
123
  )
207
124
  end
208
125
  end
209
126
 
210
127
  class GetResourcePolicy
211
128
  def self.build(context)
212
- Aws::Kinesis::EndpointParameters.new(
213
- region: context.config.region,
214
- use_dual_stack: context.config.use_dualstack_endpoint,
215
- use_fips: context.config.use_fips_endpoint,
216
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
217
- stream_arn: nil,
129
+ Aws::Kinesis::EndpointParameters.create(
130
+ context.config,
218
131
  operation_type: "control",
219
- consumer_arn: nil,
220
132
  resource_arn: context.params[:resource_arn],
221
133
  )
222
134
  end
@@ -224,149 +136,89 @@ module Aws::Kinesis
224
136
 
225
137
  class GetShardIterator
226
138
  def self.build(context)
227
- Aws::Kinesis::EndpointParameters.new(
228
- region: context.config.region,
229
- use_dual_stack: context.config.use_dualstack_endpoint,
230
- use_fips: context.config.use_fips_endpoint,
231
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
139
+ Aws::Kinesis::EndpointParameters.create(
140
+ context.config,
232
141
  stream_arn: context.params[:stream_arn],
233
142
  operation_type: "data",
234
- consumer_arn: nil,
235
- resource_arn: nil,
236
143
  )
237
144
  end
238
145
  end
239
146
 
240
147
  class IncreaseStreamRetentionPeriod
241
148
  def self.build(context)
242
- Aws::Kinesis::EndpointParameters.new(
243
- region: context.config.region,
244
- use_dual_stack: context.config.use_dualstack_endpoint,
245
- use_fips: context.config.use_fips_endpoint,
246
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
149
+ Aws::Kinesis::EndpointParameters.create(
150
+ context.config,
247
151
  stream_arn: context.params[:stream_arn],
248
152
  operation_type: "control",
249
- consumer_arn: nil,
250
- resource_arn: nil,
251
153
  )
252
154
  end
253
155
  end
254
156
 
255
157
  class ListShards
256
158
  def self.build(context)
257
- Aws::Kinesis::EndpointParameters.new(
258
- region: context.config.region,
259
- use_dual_stack: context.config.use_dualstack_endpoint,
260
- use_fips: context.config.use_fips_endpoint,
261
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
159
+ Aws::Kinesis::EndpointParameters.create(
160
+ context.config,
262
161
  stream_arn: context.params[:stream_arn],
263
162
  operation_type: "control",
264
- consumer_arn: nil,
265
- resource_arn: nil,
266
163
  )
267
164
  end
268
165
  end
269
166
 
270
167
  class ListStreamConsumers
271
168
  def self.build(context)
272
- Aws::Kinesis::EndpointParameters.new(
273
- region: context.config.region,
274
- use_dual_stack: context.config.use_dualstack_endpoint,
275
- use_fips: context.config.use_fips_endpoint,
276
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
169
+ Aws::Kinesis::EndpointParameters.create(
170
+ context.config,
277
171
  stream_arn: context.params[:stream_arn],
278
172
  operation_type: "control",
279
- consumer_arn: nil,
280
- resource_arn: nil,
281
- )
282
- end
283
- end
284
-
285
- class ListStreams
286
- def self.build(context)
287
- Aws::Kinesis::EndpointParameters.new(
288
- region: context.config.region,
289
- use_dual_stack: context.config.use_dualstack_endpoint,
290
- use_fips: context.config.use_fips_endpoint,
291
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
292
- stream_arn: nil,
293
- operation_type: nil,
294
- consumer_arn: nil,
295
- resource_arn: nil,
296
173
  )
297
174
  end
298
175
  end
299
176
 
300
177
  class ListTagsForStream
301
178
  def self.build(context)
302
- Aws::Kinesis::EndpointParameters.new(
303
- region: context.config.region,
304
- use_dual_stack: context.config.use_dualstack_endpoint,
305
- use_fips: context.config.use_fips_endpoint,
306
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
179
+ Aws::Kinesis::EndpointParameters.create(
180
+ context.config,
307
181
  stream_arn: context.params[:stream_arn],
308
182
  operation_type: "control",
309
- consumer_arn: nil,
310
- resource_arn: nil,
311
183
  )
312
184
  end
313
185
  end
314
186
 
315
187
  class MergeShards
316
188
  def self.build(context)
317
- Aws::Kinesis::EndpointParameters.new(
318
- region: context.config.region,
319
- use_dual_stack: context.config.use_dualstack_endpoint,
320
- use_fips: context.config.use_fips_endpoint,
321
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
189
+ Aws::Kinesis::EndpointParameters.create(
190
+ context.config,
322
191
  stream_arn: context.params[:stream_arn],
323
192
  operation_type: "control",
324
- consumer_arn: nil,
325
- resource_arn: nil,
326
193
  )
327
194
  end
328
195
  end
329
196
 
330
197
  class PutRecord
331
198
  def self.build(context)
332
- Aws::Kinesis::EndpointParameters.new(
333
- region: context.config.region,
334
- use_dual_stack: context.config.use_dualstack_endpoint,
335
- use_fips: context.config.use_fips_endpoint,
336
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
199
+ Aws::Kinesis::EndpointParameters.create(
200
+ context.config,
337
201
  stream_arn: context.params[:stream_arn],
338
202
  operation_type: "data",
339
- consumer_arn: nil,
340
- resource_arn: nil,
341
203
  )
342
204
  end
343
205
  end
344
206
 
345
207
  class PutRecords
346
208
  def self.build(context)
347
- Aws::Kinesis::EndpointParameters.new(
348
- region: context.config.region,
349
- use_dual_stack: context.config.use_dualstack_endpoint,
350
- use_fips: context.config.use_fips_endpoint,
351
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
209
+ Aws::Kinesis::EndpointParameters.create(
210
+ context.config,
352
211
  stream_arn: context.params[:stream_arn],
353
212
  operation_type: "data",
354
- consumer_arn: nil,
355
- resource_arn: nil,
356
213
  )
357
214
  end
358
215
  end
359
216
 
360
217
  class PutResourcePolicy
361
218
  def self.build(context)
362
- Aws::Kinesis::EndpointParameters.new(
363
- region: context.config.region,
364
- use_dual_stack: context.config.use_dualstack_endpoint,
365
- use_fips: context.config.use_fips_endpoint,
366
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
367
- stream_arn: nil,
219
+ Aws::Kinesis::EndpointParameters.create(
220
+ context.config,
368
221
  operation_type: "control",
369
- consumer_arn: nil,
370
222
  resource_arn: context.params[:resource_arn],
371
223
  )
372
224
  end
@@ -374,123 +226,148 @@ module Aws::Kinesis
374
226
 
375
227
  class RegisterStreamConsumer
376
228
  def self.build(context)
377
- Aws::Kinesis::EndpointParameters.new(
378
- region: context.config.region,
379
- use_dual_stack: context.config.use_dualstack_endpoint,
380
- use_fips: context.config.use_fips_endpoint,
381
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
229
+ Aws::Kinesis::EndpointParameters.create(
230
+ context.config,
382
231
  stream_arn: context.params[:stream_arn],
383
232
  operation_type: "control",
384
- consumer_arn: nil,
385
- resource_arn: nil,
386
233
  )
387
234
  end
388
235
  end
389
236
 
390
237
  class RemoveTagsFromStream
391
238
  def self.build(context)
392
- Aws::Kinesis::EndpointParameters.new(
393
- region: context.config.region,
394
- use_dual_stack: context.config.use_dualstack_endpoint,
395
- use_fips: context.config.use_fips_endpoint,
396
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
239
+ Aws::Kinesis::EndpointParameters.create(
240
+ context.config,
397
241
  stream_arn: context.params[:stream_arn],
398
242
  operation_type: "control",
399
- consumer_arn: nil,
400
- resource_arn: nil,
401
243
  )
402
244
  end
403
245
  end
404
246
 
405
247
  class SplitShard
406
248
  def self.build(context)
407
- Aws::Kinesis::EndpointParameters.new(
408
- region: context.config.region,
409
- use_dual_stack: context.config.use_dualstack_endpoint,
410
- use_fips: context.config.use_fips_endpoint,
411
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
249
+ Aws::Kinesis::EndpointParameters.create(
250
+ context.config,
412
251
  stream_arn: context.params[:stream_arn],
413
252
  operation_type: "control",
414
- consumer_arn: nil,
415
- resource_arn: nil,
416
253
  )
417
254
  end
418
255
  end
419
256
 
420
257
  class StartStreamEncryption
421
258
  def self.build(context)
422
- Aws::Kinesis::EndpointParameters.new(
423
- region: context.config.region,
424
- use_dual_stack: context.config.use_dualstack_endpoint,
425
- use_fips: context.config.use_fips_endpoint,
426
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
259
+ Aws::Kinesis::EndpointParameters.create(
260
+ context.config,
427
261
  stream_arn: context.params[:stream_arn],
428
262
  operation_type: "control",
429
- consumer_arn: nil,
430
- resource_arn: nil,
431
263
  )
432
264
  end
433
265
  end
434
266
 
435
267
  class StopStreamEncryption
436
268
  def self.build(context)
437
- Aws::Kinesis::EndpointParameters.new(
438
- region: context.config.region,
439
- use_dual_stack: context.config.use_dualstack_endpoint,
440
- use_fips: context.config.use_fips_endpoint,
441
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
269
+ Aws::Kinesis::EndpointParameters.create(
270
+ context.config,
442
271
  stream_arn: context.params[:stream_arn],
443
272
  operation_type: "control",
444
- consumer_arn: nil,
445
- resource_arn: nil,
446
273
  )
447
274
  end
448
275
  end
449
276
 
450
277
  class SubscribeToShard
451
278
  def self.build(context)
452
- Aws::Kinesis::EndpointParameters.new(
453
- region: context.config.region,
454
- use_dual_stack: context.config.use_dualstack_endpoint,
455
- use_fips: context.config.use_fips_endpoint,
456
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
457
- stream_arn: nil,
279
+ Aws::Kinesis::EndpointParameters.create(
280
+ context.config,
458
281
  operation_type: "data",
459
282
  consumer_arn: context.params[:consumer_arn],
460
- resource_arn: nil,
461
283
  )
462
284
  end
463
285
  end
464
286
 
465
287
  class UpdateShardCount
466
288
  def self.build(context)
467
- Aws::Kinesis::EndpointParameters.new(
468
- region: context.config.region,
469
- use_dual_stack: context.config.use_dualstack_endpoint,
470
- use_fips: context.config.use_fips_endpoint,
471
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
289
+ Aws::Kinesis::EndpointParameters.create(
290
+ context.config,
472
291
  stream_arn: context.params[:stream_arn],
473
292
  operation_type: "control",
474
- consumer_arn: nil,
475
- resource_arn: nil,
476
293
  )
477
294
  end
478
295
  end
479
296
 
480
297
  class UpdateStreamMode
481
298
  def self.build(context)
482
- Aws::Kinesis::EndpointParameters.new(
483
- region: context.config.region,
484
- use_dual_stack: context.config.use_dualstack_endpoint,
485
- use_fips: context.config.use_fips_endpoint,
486
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
299
+ Aws::Kinesis::EndpointParameters.create(
300
+ context.config,
487
301
  stream_arn: context.params[:stream_arn],
488
302
  operation_type: "control",
489
- consumer_arn: nil,
490
- resource_arn: nil,
491
303
  )
492
304
  end
493
305
  end
494
306
 
307
+
308
+ def self.parameters_for_operation(context)
309
+ case context.operation_name
310
+ when :add_tags_to_stream
311
+ AddTagsToStream.build(context)
312
+ when :decrease_stream_retention_period
313
+ DecreaseStreamRetentionPeriod.build(context)
314
+ when :delete_resource_policy
315
+ DeleteResourcePolicy.build(context)
316
+ when :delete_stream
317
+ DeleteStream.build(context)
318
+ when :deregister_stream_consumer
319
+ DeregisterStreamConsumer.build(context)
320
+ when :describe_stream
321
+ DescribeStream.build(context)
322
+ when :describe_stream_consumer
323
+ DescribeStreamConsumer.build(context)
324
+ when :describe_stream_summary
325
+ DescribeStreamSummary.build(context)
326
+ when :disable_enhanced_monitoring
327
+ DisableEnhancedMonitoring.build(context)
328
+ when :enable_enhanced_monitoring
329
+ EnableEnhancedMonitoring.build(context)
330
+ when :get_records
331
+ GetRecords.build(context)
332
+ when :get_resource_policy
333
+ GetResourcePolicy.build(context)
334
+ when :get_shard_iterator
335
+ GetShardIterator.build(context)
336
+ when :increase_stream_retention_period
337
+ IncreaseStreamRetentionPeriod.build(context)
338
+ when :list_shards
339
+ ListShards.build(context)
340
+ when :list_stream_consumers
341
+ ListStreamConsumers.build(context)
342
+ when :list_tags_for_stream
343
+ ListTagsForStream.build(context)
344
+ when :merge_shards
345
+ MergeShards.build(context)
346
+ when :put_record
347
+ PutRecord.build(context)
348
+ when :put_records
349
+ PutRecords.build(context)
350
+ when :put_resource_policy
351
+ PutResourcePolicy.build(context)
352
+ when :register_stream_consumer
353
+ RegisterStreamConsumer.build(context)
354
+ when :remove_tags_from_stream
355
+ RemoveTagsFromStream.build(context)
356
+ when :split_shard
357
+ SplitShard.build(context)
358
+ when :start_stream_encryption
359
+ StartStreamEncryption.build(context)
360
+ when :stop_stream_encryption
361
+ StopStreamEncryption.build(context)
362
+ when :subscribe_to_shard
363
+ SubscribeToShard.build(context)
364
+ when :update_shard_count
365
+ UpdateShardCount.build(context)
366
+ when :update_stream_mode
367
+ UpdateStreamMode.build(context)
368
+ else
369
+ Aws::Kinesis::EndpointParameters.create(context.config)
370
+ end
371
+ end
495
372
  end
496
373
  end
@@ -27,7 +27,7 @@ The endpoint provider used to resolve endpoints. Any object that responds to
27
27
  class Handler < Seahorse::Client::Handler
28
28
  def call(context)
29
29
  unless context[:discovered_endpoint]
30
- params = parameters_for_operation(context)
30
+ params = Aws::Kinesis::Endpoints.parameters_for_operation(context)
31
31
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
32
 
33
33
  context.http_request.endpoint = endpoint.url
@@ -67,75 +67,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
67
67
  context.http_request.headers[key] = value
68
68
  end
69
69
  end
70
-
71
- def parameters_for_operation(context)
72
- case context.operation_name
73
- when :add_tags_to_stream
74
- Aws::Kinesis::Endpoints::AddTagsToStream.build(context)
75
- when :create_stream
76
- Aws::Kinesis::Endpoints::CreateStream.build(context)
77
- when :decrease_stream_retention_period
78
- Aws::Kinesis::Endpoints::DecreaseStreamRetentionPeriod.build(context)
79
- when :delete_resource_policy
80
- Aws::Kinesis::Endpoints::DeleteResourcePolicy.build(context)
81
- when :delete_stream
82
- Aws::Kinesis::Endpoints::DeleteStream.build(context)
83
- when :deregister_stream_consumer
84
- Aws::Kinesis::Endpoints::DeregisterStreamConsumer.build(context)
85
- when :describe_limits
86
- Aws::Kinesis::Endpoints::DescribeLimits.build(context)
87
- when :describe_stream
88
- Aws::Kinesis::Endpoints::DescribeStream.build(context)
89
- when :describe_stream_consumer
90
- Aws::Kinesis::Endpoints::DescribeStreamConsumer.build(context)
91
- when :describe_stream_summary
92
- Aws::Kinesis::Endpoints::DescribeStreamSummary.build(context)
93
- when :disable_enhanced_monitoring
94
- Aws::Kinesis::Endpoints::DisableEnhancedMonitoring.build(context)
95
- when :enable_enhanced_monitoring
96
- Aws::Kinesis::Endpoints::EnableEnhancedMonitoring.build(context)
97
- when :get_records
98
- Aws::Kinesis::Endpoints::GetRecords.build(context)
99
- when :get_resource_policy
100
- Aws::Kinesis::Endpoints::GetResourcePolicy.build(context)
101
- when :get_shard_iterator
102
- Aws::Kinesis::Endpoints::GetShardIterator.build(context)
103
- when :increase_stream_retention_period
104
- Aws::Kinesis::Endpoints::IncreaseStreamRetentionPeriod.build(context)
105
- when :list_shards
106
- Aws::Kinesis::Endpoints::ListShards.build(context)
107
- when :list_stream_consumers
108
- Aws::Kinesis::Endpoints::ListStreamConsumers.build(context)
109
- when :list_streams
110
- Aws::Kinesis::Endpoints::ListStreams.build(context)
111
- when :list_tags_for_stream
112
- Aws::Kinesis::Endpoints::ListTagsForStream.build(context)
113
- when :merge_shards
114
- Aws::Kinesis::Endpoints::MergeShards.build(context)
115
- when :put_record
116
- Aws::Kinesis::Endpoints::PutRecord.build(context)
117
- when :put_records
118
- Aws::Kinesis::Endpoints::PutRecords.build(context)
119
- when :put_resource_policy
120
- Aws::Kinesis::Endpoints::PutResourcePolicy.build(context)
121
- when :register_stream_consumer
122
- Aws::Kinesis::Endpoints::RegisterStreamConsumer.build(context)
123
- when :remove_tags_from_stream
124
- Aws::Kinesis::Endpoints::RemoveTagsFromStream.build(context)
125
- when :split_shard
126
- Aws::Kinesis::Endpoints::SplitShard.build(context)
127
- when :start_stream_encryption
128
- Aws::Kinesis::Endpoints::StartStreamEncryption.build(context)
129
- when :stop_stream_encryption
130
- Aws::Kinesis::Endpoints::StopStreamEncryption.build(context)
131
- when :subscribe_to_shard
132
- Aws::Kinesis::Endpoints::SubscribeToShard.build(context)
133
- when :update_shard_count
134
- Aws::Kinesis::Endpoints::UpdateShardCount.build(context)
135
- when :update_stream_mode
136
- Aws::Kinesis::Endpoints::UpdateStreamMode.build(context)
137
- end
138
- end
139
70
  end
140
71
 
141
72
  def add_handlers(handlers, _config)
@@ -177,12 +177,17 @@ module Aws::Kinesis
177
177
  # streams.
178
178
  # @return [Types::StreamModeDetails]
179
179
  #
180
+ # @!attribute [rw] tags
181
+ # A set of up to 10 key-value pairs to use to create the tags.
182
+ # @return [Hash<String,String>]
183
+ #
180
184
  # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/CreateStreamInput AWS API Documentation
181
185
  #
182
186
  class CreateStreamInput < Struct.new(
183
187
  :stream_name,
184
188
  :shard_count,
185
- :stream_mode_details)
189
+ :stream_mode_details,
190
+ :tags)
186
191
  SENSITIVE = []
187
192
  include Aws::Structure
188
193
  end
@@ -11,6 +11,8 @@
11
11
  require 'aws-sdk-core'
12
12
  require 'aws-sigv4'
13
13
 
14
+ Aws::Plugins::GlobalConfiguration.add_identifier(:kinesis)
15
+
14
16
  # This module provides support for Amazon Kinesis. This module is available in the
15
17
  # `aws-sdk-kinesis` gem.
16
18
  #
@@ -55,7 +57,7 @@ module Aws::Kinesis
55
57
  autoload :AsyncClient, 'aws-sdk-kinesis/async_client'
56
58
  autoload :EventStreams, 'aws-sdk-kinesis/event_streams'
57
59
 
58
- GEM_VERSION = '1.68.0'
60
+ GEM_VERSION = '1.70.0'
59
61
 
60
62
  end
61
63
 
data/sig/client.rbs CHANGED
@@ -93,7 +93,8 @@ module Aws
93
93
  ?shard_count: ::Integer,
94
94
  ?stream_mode_details: {
95
95
  stream_mode: ("PROVISIONED" | "ON_DEMAND")
96
- }
96
+ },
97
+ ?tags: Hash[::String, ::String]
97
98
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
98
99
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
99
100
 
data/sig/types.rbs CHANGED
@@ -48,6 +48,7 @@ module Aws::Kinesis
48
48
  attr_accessor stream_name: ::String
49
49
  attr_accessor shard_count: ::Integer
50
50
  attr_accessor stream_mode_details: Types::StreamModeDetails
51
+ attr_accessor tags: ::Hash[::String, ::String]
51
52
  SENSITIVE: []
52
53
  end
53
54
 
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.68.0
4
+ version: 1.70.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: 2024-09-23 00:00:00.000000000 Z
11
+ date: 2024-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.207.0
22
+ version: 3.210.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.207.0
32
+ version: 3.210.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement