libZSservicesZSamazonka-elbv2ZSamazonka-elbv2
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ELBV2.Types.Rule

Description

 
Synopsis

Documentation

data Rule Source #

Information about a rule.

See: newRule smart constructor.

Constructors

Rule' 

Fields

  • priority :: Maybe Text

    The priority.

  • actions :: Maybe [Action]

    The actions. Each rule must include exactly one of the following types of actions: forward, redirect, or fixed-response, and it must be the last action to be performed.

  • conditions :: Maybe [RuleCondition]

    The conditions. Each rule can include zero or one of the following conditions: http-request-method, host-header, path-pattern, and source-ip, and zero or more of the following conditions: http-header and query-string.

  • ruleArn :: Maybe Text

    The Amazon Resource Name (ARN) of the rule.

  • isDefault :: Maybe Bool

    Indicates whether this is the default rule.

Instances

Instances details
Eq Rule Source # 
Instance details

Defined in Amazonka.ELBV2.Types.Rule

Methods

(==) :: Rule -> Rule -> Bool #

(/=) :: Rule -> Rule -> Bool #

Read Rule Source # 
Instance details

Defined in Amazonka.ELBV2.Types.Rule

Show Rule Source # 
Instance details

Defined in Amazonka.ELBV2.Types.Rule

Methods

showsPrec :: Int -> Rule -> ShowS #

show :: Rule -> String #

showList :: [Rule] -> ShowS #

Generic Rule Source # 
Instance details

Defined in Amazonka.ELBV2.Types.Rule

Associated Types

type Rep Rule :: Type -> Type #

Methods

from :: Rule -> Rep Rule x #

to :: Rep Rule x -> Rule #

NFData Rule Source # 
Instance details

Defined in Amazonka.ELBV2.Types.Rule

Methods

rnf :: Rule -> () #

Hashable Rule Source # 
Instance details

Defined in Amazonka.ELBV2.Types.Rule

Methods

hashWithSalt :: Int -> Rule -> Int #

hash :: Rule -> Int #

FromXML Rule Source # 
Instance details

Defined in Amazonka.ELBV2.Types.Rule

Methods

parseXML :: [Node] -> Either String Rule #

type Rep Rule Source # 
Instance details

Defined in Amazonka.ELBV2.Types.Rule

newRule :: Rule Source #

Create a value of Rule with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:priority:Rule', rule_priority - The priority.

$sel:actions:Rule', rule_actions - The actions. Each rule must include exactly one of the following types of actions: forward, redirect, or fixed-response, and it must be the last action to be performed.

$sel:conditions:Rule', rule_conditions - The conditions. Each rule can include zero or one of the following conditions: http-request-method, host-header, path-pattern, and source-ip, and zero or more of the following conditions: http-header and query-string.

$sel:ruleArn:Rule', rule_ruleArn - The Amazon Resource Name (ARN) of the rule.

$sel:isDefault:Rule', rule_isDefault - Indicates whether this is the default rule.

rule_actions :: Lens' Rule (Maybe [Action]) Source #

The actions. Each rule must include exactly one of the following types of actions: forward, redirect, or fixed-response, and it must be the last action to be performed.

rule_conditions :: Lens' Rule (Maybe [RuleCondition]) Source #

The conditions. Each rule can include zero or one of the following conditions: http-request-method, host-header, path-pattern, and source-ip, and zero or more of the following conditions: http-header and query-string.

rule_ruleArn :: Lens' Rule (Maybe Text) Source #

The Amazon Resource Name (ARN) of the rule.

rule_isDefault :: Lens' Rule (Maybe Bool) Source #

Indicates whether this is the default rule.