Interface IResourceOptions
- Namespace
- Amazon.CDK.AWS.APIGateway
- Assembly
- Amazon.CDK.AWS.APIGateway.dll
public interface IResourceOptions
Examples
Resource resource;
var subtree = resource.AddResource("subtree", new ResourceOptions {
DefaultCorsPreflightOptions = new CorsOptions {
AllowOrigins = new [] { "https://amazon.com" }
}
});
Remarks
ExampleMetadata: infused
Properties
DefaultCorsPreflightOptions
Adds a CORS preflight OPTIONS method to this resource and all child resources.
ICorsOptions? DefaultCorsPreflightOptions { get; }
Property Value
Remarks
You can add CORS at the resource-level using addCorsPreflight
.
Default: - CORS is disabled
DefaultIntegration
An integration to use as a default for all methods created within this API unless an integration is specified.
Integration? DefaultIntegration { get; }
Property Value
Remarks
Default: - Inherited from parent.
DefaultMethodOptions
Method options to use as a default for all methods created within this API unless custom options are specified.
IMethodOptions? DefaultMethodOptions { get; }
Property Value
Remarks
Default: - Inherited from parent.