Generates a stickiness policy with sticky session lifetimes that follow that of an application-generated cookie. This policy can be associated only with HTTP/HTTPS listeners.
This policy is similar to the policy created by CreateLBCookieStickinessPolicy, except that the lifetime of the special Elastic Load Balancing cookie follows the lifetime of the application-generated cookie specified in the policy configuration. The LoadBalancer only inserts a new stickiness cookie when the application response includes a new application cookie.
If the application cookie is explicitly removed or expires, the session stops being sticky until a new application cookie is issued.
NOTE: An application client must receive and send two cookies: the application-generated cookie and the special Elastic Load Balancing cookie named AWSELB. This is the default behavior for many common web browsers.
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)
Syntax
| C# | Visual Basic | Visual C++ |
public class CreateAppCookieStickinessPolicyRequest : AmazonWebServiceRequest
Public Class CreateAppCookieStickinessPolicyRequest _ Inherits AmazonWebServiceRequest
public ref class CreateAppCookieStickinessPolicyRequest : public AmazonWebServiceRequest
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| CreateAppCookieStickinessPolicyRequest()()()() |
Default constructor for a new CreateAppCookieStickinessPolicyRequest object. Callers should use the
properties or fluent setter (With...) methods to initialize this object after creating it.
| |
| CreateAppCookieStickinessPolicyRequest(String, String, String) |
Constructs a new CreateAppCookieStickinessPolicyRequest object.
Callers should use the properties or fluent setter (With...) methods to
initialize any additional object members.
| |
| CookieName |
Name of the application cookie used for stickiness.
| |
| Equals(Object) | (Inherited from Object.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| LoadBalancerName |
The name associated with the LoadBalancer. The name must be unique within the client AWS account.
| |
| PolicyName |
The name of the policy being created. The name must be unique within the set of policies for this LoadBalancer.
| |
| ToString()()()() | (Inherited from Object.) | |
| WithCookieName(String) |
Sets the CookieName property
| |
| WithLoadBalancerName(String) |
Sets the LoadBalancerName property
| |
| WithPolicyName(String) |
Sets the PolicyName property
|
Inheritance Hierarchy
Amazon.Runtime..::..AmazonWebServiceRequest
Amazon.ElasticLoadBalancing.Model..::..CreateAppCookieStickinessPolicyRequest