From e5f5e590373951845bd65018d2b43f05b14bdf26 Mon Sep 17 00:00:00 2001 From: DavidSeptimus-Klotho Date: Thu, 16 Nov 2023 09:07:24 -0700 Subject: [PATCH] adds modelcase wrapper to API Integration requestParameters --- pkg/infra/iac3/templates/aws/api_integration/factory.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/infra/iac3/templates/aws/api_integration/factory.ts b/pkg/infra/iac3/templates/aws/api_integration/factory.ts index 9a48259ab..ca831991c 100644 --- a/pkg/infra/iac3/templates/aws/api_integration/factory.ts +++ b/pkg/infra/iac3/templates/aws/api_integration/factory.ts @@ -1,5 +1,6 @@ import * as aws from '@pulumi/aws' import * as pulumi from '@pulumi/pulumi' +import { ModelCaseWrapper } from '../../wrappers' interface Args { Name: string @@ -10,7 +11,7 @@ interface Args { Type: string ConnectionType: string VpcLink: aws.apigateway.VpcLink - RequestParameters: Record + RequestParameters: ModelCaseWrapper> Uri: pulumi.Output Route: string } @@ -46,6 +47,8 @@ function create(args: Args): aws.apigateway.Integration { function properties(object: aws.apigateway.Integration, args: Args) { return { - LbUri: pulumi.interpolate`http://${(args.Target as aws.lb.LoadBalancer).dnsName}${args.Route.replace("+", "")}`, + LbUri: pulumi.interpolate`http://${ + (args.Target as aws.lb.LoadBalancer).dnsName + }${args.Route.replace('+', '')}`, } }