# QueryStringCondition

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

- Source: [`aws-elasticloadbalancingv2/lib/alb/conditions.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/conditions.ts#L72)

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `key`: string — The query string key for the condition.

  **Default:** Any key can be matched.

- `value`: string (required) — The query string value for the condition.
