Amazon.ElasticLoadBalancing.AmazonElasticLoadBalancingClient.CreateAppCookieStickinessPolicy C# (CSharp) Метод

CreateAppCookieStickinessPolicy() публичный Метод

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, AWSELB, follows the lifetime of the application-generated cookie specified in the policy configuration. The load balancer 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.

For more information, see Application-Controlled Session Stickiness in the Classic Load Balancers Guide.

/// The specified load balancer does not exist. /// /// A policy with the specified name already exists for this load balancer. /// /// The requested configuration change is not valid. /// /// The quota for the number of policies for this load balancer has been reached. ///
public CreateAppCookieStickinessPolicy ( CreateAppCookieStickinessPolicyRequest request ) : CreateAppCookieStickinessPolicyResponse
request Amazon.ElasticLoadBalancing.Model.CreateAppCookieStickinessPolicyRequest Container for the necessary parameters to execute the CreateAppCookieStickinessPolicy service method.
Результат Amazon.ElasticLoadBalancing.Model.CreateAppCookieStickinessPolicyResponse
        public CreateAppCookieStickinessPolicyResponse CreateAppCookieStickinessPolicy(CreateAppCookieStickinessPolicyRequest request)
        {
            var marshaller = new CreateAppCookieStickinessPolicyRequestMarshaller();
            var unmarshaller = CreateAppCookieStickinessPolicyResponseUnmarshaller.Instance;

            return Invoke<CreateAppCookieStickinessPolicyRequest,CreateAppCookieStickinessPolicyResponse>(request, marshaller, unmarshaller);
        }
AmazonElasticLoadBalancingClient