ListSecretVersionIds
Source:
src/AWS/SecretsManager/ListSecretVersionIds.ts
Runtime binding for secretsmanager:ListSecretVersionIds.
Bind this operation to a Secret to get a callable that lists the
secret’s version IDs and their staging labels (AWSCURRENT,
AWSPENDING, AWSPREVIOUS) — useful for rotation functions and audit
tooling. Provide the implementation with
Effect.provide(AWS.SecretsManager.ListSecretVersionIdsHttp).
Inspecting Secrets
Section titled “Inspecting Secrets”// init — bind the operation to the secretconst listVersions = yield* AWS.SecretsManager.ListSecretVersionIds(secret);
// runtime — every version with its staging labelsconst result = yield* listVersions({ IncludeDeprecated: true });const current = (result.Versions ?? []).find((version) => version.VersionStages?.includes("AWSCURRENT"),);