HttpGatewayRouteHeaderProperty Struct
An object that represents the HTTP header in the gateway route.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const httpGatewayRouteHeaderProperty: appmesh.CfnGatewayRoute.HttpGatewayRouteHeaderProperty = {
name: 'name',
// the properties below are optional
invert: false,
match: {
exact: 'exact',
prefix: 'prefix',
range: {
end: 123,
start: 123,
},
regex: 'regex',
suffix: 'suffix',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appmesh as appmesh
http_gateway_route_header_property = appmesh.CfnGatewayRoute.HttpGatewayRouteHeaderProperty(
name="name",
# the properties below are optional
invert=False,
match=appmesh.CfnGatewayRoute.HttpGatewayRouteHeaderMatchProperty(
exact="exact",
prefix="prefix",
range=appmesh.CfnGatewayRoute.GatewayRouteRangeMatchProperty(
end=123,
start=123
),
regex="regex",
suffix="suffix"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appmesh.*;
HttpGatewayRouteHeaderProperty httpGatewayRouteHeaderProperty = HttpGatewayRouteHeaderProperty.builder()
.name("name")
// the properties below are optional
.invert(false)
.match(HttpGatewayRouteHeaderMatchProperty.builder()
.exact("exact")
.prefix("prefix")
.range(GatewayRouteRangeMatchProperty.builder()
.end(123)
.start(123)
.build())
.regex("regex")
.suffix("suffix")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;
var httpGatewayRouteHeaderProperty = new HttpGatewayRouteHeaderProperty {
Name = "name",
// the properties below are optional
Invert = false,
Match = new HttpGatewayRouteHeaderMatchProperty {
Exact = "exact",
Prefix = "prefix",
Range = new GatewayRouteRangeMatchProperty {
End = 123,
Start = 123
},
Regex = "regex",
Suffix = "suffix"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
httpGatewayRouteHeaderProperty := &HttpGatewayRouteHeaderProperty{
Name: jsii.String("name"),
// the properties below are optional
Invert: jsii.Boolean(false),
Match: &HttpGatewayRouteHeaderMatchProperty{
Exact: jsii.String("exact"),
Prefix: jsii.String("prefix"),
Range: &GatewayRouteRangeMatchProperty{
End: jsii.Number(123),
Start: jsii.Number(123),
},
Regex: jsii.String("regex"),
Suffix: jsii.String("suffix"),
},
}
Properties
invertoptionalboolean | IResolvableinvertoptionaltyping.Union[bool, IResolvable]invertoptionalBooleanInvertoptionalboolInvertoptionalinterface{} #Specify `True` to match anything except the match criteria.
The default value is False .
matchoptionalIResolvable | CfnGatewayRoute.matchoptionaltyping.Union[IResolvable, HttpGatewayRouteHeaderMatchProperty]matchoptionalIResolvableMatchoptionalIResolvableMatchoptionalinterface{} #An object that represents the method and value to match with the header value sent in a request.
Specify one match method.
A name for the HTTP header in the gateway route that will be matched on.