18 lines
742 B
TypeScript
18 lines
742 B
TypeScript
import type { Construct } from 'constructs';
|
|
import type * as autoscaling from '../../aws-autoscaling';
|
|
import type * as sqs from '../../aws-sqs';
|
|
/**
|
|
* Use an SQS queue as a hook target
|
|
*/
|
|
export declare class QueueHook implements autoscaling.ILifecycleHookTarget {
|
|
private readonly queue;
|
|
constructor(queue: sqs.IQueue);
|
|
/**
|
|
* If an `IRole` is found in `options`, grant it access to send messages.
|
|
* Otherwise, create a new `IRole` and grant it access to send messages.
|
|
*
|
|
* @returns the `IRole` with access to send messages and the ARN of the queue it has access to send messages to.
|
|
*/
|
|
bind(_scope: Construct, options: autoscaling.BindHookTargetOptions): autoscaling.LifecycleHookTargetConfig;
|
|
}
|