Interface CfnDistribution.ICookieObjectProperty
CookieObject
is a property of the CacheSettings property. It describes whether an Amazon Lightsail content delivery network (CDN) distribution forwards cookies to the origin and, if so, which ones.
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnDistribution.ICookieObjectProperty
Syntax (vb)
Public Interface CfnDistribution.ICookieObjectProperty
Remarks
For the cookies that you specify, your distribution caches separate versions of the specified content based on the cookie 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 cookieObjectProperty = new CookieObjectProperty {
CookiesAllowList = new [] { "cookiesAllowList" },
Option = "option"
};
Synopsis
Properties
CookiesAllowList | The specific cookies to forward to your distribution's origin. |
Option | Specifies which cookies to forward to the distribution's origin for a cache behavior. |
Properties
CookiesAllowList
The specific cookies to forward to your distribution's origin.
string[]? CookiesAllowList { get; }
Property Value
string[]
Remarks
Option
Specifies which cookies to forward to the distribution's origin for a cache behavior.
string? Option { get; }
Property Value
Remarks
Use one of the following configurations for your distribution: