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();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionprotected
ParameterMapping
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
ParameterMapping
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionappendHeader
(String name, MappingValue value) (experimental) Creates a mapping to append a header.appendQueryString
(String name, MappingValue value) (experimental) Creates a mapping to append a query string.(experimental) Creates a custom mapping.static ParameterMapping
fromObject
(Map<String, ? extends MappingValue> obj) (experimental) Creates a mapping from an object.(experimental) Represents all created parameter mappings.overwriteHeader
(String name, MappingValue value) (experimental) Creates a mapping to overwrite a header.overwritePath
(MappingValue value) (experimental) Creates a mapping to overwrite a path.overwriteQueryString
(String name, MappingValue value) (experimental) Creates a mapping to overwrite a querystring.removeHeader
(String name) (experimental) Creates a mapping to remove a header.removeQueryString
(String name) (experimental) Creates a mapping to remove a querystring.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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
(experimental) Creates a mapping to remove a header.- Parameters:
name
- This parameter is required.
-
removeQueryString
(experimental) Creates a mapping to remove a querystring.- Parameters:
name
- This parameter is required.
-
getMappings
(experimental) Represents all created parameter mappings.
-