aws-cdk-lib.aws_appmesh.CfnRoute.HeaderMatchMethodProperty

interface HeaderMatchMethodProperty

LanguageType name
.NETAmazon.CDK.AWS.AppMesh.CfnRoute.HeaderMatchMethodProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#CfnRoute_HeaderMatchMethodProperty
Javasoftware.amazon.awscdk.services.appmesh.CfnRoute.HeaderMatchMethodProperty
Pythonaws_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

NameTypeDescription
exact?stringThe value sent by the client must match the specified value exactly.
prefix?stringThe value sent by the client must begin with the specified characters.
range?IResolvable | MatchRangePropertyAn object that represents the range of values to match on.
regex?stringThe value sent by the client must include the specified characters.
suffix?stringThe 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 | MatchRangeProperty (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.