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

Elastic Load Balancing Listener FixedResponseConfig

The FixedResponseConfig property type specifies information about an action that returns a custom HTTP response.

FixedResponseConfig 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

{ "ContentType" : String , "MessageBody" : String, "StatusCode" : String }

YAML

ContentType: String MessageBody: String StatusCode: String

Properties

ContentType

The content type.

Valid Values: text/plain | text/css | text/html | application/javascript | application/json

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

Required: No

Type: String

Update requires: No interruption

MessageBody

The message.

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

Required: No

Type: String

Update requires: No interruption

StatusCode

The HTTP response code (2XX, 4XX, or 5XX).

Pattern: ^(2|4|5)\d\d$

Required: Yes

Type: String

Update requires: No interruption

See Also

On this page: