Bases: ResourceOptions
default_cors_preflight_options (Union
[CorsOptions
, Dict
[str
, Any
], None
]) â Adds 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
default_integration (Optional
[Integration
]) â An integration to use as a default for all methods created within this API unless an integration is specified. Default: - Inherited from parent.
default_method_options (Union
[MethodOptions
, Dict
[str
, Any
], None
]) â Method options to use as a default for all methods created within this API unless custom options are specified. Default: - Inherited from parent.
any_method (Optional
[bool
]) â Adds 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
infused
Example:
# resource: apigateway.Resource # handler: lambda.Function proxy = resource.add_proxy( default_integration=apigateway.LambdaIntegration(handler), # "false" will require explicitly adding methods on the `proxy` resource any_method=True )
Attributes
Adds an âANYâ method to this resource.
If set to false
, you will have to explicitly add methods to this resource after itâs created.
true
Adds a CORS preflight OPTIONS method to this resource and all child resources.
You can add CORS at the resource-level using addCorsPreflight
.
CORS is disabled
An integration to use as a default for all methods created within this API unless an integration is specified.
Inherited from parent.
Method options to use as a default for all methods created within this API unless custom options are specified.
Inherited from parent.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4