@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:45.324Z") @Stability(value=Experimental) public interface IdentityPoolRoleMapping extends software.amazon.jsii.JsiiSerializable
Example:
import software.amazon.awscdk.services.cognito.identitypool.IdentityPoolRoleMapping; IdentityPool identityPool; IdentityPoolRoleMapping myAddedRoleMapping1; IdentityPoolRoleMapping myAddedRoleMapping2; IdentityPoolRoleMapping myAddedRoleMapping3; identityPool.addRoleMappings(myAddedRoleMapping1, myAddedRoleMapping2, myAddedRoleMapping3);
| Modifier and Type | Interface and Description |
|---|---|
static class |
IdentityPoolRoleMapping.Builder
A builder for
IdentityPoolRoleMapping |
static class |
IdentityPoolRoleMapping.Jsii$Proxy
An implementation for
IdentityPoolRoleMapping |
| Modifier and Type | Method and Description |
|---|---|
static IdentityPoolRoleMapping.Builder |
builder() |
IdentityPoolProviderUrl |
getProviderUrl()
(experimental) The url of the provider of for which the role is mapped.
|
default Boolean |
getResolveAmbiguousRoles()
(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 |
getUseToken()
(experimental) If true then mapped roles must be passed through the cognito:roles or cognito:preferred_role claims from identity provider.
|
@Stability(value=Experimental) @NotNull IdentityPoolProviderUrl getProviderUrl()
@Stability(value=Experimental) @Nullable default Boolean getResolveAmbiguousRoles()
Default: false - Ambiguous role resolutions will lead to requester being denied
@Stability(value=Experimental) @Nullable default List<RoleMappingRule> getRules()
Required if useToken is false
Default: - No Rule Mapping Rule
@Stability(value=Experimental) @Nullable default Boolean getUseToken()
Default: false
@Stability(value=Experimental) static IdentityPoolRoleMapping.Builder builder()
IdentityPoolRoleMapping.Builder of IdentityPoolRoleMappingCopyright © 2022. All rights reserved.