interface ConnectionDrainingPolicyProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ElasticLoadBalancing.CfnLoadBalancer.ConnectionDrainingPolicyProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancing#CfnLoadBalancer_ConnectionDrainingPolicyProperty |
Java | software.amazon.awscdk.services.elasticloadbalancing.CfnLoadBalancer.ConnectionDrainingPolicyProperty |
Python | aws_cdk.aws_elasticloadbalancing.CfnLoadBalancer.ConnectionDrainingPolicyProperty |
TypeScript | aws-cdk-lib » aws_elasticloadbalancing » CfnLoadBalancer » ConnectionDrainingPolicyProperty |
Specifies the connection draining settings for your Classic Load Balancer.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticloadbalancing as elb } from 'aws-cdk-lib';
const connectionDrainingPolicyProperty: elb.CfnLoadBalancer.ConnectionDrainingPolicyProperty = {
enabled: false,
// the properties below are optional
timeout: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| enabled | boolean | IResolvable | Specifies whether connection draining is enabled for the load balancer. |
| timeout? | number | The maximum time, in seconds, to keep the existing connections open before deregistering the instances. |
enabled
Type:
boolean | IResolvable
Specifies whether connection draining is enabled for the load balancer.
timeout?
Type:
number
(optional)
The maximum time, in seconds, to keep the existing connections open before deregistering the instances.

.NET
Go
Java
Python
TypeScript