Interface ApiMappingProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ApiMappingProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-24T21:00:24.975Z") @Stability(Stable) public interface ApiMappingProps extends software.amazon.jsii.JsiiSerializable
Properties used to create the ApiMapping resource.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.apigatewayv2.*;
 IApi api;
 DomainName domainName;
 IStage stage;
 ApiMappingProps apiMappingProps = ApiMappingProps.builder()
         .api(api)
         .domainName(domainName)
         // the properties below are optional
         .apiMappingKey("apiMappingKey")
         .stage(stage)
         .build();
 
  • Method Details

    • getApi

      @Stability(Stable) @NotNull IApi getApi()
      The Api to which this mapping is applied.
    • getDomainName

      @Stability(Stable) @NotNull IDomainName getDomainName()
      custom domain name of the mapping target.
    • getApiMappingKey

      @Stability(Stable) @Nullable default String getApiMappingKey()
      Api mapping key.

      The path where this stage should be mapped to on the domain

      Default: - undefined for the root path mapping.

    • getStage

      @Stability(Stable) @Nullable default IStage getStage()
      stage 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

    • builder

      @Stability(Stable) static ApiMappingProps.Builder builder()
      Returns:
      a ApiMappingProps.Builder of ApiMappingProps