Skip to content
v2.278.0

CfnLinkRoutingRuleProps Struct ​

Properties for defining a CfnLinkRoutingRule.

Example ​

ts
// 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 cfnLinkRoutingRuleProps: rtbfabric.CfnLinkRoutingRuleProps = {
  conditions: {
    hostHeader: 'hostHeader',
    hostHeaderWildcard: 'hostHeaderWildcard',
    pathExact: 'pathExact',
    pathPrefix: 'pathPrefix',
    queryStringEquals: {
      key: 'key',
      value: 'value',
    },
    queryStringExists: 'queryStringExists',
  },
  gatewayId: 'gatewayId',
  linkId: 'linkId',
  priority: 123,

  // the properties below are optional
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
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"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.rtbfabric.*;

CfnLinkRoutingRuleProps cfnLinkRoutingRuleProps = CfnLinkRoutingRuleProps.builder()
        .conditions(RuleConditionProperty.builder()
                .hostHeader("hostHeader")
                .hostHeaderWildcard("hostHeaderWildcard")
                .pathExact("pathExact")
                .pathPrefix("pathPrefix")
                .queryStringEquals(QueryStringKeyValuePairProperty.builder()
                        .key("key")
                        .value("value")
                        .build())
                .queryStringExists("queryStringExists")
                .build())
        .gatewayId("gatewayId")
        .linkId("linkId")
        .priority(123)

        // the properties below are optional
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.RTBFabric;

var cfnLinkRoutingRuleProps = new CfnLinkRoutingRuleProps {
    Conditions = new RuleConditionProperty {
        HostHeader = "hostHeader",
        HostHeaderWildcard = "hostHeaderWildcard",
        PathExact = "pathExact",
        PathPrefix = "pathPrefix",
        QueryStringEquals = new QueryStringKeyValuePairProperty {
            Key = "key",
            Value = "value"
        },
        QueryStringExists = "queryStringExists"
    },
    GatewayId = "gatewayId",
    LinkId = "linkId",
    Priority = 123,

    // the properties below are optional
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnLinkRoutingRuleProps := &CfnLinkRoutingRuleProps{
	Conditions: &RuleConditionProperty{
		HostHeader: jsii.String("hostHeader"),
		HostHeaderWildcard: jsii.String("hostHeaderWildcard"),
		PathExact: jsii.String("pathExact"),
		PathPrefix: jsii.String("pathPrefix"),
		QueryStringEquals: &QueryStringKeyValuePairProperty{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
		QueryStringExists: jsii.String("queryStringExists"),
	},
	GatewayId: jsii.String("gatewayId"),
	LinkId: jsii.String("linkId"),
	Priority: jsii.Number(123),

	// the properties below are optional
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

conditionsIResolvable | CfnLinkRoutingRule.RuleConditionPropertyconditionstyping.Union[IResolvable, RuleConditionProperty]conditionsIResolvableConditionsIResolvableConditionsinterface{} required #
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.

gatewayIdstringgateway_idstrgatewayIdStringGatewayIdstringGatewayId*string required #
linkIdstringlink_idstrlinkIdStringLinkIdstringLinkId*string required #
prioritynumberpriorityint | floatpriorityNumberPrioritydoublePriority*float64 required #
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
Tags to assign to the LinkRoutingRule.