GrpcRetryPolicy

class aws_cdk.aws_appmesh.GrpcRetryPolicy(*, retry_attempts, retry_timeout, http_retry_events=None, tcp_retry_events=None, grpc_retry_events=None)

Bases: aws_cdk.aws_appmesh.HttpRetryPolicy

(experimental) gRPC retry policy.

Parameters
  • retry_attempts (Union[int, float]) – (experimental) The maximum number of retry attempts.

  • retry_timeout (Duration) – (experimental) The timeout for each retry attempt.

  • http_retry_events (Optional[Sequence[HttpRetryEvent]]) – (experimental) Specify HTTP events on which to retry. You must specify at least one value for at least one types of retry events. Default: - no retries for http events

  • tcp_retry_events (Optional[Sequence[TcpRetryEvent]]) – (experimental) TCP events on which to retry. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable. You must specify at least one value for at least one types of retry events. Default: - no retries for tcp events

  • grpc_retry_events (Optional[Sequence[GrpcRetryEvent]]) – (experimental) gRPC events on which to retry. You must specify at least one value for at least one types of retry events. Default: - no retries for gRPC events

Stability

experimental

Attributes

grpc_retry_events

(experimental) gRPC events on which to retry.

You must specify at least one value for at least one types of retry events.

Default
  • no retries for gRPC events

Stability

experimental

Return type

Optional[List[GrpcRetryEvent]]

http_retry_events

(experimental) Specify HTTP events on which to retry.

You must specify at least one value for at least one types of retry events.

Default
  • no retries for http events

Stability

experimental

Return type

Optional[List[HttpRetryEvent]]

retry_attempts

(experimental) The maximum number of retry attempts.

Stability

experimental

Return type

Union[int, float]

retry_timeout

(experimental) The timeout for each retry attempt.

Stability

experimental

Return type

Duration

tcp_retry_events

(experimental) TCP events on which to retry.

The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable. You must specify at least one value for at least one types of retry events.

Default
  • no retries for tcp events

Stability

experimental

Return type

Optional[List[TcpRetryEvent]]