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