#[non_exhaustive]pub struct CreateBackendAuthResourceConfig {
pub auth_resources: Option<AuthResources>,
pub identity_pool_configs: Option<CreateBackendAuthIdentityPoolConfig>,
pub service: Option<Service>,
pub user_pool_configs: Option<CreateBackendAuthUserPoolConfig>,
}
Expand description
Defines the resource configuration when creating an auth resource in your Amplify project.
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.auth_resources: Option<AuthResources>
Defines whether you want to configure only authentication or both authentication and authorization settings.
identity_pool_configs: Option<CreateBackendAuthIdentityPoolConfig>
Describes the authorization configuration for the Amazon Cognito identity pool, provisioned as a part of your auth resource in the Amplify project.
service: Option<Service>
Defines the service name to use when configuring an authentication resource in your Amplify project.
user_pool_configs: Option<CreateBackendAuthUserPoolConfig>
Describes authentication configuration for the Amazon Cognito user pool, provisioned as a part of your auth resource in the Amplify project.
Implementations§
source§impl CreateBackendAuthResourceConfig
impl CreateBackendAuthResourceConfig
sourcepub fn auth_resources(&self) -> Option<&AuthResources>
pub fn auth_resources(&self) -> Option<&AuthResources>
Defines whether you want to configure only authentication or both authentication and authorization settings.
sourcepub fn identity_pool_configs(
&self
) -> Option<&CreateBackendAuthIdentityPoolConfig>
pub fn identity_pool_configs( &self ) -> Option<&CreateBackendAuthIdentityPoolConfig>
Describes the authorization configuration for the Amazon Cognito identity pool, provisioned as a part of your auth resource in the Amplify project.
sourcepub fn service(&self) -> Option<&Service>
pub fn service(&self) -> Option<&Service>
Defines the service name to use when configuring an authentication resource in your Amplify project.
sourcepub fn user_pool_configs(&self) -> Option<&CreateBackendAuthUserPoolConfig>
pub fn user_pool_configs(&self) -> Option<&CreateBackendAuthUserPoolConfig>
Describes authentication configuration for the Amazon Cognito user pool, provisioned as a part of your auth resource in the Amplify project.
source§impl CreateBackendAuthResourceConfig
impl CreateBackendAuthResourceConfig
sourcepub fn builder() -> CreateBackendAuthResourceConfigBuilder
pub fn builder() -> CreateBackendAuthResourceConfigBuilder
Creates a new builder-style object to manufacture CreateBackendAuthResourceConfig
.
Trait Implementations§
source§impl Clone for CreateBackendAuthResourceConfig
impl Clone for CreateBackendAuthResourceConfig
source§fn clone(&self) -> CreateBackendAuthResourceConfig
fn clone(&self) -> CreateBackendAuthResourceConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for CreateBackendAuthResourceConfig
impl PartialEq for CreateBackendAuthResourceConfig
source§fn eq(&self, other: &CreateBackendAuthResourceConfig) -> bool
fn eq(&self, other: &CreateBackendAuthResourceConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateBackendAuthResourceConfig
Auto Trait Implementations§
impl Freeze for CreateBackendAuthResourceConfig
impl RefUnwindSafe for CreateBackendAuthResourceConfig
impl Send for CreateBackendAuthResourceConfig
impl Sync for CreateBackendAuthResourceConfig
impl Unpin for CreateBackendAuthResourceConfig
impl UnwindSafe for CreateBackendAuthResourceConfig
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> 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