#[non_exhaustive]pub struct CognitoUserPoolConfiguration {
pub user_pool_arn: String,
pub client_ids: Option<Vec<String>>,
pub group_configuration: Option<CognitoGroupConfiguration>,
}Expand description
The configuration for an identity source that represents a connection to an Amazon Cognito user pool used as an identity provider for Verified Permissions.
This data type part of a Configuration structure that is used as a parameter to CreateIdentitySource.
Example:"CognitoUserPoolConfiguration":{"UserPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","ClientIds": \["a1b2c3d4e5f6g7h8i9j0kalbmc"\],"groupConfiguration": {"groupEntityType": "MyCorp::Group"}}
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.user_pool_arn: StringThe 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"
client_ids: Option<Vec<String>>The unique application client IDs that are associated with the specified Amazon Cognito user pool.
Example: "ClientIds": \["&ExampleCogClientId;"\]
group_configuration: Option<CognitoGroupConfiguration>The type of entity that a policy store maps to groups from an Amazon Cognito user pool identity source.
Implementations§
source§impl CognitoUserPoolConfiguration
impl CognitoUserPoolConfiguration
sourcepub fn user_pool_arn(&self) -> &str
pub fn user_pool_arn(&self) -> &str
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) -> &[String]
pub fn client_ids(&self) -> &[String]
The unique application client IDs that are associated with the specified Amazon Cognito user pool.
Example: "ClientIds": \["&ExampleCogClientId;"\]
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .client_ids.is_none().
sourcepub fn group_configuration(&self) -> Option<&CognitoGroupConfiguration>
pub fn group_configuration(&self) -> Option<&CognitoGroupConfiguration>
The type of entity that a policy store maps to groups from an Amazon Cognito user pool identity source.
source§impl CognitoUserPoolConfiguration
impl CognitoUserPoolConfiguration
sourcepub fn builder() -> CognitoUserPoolConfigurationBuilder
pub fn builder() -> CognitoUserPoolConfigurationBuilder
Creates a new builder-style object to manufacture CognitoUserPoolConfiguration.
Trait Implementations§
source§impl Clone for CognitoUserPoolConfiguration
impl Clone for CognitoUserPoolConfiguration
source§fn clone(&self) -> CognitoUserPoolConfiguration
fn clone(&self) -> CognitoUserPoolConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CognitoUserPoolConfiguration
impl Debug for CognitoUserPoolConfiguration
source§impl PartialEq for CognitoUserPoolConfiguration
impl PartialEq for CognitoUserPoolConfiguration
source§fn eq(&self, other: &CognitoUserPoolConfiguration) -> bool
fn eq(&self, other: &CognitoUserPoolConfiguration) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CognitoUserPoolConfiguration
Auto Trait Implementations§
impl Freeze for CognitoUserPoolConfiguration
impl RefUnwindSafe for CognitoUserPoolConfiguration
impl Send for CognitoUserPoolConfiguration
impl Sync for CognitoUserPoolConfiguration
impl Unpin for CognitoUserPoolConfiguration
impl UnwindSafe for CognitoUserPoolConfiguration
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