HeaderMatchConfig

class aws_cdk.aws_appmesh.HeaderMatchConfig(*, header_match)

Bases: object

Configuration for HeaderMatch.

Parameters:

header_match (Union[HttpRouteHeaderProperty, Dict[str, Any]]) – Route CFN configuration for the route header match.

ExampleMetadata:

fixture=_generated

Example:

# 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

header_match_config = appmesh.HeaderMatchConfig(
    header_match=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"
        )
    )
)

Attributes

header_match

Route CFN configuration for the route header match.