We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d34c6cd commit 261dbd2Copy full SHA for 261dbd2
lib/stac-api/index.ts
@@ -15,6 +15,8 @@ import { HttpLambdaIntegration } from "@aws-cdk/aws-apigatewayv2-integrations-al
15
import { Construct } from "constructs";
16
17
export class PgStacApiLambda extends Construct {
18
+ readonly url: string;
19
+
20
constructor(scope: Construct, id: string, props: PgStacApiLambdaProps) {
21
super(scope, id);
22
@@ -58,9 +60,11 @@ export class PgStacApiLambda extends Construct {
58
60
defaultIntegration: new HttpLambdaIntegration("integration", handler),
59
61
});
62
63
+ this.url = stacApi.url!;
64
65
new CfnOutput(this, "stac-api-output", {
66
exportName: `${Stack.of(this).stackName}-url`,
- value: stacApi.url!,
67
+ value: this.url,
68
69
}
70
0 commit comments