LifecycleEventConfigurationProperty Struct
| Source | |
|---|---|
| Type last changed |
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 lifecycleEventConfigurationProperty: opsworks.CfnLayer.LifecycleEventConfigurationProperty = {
shutdownEventConfiguration: {
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
lifecycle_event_configuration_property = opsworks.CfnLayer.LifecycleEventConfigurationProperty(
shutdown_event_configuration=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.*;
LifecycleEventConfigurationProperty lifecycleEventConfigurationProperty = LifecycleEventConfigurationProperty.builder()
.shutdownEventConfiguration(ShutdownEventConfigurationProperty.builder()
.delayUntilElbConnectionsDrained(false)
.executionTimeout(123)
.build())
.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 lifecycleEventConfigurationProperty = new LifecycleEventConfigurationProperty {
ShutdownEventConfiguration = 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"
lifecycleEventConfigurationProperty := &LifecycleEventConfigurationProperty{
ShutdownEventConfiguration: &ShutdownEventConfigurationProperty{
DelayUntilElbConnectionsDrained: jsii.Boolean(false),
ExecutionTimeout: jsii.Number(123),
},
}
Properties
shutdownEventConfigurationoptionalIResolvable | CfnLayer.shutdown_event_configurationoptionaltyping.Union[IResolvable, ShutdownEventConfigurationProperty]shutdownEventConfigurationoptionalIResolvableShutdownEventConfigurationoptionalIResolvableShutdownEventConfigurationoptionalinterface{} #The Shutdown event configuration.