UpdateSecretVersionStage
Source:
src/AWS/SecretsManager/UpdateSecretVersionStage.ts
Runtime binding for secretsmanager:UpdateSecretVersionStage.
Bind this operation to a Secret to get a callable that moves a staging
label between versions — the final finishSecret step of the rotation
protocol, where AWSCURRENT is moved onto the new version. Provide the
implementation with
Effect.provide(AWS.SecretsManager.UpdateSecretVersionStageHttp).
Rotating Secrets
Section titled “Rotating Secrets”// init — bind the operation to the secretconst updateStage = yield* AWS.SecretsManager.UpdateSecretVersionStage(secret);
// runtime — finishSecret: move AWSCURRENT onto the pending versionyield* updateStage({ VersionStage: "AWSCURRENT", MoveToVersionId: pendingVersionId, RemoveFromVersionId: currentVersionId,});