diff --git a/fastly/backend.go b/fastly/backend.go index 2192883fe..7550696aa 100644 --- a/fastly/backend.go +++ b/fastly/backend.go @@ -22,6 +22,8 @@ type Backend struct { Hostname *string `mapstructure:"hostname"` KeepAliveTime *int `mapstructure:"keepalive_time"` MaxConn *int `mapstructure:"max_conn"` + MaxUse *int `mapstructure:"max_use"` + MaxLifetime *int `mapstructure:"max_lifetime"` MaxTLSVersion *string `mapstructure:"max_tls_version"` MinTLSVersion *string `mapstructure:"min_tls_version"` Name *string `mapstructure:"name"` @@ -103,6 +105,10 @@ type CreateBackendInput struct { KeepAliveTime *int `url:"keepalive_time,omitempty"` // MaxConn is the maximum number of concurrent connections this backend will accept. MaxConn *int `url:"max_conn,omitempty"` + // MaxUse is the maximum number of times an HTTP keepalive connection can be used. `0` is unlimited. + MaxUse *int `url:"max_use,omitempty"` + // MaxLifetime is the upper bound in milliseconds for how long an HTTP keepalive connection can be open before it is no longer used. `0` is unlimited. + MaxLifetime *int `url:"max_lifetime,omitempty"` // MaxTLSVersion is the maximum allowed TLS version on SSL connections to this backend. MaxTLSVersion *string `url:"max_tls_version,omitempty"` // MinTLSVersion is the minimum allowed TLS version on SSL connections to this backend. @@ -236,6 +242,10 @@ type UpdateBackendInput struct { KeepAliveTime *int `url:"keepalive_time,omitempty"` // MaxConn is the maximum number of concurrent connections this backend will accept. MaxConn *int `url:"max_conn,omitempty"` + // MaxUse is the maximum number of times an HTTP keepalive connection can be used. `0` is unlimited. + MaxUse *int `url:"max_use,omitempty"` + // MaxLifetime is the upper bound in milliseconds for how long an HTTP keepalive connection can be open before it is no longer used. `0` is unlimited. + MaxLifetime *int `url:"max_lifetime,omitempty"` // MaxTLSVersion is the maximum allowed TLS version on SSL connections to this backend. MaxTLSVersion *string `url:"max_tls_version,omitempty"` // MinTLSVersion is the minimum allowed TLS version on SSL connections to this backend.