UNPKG

@cn-shell/aws-utils

Version:
18 lines (17 loc) 553 B
import * as Aws from "./aws-base"; export interface Opts extends Aws.Opts { secret: string; } export declare class Secret extends Aws.Base { private _secret; private _secretsManager; constructor(name: string, opts: Opts); start(): Promise<boolean>; stop(): Promise<void>; healthCheck(): Promise<boolean>; create(value: string, description: string): Promise<boolean>; setValue(value: string): Promise<boolean>; getValue(stage?: string): Promise<string>; getPreviousValue(): Promise<string>; restoreLastValue(): Promise<string>; }