in pkg/cloudformation/cloudformation.go [174:200]
func buildAWSApiGatewayMethod(resourceLogicalName, path string) *resources.AWSApiGatewayMethod {
m := &resources.AWSApiGatewayMethod{
RequestParameters: map[string]bool{
"method.request.path.proxy": true,
},
AuthorizationType: "AWS_IAM",
HttpMethod: "ANY",
ResourceId: cfn.Ref(resourceLogicalName),
RestApiId: cfn.Ref("RestAPI"),
Integration: &resources.AWSApiGatewayMethod_Integration{
ConnectionId: cfn.Ref("VPCLink"),
ConnectionType: "VPC_LINK",
IntegrationHttpMethod: "ANY",
PassthroughBehavior: "WHEN_NO_MATCH",
RequestParameters: map[string]string{
"integration.request.path.proxy": "method.request.path.proxy",
"integration.request.header.Accept-Encoding": "'identity'",
},
Type: "HTTP_PROXY",
TimeoutInMillis: 29000,
Uri: cfn.Join("", []string{"http://", cfn.GetAtt("LoadBalancer", "DNSName"), path}),
},
}
m.SetDependsOn([]string{"LoadBalancer"})
return m
}