Skip to content

GetParameterHistory

Source: src/AWS/SSM/GetParameterHistory.ts

Runtime binding for ssm:GetParameterHistory.

Bind this operation to a Parameter inside a function runtime to get a callable that retrieves the change history (all versions, labels, and metadata) of the bound parameter. The binding also grants kms:Decrypt on the parameter’s encryption key so WithDecryption: true works on SecureString parameters.

const getHistory = yield* SSM.GetParameterHistory(config);
const result = yield* getHistory();
for (const version of result.Parameters ?? []) {
yield* Effect.log(`v${version.Version}: ${version.Value}`);
}