AWSElasticLoadBalancingRuleCondition
Objective-C
@interface AWSElasticLoadBalancingRuleCondition
Swift
class AWSElasticLoadBalancingRuleCondition
Information about a condition for a rule.
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
. Note that the value for a condition cannot be empty.
For more information, see Quotas for your Application Load Balancers.
-
The field in the HTTP request. The following are the possible values:
http-header
http-request-method
host-header
path-pattern
query-string
source-ip
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable field;
Swift
var field: String? { get set }
-
Information for a host header condition. Specify only when
Field
ishost-header
.Declaration
Objective-C
@property (nonatomic, strong) AWSElasticLoadBalancingHostHeaderConditionConfig *_Nullable hostHeaderConfig;
Swift
var hostHeaderConfig: AWSElasticLoadBalancingHostHeaderConditionConfig? { get set }
-
Information for an HTTP header condition. Specify only when
Field
ishttp-header
.Declaration
Objective-C
@property (nonatomic, strong) AWSElasticLoadBalancingHttpHeaderConditionConfig *_Nullable httpHeaderConfig;
Swift
var httpHeaderConfig: AWSElasticLoadBalancingHttpHeaderConditionConfig? { get set }
-
Information for an HTTP method condition. Specify only when
Field
ishttp-request-method
.Declaration
Objective-C
@property (nonatomic, strong) AWSElasticLoadBalancingHttpRequestMethodConditionConfig *_Nullable httpRequestMethodConfig;
Swift
var httpRequestMethodConfig: AWSElasticLoadBalancingHttpRequestMethodConditionConfig? { get set }
-
Information for a path pattern condition. Specify only when
Field
ispath-pattern
.Declaration
Objective-C
@property (nonatomic, strong) AWSElasticLoadBalancingPathPatternConditionConfig *_Nullable pathPatternConfig;
Swift
var pathPatternConfig: AWSElasticLoadBalancingPathPatternConditionConfig? { get set }
-
Information for a query string condition. Specify only when
Field
isquery-string
.Declaration
Objective-C
@property (nonatomic, strong) AWSElasticLoadBalancingQueryStringConditionConfig *_Nullable queryStringConfig;
Swift
var queryStringConfig: AWSElasticLoadBalancingQueryStringConditionConfig? { get set }
-
Information for a source IP condition. Specify only when
Field
issource-ip
.Declaration
Objective-C
@property (nonatomic, strong) AWSElasticLoadBalancingSourceIpConditionConfig *_Nullable sourceIpConfig;
Swift
var sourceIpConfig: AWSElasticLoadBalancingSourceIpConditionConfig? { get set }
-
The condition value. Specify only when
Field
ishost-header
orpath-pattern
. Alternatively, to specify multiple host names or multiple path patterns, useHostHeaderConfig
orPathPatternConfig
.If
Field
ishost-header
and you are not usingHostHeaderConfig
, you can specify a single host name (for example, my.example.com) inValues
. A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following characters.A-Z, a-z, 0-9
- .
* (matches 0 or more characters)
? (matches exactly 1 character)
If
Field
ispath-pattern
and you are not usingPathPatternConfig
, you can specify a single path pattern (for example, /img/) inValues
. A path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of the following characters.A-Z, a-z, 0-9
_ - . $ / ~ “ ‘ @ : +
& (using &)
(matches 0 or more characters)
? (matches exactly 1 character)
Declaration
Objective-C
@property (nonatomic, strong) NSArray<NSString *> *_Nullable values;
Swift
var values: [String]? { get set }