CreateRuleInput
public struct CreateRuleInput : AWSShape
Undocumented
-
Declaration
Swift
public static var _members: [AWSShapeMember]
-
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
Swift
public let actions: [Action]
-
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
Swift
public let conditions: [RuleCondition]
-
The Amazon Resource Name (ARN) of the listener.
Declaration
Swift
public let listenerArn: String
-
The rule priority. A listener can’t have multiple rules with the same priority.
Declaration
Swift
public let priority: Int
-
Undocumented
Declaration
Swift
public init(actions: [Action], conditions: [RuleCondition], listenerArn: String, priority: Int)
-
Declaration
Swift
public func validate(name: String) throws