@aws-sdk/client-kinesis 3.234.0 → 3.235.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.
@@ -1,1382 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- exports.ruleSet = {
5
- version: "1.3",
6
- parameters: {
7
- Region: {
8
- builtIn: "AWS::Region",
9
- required: true,
10
- documentation: "The AWS region used to dispatch the request.",
11
- type: "String",
12
- },
13
- UseDualStack: {
14
- builtIn: "AWS::UseDualStack",
15
- required: true,
16
- default: false,
17
- documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
18
- type: "Boolean",
19
- },
20
- UseFIPS: {
21
- builtIn: "AWS::UseFIPS",
22
- required: true,
23
- default: false,
24
- documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
25
- type: "Boolean",
26
- },
27
- Endpoint: {
28
- builtIn: "SDK::Endpoint",
29
- required: false,
30
- documentation: "Override the endpoint used to send this request",
31
- type: "String",
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
- },
48
- },
49
- rules: [
50
- {
51
- conditions: [
52
- {
53
- fn: "aws.partition",
54
- argv: [
55
- {
56
- ref: "Region",
57
- },
58
- ],
59
- assign: "PartitionResult",
60
- },
61
- ],
62
- type: "tree",
63
- rules: [
64
- {
65
- conditions: [
66
- {
67
- fn: "isSet",
68
- argv: [
69
- {
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
- ],
653
- },
654
- ],
655
- },
656
- ],
657
- type: "tree",
658
- rules: [
659
- {
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",
1126
- argv: [
1127
- {
1128
- ref: "Endpoint",
1129
- },
1130
- ],
1131
- },
1132
- ],
1133
- type: "tree",
1134
- rules: [
1135
- {
1136
- conditions: [
1137
- {
1138
- fn: "booleanEquals",
1139
- argv: [
1140
- {
1141
- ref: "UseFIPS",
1142
- },
1143
- true,
1144
- ],
1145
- },
1146
- ],
1147
- error: "Invalid Configuration: FIPS and custom endpoint are not supported",
1148
- type: "error",
1149
- },
1150
- {
1151
- conditions: [],
1152
- type: "tree",
1153
- rules: [
1154
- {
1155
- conditions: [
1156
- {
1157
- fn: "booleanEquals",
1158
- argv: [
1159
- {
1160
- ref: "UseDualStack",
1161
- },
1162
- true,
1163
- ],
1164
- },
1165
- ],
1166
- error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
1167
- type: "error",
1168
- },
1169
- {
1170
- conditions: [],
1171
- endpoint: {
1172
- url: {
1173
- ref: "Endpoint",
1174
- },
1175
- properties: {},
1176
- headers: {},
1177
- },
1178
- type: "endpoint",
1179
- },
1180
- ],
1181
- },
1182
- ],
1183
- },
1184
- {
1185
- conditions: [
1186
- {
1187
- fn: "booleanEquals",
1188
- argv: [
1189
- {
1190
- ref: "UseFIPS",
1191
- },
1192
- true,
1193
- ],
1194
- },
1195
- {
1196
- fn: "booleanEquals",
1197
- argv: [
1198
- {
1199
- ref: "UseDualStack",
1200
- },
1201
- true,
1202
- ],
1203
- },
1204
- ],
1205
- type: "tree",
1206
- rules: [
1207
- {
1208
- conditions: [
1209
- {
1210
- fn: "booleanEquals",
1211
- argv: [
1212
- true,
1213
- {
1214
- fn: "getAttr",
1215
- argv: [
1216
- {
1217
- ref: "PartitionResult",
1218
- },
1219
- "supportsFIPS",
1220
- ],
1221
- },
1222
- ],
1223
- },
1224
- {
1225
- fn: "booleanEquals",
1226
- argv: [
1227
- true,
1228
- {
1229
- fn: "getAttr",
1230
- argv: [
1231
- {
1232
- ref: "PartitionResult",
1233
- },
1234
- "supportsDualStack",
1235
- ],
1236
- },
1237
- ],
1238
- },
1239
- ],
1240
- type: "tree",
1241
- rules: [
1242
- {
1243
- conditions: [],
1244
- endpoint: {
1245
- url: "https://kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
1246
- properties: {},
1247
- headers: {},
1248
- },
1249
- type: "endpoint",
1250
- },
1251
- ],
1252
- },
1253
- {
1254
- conditions: [],
1255
- error: "FIPS and DualStack are enabled, but this partition does not support one or both",
1256
- type: "error",
1257
- },
1258
- ],
1259
- },
1260
- {
1261
- conditions: [
1262
- {
1263
- fn: "booleanEquals",
1264
- argv: [
1265
- {
1266
- ref: "UseFIPS",
1267
- },
1268
- true,
1269
- ],
1270
- },
1271
- ],
1272
- type: "tree",
1273
- rules: [
1274
- {
1275
- conditions: [
1276
- {
1277
- fn: "booleanEquals",
1278
- argv: [
1279
- true,
1280
- {
1281
- fn: "getAttr",
1282
- argv: [
1283
- {
1284
- ref: "PartitionResult",
1285
- },
1286
- "supportsFIPS",
1287
- ],
1288
- },
1289
- ],
1290
- },
1291
- ],
1292
- type: "tree",
1293
- rules: [
1294
- {
1295
- conditions: [],
1296
- type: "tree",
1297
- rules: [
1298
- {
1299
- conditions: [],
1300
- endpoint: {
1301
- url: "https://kinesis-fips.{Region}.{PartitionResult#dnsSuffix}",
1302
- properties: {},
1303
- headers: {},
1304
- },
1305
- type: "endpoint",
1306
- },
1307
- ],
1308
- },
1309
- ],
1310
- },
1311
- {
1312
- conditions: [],
1313
- error: "FIPS is enabled but this partition does not support FIPS",
1314
- type: "error",
1315
- },
1316
- ],
1317
- },
1318
- {
1319
- conditions: [
1320
- {
1321
- fn: "booleanEquals",
1322
- argv: [
1323
- {
1324
- ref: "UseDualStack",
1325
- },
1326
- true,
1327
- ],
1328
- },
1329
- ],
1330
- type: "tree",
1331
- rules: [
1332
- {
1333
- conditions: [
1334
- {
1335
- fn: "booleanEquals",
1336
- argv: [
1337
- true,
1338
- {
1339
- fn: "getAttr",
1340
- argv: [
1341
- {
1342
- ref: "PartitionResult",
1343
- },
1344
- "supportsDualStack",
1345
- ],
1346
- },
1347
- ],
1348
- },
1349
- ],
1350
- type: "tree",
1351
- rules: [
1352
- {
1353
- conditions: [],
1354
- endpoint: {
1355
- url: "https://kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}",
1356
- properties: {},
1357
- headers: {},
1358
- },
1359
- type: "endpoint",
1360
- },
1361
- ],
1362
- },
1363
- {
1364
- conditions: [],
1365
- error: "DualStack is enabled but this partition does not support DualStack",
1366
- type: "error",
1367
- },
1368
- ],
1369
- },
1370
- {
1371
- conditions: [],
1372
- endpoint: {
1373
- url: "https://kinesis.{Region}.{PartitionResult#dnsSuffix}",
1374
- properties: {},
1375
- headers: {},
1376
- },
1377
- type: "endpoint",
1378
- },
1379
- ],
1380
- },
1381
- ],
1382
- };
4
+ const D = "type", E = "rules", F = "conditions", G = "fn", H = "argv", I = "ref", J = "url", K = "properties", L = "headers";
5
+ const a = true, b = false, c = "String", d = "Boolean", e = "PartitionResult", f = "tree", g = "isSet", h = "aws.parseArn", i = "arn", j = "endpoint", k = "error", l = { [G]: "not", [H]: [{ [G]: g, [H]: [{ [I]: "Endpoint" }] }] }, m = { [I]: "Endpoint" }, n = { [G]: "not", [H]: [{ [G]: "stringEquals", [H]: [{ [G]: "getAttr", [H]: [{ [I]: e }, "name"] }, "aws-iso"] }] }, o = { [G]: "not", [H]: [{ [G]: "stringEquals", [H]: [{ [G]: "getAttr", [H]: [{ [I]: e }, "name"] }, "aws-iso-b"] }] }, p = {}, q = { [F]: [], [k]: "FIPS is enabled but this partition does not support FIPS", [D]: k }, r = { [F]: [], [k]: "DualStack is enabled but this partition does not support DualStack", [D]: k }, s = { [F]: [], [k]: "Invalid ARN: Failed to parse ARN.", [D]: k }, t = { [G]: "booleanEquals", [H]: [true, { [G]: "getAttr", [H]: [{ [I]: e }, "supportsFIPS"] }] }, u = { [G]: "booleanEquals", [H]: [true, { [G]: "getAttr", [H]: [{ [I]: e }, "supportsDualStack"] }] }, v = [{ [I]: "StreamARN" }], w = [{ [G]: g, [H]: [m] }], x = [{ [F]: [], [D]: f, [E]: [{ [F]: [{ [G]: "isValidHostLabel", [H]: [{ [G]: "getAttr", [H]: [{ [I]: i }, "accountId"] }, false] }], [D]: f, [E]: [{ [F]: [], [D]: f, [E]: [{ [F]: [{ [G]: "isValidHostLabel", [H]: [{ [G]: "getAttr", [H]: [{ [I]: i }, "region"] }, false] }], [D]: f, [E]: [{ [F]: [], [D]: f, [E]: [{ [F]: [{ [G]: "stringEquals", [H]: [{ [G]: "getAttr", [H]: [{ [I]: i }, "service"] }, "kinesis"] }], [D]: f, [E]: [{ [F]: [], [D]: f, [E]: [{ [F]: [{ [G]: "getAttr", [H]: [{ [I]: i }, "resourceId[0]"], "assign": "arnType" }, { [G]: "not", [H]: [{ [G]: "stringEquals", [H]: [{ [I]: "arnType" }, ""] }] }], [D]: f, [E]: [{ [F]: [], [D]: f, [E]: [{ [F]: [{ [G]: "stringEquals", [H]: [{ [I]: "arnType" }, "stream"] }], [D]: f, [E]: [{ [F]: [], [D]: f, [E]: [{ [F]: [{ [G]: "stringEquals", [H]: [{ [G]: "getAttr", [H]: [{ [I]: e }, "name"] }, "{arn#partition}"] }], [D]: f, [E]: [{ [F]: [], [D]: f, [E]: [{ [F]: [{ [G]: g, [H]: [{ [I]: "OperationType" }] }], [D]: f, [E]: [{ [F]: [], [D]: f, [E]: [{ [F]: [{ [G]: "booleanEquals", [H]: [{ [I]: "UseFIPS" }, true] }, { [G]: "booleanEquals", [H]: [{ [I]: "UseDualStack" }, true] }], [D]: f, [E]: [{ [F]: [{ [G]: "booleanEquals", [H]: [{ [G]: "getAttr", [H]: [{ [I]: e }, "supportsFIPS"] }, true] }], [D]: f, [E]: [{ [F]: [], [D]: f, [E]: [{ [F]: [{ [G]: "booleanEquals", [H]: [{ [G]: "getAttr", [H]: [{ [I]: e }, "supportsDualStack"] }, true] }], [D]: f, [E]: [{ [F]: [], [j]: { [J]: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [K]: {}, [L]: {} }, [D]: j }] }, { [F]: [], [k]: "DualStack is enabled, but this partition does not support DualStack.", [D]: k }] }] }, { [F]: [], [k]: "FIPS is enabled, but this partition does not support FIPS.", [D]: k }] }, { [F]: [{ [G]: "booleanEquals", [H]: [{ [I]: "UseFIPS" }, true] }], [D]: f, [E]: [{ [F]: [{ [G]: "booleanEquals", [H]: [{ [G]: "getAttr", [H]: [{ [I]: e }, "supportsFIPS"] }, true] }], [D]: f, [E]: [{ [F]: [], [j]: { [J]: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", [K]: {}, [L]: {} }, [D]: j }] }, q] }, { [F]: [{ [G]: "booleanEquals", [H]: [{ [I]: "UseDualStack" }, true] }], [D]: f, [E]: [{ [F]: [{ [G]: "booleanEquals", [H]: [{ [G]: "getAttr", [H]: [{ [I]: e }, "supportsDualStack"] }, true] }], [D]: f, [E]: [{ [F]: [], [j]: { [J]: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", [K]: {}, [L]: {} }, [D]: j }] }, r] }, { [F]: [], [j]: { [J]: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}", [K]: {}, [L]: {} }, [D]: j }] }] }, { [F]: [], [k]: "Operation Type is not set. Please contact service team for resolution.", [D]: k }] }] }, { [F]: [], [k]: "Partition: {arn#partition} from ARN doesn't match with partition name: {PartitionResult#name}.", [D]: k }] }] }, { [F]: [], [k]: "Invalid ARN: Kinesis ARNs don't support `{arnType}` arn types.", [D]: k }] }] }, { [F]: [], [k]: "Invalid ARN: No ARN type specified", [D]: k }] }] }, { [F]: [], [k]: "Invalid ARN: The ARN was not for the Kinesis service, found: {arn#service}.", [D]: k }] }] }, { [F]: [], [k]: "Invalid ARN: Invalid region.", [D]: k }] }] }, { [F]: [], [k]: "Invalid ARN: Invalid account id.", [D]: k }] }], y = [], z = [{ [G]: "booleanEquals", [H]: [{ [I]: "UseFIPS" }, true] }, { [G]: "booleanEquals", [H]: [{ [I]: "UseDualStack" }, true] }], A = [{ [G]: "booleanEquals", [H]: [{ [I]: "UseFIPS" }, true] }], B = [{ [G]: "booleanEquals", [H]: [{ [I]: "UseDualStack" }, true] }], C = [{ [I]: "ConsumerARN" }];
6
+ const _data = { version: "1.3", parameters: { Region: { builtIn: "AWS::Region", required: a, documentation: "The AWS region used to dispatch the request.", [D]: c }, UseDualStack: { builtIn: "AWS::UseDualStack", required: a, default: b, documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", [D]: d }, UseFIPS: { builtIn: "AWS::UseFIPS", required: a, default: b, documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", [D]: d }, Endpoint: { builtIn: "SDK::Endpoint", required: b, documentation: "Override the endpoint used to send this request", [D]: c }, StreamARN: { required: b, documentation: "The ARN of the Kinesis stream", [D]: c }, OperationType: { required: b, documentation: "Internal parameter to distinguish between Control/Data plane API and accordingly generate control/data plane endpoint", [D]: c }, ConsumerARN: { required: b, documentation: "The ARN of the Kinesis consumer", [D]: c } }, [E]: [{ [F]: [{ [G]: "aws.partition", [H]: [{ [I]: "Region" }], assign: e }], [D]: f, [E]: [{ [F]: [{ [G]: g, [H]: v }, l, n, o], [D]: f, [E]: [{ [F]: [{ [G]: h, [H]: v, assign: i }], [D]: f, [E]: x }, s] }, { [F]: [{ [G]: g, [H]: C }, l, n, o], [D]: f, [E]: [{ [F]: [{ [G]: h, [H]: C, assign: i }], [D]: f, [E]: x }, s] }, { [F]: w, [D]: f, [E]: [{ [F]: A, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [D]: k }, { [F]: y, [D]: f, [E]: [{ [F]: B, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [D]: k }, { [F]: y, endpoint: { [J]: m, [K]: p, [L]: p }, [D]: j }] }] }, { [F]: z, [D]: f, [E]: [{ [F]: [t, u], [D]: f, [E]: [{ [F]: y, endpoint: { [J]: "https://kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [K]: p, [L]: p }, [D]: j }] }, { [F]: y, error: "FIPS and DualStack are enabled, but this partition does not support one or both", [D]: k }] }, { [F]: A, [D]: f, [E]: [{ [F]: [t], [D]: f, [E]: [{ [F]: y, [D]: f, [E]: [{ [F]: y, endpoint: { [J]: "https://kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", [K]: p, [L]: p }, [D]: j }] }] }, q] }, { [F]: B, [D]: f, [E]: [{ [F]: [u], [D]: f, [E]: [{ [F]: y, endpoint: { [J]: "https://kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", [K]: p, [L]: p }, [D]: j }] }, r] }, { [F]: y, endpoint: { [J]: "https://kinesis.{Region}.{PartitionResult#dnsSuffix}", [K]: p, [L]: p }, [D]: j }] }] };
7
+ exports.ruleSet = _data;