@aws-sdk/client-kinesis 3.231.0 → 3.232.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.
Files changed (101) hide show
  1. package/dist-cjs/commands/AddTagsToStreamCommand.js +2 -0
  2. package/dist-cjs/commands/DecreaseStreamRetentionPeriodCommand.js +2 -0
  3. package/dist-cjs/commands/DeleteStreamCommand.js +2 -0
  4. package/dist-cjs/commands/DeregisterStreamConsumerCommand.js +3 -0
  5. package/dist-cjs/commands/DescribeStreamCommand.js +2 -0
  6. package/dist-cjs/commands/DescribeStreamConsumerCommand.js +3 -0
  7. package/dist-cjs/commands/DescribeStreamSummaryCommand.js +2 -0
  8. package/dist-cjs/commands/DisableEnhancedMonitoringCommand.js +2 -0
  9. package/dist-cjs/commands/EnableEnhancedMonitoringCommand.js +2 -0
  10. package/dist-cjs/commands/GetRecordsCommand.js +2 -0
  11. package/dist-cjs/commands/GetShardIteratorCommand.js +2 -0
  12. package/dist-cjs/commands/IncreaseStreamRetentionPeriodCommand.js +2 -0
  13. package/dist-cjs/commands/ListShardsCommand.js +2 -0
  14. package/dist-cjs/commands/ListStreamConsumersCommand.js +2 -0
  15. package/dist-cjs/commands/ListTagsForStreamCommand.js +2 -0
  16. package/dist-cjs/commands/MergeShardsCommand.js +2 -0
  17. package/dist-cjs/commands/PutRecordCommand.js +2 -0
  18. package/dist-cjs/commands/PutRecordsCommand.js +2 -0
  19. package/dist-cjs/commands/RegisterStreamConsumerCommand.js +2 -0
  20. package/dist-cjs/commands/RemoveTagsFromStreamCommand.js +2 -0
  21. package/dist-cjs/commands/SplitShardCommand.js +2 -0
  22. package/dist-cjs/commands/StartStreamEncryptionCommand.js +2 -0
  23. package/dist-cjs/commands/StopStreamEncryptionCommand.js +2 -0
  24. package/dist-cjs/commands/SubscribeToShardCommand.js +2 -0
  25. package/dist-cjs/commands/UpdateShardCountCommand.js +2 -0
  26. package/dist-cjs/commands/UpdateStreamModeCommand.js +2 -0
  27. package/dist-cjs/endpoint/ruleset.js +1069 -5
  28. package/dist-cjs/models/models_0.js +19 -2
  29. package/dist-cjs/pagination/ListStreamsPaginator.js +36 -0
  30. package/dist-cjs/pagination/index.js +1 -0
  31. package/dist-cjs/protocols/Aws_json1_1.js +143 -0
  32. package/dist-es/commands/AddTagsToStreamCommand.js +2 -0
  33. package/dist-es/commands/DecreaseStreamRetentionPeriodCommand.js +2 -0
  34. package/dist-es/commands/DeleteStreamCommand.js +2 -0
  35. package/dist-es/commands/DeregisterStreamConsumerCommand.js +3 -0
  36. package/dist-es/commands/DescribeStreamCommand.js +2 -0
  37. package/dist-es/commands/DescribeStreamConsumerCommand.js +3 -0
  38. package/dist-es/commands/DescribeStreamSummaryCommand.js +2 -0
  39. package/dist-es/commands/DisableEnhancedMonitoringCommand.js +2 -0
  40. package/dist-es/commands/EnableEnhancedMonitoringCommand.js +2 -0
  41. package/dist-es/commands/GetRecordsCommand.js +2 -0
  42. package/dist-es/commands/GetShardIteratorCommand.js +2 -0
  43. package/dist-es/commands/IncreaseStreamRetentionPeriodCommand.js +2 -0
  44. package/dist-es/commands/ListShardsCommand.js +2 -0
  45. package/dist-es/commands/ListStreamConsumersCommand.js +2 -0
  46. package/dist-es/commands/ListTagsForStreamCommand.js +2 -0
  47. package/dist-es/commands/MergeShardsCommand.js +2 -0
  48. package/dist-es/commands/PutRecordCommand.js +2 -0
  49. package/dist-es/commands/PutRecordsCommand.js +2 -0
  50. package/dist-es/commands/RegisterStreamConsumerCommand.js +2 -0
  51. package/dist-es/commands/RemoveTagsFromStreamCommand.js +2 -0
  52. package/dist-es/commands/SplitShardCommand.js +2 -0
  53. package/dist-es/commands/StartStreamEncryptionCommand.js +2 -0
  54. package/dist-es/commands/StopStreamEncryptionCommand.js +2 -0
  55. package/dist-es/commands/SubscribeToShardCommand.js +2 -0
  56. package/dist-es/commands/UpdateShardCountCommand.js +2 -0
  57. package/dist-es/commands/UpdateStreamModeCommand.js +2 -0
  58. package/dist-es/endpoint/ruleset.js +1069 -5
  59. package/dist-es/models/models_0.js +15 -0
  60. package/dist-es/pagination/ListStreamsPaginator.js +32 -0
  61. package/dist-es/pagination/index.js +1 -0
  62. package/dist-es/protocols/Aws_json1_1.js +144 -1
  63. package/dist-types/Kinesis.d.ts +213 -138
  64. package/dist-types/KinesisClient.d.ts +1 -1
  65. package/dist-types/commands/AddTagsToStreamCommand.d.ts +6 -2
  66. package/dist-types/commands/CreateStreamCommand.d.ts +19 -16
  67. package/dist-types/commands/DecreaseStreamRetentionPeriodCommand.d.ts +5 -1
  68. package/dist-types/commands/DeleteStreamCommand.d.ts +9 -6
  69. package/dist-types/commands/DeregisterStreamConsumerCommand.d.ts +1 -1
  70. package/dist-types/commands/DescribeLimitsCommand.d.ts +2 -2
  71. package/dist-types/commands/DescribeStreamCommand.d.ts +10 -7
  72. package/dist-types/commands/DescribeStreamConsumerCommand.d.ts +1 -1
  73. package/dist-types/commands/DescribeStreamSummaryCommand.d.ts +6 -2
  74. package/dist-types/commands/DisableEnhancedMonitoringCommand.d.ts +4 -0
  75. package/dist-types/commands/EnableEnhancedMonitoringCommand.d.ts +4 -0
  76. package/dist-types/commands/GetRecordsCommand.d.ts +11 -16
  77. package/dist-types/commands/GetShardIteratorCommand.d.ts +10 -6
  78. package/dist-types/commands/IncreaseStreamRetentionPeriodCommand.d.ts +5 -1
  79. package/dist-types/commands/ListShardsCommand.d.ts +7 -3
  80. package/dist-types/commands/ListStreamConsumersCommand.d.ts +1 -1
  81. package/dist-types/commands/ListStreamsCommand.d.ts +3 -3
  82. package/dist-types/commands/ListTagsForStreamCommand.d.ts +4 -0
  83. package/dist-types/commands/MergeShardsCommand.d.ts +13 -8
  84. package/dist-types/commands/PutRecordCommand.d.ts +14 -10
  85. package/dist-types/commands/PutRecordsCommand.d.ts +16 -12
  86. package/dist-types/commands/RegisterStreamConsumerCommand.d.ts +3 -3
  87. package/dist-types/commands/RemoveTagsFromStreamCommand.d.ts +6 -2
  88. package/dist-types/commands/SplitShardCommand.d.ts +15 -10
  89. package/dist-types/commands/StartStreamEncryptionCommand.d.ts +7 -3
  90. package/dist-types/commands/StopStreamEncryptionCommand.d.ts +7 -3
  91. package/dist-types/commands/SubscribeToShardCommand.d.ts +4 -4
  92. package/dist-types/commands/UpdateShardCountCommand.d.ts +19 -14
  93. package/dist-types/endpoint/EndpointParameters.d.ts +4 -1
  94. package/dist-types/models/models_0.d.ts +351 -214
  95. package/dist-types/pagination/ListStreamsPaginator.d.ts +4 -0
  96. package/dist-types/pagination/index.d.ts +1 -0
  97. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -1
  98. package/dist-types/ts3.4/models/models_0.d.ts +60 -18
  99. package/dist-types/ts3.4/pagination/ListStreamsPaginator.d.ts +11 -0
  100. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  101. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  export const ruleSet = {
2
- version: "1.0",
2
+ version: "1.3",
3
3
  parameters: {
4
4
  Region: {
5
5
  builtIn: "AWS::Region",
6
- required: false,
6
+ required: true,
7
7
  documentation: "The AWS region used to dispatch the request.",
8
8
  type: "String",
9
9
  },
@@ -27,6 +27,21 @@ export const ruleSet = {
27
27
  documentation: "Override the endpoint used to send this request",
28
28
  type: "String",
29
29
  },
30
+ StreamARN: {
31
+ required: false,
32
+ documentation: "The ARN of the Kinesis stream",
33
+ type: "String",
34
+ },
35
+ OperationType: {
36
+ required: false,
37
+ documentation: "Internal parameter to distinguish between Control/Data plane API and accordingly generate control/data plane endpoint",
38
+ type: "String",
39
+ },
40
+ ConsumerARN: {
41
+ required: false,
42
+ documentation: "The ARN of the Kinesis consumer",
43
+ type: "String",
44
+ },
30
45
  },
31
46
  rules: [
32
47
  {
@@ -49,18 +64,1067 @@ export const ruleSet = {
49
64
  fn: "isSet",
50
65
  argv: [
51
66
  {
52
- ref: "Endpoint",
67
+ ref: "StreamARN",
68
+ },
69
+ ],
70
+ },
71
+ {
72
+ fn: "not",
73
+ argv: [
74
+ {
75
+ fn: "isSet",
76
+ argv: [
77
+ {
78
+ ref: "Endpoint",
79
+ },
80
+ ],
81
+ },
82
+ ],
83
+ },
84
+ {
85
+ fn: "not",
86
+ argv: [
87
+ {
88
+ fn: "stringEquals",
89
+ argv: [
90
+ {
91
+ fn: "getAttr",
92
+ argv: [
93
+ {
94
+ ref: "PartitionResult",
95
+ },
96
+ "name",
97
+ ],
98
+ },
99
+ "aws-iso",
100
+ ],
101
+ },
102
+ ],
103
+ },
104
+ {
105
+ fn: "not",
106
+ argv: [
107
+ {
108
+ fn: "stringEquals",
109
+ argv: [
110
+ {
111
+ fn: "getAttr",
112
+ argv: [
113
+ {
114
+ ref: "PartitionResult",
115
+ },
116
+ "name",
117
+ ],
118
+ },
119
+ "aws-iso-b",
120
+ ],
121
+ },
122
+ ],
123
+ },
124
+ ],
125
+ type: "tree",
126
+ rules: [
127
+ {
128
+ conditions: [
129
+ {
130
+ fn: "aws.parseArn",
131
+ argv: [
132
+ {
133
+ ref: "StreamARN",
134
+ },
135
+ ],
136
+ assign: "arn",
137
+ },
138
+ ],
139
+ type: "tree",
140
+ rules: [
141
+ {
142
+ conditions: [],
143
+ type: "tree",
144
+ rules: [
145
+ {
146
+ conditions: [
147
+ {
148
+ fn: "isValidHostLabel",
149
+ argv: [
150
+ {
151
+ fn: "getAttr",
152
+ argv: [
153
+ {
154
+ ref: "arn",
155
+ },
156
+ "accountId",
157
+ ],
158
+ },
159
+ false,
160
+ ],
161
+ },
162
+ ],
163
+ type: "tree",
164
+ rules: [
165
+ {
166
+ conditions: [],
167
+ type: "tree",
168
+ rules: [
169
+ {
170
+ conditions: [
171
+ {
172
+ fn: "isValidHostLabel",
173
+ argv: [
174
+ {
175
+ fn: "getAttr",
176
+ argv: [
177
+ {
178
+ ref: "arn",
179
+ },
180
+ "region",
181
+ ],
182
+ },
183
+ false,
184
+ ],
185
+ },
186
+ ],
187
+ type: "tree",
188
+ rules: [
189
+ {
190
+ conditions: [],
191
+ type: "tree",
192
+ rules: [
193
+ {
194
+ conditions: [
195
+ {
196
+ fn: "stringEquals",
197
+ argv: [
198
+ {
199
+ fn: "getAttr",
200
+ argv: [
201
+ {
202
+ ref: "arn",
203
+ },
204
+ "service",
205
+ ],
206
+ },
207
+ "kinesis",
208
+ ],
209
+ },
210
+ ],
211
+ type: "tree",
212
+ rules: [
213
+ {
214
+ conditions: [],
215
+ type: "tree",
216
+ rules: [
217
+ {
218
+ conditions: [
219
+ {
220
+ fn: "getAttr",
221
+ argv: [
222
+ {
223
+ ref: "arn",
224
+ },
225
+ "resourceId[0]",
226
+ ],
227
+ assign: "arnType",
228
+ },
229
+ {
230
+ fn: "not",
231
+ argv: [
232
+ {
233
+ fn: "stringEquals",
234
+ argv: [
235
+ {
236
+ ref: "arnType",
237
+ },
238
+ "",
239
+ ],
240
+ },
241
+ ],
242
+ },
243
+ ],
244
+ type: "tree",
245
+ rules: [
246
+ {
247
+ conditions: [],
248
+ type: "tree",
249
+ rules: [
250
+ {
251
+ conditions: [
252
+ {
253
+ fn: "stringEquals",
254
+ argv: [
255
+ {
256
+ ref: "arnType",
257
+ },
258
+ "stream",
259
+ ],
260
+ },
261
+ ],
262
+ type: "tree",
263
+ rules: [
264
+ {
265
+ conditions: [],
266
+ type: "tree",
267
+ rules: [
268
+ {
269
+ conditions: [
270
+ {
271
+ fn: "stringEquals",
272
+ argv: [
273
+ {
274
+ fn: "getAttr",
275
+ argv: [
276
+ {
277
+ ref: "PartitionResult",
278
+ },
279
+ "name",
280
+ ],
281
+ },
282
+ "{arn#partition}",
283
+ ],
284
+ },
285
+ ],
286
+ type: "tree",
287
+ rules: [
288
+ {
289
+ conditions: [],
290
+ type: "tree",
291
+ rules: [
292
+ {
293
+ conditions: [
294
+ {
295
+ fn: "isSet",
296
+ argv: [
297
+ {
298
+ ref: "OperationType",
299
+ },
300
+ ],
301
+ },
302
+ ],
303
+ type: "tree",
304
+ rules: [
305
+ {
306
+ conditions: [],
307
+ type: "tree",
308
+ rules: [
309
+ {
310
+ conditions: [
311
+ {
312
+ fn: "booleanEquals",
313
+ argv: [
314
+ {
315
+ ref: "UseFIPS",
316
+ },
317
+ true,
318
+ ],
319
+ },
320
+ {
321
+ fn: "booleanEquals",
322
+ argv: [
323
+ {
324
+ ref: "UseDualStack",
325
+ },
326
+ true,
327
+ ],
328
+ },
329
+ ],
330
+ type: "tree",
331
+ rules: [
332
+ {
333
+ conditions: [
334
+ {
335
+ fn: "booleanEquals",
336
+ argv: [
337
+ {
338
+ fn: "getAttr",
339
+ argv: [
340
+ {
341
+ ref: "PartitionResult",
342
+ },
343
+ "supportsFIPS",
344
+ ],
345
+ },
346
+ true,
347
+ ],
348
+ },
349
+ ],
350
+ type: "tree",
351
+ rules: [
352
+ {
353
+ conditions: [],
354
+ type: "tree",
355
+ rules: [
356
+ {
357
+ conditions: [
358
+ {
359
+ fn: "booleanEquals",
360
+ argv: [
361
+ {
362
+ fn: "getAttr",
363
+ argv: [
364
+ {
365
+ ref: "PartitionResult",
366
+ },
367
+ "supportsDualStack",
368
+ ],
369
+ },
370
+ true,
371
+ ],
372
+ },
373
+ ],
374
+ type: "tree",
375
+ rules: [
376
+ {
377
+ conditions: [],
378
+ endpoint: {
379
+ url: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
380
+ properties: {},
381
+ headers: {},
382
+ },
383
+ type: "endpoint",
384
+ },
385
+ ],
386
+ },
387
+ {
388
+ conditions: [],
389
+ error: "DualStack is enabled, but this partition does not support DualStack.",
390
+ type: "error",
391
+ },
392
+ ],
393
+ },
394
+ ],
395
+ },
396
+ {
397
+ conditions: [],
398
+ error: "FIPS is enabled, but this partition does not support FIPS.",
399
+ type: "error",
400
+ },
401
+ ],
402
+ },
403
+ {
404
+ conditions: [
405
+ {
406
+ fn: "booleanEquals",
407
+ argv: [
408
+ {
409
+ ref: "UseFIPS",
410
+ },
411
+ true,
412
+ ],
413
+ },
414
+ ],
415
+ type: "tree",
416
+ rules: [
417
+ {
418
+ conditions: [
419
+ {
420
+ fn: "booleanEquals",
421
+ argv: [
422
+ {
423
+ fn: "getAttr",
424
+ argv: [
425
+ {
426
+ ref: "PartitionResult",
427
+ },
428
+ "supportsFIPS",
429
+ ],
430
+ },
431
+ true,
432
+ ],
433
+ },
434
+ ],
435
+ type: "tree",
436
+ rules: [
437
+ {
438
+ conditions: [],
439
+ endpoint: {
440
+ url: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}",
441
+ properties: {},
442
+ headers: {},
443
+ },
444
+ type: "endpoint",
445
+ },
446
+ ],
447
+ },
448
+ {
449
+ conditions: [],
450
+ error: "FIPS is enabled but this partition does not support FIPS",
451
+ type: "error",
452
+ },
453
+ ],
454
+ },
455
+ {
456
+ conditions: [
457
+ {
458
+ fn: "booleanEquals",
459
+ argv: [
460
+ {
461
+ ref: "UseDualStack",
462
+ },
463
+ true,
464
+ ],
465
+ },
466
+ ],
467
+ type: "tree",
468
+ rules: [
469
+ {
470
+ conditions: [
471
+ {
472
+ fn: "booleanEquals",
473
+ argv: [
474
+ {
475
+ fn: "getAttr",
476
+ argv: [
477
+ {
478
+ ref: "PartitionResult",
479
+ },
480
+ "supportsDualStack",
481
+ ],
482
+ },
483
+ true,
484
+ ],
485
+ },
486
+ ],
487
+ type: "tree",
488
+ rules: [
489
+ {
490
+ conditions: [],
491
+ endpoint: {
492
+ url: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}",
493
+ properties: {},
494
+ headers: {},
495
+ },
496
+ type: "endpoint",
497
+ },
498
+ ],
499
+ },
500
+ {
501
+ conditions: [],
502
+ error: "DualStack is enabled but this partition does not support DualStack",
503
+ type: "error",
504
+ },
505
+ ],
506
+ },
507
+ {
508
+ conditions: [],
509
+ endpoint: {
510
+ url: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}",
511
+ properties: {},
512
+ headers: {},
513
+ },
514
+ type: "endpoint",
515
+ },
516
+ ],
517
+ },
518
+ ],
519
+ },
520
+ {
521
+ conditions: [],
522
+ error: "Operation Type is not set. Please contact service team for resolution.",
523
+ type: "error",
524
+ },
525
+ ],
526
+ },
527
+ ],
528
+ },
529
+ {
530
+ conditions: [],
531
+ error: "Partition: {arn#partition} from ARN doesn't match with partition name: {PartitionResult#name}.",
532
+ type: "error",
533
+ },
534
+ ],
535
+ },
536
+ ],
537
+ },
538
+ {
539
+ conditions: [],
540
+ error: "Invalid ARN: Kinesis ARNs don't support `{arnType}` arn types.",
541
+ type: "error",
542
+ },
543
+ ],
544
+ },
545
+ ],
546
+ },
547
+ {
548
+ conditions: [],
549
+ error: "Invalid ARN: No ARN type specified",
550
+ type: "error",
551
+ },
552
+ ],
553
+ },
554
+ ],
555
+ },
556
+ {
557
+ conditions: [],
558
+ error: "Invalid ARN: The ARN was not for the Kinesis service, found: {arn#service}.",
559
+ type: "error",
560
+ },
561
+ ],
562
+ },
563
+ ],
564
+ },
565
+ {
566
+ conditions: [],
567
+ error: "Invalid ARN: Invalid region.",
568
+ type: "error",
569
+ },
570
+ ],
571
+ },
572
+ ],
573
+ },
574
+ {
575
+ conditions: [],
576
+ error: "Invalid ARN: Invalid account id.",
577
+ type: "error",
578
+ },
579
+ ],
580
+ },
581
+ ],
582
+ },
583
+ {
584
+ conditions: [],
585
+ error: "Invalid ARN: Failed to parse ARN.",
586
+ type: "error",
587
+ },
588
+ ],
589
+ },
590
+ {
591
+ conditions: [
592
+ {
593
+ fn: "isSet",
594
+ argv: [
595
+ {
596
+ ref: "ConsumerARN",
597
+ },
598
+ ],
599
+ },
600
+ {
601
+ fn: "not",
602
+ argv: [
603
+ {
604
+ fn: "isSet",
605
+ argv: [
606
+ {
607
+ ref: "Endpoint",
608
+ },
609
+ ],
610
+ },
611
+ ],
612
+ },
613
+ {
614
+ fn: "not",
615
+ argv: [
616
+ {
617
+ fn: "stringEquals",
618
+ argv: [
619
+ {
620
+ fn: "getAttr",
621
+ argv: [
622
+ {
623
+ ref: "PartitionResult",
624
+ },
625
+ "name",
626
+ ],
627
+ },
628
+ "aws-iso",
629
+ ],
630
+ },
631
+ ],
632
+ },
633
+ {
634
+ fn: "not",
635
+ argv: [
636
+ {
637
+ fn: "stringEquals",
638
+ argv: [
639
+ {
640
+ fn: "getAttr",
641
+ argv: [
642
+ {
643
+ ref: "PartitionResult",
644
+ },
645
+ "name",
646
+ ],
647
+ },
648
+ "aws-iso-b",
649
+ ],
53
650
  },
54
651
  ],
55
652
  },
653
+ ],
654
+ type: "tree",
655
+ rules: [
56
656
  {
57
- fn: "parseURL",
657
+ conditions: [
658
+ {
659
+ fn: "aws.parseArn",
660
+ argv: [
661
+ {
662
+ ref: "ConsumerARN",
663
+ },
664
+ ],
665
+ assign: "arn",
666
+ },
667
+ ],
668
+ type: "tree",
669
+ rules: [
670
+ {
671
+ conditions: [],
672
+ type: "tree",
673
+ rules: [
674
+ {
675
+ conditions: [
676
+ {
677
+ fn: "isValidHostLabel",
678
+ argv: [
679
+ {
680
+ fn: "getAttr",
681
+ argv: [
682
+ {
683
+ ref: "arn",
684
+ },
685
+ "accountId",
686
+ ],
687
+ },
688
+ false,
689
+ ],
690
+ },
691
+ ],
692
+ type: "tree",
693
+ rules: [
694
+ {
695
+ conditions: [],
696
+ type: "tree",
697
+ rules: [
698
+ {
699
+ conditions: [
700
+ {
701
+ fn: "isValidHostLabel",
702
+ argv: [
703
+ {
704
+ fn: "getAttr",
705
+ argv: [
706
+ {
707
+ ref: "arn",
708
+ },
709
+ "region",
710
+ ],
711
+ },
712
+ false,
713
+ ],
714
+ },
715
+ ],
716
+ type: "tree",
717
+ rules: [
718
+ {
719
+ conditions: [],
720
+ type: "tree",
721
+ rules: [
722
+ {
723
+ conditions: [
724
+ {
725
+ fn: "stringEquals",
726
+ argv: [
727
+ {
728
+ fn: "getAttr",
729
+ argv: [
730
+ {
731
+ ref: "arn",
732
+ },
733
+ "service",
734
+ ],
735
+ },
736
+ "kinesis",
737
+ ],
738
+ },
739
+ ],
740
+ type: "tree",
741
+ rules: [
742
+ {
743
+ conditions: [],
744
+ type: "tree",
745
+ rules: [
746
+ {
747
+ conditions: [
748
+ {
749
+ fn: "getAttr",
750
+ argv: [
751
+ {
752
+ ref: "arn",
753
+ },
754
+ "resourceId[0]",
755
+ ],
756
+ assign: "arnType",
757
+ },
758
+ {
759
+ fn: "not",
760
+ argv: [
761
+ {
762
+ fn: "stringEquals",
763
+ argv: [
764
+ {
765
+ ref: "arnType",
766
+ },
767
+ "",
768
+ ],
769
+ },
770
+ ],
771
+ },
772
+ ],
773
+ type: "tree",
774
+ rules: [
775
+ {
776
+ conditions: [],
777
+ type: "tree",
778
+ rules: [
779
+ {
780
+ conditions: [
781
+ {
782
+ fn: "stringEquals",
783
+ argv: [
784
+ {
785
+ ref: "arnType",
786
+ },
787
+ "stream",
788
+ ],
789
+ },
790
+ ],
791
+ type: "tree",
792
+ rules: [
793
+ {
794
+ conditions: [],
795
+ type: "tree",
796
+ rules: [
797
+ {
798
+ conditions: [
799
+ {
800
+ fn: "stringEquals",
801
+ argv: [
802
+ {
803
+ fn: "getAttr",
804
+ argv: [
805
+ {
806
+ ref: "PartitionResult",
807
+ },
808
+ "name",
809
+ ],
810
+ },
811
+ "{arn#partition}",
812
+ ],
813
+ },
814
+ ],
815
+ type: "tree",
816
+ rules: [
817
+ {
818
+ conditions: [],
819
+ type: "tree",
820
+ rules: [
821
+ {
822
+ conditions: [
823
+ {
824
+ fn: "isSet",
825
+ argv: [
826
+ {
827
+ ref: "OperationType",
828
+ },
829
+ ],
830
+ },
831
+ ],
832
+ type: "tree",
833
+ rules: [
834
+ {
835
+ conditions: [],
836
+ type: "tree",
837
+ rules: [
838
+ {
839
+ conditions: [
840
+ {
841
+ fn: "booleanEquals",
842
+ argv: [
843
+ {
844
+ ref: "UseFIPS",
845
+ },
846
+ true,
847
+ ],
848
+ },
849
+ {
850
+ fn: "booleanEquals",
851
+ argv: [
852
+ {
853
+ ref: "UseDualStack",
854
+ },
855
+ true,
856
+ ],
857
+ },
858
+ ],
859
+ type: "tree",
860
+ rules: [
861
+ {
862
+ conditions: [
863
+ {
864
+ fn: "booleanEquals",
865
+ argv: [
866
+ {
867
+ fn: "getAttr",
868
+ argv: [
869
+ {
870
+ ref: "PartitionResult",
871
+ },
872
+ "supportsFIPS",
873
+ ],
874
+ },
875
+ true,
876
+ ],
877
+ },
878
+ ],
879
+ type: "tree",
880
+ rules: [
881
+ {
882
+ conditions: [],
883
+ type: "tree",
884
+ rules: [
885
+ {
886
+ conditions: [
887
+ {
888
+ fn: "booleanEquals",
889
+ argv: [
890
+ {
891
+ fn: "getAttr",
892
+ argv: [
893
+ {
894
+ ref: "PartitionResult",
895
+ },
896
+ "supportsDualStack",
897
+ ],
898
+ },
899
+ true,
900
+ ],
901
+ },
902
+ ],
903
+ type: "tree",
904
+ rules: [
905
+ {
906
+ conditions: [],
907
+ endpoint: {
908
+ url: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
909
+ properties: {},
910
+ headers: {},
911
+ },
912
+ type: "endpoint",
913
+ },
914
+ ],
915
+ },
916
+ {
917
+ conditions: [],
918
+ error: "DualStack is enabled, but this partition does not support DualStack.",
919
+ type: "error",
920
+ },
921
+ ],
922
+ },
923
+ ],
924
+ },
925
+ {
926
+ conditions: [],
927
+ error: "FIPS is enabled, but this partition does not support FIPS.",
928
+ type: "error",
929
+ },
930
+ ],
931
+ },
932
+ {
933
+ conditions: [
934
+ {
935
+ fn: "booleanEquals",
936
+ argv: [
937
+ {
938
+ ref: "UseFIPS",
939
+ },
940
+ true,
941
+ ],
942
+ },
943
+ ],
944
+ type: "tree",
945
+ rules: [
946
+ {
947
+ conditions: [
948
+ {
949
+ fn: "booleanEquals",
950
+ argv: [
951
+ {
952
+ fn: "getAttr",
953
+ argv: [
954
+ {
955
+ ref: "PartitionResult",
956
+ },
957
+ "supportsFIPS",
958
+ ],
959
+ },
960
+ true,
961
+ ],
962
+ },
963
+ ],
964
+ type: "tree",
965
+ rules: [
966
+ {
967
+ conditions: [],
968
+ endpoint: {
969
+ url: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}",
970
+ properties: {},
971
+ headers: {},
972
+ },
973
+ type: "endpoint",
974
+ },
975
+ ],
976
+ },
977
+ {
978
+ conditions: [],
979
+ error: "FIPS is enabled but this partition does not support FIPS",
980
+ type: "error",
981
+ },
982
+ ],
983
+ },
984
+ {
985
+ conditions: [
986
+ {
987
+ fn: "booleanEquals",
988
+ argv: [
989
+ {
990
+ ref: "UseDualStack",
991
+ },
992
+ true,
993
+ ],
994
+ },
995
+ ],
996
+ type: "tree",
997
+ rules: [
998
+ {
999
+ conditions: [
1000
+ {
1001
+ fn: "booleanEquals",
1002
+ argv: [
1003
+ {
1004
+ fn: "getAttr",
1005
+ argv: [
1006
+ {
1007
+ ref: "PartitionResult",
1008
+ },
1009
+ "supportsDualStack",
1010
+ ],
1011
+ },
1012
+ true,
1013
+ ],
1014
+ },
1015
+ ],
1016
+ type: "tree",
1017
+ rules: [
1018
+ {
1019
+ conditions: [],
1020
+ endpoint: {
1021
+ url: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}",
1022
+ properties: {},
1023
+ headers: {},
1024
+ },
1025
+ type: "endpoint",
1026
+ },
1027
+ ],
1028
+ },
1029
+ {
1030
+ conditions: [],
1031
+ error: "DualStack is enabled but this partition does not support DualStack",
1032
+ type: "error",
1033
+ },
1034
+ ],
1035
+ },
1036
+ {
1037
+ conditions: [],
1038
+ endpoint: {
1039
+ url: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}",
1040
+ properties: {},
1041
+ headers: {},
1042
+ },
1043
+ type: "endpoint",
1044
+ },
1045
+ ],
1046
+ },
1047
+ ],
1048
+ },
1049
+ {
1050
+ conditions: [],
1051
+ error: "Operation Type is not set. Please contact service team for resolution.",
1052
+ type: "error",
1053
+ },
1054
+ ],
1055
+ },
1056
+ ],
1057
+ },
1058
+ {
1059
+ conditions: [],
1060
+ error: "Partition: {arn#partition} from ARN doesn't match with partition name: {PartitionResult#name}.",
1061
+ type: "error",
1062
+ },
1063
+ ],
1064
+ },
1065
+ ],
1066
+ },
1067
+ {
1068
+ conditions: [],
1069
+ error: "Invalid ARN: Kinesis ARNs don't support `{arnType}` arn types.",
1070
+ type: "error",
1071
+ },
1072
+ ],
1073
+ },
1074
+ ],
1075
+ },
1076
+ {
1077
+ conditions: [],
1078
+ error: "Invalid ARN: No ARN type specified",
1079
+ type: "error",
1080
+ },
1081
+ ],
1082
+ },
1083
+ ],
1084
+ },
1085
+ {
1086
+ conditions: [],
1087
+ error: "Invalid ARN: The ARN was not for the Kinesis service, found: {arn#service}.",
1088
+ type: "error",
1089
+ },
1090
+ ],
1091
+ },
1092
+ ],
1093
+ },
1094
+ {
1095
+ conditions: [],
1096
+ error: "Invalid ARN: Invalid region.",
1097
+ type: "error",
1098
+ },
1099
+ ],
1100
+ },
1101
+ ],
1102
+ },
1103
+ {
1104
+ conditions: [],
1105
+ error: "Invalid ARN: Invalid account id.",
1106
+ type: "error",
1107
+ },
1108
+ ],
1109
+ },
1110
+ ],
1111
+ },
1112
+ {
1113
+ conditions: [],
1114
+ error: "Invalid ARN: Failed to parse ARN.",
1115
+ type: "error",
1116
+ },
1117
+ ],
1118
+ },
1119
+ {
1120
+ conditions: [
1121
+ {
1122
+ fn: "isSet",
58
1123
  argv: [
59
1124
  {
60
1125
  ref: "Endpoint",
61
1126
  },
62
1127
  ],
63
- assign: "url",
64
1128
  },
65
1129
  ],
66
1130
  type: "tree",