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

RouteSpecConfig

Static Methods

classmethod grpc(*, match, weighted_targets, retry_policy=None, timeout=None, priority=None)

(experimental) Creates a GRPC Based RouteSpec.

Parameters
  • match (GrpcRouteMatch) – (experimental) The criterion for determining a request match for this Route.

  • weighted_targets (Sequence[WeightedTarget]) – (experimental) List of targets that traffic is routed to when a request matches the route.

  • retry_policy (Optional[GrpcRetryPolicy]) – (experimental) The retry policy. Default: - no retry policy

  • timeout (Optional[GrpcTimeout]) – (experimental) An object that represents a grpc timeout. Default: - None

  • priority (Union[int, float, None]) – (experimental) The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority. Default: - no particular priority

Stability

experimental

Return type

RouteSpec

classmethod http(*, weighted_targets, match=None, retry_policy=None, timeout=None, priority=None)

(experimental) Creates an HTTP Based RouteSpec.

Parameters
  • weighted_targets (Sequence[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 ‘/’

  • retry_policy (Optional[HttpRetryPolicy]) – (experimental) The retry policy. Default: - no retry policy

  • timeout (Optional[HttpTimeout]) – (experimental) An object that represents a http timeout. Default: - None

  • priority (Union[int, float, None]) – (experimental) The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority. Default: - no particular priority

Stability

experimental

Return type

RouteSpec

classmethod http2(*, weighted_targets, match=None, retry_policy=None, timeout=None, priority=None)

(experimental) Creates an HTTP2 Based RouteSpec.

Parameters
  • weighted_targets (Sequence[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 ‘/’

  • retry_policy (Optional[HttpRetryPolicy]) – (experimental) The retry policy. Default: - no retry policy

  • timeout (Optional[HttpTimeout]) – (experimental) An object that represents a http timeout. Default: - None

  • priority (Union[int, float, None]) – (experimental) The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority. Default: - no particular priority

Stability

experimental

Return type

RouteSpec

classmethod tcp(*, weighted_targets, timeout=None, priority=None)

(experimental) Creates a TCP Based RouteSpec.

Parameters
  • weighted_targets (Sequence[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

  • priority (Union[int, float, None]) – (experimental) The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority. Default: - no particular priority

Stability

experimental

Return type

RouteSpec