TargetGroupStickiness class
Constructors
-
TargetGroupStickiness({Input<int?>? cookieDuration, Input<String?>? cookieName, Input<bool?>? enabled, required Input<String> type})
-
Creates a new TargetGroupStickiness.
cookieDuration Only used when the type is lbCookie. The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds).
cookieName Name of the application based cookie. AWSALB, AWSALBAPP, and AWSALBTG prefixes are reserved and cannot be used. Only needed when type is appCookie.
enabled Boolean to enable / disable stickiness. Default is true.
type The type of sticky sessions. The only current possible values are lbCookie, appCookie for ALBs, sourceIp for NLBs, and sourceIpDestIp, sourceIpDestIpProto for GWLBs.
const
-
TargetGroupStickiness.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
cookieDuration
→ Input<int?>?
-
Only used when the type is
lbCookie. The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds).
final
-
cookieName
→ Input<String?>?
-
Name of the application based cookie. AWSALB, AWSALBAPP, and AWSALBTG prefixes are reserved and cannot be used. Only needed when type is
appCookie.
final
-
enabled
→ Input<bool?>?
-
Boolean to enable / disable
stickiness. Default is true.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
type
→ Input<String>
-
The type of sticky sessions. The only current possible values are
lbCookie, appCookie for ALBs, sourceIp for NLBs, and sourceIpDestIp, sourceIpDestIpProto for GWLBs.
final