Table of Contents

Class BindHookTargetOptions

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

Options needed to bind a target to a lifecycle hook.

public class BindHookTargetOptions : IBindHookTargetOptions
Inheritance
BindHookTargetOptions
Implements
Inherited Members

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

Constructors

BindHookTargetOptions()

public BindHookTargetOptions()

Properties

LifecycleHook

The lifecycle hook to attach to.

public LifecycleHook LifecycleHook { get; set; }

Property Value

LifecycleHook

Remarks

[disable-awslint:ref-via-interface]

Role

The role to use when attaching to the lifecycle hook.

public IRole? Role { get; set; }

Property Value

IRole

Remarks

[disable-awslint:ref-via-interface]

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