amazonka-elbv2-2.0: Amazon Elastic Load Balancing SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

AWSRequest CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Associated Types

type AWSResponse CreateRule #

Generic CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Associated Types

type Rep CreateRule :: Type -> Type #

Read CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Show CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

NFData CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Methods

rnf :: CreateRule -> () #

Eq CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Hashable CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

type AWSResponse CreateRule Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

type Rep 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:

CreateRule, createRule_tags - The tags to assign to the rule.

CreateRule, createRule_listenerArn - The Amazon Resource Name (ARN) of the listener.

CreateRule, createRule_conditions - The conditions.

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

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
Generic CreateRuleResponse Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Associated Types

type Rep CreateRuleResponse :: Type -> Type #

Read CreateRuleResponse Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Show CreateRuleResponse Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

NFData CreateRuleResponse Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

Methods

rnf :: CreateRuleResponse -> () #

Eq CreateRuleResponse Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

type Rep CreateRuleResponse Source # 
Instance details

Defined in Amazonka.ELBV2.CreateRule

type Rep CreateRuleResponse = D1 ('MetaData "CreateRuleResponse" "Amazonka.ELBV2.CreateRule" "amazonka-elbv2-2.0-361J9F5fkBoAtGaOoJg8Ev" '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