AWSElasticLoadBalancingCreateRuleInput

Objective-C

@interface AWSElasticLoadBalancingCreateRuleInput

Swift

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

    If the action type is forward, you specify one or more target groups. The protocol of the target group must be HTTP or HTTPS for an Application Load Balancer. The protocol of the target group must be TCP, TLS, UDP, or TCP_UDP for a Network Load Balancer.

    [HTTPS listeners] If the action type is authenticate-oidc, you authenticate users through an identity provider that is OpenID Connect (OIDC) compliant.

    [HTTPS listeners] If the action type is authenticate-cognito, you authenticate users through the user pools supported by Amazon Cognito.

    [Application Load Balancer] If the action type is redirect, you redirect specified client requests from one URL to another.

    [Application Load Balancer] If the action type is fixed-response, you drop specified client requests and return a custom HTTP response.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSElasticLoadBalancingAction *> *_Nullable actions;

    Swift

    var actions: [AWSElasticLoadBalancingAction]? { get set }
  • The conditions. Each rule can optionally include up to one of each of the following conditions: http-request-method, host-header, path-pattern, and source-ip. Each rule can also optionally include one or more of each of the following conditions: http-header and query-string.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSElasticLoadBalancingRuleCondition *> *_Nullable conditions;

    Swift

    var conditions: [AWSElasticLoadBalancingRuleCondition]? { get set }
  • The Amazon Resource Name (ARN) of the listener.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable listenerArn;

    Swift

    var listenerArn: String? { get set }
  • The rule priority. A listener can’t have multiple rules with the same priority.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable priority;

    Swift

    var priority: NSNumber? { get set }
  • The tags to assign to the rule.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSElasticLoadBalancingTag *> *_Nullable tags;

    Swift

    var tags: [AWSElasticLoadBalancingTag]? { get set }