Class CfnDistribution.QueryStringObjectProperty
QueryStringObject
is a property of the CacheSettings property. It describes the query string parameters that an Amazon Lightsail content delivery network (CDN) distribution to bases caching on.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDistribution.QueryStringObjectProperty : CfnDistribution.IQueryStringObjectProperty
Syntax (vb)
Public Class CfnDistribution.QueryStringObjectProperty Implements CfnDistribution.IQueryStringObjectProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lightsail;
var queryStringObjectProperty = new QueryStringObjectProperty {
Option = false,
QueryStringsAllowList = new [] { "queryStringsAllowList" }
};
Synopsis
Constructors
QueryStringObjectProperty() |
|
Properties
Option | Indicates whether the distribution forwards and caches based on query strings. |
QueryStringsAllowList | The specific query strings that the distribution forwards to the origin. |
Constructors
QueryStringObjectProperty()
QueryStringObject
is a property of the CacheSettings property. It describes the query string parameters that an Amazon Lightsail content delivery network (CDN) distribution to bases caching on.
public QueryStringObjectProperty()
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lightsail;
var queryStringObjectProperty = new QueryStringObjectProperty {
Option = false,
QueryStringsAllowList = new [] { "queryStringsAllowList" }
};
Properties
Option
Indicates whether the distribution forwards and caches based on query strings.
public object? Option { get; set; }
Property Value
Remarks
QueryStringsAllowList
The specific query strings that the distribution forwards to the origin.
public string[]? QueryStringsAllowList { get; set; }
Property Value
string[]
Remarks
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.