import { Method } from 'aws-cdk-lib/aws-apigateway';Or use the module namespace:
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
// apigateway.MethodConfiguration passed to the constructor as MethodProps.
httpMethodRequiredstringThe HTTP method ("GET", "POST", "PUT", ...) that clients use to call this method.
resourceRequiredIResourceThe resource this method is associated with. For root resource methods, specify the `RestApi` object.
integrationOptionalIntegrationThe backend system that the method calls when it receives a request.
Default: - a new `MockIntegration`.
optionsOptionalMethodOptionsMethod options.
Default: - No options.
Everything you need to know about Amazon API Gateway on one page. HD quality, print-friendly.
Download Free Infographicaws-apigateway