@Stability(value=Stable) public static final class BasePathMapping.Builder extends Object implements software.amazon.jsii.Builder<BasePathMapping>
BasePathMapping.| Modifier and Type | Method and Description |
|---|---|
BasePathMapping.Builder |
basePath(String basePath)
The base path name that callers of the API must provide in the URL after the domain name (e.g.
|
BasePathMapping |
build() |
static BasePathMapping.Builder |
create(software.constructs.Construct scope,
String id) |
BasePathMapping.Builder |
domainName(IDomainName domainName)
The DomainName to associate with this base path mapping.
|
BasePathMapping.Builder |
restApi(IRestApi restApi)
The RestApi resource to target.
|
BasePathMapping.Builder |
stage(Stage stage)
The Deployment stage of API [disable-awslint:ref-via-interface].
|
@Stability(value=Stable) public static BasePathMapping.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.BasePathMapping.Builder.@Stability(value=Stable) public BasePathMapping.Builder basePath(String basePath)
Default: - map requests from the domain root (e.g. `example.com`). If this is undefined, no additional mappings will be allowed on this domain name.
basePath - The base path name that callers of the API must provide in the URL after the domain name (e.g. `example.com/base-path`). If you specify this property, it can't be an empty string. This parameter is required.this@Stability(value=Stable) public BasePathMapping.Builder stage(Stage stage)
Default: - map to deploymentStage of restApi otherwise stage needs to pass in URL
stage - The Deployment stage of API [disable-awslint:ref-via-interface]. This parameter is required.this@Stability(value=Stable) public BasePathMapping.Builder domainName(IDomainName domainName)
domainName - The DomainName to associate with this base path mapping. This parameter is required.this@Stability(value=Stable) public BasePathMapping.Builder restApi(IRestApi restApi)
restApi - The RestApi resource to target. This parameter is required.this@Stability(value=Stable) public BasePathMapping build()
build in interface software.amazon.jsii.Builder<BasePathMapping>Copyright © 2022. All rights reserved.