allowed

fun allowed(principal: Principal, resource: Resource, vararg actions: ResourceAction<Resource>): Boolean

Returns a boolean indicating whether the principal is allowed to perform all the specified actions against the resource.

Return

true if all actions are allowed, false otherwise.

Parameters

principal

The principal attempting to access the resource.

resource

The resource being accessed.

actions

The actions being performed on the resource.