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
- Understand example when working with testPermissions().
- Understand arguments when working with testPermissions().
- Understand ontest? when working with testPermissions().
- Understand return value when working with testPermissions().
- 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.