@Stability(value=Stable) public static final class ProxyResource.Builder extends Object implements software.amazon.jsii.Builder<ProxyResource>
ProxyResource.| Modifier and Type | Method and Description |
|---|---|
ProxyResource.Builder |
anyMethod(Boolean anyMethod)
Adds an "ANY" method to this resource.
|
ProxyResource |
build() |
static ProxyResource.Builder |
create(software.constructs.Construct scope,
String id) |
ProxyResource.Builder |
defaultCorsPreflightOptions(CorsOptions defaultCorsPreflightOptions)
Adds a CORS preflight OPTIONS method to this resource and all child resources.
|
ProxyResource.Builder |
defaultIntegration(Integration defaultIntegration)
An integration to use as a default for all methods created within this API unless an integration is specified.
|
ProxyResource.Builder |
defaultMethodOptions(MethodOptions defaultMethodOptions)
Method options to use as a default for all methods created within this API unless custom options are specified.
|
ProxyResource.Builder |
parent(IResource parent)
The parent resource of this resource.
|
@Stability(value=Stable) public static ProxyResource.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.ProxyResource.Builder.@Stability(value=Stable) public ProxyResource.Builder defaultCorsPreflightOptions(CorsOptions defaultCorsPreflightOptions)
You can add CORS at the resource-level using addCorsPreflight.
Default: - CORS is disabled
defaultCorsPreflightOptions - Adds a CORS preflight OPTIONS method to this resource and all child resources. This parameter is required.this@Stability(value=Stable) public ProxyResource.Builder defaultIntegration(Integration defaultIntegration)
Default: - Inherited from parent.
defaultIntegration - An integration to use as a default for all methods created within this API unless an integration is specified. This parameter is required.this@Stability(value=Stable) public ProxyResource.Builder defaultMethodOptions(MethodOptions defaultMethodOptions)
Default: - Inherited from parent.
defaultMethodOptions - Method options to use as a default for all methods created within this API unless custom options are specified. This parameter is required.this@Stability(value=Stable) public ProxyResource.Builder anyMethod(Boolean anyMethod)
If set to false, you will have to explicitly
add methods to this resource after it's created.
Default: true
anyMethod - Adds an "ANY" method to this resource. This parameter is required.this@Stability(value=Stable) public ProxyResource.Builder parent(IResource parent)
You can either pass another
Resource object or a RestApi object here.
parent - The parent resource of this resource. This parameter is required.this@Stability(value=Stable) public ProxyResource build()
build in interface software.amazon.jsii.Builder<ProxyResource>Copyright © 2022. All rights reserved.