HttpRetryPolicy

public struct HttpRetryPolicy : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • 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
    

    Declaration

    Swift

    public let httpRetryEvents: [String]?
  • The maximum number of retry attempts.

    Declaration

    Swift

    public let maxRetries: Int64
  • An object that represents a duration of time.

    Declaration

    Swift

    public let perRetryTimeout: Duration
  • Specify a valid value.

    Declaration

    Swift

    public let tcpRetryEvents: [TcpRetryPolicyEvent]?
  • Undocumented

    Declaration

    Swift

    public init(httpRetryEvents: [String]? = nil, maxRetries: Int64, perRetryTimeout: Duration, tcpRetryEvents: [TcpRetryPolicyEvent]? = nil)
  • Declaration

    Swift

    public func validate(name: String) throws