LifecycleHookTargetConfig

class aws_cdk.aws_autoscaling.LifecycleHookTargetConfig(*, created_role, notification_target_arn)

Bases: object

Result of binding a lifecycle hook to a target.

Parameters:
  • created_role (IRole) – The IRole that was used to bind the lifecycle hook to the target.

  • notification_target_arn (str) – The targetArn that the lifecycle hook was bound to.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_autoscaling as autoscaling
from aws_cdk import aws_iam as iam

# role: iam.Role

lifecycle_hook_target_config = autoscaling.LifecycleHookTargetConfig(
    created_role=role,
    notification_target_arn="notificationTargetArn"
)

Attributes

created_role

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

notification_target_arn

The targetArn that the lifecycle hook was bound to.