22 lines
672 B
TypeScript
22 lines
672 B
TypeScript
|
|
import * as cdk from 'aws-cdk-lib';
|
||
|
|
import { Construct } from 'constructs';
|
||
|
|
import { EmailPipelineConstruct } from './constructs/email-pipeline';
|
||
|
|
import { SocketModeConstruct } from './constructs/socket-mode';
|
||
|
|
|
||
|
|
export class ExecAideStack extends cdk.Stack {
|
||
|
|
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
|
||
|
|
super(scope, id, props);
|
||
|
|
|
||
|
|
const emailPipeline = new EmailPipelineConstruct(this, 'EmailPipeline');
|
||
|
|
|
||
|
|
new SocketModeConstruct(this, 'SocketMode', {
|
||
|
|
table: emailPipeline.table,
|
||
|
|
});
|
||
|
|
|
||
|
|
new cdk.CfnOutput(this, 'TableName', {
|
||
|
|
value: emailPipeline.table.tableName,
|
||
|
|
description: 'DynamoDB table name',
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|