LifecycleHookReference
Struct External
A reference to a LifecycleHook resource.
| 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_autoscaling as interfaces_autoscaling } from 'aws-cdk-lib/interfaces';
const lifecycleHookReference: interfaces_autoscaling.LifecycleHookReference = {
autoScalingGroupName: 'autoScalingGroupName',
lifecycleHookName: 'lifecycleHookName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_autoscaling as interfaces_autoscaling
lifecycle_hook_reference = interfaces_autoscaling.LifecycleHookReference(
auto_scaling_group_name="autoScalingGroupName",
lifecycle_hook_name="lifecycleHookName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.autoscaling.*;
LifecycleHookReference lifecycleHookReference = LifecycleHookReference.builder()
.autoScalingGroupName("autoScalingGroupName")
.lifecycleHookName("lifecycleHookName")
.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.Interfaces.AutoScaling;
var lifecycleHookReference = new LifecycleHookReference {
AutoScalingGroupName = "autoScalingGroupName",
LifecycleHookName = "lifecycleHookName"
};
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"
lifecycleHookReference := &LifecycleHookReference{
AutoScalingGroupName: jsii.String("autoScalingGroupName"),
LifecycleHookName: jsii.String("lifecycleHookName"),
}
Properties
autoScalingGroupNamestringauto_scaling_group_namestrautoScalingGroupNameStringAutoScalingGroupNamestringAutoScalingGroupName*string required #The AutoScalingGroupName of the LifecycleHook resource.
lifecycleHookNamestringlifecycle_hook_namestrlifecycleHookNameStringLifecycleHookNamestringLifecycleHookName*string required #The LifecycleHookName of the LifecycleHook resource.