Authorization Policy
An authorization policy that defines the permissions for a principal to perform actions on several types of resources.
Functions
Returns a boolean indicating whether the principal is allowed all of the specified actions against the resource. Use this method when you wish to perform a permission check and handle a boolean value rather than an exception.
Utility for defining a block of permission checks.
Checks that the action performed by the principal is allowed against the resource. Throws a PermissionDeniedException when the action is not allowed. Use this method when you wish to perform a permission check that throws an exception.
Adds a policy for the specified resource type.
Adds a policy for the specified resource type, initialized via the init block.