Skip to content

UngroupResources

Source: src/AWS/ResourceGroups/UngroupResources.ts

Runtime binding for resource-groups:UngroupResources.

Removes the specified resources from the bound Group (the inverse of GroupResources — supported for the same application / host-management / capacity-reservation-pool group types). Ungrouping is asynchronous; track the reported Pending ARNs with ListGroupingStatuses. The group name is injected from the binding. Provide the implementation with Effect.provide(AWS.ResourceGroups.UngroupResourcesHttp).

// init — bind the operation to the group
const ungroupResources = yield* AWS.ResourceGroups.UngroupResources(group);
// runtime
const { Succeeded, Pending } = yield* ungroupResources({
ResourceArns: [resourceArn],
});