sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ ResourceGroups/ GroupResourcesHttp.ts

import * as resourcegroups from "@distilled.cloud/aws/resource-groups";
import * as Layer from "effect/Layer";
import { makeResourceGroupsGroupHttpBinding } from "./BindingHttp.ts";
import { GroupResources } from "./GroupResources.ts";

export const GroupResourcesHttp = Layer.effect(
  GroupResources,
  makeResourceGroupsGroupHttpBinding({
    tag: "AWS.ResourceGroups.GroupResources",
    operation: resourcegroups.groupResources,
    actions: ["resource-groups:GroupResources"],
    // Application-group membership works by applying the `awsApplication`
    // tag to the member through the Resource Groups Tagging API.
    supportingActions: ["tag:GetResources", "tag:TagResources"],
  }),
);