EntityReference

sealed class EntityReference

Contains information about a principal or resource that can be referenced in a Cedar policy.

This data type is used as part of the PolicyFilter structure that is used as a request parameter for the ListPolicies operation..

Inheritors

Types

Link copied to clipboard

The identifier of the entity. It can consist of either an EntityType and EntityId, a principal, or a resource.

Link copied to clipboard
Link copied to clipboard
data class Unspecified(val value: Boolean) : EntityReference

Used to indicate that a principal or resource is not specified. This can be used to search for policies that are not associated with a specific principal or resource.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Casts this EntityReference as a Unspecified and retrieves its kotlin.Boolean value. Throws an exception if the EntityReference is not a Unspecified.

Link copied to clipboard

Casts this EntityReference as a Unspecified and retrieves its kotlin.Boolean value. Returns null if the EntityReference is not a Unspecified.