@mbc-cqrs-serverless/core
Version:
CQRS and event base core
32 lines (31 loc) • 962 B
TypeScript
import { ClassConstructor } from 'class-transformer';
export declare enum Environment {
Local = "local",
Development = "dev",
Production = "prod",
Staging = "stg"
}
export declare class EnvironmentVariables {
NODE_ENV: Environment;
APP_NAME: string;
APP_PORT: number;
EVENT_SOURCE_DISABLED: boolean;
LOG_LEVEL: string;
DYNAMODB_ENDPOINT: string;
DYNAMODB_REGION: string;
ATTRIBUTE_LIMIT_SIZE: number;
S3_ENDPOINT: string;
S3_REGION: string;
S3_BUCKET_NAME: string;
SFN_ENDPOINT: string;
SFN_REGION: string;
SFN_COMMAND_ARN: string;
SNS_ENDPOINT: string;
SNS_REGION: string;
APPSYNC_ENDPOINT: string;
SES_ENDPOINT: string;
SES_REGION: string;
SES_FROM_EMAIL: string;
REQUEST_BODY_SIZE_LIMIT: string;
}
export declare function getValidateConfig<T extends EnvironmentVariables>(cls?: ClassConstructor<T>): (config: Record<string, unknown>) => EnvironmentVariables;