Skip to content

Commit 71b62d8

Browse files
author
Michael Henry
committed
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/
1 parent a879323 commit 71b62d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

builtin/providers/aws/resource_aws_api_gateway_integration.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ func resourceAwsApiGatewayIntegration() *schema.Resource {
4545
Required: true,
4646
ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
4747
value := v.(string)
48-
if value != "MOCK" && value != "AWS" && value != "HTTP" {
48+
if value != "MOCK" && value != "AWS" && value != "HTTP" && value != "AWS_PROXY" && value != "HTTP_PROXY" {
4949
errors = append(errors, fmt.Errorf(
50-
"%q must be one of 'AWS', 'MOCK', 'HTTP'", k))
50+
"%q must be one of 'AWS', 'MOCK', 'HTTP', 'AWS_PROXY', 'HTTP_PROXY'", k))
5151
}
5252
return
5353
},

0 commit comments

Comments
 (0)