HeaderMatchMethodProperty Struct
An object that represents the method and value to match with the header value sent in a request.
Specify one match method.
| 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 headerMatchMethodProperty: appmesh.CfnRoute.HeaderMatchMethodProperty = {
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
header_match_method_property = appmesh.CfnRoute.HeaderMatchMethodProperty(
exact="exact",
prefix="prefix",
range=appmesh.CfnRoute.MatchRangeProperty(
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.*;
HeaderMatchMethodProperty headerMatchMethodProperty = HeaderMatchMethodProperty.builder()
.exact("exact")
.prefix("prefix")
.range(MatchRangeProperty.builder()
.end(123)
.start(123)
.build())
.regex("regex")
.suffix("suffix")
.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 headerMatchMethodProperty = new HeaderMatchMethodProperty {
Exact = "exact",
Prefix = "prefix",
Range = new MatchRangeProperty {
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"
headerMatchMethodProperty := &HeaderMatchMethodProperty{
Exact: jsii.String("exact"),
Prefix: jsii.String("prefix"),
Range: &MatchRangeProperty{
End: jsii.Number(123),
Start: jsii.Number(123),
},
Regex: jsii.String("regex"),
Suffix: jsii.String("suffix"),
}
Properties
The value sent by the client must match the specified value exactly.
prefixoptionalstringprefixoptionalstrprefixoptionalStringPrefixoptionalstringPrefixoptional*string #The value sent by the client must begin with the specified characters.
rangeoptionalIResolvable | CfnRoute.MatchRangePropertyrangeoptionaltyping.Union[IResolvable, MatchRangeProperty]rangeoptionalIResolvableRangeoptionalIResolvableRangeoptionalinterface{} #An object that represents the range of values to match on.
The value sent by the client must include the specified characters.
suffixoptionalstringsuffixoptionalstrsuffixoptionalStringSuffixoptionalstringSuffixoptional*string #The value sent by the client must end with the specified characters.