Struct aws_sdk_cognitoidentity::model::MappingRule
source · [−]#[non_exhaustive]pub struct MappingRule {
pub claim: Option<String>,
pub match_type: Option<MappingRuleMatchType>,
pub value: Option<String>,
pub role_arn: Option<String>,
}
Expand description
A rule that maps a claim name, a claim value, and a match type to a role ARN.
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.claim: Option<String>
The claim name that must be present in the token, for example, "isAdmin" or "paid".
match_type: Option<MappingRuleMatchType>
The match condition that specifies how closely the claim value in the IdP token must match Value
.
value: Option<String>
A brief string that the claim must match, for example, "paid" or "yes".
role_arn: Option<String>
The role ARN.
Implementations
The claim name that must be present in the token, for example, "isAdmin" or "paid".
The match condition that specifies how closely the claim value in the IdP token must match Value
.
A brief string that the claim must match, for example, "paid" or "yes".
Creates a new builder-style object to manufacture MappingRule
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MappingRule
impl Send for MappingRule
impl Sync for MappingRule
impl Unpin for MappingRule
impl UnwindSafe for MappingRule
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more