#[non_exhaustive]pub struct OriginIdentity {
pub subject: Option<String>,
pub subject_type: Option<String>,
pub issuer: Option<String>,
pub federated_provider_arn: Option<String>,
}Expand description
The session's aws:OriginIdentity/Subject, aws:OriginIdentity/SubjectType, aws:OriginIdentity/Issuer and aws:OriginIdentity/FederatedProviderArn keys. A member is absent when the session does not have the key.
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.subject: Option<String>The value of the aws:OriginIdentity/Subject key: the end user's identifier, taken from the token claim that the context provider maps as the subject.
subject_type: Option<String>The value of the aws:OriginIdentity/SubjectType key, which indicates whether the end user is a person (user) or a non-human caller such as an application or service (workload).
issuer: Option<String>The value of the aws:OriginIdentity/Issuer key. For AssumeRoleWithWebIdentity, this is the iss claim of the token without the https:// prefix. For AssumeRoleWithSAML, this is a hash of the key that signed the SAML assertion, not the Issuer element of the assertion.
federated_provider_arn: Option<String>The value of the aws:OriginIdentity/FederatedProviderArn key: the ARN of the IAM identity provider that the request federated through.
Implementations§
Source§impl OriginIdentity
impl OriginIdentity
Sourcepub fn subject(&self) -> Option<&str>
pub fn subject(&self) -> Option<&str>
The value of the aws:OriginIdentity/Subject key: the end user's identifier, taken from the token claim that the context provider maps as the subject.
Sourcepub fn subject_type(&self) -> Option<&str>
pub fn subject_type(&self) -> Option<&str>
The value of the aws:OriginIdentity/SubjectType key, which indicates whether the end user is a person (user) or a non-human caller such as an application or service (workload).
Sourcepub fn issuer(&self) -> Option<&str>
pub fn issuer(&self) -> Option<&str>
The value of the aws:OriginIdentity/Issuer key. For AssumeRoleWithWebIdentity, this is the iss claim of the token without the https:// prefix. For AssumeRoleWithSAML, this is a hash of the key that signed the SAML assertion, not the Issuer element of the assertion.
Sourcepub fn federated_provider_arn(&self) -> Option<&str>
pub fn federated_provider_arn(&self) -> Option<&str>
The value of the aws:OriginIdentity/FederatedProviderArn key: the ARN of the IAM identity provider that the request federated through.
Source§impl OriginIdentity
impl OriginIdentity
Sourcepub fn builder() -> OriginIdentityBuilder
pub fn builder() -> OriginIdentityBuilder
Creates a new builder-style object to manufacture OriginIdentity.
Trait Implementations§
Source§impl Clone for OriginIdentity
impl Clone for OriginIdentity
Source§fn clone(&self) -> OriginIdentity
fn clone(&self) -> OriginIdentity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OriginIdentity
impl Debug for OriginIdentity
Source§impl PartialEq for OriginIdentity
impl PartialEq for OriginIdentity
impl StructuralPartialEq for OriginIdentity
Auto Trait Implementations§
impl Freeze for OriginIdentity
impl RefUnwindSafe for OriginIdentity
impl Send for OriginIdentity
impl Sync for OriginIdentity
impl Unpin for OriginIdentity
impl UnsafeUnpin for OriginIdentity
impl UnwindSafe for OriginIdentity
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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