# ShutdownEventConfigurationProperty

- 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_opsworks as opsworks } from 'aws-cdk-lib';
const shutdownEventConfigurationProperty: opsworks.CfnLayer.ShutdownEventConfigurationProperty = {
  delayUntilElbConnectionsDrained: false,
  executionTimeout: 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_opsworks as opsworks

shutdown_event_configuration_property = opsworks.CfnLayer.ShutdownEventConfigurationProperty(
    delay_until_elb_connections_drained=False,
    execution_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.opsworks.*;

ShutdownEventConfigurationProperty shutdownEventConfigurationProperty = ShutdownEventConfigurationProperty.builder()
        .delayUntilElbConnectionsDrained(false)
        .executionTimeout(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.OpsWorks;

var shutdownEventConfigurationProperty = new ShutdownEventConfigurationProperty {
    DelayUntilElbConnectionsDrained = false,
    ExecutionTimeout = 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"

shutdownEventConfigurationProperty := &ShutdownEventConfigurationProperty{
	DelayUntilElbConnectionsDrained: jsii.Boolean(false),
	ExecutionTimeout: jsii.Number(123),
}
```

## Properties

- `delayUntilElbConnectionsDrained`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Whether to enable Elastic Load Balancing connection draining.

  For more information, see [Connection Draining](https://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#conn-drain)

- `executionTimeout`: number — The time, in seconds, that OpsWorks Stacks waits after triggering a Shutdown event before shutting down an instance.
