@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.
@@ -1,34 +1,132 @@
1
1
  import * as apigwy from '@aws-cdk/aws-apigatewayv2';
2
- import * as acm from '@aws-cdk/aws-certificatemanager';
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
- import { IMicroAppsCFExports } from './MicroAppsCF';
5
- import { IMicroAppsS3Exports } from './MicroAppsS3';
6
- interface MicroAppsSvcsStackProps extends cdk.ResourceProps {
7
- readonly cfStackExports: IMicroAppsCFExports;
8
- readonly s3Exports: IMicroAppsS3Exports;
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
- readonly autoDeleteEverything: boolean;
11
- readonly reverseDomainName: string;
12
- readonly domainName: string;
13
- readonly domainNameEdge: string;
14
- readonly domainNameOrigin: string;
15
- readonly assetNameRoot: string;
16
- readonly assetNameSuffix: string;
17
- readonly certOrigin: acm.ICertificate;
18
- readonly r53ZoneName: string;
19
- readonly r53ZoneID: string;
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
- readonly account: string;
24
- readonly region: string;
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
- export interface IMicroAppsSvcsExports {
27
- readonly dnAppsOrigin: apigwy.DomainName;
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
- export declare class MicroAppsSvcs extends cdk.Construct implements IMicroAppsSvcsExports {
30
- private _dnAppsOrigin;
31
- get dnAppsOrigin(): apigwy.DomainName;
32
- constructor(scope: cdk.Construct, id: string, props?: MicroAppsSvcsStackProps);
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 {};