Interface CfnLoadBalancer.LBCookieStickinessPolicyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLoadBalancer.LBCookieStickinessPolicyProperty.Jsii$Proxy
- Enclosing class:
- CfnLoadBalancer
@Stability(Stable)
public static interface CfnLoadBalancer.LBCookieStickinessPolicyProperty
extends software.amazon.jsii.JsiiSerializable
Specifies a policy for duration-based session stickiness for your Classic Load Balancer.
To associate a policy with a listener, use the PolicyNames property for the listener.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.elasticloadbalancing.*;
LBCookieStickinessPolicyProperty lBCookieStickinessPolicyProperty = LBCookieStickinessPolicyProperty.builder()
.cookieExpirationPeriod("cookieExpirationPeriod")
.policyName("policyName")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLoadBalancer.LBCookieStickinessPolicyPropertystatic final classAn implementation forCfnLoadBalancer.LBCookieStickinessPolicyProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCookieExpirationPeriod
The time period, in seconds, after which the cookie should be considered stale.If this parameter is not specified, the stickiness session lasts for the duration of the browser session.
-
getPolicyName
The name of the policy.This name must be unique within the set of policies for this load balancer.
-
builder
-