CfnLinkRoutingRuleProps

class aws_cdk.aws_rtbfabric.CfnLinkRoutingRuleProps(*, conditions, gateway_id, link_id, priority, tags=None)

Bases: object

Properties for defining a CfnLinkRoutingRule.

Parameters:
  • conditions (Union[IResolvable, RuleConditionProperty, Dict[str, Any]]) – 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.

  • gateway_id (str)

  • link_id (str)

  • priority (Union[int, float])

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – Tags to assign to the LinkRoutingRule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rtbfabric-linkroutingrule.html

ExampleMetadata:

fixture=_generated

Example:

from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_rtbfabric as rtbfabric

cfn_link_routing_rule_props = rtbfabric.CfnLinkRoutingRuleProps(
    conditions=rtbfabric.CfnLinkRoutingRule.RuleConditionProperty(
        host_header="hostHeader",
        host_header_wildcard="hostHeaderWildcard",
        path_exact="pathExact",
        path_prefix="pathPrefix",
        query_string_equals=rtbfabric.CfnLinkRoutingRule.QueryStringKeyValuePairProperty(
            key="key",
            value="value"
        ),
        query_string_exists="queryStringExists"
    ),
    gateway_id="gatewayId",
    link_id="linkId",
    priority=123,

    # the properties below are optional
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

conditions

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rtbfabric-linkroutingrule.html#cfn-rtbfabric-linkroutingrule-conditions

gateway_id

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rtbfabric-linkroutingrule.html#cfn-rtbfabric-linkroutingrule-gatewayid

Type:

see

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rtbfabric-linkroutingrule.html#cfn-rtbfabric-linkroutingrule-linkid

Type:

see

priority

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rtbfabric-linkroutingrule.html#cfn-rtbfabric-linkroutingrule-priority

Type:

see

tags

Tags to assign to the LinkRoutingRule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rtbfabric-linkroutingrule.html#cfn-rtbfabric-linkroutingrule-tags