Class: Aws::AppMesh::Types::HttpRetryPolicy

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-appmesh/types.rb

Overview

Note:

When making an API call, you may pass HttpRetryPolicy data as a hash:

{
  http_retry_events: ["HttpRetryPolicyEvent"],
  max_retries: 1, # required
  per_retry_timeout: { # required
    unit: "ms", # accepts ms, s
    value: 1,
  },
  tcp_retry_events: ["connection-error"], # accepts connection-error
}

An object that represents a retry policy. Specify at least one value for at least one of the types of ‘RetryEvents`, a value for `maxRetries`, and a value for `perRetryTimeout`.

Instance Attribute Summary collapse

Instance Attribute Details

#http_retry_eventsArray<String>

Specify at least one of the following values.

  • server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511

  • gateway-error – HTTP status codes 502, 503, and 504

  • client-error – HTTP status code 409

  • stream-error – Retry on refused stream

Returns:

  • (Array<String>)


2591
2592
2593
2594
2595
2596
2597
# File 'lib/aws-sdk-appmesh/types.rb', line 2591

class HttpRetryPolicy < Struct.new(
  :http_retry_events,
  :max_retries,
  :per_retry_timeout,
  :tcp_retry_events)
  include Aws::Structure
end

#max_retriesInteger

The maximum number of retry attempts.

Returns:

  • (Integer)


2591
2592
2593
2594
2595
2596
2597
# File 'lib/aws-sdk-appmesh/types.rb', line 2591

class HttpRetryPolicy < Struct.new(
  :http_retry_events,
  :max_retries,
  :per_retry_timeout,
  :tcp_retry_events)
  include Aws::Structure
end

#per_retry_timeoutTypes::Duration

An object that represents a duration of time.

Returns:



2591
2592
2593
2594
2595
2596
2597
# File 'lib/aws-sdk-appmesh/types.rb', line 2591

class HttpRetryPolicy < Struct.new(
  :http_retry_events,
  :max_retries,
  :per_retry_timeout,
  :tcp_retry_events)
  include Aws::Structure
end

#tcp_retry_eventsArray<String>

Specify a valid value.

Returns:

  • (Array<String>)


2591
2592
2593
2594
2595
2596
2597
# File 'lib/aws-sdk-appmesh/types.rb', line 2591

class HttpRetryPolicy < Struct.new(
  :http_retry_events,
  :max_retries,
  :per_retry_timeout,
  :tcp_retry_events)
  include Aws::Structure
end