aws-cdk-lib.aws_appmesh.GatewayRouteHostnameMatch

class GatewayRouteHostnameMatch

LanguageType name
.NETAmazon.CDK.AWS.AppMesh.GatewayRouteHostnameMatch
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#GatewayRouteHostnameMatch
Javasoftware.amazon.awscdk.services.appmesh.GatewayRouteHostnameMatch
Pythonaws_cdk.aws_appmesh.GatewayRouteHostnameMatch
TypeScript (source)aws-cdk-lib » aws_appmesh » GatewayRouteHostnameMatch

Used to generate host name matching methods.

Example

declare const gateway: appmesh.VirtualGateway;
declare const virtualService: appmesh.VirtualService;

gateway.addGatewayRoute('gateway-route-grpc', {
  routeSpec: appmesh.GatewayRouteSpec.grpc({
    routeTarget: virtualService,
    match: {
      hostname: appmesh.GatewayRouteHostnameMatch.endsWith('.example.com'),
    },
  }),
});

Initializer

new GatewayRouteHostnameMatch()

Methods

NameDescription
bind(scope)Returns the gateway route host name match configuration.
static endsWith(suffix)The value of the host name with the given name must end with the specified characters.
static exactly(name)The value of the host name must match the specified value exactly.

bind(scope)

public bind(scope: Construct): GatewayRouteHostnameMatchConfig

Parameters

  • scope Construct

Returns

  • GatewayRouteHostnameMatchConfig

Returns the gateway route host name match configuration.


static endsWith(suffix)

public static endsWith(suffix: string): GatewayRouteHostnameMatch

Parameters

  • suffix string — The specified ending characters of the host name to match on.

Returns

  • GatewayRouteHostnameMatch

The value of the host name with the given name must end with the specified characters.


static exactly(name)

public static exactly(name: string): GatewayRouteHostnameMatch

Parameters

  • name string — The exact host name to match on.

Returns

  • GatewayRouteHostnameMatch

The value of the host name must match the specified value exactly.