@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.207Z") @Stability(value=Stable) public interface ResourceOptions extends software.amazon.jsii.JsiiSerializable
Resource resource;
Resource subtree = resource.addResource("subtree", ResourceOptions.builder()
.defaultCorsPreflightOptions(CorsOptions.builder()
.allowOrigins(List.of("https://amazon.com"))
.build())
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
ResourceOptions.Builder
A builder for
ResourceOptions |
static class |
ResourceOptions.Jsii$Proxy
An implementation for
ResourceOptions |
| Modifier and Type | Method and Description |
|---|---|
static ResourceOptions.Builder |
builder() |
default CorsOptions |
getDefaultCorsPreflightOptions()
Adds a CORS preflight OPTIONS method to this resource and all child resources.
|
default Integration |
getDefaultIntegration()
An integration to use as a default for all methods created within this API unless an integration is specified.
|
default MethodOptions |
getDefaultMethodOptions()
Method options to use as a default for all methods created within this API unless custom options are specified.
|
@Stability(value=Stable) @Nullable default CorsOptions getDefaultCorsPreflightOptions()
You can add CORS at the resource-level using addCorsPreflight.
Default: - CORS is disabled
@Stability(value=Stable) @Nullable default Integration getDefaultIntegration()
Default: - Inherited from parent.
@Stability(value=Stable) @Nullable default MethodOptions getDefaultMethodOptions()
Default: - Inherited from parent.
@Stability(value=Stable) static ResourceOptions.Builder builder()
ResourceOptions.Builder of ResourceOptionsCopyright © 2022. All rights reserved.