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.CreateRule

Description

Creates a rule for the specified listener. The listener must be associated with an Application Load Balancer.

Each rule consists of a priority, one or more actions, and one or more conditions. Rules are evaluated in priority order, from the lowest value to the highest value. When the conditions for a rule are met, its actions are performed. If the conditions for no rules are met, the actions for the default rule are performed. For more information, see Listener rules in the Application Load Balancers Guide.

Synopsis

Creating a Request

data CreateRule Source #

See: newCreateRule smart constructor.

Constructors

CreateRule' 

Fields

Instances

Instances details
Eq CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Read CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Show CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Generic CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Associated Types

type Rep CreateRule :: Type -> Type #

NFData CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Methods

rnf :: CreateRule -> () #

Hashable CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

AWSRequest CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Associated Types

type AWSResponse CreateRule #

ToHeaders CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Methods

toHeaders :: CreateRule -> [Header] #

ToPath CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

ToQuery CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

type Rep CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

type Rep CreateRule = D1 ('MetaData "CreateRule" "Amazonka.ELBV2.CreateRule" "libZSservicesZSamazonka-elbv2ZSamazonka-elbv2" 'False) (C1 ('MetaCons "CreateRule'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Tag))) :*: S1 ('MetaSel ('Just "listenerArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "conditions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [RuleCondition]) :*: (S1 ('MetaSel ('Just "priority") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Just "actions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Action])))))
type AWSResponse CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

newCreateRule Source #

Create a value of CreateRule 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:tags:CreateRule', createRule_tags - The tags to assign to the rule.

$sel:listenerArn:CreateRule', createRule_listenerArn - The Amazon Resource Name (ARN) of the listener.

$sel:conditions:CreateRule', createRule_conditions - The conditions.

$sel:priority:CreateRule', createRule_priority - The rule priority. A listener can't have multiple rules with the same priority.

$sel:actions:CreateRule', createRule_actions - The actions.

Request Lenses

createRule_tags :: Lens' CreateRule (Maybe (NonEmpty Tag)) Source #

The tags to assign to the rule.

createRule_listenerArn :: Lens' CreateRule Text Source #

The Amazon Resource Name (ARN) of the listener.

createRule_priority :: Lens' CreateRule Natural Source #

The rule priority. A listener can't have multiple rules with the same priority.

Destructuring the Response

data CreateRuleResponse Source #

See: newCreateRuleResponse smart constructor.

Constructors

CreateRuleResponse' 

Fields

Instances

Instances details
Eq CreateRuleResponse Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Read CreateRuleResponse Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Show CreateRuleResponse Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Generic CreateRuleResponse Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Associated Types

type Rep CreateRuleResponse :: Type -> Type #

NFData CreateRuleResponse Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Methods

rnf :: CreateRuleResponse -> () #

type Rep CreateRuleResponse Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

type Rep CreateRuleResponse = D1 ('MetaData "CreateRuleResponse" "Amazonka.ELBV2.CreateRule" "libZSservicesZSamazonka-elbv2ZSamazonka-elbv2" 'False) (C1 ('MetaCons "CreateRuleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "rules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Rule])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateRuleResponse Source #

Create a value of CreateRuleResponse 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:rules:CreateRuleResponse', createRuleResponse_rules - Information about the rule.

$sel:httpStatus:CreateRuleResponse', createRuleResponse_httpStatus - The response's http status code.

Response Lenses