Interface RoleMappingRule

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:45.478Z") @Stability(Experimental) public interface RoleMappingRule extends
(experimental) Represents an Identity Pool Role Attachment Role Mapping Rule.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 Role role;
 RoleMappingRule roleMappingRule = RoleMappingRule.builder()
         // the properties below are optional
  • Method Details

    • getClaim

      @Stability(Experimental) @NotNull String getClaim()
      (experimental) The key sent in the token by the federated identity provider.
    • getClaimValue

      @Stability(Experimental) @NotNull String getClaimValue()
      (experimental) The value of the claim that must be matched.
    • getMappedRole

      @Stability(Experimental) @NotNull IRole getMappedRole()
      (experimental) The Role to be assumed when Claim Value is matched.
    • getMatchType

      @Stability(Experimental) @Nullable default RoleMappingMatchType getMatchType()
      (experimental) How to match with the Claim value.

      Default: RoleMappingMatchType.EQUALS

    • builder

      @Stability(Experimental) static RoleMappingRule.Builder builder()
      a RoleMappingRule.Builder of RoleMappingRule