#[non_exhaustive]pub struct AdditionalAuthenticationProvider {
pub authentication_type: Option<AuthenticationType>,
pub open_id_connect_config: Option<OpenIdConnectConfig>,
pub user_pool_config: Option<CognitoUserPoolConfig>,
pub lambda_authorizer_config: Option<LambdaAuthorizerConfig>,
}
Expand description
Describes an additional authentication provider.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.authentication_type: Option<AuthenticationType>
The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.
open_id_connect_config: Option<OpenIdConnectConfig>
The OIDC configuration.
user_pool_config: Option<CognitoUserPoolConfig>
The Amazon Cognito user pool configuration.
Configuration for Lambda function authorization.
Implementations§
source§impl AdditionalAuthenticationProvider
impl AdditionalAuthenticationProvider
sourcepub fn authentication_type(&self) -> Option<&AuthenticationType>
pub fn authentication_type(&self) -> Option<&AuthenticationType>
The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.
sourcepub fn open_id_connect_config(&self) -> Option<&OpenIdConnectConfig>
pub fn open_id_connect_config(&self) -> Option<&OpenIdConnectConfig>
The OIDC configuration.
sourcepub fn user_pool_config(&self) -> Option<&CognitoUserPoolConfig>
pub fn user_pool_config(&self) -> Option<&CognitoUserPoolConfig>
The Amazon Cognito user pool configuration.
Configuration for Lambda function authorization.
source§impl AdditionalAuthenticationProvider
impl AdditionalAuthenticationProvider
sourcepub fn builder() -> AdditionalAuthenticationProviderBuilder
pub fn builder() -> AdditionalAuthenticationProviderBuilder
Creates a new builder-style object to manufacture AdditionalAuthenticationProvider
.
Trait Implementations§
source§impl Clone for AdditionalAuthenticationProvider
impl Clone for AdditionalAuthenticationProvider
source§fn clone(&self) -> AdditionalAuthenticationProvider
fn clone(&self) -> AdditionalAuthenticationProvider
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq for AdditionalAuthenticationProvider
impl PartialEq for AdditionalAuthenticationProvider
source§fn eq(&self, other: &AdditionalAuthenticationProvider) -> bool
fn eq(&self, other: &AdditionalAuthenticationProvider) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AdditionalAuthenticationProvider
Auto Trait Implementations§
impl Freeze for AdditionalAuthenticationProvider
impl RefUnwindSafe for AdditionalAuthenticationProvider
impl Send for AdditionalAuthenticationProvider
impl Sync for AdditionalAuthenticationProvider
impl Unpin for AdditionalAuthenticationProvider
impl UnwindSafe for AdditionalAuthenticationProvider
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.