Skip to content
v2.278.0

ShutdownEventConfigurationProperty Struct ​

Example ​

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
# 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
// 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();
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
};
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 ​

delayUntilElbConnectionsDrainedoptionalboolean | IResolvabledelay_until_elb_connections_drainedoptionaltyping.Union[bool, IResolvable]delayUntilElbConnectionsDrainedoptionalBooleanDelayUntilElbConnectionsDrainedoptionalboolDelayUntilElbConnectionsDrainedoptionalinterface{} #
Whether to enable Elastic Load Balancing connection draining.

For more information, see Connection Draining

executionTimeoutoptionalnumberexecution_timeoutoptionalint | floatexecutionTimeoutoptionalNumberExecutionTimeoutoptionaldoubleExecutionTimeoutoptional*float64 #
The time, in seconds, that OpsWorks Stacks waits after triggering a Shutdown event before shutting down an instance.