Skip to content

ListGroupResources

Source: src/AWS/ResourceGroups/ListGroupResources.ts

Runtime binding for resource-groups:ListGroupResources.

Enumerates the member resources of the bound Group — for a tag-based group the resources currently matching the query, for an application or configuration group the explicitly grouped members. The group name is injected from the binding; the grant also includes the tag:GetResources / CloudFormation read-through permissions the enumeration fans out to. Provide the implementation with Effect.provide(AWS.ResourceGroups.ListGroupResourcesHttp).

// init — bind the operation to the group
const listGroupResources = yield* AWS.ResourceGroups.ListGroupResources(group);
// runtime
const { Resources } = yield* listGroupResources();
const arns = (Resources ?? []).map((r) => r.Identifier?.ResourceArn);