@aws-cdk/region-info 2.0.0-rc.9 → 2.0.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.30.0 (build adae23f)",
15
+ "jsiiVersion": "1.46.0 (build cd08c55)",
16
16
  "keywords": [
17
17
  "aws",
18
18
  "cdk"
@@ -20,6 +20,7 @@
20
20
  "license": "Apache-2.0",
21
21
  "metadata": {
22
22
  "jsii": {
23
+ "compiledWithDeprecationWarnings": true,
23
24
  "pacmak": {
24
25
  "hasDefaultInterfaces": true
25
26
  }
@@ -141,11 +142,13 @@
141
142
  "primitive": "string"
142
143
  }
143
144
  }
144
- ]
145
+ ],
146
+ "symbolId": "lib/default:Default"
145
147
  },
146
148
  "@aws-cdk/region-info.Fact": {
147
149
  "assembly": "@aws-cdk/region-info",
148
150
  "docs": {
151
+ "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",
149
152
  "stability": "stable",
150
153
  "summary": "A database of regional information."
151
154
  },
@@ -332,11 +335,13 @@
332
335
  }
333
336
  }
334
337
  }
335
- ]
338
+ ],
339
+ "symbolId": "lib/fact:Fact"
336
340
  },
337
341
  "@aws-cdk/region-info.FactName": {
338
342
  "assembly": "@aws-cdk/region-info",
339
343
  "docs": {
344
+ "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",
340
345
  "stability": "stable",
341
346
  "summary": "All standardized fact names."
342
347
  },
@@ -352,6 +357,31 @@
352
357
  "line": 104
353
358
  },
354
359
  "methods": [
360
+ {
361
+ "docs": {
362
+ "stability": "stable",
363
+ "summary": "The ARN of CloudWatch Lambda Insights for a version (e.g. 1.0.98.0)."
364
+ },
365
+ "locationInModule": {
366
+ "filename": "lib/fact.ts",
367
+ "line": 168
368
+ },
369
+ "name": "cloudwatchLambdaInsightsVersion",
370
+ "parameters": [
371
+ {
372
+ "name": "version",
373
+ "type": {
374
+ "primitive": "string"
375
+ }
376
+ }
377
+ ],
378
+ "returns": {
379
+ "type": {
380
+ "primitive": "string"
381
+ }
382
+ },
383
+ "static": true
384
+ },
355
385
  {
356
386
  "docs": {
357
387
  "stability": "stable",
@@ -359,7 +389,7 @@
359
389
  },
360
390
  "locationInModule": {
361
391
  "filename": "lib/fact.ts",
362
- "line": 162
392
+ "line": 179
363
393
  },
364
394
  "name": "servicePrincipal",
365
395
  "parameters": [
@@ -392,7 +422,7 @@
392
422
  "immutable": true,
393
423
  "locationInModule": {
394
424
  "filename": "lib/fact.ts",
395
- "line": 153
425
+ "line": 158
396
426
  },
397
427
  "name": "APPMESH_ECR_ACCOUNT",
398
428
  "static": true,
@@ -427,7 +457,7 @@
427
457
  "immutable": true,
428
458
  "locationInModule": {
429
459
  "filename": "lib/fact.ts",
430
- "line": 147
460
+ "line": 152
431
461
  },
432
462
  "name": "DLC_REPOSITORY_ACCOUNT",
433
463
  "static": true,
@@ -452,6 +482,23 @@
452
482
  "primitive": "string"
453
483
  }
454
484
  },
485
+ {
486
+ "const": true,
487
+ "docs": {
488
+ "stability": "stable",
489
+ "summary": "The hosted zone ID used by Route 53 to alias a EBS environment endpoint in this region (e.g: Z2O1EMRO9K5GLX)."
490
+ },
491
+ "immutable": true,
492
+ "locationInModule": {
493
+ "filename": "lib/fact.ts",
494
+ "line": 134
495
+ },
496
+ "name": "EBS_ENV_ENDPOINT_HOSTED_ZONE_ID",
497
+ "static": true,
498
+ "type": {
499
+ "primitive": "string"
500
+ }
501
+ },
455
502
  {
456
503
  "const": true,
457
504
  "docs": {
@@ -461,7 +508,7 @@
461
508
  "immutable": true,
462
509
  "locationInModule": {
463
510
  "filename": "lib/fact.ts",
464
- "line": 141
511
+ "line": 146
465
512
  },
466
513
  "name": "ELBV2_ACCOUNT",
467
514
  "static": true,
@@ -469,6 +516,23 @@
469
516
  "primitive": "string"
470
517
  }
471
518
  },
519
+ {
520
+ "const": true,
521
+ "docs": {
522
+ "stability": "stable",
523
+ "summary": "The CIDR block used by Kinesis Data Firehose servers."
524
+ },
525
+ "immutable": true,
526
+ "locationInModule": {
527
+ "filename": "lib/fact.ts",
528
+ "line": 163
529
+ },
530
+ "name": "FIREHOSE_CIDR_BLOCK",
531
+ "static": true,
532
+ "type": {
533
+ "primitive": "string"
534
+ }
535
+ },
472
536
  {
473
537
  "const": true,
474
538
  "docs": {
@@ -529,7 +593,7 @@
529
593
  "immutable": true,
530
594
  "locationInModule": {
531
595
  "filename": "lib/fact.ts",
532
- "line": 136
596
+ "line": 141
533
597
  },
534
598
  "name": "VPC_ENDPOINT_SERVICE_NAME_PREFIX",
535
599
  "static": true,
@@ -537,7 +601,8 @@
537
601
  "primitive": "string"
538
602
  }
539
603
  }
540
- ]
604
+ ],
605
+ "symbolId": "lib/fact:FactName"
541
606
  },
542
607
  "@aws-cdk/region-info.IFact": {
543
608
  "assembly": "@aws-cdk/region-info",
@@ -603,11 +668,13 @@
603
668
  "primitive": "string"
604
669
  }
605
670
  }
606
- ]
671
+ ],
672
+ "symbolId": "lib/fact:IFact"
607
673
  },
608
674
  "@aws-cdk/region-info.RegionInfo": {
609
675
  "assembly": "@aws-cdk/region-info",
610
676
  "docs": {
677
+ "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",
611
678
  "stability": "stable",
612
679
  "summary": "Information pertaining to an AWS region."
613
680
  },
@@ -681,6 +748,34 @@
681
748
  },
682
749
  "static": true
683
750
  },
751
+ {
752
+ "docs": {
753
+ "stability": "stable",
754
+ "summary": "The ARN of the CloudWatch Lambda Insights extension, for the given version."
755
+ },
756
+ "locationInModule": {
757
+ "filename": "lib/region-info.ts",
758
+ "line": 124
759
+ },
760
+ "name": "cloudwatchLambdaInsightsArn",
761
+ "parameters": [
762
+ {
763
+ "docs": {
764
+ "summary": "the version (e.g. 1.0.98.0)."
765
+ },
766
+ "name": "insightsVersion",
767
+ "type": {
768
+ "primitive": "string"
769
+ }
770
+ }
771
+ ],
772
+ "returns": {
773
+ "optional": true,
774
+ "type": {
775
+ "primitive": "string"
776
+ }
777
+ }
778
+ },
684
779
  {
685
780
  "docs": {
686
781
  "stability": "stable",
@@ -688,7 +783,7 @@
688
783
  },
689
784
  "locationInModule": {
690
785
  "filename": "lib/region-info.ts",
691
- "line": 93
786
+ "line": 100
692
787
  },
693
788
  "name": "servicePrincipal",
694
789
  "parameters": [
@@ -770,7 +865,7 @@
770
865
  "immutable": true,
771
866
  "locationInModule": {
772
867
  "filename": "lib/region-info.ts",
773
- "line": 117
868
+ "line": 132
774
869
  },
775
870
  "name": "appMeshRepositoryAccount",
776
871
  "optional": true,
@@ -786,7 +881,7 @@
786
881
  "immutable": true,
787
882
  "locationInModule": {
788
883
  "filename": "lib/region-info.ts",
789
- "line": 109
884
+ "line": 116
790
885
  },
791
886
  "name": "dlcRepositoryAccount",
792
887
  "optional": true,
@@ -810,6 +905,22 @@
810
905
  "primitive": "string"
811
906
  }
812
907
  },
908
+ {
909
+ "docs": {
910
+ "stability": "stable",
911
+ "summary": "The hosted zone ID used by Route 53 to alias a EBS environment endpoint in this region (e.g: Z2O1EMRO9K5GLX)."
912
+ },
913
+ "immutable": true,
914
+ "locationInModule": {
915
+ "filename": "lib/region-info.ts",
916
+ "line": 83
917
+ },
918
+ "name": "ebsEnvEndpointHostedZoneId",
919
+ "optional": true,
920
+ "type": {
921
+ "primitive": "string"
922
+ }
923
+ },
813
924
  {
814
925
  "docs": {
815
926
  "stability": "stable",
@@ -818,7 +929,7 @@
818
929
  "immutable": true,
819
930
  "locationInModule": {
820
931
  "filename": "lib/region-info.ts",
821
- "line": 101
932
+ "line": 108
822
933
  },
823
934
  "name": "elbv2Account",
824
935
  "optional": true,
@@ -826,6 +937,22 @@
826
937
  "primitive": "string"
827
938
  }
828
939
  },
940
+ {
941
+ "docs": {
942
+ "stability": "stable",
943
+ "summary": "The CIDR block used by Kinesis Data Firehose servers."
944
+ },
945
+ "immutable": true,
946
+ "locationInModule": {
947
+ "filename": "lib/region-info.ts",
948
+ "line": 139
949
+ },
950
+ "name": "firehoseCidrBlock",
951
+ "optional": true,
952
+ "type": {
953
+ "primitive": "string"
954
+ }
955
+ },
829
956
  {
830
957
  "docs": {
831
958
  "stability": "stable",
@@ -882,7 +1009,7 @@
882
1009
  "immutable": true,
883
1010
  "locationInModule": {
884
1011
  "filename": "lib/region-info.ts",
885
- "line": 85
1012
+ "line": 92
886
1013
  },
887
1014
  "name": "vpcEndpointServiceNamePrefix",
888
1015
  "optional": true,
@@ -890,9 +1017,10 @@
890
1017
  "primitive": "string"
891
1018
  }
892
1019
  }
893
- ]
1020
+ ],
1021
+ "symbolId": "lib/region-info:RegionInfo"
894
1022
  }
895
1023
  },
896
- "version": "2.0.0-rc.9",
897
- "fingerprint": "zdKefXehMzQ7XrGPhByyn5FhV+yMe4vg46zsf4CC8s8="
1024
+ "version": "2.0.0",
1025
+ "fingerprint": "**********"
898
1026
  }
@@ -0,0 +1,27 @@
1
+ function _aws_cdk_region_info_Default(p) {
2
+ }
3
+ function _aws_cdk_region_info_IFact(p) {
4
+ }
5
+ function _aws_cdk_region_info_FactName(p) {
6
+ }
7
+ function _aws_cdk_region_info_Fact(p) {
8
+ }
9
+ function _aws_cdk_region_info_RegionInfo(p) {
10
+ }
11
+ function print(name, deprecationMessage) {
12
+ const deprecated = process.env.JSII_DEPRECATED;
13
+ const deprecationMode = ["warn", "fail", "quiet"].includes(deprecated) ? deprecated : "warn";
14
+ const message = `${name} is deprecated.\n ${deprecationMessage}\n This API will be removed in the next major release.`;
15
+ switch (deprecationMode) {
16
+ case "fail":
17
+ throw new DeprecationError(message);
18
+ case "warn":
19
+ console.warn("[WARNING]", message);
20
+ break;
21
+ }
22
+ }
23
+ const visitedObjects = new Set();
24
+ class DeprecationError extends Error {
25
+ }
26
+ module.exports = { print, _aws_cdk_region_info_Default, _aws_cdk_region_info_IFact, _aws_cdk_region_info_FactName, _aws_cdk_region_info_Fact, _aws_cdk_region_info_RegionInfo };
27
+ module.exports.DeprecationError = DeprecationError;
@@ -3,11 +3,19 @@ export declare const AWS_CDK_METADATA: Set<string>;
3
3
  /**
4
4
  * The hosted zone Id if using an alias record in Route53.
5
5
  *
6
- * @see https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_website_region_endpoints
6
+ * @see https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_region
7
7
  */
8
8
  export declare const ROUTE_53_BUCKET_WEBSITE_ZONE_IDS: {
9
9
  [region: string]: string;
10
10
  };
11
+ /**
12
+ * The hosted zone Id of the Elastic Beanstalk environment.
13
+ *
14
+ * @see https://docs.aws.amazon.com/general/latest/gr/elasticbeanstalk.html
15
+ */
16
+ export declare const EBS_ENV_ENDPOINT_HOSTED_ZONE_IDS: {
17
+ [region: string]: string;
18
+ };
11
19
  interface Region {
12
20
  partition: string;
13
21
  domainSuffix: string;
@@ -24,4 +32,10 @@ export declare const DLC_REPOSITORY_ACCOUNTS: {
24
32
  export declare const APPMESH_ECR_ACCOUNTS: {
25
33
  [region: string]: string;
26
34
  };
35
+ export declare const CLOUDWATCH_LAMBDA_INSIGHTS_ARNS: {
36
+ [key: string]: any;
37
+ };
38
+ export declare const FIREHOSE_CIDR_BLOCKS: {
39
+ [region: string]: string;
40
+ };
27
41
  export {};