RuleCondition

Information about a condition for a rule.

Each rule can optionally include up to one of each of the following conditions: http-request-method, host-header, path-pattern, and source-ip. Each rule can also optionally include one or more of each of the following conditions: http-header and query-string. Note that the value for a condition can't be empty.

For more information, see Quotas for your Application Load Balancers.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

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.

Functions

Link copied to clipboard
inline fun copy(block: RuleCondition.Builder.() -> Unit = {}): RuleCondition
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String