@Stability(value=Stable)
public static interface CfnLoadBalancer.LBCookieStickinessPolicyProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLoadBalancer.LBCookieStickinessPolicyProperty.Builder
A builder for
CfnLoadBalancer.LBCookieStickinessPolicyProperty |
static class |
CfnLoadBalancer.LBCookieStickinessPolicyProperty.Jsii$Proxy
An implementation for
CfnLoadBalancer.LBCookieStickinessPolicyProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnLoadBalancer.LBCookieStickinessPolicyProperty.Builder |
builder() |
default String |
getCookieExpirationPeriod()
The time period, in seconds, after which the cookie should be considered stale.
|
default String |
getPolicyName()
The name of the policy.
|
@Stability(value=Stable) @Nullable default String getCookieExpirationPeriod()
If this parameter is not specified, the stickiness session lasts for the duration of the browser session.
@Stability(value=Stable) @Nullable default String getPolicyName()
This name must be unique within the set of policies for this load balancer.
@Stability(value=Stable) static CfnLoadBalancer.LBCookieStickinessPolicyProperty.Builder builder()
Copyright © 2022. All rights reserved.