Skip to content

ListResources

Source: src/AWS/RAM/ListResources.ts

Runtime binding for ram:ListResources.

Lists the resources that you added to resource shares or that are shared with you. Account-level operation — the target shares, invitations, and permissions are chosen per request at runtime, so the binding takes no resource argument. Provide the implementation with Effect.provide(AWS.RAM.ListResourcesHttp).

// init — account-level binding, no resource argument
const listResources = yield* AWS.RAM.ListResources();
// runtime
const { resources } = yield* listResources({
resourceOwner: "OTHER-ACCOUNTS",
});