aws-cdk-lib.aws_vpclattice.CfnRule.HeaderMatchProperty

interface HeaderMatchProperty

LanguageType name
.NETAmazon.CDK.AWS.VpcLattice.CfnRule.HeaderMatchProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsvpclattice#CfnRule_HeaderMatchProperty
Javasoftware.amazon.awscdk.services.vpclattice.CfnRule.HeaderMatchProperty
Pythonaws_cdk.aws_vpclattice.CfnRule.HeaderMatchProperty
TypeScript aws-cdk-lib » aws_vpclattice » CfnRule » HeaderMatchProperty

Describes the constraints for a header match.

Matches incoming requests with rule based on request header value before applying rule action.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_vpclattice as vpclattice } from 'aws-cdk-lib';
const headerMatchProperty: vpclattice.CfnRule.HeaderMatchProperty = {
  match: {
    contains: 'contains',
    exact: 'exact',
    prefix: 'prefix',
  },
  name: 'name',

  // the properties below are optional
  caseSensitive: false,
};

Properties

NameTypeDescription
matchIResolvable | HeaderMatchTypePropertyThe header match type.
namestringThe name of the header.
caseSensitive?boolean | IResolvableIndicates whether the match is case sensitive.

match

Type: IResolvable | HeaderMatchTypeProperty

The header match type.


name

Type: string

The name of the header.


caseSensitive?

Type: boolean | IResolvable (optional)

Indicates whether the match is case sensitive.

Defaults to false.