Class CfnDistribution.CookieObjectProperty
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.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDistribution.CookieObjectProperty : CfnDistribution.ICookieObjectProperty
Syntax (vb)
Public Class CfnDistribution.CookieObjectProperty Implements 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
Constructors
CookieObjectProperty() |
|
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. |
Constructors
CookieObjectProperty()
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.
public CookieObjectProperty()
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"
};
Properties
CookiesAllowList
The specific cookies to forward to your distribution's origin.
public string[]? CookiesAllowList { get; set; }
Property Value
string[]
Remarks
Option
Specifies which cookies to forward to the distribution's origin for a cache behavior.
public string? Option { get; set; }
Property Value
Remarks
Use one of the following configurations for your distribution: