Class MappingValue
(experimental) Represents a Mapping Value.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.APIGatewayv2
Assembly: Amazon.CDK.AWS.APIGatewayv2.dll
Syntax (csharp)
public class MappingValue : DeputyBase, IMappingValue
Syntax (vb)
Public Class MappingValue
Inherits DeputyBase
Implements IMappingValue
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.APIGatewayv2.Integrations;
ApplicationLoadBalancer lb;
var listener = lb.AddListener("listener", new BaseApplicationListenerProps { Port = 80 });
listener.AddTargets("target", new AddApplicationTargetsProps {
Port = 80
});
var httpEndpoint = new HttpApi(this, "HttpProxyPrivateApi", new HttpApiProps {
DefaultIntegration = new HttpAlbIntegration("DefaultIntegration", listener, new HttpAlbIntegrationProps {
ParameterMapping = new ParameterMapping().AppendHeader("header2", MappingValue.RequestHeader("header1")).RemoveHeader("header1")
})
});
Synopsis
Constructors
MappingValue(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
MappingValue(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
MappingValue(String) |
Properties
NONE | (experimental) Creates an empty mapping value. |
Value | (experimental) Represents a Mapping Value. |
Methods
ContextVariable(String) | (experimental) Creates a context variable mapping value. |
Custom(String) | (experimental) Creates a custom mapping value. |
RequestBody(String) | (experimental) Creates a request body mapping value. |
RequestHeader(String) | (experimental) Creates a header mapping value. |
RequestPath() | (experimental) Creates a request path mapping value. |
RequestPathParam(String) | (experimental) Creates a request path parameter mapping value. |
RequestQueryString(String) | (experimental) Creates a query string mapping value. |
StageVariable(String) | (experimental) Creates a stage variable mapping value. |
Constructors
MappingValue(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected MappingValue(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
MappingValue(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected MappingValue(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
MappingValue(String)
public MappingValue(string value)
Parameters
- value System.String
Remarks
Stability: Experimental
Properties
NONE
(experimental) Creates an empty mapping value.
public static MappingValue NONE { get; }
Property Value
Remarks
Stability: Experimental
Value
(experimental) Represents a Mapping Value.
public virtual string Value { get; }
Property Value
System.String
Remarks
Stability: Experimental
Methods
ContextVariable(String)
(experimental) Creates a context variable mapping value.
public static MappingValue ContextVariable(string variableName)
Parameters
- variableName System.String
Returns
Remarks
Stability: Experimental
Custom(String)
(experimental) Creates a custom mapping value.
public static MappingValue Custom(string value)
Parameters
- value System.String
Returns
Remarks
Stability: Experimental
RequestBody(String)
(experimental) Creates a request body mapping value.
public static MappingValue RequestBody(string name)
Parameters
- name System.String
Returns
Remarks
Stability: Experimental
RequestHeader(String)
(experimental) Creates a header mapping value.
public static MappingValue RequestHeader(string name)
Parameters
- name System.String
Returns
Remarks
Stability: Experimental
RequestPath()
(experimental) Creates a request path mapping value.
public static MappingValue RequestPath()
Returns
Remarks
Stability: Experimental
RequestPathParam(String)
(experimental) Creates a request path parameter mapping value.
public static MappingValue RequestPathParam(string name)
Parameters
- name System.String
Returns
Remarks
Stability: Experimental
RequestQueryString(String)
(experimental) Creates a query string mapping value.
public static MappingValue RequestQueryString(string name)
Parameters
- name System.String
Returns
Remarks
Stability: Experimental
StageVariable(String)
(experimental) Creates a stage variable mapping value.
public static MappingValue StageVariable(string variableName)
Parameters
- variableName System.String
Returns
Remarks
Stability: Experimental