aws-cdk-lib.aws_autoscaling.LifecycleHookTargetConfig

interface LifecycleHookTargetConfig

LanguageType name
.NETAmazon.CDK.AWS.AutoScaling.LifecycleHookTargetConfig
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsautoscaling#LifecycleHookTargetConfig
Javasoftware.amazon.awscdk.services.autoscaling.LifecycleHookTargetConfig
Pythonaws_cdk.aws_autoscaling.LifecycleHookTargetConfig
TypeScript (source)aws-cdk-lib » aws_autoscaling » LifecycleHookTargetConfig

Obtainable from FunctionHook.bind(), QueueHook.bind(), TopicHook.bind()

Result of binding a lifecycle hook to a target.

Example

// 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

NameTypeDescription
createdRoleIRoleThe IRole that was used to bind the lifecycle hook to the target.
notificationTargetArnstringThe targetArn that the lifecycle hook was bound to.

createdRole

Type: IRole

The IRole that was used to bind the lifecycle hook to the target.


notificationTargetArn

Type: string

The targetArn that the lifecycle hook was bound to.