# HttpRouteHeaderProperty

An object that represents the HTTP header in the request.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

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

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appmesh as appmesh

http_route_header_property = appmesh.CfnRoute.HttpRouteHeaderProperty(
    name="name",

    # the properties below are optional
    invert=False,
    match=appmesh.CfnRoute.HeaderMatchMethodProperty(
        exact="exact",
        prefix="prefix",
        range=appmesh.CfnRoute.MatchRangeProperty(
            end=123,
            start=123
        ),
        regex="regex",
        suffix="suffix"
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appmesh.*;

HttpRouteHeaderProperty httpRouteHeaderProperty = HttpRouteHeaderProperty.builder()
        .name("name")

        // the properties below are optional
        .invert(false)
        .match(HeaderMatchMethodProperty.builder()
                .exact("exact")
                .prefix("prefix")
                .range(MatchRangeProperty.builder()
                        .end(123)
                        .start(123)
                        .build())
                .regex("regex")
                .suffix("suffix")
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;

var httpRouteHeaderProperty = new HttpRouteHeaderProperty {
    Name = "name",

    // the properties below are optional
    Invert = false,
    Match = new HeaderMatchMethodProperty {
        Exact = "exact",
        Prefix = "prefix",
        Range = new MatchRangeProperty {
            End = 123,
            Start = 123
        },
        Regex = "regex",
        Suffix = "suffix"
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

httpRouteHeaderProperty := &HttpRouteHeaderProperty{
	Name: jsii.String("name"),

	// the properties below are optional
	Invert: jsii.Boolean(false),
	Match: &HeaderMatchMethodProperty{
		Exact: jsii.String("exact"),
		Prefix: jsii.String("prefix"),
		Range: &MatchRangeProperty{
			End: jsii.Number(123),
			Start: jsii.Number(123),
		},
		Regex: jsii.String("regex"),
		Suffix: jsii.String("suffix"),
	},
}
```

## Properties

- `invert`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specify `True` to match anything except the match criteria.

  The default value is `False` .

- `match`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRoute.HeaderMatchMethodProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnRoute.HeaderMatchMethodProperty.html) — The `HeaderMatchMethod` object.

- `name`: string (required) — A name for the HTTP header in the client request that will be matched on.
