GrpcGatewayRouteSpecOptions

class aws_cdk.aws_appmesh.GrpcGatewayRouteSpecOptions(*, match, route_target)

Bases: object

Properties specific for a gRPC GatewayRoute.

Parameters
  • match (GrpcGatewayRouteMatch) – The criterion for determining a request match for this GatewayRoute.

  • route_target (IVirtualService) – The VirtualService this GatewayRoute directs traffic to.

Example:

# gateway is of type VirtualGateway
# virtual_service is of type VirtualService


gateway.add_gateway_route("gateway-route-grpc",
    route_spec=appmesh.GatewayRouteSpec.grpc(
        route_target=virtual_service,
        match=appmesh.GrpcGatewayRouteMatch(
            hostname=appmesh.GatewayRouteHostnameMatch.ends_with(".example.com")
        )
    )
)

Attributes

match

The criterion for determining a request match for this GatewayRoute.

Return type

GrpcGatewayRouteMatch

route_target

The VirtualService this GatewayRoute directs traffic to.

Return type

IVirtualService