#[non_exhaustive]pub struct TransactionContextBuilder { /* private fields */ }Expand description
A builder for TransactionContext.
Implementations§
Source§impl TransactionContextBuilder
impl TransactionContextBuilder
Sourcepub fn identity_provider(
self,
k: impl Into<String>,
v: impl Into<String>,
) -> Self
pub fn identity_provider( self, k: impl Into<String>, v: impl Into<String>, ) -> Self
Adds a key-value pair to identity_provider.
To override the contents of this collection use set_identity_provider.
The session's aws:TransactionContext/IdentityProvider/* keys, keyed by the part of the key name after aws:TransactionContext/IdentityProvider/. Each value is up to 128 characters.
The number of entries is bounded twice. IAM limits how many keys a context provider maps when you configure it on the identity provider, and Amazon Web Services STS rejects a session whose session token exceeds the maximum size with PackedPolicyTooLarge.
Sourcepub fn set_identity_provider(
self,
input: Option<HashMap<String, String>>,
) -> Self
pub fn set_identity_provider( self, input: Option<HashMap<String, String>>, ) -> Self
The session's aws:TransactionContext/IdentityProvider/* keys, keyed by the part of the key name after aws:TransactionContext/IdentityProvider/. Each value is up to 128 characters.
The number of entries is bounded twice. IAM limits how many keys a context provider maps when you configure it on the identity provider, and Amazon Web Services STS rejects a session whose session token exceeds the maximum size with PackedPolicyTooLarge.
Sourcepub fn get_identity_provider(&self) -> &Option<HashMap<String, String>>
pub fn get_identity_provider(&self) -> &Option<HashMap<String, String>>
The session's aws:TransactionContext/IdentityProvider/* keys, keyed by the part of the key name after aws:TransactionContext/IdentityProvider/. Each value is up to 128 characters.
The number of entries is bounded twice. IAM limits how many keys a context provider maps when you configure it on the identity provider, and Amazon Web Services STS rejects a session whose session token exceeds the maximum size with PackedPolicyTooLarge.
Sourcepub fn build(self) -> TransactionContext
pub fn build(self) -> TransactionContext
Consumes the builder and constructs a TransactionContext.
Trait Implementations§
Source§impl Clone for TransactionContextBuilder
impl Clone for TransactionContextBuilder
Source§fn clone(&self) -> TransactionContextBuilder
fn clone(&self) -> TransactionContextBuilder
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 TransactionContextBuilder
impl Debug for TransactionContextBuilder
Source§impl Default for TransactionContextBuilder
impl Default for TransactionContextBuilder
Source§fn default() -> TransactionContextBuilder
fn default() -> TransactionContextBuilder
impl StructuralPartialEq for TransactionContextBuilder
Auto Trait Implementations§
impl Freeze for TransactionContextBuilder
impl RefUnwindSafe for TransactionContextBuilder
impl Send for TransactionContextBuilder
impl Sync for TransactionContextBuilder
impl Unpin for TransactionContextBuilder
impl UnsafeUnpin for TransactionContextBuilder
impl UnwindSafe for TransactionContextBuilder
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