AWS CloudFormation
User Guide (API Version 2010-05-15)

Elastic Load Balancing Listener RedirectConfig

The RedirectConfig property type specifies information about a redirect action.

RedirectConfig is a property of the Elastic Load Balancing Listener Action property type.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Host" : String, "Path" : Integer, "Port" : Integer, "Protocol" : String, "Query" : Integer, "StatusCode" : Integer }

YAML

Host: String Path: String Port: String Protocol: String Query: String StatusCode: String

Properties

Host

The hostname. This component is not percent-encoded. The hostname can contain #{host}.

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: No

Type: String

Update requires: No interruption

Path

The absolute path, starting with the leading "/". This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}.

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: No

Type: String

Update requires: No interruption

Port

The port. You can specify a value from 1 to 65535 or #{port}.

Required: No

Type: String

Update requires: No interruption

Protocol

The protocol. You can specify HTTP, HTTPS, or #{protocol}. You can redirect HTTP to HTTP, HTTP to HTTPS, and HTTPS to HTTPS. You cannot redirect HTTPS to HTTP.

Pattern: ^(HTTPS?|#\{protocol\})$

Required: No

Type: String

Update requires: No interruption

Query

The query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading "?", as it is automatically added. You can specify any of the reserved keywords.

Length Constraints: Minimum length of 0. Maximum length of 128.

Required: No

Type: String

Update requires: No interruption

StatusCode

The HTTP redirect code. The redirect is either permanent (HTTP 301) or temporary (HTTP 302).

Valid Values: HTTP_301 | HTTP_302

Required: Yes

Type: String

Update requires: No interruption

See Also

On this page: