cdk-athena-log
Version:
A CDK construct to create an Athena table for querying ALB logs.
33 lines (32 loc) • 1.07 kB
TypeScript
import { aws_glue as glue } from 'aws-cdk-lib';
import { Construct } from 'constructs';
/**
* Properties for the AthenaTableForVpcFlowLog construct.
*/
export interface AthenaTableForVpcFlowLogProps {
/**
* The name of the S3 bucket where the VPC Flow Logs are stored.
*/
readonly logBucketName: string;
/**
* The name of the Glue database where the table will be created.
*/
readonly databaseName: string;
/**
* The name for the Glue table.
*/
readonly tableName: string;
/**
* The prefix within the S3 bucket where logs are located.
* Based on your code, this should be 'flowLog'.
*/
readonly logPrefix: string;
}
/**
* A CDK construct to create an AWS Glue table for querying VPC Flow Logs with Athena.
* NOTE: This table requires you to run `MSCK REPAIR TABLE` to discover new partitions.
*/
export declare class AthenaTableForVpcFlowLog extends Construct {
readonly table: glue.CfnTable;
constructor(scope: Construct, id: string, props: AthenaTableForVpcFlowLogProps);
}