#[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
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AdditionalAuthenticationProvider
Auto Trait Implementations§
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> 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>
Creates a shared type from an unshared type.