import { Resource } from 'aws-cdk-lib/aws-apigateway';Or use the module namespace:
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
// apigateway.ResourceConfiguration passed to the constructor as ResourceProps.
parentRequiredIResourceThe parent resource of this resource. You can either pass another `Resource` object or a `RestApi` object here.
pathPartRequiredstringA path name for the resource.
ResourceOptionsdefaultCorsPreflightOptionsOptionalinherited from ResourceOptionsCorsOptionsAdds a CORS preflight OPTIONS method to this resource and all child resources. You can add CORS at the resource-level using `addCorsPreflight`.
Default: - CORS is disabled
defaultIntegrationOptionalinherited from ResourceOptionsIntegrationAn integration to use as a default for all methods created within this API unless an integration is specified.
Default: - Inherited from parent.
defaultMethodOptionsOptionalinherited from ResourceOptionsMethodOptionsMethod options to use as a default for all methods created within this API unless custom options are specified.
Default: - Inherited from parent.
Everything you need to know about Amazon API Gateway on one page. HD quality, print-friendly.
Download Free Infographicaws-apigateway