Interface IBindHookTargetOptions
Options needed to bind a target to a lifecycle hook.
Namespace: Amazon.CDK.AWS.AutoScaling
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IBindHookTargetOptions
Syntax (vb)
Public Interface 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
Properties
Lifecycle |
The lifecycle hook to attach to. |
Role | The role to use when attaching to the lifecycle hook. |
Properties
LifecycleHook
The lifecycle hook to attach to.
LifecycleHook LifecycleHook { get; }
Property Value
Remarks
[disable-awslint:ref-via-interface]
Role
The role to use when attaching to the lifecycle hook.
virtual IRole Role { get; }
Property Value
Remarks
[disable-awslint:ref-via-interface]
Default: : a role is not created unless the target arn is specified