aws-cdk-lib.aws_appmesh.CfnRoute.HttpRouteHeaderProperty

interface HttpRouteHeaderProperty

LanguageType name
.NETAmazon.CDK.AWS.AppMesh.CfnRoute.HttpRouteHeaderProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#CfnRoute_HttpRouteHeaderProperty
Javasoftware.amazon.awscdk.services.appmesh.CfnRoute.HttpRouteHeaderProperty
Pythonaws_cdk.aws_appmesh.CfnRoute.HttpRouteHeaderProperty
TypeScript aws-cdk-lib » aws_appmesh » CfnRoute » HttpRouteHeaderProperty

An object that represents the HTTP header in the request.

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 httpRouteHeaderProperty: appmesh.CfnRoute.HttpRouteHeaderProperty = {
  name: 'name',

  // the properties below are optional
  invert: false,
  match: {
    exact: 'exact',
    prefix: 'prefix',
    range: {
      end: 123,
      start: 123,
    },
    regex: 'regex',
    suffix: 'suffix',
  },
};

Properties

NameTypeDescription
namestringA name for the HTTP header in the client request that will be matched on.
invert?boolean | IResolvableSpecify True to match anything except the match criteria.
match?IResolvable | HeaderMatchMethodPropertyThe HeaderMatchMethod object.

name

Type: string

A name for the HTTP header in the client request that will be matched on.


invert?

Type: boolean | IResolvable (optional)

Specify True to match anything except the match criteria.

The default value is False .


match?

Type: IResolvable | HeaderMatchMethodProperty (optional)

The HeaderMatchMethod object.