ListenerRuleRuleCondition

data class ListenerRuleRuleCondition(val field: String? = null, val hostHeaderConfig: ListenerRuleHostHeaderConfig? = null, val httpHeaderConfig: ListenerRuleHttpHeaderConfig? = null, val httpRequestMethodConfig: ListenerRuleHttpRequestMethodConfig? = null, val pathPatternConfig: ListenerRulePathPatternConfig? = null, val queryStringConfig: ListenerRuleQueryStringConfig? = null, val sourceIpConfig: ListenerRuleSourceIpConfig? = null, val values: List<String>? = null)

Specifies a condition for a listener rule.

Constructors

Link copied to clipboard
constructor(field: String? = null, hostHeaderConfig: ListenerRuleHostHeaderConfig? = null, httpHeaderConfig: ListenerRuleHttpHeaderConfig? = null, httpRequestMethodConfig: ListenerRuleHttpRequestMethodConfig? = null, pathPatternConfig: ListenerRulePathPatternConfig? = null, queryStringConfig: ListenerRuleQueryStringConfig? = null, sourceIpConfig: ListenerRuleSourceIpConfig? = null, values: List<String>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val field: String? = null

The field in the HTTP request. The following are the possible values:

Link copied to clipboard

Information for a host header condition. Specify only when `Field` is `host-header`.

Link copied to clipboard

Information for an HTTP header condition. Specify only when `Field` is `http-header`.

Link copied to clipboard

Information for an HTTP method condition. Specify only when `Field` is `http-request-method`.

Link copied to clipboard

Information for a path pattern condition. Specify only when `Field` is `path-pattern`.

Link copied to clipboard

Information for a query string condition. Specify only when `Field` is `query-string`.

Link copied to clipboard

Information for a source IP condition. Specify only when `Field` is `source-ip`.

Link copied to clipboard
val values: List<String>? = null

The condition value. Specify only when `Field` is `host-header` or `path-pattern`. Alternatively, to specify multiple host names or multiple path patterns, use `HostHeaderConfig` or `PathPatternConfig`. If `Field` is `host-header` and you're not using `HostHeaderConfig`, you can specify a single host name (for example, my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following characters.