Defines a {proxy+} greedy resource and an ANY method on a route.
import { ProxyResource } from 'aws-cdk-lib/aws-apigateway';Or use the module namespace:
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
// apigateway.ProxyResourceConfiguration passed to the constructor as ProxyResourceProps.
parentRequiredIResourceThe parent resource of this resource. You can either pass another `Resource` object or a `RestApi` object here.
ProxyResourceOptionsanyMethodOptionalinherited from ProxyResourceOptionsbooleanAdds an "ANY" method to this resource. If set to `false`, you will have to explicitly add methods to this resource after it's created.
Default: true
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