# LifecycleHookTargetConfig

Result of binding a lifecycle hook to a target.

- Source: [`aws-autoscaling/lib/lifecycle-hook-target.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-autoscaling/lib/lifecycle-hook-target.ts#L27)
- Type last changed: v2.2.0 · 15 Dec 2021

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

- `createdRole`: [IRole](/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) (required) — The IRole that was used to bind the lifecycle hook to the target.

- `notificationTargetArn`: string (required) — The targetArn that the lifecycle hook was bound to.
