scoped id of the resource
scope in which this resource is defined
the REST API to create a deployment for
scoped id of the resource
scope in which this resource is defined
the domain name to use
the certificate used for custom restApi domain
scoped id of the resource
scope in which this resource is defined
the parent API resource to attach this resource to
the URL path segment for this resource
the backend integration for methods on this resource
whether to create a greedy proxy child resource ({path+})
Optionalauthorizer: IAuthorizer
optional authorizer for the methods
OptionalallowedOrigins: string[]
optional CORS allowed origins (defaults to all origins)
OptionalallowedMethods: string[]
optional CORS allowed methods (defaults to all methods)
OptionalallowedHeaders: string[]
optional CORS allowed headers (defaults to default headers)
OptionalmethodRequestParameters: { [param: string]: boolean }
optional request parameter mappings for methods
OptionalproxyIntegration: Integration
optional alternative integration for the proxy resource
OptionalenableDefaultCors: boolean
set to false to disable automatic CORS preflight configuration
OptionalmockIntegration: Integration
optional mock integration for OPTIONS when CORS is disabled
OptionalmockMethodResponses: MethodResponse[]
optional method responses for the mock OPTIONS integration
scoped id of the resource
scope in which this resource is defined
lambda rest restApi props
the Lambda function to use as the backend handler
Provides operations on AWS API Gateway.
Example
See
[CDK API Gateway Module]https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway-readme.html