Class QueryParameterMatch
Used to generate query parameter matching methods.
Inheritance
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class QueryParameterMatch : DeputyBase
Syntax (vb)
Public MustInherit Class QueryParameterMatch
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
VirtualRouter router;
VirtualNode node;
router.AddRoute("route-http2", new RouteBaseProps {
RouteSpec = RouteSpec.Http2(new HttpRouteSpecOptions {
WeightedTargets = new [] { new WeightedTarget {
VirtualNode = node
} },
Match = new HttpRouteMatch {
Path = HttpRoutePathMatch.Exactly("/exact"),
Method = HttpRouteMethod.POST,
Protocol = HttpRouteProtocol.HTTPS,
Headers = new [] { HeaderMatch.ValueIs("Content-Type", "application/json"), HeaderMatch.ValueIsNot("Content-Type", "application/json") },
QueryParameters = new [] { QueryParameterMatch.ValueIs("query-field", "value") }
}
})
});
Synopsis
Constructors
QueryParameterMatch() | |
QueryParameterMatch(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
QueryParameterMatch(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(Construct) | Returns the query parameter match configuration. |
ValueIs(String, String) | The value of the query parameter with the given name in the request must match the specified value exactly. |
Constructors
QueryParameterMatch()
protected QueryParameterMatch()
QueryParameterMatch(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected QueryParameterMatch(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
QueryParameterMatch(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected QueryParameterMatch(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(Construct)
Returns the query parameter match configuration.
public abstract IQueryParameterMatchConfig Bind(Construct scope)
Parameters
- scope Constructs.Construct
Returns
ValueIs(String, String)
The value of the query parameter with the given name in the request must match the specified value exactly.
public static QueryParameterMatch ValueIs(string queryParameterName, string queryParameterValue)
Parameters
- queryParameterName System.String
the name of the query parameter to match against.
- queryParameterValue System.String
The exact value to test against.
Returns