Skip to content

ListAccountPermissions

Source: src/AWS/Inspector2/ListAccountPermissions.ts

Runtime binding for inspector2:ListAccountPermissions.

Lists the permissions an account has to configure Amazon Inspector. If the account is a member account or standalone account with resources managed by an Organizations policy, the operation returns fewer permissions.

Provide the implementation with Effect.provide(AWS.Inspector2.ListAccountPermissionsHttp).

// init
const listAccountPermissions = yield* AWS.Inspector2.ListAccountPermissions();
// runtime
const { permissions } = yield* listAccountPermissions();