Interface RoleMappingRule
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RoleMappingRule.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-27T16:51:06.955Z")
@Stability(Experimental)
public interface RoleMappingRule
extends software.amazon.jsii.JsiiSerializable
(experimental) Represents an Identity Pool Role Attachment role mapping rule.
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.identitypool.alpha.*; import software.amazon.awscdk.services.iam.*; Role role; RoleMappingRule roleMappingRule = RoleMappingRule.builder() .claim("claim") .claimValue("claimValue") .mappedRole(role) // the properties below are optional .matchType(RoleMappingMatchType.EQUALS) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forRoleMappingRule
static final class
An implementation forRoleMappingRule
-
Method Summary
Modifier and TypeMethodDescriptionstatic RoleMappingRule.Builder
builder()
getClaim()
(experimental) The key sent in the token by the federated Identity Provider.(experimental) The value of the claim that must be matched.(experimental) The role to be assumed when the claim value is matched.default RoleMappingMatchType
(experimental) How to match with the claim value.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getClaim
(experimental) The key sent in the token by the federated Identity Provider. -
getClaimValue
(experimental) The value of the claim that must be matched. -
getMappedRole
(experimental) The role to be assumed when the claim value is matched. -
getMatchType
(experimental) How to match with the claim value.Default: RoleMappingMatchType.EQUALS
-
builder
- Returns:
- a
RoleMappingRule.Builder
ofRoleMappingRule
-