Skip to content
v2.278.0

GatewayRouteHostnameMatchConfig Struct ​

Configuration for gateway route host name match.

Example ​

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 gatewayRouteHostnameMatchConfig: appmesh.GatewayRouteHostnameMatchConfig = {
  hostnameMatch: {
    exact: 'exact',
    suffix: 'suffix',
  },
};
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

gateway_route_hostname_match_config = appmesh.GatewayRouteHostnameMatchConfig(
    hostname_match=appmesh.CfnGatewayRoute.GatewayRouteHostnameMatchProperty(
        exact="exact",
        suffix="suffix"
    )
)
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.*;

GatewayRouteHostnameMatchConfig gatewayRouteHostnameMatchConfig = GatewayRouteHostnameMatchConfig.builder()
        .hostnameMatch(GatewayRouteHostnameMatchProperty.builder()
                .exact("exact")
                .suffix("suffix")
                .build())
        .build();
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 gatewayRouteHostnameMatchConfig = new GatewayRouteHostnameMatchConfig {
    HostnameMatch = new GatewayRouteHostnameMatchProperty {
        Exact = "exact",
        Suffix = "suffix"
    }
};
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"

gatewayRouteHostnameMatchConfig := &GatewayRouteHostnameMatchConfig{
	HostnameMatch: &GatewayRouteHostnameMatchProperty{
		Exact: jsii.String("exact"),
		Suffix: jsii.String("suffix"),
	},
}

Properties ​

GatewayRoute CFN configuration for host name match.