Skip to content

Commit

Permalink
adds modelcase wrapper to API Integration requestParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSeptimus-Klotho committed Nov 16, 2023
1 parent 14504e5 commit e5f5e59
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/infra/iac3/templates/aws/api_integration/factory.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as aws from '@pulumi/aws'
import * as pulumi from '@pulumi/pulumi'
import { ModelCaseWrapper } from '../../wrappers'

interface Args {
Name: string
Expand All @@ -10,7 +11,7 @@ interface Args {
Type: string
ConnectionType: string
VpcLink: aws.apigateway.VpcLink
RequestParameters: Record<string, string>
RequestParameters: ModelCaseWrapper<Record<string, string>>
Uri: pulumi.Output<string>
Route: string
}
Expand Down Expand Up @@ -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('+', '')}`,
}
}

0 comments on commit e5f5e59

Please sign in to comment.