# QueryStringObjectProperty

`QueryStringObject` is a property of the [CacheSettings](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-distribution-cachesettings.html) property. It describes the query string parameters that an Amazon Lightsail content delivery network (CDN) distribution to bases caching on.

For the query strings that you specify, your distribution caches separate versions of the specified content based on the query string values in viewer requests.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lightsail as lightsail } from 'aws-cdk-lib';
const queryStringObjectProperty: lightsail.CfnDistribution.QueryStringObjectProperty = {
  option: false,
  queryStringsAllowList: ['queryStringsAllowList'],
};
```

## Properties

- `option`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether the distribution forwards and caches based on query strings.

- `queryStringsAllowList`: string[] — The specific query strings that the distribution forwards to the origin.

  Your distribution caches content based on the specified query strings.

  If the `option` parameter is true, then your distribution forwards all query strings, regardless of what you specify using the `QueryStringsAllowList` parameter.
