Struct aws_sdk_verifiedpermissions::operation::batch_is_authorized_with_token::BatchIsAuthorizedWithTokenInput
source · #[non_exhaustive]pub struct BatchIsAuthorizedWithTokenInput {
pub policy_store_id: Option<String>,
pub identity_token: Option<String>,
pub access_token: Option<String>,
pub entities: Option<EntitiesDefinition>,
pub requests: Option<Vec<BatchIsAuthorizedWithTokenInputItem>>,
}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.
identity_token: Option<String>Specifies an identity (ID) token for the principal that you want to authorize in each request. This token is provided to you by the identity provider (IdP) associated with the specified identity source. You must specify either an accessToken, an identityToken, or both.
Must be an ID token. Verified Permissions returns an error if the token_use claim in the submitted token isn't id.
access_token: Option<String>Specifies an access token for the principal that you want to authorize in each request. This token is provided to you by the identity provider (IdP) associated with the specified identity source. You must specify either an accessToken, an identityToken, or both.
Must be an access token. Verified Permissions returns an error if the token_use claim in the submitted token isn't access.
entities: Option<EntitiesDefinition>Specifies the list of resources and their associated attributes that Verified Permissions can examine when evaluating the policies.
You can't include principals in this parameter, only resource and action entities. This parameter can't include any entities of a type that matches the user or group entity types that you defined in your identity source.
-
The
BatchIsAuthorizedWithTokenoperation takes principal attributes from only theidentityTokenoraccessTokenpassed to the operation. -
For action entities, you can include only their
IdentifierandEntityType.
requests: Option<Vec<BatchIsAuthorizedWithTokenInputItem>>An array of up to 30 requests that you want Verified Permissions to evaluate.
Implementations§
source§impl BatchIsAuthorizedWithTokenInput
impl BatchIsAuthorizedWithTokenInput
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 identity_token(&self) -> Option<&str>
pub fn identity_token(&self) -> Option<&str>
Specifies an identity (ID) token for the principal that you want to authorize in each request. This token is provided to you by the identity provider (IdP) associated with the specified identity source. You must specify either an accessToken, an identityToken, or both.
Must be an ID token. Verified Permissions returns an error if the token_use claim in the submitted token isn't id.
sourcepub fn access_token(&self) -> Option<&str>
pub fn access_token(&self) -> Option<&str>
Specifies an access token for the principal that you want to authorize in each request. This token is provided to you by the identity provider (IdP) associated with the specified identity source. You must specify either an accessToken, an identityToken, or both.
Must be an access token. Verified Permissions returns an error if the token_use claim in the submitted token isn't access.
sourcepub fn entities(&self) -> Option<&EntitiesDefinition>
pub fn entities(&self) -> Option<&EntitiesDefinition>
Specifies the list of resources and their associated attributes that Verified Permissions can examine when evaluating the policies.
You can't include principals in this parameter, only resource and action entities. This parameter can't include any entities of a type that matches the user or group entity types that you defined in your identity source.
-
The
BatchIsAuthorizedWithTokenoperation takes principal attributes from only theidentityTokenoraccessTokenpassed to the operation. -
For action entities, you can include only their
IdentifierandEntityType.
sourcepub fn requests(&self) -> &[BatchIsAuthorizedWithTokenInputItem]
pub fn requests(&self) -> &[BatchIsAuthorizedWithTokenInputItem]
An array of up to 30 requests that you want Verified Permissions to evaluate.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .requests.is_none().
source§impl BatchIsAuthorizedWithTokenInput
impl BatchIsAuthorizedWithTokenInput
sourcepub fn builder() -> BatchIsAuthorizedWithTokenInputBuilder
pub fn builder() -> BatchIsAuthorizedWithTokenInputBuilder
Creates a new builder-style object to manufacture BatchIsAuthorizedWithTokenInput.
Trait Implementations§
source§impl Clone for BatchIsAuthorizedWithTokenInput
impl Clone for BatchIsAuthorizedWithTokenInput
source§fn clone(&self) -> BatchIsAuthorizedWithTokenInput
fn clone(&self) -> BatchIsAuthorizedWithTokenInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for BatchIsAuthorizedWithTokenInput
impl PartialEq for BatchIsAuthorizedWithTokenInput
source§fn eq(&self, other: &BatchIsAuthorizedWithTokenInput) -> bool
fn eq(&self, other: &BatchIsAuthorizedWithTokenInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for BatchIsAuthorizedWithTokenInput
Auto Trait Implementations§
impl Freeze for BatchIsAuthorizedWithTokenInput
impl RefUnwindSafe for BatchIsAuthorizedWithTokenInput
impl Send for BatchIsAuthorizedWithTokenInput
impl Sync for BatchIsAuthorizedWithTokenInput
impl Unpin for BatchIsAuthorizedWithTokenInput
impl UnwindSafe for BatchIsAuthorizedWithTokenInput
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