# ConnectionDrainingPolicyProperty

Specifies the connection draining settings for your Classic Load Balancer.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// 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,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_elasticloadbalancing as elb

connection_draining_policy_property = elb.CfnLoadBalancer.ConnectionDrainingPolicyProperty(
    enabled=False,

    # the properties below are optional
    timeout=123
)
```

Java:

```java
// 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.*;

ConnectionDrainingPolicyProperty connectionDrainingPolicyProperty = ConnectionDrainingPolicyProperty.builder()
        .enabled(false)

        // the properties below are optional
        .timeout(123)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ElasticLoadBalancing;

var connectionDrainingPolicyProperty = new ConnectionDrainingPolicyProperty {
    Enabled = false,

    // the properties below are optional
    Timeout = 123
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

connectionDrainingPolicyProperty := &ConnectionDrainingPolicyProperty{
	Enabled: jsii.Boolean(false),

	// the properties below are optional
	Timeout: jsii.Number(123),
}
```

## Properties

- `enabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — 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.
