Struct rusoto_cognito_identity::RoleMapping
[−]
[src]
pub struct RoleMapping { pub ambiguous_role_resolution: Option<String>, pub rules_configuration: Option<RulesConfigurationType>, pub type_: String, }
A role mapping.
Fields
ambiguous_role_resolution: Option<String>
If you specify Token or Rules as the Type
, AmbiguousRoleResolution
is required.
Specifies the action to be taken if either no rules match the claim value for the Rules
type, or there is no cognito:preferred_role
claim and there are multiple cognito:roles
matches for the Token
type.
rules_configuration: Option<RulesConfigurationType>
The rules to be used for mapping users to roles.
If you specify Rules as the role mapping type, RulesConfiguration
is required.
type_: String
The role mapping type. Token will use cognito:roles
and cognito:preferred_role
claims from the Cognito identity provider token to map groups to roles. Rules will attempt to match claims from the token to map to a role.
Trait Implementations
impl Default for RoleMapping
[src]
fn default() -> RoleMapping
[src]
Returns the "default value" for a type. Read more
impl Debug for RoleMapping
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for RoleMapping
[src]
fn clone(&self) -> RoleMapping
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more