#[non_exhaustive]pub struct BatchIsAuthorizedInputItem {
pub principal: Option<EntityIdentifier>,
pub action: Option<ActionIdentifier>,
pub resource: Option<EntityIdentifier>,
pub context: Option<ContextDefinition>,
}Expand description
An authorization request that you include in a BatchIsAuthorized API request.
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.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.
Implementations§
source§impl BatchIsAuthorizedInputItem
impl BatchIsAuthorizedInputItem
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.
source§impl BatchIsAuthorizedInputItem
impl BatchIsAuthorizedInputItem
sourcepub fn builder() -> BatchIsAuthorizedInputItemBuilder
pub fn builder() -> BatchIsAuthorizedInputItemBuilder
Creates a new builder-style object to manufacture BatchIsAuthorizedInputItem.
Trait Implementations§
source§impl Clone for BatchIsAuthorizedInputItem
impl Clone for BatchIsAuthorizedInputItem
source§fn clone(&self) -> BatchIsAuthorizedInputItem
fn clone(&self) -> BatchIsAuthorizedInputItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for BatchIsAuthorizedInputItem
impl Debug for BatchIsAuthorizedInputItem
source§impl PartialEq for BatchIsAuthorizedInputItem
impl PartialEq for BatchIsAuthorizedInputItem
source§fn eq(&self, other: &BatchIsAuthorizedInputItem) -> bool
fn eq(&self, other: &BatchIsAuthorizedInputItem) -> bool
self and other values to be equal, and is used
by ==.