aws-sdk-kinesis 1.96.0 → 1.97.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-kinesis/async_client.rb +5 -1
- data/lib/aws-sdk-kinesis/client.rb +135 -2
- data/lib/aws-sdk-kinesis/client_api.rb +36 -0
- data/lib/aws-sdk-kinesis/endpoint_parameters.rb +8 -0
- data/lib/aws-sdk-kinesis/endpoint_provider.rb +75 -0
- data/lib/aws-sdk-kinesis/endpoints.rb +34 -0
- data/lib/aws-sdk-kinesis/types.rb +205 -30
- data/lib/aws-sdk-kinesis.rb +1 -1
- data/sig/async_client.rbs +1 -0
- data/sig/client.rbs +65 -30
- data/sig/types.rbs +35 -0
- data/sig/waiters.rbs +4 -2
- metadata +1 -1
|
@@ -141,6 +141,7 @@ module Aws::Kinesis
|
|
|
141
141
|
StreamARN = Shapes::StringShape.new(name: 'StreamARN')
|
|
142
142
|
StreamDescription = Shapes::StructureShape.new(name: 'StreamDescription')
|
|
143
143
|
StreamDescriptionSummary = Shapes::StructureShape.new(name: 'StreamDescriptionSummary')
|
|
144
|
+
StreamId = Shapes::StringShape.new(name: 'StreamId')
|
|
144
145
|
StreamMode = Shapes::StringShape.new(name: 'StreamMode')
|
|
145
146
|
StreamModeDetails = Shapes::StructureShape.new(name: 'StreamModeDetails')
|
|
146
147
|
StreamName = Shapes::StringShape.new(name: 'StreamName')
|
|
@@ -178,6 +179,7 @@ module Aws::Kinesis
|
|
|
178
179
|
AddTagsToStreamInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName"))
|
|
179
180
|
AddTagsToStreamInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
|
|
180
181
|
AddTagsToStreamInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
182
|
+
AddTagsToStreamInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
181
183
|
AddTagsToStreamInput.struct_class = Types::AddTagsToStreamInput
|
|
182
184
|
|
|
183
185
|
ChildShard.add_member(:shard_id, Shapes::ShapeRef.new(shape: ShardId, required: true, location_name: "ShardId"))
|
|
@@ -213,19 +215,23 @@ module Aws::Kinesis
|
|
|
213
215
|
DecreaseStreamRetentionPeriodInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName"))
|
|
214
216
|
DecreaseStreamRetentionPeriodInput.add_member(:retention_period_hours, Shapes::ShapeRef.new(shape: RetentionPeriodHours, required: true, location_name: "RetentionPeriodHours"))
|
|
215
217
|
DecreaseStreamRetentionPeriodInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
218
|
+
DecreaseStreamRetentionPeriodInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
216
219
|
DecreaseStreamRetentionPeriodInput.struct_class = Types::DecreaseStreamRetentionPeriodInput
|
|
217
220
|
|
|
218
221
|
DeleteResourcePolicyInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceARN, required: true, location_name: "ResourceARN", metadata: {"contextParam" => {"name" => "ResourceARN"}}))
|
|
222
|
+
DeleteResourcePolicyInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
219
223
|
DeleteResourcePolicyInput.struct_class = Types::DeleteResourcePolicyInput
|
|
220
224
|
|
|
221
225
|
DeleteStreamInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName"))
|
|
222
226
|
DeleteStreamInput.add_member(:enforce_consumer_deletion, Shapes::ShapeRef.new(shape: BooleanObject, location_name: "EnforceConsumerDeletion"))
|
|
223
227
|
DeleteStreamInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
228
|
+
DeleteStreamInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
224
229
|
DeleteStreamInput.struct_class = Types::DeleteStreamInput
|
|
225
230
|
|
|
226
231
|
DeregisterStreamConsumerInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
227
232
|
DeregisterStreamConsumerInput.add_member(:consumer_name, Shapes::ShapeRef.new(shape: ConsumerName, location_name: "ConsumerName"))
|
|
228
233
|
DeregisterStreamConsumerInput.add_member(:consumer_arn, Shapes::ShapeRef.new(shape: ConsumerARN, location_name: "ConsumerARN", metadata: {"contextParam" => {"name" => "ConsumerARN"}}))
|
|
234
|
+
DeregisterStreamConsumerInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
229
235
|
DeregisterStreamConsumerInput.struct_class = Types::DeregisterStreamConsumerInput
|
|
230
236
|
|
|
231
237
|
DescribeAccountSettingsInput.struct_class = Types::DescribeAccountSettingsInput
|
|
@@ -244,6 +250,7 @@ module Aws::Kinesis
|
|
|
244
250
|
DescribeStreamConsumerInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
245
251
|
DescribeStreamConsumerInput.add_member(:consumer_name, Shapes::ShapeRef.new(shape: ConsumerName, location_name: "ConsumerName"))
|
|
246
252
|
DescribeStreamConsumerInput.add_member(:consumer_arn, Shapes::ShapeRef.new(shape: ConsumerARN, location_name: "ConsumerARN", metadata: {"contextParam" => {"name" => "ConsumerARN"}}))
|
|
253
|
+
DescribeStreamConsumerInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
247
254
|
DescribeStreamConsumerInput.struct_class = Types::DescribeStreamConsumerInput
|
|
248
255
|
|
|
249
256
|
DescribeStreamConsumerOutput.add_member(:consumer_description, Shapes::ShapeRef.new(shape: ConsumerDescription, required: true, location_name: "ConsumerDescription"))
|
|
@@ -253,6 +260,7 @@ module Aws::Kinesis
|
|
|
253
260
|
DescribeStreamInput.add_member(:limit, Shapes::ShapeRef.new(shape: DescribeStreamInputLimit, location_name: "Limit"))
|
|
254
261
|
DescribeStreamInput.add_member(:exclusive_start_shard_id, Shapes::ShapeRef.new(shape: ShardId, location_name: "ExclusiveStartShardId"))
|
|
255
262
|
DescribeStreamInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
263
|
+
DescribeStreamInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
256
264
|
DescribeStreamInput.struct_class = Types::DescribeStreamInput
|
|
257
265
|
|
|
258
266
|
DescribeStreamOutput.add_member(:stream_description, Shapes::ShapeRef.new(shape: StreamDescription, required: true, location_name: "StreamDescription"))
|
|
@@ -260,6 +268,7 @@ module Aws::Kinesis
|
|
|
260
268
|
|
|
261
269
|
DescribeStreamSummaryInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName"))
|
|
262
270
|
DescribeStreamSummaryInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
271
|
+
DescribeStreamSummaryInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
263
272
|
DescribeStreamSummaryInput.struct_class = Types::DescribeStreamSummaryInput
|
|
264
273
|
|
|
265
274
|
DescribeStreamSummaryOutput.add_member(:stream_description_summary, Shapes::ShapeRef.new(shape: StreamDescriptionSummary, required: true, location_name: "StreamDescriptionSummary"))
|
|
@@ -268,11 +277,13 @@ module Aws::Kinesis
|
|
|
268
277
|
DisableEnhancedMonitoringInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName"))
|
|
269
278
|
DisableEnhancedMonitoringInput.add_member(:shard_level_metrics, Shapes::ShapeRef.new(shape: MetricsNameList, required: true, location_name: "ShardLevelMetrics"))
|
|
270
279
|
DisableEnhancedMonitoringInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
280
|
+
DisableEnhancedMonitoringInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
271
281
|
DisableEnhancedMonitoringInput.struct_class = Types::DisableEnhancedMonitoringInput
|
|
272
282
|
|
|
273
283
|
EnableEnhancedMonitoringInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName"))
|
|
274
284
|
EnableEnhancedMonitoringInput.add_member(:shard_level_metrics, Shapes::ShapeRef.new(shape: MetricsNameList, required: true, location_name: "ShardLevelMetrics"))
|
|
275
285
|
EnableEnhancedMonitoringInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
286
|
+
EnableEnhancedMonitoringInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
276
287
|
EnableEnhancedMonitoringInput.struct_class = Types::EnableEnhancedMonitoringInput
|
|
277
288
|
|
|
278
289
|
EnhancedMetrics.add_member(:shard_level_metrics, Shapes::ShapeRef.new(shape: MetricsNameList, location_name: "ShardLevelMetrics"))
|
|
@@ -295,6 +306,7 @@ module Aws::Kinesis
|
|
|
295
306
|
GetRecordsInput.add_member(:shard_iterator, Shapes::ShapeRef.new(shape: ShardIterator, required: true, location_name: "ShardIterator"))
|
|
296
307
|
GetRecordsInput.add_member(:limit, Shapes::ShapeRef.new(shape: GetRecordsInputLimit, location_name: "Limit"))
|
|
297
308
|
GetRecordsInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
309
|
+
GetRecordsInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
298
310
|
GetRecordsInput.struct_class = Types::GetRecordsInput
|
|
299
311
|
|
|
300
312
|
GetRecordsOutput.add_member(:records, Shapes::ShapeRef.new(shape: RecordList, required: true, location_name: "Records"))
|
|
@@ -304,6 +316,7 @@ module Aws::Kinesis
|
|
|
304
316
|
GetRecordsOutput.struct_class = Types::GetRecordsOutput
|
|
305
317
|
|
|
306
318
|
GetResourcePolicyInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceARN, required: true, location_name: "ResourceARN", metadata: {"contextParam" => {"name" => "ResourceARN"}}))
|
|
319
|
+
GetResourcePolicyInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
307
320
|
GetResourcePolicyInput.struct_class = Types::GetResourcePolicyInput
|
|
308
321
|
|
|
309
322
|
GetResourcePolicyOutput.add_member(:policy, Shapes::ShapeRef.new(shape: Policy, required: true, location_name: "Policy"))
|
|
@@ -315,6 +328,7 @@ module Aws::Kinesis
|
|
|
315
328
|
GetShardIteratorInput.add_member(:starting_sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, location_name: "StartingSequenceNumber"))
|
|
316
329
|
GetShardIteratorInput.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
|
|
317
330
|
GetShardIteratorInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
331
|
+
GetShardIteratorInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
318
332
|
GetShardIteratorInput.struct_class = Types::GetShardIteratorInput
|
|
319
333
|
|
|
320
334
|
GetShardIteratorOutput.add_member(:shard_iterator, Shapes::ShapeRef.new(shape: ShardIterator, location_name: "ShardIterator"))
|
|
@@ -327,6 +341,7 @@ module Aws::Kinesis
|
|
|
327
341
|
IncreaseStreamRetentionPeriodInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName"))
|
|
328
342
|
IncreaseStreamRetentionPeriodInput.add_member(:retention_period_hours, Shapes::ShapeRef.new(shape: RetentionPeriodHours, required: true, location_name: "RetentionPeriodHours"))
|
|
329
343
|
IncreaseStreamRetentionPeriodInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
344
|
+
IncreaseStreamRetentionPeriodInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
330
345
|
IncreaseStreamRetentionPeriodInput.struct_class = Types::IncreaseStreamRetentionPeriodInput
|
|
331
346
|
|
|
332
347
|
InternalFailureException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
|
@@ -363,6 +378,7 @@ module Aws::Kinesis
|
|
|
363
378
|
ListShardsInput.add_member(:stream_creation_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StreamCreationTimestamp"))
|
|
364
379
|
ListShardsInput.add_member(:shard_filter, Shapes::ShapeRef.new(shape: ShardFilter, location_name: "ShardFilter"))
|
|
365
380
|
ListShardsInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
381
|
+
ListShardsInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
366
382
|
ListShardsInput.struct_class = Types::ListShardsInput
|
|
367
383
|
|
|
368
384
|
ListShardsOutput.add_member(:shards, Shapes::ShapeRef.new(shape: ShardList, location_name: "Shards"))
|
|
@@ -373,6 +389,7 @@ module Aws::Kinesis
|
|
|
373
389
|
ListStreamConsumersInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
|
374
390
|
ListStreamConsumersInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListStreamConsumersInputLimit, location_name: "MaxResults"))
|
|
375
391
|
ListStreamConsumersInput.add_member(:stream_creation_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StreamCreationTimestamp"))
|
|
392
|
+
ListStreamConsumersInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
376
393
|
ListStreamConsumersInput.struct_class = Types::ListStreamConsumersInput
|
|
377
394
|
|
|
378
395
|
ListStreamConsumersOutput.add_member(:consumers, Shapes::ShapeRef.new(shape: ConsumerList, location_name: "Consumers"))
|
|
@@ -391,6 +408,7 @@ module Aws::Kinesis
|
|
|
391
408
|
ListStreamsOutput.struct_class = Types::ListStreamsOutput
|
|
392
409
|
|
|
393
410
|
ListTagsForResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceARN, required: true, location_name: "ResourceARN", metadata: {"contextParam" => {"name" => "ResourceARN"}}))
|
|
411
|
+
ListTagsForResourceInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
394
412
|
ListTagsForResourceInput.struct_class = Types::ListTagsForResourceInput
|
|
395
413
|
|
|
396
414
|
ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
|
@@ -400,6 +418,7 @@ module Aws::Kinesis
|
|
|
400
418
|
ListTagsForStreamInput.add_member(:exclusive_start_tag_key, Shapes::ShapeRef.new(shape: TagKey, location_name: "ExclusiveStartTagKey"))
|
|
401
419
|
ListTagsForStreamInput.add_member(:limit, Shapes::ShapeRef.new(shape: ListTagsForStreamInputLimit, location_name: "Limit"))
|
|
402
420
|
ListTagsForStreamInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
421
|
+
ListTagsForStreamInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
403
422
|
ListTagsForStreamInput.struct_class = Types::ListTagsForStreamInput
|
|
404
423
|
|
|
405
424
|
ListTagsForStreamOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
|
|
@@ -410,6 +429,7 @@ module Aws::Kinesis
|
|
|
410
429
|
MergeShardsInput.add_member(:shard_to_merge, Shapes::ShapeRef.new(shape: ShardId, required: true, location_name: "ShardToMerge"))
|
|
411
430
|
MergeShardsInput.add_member(:adjacent_shard_to_merge, Shapes::ShapeRef.new(shape: ShardId, required: true, location_name: "AdjacentShardToMerge"))
|
|
412
431
|
MergeShardsInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
432
|
+
MergeShardsInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
413
433
|
MergeShardsInput.struct_class = Types::MergeShardsInput
|
|
414
434
|
|
|
415
435
|
MetricsNameList.member = Shapes::ShapeRef.new(shape: MetricsName)
|
|
@@ -432,6 +452,7 @@ module Aws::Kinesis
|
|
|
432
452
|
PutRecordInput.add_member(:explicit_hash_key, Shapes::ShapeRef.new(shape: HashKey, location_name: "ExplicitHashKey"))
|
|
433
453
|
PutRecordInput.add_member(:sequence_number_for_ordering, Shapes::ShapeRef.new(shape: SequenceNumber, location_name: "SequenceNumberForOrdering"))
|
|
434
454
|
PutRecordInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
455
|
+
PutRecordInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
435
456
|
PutRecordInput.struct_class = Types::PutRecordInput
|
|
436
457
|
|
|
437
458
|
PutRecordOutput.add_member(:shard_id, Shapes::ShapeRef.new(shape: ShardId, required: true, location_name: "ShardId"))
|
|
@@ -442,6 +463,7 @@ module Aws::Kinesis
|
|
|
442
463
|
PutRecordsInput.add_member(:records, Shapes::ShapeRef.new(shape: PutRecordsRequestEntryList, required: true, location_name: "Records"))
|
|
443
464
|
PutRecordsInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName"))
|
|
444
465
|
PutRecordsInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
466
|
+
PutRecordsInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
445
467
|
PutRecordsInput.struct_class = Types::PutRecordsInput
|
|
446
468
|
|
|
447
469
|
PutRecordsOutput.add_member(:failed_record_count, Shapes::ShapeRef.new(shape: PositiveIntegerObject, location_name: "FailedRecordCount"))
|
|
@@ -465,6 +487,7 @@ module Aws::Kinesis
|
|
|
465
487
|
PutRecordsResultEntryList.member = Shapes::ShapeRef.new(shape: PutRecordsResultEntry)
|
|
466
488
|
|
|
467
489
|
PutResourcePolicyInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceARN, required: true, location_name: "ResourceARN", metadata: {"contextParam" => {"name" => "ResourceARN"}}))
|
|
490
|
+
PutResourcePolicyInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
468
491
|
PutResourcePolicyInput.add_member(:policy, Shapes::ShapeRef.new(shape: Policy, required: true, location_name: "Policy"))
|
|
469
492
|
PutResourcePolicyInput.struct_class = Types::PutResourcePolicyInput
|
|
470
493
|
|
|
@@ -479,6 +502,7 @@ module Aws::Kinesis
|
|
|
479
502
|
|
|
480
503
|
RegisterStreamConsumerInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, required: true, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
481
504
|
RegisterStreamConsumerInput.add_member(:consumer_name, Shapes::ShapeRef.new(shape: ConsumerName, required: true, location_name: "ConsumerName"))
|
|
505
|
+
RegisterStreamConsumerInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
482
506
|
RegisterStreamConsumerInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
|
483
507
|
RegisterStreamConsumerInput.struct_class = Types::RegisterStreamConsumerInput
|
|
484
508
|
|
|
@@ -488,6 +512,7 @@ module Aws::Kinesis
|
|
|
488
512
|
RemoveTagsFromStreamInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName"))
|
|
489
513
|
RemoveTagsFromStreamInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
|
|
490
514
|
RemoveTagsFromStreamInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
515
|
+
RemoveTagsFromStreamInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
491
516
|
RemoveTagsFromStreamInput.struct_class = Types::RemoveTagsFromStreamInput
|
|
492
517
|
|
|
493
518
|
ResourceInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
|
@@ -520,12 +545,14 @@ module Aws::Kinesis
|
|
|
520
545
|
SplitShardInput.add_member(:shard_to_split, Shapes::ShapeRef.new(shape: ShardId, required: true, location_name: "ShardToSplit"))
|
|
521
546
|
SplitShardInput.add_member(:new_starting_hash_key, Shapes::ShapeRef.new(shape: HashKey, required: true, location_name: "NewStartingHashKey"))
|
|
522
547
|
SplitShardInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
548
|
+
SplitShardInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
523
549
|
SplitShardInput.struct_class = Types::SplitShardInput
|
|
524
550
|
|
|
525
551
|
StartStreamEncryptionInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName"))
|
|
526
552
|
StartStreamEncryptionInput.add_member(:encryption_type, Shapes::ShapeRef.new(shape: EncryptionType, required: true, location_name: "EncryptionType"))
|
|
527
553
|
StartStreamEncryptionInput.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyId, required: true, location_name: "KeyId"))
|
|
528
554
|
StartStreamEncryptionInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
555
|
+
StartStreamEncryptionInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
529
556
|
StartStreamEncryptionInput.struct_class = Types::StartStreamEncryptionInput
|
|
530
557
|
|
|
531
558
|
StartingPosition.add_member(:type, Shapes::ShapeRef.new(shape: ShardIteratorType, required: true, location_name: "Type"))
|
|
@@ -537,6 +564,7 @@ module Aws::Kinesis
|
|
|
537
564
|
StopStreamEncryptionInput.add_member(:encryption_type, Shapes::ShapeRef.new(shape: EncryptionType, required: true, location_name: "EncryptionType"))
|
|
538
565
|
StopStreamEncryptionInput.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyId, required: true, location_name: "KeyId"))
|
|
539
566
|
StopStreamEncryptionInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
567
|
+
StopStreamEncryptionInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
540
568
|
StopStreamEncryptionInput.struct_class = Types::StopStreamEncryptionInput
|
|
541
569
|
|
|
542
570
|
StreamDescription.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
|
|
@@ -554,6 +582,7 @@ module Aws::Kinesis
|
|
|
554
582
|
|
|
555
583
|
StreamDescriptionSummary.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
|
|
556
584
|
StreamDescriptionSummary.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, required: true, location_name: "StreamARN"))
|
|
585
|
+
StreamDescriptionSummary.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId"))
|
|
557
586
|
StreamDescriptionSummary.add_member(:stream_status, Shapes::ShapeRef.new(shape: StreamStatus, required: true, location_name: "StreamStatus"))
|
|
558
587
|
StreamDescriptionSummary.add_member(:stream_mode_details, Shapes::ShapeRef.new(shape: StreamModeDetails, location_name: "StreamModeDetails"))
|
|
559
588
|
StreamDescriptionSummary.add_member(:retention_period_hours, Shapes::ShapeRef.new(shape: RetentionPeriodHours, required: true, location_name: "RetentionPeriodHours"))
|
|
@@ -600,6 +629,7 @@ module Aws::Kinesis
|
|
|
600
629
|
SubscribeToShardEventStream.struct_class = Types::SubscribeToShardEventStream
|
|
601
630
|
|
|
602
631
|
SubscribeToShardInput.add_member(:consumer_arn, Shapes::ShapeRef.new(shape: ConsumerARN, required: true, location_name: "ConsumerARN", metadata: {"contextParam" => {"name" => "ConsumerARN"}}))
|
|
632
|
+
SubscribeToShardInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
603
633
|
SubscribeToShardInput.add_member(:shard_id, Shapes::ShapeRef.new(shape: ShardId, required: true, location_name: "ShardId"))
|
|
604
634
|
SubscribeToShardInput.add_member(:starting_position, Shapes::ShapeRef.new(shape: StartingPosition, required: true, location_name: "StartingPosition"))
|
|
605
635
|
SubscribeToShardInput.struct_class = Types::SubscribeToShardInput
|
|
@@ -620,10 +650,12 @@ module Aws::Kinesis
|
|
|
620
650
|
|
|
621
651
|
TagResourceInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
|
|
622
652
|
TagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceARN, required: true, location_name: "ResourceARN", metadata: {"contextParam" => {"name" => "ResourceARN"}}))
|
|
653
|
+
TagResourceInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
623
654
|
TagResourceInput.struct_class = Types::TagResourceInput
|
|
624
655
|
|
|
625
656
|
UntagResourceInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
|
|
626
657
|
UntagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceARN, required: true, location_name: "ResourceARN", metadata: {"contextParam" => {"name" => "ResourceARN"}}))
|
|
658
|
+
UntagResourceInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
627
659
|
UntagResourceInput.struct_class = Types::UntagResourceInput
|
|
628
660
|
|
|
629
661
|
UpdateAccountSettingsInput.add_member(:minimum_throughput_billing_commitment, Shapes::ShapeRef.new(shape: MinimumThroughputBillingCommitmentInput, required: true, location_name: "MinimumThroughputBillingCommitment"))
|
|
@@ -633,6 +665,7 @@ module Aws::Kinesis
|
|
|
633
665
|
UpdateAccountSettingsOutput.struct_class = Types::UpdateAccountSettingsOutput
|
|
634
666
|
|
|
635
667
|
UpdateMaxRecordSizeInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
668
|
+
UpdateMaxRecordSizeInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
636
669
|
UpdateMaxRecordSizeInput.add_member(:max_record_size_in_ki_b, Shapes::ShapeRef.new(shape: MaxRecordSizeInKiB, required: true, location_name: "MaxRecordSizeInKiB"))
|
|
637
670
|
UpdateMaxRecordSizeInput.struct_class = Types::UpdateMaxRecordSizeInput
|
|
638
671
|
|
|
@@ -640,6 +673,7 @@ module Aws::Kinesis
|
|
|
640
673
|
UpdateShardCountInput.add_member(:target_shard_count, Shapes::ShapeRef.new(shape: PositiveIntegerObject, required: true, location_name: "TargetShardCount"))
|
|
641
674
|
UpdateShardCountInput.add_member(:scaling_type, Shapes::ShapeRef.new(shape: ScalingType, required: true, location_name: "ScalingType"))
|
|
642
675
|
UpdateShardCountInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
676
|
+
UpdateShardCountInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
643
677
|
UpdateShardCountInput.struct_class = Types::UpdateShardCountInput
|
|
644
678
|
|
|
645
679
|
UpdateShardCountOutput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName"))
|
|
@@ -649,12 +683,14 @@ module Aws::Kinesis
|
|
|
649
683
|
UpdateShardCountOutput.struct_class = Types::UpdateShardCountOutput
|
|
650
684
|
|
|
651
685
|
UpdateStreamModeInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, required: true, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
686
|
+
UpdateStreamModeInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
652
687
|
UpdateStreamModeInput.add_member(:stream_mode_details, Shapes::ShapeRef.new(shape: StreamModeDetails, required: true, location_name: "StreamModeDetails"))
|
|
653
688
|
UpdateStreamModeInput.add_member(:warm_throughput_mi_bps, Shapes::ShapeRef.new(shape: NaturalIntegerObject, location_name: "WarmThroughputMiBps"))
|
|
654
689
|
UpdateStreamModeInput.struct_class = Types::UpdateStreamModeInput
|
|
655
690
|
|
|
656
691
|
UpdateStreamWarmThroughputInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN", metadata: {"contextParam" => {"name" => "StreamARN"}}))
|
|
657
692
|
UpdateStreamWarmThroughputInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName"))
|
|
693
|
+
UpdateStreamWarmThroughputInput.add_member(:stream_id, Shapes::ShapeRef.new(shape: StreamId, location_name: "StreamId", metadata: {"contextParam" => {"name" => "StreamId"}}))
|
|
658
694
|
UpdateStreamWarmThroughputInput.add_member(:warm_throughput_mi_bps, Shapes::ShapeRef.new(shape: NaturalIntegerObject, required: true, location_name: "WarmThroughputMiBps"))
|
|
659
695
|
UpdateStreamWarmThroughputInput.struct_class = Types::UpdateStreamWarmThroughputInput
|
|
660
696
|
|
|
@@ -30,6 +30,11 @@ module Aws::Kinesis
|
|
|
30
30
|
#
|
|
31
31
|
# @return [string]
|
|
32
32
|
#
|
|
33
|
+
# @!attribute stream_id
|
|
34
|
+
# The unique identifier of the Kinesis stream
|
|
35
|
+
#
|
|
36
|
+
# @return [string]
|
|
37
|
+
#
|
|
33
38
|
# @!attribute stream_arn
|
|
34
39
|
# The ARN of the Kinesis stream
|
|
35
40
|
#
|
|
@@ -55,6 +60,7 @@ module Aws::Kinesis
|
|
|
55
60
|
:use_dual_stack,
|
|
56
61
|
:use_fips,
|
|
57
62
|
:endpoint,
|
|
63
|
+
:stream_id,
|
|
58
64
|
:stream_arn,
|
|
59
65
|
:operation_type,
|
|
60
66
|
:consumer_arn,
|
|
@@ -69,6 +75,7 @@ module Aws::Kinesis
|
|
|
69
75
|
'UseDualStack' => :use_dual_stack,
|
|
70
76
|
'UseFIPS' => :use_fips,
|
|
71
77
|
'Endpoint' => :endpoint,
|
|
78
|
+
'StreamId' => :stream_id,
|
|
72
79
|
'StreamARN' => :stream_arn,
|
|
73
80
|
'OperationType' => :operation_type,
|
|
74
81
|
'ConsumerARN' => :consumer_arn,
|
|
@@ -83,6 +90,7 @@ module Aws::Kinesis
|
|
|
83
90
|
self[:use_fips] = options[:use_fips]
|
|
84
91
|
self[:use_fips] = false if self[:use_fips].nil?
|
|
85
92
|
self[:endpoint] = options[:endpoint]
|
|
93
|
+
self[:stream_id] = options[:stream_id]
|
|
86
94
|
self[:stream_arn] = options[:stream_arn]
|
|
87
95
|
self[:operation_type] = options[:operation_type]
|
|
88
96
|
self[:consumer_arn] = options[:consumer_arn]
|
|
@@ -10,6 +10,81 @@
|
|
|
10
10
|
module Aws::Kinesis
|
|
11
11
|
class EndpointProvider
|
|
12
12
|
def resolve_endpoint(parameters)
|
|
13
|
+
if Aws::Endpoints::Matchers.set?(parameters.stream_id) && (stream_id_delimiter_value = Aws::Endpoints::Matchers.substring(parameters.stream_id, 20, 21, false)) && Aws::Endpoints::Matchers.string_equals?(stream_id_delimiter_value, "-") && (stream_id_delimiter_reversed_value = Aws::Endpoints::Matchers.substring(parameters.stream_id, 3, 4, true)) && Aws::Endpoints::Matchers.string_equals?(stream_id_delimiter_reversed_value, "-") && (stream_id_prefix_value = Aws::Endpoints::Matchers.substring(parameters.stream_id, 0, 20, false)) && (stream_id_suffix_value = Aws::Endpoints::Matchers.substring(parameters.stream_id, 21, 24, false)) && 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 Aws::Endpoints::Matchers.set?(parameters.operation_type)
|
|
15
|
+
if Aws::Endpoints::Matchers.set?(parameters.endpoint) && (https_custom_endpoint_delimiter_value = Aws::Endpoints::Matchers.substring(parameters.endpoint, 15, 16, false)) && Aws::Endpoints::Matchers.string_equals?(https_custom_endpoint_delimiter_value, "-") && (https_endpoint_delimiter_value = Aws::Endpoints::Matchers.substring(parameters.endpoint, 20, 21, false)) && Aws::Endpoints::Matchers.string_equals?(https_endpoint_delimiter_value, ".") && (https_custom_endpoint_suffix_value = Aws::Endpoints::Matchers.substring(parameters.endpoint, 15, 20, false))
|
|
16
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
17
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
19
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{https_custom_endpoint_suffix_value}-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
20
|
+
end
|
|
21
|
+
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
|
22
|
+
end
|
|
23
|
+
raise ArgumentError, "FIPS is enabled, but this partition does not support FIPS."
|
|
24
|
+
end
|
|
25
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
26
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
27
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{https_custom_endpoint_suffix_value}-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
28
|
+
end
|
|
29
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
30
|
+
end
|
|
31
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
32
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
33
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{https_custom_endpoint_suffix_value}.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
34
|
+
end
|
|
35
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
36
|
+
end
|
|
37
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{https_custom_endpoint_suffix_value}.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
38
|
+
end
|
|
39
|
+
if Aws::Endpoints::Matchers.set?(parameters.endpoint) && (plain_custom_endpoint_delimiter_value = Aws::Endpoints::Matchers.substring(parameters.endpoint, 7, 8, false)) && Aws::Endpoints::Matchers.string_equals?(plain_custom_endpoint_delimiter_value, "-") && (plain_endpoint_delimiter_value = Aws::Endpoints::Matchers.substring(parameters.endpoint, 12, 13, false)) && Aws::Endpoints::Matchers.string_equals?(plain_endpoint_delimiter_value, ".") && (plain_custom_endpoint_suffix_value = Aws::Endpoints::Matchers.substring(parameters.endpoint, 7, 12, false))
|
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
42
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
43
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{plain_custom_endpoint_suffix_value}-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
44
|
+
end
|
|
45
|
+
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
|
46
|
+
end
|
|
47
|
+
raise ArgumentError, "FIPS is enabled, but this partition does not support FIPS."
|
|
48
|
+
end
|
|
49
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
50
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
51
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{plain_custom_endpoint_suffix_value}-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
52
|
+
end
|
|
53
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
54
|
+
end
|
|
55
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
56
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
57
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{plain_custom_endpoint_suffix_value}.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
58
|
+
end
|
|
59
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
60
|
+
end
|
|
61
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{plain_custom_endpoint_suffix_value}.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
62
|
+
end
|
|
63
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
64
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
65
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
66
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
67
|
+
end
|
|
68
|
+
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
|
69
|
+
end
|
|
70
|
+
raise ArgumentError, "FIPS is enabled, but this partition does not support FIPS."
|
|
71
|
+
end
|
|
72
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
73
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
74
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
75
|
+
end
|
|
76
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
77
|
+
end
|
|
78
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
79
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
80
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
81
|
+
end
|
|
82
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
83
|
+
end
|
|
84
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
85
|
+
end
|
|
86
|
+
raise ArgumentError, "Operation Type is not set. Please contact service team for resolution."
|
|
87
|
+
end
|
|
13
88
|
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
89
|
if (arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.stream_arn))
|
|
15
90
|
if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "accountId"), false)
|