Table of Contents

Interface IBindHookTargetOptions

Namespace
Amazon.CDK.AWS.AutoScaling
Assembly
Amazon.CDK.AWS.AutoScaling.dll

Options needed to bind a target to a lifecycle hook.

public interface IBindHookTargetOptions

Examples

// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.AutoScaling;
             using Amazon.CDK.AWS.IAM;

             LifecycleHook lifecycleHook;
             Role role;

             var bindHookTargetOptions = new BindHookTargetOptions {
                 LifecycleHook = lifecycleHook,

                 // the properties below are optional
                 Role = role
             };

Remarks

[disable-awslint:ref-via-interface] The lifecycle hook to attach to and an IRole to use

ExampleMetadata: fixture=_generated

Properties

LifecycleHook

The lifecycle hook to attach to.

LifecycleHook LifecycleHook { get; }

Property Value

LifecycleHook

Remarks

[disable-awslint:ref-via-interface]

Role

The role to use when attaching to the lifecycle hook.

IRole? Role { get; }

Property Value

IRole

Remarks

[disable-awslint:ref-via-interface]

Default: : a role is not created unless the target arn is specified