Create a new API mapping for API Gateway API endpoint.
import { ApiMapping } from 'aws-cdk-lib/aws-apigatewayv2';Or use the module namespace:
import * as apigatewayv2 from 'aws-cdk-lib/aws-apigatewayv2';
// apigatewayv2.ApiMappingConfiguration passed to the constructor as ApiMappingProps.
apiRequiredIApiRefThe Api to which this mapping is applied.
domainNameRequiredIDomainNameRefcustom domain name of the mapping target.
apiMappingKeyOptionalstringApi mapping key. The path where this stage should be mapped to on the domain
Default: - undefined for the root path mapping.
stageOptionalIStagestage for the ApiMapping resource required for WebSocket API defaults to default stage of an HTTP API.
Default: - Default stage of the passed API for HTTP API, required for WebSocket API
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-apigatewayv2