Interface CfnListenerRule.IRuleConditionProperty
Specifies a condition for a listener rule.
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public interface IRuleConditionProperty
Syntax (vb)
Public Interface 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
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. |
Properties
Field
The field in the HTTP request. The following are the possible values:.
virtual string Field { get; }
Property Value
System.String
Remarks
HostHeaderConfig
Information for a host header condition.
virtual object HostHeaderConfig { get; }
Property Value
System.Object
Remarks
HttpHeaderConfig
Information for an HTTP header condition.
virtual object HttpHeaderConfig { get; }
Property Value
System.Object
Remarks
HttpRequestMethodConfig
Information for an HTTP method condition.
virtual object HttpRequestMethodConfig { get; }
Property Value
System.Object
Remarks
Specify only when Field
is http-request-method
.
PathPatternConfig
Information for a path pattern condition.
virtual object PathPatternConfig { get; }
Property Value
System.Object
Remarks
QueryStringConfig
Information for a query string condition.
virtual object QueryStringConfig { get; }
Property Value
System.Object
Remarks
SourceIpConfig
Information for a source IP condition.
virtual object SourceIpConfig { get; }
Property Value
System.Object
Remarks
Values
The condition value.
virtual string[] Values { get; }
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.