x-amazon-apigateway-any-method object
Specifies the OpenAPI Operation ObjectANY method in
an OpenAPI Path Item Object
The following table lists the properties extended by API Gateway. For the other OpenAPI Operation properties, see the OpenAPI specification.
| Property name | Type | Description |
|---|---|---|
x-amazon-apigateway-integration |
x-amazon-apigateway-integration object | Specifies the integration of the method with the backend. This is
an extended property of the OpenAPI
OperationAWS, AWS_PROXY, HTTP,
HTTP_PROXY, or MOCK. |
x-amazon-apigateway-any-method examples
The following example integrates the ANY method on a proxy resource,
{proxy+}, with a Lambda function,
TestSimpleProxy.
"/{proxy+}": { "x-amazon-apigateway-any-method": { "produces": [ "application/json" ], "parameters": [ { "name": "proxy", "in": "path", "required": true, "type": "string" } ], "responses": {}, "x-amazon-apigateway-integration": { "uri": "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:123456789012:function:TestSimpleProxy/invocations", "httpMethod": "POST", "type": "aws_proxy" }