Skip to content
v2.277.0

QueryStringCondition Struct ​

Properties for the key/value pair of the query string.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticloadbalancingv2 as elbv2 } from 'aws-cdk-lib';
const queryStringCondition: elbv2.QueryStringCondition = {
  value: 'value',

  // the properties below are optional
  key: 'key',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_elasticloadbalancingv2 as elbv2

query_string_condition = elbv2.QueryStringCondition(
    value="value",

    # the properties below are optional
    key="key"
)
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.elasticloadbalancingv2.*;

QueryStringCondition queryStringCondition = QueryStringCondition.builder()
        .value("value")

        // the properties below are optional
        .key("key")
        .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.ElasticLoadBalancingV2;

var queryStringCondition = new QueryStringCondition {
    Value = "value",

    // the properties below are optional
    Key = "key"
};
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"

queryStringCondition := &QueryStringCondition{
	Value: jsii.String("value"),

	// the properties below are optional
	Key: jsii.String("key"),
}

Properties ​

keyoptionalstringkeyoptionalstrkeyoptionalStringKeyoptionalstringKeyoptional*string #
The query string key for the condition.

Default: Any key can be matched.

valuestringvaluestrvalueStringValuestringValue*string required #
The query string value for the condition.