RouteSpec¶
-
class
aws_cdk.aws_appmesh.
RouteSpec
¶ Bases:
object
(experimental) Used to generate specs with different protocols for a RouteSpec.
- Stability
experimental
- Stability
experimental
Methods
-
abstract
bind
(scope)¶ (experimental) Called when the GatewayRouteSpec type is initialized.
Can be used to enforce mutual exclusivity with future properties
- Parameters
scope (
Construct
) –- Stability
experimental
- Return type
Static Methods
-
classmethod
grpc
(*, match, weighted_targets, timeout=None)¶ (experimental) Creates a GRPC Based RouteSpec.
- Parameters
match (
GrpcRouteMatch
) – (experimental) The criterion for determining a request match for this Route.weighted_targets (
List
[WeightedTarget
]) – (experimental) List of targets that traffic is routed to when a request matches the route.timeout (
Optional
[GrpcTimeout
]) – (experimental) An object that represents a grpc timeout. Default: - None
- Stability
experimental
- Return type
-
classmethod
http
(*, weighted_targets, match=None, timeout=None)¶ (experimental) Creates an HTTP Based RouteSpec.
- Parameters
weighted_targets (
List
[WeightedTarget
]) – (experimental) List of targets that traffic is routed to when a request matches the route.match (
Optional
[HttpRouteMatch
]) – (experimental) The criterion for determining a request match for this Route. Default: - matches on ‘/’timeout (
Optional
[HttpTimeout
]) – (experimental) An object that represents a http timeout. Default: - None
- Stability
experimental
- Return type
-
classmethod
http2
(*, weighted_targets, match=None, timeout=None)¶ (experimental) Creates an HTTP2 Based RouteSpec.
- Parameters
weighted_targets (
List
[WeightedTarget
]) – (experimental) List of targets that traffic is routed to when a request matches the route.match (
Optional
[HttpRouteMatch
]) – (experimental) The criterion for determining a request match for this Route. Default: - matches on ‘/’timeout (
Optional
[HttpTimeout
]) – (experimental) An object that represents a http timeout. Default: - None
- Stability
experimental
- Return type
-
classmethod
tcp
(*, weighted_targets, timeout=None)¶ (experimental) Creates a TCP Based RouteSpec.
- Parameters
weighted_targets (
List
[WeightedTarget
]) – (experimental) List of targets that traffic is routed to when a request matches the route.timeout (
Optional
[TcpTimeout
]) – (experimental) An object that represents a tcp timeout. Default: - None
- Stability
experimental
- Return type