public static final class IdentityPool.Builder
extends java.lang.Object
IdentityPool
.Modifier and Type | Method and Description |
---|---|
IdentityPool.Builder |
allowClassicFlow(java.lang.Boolean allowClassicFlow)
(experimental) Enables the Basic (Classic) authentication flow.
|
IdentityPool.Builder |
allowUnauthenticatedIdentities(java.lang.Boolean allowUnauthenticatedIdentities)
(experimental) Wwhether the identity pool supports unauthenticated logins.
|
IdentityPool.Builder |
authenticatedRole(IRole authenticatedRole)
(experimental) The Default Role to be assumed by Authenticated Users.
|
IdentityPool.Builder |
authenticationProviders(IdentityPoolAuthenticationProviders authenticationProviders)
(experimental) Authentication providers for using in identity pool.
|
IdentityPool |
build() |
static IdentityPool.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
IdentityPool.Builder |
identityPoolName(java.lang.String identityPoolName)
(experimental) The name of the Identity Pool.
|
IdentityPool.Builder |
roleMappings(java.util.List<? extends IdentityPoolRoleMapping> roleMappings)
(experimental) Rules for mapping roles to users.
|
IdentityPool.Builder |
unauthenticatedRole(IRole unauthenticatedRole)
(experimental) The Default Role to be assumed by Unauthenticated Users.
|
public static IdentityPool.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.IdentityPool.Builder
.public IdentityPool.Builder allowClassicFlow(java.lang.Boolean allowClassicFlow)
Default: - Classic Flow not allowed
allowClassicFlow
- Enables the Basic (Classic) authentication flow. This parameter is required.this
public IdentityPool.Builder allowUnauthenticatedIdentities(java.lang.Boolean allowUnauthenticatedIdentities)
Default: - false
allowUnauthenticatedIdentities
- Wwhether the identity pool supports unauthenticated logins. This parameter is required.this
public IdentityPool.Builder authenticatedRole(IRole authenticatedRole)
Default: - A Default Authenticated Role will be added
authenticatedRole
- The Default Role to be assumed by Authenticated Users. This parameter is required.this
public IdentityPool.Builder authenticationProviders(IdentityPoolAuthenticationProviders authenticationProviders)
Default: - No Authentication Providers passed directly to Identity Pool
authenticationProviders
- Authentication providers for using in identity pool. This parameter is required.this
public IdentityPool.Builder identityPoolName(java.lang.String identityPoolName)
Default: - automatically generated name by CloudFormation at deploy time
identityPoolName
- The name of the Identity Pool. This parameter is required.this
public IdentityPool.Builder roleMappings(java.util.List<? extends IdentityPoolRoleMapping> roleMappings)
Default: - no Role Mappings
roleMappings
- Rules for mapping roles to users. This parameter is required.this
public IdentityPool.Builder unauthenticatedRole(IRole unauthenticatedRole)
Default: - A Default Unauthenticated Role will be added
unauthenticatedRole
- The Default Role to be assumed by Unauthenticated Users. This parameter is required.this
public IdentityPool build()