Class BindHookTargetOptions
Options needed to bind a target to a lifecycle hook.
Inheritance
System.Object
BindHookTargetOptions
Implements
Namespace: Amazon.CDK.AWS.AutoScaling
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BindHookTargetOptions : Object, IBindHookTargetOptions
Syntax (vb)
Public Class BindHookTargetOptions
Inherits Object
Implements IBindHookTargetOptions
Remarks
[disable-awslint:ref-via-interface] The lifecycle hook to attach to and an IRole to use
ExampleMetadata: fixture=_generated
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
};
Synopsis
Constructors
BindHookTargetOptions() |
Properties
LifecycleHook | The lifecycle hook to attach to. |
Role | The role to use when attaching to the lifecycle hook. |
Constructors
BindHookTargetOptions()
public BindHookTargetOptions()
Properties
LifecycleHook
The lifecycle hook to attach to.
public LifecycleHook LifecycleHook { get; set; }
Property Value
Remarks
[disable-awslint:ref-via-interface]
Role
The role to use when attaching to the lifecycle hook.
public IRole Role { get; set; }
Property Value
Remarks
[disable-awslint:ref-via-interface]
Default: : a role is not created unless the target arn is specified