interface ForwardOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ElasticLoadBalancingV2.ForwardOptions |
Java | software.amazon.awscdk.services.elasticloadbalancingv2.ForwardOptions |
Python | aws_cdk.aws_elasticloadbalancingv2.ForwardOptions |
TypeScript (source) | @aws-cdk/aws-elasticloadbalancingv2 » ForwardOptions |
Options for ListenerAction.forward()
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';
import * as cdk from '@aws-cdk/core';
const forwardOptions: elbv2.ForwardOptions = {
stickinessDuration: cdk.Duration.minutes(30),
};
Properties
Name | Type | Description |
---|---|---|
stickiness | Duration | For how long clients should be directed to the same target group. |
stickinessDuration?
Type:
Duration
(optional, default: No stickiness)
For how long clients should be directed to the same target group.
Range between 1 second and 7 days.