Class: Aws::AppMesh::Types::GrpcRetryPolicy
- Inherits:
-
Struct
- Object
- Struct
- Aws::AppMesh::Types::GrpcRetryPolicy
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-appmesh/types.rb
Overview
When making an API call, you may pass GrpcRetryPolicy data as a hash:
{
grpc_retry_events: ["cancelled"], # accepts cancelled, deadline-exceeded, internal, resource-exhausted, unavailable
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
-
#grpc_retry_events ⇒ Array<String>
Specify at least one of the valid values.
-
#http_retry_events ⇒ Array<String>
Specify at least one of the following values.
-
#max_retries ⇒ Integer
The maximum number of retry attempts.
-
#per_retry_timeout ⇒ Types::Duration
An object that represents a duration of time.
-
#tcp_retry_events ⇒ Array<String>
Specify a valid value.
Instance Attribute Details
#grpc_retry_events ⇒ Array<String>
Specify at least one of the valid values.
306 307 308 309 310 311 312 313 |
# File 'lib/aws-sdk-appmesh/types.rb', line 306 class GrpcRetryPolicy < Struct.new( :grpc_retry_events, :http_retry_events, :max_retries, :per_retry_timeout, :tcp_retry_events) include Aws::Structure end |
#http_retry_events ⇒ Array<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
306 307 308 309 310 311 312 313 |
# File 'lib/aws-sdk-appmesh/types.rb', line 306 class GrpcRetryPolicy < Struct.new( :grpc_retry_events, :http_retry_events, :max_retries, :per_retry_timeout, :tcp_retry_events) include Aws::Structure end |
#max_retries ⇒ Integer
The maximum number of retry attempts.
306 307 308 309 310 311 312 313 |
# File 'lib/aws-sdk-appmesh/types.rb', line 306 class GrpcRetryPolicy < Struct.new( :grpc_retry_events, :http_retry_events, :max_retries, :per_retry_timeout, :tcp_retry_events) include Aws::Structure end |
#per_retry_timeout ⇒ Types::Duration
An object that represents a duration of time.
306 307 308 309 310 311 312 313 |
# File 'lib/aws-sdk-appmesh/types.rb', line 306 class GrpcRetryPolicy < Struct.new( :grpc_retry_events, :http_retry_events, :max_retries, :per_retry_timeout, :tcp_retry_events) include Aws::Structure end |
#tcp_retry_events ⇒ Array<String>
Specify a valid value.
306 307 308 309 310 311 312 313 |
# File 'lib/aws-sdk-appmesh/types.rb', line 306 class GrpcRetryPolicy < Struct.new( :grpc_retry_events, :http_retry_events, :max_retries, :per_retry_timeout, :tcp_retry_events) include Aws::Structure end |