@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:03.513Z") @Stability(value=Experimental) public interface IdentityPoolRoleAttachmentProps extends software.amazon.jsii.JsiiSerializable
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.*;
import software.amazon.awscdk.services.iam.*;
IdentityPool identityPool;
IdentityPoolProviderUrl identityPoolProviderUrl;
Role role;
IdentityPoolRoleAttachmentProps identityPoolRoleAttachmentProps = IdentityPoolRoleAttachmentProps.builder()
.identityPool(identityPool)
// the properties below are optional
.authenticatedRole(role)
.roleMappings(List.of(IdentityPoolRoleMapping.builder()
.providerUrl(identityPoolProviderUrl)
// the properties below are optional
.resolveAmbiguousRoles(false)
.rules(List.of(RoleMappingRule.builder()
.claim("claim")
.claimValue("claimValue")
.mappedRole(role)
// the properties below are optional
.matchType(RoleMappingMatchType.EQUALS)
.build()))
.useToken(false)
.build()))
.unauthenticatedRole(role)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
IdentityPoolRoleAttachmentProps.Builder
A builder for
IdentityPoolRoleAttachmentProps |
static class |
IdentityPoolRoleAttachmentProps.Jsii$Proxy
An implementation for
IdentityPoolRoleAttachmentProps |
| Modifier and Type | Method and Description |
|---|---|
static IdentityPoolRoleAttachmentProps.Builder |
builder() |
default IRole |
getAuthenticatedRole()
(experimental) Default Authenticated (User) Role.
|
IIdentityPool |
getIdentityPool()
(experimental) Id of the Attachments Underlying Identity Pool.
|
default List<IdentityPoolRoleMapping> |
getRoleMappings()
(experimental) Rules for mapping roles to users.
|
default IRole |
getUnauthenticatedRole()
(experimental) Default Unauthenticated (Guest) Role.
|
@Stability(value=Experimental) @NotNull IIdentityPool getIdentityPool()
@Stability(value=Experimental) @Nullable default IRole getAuthenticatedRole()
Default: - No default authenticated role will be added
@Stability(value=Experimental) @Nullable default List<IdentityPoolRoleMapping> getRoleMappings()
Default: - no Role Mappings
@Stability(value=Experimental) @Nullable default IRole getUnauthenticatedRole()
Default: - No default unauthenticated role will be added
@Stability(value=Experimental) static IdentityPoolRoleAttachmentProps.Builder builder()
Copyright © 2022. All rights reserved.