UNPKG

cdk-athena-log

Version:

A CDK construct to create an Athena table for querying ALB logs.

33 lines (32 loc) 1.26 kB
import { aws_glue as glue } from 'aws-cdk-lib'; import { Construct } from 'constructs'; export interface AthenaTableForWafProps { /** S3に保存されたWAFログのバケット名 */ readonly logBucketName: string; /** Glueデータベース名 */ readonly databaseName: string; /** 作成するGlueテーブル名 */ readonly tableName: string; /** * WAFのスコープを指定します。 * 'REGIONAL' または 'CLOUDFRONT' */ readonly wafScope: 'REGIONAL' | 'CLOUDFRONT'; /** クエリ対象のWeb ACL名 */ readonly webAclName: string; /** * ★ パーティション射影の開始日 (yyyy/MM/dd形式) * @example '2025/08/11' */ readonly projectionStartDate: string; /** バケット内のオプションのプレフィックス */ readonly logPrefix?: string; } /** * S3に保存されたAWS WAFログをクエリするためのGlueテーブルを作成します。 * このコンストラクトは、公式ドキュメントのdate型パーティション射影に準拠します。 */ export declare class AthenaTableForWaf extends Construct { readonly table: glue.CfnTable; constructor(scope: Construct, id: string, props: AthenaTableForWafProps); }