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: IAuthorizeroptional 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: Integrationoptional alternative integration for the proxy resource
OptionalenableDefaultCors: booleanset to false to disable automatic CORS preflight configuration
OptionalmockIntegration: Integrationoptional 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