Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data MappingRule = MappingRule' {}
- newMappingRule :: Text -> MappingRuleMatchType -> Text -> Text -> MappingRule
- mappingRule_claim :: Lens' MappingRule Text
- mappingRule_matchType :: Lens' MappingRule MappingRuleMatchType
- mappingRule_value :: Lens' MappingRule Text
- mappingRule_roleARN :: Lens' MappingRule Text
Documentation
data MappingRule Source #
A rule that maps a claim name, a claim value, and a match type to a role ARN.
See: newMappingRule
smart constructor.
MappingRule' | |
|
Instances
:: Text | |
-> MappingRuleMatchType | |
-> Text | |
-> Text | |
-> MappingRule |
Create a value of MappingRule
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:claim:MappingRule'
, mappingRule_claim
- The claim name that must be present in the token, for example,
"isAdmin" or "paid".
$sel:matchType:MappingRule'
, mappingRule_matchType
- The match condition that specifies how closely the claim value in the
IdP token must match Value
.
$sel:value:MappingRule'
, mappingRule_value
- A brief string that the claim must match, for example, "paid" or
"yes".
$sel:roleARN:MappingRule'
, mappingRule_roleARN
- The role ARN.
mappingRule_claim :: Lens' MappingRule Text Source #
The claim name that must be present in the token, for example, "isAdmin" or "paid".
mappingRule_matchType :: Lens' MappingRule MappingRuleMatchType Source #
The match condition that specifies how closely the claim value in the
IdP token must match Value
.
mappingRule_value :: Lens' MappingRule Text Source #
A brief string that the claim must match, for example, "paid" or "yes".
mappingRule_roleARN :: Lens' MappingRule Text Source #
The role ARN.