Capítulo 557 de 988

Chapter 557: testPermissions()

Core Idea

<ExperimentalBadge> <p> Cloud Run is in <a href="/docs/cloudrun/status">Alpha status and not actively being developed.

Key Concepts

  • Example
  • Arguments
  • onTest?
  • Return value
  • decision
  • permissionName
  • See also

Code Examples

const {results} = await testPermissions();

for (const result of results) {
  console.log(result.decision); // "allowed"
  console.log(result.permissionName); // "iam.serviceAccounts.actAs"
}
  • What it demonstrates: Usage pattern for testPermissions() from the official docs.

Key Takeaways

  1. Understand example when working with testPermissions().
  2. Understand arguments when working with testPermissions().
  3. Understand ontest? when working with testPermissions().
  4. Understand return value when working with testPermissions().
  5. Understand decision when working with testPermissions().

Connects To

  • api: related page in the Cloud Run (@remotion/cloudrun) section.
  • Checklist: related page in the Cloud Run (@remotion/cloudrun) section.
  • cli: related page in the Cloud Run (@remotion/cloudrun) section.