Skip to content

ListGroupingStatuses

Source: src/AWS/ResourceGroups/ListGroupingStatuses.ts

Runtime binding for resource-groups:ListGroupingStatuses.

Returns the status of the last grouping or ungrouping action for each resource in the bound application Group — grouping members is asynchronous, so this is how a function tracks a GroupResources / UngroupResources request to SUCCESS or reads the failure reason. The group name is injected from the binding. Provide the implementation with Effect.provide(AWS.ResourceGroups.ListGroupingStatusesHttp).

// init — bind the operation to the group
const listGroupingStatuses = yield* AWS.ResourceGroups.ListGroupingStatuses(group);
// runtime
const { GroupingStatuses } = yield* listGroupingStatuses();
const failed = (GroupingStatuses ?? []).filter((s) => s.Status === "FAILED");