Skip to content

ListResourcesInProtectionGroup

Source: src/AWS/Shield/ListResourcesInProtectionGroup.ts

Runtime binding for shield:ListResourcesInProtectionGroup.

Enumerates the ARNs of the protected resources that are members of a protection group. The group id is passed in the request — group membership is often resolved dynamically at runtime (e.g. iterating the groups from a ListProtectionGroups sweep), and a nonexistent group fails with the typed ResourceNotFoundException. Provide the implementation with Effect.provide(AWS.Shield.ListResourcesInProtectionGroupHttp).

// init — account-level binding, no resource argument
const listResourcesInProtectionGroup =
yield* AWS.Shield.ListResourcesInProtectionGroup();
// runtime
const { ResourceArns } = yield* listResourcesInProtectionGroup({
ProtectionGroupId: group.protectionGroupId,
});