Class MappingValue
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apigatewayv2.MappingValue
- All Implemented Interfaces:
IMappingValue,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:43.310Z")
@Stability(Experimental)
public class MappingValue
extends software.amazon.jsii.JsiiObject
implements IMappingValue
(experimental) Represents a Mapping Value.
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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.apigatewayv2.IMappingValue
IMappingValue.Jsii$Default, IMappingValue.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MappingValue(experimental) Creates an empty mapping value. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMappingValue(String value) protectedMappingValue(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedMappingValue(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic MappingValuecontextVariable(String variableName) (experimental) Creates a context variable mapping value.static MappingValue(experimental) Creates a custom mapping value.getValue()(experimental) Represents a Mapping Value.static MappingValuerequestBody(String name) (experimental) Creates a request body mapping value.static MappingValuerequestHeader(String name) (experimental) Creates a header mapping value.static MappingValue(experimental) Creates a request path mapping value.static MappingValuerequestPathParam(String name) (experimental) Creates a request path parameter mapping value.static MappingValuerequestQueryString(String name) (experimental) Creates a query string mapping value.static MappingValuestageVariable(String variableName) (experimental) Creates a stage variable mapping value.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
NONE
(experimental) Creates an empty mapping value.
-
-
Constructor Details
-
MappingValue
protected MappingValue(software.amazon.jsii.JsiiObjectRef objRef) -
MappingValue
protected MappingValue(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
MappingValue
- Parameters:
value- This parameter is required.
-
-
Method Details
-
contextVariable
@Stability(Experimental) @NotNull public static MappingValue contextVariable(@NotNull String variableName) (experimental) Creates a context variable mapping value.- Parameters:
variableName- This parameter is required.
-
custom
(experimental) Creates a custom mapping value.- Parameters:
value- This parameter is required.
-
requestBody
(experimental) Creates a request body mapping value.- Parameters:
name- This parameter is required.
-
requestHeader
(experimental) Creates a header mapping value.- Parameters:
name- This parameter is required.
-
requestPath
(experimental) Creates a request path mapping value. -
requestPathParam
(experimental) Creates a request path parameter mapping value.- Parameters:
name- This parameter is required.
-
requestQueryString
@Stability(Experimental) @NotNull public static MappingValue requestQueryString(@NotNull String name) (experimental) Creates a query string mapping value.- Parameters:
name- This parameter is required.
-
stageVariable
@Stability(Experimental) @NotNull public static MappingValue stageVariable(@NotNull String variableName) (experimental) Creates a stage variable mapping value.- Parameters:
variableName- This parameter is required.
-
getValue
(experimental) Represents a Mapping Value.- Specified by:
getValuein interfaceIMappingValue
-