aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
18 lines (17 loc) • 740 B
TypeScript
import { Construct } from 'constructs';
import * as autoscaling from '../../aws-autoscaling';
import * as sns from '../../aws-sns';
/**
* Use an SNS topic as a hook target
*/
export declare class TopicHook implements autoscaling.ILifecycleHookTarget {
private readonly topic;
constructor(topic: sns.ITopic);
/**
* If an `IRole` is found in `options`, grant it topic publishing permissions.
* Otherwise, create a new `IRole` and grant it topic publishing permissions.
*
* @returns the `IRole` with topic publishing permissions and the ARN of the topic it has publishing permission to.
*/
bind(_scope: Construct, options: autoscaling.BindHookTargetOptions): autoscaling.LifecycleHookTargetConfig;
}