Class CfnListenerRule.RuleConditionProperty
Specifies a condition for a listener rule.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public class RuleConditionProperty : Object, CfnListenerRule.IRuleConditionProperty
Syntax (vb)
Public Class RuleConditionProperty
Inherits Object
Implements CfnListenerRule.IRuleConditionProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ElasticLoadBalancingV2;
var ruleConditionProperty = new RuleConditionProperty {
Field = "field",
HostHeaderConfig = new HostHeaderConfigProperty {
Values = new [] { "values" }
},
HttpHeaderConfig = new HttpHeaderConfigProperty {
HttpHeaderName = "httpHeaderName",
Values = new [] { "values" }
},
HttpRequestMethodConfig = new HttpRequestMethodConfigProperty {
Values = new [] { "values" }
},
PathPatternConfig = new PathPatternConfigProperty {
Values = new [] { "values" }
},
QueryStringConfig = new QueryStringConfigProperty {
Values = new [] { new QueryStringKeyValueProperty {
Key = "key",
Value = "value"
} }
},
SourceIpConfig = new SourceIpConfigProperty {
Values = new [] { "values" }
},
Values = new [] { "values" }
};
Synopsis
Constructors
RuleConditionProperty() |
Properties
Field | The field in the HTTP request. The following are the possible values:. |
HostHeaderConfig | Information for a host header condition. |
HttpHeaderConfig | Information for an HTTP header condition. |
HttpRequestMethodConfig | Information for an HTTP method condition. |
PathPatternConfig | Information for a path pattern condition. |
QueryStringConfig | Information for a query string condition. |
SourceIpConfig | Information for a source IP condition. |
Values | The condition value. |
Constructors
RuleConditionProperty()
public RuleConditionProperty()
Properties
Field
The field in the HTTP request. The following are the possible values:.
public string Field { get; set; }
Property Value
System.String
Remarks
HostHeaderConfig
Information for a host header condition.
public object HostHeaderConfig { get; set; }
Property Value
System.Object
Remarks
HttpHeaderConfig
Information for an HTTP header condition.
public object HttpHeaderConfig { get; set; }
Property Value
System.Object
Remarks
HttpRequestMethodConfig
Information for an HTTP method condition.
public object HttpRequestMethodConfig { get; set; }
Property Value
System.Object
Remarks
Specify only when Field
is http-request-method
.
PathPatternConfig
Information for a path pattern condition.
public object PathPatternConfig { get; set; }
Property Value
System.Object
Remarks
QueryStringConfig
Information for a query string condition.
public object QueryStringConfig { get; set; }
Property Value
System.Object
Remarks
SourceIpConfig
Information for a source IP condition.
public object SourceIpConfig { get; set; }
Property Value
System.Object
Remarks
Values
The condition value.
public string[] Values { get; set; }
Property Value
System.String[]
Remarks
Specify only when Field
is host-header
or path-pattern
. Alternatively, to specify multiple host names or multiple path patterns, use HostHeaderConfig
or PathPatternConfig
.
If Field
is host-header
and you're not using HostHeaderConfig
, you can specify a single host name (for example, my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following characters.
If Field
is path-pattern
and you're not using PathPatternConfig
, you can specify a single path pattern (for example, /img/*). A path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of the following characters.