#[non_exhaustive]pub struct IsAuthorizedInput {
pub policy_store_id: Option<String>,
pub principal: Option<EntityIdentifier>,
pub action: Option<ActionIdentifier>,
pub resource: Option<EntityIdentifier>,
pub context: Option<ContextDefinition>,
pub entities: Option<EntitiesDefinition>,
}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.policy_store_id: Option<String>Specifies the ID of the policy store. Policies in this policy store will be used to make an authorization decision for the input.
principal: Option<EntityIdentifier>Specifies the principal for which the authorization decision is to be made.
action: Option<ActionIdentifier>Specifies the requested action to be authorized. For example, is the principal authorized to perform this action on the resource?
resource: Option<EntityIdentifier>Specifies the resource for which the authorization decision is to be made.
context: Option<ContextDefinition>Specifies additional context that can be used to make more granular authorization decisions.
entities: Option<EntitiesDefinition>Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies.
You can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
Implementations§
source§impl IsAuthorizedInput
impl IsAuthorizedInput
sourcepub fn policy_store_id(&self) -> Option<&str>
pub fn policy_store_id(&self) -> Option<&str>
Specifies the ID of the policy store. Policies in this policy store will be used to make an authorization decision for the input.
sourcepub fn principal(&self) -> Option<&EntityIdentifier>
pub fn principal(&self) -> Option<&EntityIdentifier>
Specifies the principal for which the authorization decision is to be made.
sourcepub fn action(&self) -> Option<&ActionIdentifier>
pub fn action(&self) -> Option<&ActionIdentifier>
Specifies the requested action to be authorized. For example, is the principal authorized to perform this action on the resource?
sourcepub fn resource(&self) -> Option<&EntityIdentifier>
pub fn resource(&self) -> Option<&EntityIdentifier>
Specifies the resource for which the authorization decision is to be made.
sourcepub fn context(&self) -> Option<&ContextDefinition>
pub fn context(&self) -> Option<&ContextDefinition>
Specifies additional context that can be used to make more granular authorization decisions.
sourcepub fn entities(&self) -> Option<&EntitiesDefinition>
pub fn entities(&self) -> Option<&EntitiesDefinition>
Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies.
You can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
source§impl IsAuthorizedInput
impl IsAuthorizedInput
sourcepub fn builder() -> IsAuthorizedInputBuilder
pub fn builder() -> IsAuthorizedInputBuilder
Creates a new builder-style object to manufacture IsAuthorizedInput.
Trait Implementations§
source§impl Clone for IsAuthorizedInput
impl Clone for IsAuthorizedInput
source§fn clone(&self) -> IsAuthorizedInput
fn clone(&self) -> IsAuthorizedInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for IsAuthorizedInput
impl Debug for IsAuthorizedInput
source§impl PartialEq for IsAuthorizedInput
impl PartialEq for IsAuthorizedInput
source§fn eq(&self, other: &IsAuthorizedInput) -> bool
fn eq(&self, other: &IsAuthorizedInput) -> bool
self and other values to be equal, and is used
by ==.