Interface CfnIdentityPoolRoleAttachment.MappingRuleProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnIdentityPoolRoleAttachment.MappingRuleProperty.Jsii$Proxy
- Enclosing class:
CfnIdentityPoolRoleAttachment
@Stability(Stable)
public static interface CfnIdentityPoolRoleAttachment.MappingRuleProperty
extends software.amazon.jsii.JsiiSerializable
Defines how to map a claim to a role ARN.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.cognito.*; MappingRuleProperty mappingRuleProperty = MappingRuleProperty.builder() .claim("claim") .matchType("matchType") .roleArn("roleArn") .value("value") .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnIdentityPoolRoleAttachment.MappingRuleProperty
static final class
An implementation forCfnIdentityPoolRoleAttachment.MappingRuleProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
getClaim()
The claim name that must be present in the token.The match condition that specifies how closely the claim value in the IdP token must matchValue
.The Amazon Resource Name (ARN) of the role.getValue()
A brief string that the claim must match.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getClaim
The claim name that must be present in the token.For example: "isAdmin" or "paid".
-
getMatchType
The match condition that specifies how closely the claim value in the IdP token must matchValue
.Valid values are:
Equals
,Contains
,StartsWith
, andNotEqual
. -
getRoleArn
The Amazon Resource Name (ARN) of the role. -
getValue
A brief string that the claim must match.For example, "paid" or "yes".
-
builder
-