@aws-cdk/region-info 2.9.0 → 2.10.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
@@ -23,12 +23,15 @@
23
23
  "compiledWithDeprecationWarnings": true,
24
24
  "pacmak": {
25
25
  "hasDefaultInterfaces": true
26
+ },
27
+ "rosetta": {
28
+ "strict": true
26
29
  }
27
30
  }
28
31
  },
29
32
  "name": "@aws-cdk/region-info",
30
33
  "readme": {
31
- "markdown": "# AWS Region-Specific Information Directory\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![cdk-constructs: Stable](https://img.shields.io/badge/cdk--constructs-stable-success.svg?style=for-the-badge)\n\n---\n\n<!--END STABILITY BANNER-->\n\n## Usage\n\nSome information used in CDK Applications differs from one AWS region to\nanother, such as service principals used in IAM policies, S3 static website\nendpoints, ...\n\n### The `RegionInfo` class\n\nThe library offers a simple interface to obtain region specific information in\nthe form of the `RegionInfo` class. This is the preferred way to interact with\nthe regional information database:\n\n```ts\nimport { 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\n```\n\nThe `RegionInfo` layer is built on top of the Low-Level API, which is described\nbelow and can be used to register additional data, including user-defined facts\nthat are not available through the `RegionInfo` interface.\n\n### Low-Level API\n\nThis library offers a primitive database of such information so that CDK\nconstructs can easily access regional information. The `FactName` class provides\na list of known fact names, which can then be used with the `RegionInfo` to\nretrieve a particular value:\n\n```ts\nimport * 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\n```\n\n## Supplying new or missing information\n\nAs new regions are released, it might happen that a particular fact you need is\nmissing from the library. In such cases, the `Fact.register` method can be used\nto inject FactName into the database:\n\n```ts\nregionInfo.Fact.register({\n region: 'bermuda-triangle-1',\n name: regionInfo.FactName.servicePrincipal('s3.amazonaws.com'),\n value: 's3-website.bermuda-triangle-1.nowhere.com',\n});\n```\n\n## Overriding incorrect information\n\nIn the event information provided by the library is incorrect, it can be\noverridden using the same `Fact.register` method demonstrated above, simply\nadding an extra boolean argument:\n\n```ts\nregionInfo.Fact.register({\n region: 'us-east-1',\n name: regionInfo.FactName.servicePrincipal('service.amazonaws.com'),\n value: 'the-correct-principal.amazonaws.com',\n}, true /* Allow overriding information */);\n```\n\nIf you happen to have stumbled upon incorrect data built into this library, it\nis always a good idea to report your findings in a [GitHub issue], so we can fix\nit for everyone else!\n\n[GitHub issue]: https://github.com/aws/aws-cdk/issues\n\n---\n\nThis module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.\n"
34
+ "markdown": "# AWS Region-Specific Information Directory\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![cdk-constructs: Stable](https://img.shields.io/badge/cdk--constructs-stable-success.svg?style=for-the-badge)\n\n---\n\n<!--END STABILITY BANNER-->\n\n## Usage\n\nSome information used in CDK Applications differs from one AWS region to\nanother, such as service principals used in IAM policies, S3 static website\nendpoints, ...\n\n### The `RegionInfo` class\n\nThe library offers a simple interface to obtain region specific information in\nthe form of the `RegionInfo` class. This is the preferred way to interact with\nthe regional information database:\n\n```ts\n// Get the information for \"eu-west-1\":\nconst region = regionInfo.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\n```\n\nThe `RegionInfo` layer is built on top of the Low-Level API, which is described\nbelow and can be used to register additional data, including user-defined facts\nthat are not available through the `RegionInfo` interface.\n\n### Low-Level API\n\nThis library offers a primitive database of such information so that CDK\nconstructs can easily access regional information. The `FactName` class provides\na list of known fact names, which can then be used with the `RegionInfo` to\nretrieve a particular value:\n\n```ts\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\n```\n\n## Supplying new or missing information\n\nAs new regions are released, it might happen that a particular fact you need is\nmissing from the library. In such cases, the `Fact.register` method can be used\nto inject FactName into the database:\n\n```ts\nclass MyFact implements regionInfo.IFact {\n public readonly region = 'bermuda-triangle-1';\n public readonly name = regionInfo.FactName.servicePrincipal('s3.amazonaws.com');\n public readonly value = 's3-website.bermuda-triangle-1.nowhere.com';\n}\n\nregionInfo.Fact.register(new MyFact());\n```\n\n## Overriding incorrect information\n\nIn the event information provided by the library is incorrect, it can be\noverridden using the same `Fact.register` method demonstrated above, simply\nadding an extra boolean argument:\n\n```ts\nclass MyFact implements regionInfo.IFact {\n public readonly region = 'us-east-1';\n public readonly name = regionInfo.FactName.servicePrincipal('service.amazonaws.com');\n public readonly value = 'the-correct-principal.amazonaws.com';\n}\n\nregionInfo.Fact.register(new MyFact(), true /* Allow overriding information */);\n```\n\nIf you happen to have stumbled upon incorrect data built into this library, it\nis always a good idea to report your findings in a [GitHub issue], so we can fix\nit for everyone else!\n\n[GitHub issue]: https://github.com/aws/aws-cdk/issues\n\n---\n\nThis module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.\n"
32
35
  },
33
36
  "repository": {
34
37
  "directory": "packages/@aws-cdk/region-info",
@@ -151,7 +154,7 @@
151
154
  "custom": {
152
155
  "exampleMetadata": "infused"
153
156
  },
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",
157
+ "example": "class MyFact implements regionInfo.IFact {\n public readonly region = 'bermuda-triangle-1';\n public readonly name = regionInfo.FactName.servicePrincipal('s3.amazonaws.com');\n public readonly value = 's3-website.bermuda-triangle-1.nowhere.com';\n}\n\nregionInfo.Fact.register(new MyFact());",
155
158
  "stability": "stable",
156
159
  "summary": "A database of regional information."
157
160
  },
@@ -170,7 +173,7 @@
170
173
  },
171
174
  "locationInModule": {
172
175
  "filename": "lib/fact.ts",
173
- "line": 23
176
+ "line": 24
174
177
  },
175
178
  "name": "find",
176
179
  "parameters": [
@@ -208,7 +211,7 @@
208
211
  },
209
212
  "locationInModule": {
210
213
  "filename": "lib/fact.ts",
211
- "line": 51
214
+ "line": 52
212
215
  },
213
216
  "name": "register",
214
217
  "parameters": [
@@ -242,7 +245,7 @@
242
245
  },
243
246
  "locationInModule": {
244
247
  "filename": "lib/fact.ts",
245
- "line": 35
248
+ "line": 36
246
249
  },
247
250
  "name": "requireFact",
248
251
  "parameters": [
@@ -279,7 +282,7 @@
279
282
  },
280
283
  "locationInModule": {
281
284
  "filename": "lib/fact.ts",
282
- "line": 68
285
+ "line": 69
283
286
  },
284
287
  "name": "unregister",
285
288
  "parameters": [
@@ -347,7 +350,7 @@
347
350
  "custom": {
348
351
  "exampleMetadata": "infused"
349
352
  },
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",
353
+ "example": "class MyFact implements regionInfo.IFact {\n public readonly region = 'bermuda-triangle-1';\n public readonly name = regionInfo.FactName.servicePrincipal('s3.amazonaws.com');\n public readonly value = 's3-website.bermuda-triangle-1.nowhere.com';\n}\n\nregionInfo.Fact.register(new MyFact());",
351
354
  "stability": "stable",
352
355
  "summary": "All standardized fact names."
353
356
  },
@@ -360,7 +363,7 @@
360
363
  "kind": "class",
361
364
  "locationInModule": {
362
365
  "filename": "lib/fact.ts",
363
- "line": 106
366
+ "line": 107
364
367
  },
365
368
  "methods": [
366
369
  {
@@ -370,7 +373,7 @@
370
373
  },
371
374
  "locationInModule": {
372
375
  "filename": "lib/fact.ts",
373
- "line": 170
376
+ "line": 171
374
377
  },
375
378
  "name": "cloudwatchLambdaInsightsVersion",
376
379
  "parameters": [
@@ -402,7 +405,7 @@
402
405
  },
403
406
  "locationInModule": {
404
407
  "filename": "lib/fact.ts",
405
- "line": 184
408
+ "line": 185
406
409
  },
407
410
  "name": "servicePrincipal",
408
411
  "parameters": [
@@ -435,7 +438,7 @@
435
438
  "immutable": true,
436
439
  "locationInModule": {
437
440
  "filename": "lib/fact.ts",
438
- "line": 160
441
+ "line": 161
439
442
  },
440
443
  "name": "APPMESH_ECR_ACCOUNT",
441
444
  "static": true,
@@ -453,7 +456,7 @@
453
456
  "immutable": true,
454
457
  "locationInModule": {
455
458
  "filename": "lib/fact.ts",
456
- "line": 121
459
+ "line": 122
457
460
  },
458
461
  "name": "CDK_METADATA_RESOURCE_AVAILABLE",
459
462
  "static": true,
@@ -470,7 +473,7 @@
470
473
  "immutable": true,
471
474
  "locationInModule": {
472
475
  "filename": "lib/fact.ts",
473
- "line": 154
476
+ "line": 155
474
477
  },
475
478
  "name": "DLC_REPOSITORY_ACCOUNT",
476
479
  "static": true,
@@ -487,7 +490,7 @@
487
490
  "immutable": true,
488
491
  "locationInModule": {
489
492
  "filename": "lib/fact.ts",
490
- "line": 115
493
+ "line": 116
491
494
  },
492
495
  "name": "DOMAIN_SUFFIX",
493
496
  "static": true,
@@ -504,7 +507,7 @@
504
507
  "immutable": true,
505
508
  "locationInModule": {
506
509
  "filename": "lib/fact.ts",
507
- "line": 136
510
+ "line": 137
508
511
  },
509
512
  "name": "EBS_ENV_ENDPOINT_HOSTED_ZONE_ID",
510
513
  "static": true,
@@ -521,7 +524,7 @@
521
524
  "immutable": true,
522
525
  "locationInModule": {
523
526
  "filename": "lib/fact.ts",
524
- "line": 148
527
+ "line": 149
525
528
  },
526
529
  "name": "ELBV2_ACCOUNT",
527
530
  "static": true,
@@ -538,7 +541,7 @@
538
541
  "immutable": true,
539
542
  "locationInModule": {
540
543
  "filename": "lib/fact.ts",
541
- "line": 165
544
+ "line": 166
542
545
  },
543
546
  "name": "FIREHOSE_CIDR_BLOCK",
544
547
  "static": true,
@@ -555,7 +558,7 @@
555
558
  "immutable": true,
556
559
  "locationInModule": {
557
560
  "filename": "lib/fact.ts",
558
- "line": 110
561
+ "line": 111
559
562
  },
560
563
  "name": "PARTITION",
561
564
  "static": true,
@@ -572,7 +575,7 @@
572
575
  "immutable": true,
573
576
  "locationInModule": {
574
577
  "filename": "lib/fact.ts",
575
- "line": 126
578
+ "line": 127
576
579
  },
577
580
  "name": "S3_STATIC_WEBSITE_ENDPOINT",
578
581
  "static": true,
@@ -589,7 +592,7 @@
589
592
  "immutable": true,
590
593
  "locationInModule": {
591
594
  "filename": "lib/fact.ts",
592
- "line": 131
595
+ "line": 132
593
596
  },
594
597
  "name": "S3_STATIC_WEBSITE_ZONE_53_HOSTED_ZONE_ID",
595
598
  "static": true,
@@ -606,7 +609,7 @@
606
609
  "immutable": true,
607
610
  "locationInModule": {
608
611
  "filename": "lib/fact.ts",
609
- "line": 143
612
+ "line": 144
610
613
  },
611
614
  "name": "VPC_ENDPOINT_SERVICE_NAME_PREFIX",
612
615
  "static": true,
@@ -627,7 +630,7 @@
627
630
  "kind": "interface",
628
631
  "locationInModule": {
629
632
  "filename": "lib/fact.ts",
630
- "line": 86
633
+ "line": 87
631
634
  },
632
635
  "name": "IFact",
633
636
  "properties": [
@@ -641,7 +644,7 @@
641
644
  "immutable": true,
642
645
  "locationInModule": {
643
646
  "filename": "lib/fact.ts",
644
- "line": 95
647
+ "line": 96
645
648
  },
646
649
  "name": "name",
647
650
  "type": {
@@ -657,7 +660,7 @@
657
660
  "immutable": true,
658
661
  "locationInModule": {
659
662
  "filename": "lib/fact.ts",
660
- "line": 90
663
+ "line": 91
661
664
  },
662
665
  "name": "region",
663
666
  "type": {
@@ -673,7 +676,7 @@
673
676
  "immutable": true,
674
677
  "locationInModule": {
675
678
  "filename": "lib/fact.ts",
676
- "line": 100
679
+ "line": 101
677
680
  },
678
681
  "name": "value",
679
682
  "optional": true,
@@ -690,7 +693,7 @@
690
693
  "custom": {
691
694
  "exampleMetadata": "infused"
692
695
  },
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",
696
+ "example": "// Get the information for \"eu-west-1\":\nconst region = regionInfo.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",
694
697
  "stability": "stable",
695
698
  "summary": "Information pertaining to an AWS region."
696
699
  },
@@ -1097,6 +1100,6 @@
1097
1100
  "symbolId": "lib/region-info:RegionInfo"
1098
1101
  }
1099
1102
  },
1100
- "version": "2.9.0",
1103
+ "version": "2.10.0",
1101
1104
  "fingerprint": "**********"
1102
1105
  }