UNPKG

@aws/aurora-dsql-node-postgres-connector

Version:

An AWS Aurora DSQL connector with IAM authentication for node-postgres

10 lines (9 loc) 744 B
import { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types"; import { AuroraDSQLConfig } from "./config/aurora-dsql-config"; import { AuroraDSQLPoolConfig } from "./config/aurora-dsql-pool-config"; export declare class AuroraDSQLUtil { static parseRegion(host: string): string; static getDSQLToken(host: string, user: string, profile: string, region: string, tokenDurationSecs?: number, customCredentialsProvider?: AwsCredentialIdentity | AwsCredentialIdentityProvider): Promise<string>; static parsePgConfig(config: string | AuroraDSQLConfig | AuroraDSQLPoolConfig): AuroraDSQLConfig | AuroraDSQLPoolConfig; static buildHostnameFromIdAndRegion(clusterId: string, region: string | undefined): string; }