Skip to content
v2.275.0

LifecycleHookTargetConfig Struct ​

Result of binding a lifecycle hook to a target.

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 autoscaling } from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';

declare const role: iam.Role;
const lifecycleHookTargetConfig: autoscaling.LifecycleHookTargetConfig = {
  createdRole: role,
  notificationTargetArn: 'notificationTargetArn',
};

Properties ​

createdRoleIRolecreated_roleIRolecreatedRoleIRoleCreatedRoleIRoleCreatedRoleIRolerequired#
The IRole that was used to bind the lifecycle hook to the target.
notificationTargetArnstringnotification_target_arnstrnotificationTargetArnStringNotificationTargetArnstringNotificationTargetArn*stringrequired#
The targetArn that the lifecycle hook was bound to.