@plyaz/config 1.7.21 → 1.8.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.
@@ -0,0 +1,83 @@
1
+ /**
2
+ * AWS Configuration Constants
3
+ * Centralized source of truth for AWS service configurations
4
+ */
5
+ /**
6
+ * AWS Default Regions
7
+ */
8
+ export declare const AWS_DEFAULT_REGIONS: {
9
+ /** Default region for most AWS services */
10
+ readonly DEFAULT: "us-east-1";
11
+ /** CloudFront distributions are global but use us-east-1 for API calls */
12
+ readonly CLOUDFRONT: "us-east-1";
13
+ /** S3 default region */
14
+ readonly S3: "us-east-1";
15
+ };
16
+ /**
17
+ * AWS Service Names (used for AWS Signature V4)
18
+ */
19
+ export declare const AWS_SERVICE_NAMES: {
20
+ readonly CLOUDFRONT: "cloudfront";
21
+ readonly S3: "s3";
22
+ readonly LAMBDA: "lambda";
23
+ readonly DYNAMODB: "dynamodb";
24
+ readonly SQS: "sqs";
25
+ readonly SNS: "sns";
26
+ readonly SES: "ses";
27
+ };
28
+ /**
29
+ * AWS Service Hosts/Endpoints
30
+ */
31
+ export declare const AWS_SERVICE_HOSTS: {
32
+ /** CloudFront API endpoint (global) */
33
+ readonly CLOUDFRONT: "cloudfront.amazonaws.com";
34
+ /** S3 endpoint pattern - use with region substitution */
35
+ readonly S3: "s3.amazonaws.com";
36
+ /** SES endpoint pattern - use with region substitution */
37
+ readonly SES: "email.{region}.amazonaws.com";
38
+ };
39
+ /**
40
+ * AWS CloudFront Configuration
41
+ */
42
+ export declare const AWS_CLOUDFRONT_CONFIG: {
43
+ /** Default region for CloudFront API calls */
44
+ readonly DEFAULT_REGION: "us-east-1";
45
+ /** Service name for AWS Signature V4 */
46
+ readonly SERVICE_NAME: "cloudfront";
47
+ /** API endpoint host */
48
+ readonly HOST: "cloudfront.amazonaws.com";
49
+ /** API version used in paths */
50
+ readonly API_VERSION: "2020-05-31";
51
+ /** Maximum paths per invalidation request */
52
+ readonly MAX_PATHS_PER_INVALIDATION: 1000;
53
+ /** Free tier invalidation limit per month */
54
+ readonly FREE_TIER_INVALIDATIONS_PER_MONTH: 3000;
55
+ };
56
+ /**
57
+ * AWS S3 Configuration
58
+ */
59
+ export declare const AWS_S3_CONFIG: {
60
+ /** Default region for S3 operations */
61
+ readonly DEFAULT_REGION: "us-east-1";
62
+ /** Service name for AWS Signature V4 */
63
+ readonly SERVICE_NAME: "s3";
64
+ /** API endpoint host */
65
+ readonly HOST: "s3.amazonaws.com";
66
+ };
67
+ /**
68
+ * Helper function to get AWS service endpoint with region
69
+ * @param service - AWS service name
70
+ * @param region - AWS region
71
+ * @returns Formatted endpoint URL
72
+ *
73
+ * @example
74
+ * ```typescript
75
+ * const s3Endpoint = getAWSServiceEndpoint('s3', 'us-west-2');
76
+ * console.log(s3Endpoint); // 's3.us-west-2.amazonaws.com'
77
+ *
78
+ * const dynamoEndpoint = getAWSServiceEndpoint('dynamodb', 'eu-central-1');
79
+ * console.log(dynamoEndpoint); // 'dynamodb.eu-central-1.amazonaws.com'
80
+ * ```
81
+ */
82
+ export declare function getAWSServiceEndpoint(service: string, region: string): string;
83
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/aws/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;IAC9B,2CAA2C;;IAE3C,0EAA0E;;IAE1E,wBAAwB;;CAEhB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;CAQpB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,iBAAiB;IAC5B,uCAAuC;;IAEvC,yDAAyD;;IAEzD,0DAA0D;;CAElD,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,qBAAqB;IAChC,8CAA8C;;IAE9C,wCAAwC;;IAExC,wBAAwB;;IAExB,gCAAgC;;IAEhC,6CAA6C;;IAE7C,6CAA6C;;CAErC,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;IACxB,uCAAuC;;IAEvC,wCAAwC;;IAExC,wBAAwB;;CAEhB,CAAC;AAEX;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAE7E"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * AWS Configuration
3
+ * Centralized AWS service configurations
4
+ */
5
+ export * from './constants';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/aws/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,aAAa,CAAC"}