Skip to content

ListWorkspaces

Source: src/AWS/AMP/ListWorkspaces.ts

Runtime binding for aps:ListWorkspaces.

An account-level binding — call it with no arguments to get a callable that lists AMP workspaces in the region. Provide the ListWorkspacesHttp layer on the Function to satisfy the binding.

const listWorkspaces = yield* AMP.ListWorkspaces();
const response = yield* listWorkspaces();
const ids = response.workspaces.map((workspace) => workspace.workspaceId);