@aws-cdk/region-info 2.1.0 → 2.5.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.
package/.jsii CHANGED
@@ -12,7 +12,7 @@
12
12
  "stability": "stable"
13
13
  },
14
14
  "homepage": "https://github.com/aws/aws-cdk",
15
- "jsiiVersion": "1.46.0 (build cd08c55)",
15
+ "jsiiVersion": "1.50.0 (build d1830a4)",
16
16
  "keywords": [
17
17
  "aws",
18
18
  "cdk"
@@ -72,7 +72,7 @@
72
72
  "kind": "class",
73
73
  "locationInModule": {
74
74
  "filename": "lib/default.ts",
75
- "line": 4
75
+ "line": 6
76
76
  },
77
77
  "methods": [
78
78
  {
@@ -83,7 +83,7 @@
83
83
  },
84
84
  "locationInModule": {
85
85
  "filename": "lib/default.ts",
86
- "line": 23
86
+ "line": 25
87
87
  },
88
88
  "name": "servicePrincipal",
89
89
  "parameters": [
@@ -91,7 +91,7 @@
91
91
  "docs": {
92
92
  "summary": "the name of the service (s3, s3.amazonaws.com, ...)."
93
93
  },
94
- "name": "service",
94
+ "name": "serviceFqn",
95
95
  "type": {
96
96
  "primitive": "string"
97
97
  }
@@ -107,7 +107,7 @@
107
107
  },
108
108
  {
109
109
  "docs": {
110
- "summary": "the URL suffix for the partition in which the region is located."
110
+ "summary": "deprecated and ignored."
111
111
  },
112
112
  "name": "urlSuffix",
113
113
  "type": {
@@ -134,7 +134,7 @@
134
134
  "immutable": true,
135
135
  "locationInModule": {
136
136
  "filename": "lib/default.ts",
137
- "line": 11
137
+ "line": 13
138
138
  },
139
139
  "name": "VPC_ENDPOINT_SERVICE_NAME_PREFIX",
140
140
  "static": true,
@@ -148,6 +148,9 @@
148
148
  "@aws-cdk/region-info.Fact": {
149
149
  "assembly": "@aws-cdk/region-info",
150
150
  "docs": {
151
+ "custom": {
152
+ "exampleMetadata": "infused"
153
+ },
151
154
  "example": "import * as regionInfo from '@aws-cdk/region-info';\n\nconst codeDeployPrincipal = regionInfo.Fact.find('us-east-1', regionInfo.FactName.servicePrincipal('codedeploy.amazonaws.com'));\n// => codedeploy.us-east-1.amazonaws.com\n\nconst staticWebsite = regionInfo.Fact.find('ap-northeast-1', regionInfo.FactName.S3_STATIC_WEBSITE_ENDPOINT);\n// => s3-website-ap-northeast-1.amazonaws.com",
152
155
  "stability": "stable",
153
156
  "summary": "A database of regional information."
@@ -156,7 +159,7 @@
156
159
  "kind": "class",
157
160
  "locationInModule": {
158
161
  "filename": "lib/fact.ts",
159
- "line": 4
162
+ "line": 6
160
163
  },
161
164
  "methods": [
162
165
  {
@@ -167,7 +170,7 @@
167
170
  },
168
171
  "locationInModule": {
169
172
  "filename": "lib/fact.ts",
170
- "line": 21
173
+ "line": 23
171
174
  },
172
175
  "name": "find",
173
176
  "parameters": [
@@ -205,7 +208,7 @@
205
208
  },
206
209
  "locationInModule": {
207
210
  "filename": "lib/fact.ts",
208
- "line": 49
211
+ "line": 51
209
212
  },
210
213
  "name": "register",
211
214
  "parameters": [
@@ -239,7 +242,7 @@
239
242
  },
240
243
  "locationInModule": {
241
244
  "filename": "lib/fact.ts",
242
- "line": 33
245
+ "line": 35
243
246
  },
244
247
  "name": "requireFact",
245
248
  "parameters": [
@@ -276,7 +279,7 @@
276
279
  },
277
280
  "locationInModule": {
278
281
  "filename": "lib/fact.ts",
279
- "line": 66
282
+ "line": 68
280
283
  },
281
284
  "name": "unregister",
282
285
  "parameters": [
@@ -322,7 +325,7 @@
322
325
  "immutable": true,
323
326
  "locationInModule": {
324
327
  "filename": "lib/fact.ts",
325
- "line": 9
328
+ "line": 11
326
329
  },
327
330
  "name": "regions",
328
331
  "static": true,
@@ -341,6 +344,9 @@
341
344
  "@aws-cdk/region-info.FactName": {
342
345
  "assembly": "@aws-cdk/region-info",
343
346
  "docs": {
347
+ "custom": {
348
+ "exampleMetadata": "infused"
349
+ },
344
350
  "example": "import * as regionInfo from '@aws-cdk/region-info';\n\nconst codeDeployPrincipal = regionInfo.Fact.find('us-east-1', regionInfo.FactName.servicePrincipal('codedeploy.amazonaws.com'));\n// => codedeploy.us-east-1.amazonaws.com\n\nconst staticWebsite = regionInfo.Fact.find('ap-northeast-1', regionInfo.FactName.S3_STATIC_WEBSITE_ENDPOINT);\n// => s3-website-ap-northeast-1.amazonaws.com",
345
351
  "stability": "stable",
346
352
  "summary": "All standardized fact names."
@@ -354,7 +360,7 @@
354
360
  "kind": "class",
355
361
  "locationInModule": {
356
362
  "filename": "lib/fact.ts",
357
- "line": 104
363
+ "line": 106
358
364
  },
359
365
  "methods": [
360
366
  {
@@ -364,7 +370,7 @@
364
370
  },
365
371
  "locationInModule": {
366
372
  "filename": "lib/fact.ts",
367
- "line": 168
373
+ "line": 170
368
374
  },
369
375
  "name": "cloudwatchLambdaInsightsVersion",
370
376
  "parameters": [
@@ -373,6 +379,13 @@
373
379
  "type": {
374
380
  "primitive": "string"
375
381
  }
382
+ },
383
+ {
384
+ "name": "arch",
385
+ "optional": true,
386
+ "type": {
387
+ "primitive": "string"
388
+ }
376
389
  }
377
390
  ],
378
391
  "returns": {
@@ -389,7 +402,7 @@
389
402
  },
390
403
  "locationInModule": {
391
404
  "filename": "lib/fact.ts",
392
- "line": 179
405
+ "line": 184
393
406
  },
394
407
  "name": "servicePrincipal",
395
408
  "parameters": [
@@ -422,7 +435,7 @@
422
435
  "immutable": true,
423
436
  "locationInModule": {
424
437
  "filename": "lib/fact.ts",
425
- "line": 158
438
+ "line": 160
426
439
  },
427
440
  "name": "APPMESH_ECR_ACCOUNT",
428
441
  "static": true,
@@ -440,7 +453,7 @@
440
453
  "immutable": true,
441
454
  "locationInModule": {
442
455
  "filename": "lib/fact.ts",
443
- "line": 119
456
+ "line": 121
444
457
  },
445
458
  "name": "CDK_METADATA_RESOURCE_AVAILABLE",
446
459
  "static": true,
@@ -457,7 +470,7 @@
457
470
  "immutable": true,
458
471
  "locationInModule": {
459
472
  "filename": "lib/fact.ts",
460
- "line": 152
473
+ "line": 154
461
474
  },
462
475
  "name": "DLC_REPOSITORY_ACCOUNT",
463
476
  "static": true,
@@ -474,7 +487,7 @@
474
487
  "immutable": true,
475
488
  "locationInModule": {
476
489
  "filename": "lib/fact.ts",
477
- "line": 113
490
+ "line": 115
478
491
  },
479
492
  "name": "DOMAIN_SUFFIX",
480
493
  "static": true,
@@ -491,7 +504,7 @@
491
504
  "immutable": true,
492
505
  "locationInModule": {
493
506
  "filename": "lib/fact.ts",
494
- "line": 134
507
+ "line": 136
495
508
  },
496
509
  "name": "EBS_ENV_ENDPOINT_HOSTED_ZONE_ID",
497
510
  "static": true,
@@ -508,7 +521,7 @@
508
521
  "immutable": true,
509
522
  "locationInModule": {
510
523
  "filename": "lib/fact.ts",
511
- "line": 146
524
+ "line": 148
512
525
  },
513
526
  "name": "ELBV2_ACCOUNT",
514
527
  "static": true,
@@ -525,7 +538,7 @@
525
538
  "immutable": true,
526
539
  "locationInModule": {
527
540
  "filename": "lib/fact.ts",
528
- "line": 163
541
+ "line": 165
529
542
  },
530
543
  "name": "FIREHOSE_CIDR_BLOCK",
531
544
  "static": true,
@@ -542,7 +555,7 @@
542
555
  "immutable": true,
543
556
  "locationInModule": {
544
557
  "filename": "lib/fact.ts",
545
- "line": 108
558
+ "line": 110
546
559
  },
547
560
  "name": "PARTITION",
548
561
  "static": true,
@@ -559,7 +572,7 @@
559
572
  "immutable": true,
560
573
  "locationInModule": {
561
574
  "filename": "lib/fact.ts",
562
- "line": 124
575
+ "line": 126
563
576
  },
564
577
  "name": "S3_STATIC_WEBSITE_ENDPOINT",
565
578
  "static": true,
@@ -576,7 +589,7 @@
576
589
  "immutable": true,
577
590
  "locationInModule": {
578
591
  "filename": "lib/fact.ts",
579
- "line": 129
592
+ "line": 131
580
593
  },
581
594
  "name": "S3_STATIC_WEBSITE_ZONE_53_HOSTED_ZONE_ID",
582
595
  "static": true,
@@ -593,7 +606,7 @@
593
606
  "immutable": true,
594
607
  "locationInModule": {
595
608
  "filename": "lib/fact.ts",
596
- "line": 141
609
+ "line": 143
597
610
  },
598
611
  "name": "VPC_ENDPOINT_SERVICE_NAME_PREFIX",
599
612
  "static": true,
@@ -614,7 +627,7 @@
614
627
  "kind": "interface",
615
628
  "locationInModule": {
616
629
  "filename": "lib/fact.ts",
617
- "line": 84
630
+ "line": 86
618
631
  },
619
632
  "name": "IFact",
620
633
  "properties": [
@@ -628,7 +641,7 @@
628
641
  "immutable": true,
629
642
  "locationInModule": {
630
643
  "filename": "lib/fact.ts",
631
- "line": 93
644
+ "line": 95
632
645
  },
633
646
  "name": "name",
634
647
  "type": {
@@ -644,7 +657,7 @@
644
657
  "immutable": true,
645
658
  "locationInModule": {
646
659
  "filename": "lib/fact.ts",
647
- "line": 88
660
+ "line": 90
648
661
  },
649
662
  "name": "region",
650
663
  "type": {
@@ -660,7 +673,7 @@
660
673
  "immutable": true,
661
674
  "locationInModule": {
662
675
  "filename": "lib/fact.ts",
663
- "line": 98
676
+ "line": 100
664
677
  },
665
678
  "name": "value",
666
679
  "optional": true,
@@ -674,6 +687,9 @@
674
687
  "@aws-cdk/region-info.RegionInfo": {
675
688
  "assembly": "@aws-cdk/region-info",
676
689
  "docs": {
690
+ "custom": {
691
+ "exampleMetadata": "infused"
692
+ },
677
693
  "example": "import { RegionInfo } from '@aws-cdk/region-info';\n\n// Get the information for \"eu-west-1\":\nconst region = RegionInfo.get('eu-west-1');\n\n// Access attributes:\nregion.s3StaticWebsiteEndpoint; // s3-website-eu-west-1.amazonaws.com\nregion.servicePrincipal('logs.amazonaws.com'); // logs.eu-west-1.amazonaws.com",
678
694
  "stability": "stable",
679
695
  "summary": "Information pertaining to an AWS region."
@@ -682,7 +698,7 @@
682
698
  "kind": "class",
683
699
  "locationInModule": {
684
700
  "filename": "lib/region-info.ts",
685
- "line": 6
701
+ "line": 7
686
702
  },
687
703
  "methods": [
688
704
  {
@@ -692,7 +708,7 @@
692
708
  },
693
709
  "locationInModule": {
694
710
  "filename": "lib/region-info.ts",
695
- "line": 39
711
+ "line": 60
696
712
  },
697
713
  "name": "get",
698
714
  "parameters": [
@@ -713,6 +729,56 @@
713
729
  },
714
730
  "static": true
715
731
  },
732
+ {
733
+ "docs": {
734
+ "returns": "a mapping with AWS region codes as the keys,\nand the fact in the given region as the value for that key",
735
+ "stability": "stable",
736
+ "summary": "Retrieves a collection of all fact values for all regions, limited to some partitions."
737
+ },
738
+ "locationInModule": {
739
+ "filename": "lib/region-info.ts",
740
+ "line": 45
741
+ },
742
+ "name": "limitedRegionMap",
743
+ "parameters": [
744
+ {
745
+ "docs": {
746
+ "remarks": "For a list of common fact names, see the FactName class",
747
+ "summary": "the name of the fact to retrieve values for."
748
+ },
749
+ "name": "factName",
750
+ "type": {
751
+ "primitive": "string"
752
+ }
753
+ },
754
+ {
755
+ "docs": {
756
+ "remarks": "Defaults\nto `['aws', 'aws-cn']`.",
757
+ "summary": "list of partitions to retrieve facts for."
758
+ },
759
+ "name": "partitions",
760
+ "type": {
761
+ "collection": {
762
+ "elementtype": {
763
+ "primitive": "string"
764
+ },
765
+ "kind": "array"
766
+ }
767
+ }
768
+ }
769
+ ],
770
+ "returns": {
771
+ "type": {
772
+ "collection": {
773
+ "elementtype": {
774
+ "primitive": "string"
775
+ },
776
+ "kind": "map"
777
+ }
778
+ }
779
+ },
780
+ "static": true
781
+ },
716
782
  {
717
783
  "docs": {
718
784
  "returns": "a mapping with AWS region codes as the keys,\nand the fact in the given region as the value for that key",
@@ -721,7 +787,7 @@
721
787
  },
722
788
  "locationInModule": {
723
789
  "filename": "lib/region-info.ts",
724
- "line": 23
790
+ "line": 24
725
791
  },
726
792
  "name": "regionMap",
727
793
  "parameters": [
@@ -755,7 +821,7 @@
755
821
  },
756
822
  "locationInModule": {
757
823
  "filename": "lib/region-info.ts",
758
- "line": 124
824
+ "line": 146
759
825
  },
760
826
  "name": "cloudwatchLambdaInsightsArn",
761
827
  "parameters": [
@@ -767,6 +833,16 @@
767
833
  "type": {
768
834
  "primitive": "string"
769
835
  }
836
+ },
837
+ {
838
+ "docs": {
839
+ "summary": "the Lambda Function architecture (e.g. 'x86_64' or 'arm64')."
840
+ },
841
+ "name": "architecture",
842
+ "optional": true,
843
+ "type": {
844
+ "primitive": "string"
845
+ }
770
846
  }
771
847
  ],
772
848
  "returns": {
@@ -783,7 +859,7 @@
783
859
  },
784
860
  "locationInModule": {
785
861
  "filename": "lib/region-info.ts",
786
- "line": 100
862
+ "line": 121
787
863
  },
788
864
  "name": "servicePrincipal",
789
865
  "parameters": [
@@ -815,7 +891,7 @@
815
891
  "immutable": true,
816
892
  "locationInModule": {
817
893
  "filename": "lib/region-info.ts",
818
- "line": 11
894
+ "line": 12
819
895
  },
820
896
  "name": "regions",
821
897
  "static": true,
@@ -836,7 +912,7 @@
836
912
  "immutable": true,
837
913
  "locationInModule": {
838
914
  "filename": "lib/region-info.ts",
839
- "line": 48
915
+ "line": 69
840
916
  },
841
917
  "name": "cdkMetadataResourceAvailable",
842
918
  "type": {
@@ -850,7 +926,7 @@
850
926
  "immutable": true,
851
927
  "locationInModule": {
852
928
  "filename": "lib/region-info.ts",
853
- "line": 43
929
+ "line": 64
854
930
  },
855
931
  "name": "name",
856
932
  "type": {
@@ -865,7 +941,7 @@
865
941
  "immutable": true,
866
942
  "locationInModule": {
867
943
  "filename": "lib/region-info.ts",
868
- "line": 132
944
+ "line": 154
869
945
  },
870
946
  "name": "appMeshRepositoryAccount",
871
947
  "optional": true,
@@ -881,7 +957,7 @@
881
957
  "immutable": true,
882
958
  "locationInModule": {
883
959
  "filename": "lib/region-info.ts",
884
- "line": 116
960
+ "line": 137
885
961
  },
886
962
  "name": "dlcRepositoryAccount",
887
963
  "optional": true,
@@ -897,7 +973,7 @@
897
973
  "immutable": true,
898
974
  "locationInModule": {
899
975
  "filename": "lib/region-info.ts",
900
- "line": 55
976
+ "line": 76
901
977
  },
902
978
  "name": "domainSuffix",
903
979
  "optional": true,
@@ -913,7 +989,7 @@
913
989
  "immutable": true,
914
990
  "locationInModule": {
915
991
  "filename": "lib/region-info.ts",
916
- "line": 83
992
+ "line": 104
917
993
  },
918
994
  "name": "ebsEnvEndpointHostedZoneId",
919
995
  "optional": true,
@@ -929,7 +1005,7 @@
929
1005
  "immutable": true,
930
1006
  "locationInModule": {
931
1007
  "filename": "lib/region-info.ts",
932
- "line": 108
1008
+ "line": 129
933
1009
  },
934
1010
  "name": "elbv2Account",
935
1011
  "optional": true,
@@ -945,7 +1021,7 @@
945
1021
  "immutable": true,
946
1022
  "locationInModule": {
947
1023
  "filename": "lib/region-info.ts",
948
- "line": 139
1024
+ "line": 161
949
1025
  },
950
1026
  "name": "firehoseCidrBlock",
951
1027
  "optional": true,
@@ -961,7 +1037,7 @@
961
1037
  "immutable": true,
962
1038
  "locationInModule": {
963
1039
  "filename": "lib/region-info.ts",
964
- "line": 62
1040
+ "line": 83
965
1041
  },
966
1042
  "name": "partition",
967
1043
  "optional": true,
@@ -977,7 +1053,7 @@
977
1053
  "immutable": true,
978
1054
  "locationInModule": {
979
1055
  "filename": "lib/region-info.ts",
980
- "line": 69
1056
+ "line": 90
981
1057
  },
982
1058
  "name": "s3StaticWebsiteEndpoint",
983
1059
  "optional": true,
@@ -993,7 +1069,7 @@
993
1069
  "immutable": true,
994
1070
  "locationInModule": {
995
1071
  "filename": "lib/region-info.ts",
996
- "line": 76
1072
+ "line": 97
997
1073
  },
998
1074
  "name": "s3StaticWebsiteHostedZoneId",
999
1075
  "optional": true,
@@ -1009,7 +1085,7 @@
1009
1085
  "immutable": true,
1010
1086
  "locationInModule": {
1011
1087
  "filename": "lib/region-info.ts",
1012
- "line": 92
1088
+ "line": 113
1013
1089
  },
1014
1090
  "name": "vpcEndpointServiceNamePrefix",
1015
1091
  "optional": true,
@@ -1021,6 +1097,6 @@
1021
1097
  "symbolId": "lib/region-info:RegionInfo"
1022
1098
  }
1023
1099
  },
1024
- "version": "2.1.0",
1100
+ "version": "2.5.0",
1025
1101
  "fingerprint": "**********"
1026
1102
  }