1 | import { Handler } from "../handler";
|
2 |
|
3 | export type SecretsManagerRotationHandler = Handler<SecretsManagerRotationEvent, void>;
|
4 |
|
5 | export type SecretsManagerRotationEventStep = "createSecret" | "setSecret" | "testSecret" | "finishSecret";
|
6 |
|
7 | /**
|
8 | * Secrets Manager Rotation event
|
9 | * https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets-lambda-function-overview.html
|
10 | */
|
11 | export interface SecretsManagerRotationEvent {
|
12 | Step: SecretsManagerRotationEventStep;
|
13 | SecretId: string;
|
14 | ClientRequestToken: string;
|
15 | }
|