@pwrdrvr/microapps-cdk 0.0.28 → 0.0.29
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 +1884 -185
- package/API.md +890 -60
- package/README.md +2 -8
- package/lib/MicroApps.d.ts +77 -44
- package/lib/MicroApps.js +62 -33
- package/lib/MicroAppsAPIGwy.d.ts +123 -0
- package/lib/MicroAppsAPIGwy.js +178 -0
- package/lib/MicroAppsCF.d.ts +179 -17
- package/lib/MicroAppsCF.js +127 -45
- package/lib/MicroAppsS3.d.ts +114 -17
- package/lib/MicroAppsS3.js +55 -31
- package/lib/MicroAppsSvcs.d.ts +123 -25
- package/lib/MicroAppsSvcs.js +113 -152
- package/lib/index.d.ts +4 -0
- package/lib/index.js +5 -1
- package/lib/microapps-deployer/index.js +116 -88
- package/lib/microapps-deployer/index.js.map +3 -3
- package/lib/microapps-router/index.js +60 -51
- package/lib/microapps-router/index.js.map +3 -3
- package/lib/utils/ReverseDomain.d.ts +4 -0
- package/lib/utils/ReverseDomain.js +15 -0
- package/package.json +45 -45
package/lib/MicroAppsSvcs.d.ts
CHANGED
|
@@ -1,34 +1,132 @@
|
|
|
1
1
|
import * as apigwy from '@aws-cdk/aws-apigatewayv2';
|
|
2
|
-
import * as
|
|
2
|
+
import * as cf from '@aws-cdk/aws-cloudfront';
|
|
3
|
+
import * as dynamodb from '@aws-cdk/aws-dynamodb';
|
|
4
|
+
import * as lambda from '@aws-cdk/aws-lambda';
|
|
5
|
+
import * as s3 from '@aws-cdk/aws-s3';
|
|
3
6
|
import * as cdk from '@aws-cdk/core';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
/**
|
|
8
|
+
* @stability stable
|
|
9
|
+
*/
|
|
10
|
+
export interface MicroAppsSvcsProps {
|
|
11
|
+
/**
|
|
12
|
+
* RemovalPolicy override for child resources.
|
|
13
|
+
*
|
|
14
|
+
* Note: if set to DESTROY the S3 buckes will have `autoDeleteObjects` set to `true`
|
|
15
|
+
*
|
|
16
|
+
* @default - per resource default
|
|
17
|
+
* @stability stable
|
|
18
|
+
*/
|
|
19
|
+
readonly removalPolicy?: cdk.RemovalPolicy;
|
|
20
|
+
/**
|
|
21
|
+
* S3 bucket for deployed applications.
|
|
22
|
+
*
|
|
23
|
+
* @stability stable
|
|
24
|
+
*/
|
|
25
|
+
readonly bucketApps: s3.IBucket;
|
|
26
|
+
/**
|
|
27
|
+
* CloudFront Origin Access Identity for the deployed applications bucket.
|
|
28
|
+
*
|
|
29
|
+
* @stability stable
|
|
30
|
+
*/
|
|
31
|
+
readonly bucketAppsOAI: cf.OriginAccessIdentity;
|
|
32
|
+
/**
|
|
33
|
+
* S3 bucket for staged applications (prior to deploy).
|
|
34
|
+
*
|
|
35
|
+
* @stability stable
|
|
36
|
+
*/
|
|
37
|
+
readonly bucketAppsStaging: s3.IBucket;
|
|
38
|
+
/**
|
|
39
|
+
* API Gateway v2 HTTP for Router and app.
|
|
40
|
+
*
|
|
41
|
+
* @stability stable
|
|
42
|
+
*/
|
|
43
|
+
readonly httpApi: apigwy.HttpApi;
|
|
44
|
+
/**
|
|
45
|
+
* @stability stable
|
|
46
|
+
*/
|
|
9
47
|
readonly appEnv: string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
readonly
|
|
48
|
+
/**
|
|
49
|
+
* Optional asset name root.
|
|
50
|
+
*
|
|
51
|
+
* @default - resource names auto assigned
|
|
52
|
+
* @stability stable
|
|
53
|
+
* @example
|
|
54
|
+
*
|
|
55
|
+
* microapps
|
|
56
|
+
*/
|
|
57
|
+
readonly assetNameRoot?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Optional asset name suffix.
|
|
60
|
+
*
|
|
61
|
+
* @default none
|
|
62
|
+
* @stability stable
|
|
63
|
+
* @example
|
|
64
|
+
*
|
|
65
|
+
* -dev-pr-12
|
|
66
|
+
*/
|
|
67
|
+
readonly assetNameSuffix?: string;
|
|
68
|
+
/**
|
|
69
|
+
* @stability stable
|
|
70
|
+
*/
|
|
20
71
|
readonly s3StrictBucketPolicy?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* @stability stable
|
|
74
|
+
*/
|
|
21
75
|
readonly s3PolicyBypassAROAs?: string[];
|
|
76
|
+
/**
|
|
77
|
+
* @stability stable
|
|
78
|
+
*/
|
|
22
79
|
readonly s3PolicyBypassPrincipalARNs?: string[];
|
|
23
|
-
|
|
24
|
-
|
|
80
|
+
/**
|
|
81
|
+
* Path prefix on the root of the deployment.
|
|
82
|
+
*
|
|
83
|
+
* @default none
|
|
84
|
+
* @stability stable
|
|
85
|
+
* @example
|
|
86
|
+
*
|
|
87
|
+
* dev/
|
|
88
|
+
*/
|
|
89
|
+
readonly rootPathPrefix?: string;
|
|
25
90
|
}
|
|
26
|
-
|
|
27
|
-
|
|
91
|
+
/**
|
|
92
|
+
* @stability stable
|
|
93
|
+
*/
|
|
94
|
+
export interface IMicroAppsSvcs {
|
|
95
|
+
/**
|
|
96
|
+
* DynamoDB table used by Router, Deployer, and Release console app.
|
|
97
|
+
*
|
|
98
|
+
* @stability stable
|
|
99
|
+
*/
|
|
100
|
+
readonly table: dynamodb.ITable;
|
|
101
|
+
/**
|
|
102
|
+
* Lambda function for the Deployer.
|
|
103
|
+
*
|
|
104
|
+
* @stability stable
|
|
105
|
+
*/
|
|
106
|
+
readonly deployerFunc: lambda.IFunction;
|
|
28
107
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
108
|
+
/**
|
|
109
|
+
* @stability stable
|
|
110
|
+
*/
|
|
111
|
+
export declare class MicroAppsSvcs extends cdk.Construct implements IMicroAppsSvcs {
|
|
112
|
+
private _table;
|
|
113
|
+
/**
|
|
114
|
+
* DynamoDB table used by Router, Deployer, and Release console app.
|
|
115
|
+
*
|
|
116
|
+
* @stability stable
|
|
117
|
+
*/
|
|
118
|
+
get table(): dynamodb.ITable;
|
|
119
|
+
private _deployerFunc;
|
|
120
|
+
/**
|
|
121
|
+
* Lambda function for the Deployer.
|
|
122
|
+
*
|
|
123
|
+
* @stability stable
|
|
124
|
+
*/
|
|
125
|
+
get deployerFunc(): lambda.IFunction;
|
|
126
|
+
/**
|
|
127
|
+
* MicroApps - Create Lambda resources, DynamoDB, and grant S3 privs.
|
|
128
|
+
*
|
|
129
|
+
* @stability stable
|
|
130
|
+
*/
|
|
131
|
+
constructor(scope: cdk.Construct, id: string, props?: MicroAppsSvcsProps);
|
|
33
132
|
}
|
|
34
|
-
export {};
|