Struct aws_sdk_verifiedpermissions::operation::is_authorized_with_token::IsAuthorizedWithTokenInput
source · #[non_exhaustive]pub struct IsAuthorizedWithTokenInput {
pub policy_store_id: Option<String>,
pub identity_token: Option<String>,
pub access_token: Option<String>,
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.
identity_token: Option<String>Specifies an identity token for the principal to be authorized. This token is provided to you by the identity provider (IdP) associated with the specified identity source. You must specify either an AccessToken or an IdentityToken, or both.
access_token: Option<String>Specifies an access token for the principal to be authorized. This token is provided to you by the identity provider (IdP) associated with the specified identity source. You must specify either an AccessToken, or an IdentityToken, or both.
action: Option<ActionIdentifier>Specifies the requested action to be authorized. Is the specified principal authorized to perform this action on the specified resource.
resource: Option<EntityIdentifier>Specifies the resource for which the authorization decision is made. For example, is the principal allowed to perform the action on the resource?
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 their associated attributes that Verified Permissions can examine when evaluating the policies.
You can include only resource and action entities in this parameter; you can't include principals.
-
The
IsAuthorizedWithTokenoperation takes principal attributes from only theidentityTokenoraccessTokenpassed to the operation. -
For action entities, you can include only their
IdentifierandEntityType.
Implementations§
source§impl IsAuthorizedWithTokenInput
impl IsAuthorizedWithTokenInput
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 token for the principal to be authorized. This token is provided to you by the identity provider (IdP) associated with the specified identity source. You must specify either an AccessToken or an IdentityToken, or both.
sourcepub fn access_token(&self) -> Option<&str>
pub fn access_token(&self) -> Option<&str>
Specifies an access token for the principal to be authorized. This token is provided to you by the identity provider (IdP) associated with the specified identity source. You must specify either an AccessToken, or an IdentityToken, or both.
sourcepub fn action(&self) -> Option<&ActionIdentifier>
pub fn action(&self) -> Option<&ActionIdentifier>
Specifies the requested action to be authorized. Is the specified principal authorized to perform this action on the specified resource.
sourcepub fn resource(&self) -> Option<&EntityIdentifier>
pub fn resource(&self) -> Option<&EntityIdentifier>
Specifies the resource for which the authorization decision is made. For example, is the principal allowed to perform the action on the resource?
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 their associated attributes that Verified Permissions can examine when evaluating the policies.
You can include only resource and action entities in this parameter; you can't include principals.
-
The
IsAuthorizedWithTokenoperation takes principal attributes from only theidentityTokenoraccessTokenpassed to the operation. -
For action entities, you can include only their
IdentifierandEntityType.
source§impl IsAuthorizedWithTokenInput
impl IsAuthorizedWithTokenInput
sourcepub fn builder() -> IsAuthorizedWithTokenInputBuilder
pub fn builder() -> IsAuthorizedWithTokenInputBuilder
Creates a new builder-style object to manufacture IsAuthorizedWithTokenInput.
Trait Implementations§
source§impl Clone for IsAuthorizedWithTokenInput
impl Clone for IsAuthorizedWithTokenInput
source§fn clone(&self) -> IsAuthorizedWithTokenInput
fn clone(&self) -> IsAuthorizedWithTokenInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for IsAuthorizedWithTokenInput
impl Debug for IsAuthorizedWithTokenInput
source§impl PartialEq for IsAuthorizedWithTokenInput
impl PartialEq for IsAuthorizedWithTokenInput
source§fn eq(&self, other: &IsAuthorizedWithTokenInput) -> bool
fn eq(&self, other: &IsAuthorizedWithTokenInput) -> bool
self and other values to be equal, and is used
by ==.