From 71b62d83b2df4b2804b8be4d50f13e0367918a70 Mon Sep 17 00:00:00 2001 From: Michael Henry Date: Tue, 4 Oct 2016 12:23:04 -0400 Subject: [PATCH] Allow new aws api-gateway integration types The added types are 'AWS_PROXY' for integrating with lambdas and 'HTTP_PROXY' for integrating via http. See http://docs.aws.amazon.com/apigateway/api-reference/resource/integration/ --- builtin/providers/aws/resource_aws_api_gateway_integration.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/providers/aws/resource_aws_api_gateway_integration.go b/builtin/providers/aws/resource_aws_api_gateway_integration.go index c745ef3b6d..90b2f3d240 100644 --- a/builtin/providers/aws/resource_aws_api_gateway_integration.go +++ b/builtin/providers/aws/resource_aws_api_gateway_integration.go @@ -45,9 +45,9 @@ func resourceAwsApiGatewayIntegration() *schema.Resource { Required: true, ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) { value := v.(string) - if value != "MOCK" && value != "AWS" && value != "HTTP" { + if value != "MOCK" && value != "AWS" && value != "HTTP" && value != "AWS_PROXY" && value != "HTTP_PROXY" { errors = append(errors, fmt.Errorf( - "%q must be one of 'AWS', 'MOCK', 'HTTP'", k)) + "%q must be one of 'AWS', 'MOCK', 'HTTP', 'AWS_PROXY', 'HTTP_PROXY'", k)) } return },