ag-common 0.0.407 → 0.0.409
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.
|
@@ -34,8 +34,10 @@ export declare const openApiImpl: (p: {
|
|
|
34
34
|
* A record will be created in hosted zone for the apigw on this path. if undefined, record wont be created
|
|
35
35
|
*/
|
|
36
36
|
r53?: {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
/** will create apigw domainname
|
|
38
|
+
* eg api.mydomain.com */
|
|
39
39
|
apiUrl: string;
|
|
40
|
+
/** if provided will add r53 record to apigw domainame */
|
|
41
|
+
hostedZone?: route53.IHostedZone;
|
|
40
42
|
};
|
|
41
43
|
}) => void;
|
|
@@ -26,12 +26,14 @@ const setUpApiGw = ({ stack, NODE_ENV, certificate, shortStackName, r53, cors =
|
|
|
26
26
|
securityPolicy: aws_cdk_lib_1.aws_apigateway.SecurityPolicy.TLS_1_2,
|
|
27
27
|
mapping: api,
|
|
28
28
|
});
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
if (r53.hostedZone) {
|
|
30
|
+
new aws_cdk_lib_1.aws_route53.ARecord(stack, 'ARecord', {
|
|
31
|
+
comment: '(cdk)',
|
|
32
|
+
recordName: r53.apiUrl.substring(0, r53.apiUrl.indexOf('.')),
|
|
33
|
+
zone: r53.hostedZone,
|
|
34
|
+
target: aws_cdk_lib_1.aws_route53.RecordTarget.fromAlias(new aws_cdk_lib_1.aws_route53_targets.ApiGatewayDomain(dn)),
|
|
35
|
+
});
|
|
36
|
+
}
|
|
35
37
|
}
|
|
36
38
|
return api;
|
|
37
39
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ag-common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.409",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"author": "Andrei Gec <@andreigec> (https://gec.dev/)",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@emotion/styled": "11.10.5",
|
|
52
52
|
"cross-env": "7.0.3",
|
|
53
53
|
"eslint-config-e7npm": "0.0.8",
|
|
54
|
-
"rimraf": "
|
|
54
|
+
"rimraf": "4.1.2"
|
|
55
55
|
},
|
|
56
56
|
"files": [
|
|
57
57
|
"dist/**/*",
|