aws-cdk-lib.aws_appmesh.CfnGatewayRoute.HttpGatewayRouteHeaderProperty

interface HttpGatewayRouteHeaderProperty

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

An object that represents the HTTP header in the gateway route.

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 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',
  },
};

Properties

NameTypeDescription
namestringA name for the HTTP header in the gateway route that will be matched on.
invert?boolean | IResolvableSpecify True to match anything except the match criteria.
match?IResolvable | HttpGatewayRouteHeaderMatchPropertyAn object that represents the method and value to match with the header value sent in a request.

name

Type: string

A name for the HTTP header in the gateway route 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 | HttpGatewayRouteHeaderMatchProperty (optional)

An object that represents the method and value to match with the header value sent in a request.

Specify one match method.