Entradas

Mostrando las entradas de mayo, 2023

Athena with AWS

Create implementation athena AWS CODE: export class AthenaAWSImpl { private readonly logger: any; private readonly athena: AWS.Athena; constructor(logger: any, session: { accessKeyId: string; secretAccessKey: string; sessionToken: string; } | undefined) { this.logger = logger; this.athena = new AWS.Athena({ apiVersion: '2017-05-18', region: Constants.AWS_REGION, credentials: session, }); } /** * https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Athena.html */ async getTableMetadata(input: { catalogName: string, databaseName: string, tableName: string }): Promise { try { const params = { CatalogName: input.catalogName,