aws-cdk-lib.aws_elasticloadbalancing.CfnLoadBalancer.ConnectionDrainingPolicyProperty

interface ConnectionDrainingPolicyProperty

LanguageType name
.NETAmazon.CDK.AWS.ElasticLoadBalancing.CfnLoadBalancer.ConnectionDrainingPolicyProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancing#CfnLoadBalancer_ConnectionDrainingPolicyProperty
Javasoftware.amazon.awscdk.services.elasticloadbalancing.CfnLoadBalancer.ConnectionDrainingPolicyProperty
Pythonaws_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

NameTypeDescription
enabledboolean | IResolvableSpecifies whether connection draining is enabled for the load balancer.
timeout?numberThe 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.