interface HeaderMatchMethodProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppMesh.CfnRoute.HeaderMatchMethodProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#CfnRoute_HeaderMatchMethodProperty |
Java | software.amazon.awscdk.services.appmesh.CfnRoute.HeaderMatchMethodProperty |
Python | aws_cdk.aws_appmesh.CfnRoute.HeaderMatchMethodProperty |
TypeScript | aws-cdk-lib » aws_appmesh » CfnRoute » HeaderMatchMethodProperty |
An object that represents the method and value to match with the header value sent in a request.
Specify one match method.
Example
// 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',
};
Properties
Name | Type | Description |
---|---|---|
exact? | string | The value sent by the client must match the specified value exactly. |
prefix? | string | The value sent by the client must begin with the specified characters. |
range? | IResolvable | Match | An object that represents the range of values to match on. |
regex? | string | The value sent by the client must include the specified characters. |
suffix? | string | The value sent by the client must end with the specified characters. |
exact?
Type:
string
(optional)
The value sent by the client must match the specified value exactly.
prefix?
Type:
string
(optional)
The value sent by the client must begin with the specified characters.
range?
Type:
IResolvable
|
Match
(optional)
An object that represents the range of values to match on.
regex?
Type:
string
(optional)
The value sent by the client must include the specified characters.
suffix?
Type:
string
(optional)
The value sent by the client must end with the specified characters.