interface RuleConditionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.RTBFabric.CfnLinkRoutingRule.RuleConditionProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsrtbfabric#CfnLinkRoutingRule_RuleConditionProperty |
Java | software.amazon.awscdk.services.rtbfabric.CfnLinkRoutingRule.RuleConditionProperty |
Python | aws_cdk.aws_rtbfabric.CfnLinkRoutingRule.RuleConditionProperty |
TypeScript | aws-cdk-lib » aws_rtbfabric » CfnLinkRoutingRule » RuleConditionProperty |
Conditions for a routing rule.
All non-null fields must match (AND logic). At least one field must be set. HostHeader and HostHeaderWildcard are mutually exclusive. PathPrefix and PathExact are mutually exclusive.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rtbfabric as rtbfabric } from 'aws-cdk-lib';
const ruleConditionProperty: rtbfabric.CfnLinkRoutingRule.RuleConditionProperty = {
hostHeader: 'hostHeader',
hostHeaderWildcard: 'hostHeaderWildcard',
pathExact: 'pathExact',
pathPrefix: 'pathPrefix',
queryStringEquals: {
key: 'key',
value: 'value',
},
queryStringExists: 'queryStringExists',
};
Properties
| Name | Type | Description |
|---|---|---|
| host | string | Exact host match — RFC 3986 unreserved characters. |
| host | string | Wildcard host pattern (e.g., *.example.com) — RFC 3986 unreserved characters plus *. Mutually exclusive with HostHeader. |
| path | string | Exact path match — must start with /. |
| path | string | Path prefix matching — strict starts-with, must start with /. |
| query | IResolvable | Query | |
| query | string | Query string key presence check (any value accepted). |
hostHeader?
Type:
string
(optional)
Exact host match — RFC 3986 unreserved characters.
Mutually exclusive with HostHeaderWildcard.
hostHeaderWildcard?
Type:
string
(optional)
Wildcard host pattern (e.g., *.example.com) — RFC 3986 unreserved characters plus *. Mutually exclusive with HostHeader.
pathExact?
Type:
string
(optional)
Exact path match — must start with /.
Mutually exclusive with PathPrefix.
pathPrefix?
Type:
string
(optional)
Path prefix matching — strict starts-with, must start with /.
Mutually exclusive with PathExact.
queryStringEquals?
Type:
IResolvable | Query
(optional)
queryStringExists?
Type:
string
(optional)
Query string key presence check (any value accepted).

.NET
Go
Java
Python
TypeScript