GatewayRouteSpec

class aws_cdk.aws_appmesh.GatewayRouteSpec

Bases: object

Used to generate specs with different protocols for a GatewayRoute.

Methods

abstract bind(scope)

Called when the GatewayRouteSpec type is initialized.

Can be used to enforce mutual exclusivity with future properties

Parameters

scope (Construct) –

Return type

GatewayRouteSpecConfig

Static Methods

classmethod grpc(*, match, route_target)

Creates an gRPC Based GatewayRoute.

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

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

Return type

GatewayRouteSpec

classmethod http(*, route_target, match=None)

Creates an HTTP Based GatewayRoute.

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

  • match (Optional[HttpGatewayRouteMatch]) – The criterion for determining a request match for this GatewayRoute. When path match is defined, this may optionally determine the path rewrite configuration. Default: - matches any path and automatically rewrites the path to ‘/’

Return type

GatewayRouteSpec

classmethod http2(*, route_target, match=None)

Creates an HTTP2 Based GatewayRoute.

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

  • match (Optional[HttpGatewayRouteMatch]) – The criterion for determining a request match for this GatewayRoute. When path match is defined, this may optionally determine the path rewrite configuration. Default: - matches any path and automatically rewrites the path to ‘/’

Return type

GatewayRouteSpec