RuleRuleActionRedirectConfig

data class RuleRuleActionRedirectConfig(val host: String? = null, val httpCode: String? = null, val path: String? = null, val port: String? = null, val protocol: String? = null, val query: String? = null)

Constructors

Link copied to clipboard
constructor(host: String? = null, httpCode: String? = null, path: String? = null, port: String? = null, protocol: String? = null, query: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val host: String? = null

The host name of the destination to which requests are redirected within ALB. Valid values: The host name must be 3 to 128 characters in length, and can contain letters, digits, hyphens (-), periods (.), asterisks (), and question marks (?). The host name must contain at least one period (.), and cannot start or end with a period (.). The rightmost domain label can contain only letters, asterisks () and question marks (?) and cannot contain digits or hyphens (-). Other domain labels cannot start or end with a hyphen (-). You can include asterisks (*) and question marks (?) anywhere in a domain label. Default value: ${host}. You cannot use this value with other characters at the same time.

Link copied to clipboard
val httpCode: String? = null

The redirect method. Valid values: 301, 302, 303, 307, and 308.

Link copied to clipboard
val path: String? = null

The path to which requests are to be redirected within ALB. Valid values: The path must be 1 to 128 characters in length, and start with a forward slash (/). The path can contain letters, digits, asterisks (*), question marks (?)and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , ”. The path is case-sensitive. Default value: ${path}. This value can be used only once. You can use it with a valid string.

Link copied to clipboard
val port: String? = null

The port of the destination to which requests are redirected. Valid values: 1 to 63335. Default value: ${port}. You cannot use this value together with other characters at the same time.

Link copied to clipboard
val protocol: String? = null

The protocol of the requests to be redirected. Valid values: HTTP and HTTPS. Default value: ${protocol}. You cannot use this value together with other characters at the same time. Note HTTPS listeners can redirect only HTTPS requests.

Link copied to clipboard
val query: String? = null

The query string of the request to be redirected within ALB. The query string must be 1 to 128 characters in length, can contain letters and printable characters. It cannot contain the following special characters: # [ ] { } \ | <&. Default value: ${query}. This value can be used only once. You can use it with a valid string.