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/
This commit is contained in:
parent
a879323d23
commit
71b62d83b2
|
@ -45,9 +45,9 @@ func resourceAwsApiGatewayIntegration() *schema.Resource {
|
||||||
Required: true,
|
Required: true,
|
||||||
ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
|
ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
|
||||||
value := v.(string)
|
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(
|
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
|
return
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue