HttpRetryPolicy

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

Bases: object

HTTP retry policy.

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

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

  • http_retry_events (Optional[Sequence[HttpRetryEvent]]) – 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]]) – 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

Attributes

http_retry_events

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

Return type

Optional[List[HttpRetryEvent]]

retry_attempts

The maximum number of retry attempts.

Return type

Union[int, float]

retry_timeout

The timeout for each retry attempt.

Return type

Duration

tcp_retry_events

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

Return type

Optional[List[TcpRetryEvent]]