Struct aws_sdk_verifiedpermissions::types::EntityItem
source · #[non_exhaustive]pub struct EntityItem {
pub identifier: Option<EntityIdentifier>,
pub attributes: Option<HashMap<String, AttributeValue>>,
pub parents: Option<Vec<EntityIdentifier>>,
}Expand description
Contains information about an entity that can be referenced in a Cedar policy.
This data type is used as one of the fields in the EntitiesDefinition structure.
{ "identifier": { "entityType": "Photo", "entityId": "VacationPhoto94.jpg" }, "attributes": {}, "parents": [ { "entityType": "Album", "entityId": "alice_folder" } ] }
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.identifier: Option<EntityIdentifier>The identifier of the entity.
attributes: Option<HashMap<String, AttributeValue>>A list of attributes for the entity.
parents: Option<Vec<EntityIdentifier>>The parent entities in the hierarchy that contains the entity. A principal or resource entity can be defined with at most 99 transitive parents per authorization request.
A transitive parent is an entity in the hierarchy of entities including all direct parents, and parents of parents. For example, a user can be a member of 91 groups if one of those groups is a member of eight groups, for a total of 100: one entity, 91 entity parents, and eight parents of parents.
Implementations§
source§impl EntityItem
impl EntityItem
sourcepub fn identifier(&self) -> Option<&EntityIdentifier>
pub fn identifier(&self) -> Option<&EntityIdentifier>
The identifier of the entity.
sourcepub fn attributes(&self) -> Option<&HashMap<String, AttributeValue>>
pub fn attributes(&self) -> Option<&HashMap<String, AttributeValue>>
A list of attributes for the entity.
sourcepub fn parents(&self) -> &[EntityIdentifier]
pub fn parents(&self) -> &[EntityIdentifier]
The parent entities in the hierarchy that contains the entity. A principal or resource entity can be defined with at most 99 transitive parents per authorization request.
A transitive parent is an entity in the hierarchy of entities including all direct parents, and parents of parents. For example, a user can be a member of 91 groups if one of those groups is a member of eight groups, for a total of 100: one entity, 91 entity parents, and eight parents of parents.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .parents.is_none().
source§impl EntityItem
impl EntityItem
sourcepub fn builder() -> EntityItemBuilder
pub fn builder() -> EntityItemBuilder
Creates a new builder-style object to manufacture EntityItem.
Trait Implementations§
source§impl Clone for EntityItem
impl Clone for EntityItem
source§fn clone(&self) -> EntityItem
fn clone(&self) -> EntityItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for EntityItem
impl Debug for EntityItem
source§impl PartialEq for EntityItem
impl PartialEq for EntityItem
source§fn eq(&self, other: &EntityItem) -> bool
fn eq(&self, other: &EntityItem) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for EntityItem
Auto Trait Implementations§
impl Freeze for EntityItem
impl RefUnwindSafe for EntityItem
impl Send for EntityItem
impl Sync for EntityItem
impl Unpin for EntityItem
impl UnwindSafe for EntityItem
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more