Skip to content

LabelParameterVersion

Source: src/AWS/SSM/LabelParameterVersion.ts

Runtime binding for ssm:LabelParameterVersion.

Bind this operation to a Parameter inside a function runtime to get a callable that attaches labels (e.g. current, stable) to a version of the bound parameter. Omitting ParameterVersion labels the latest version. Labels enable versioned rollouts: readers pass Name:label selectors to GetParameter while writers move the label between versions.

const label = yield* SSM.LabelParameterVersion(config);
const result = yield* label({ Labels: ["current"] });
yield* Effect.log(`labeled version ${result.ParameterVersion}`);