#[non_exhaustive]pub struct CognitoUserPoolConfigurationBuilder { /* private fields */ }Expand description
A builder for CognitoUserPoolConfiguration.
Implementations§
source§impl CognitoUserPoolConfigurationBuilder
impl CognitoUserPoolConfigurationBuilder
sourcepub fn user_pool_arn(self, input: impl Into<String>) -> Self
pub fn user_pool_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the Amazon Cognito user pool that contains the identities to be authorized.
Example: "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5"
sourcepub fn set_user_pool_arn(self, input: Option<String>) -> Self
pub fn set_user_pool_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the Amazon Cognito user pool that contains the identities to be authorized.
Example: "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5"
sourcepub fn get_user_pool_arn(&self) -> &Option<String>
pub fn get_user_pool_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the Amazon Cognito user pool that contains the identities to be authorized.
Example: "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5"
sourcepub fn client_ids(self, input: impl Into<String>) -> Self
pub fn client_ids(self, input: impl Into<String>) -> Self
Appends an item to client_ids.
To override the contents of this collection use set_client_ids.
The unique application client IDs that are associated with the specified Amazon Cognito user pool.
Example: "ClientIds": \["&ExampleCogClientId;"\]
sourcepub fn set_client_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_client_ids(self, input: Option<Vec<String>>) -> Self
The unique application client IDs that are associated with the specified Amazon Cognito user pool.
Example: "ClientIds": \["&ExampleCogClientId;"\]
sourcepub fn get_client_ids(&self) -> &Option<Vec<String>>
pub fn get_client_ids(&self) -> &Option<Vec<String>>
The unique application client IDs that are associated with the specified Amazon Cognito user pool.
Example: "ClientIds": \["&ExampleCogClientId;"\]
sourcepub fn group_configuration(self, input: CognitoGroupConfiguration) -> Self
pub fn group_configuration(self, input: CognitoGroupConfiguration) -> Self
The type of entity that a policy store maps to groups from an Amazon Cognito user pool identity source.
sourcepub fn set_group_configuration(
self,
input: Option<CognitoGroupConfiguration>,
) -> Self
pub fn set_group_configuration( self, input: Option<CognitoGroupConfiguration>, ) -> Self
The type of entity that a policy store maps to groups from an Amazon Cognito user pool identity source.
sourcepub fn get_group_configuration(&self) -> &Option<CognitoGroupConfiguration>
pub fn get_group_configuration(&self) -> &Option<CognitoGroupConfiguration>
The type of entity that a policy store maps to groups from an Amazon Cognito user pool identity source.
sourcepub fn build(self) -> Result<CognitoUserPoolConfiguration, BuildError>
pub fn build(self) -> Result<CognitoUserPoolConfiguration, BuildError>
Consumes the builder and constructs a CognitoUserPoolConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CognitoUserPoolConfigurationBuilder
impl Clone for CognitoUserPoolConfigurationBuilder
source§fn clone(&self) -> CognitoUserPoolConfigurationBuilder
fn clone(&self) -> CognitoUserPoolConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CognitoUserPoolConfigurationBuilder
impl Default for CognitoUserPoolConfigurationBuilder
source§fn default() -> CognitoUserPoolConfigurationBuilder
fn default() -> CognitoUserPoolConfigurationBuilder
source§impl PartialEq for CognitoUserPoolConfigurationBuilder
impl PartialEq for CognitoUserPoolConfigurationBuilder
source§fn eq(&self, other: &CognitoUserPoolConfigurationBuilder) -> bool
fn eq(&self, other: &CognitoUserPoolConfigurationBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CognitoUserPoolConfigurationBuilder
Auto Trait Implementations§
impl Freeze for CognitoUserPoolConfigurationBuilder
impl RefUnwindSafe for CognitoUserPoolConfigurationBuilder
impl Send for CognitoUserPoolConfigurationBuilder
impl Sync for CognitoUserPoolConfigurationBuilder
impl Unpin for CognitoUserPoolConfigurationBuilder
impl UnwindSafe for CognitoUserPoolConfigurationBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
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>
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