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

Elastic Load Balancing ListenerRule Conditions

Conditions is a property of the AWS::ElasticLoadBalancingV2::ListenerRule resource that specifies the conditions when an Elastic Load Balancing listener rule takes effect.

For more information, see RuleCondition in the Elastic Load Balancing API Reference version 2015-12-01.

Syntax

JSON

{ "Field" : String, "Values" : [ String, ... ] }

YAML

Field: String Values: - String

Properties

Field

The name of the condition that you want to define, such as path-pattern (which forwards requests based on the URL of the request).

Valid values: host-header | path-pattern

Length constraints: Maximum length of 64

Required: No

Type: String

Values

The value for the field that you specified in the Field property.

If you specified host-header for Field, 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. You can include up to three wildcard characters.

  • A-Z, a-z, 0-9

  • - .

  • * (matches 0 or more characters)

  • ? (matches exactly 1 character)

If you specified path-pattern for Field, you can specify a single path pattern (for example, /img/*). A path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of the following characters. You can include up to three wildcard characters.

  • A-Z, a-z, 0-9

  • _ - . $ / ~ " ' @ : +

  • & (using &)

  • * (matches 0 or more characters)

  • ? (matches exactly 1 character)

Required: No

Type: List of String values

On this page: