Class BasePathMapping
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.apigateway.BasePathMapping
- All Implemented Interfaces:
IEnvironmentAware,IResource,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:04.071Z")
@Stability(Stable)
public class BasePathMapping
extends Resource
This resource creates a base path that clients who call your API must use in the invocation URL.
Unless you're importing a domain with DomainName.fromDomainNameAttributes(),
you can use DomainName.addBasePathMapping() to define mappings.
Example:
RestApi api;
IDomainName domainName = DomainName.fromDomainNameAttributes(this, "DomainName", DomainNameAttributes.builder()
.domainName("domainName")
.domainNameAliasHostedZoneId("domainNameAliasHostedZoneId")
.domainNameAliasTarget("domainNameAliasTarget")
.build());
BasePathMapping.Builder.create(this, "BasePathMapping")
.domainName(domainName)
.restApi(api)
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBasePathMapping(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedBasePathMapping(software.amazon.jsii.JsiiObjectRef objRef) BasePathMapping(software.constructs.Construct scope, String id, BasePathMappingProps props) -
Method Summary
Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
BasePathMapping
protected BasePathMapping(software.amazon.jsii.JsiiObjectRef objRef) -
BasePathMapping
protected BasePathMapping(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
BasePathMapping
@Stability(Stable) public BasePathMapping(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull BasePathMappingProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-