AWS::ApiGateway::BasePathMappingV2The `AWS::ApiGateway::BasePathMappingV2` resource creates a base path that clients who call your API must use in the invocation URL. Supported only for private custom domain names.
import { CfnBasePathMappingV2 } from 'aws-cdk-lib/aws-apigateway';Or use the module namespace:
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
// apigateway.CfnBasePathMappingV2Configuration passed to the constructor as CfnBasePathMappingV2Props.
domainNameArnRequiredstringThe ARN of the domain name for the BasePathMappingV2 resource to be described.
restApiIdRequiredstringThe private API's identifier. This identifier is unique across all of your APIs in API Gateway.
basePathOptionalstringThe base path name that callers of the private API must provide as part of the URL after the domain name.
stageOptionalstringRepresents a unique identifier for a version of a deployed private RestApi that is callable by users. The Stage must depend on the `RestApi` 's stage. To create a dependency, add a DependsOn attribute to the BasePathMappingV2 resource.
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about Amazon API Gateway on one page. HD quality, print-friendly.
Download Free Infographicaws-apigatewayAWS::ApiGateway::BasePathMappingV2