@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:27.299Z") @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);
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypoolroleattachment.html| 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
https://docs.aws.amazon.com/cognito/latest/developerguide/role-based-access-control.html#using-tokens-to-assign-roles-to-users@Stability(value=Experimental) static IdentityPoolRoleMapping.Builder builder()
IdentityPoolRoleMapping.Builder of IdentityPoolRoleMappingCopyright © 2022. All rights reserved.