Interface IdentityPoolRoleMapping
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IdentityPoolRoleMapping.Jsii$Proxy
@Generated(value="jsii-pacmak/1.94.0 (build b380f01)",
date="2024-01-13T02:49:33.834Z")
@Stability(Experimental)
public interface IdentityPoolRoleMapping
extends software.amazon.jsii.JsiiSerializable
(experimental) Map roles to users in the identity pool based on claims from the Identity Provider.
Example:
import software.amazon.awscdk.services.cognito.identitypool.alpha.IdentityPoolRoleMapping; IdentityPool identityPool; IdentityPoolRoleMapping myAddedRoleMapping1; IdentityPoolRoleMapping myAddedRoleMapping2; IdentityPoolRoleMapping myAddedRoleMapping3; identityPool.addRoleMappings(myAddedRoleMapping1, myAddedRoleMapping2, myAddedRoleMapping3);
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forIdentityPoolRoleMappingstatic final classAn implementation forIdentityPoolRoleMapping -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default String(experimental) The key used for the role mapping in the role mapping hash.(experimental) The url of the provider of for which the role is mapped.default Boolean(experimental) Allow for role assumption when results of role mapping are ambiguous.default List<RoleMappingRule>getRules()(experimental) The claim and value that must be matched in order to assume the role.default Boolean(experimental) If true then mapped roles must be passed through the cognito:roles or cognito:preferred_role claims from identity provider.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getProviderUrl
(experimental) The url of the provider of for which the role is mapped. -
getMappingKey
(experimental) The key used for the role mapping in the role mapping hash.Required if the providerUrl is a token.
Default: - the provided providerUrl
-
getResolveAmbiguousRoles
(experimental) Allow for role assumption when results of role mapping are ambiguous.Default: false - Ambiguous role resolutions will lead to requester being denied
-
getRules
(experimental) The claim and value that must be matched in order to assume the role.Required if useToken is false
Default: - No Rule Mapping Rule
-
getUseToken
(experimental) If true then mapped roles must be passed through the cognito:roles or cognito:preferred_role claims from identity provider.Default: false
- See Also:
-
builder
- Returns:
- a
IdentityPoolRoleMapping.BuilderofIdentityPoolRoleMapping
-