The best way to control Claude Code, Codex and more from any computer or phone

main
ts 45 lines 1.42 KB
Raw
1 import type * as SSM from "@distilled.cloud/aws/ssm";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Parameter } from "./Parameter.ts";
5
6 export interface UnlabelParameterVersionRequest extends Omit<
7 SSM.UnlabelParameterVersionRequest,
8 "Name"
9 > {}
10
11 /**
12 * Runtime binding for `ssm:UnlabelParameterVersion`.
13 *
14 * Bind this operation to a `Parameter` inside a function runtime to get a
15 * callable that removes labels from a specific version of the bound
16 * parameter — the counterpart to `LabelParameterVersion` when moving a label
17 * during a rollout or rollback.
18 * ### Labeling Parameter Versions
19 * **Example:** Remove a Label From a Version
20 * ```typescript
21 * const unlabel = yield* SSM.UnlabelParameterVersion(config);
22 *
23 * const result = yield* unlabel({
24 * ParameterVersion: 3,
25 * Labels: ["current"],
26 * });
27 * yield* Effect.log(`removed: ${result.RemovedLabels?.join(", ")}`);
28 * ```
29 *
30 * @binding
31 */
32 export interface UnlabelParameterVersion extends Binding.Service<
33 UnlabelParameterVersion,
34 "AWS.SSM.UnlabelParameterVersion",
35 <P extends Parameter>(
36 parameter: P,
37 ) => Effect.Effect<
38 (
39 request: UnlabelParameterVersionRequest,
40 ) => Effect.Effect<SSM.UnlabelParameterVersionResult, SSM.UnlabelParameterVersionError>
41 >
42 > {}
43 export const UnlabelParameterVersion = Binding.Service<UnlabelParameterVersion>(
44 "AWS.SSM.UnlabelParameterVersion",
45 );