The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 06:00 UTC
| 1 | import type * as resourcegroups from "@distilled.cloud/aws/resource-groups"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import type * as Effect from "effect/Effect"; |
| 4 | import type { Group } from "./Group.ts"; |
| 5 | |
| 6 | /** Request for {@link UngroupResources} — the group is injected from the binding. */ |
| 7 | export type UngroupResourcesRequest = Omit<resourcegroups.UngroupResourcesInput, "Group">; |
| 8 | |
| 9 | /** |
| 10 | * Runtime binding for `resource-groups:UngroupResources`. |
| 11 | * |
| 12 | * Removes the specified resources from the bound {@link Group} (the inverse |
| 13 | * of {@link GroupResources} — supported for the same application / |
| 14 | * host-management / capacity-reservation-pool group types). Ungrouping is |
| 15 | * asynchronous; track the reported `Pending` ARNs with |
| 16 | * {@link ListGroupingStatuses}. The group name is injected from the binding. |
| 17 | * Provide the implementation with |
| 18 | * `Effect.provide(AWS.ResourceGroups.UngroupResourcesHttp)`. |
| 19 | * ### Managing Group Membership |
| 20 | * **Example:** Remove A Resource From An Application Group |
| 21 | * ```typescript |
| 22 | * // init — bind the operation to the group |
| 23 | * const ungroupResources = yield* AWS.ResourceGroups.UngroupResources(group); |
| 24 | * |
| 25 | * // runtime |
| 26 | * const { Succeeded, Pending } = yield* ungroupResources({ |
| 27 | * ResourceArns: [resourceArn], |
| 28 | * }); |
| 29 | * ``` |
| 30 | * |
| 31 | * @binding |
| 32 | */ |
| 33 | export interface UngroupResources extends Binding.Service< |
| 34 | UngroupResources, |
| 35 | "AWS.ResourceGroups.UngroupResources", |
| 36 | ( |
| 37 | group: Group, |
| 38 | ) => Effect.Effect< |
| 39 | ( |
| 40 | request: UngroupResourcesRequest, |
| 41 | ) => Effect.Effect<resourcegroups.UngroupResourcesOutput, resourcegroups.UngroupResourcesError> |
| 42 | > |
| 43 | > {} |
| 44 | export const UngroupResources = Binding.Service<UngroupResources>( |
| 45 | "AWS.ResourceGroups.UngroupResources", |
| 46 | ); |