UNPKG

discord-bot-cdk-construct

Version:

A quick CDK Construct for creating a serverless Discord bot in AWS!

27 lines (26 loc) 974 B
import { Function } from 'aws-cdk-lib/aws-lambda'; import { Secret } from 'aws-cdk-lib/aws-secretsmanager'; import { Construct } from 'constructs'; /** * The properties required for the Discord Bot construct. Specifically * requires the Lambda function where commands will be sent. */ export interface IDiscordBotConstructProps { commandsLambdaFunction: Function; } /** * A CDK Construct for setting up a serverless Discord bot. */ export declare class DiscordBotConstruct extends Construct { /** * The Secrets for our Discord APIs. */ readonly discordAPISecrets: Secret; /** * The constructor for building the stack. * @param {Construct} scope The Construct scope to create the Construct in. * @param {string} id The ID of the Construct to use. * @param {IDiscordBotConstructProps} props The properties to configure the Construct. */ constructor(scope: Construct, id: string, props: IDiscordBotConstructProps); }