AWS::ApiGateway::MethodThe AWS::ApiGateway::Method resource creates API Gateway methods that define the parameters and body that clients must send in their requests.
13 configurable properties. 3 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
HttpMethod | string | RequiredCreate-only |
ResourceId | string | RequiredCreate-only |
RestApiId | string | RequiredCreate-only |
ApiKeyRequired | boolean | |
AuthorizationScopes | Array<string> | |
AuthorizationType | string | |
AuthorizerId | string | |
Integration | Integration | |
MethodResponses | Array<MethodResponse> | |
OperationName | string | |
RequestModels | object | |
RequestParameters | object | |
RequestValidatorId | string |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ApiGateway::Method
Resources:
MyResource:
Type: AWS::ApiGateway::Method
Properties:
RestApiId: "my-restapiid"
ResourceId: "my-resourceid"
HttpMethod: "value"Permissions CloudFormation needs in your IAM role to manage this resource.
apigateway:GETapigateway:PUTapigateway:GETiam:PassRoleapigateway:GETapigateway:DELETEapigateway:PUTiam:PassRoleapigateway:DELETEEverything you need to know about ApiGateway on one page. HD quality, print-friendly.
Download Free InfographicRestApiIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
RestApiIdResourceIdHttpMethod