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