File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -106,19 +106,18 @@ export class StacAuthProxyLambda extends Construct {
106106 constructor ( scope : Construct , id : string , props : StacAuthProxyLambdaProps ) {
107107 super ( scope , id ) ;
108108
109- const runtime = new StacAuthProxyLambdaRuntime ( this , "runtime" , {
110- vpc : props . vpc ,
111- subnetSelection : props . subnetSelection ,
112- apiEnv : props . apiEnv ,
113- upstreamUrl : props . upstreamUrl ,
114- oidcDiscoveryUrl : props . oidcDiscoveryUrl ,
115- lambdaFunctionOptions : props . lambdaFunctionOptions ,
116- } ) ;
109+ const { domainName, ...runtimeProps } = props ;
110+
111+ const runtime = new StacAuthProxyLambdaRuntime (
112+ this ,
113+ "runtime" ,
114+ runtimeProps
115+ ) ;
117116 this . lambdaFunction = runtime . lambdaFunction ;
118117
119118 const { api } = new LambdaApiGateway ( this , "stac-auth-proxy" , {
120119 lambdaFunction : runtime . lambdaFunction ,
121- domainName : props . domainName ,
120+ domainName,
122121 } ) ;
123122
124123 this . url = api . url ! ;
You can’t perform that action at this time.
0 commit comments