Interface BasePathMappingOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
BasePathMappingProps
- All Known Implementing Classes:
BasePathMappingOptions.Jsii$Proxy,BasePathMappingProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:33.265Z")
@Stability(Stable)
public interface BasePathMappingOptions
extends software.amazon.jsii.JsiiSerializable
Example:
DomainName domain;
RestApi api1;
RestApi api2;
domain.addBasePathMapping(api1, BasePathMappingOptions.builder().basePath("go-to-api1").build());
domain.addBasePathMapping(api2, BasePathMappingOptions.builder().basePath("boom").build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forBasePathMappingOptionsstatic final classAn implementation forBasePathMappingOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default BooleanWhether to attach the base path mapping to a stage.default StringThe base path name that callers of the API must provide in the URL after the domain name (e.g.default StagegetStage()The Deployment stage of API [disable-awslint:ref-via-interface].Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAttachToStage
Whether to attach the base path mapping to a stage.Use this property to create a base path mapping without attaching it to the Rest API default stage. This property is ignored if
stageis provided.Default: - true
-
getBasePath
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.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.
-
getStage
The Deployment stage of API [disable-awslint:ref-via-interface].Default: - map to deploymentStage of restApi otherwise stage needs to pass in URL
-
builder
- Returns:
- a
BasePathMappingOptions.BuilderofBasePathMappingOptions
-