Class ParameterMapping

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apigatewayv2.ParameterMapping
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:43.312Z") @Stability(Experimental) public class ParameterMapping extends software.amazon.jsii.JsiiObject
(experimental) Represents a Parameter Mapping.

Example:

 import software.amazon.awscdk.services.apigatewayv2.integrations.HttpAlbIntegration;
 ApplicationLoadBalancer lb;
 ApplicationListener listener = lb.addListener("listener", BaseApplicationListenerProps.builder().port(80).build());
 listener.addTargets("target", AddApplicationTargetsProps.builder()
         .port(80)
         .build());
 HttpApi httpEndpoint = HttpApi.Builder.create(this, "HttpProxyPrivateApi")
         .defaultIntegration(HttpAlbIntegration.Builder.create("DefaultIntegration", listener)
                 .parameterMapping(new ParameterMapping().appendHeader("header2", MappingValue.requestHeader("header1")).removeHeader("header1"))
                 .build())
         .build();
 
  • Constructor Details

    • ParameterMapping

      protected ParameterMapping(software.amazon.jsii.JsiiObjectRef objRef)
    • ParameterMapping

      protected ParameterMapping(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • ParameterMapping

      @Stability(Experimental) public ParameterMapping()
  • Method Details

    • fromObject

      @Stability(Experimental) @NotNull public static ParameterMapping fromObject(@NotNull Map<String,? extends MappingValue> obj)
      (experimental) Creates a mapping from an object.

      Parameters:
      obj - This parameter is required.
    • appendHeader

      @Stability(Experimental) @NotNull public ParameterMapping appendHeader(@NotNull String name, @NotNull MappingValue value)
      (experimental) Creates a mapping to append a header.

      Parameters:
      name - This parameter is required.
      value - This parameter is required.
    • appendQueryString

      @Stability(Experimental) @NotNull public ParameterMapping appendQueryString(@NotNull String name, @NotNull MappingValue value)
      (experimental) Creates a mapping to append a query string.

      Parameters:
      name - This parameter is required.
      value - This parameter is required.
    • custom

      @Stability(Experimental) @NotNull public ParameterMapping custom(@NotNull String key, @NotNull String value)
      (experimental) Creates a custom mapping.

      Parameters:
      key - This parameter is required.
      value - This parameter is required.
    • overwriteHeader

      @Stability(Experimental) @NotNull public ParameterMapping overwriteHeader(@NotNull String name, @NotNull MappingValue value)
      (experimental) Creates a mapping to overwrite a header.

      Parameters:
      name - This parameter is required.
      value - This parameter is required.
    • overwritePath

      @Stability(Experimental) @NotNull public ParameterMapping overwritePath(@NotNull MappingValue value)
      (experimental) Creates a mapping to overwrite a path.

      Parameters:
      value - This parameter is required.
    • overwriteQueryString

      @Stability(Experimental) @NotNull public ParameterMapping overwriteQueryString(@NotNull String name, @NotNull MappingValue value)
      (experimental) Creates a mapping to overwrite a querystring.

      Parameters:
      name - This parameter is required.
      value - This parameter is required.
    • removeHeader

      @Stability(Experimental) @NotNull public ParameterMapping removeHeader(@NotNull String name)
      (experimental) Creates a mapping to remove a header.

      Parameters:
      name - This parameter is required.
    • removeQueryString

      @Stability(Experimental) @NotNull public ParameterMapping removeQueryString(@NotNull String name)
      (experimental) Creates a mapping to remove a querystring.

      Parameters:
      name - This parameter is required.
    • getMappings

      @Stability(Experimental) @NotNull public Map<String,String> getMappings()
      (experimental) Represents all created parameter mappings.