Class IdentityPool.Builder

java.lang.Object
software.amazon.awscdk.services.cognito.identitypool.IdentityPool.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<IdentityPool>
Enclosing class:
IdentityPool

@Stability(Experimental) public static final class IdentityPool.Builder extends Object implements software.amazon.jsii.Builder<IdentityPool>
(experimental) A fluent builder for IdentityPool.
  • Method Details

    • create

      @Stability(Experimental) public static IdentityPool.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of IdentityPool.Builder.
    • allowClassicFlow

      @Stability(Experimental) public IdentityPool.Builder allowClassicFlow(Boolean allowClassicFlow)
      (experimental) Enables the Basic (Classic) authentication flow.

      Default: - Classic Flow not allowed

      Parameters:
      allowClassicFlow - Enables the Basic (Classic) authentication flow. This parameter is required.
      Returns:
      this
    • allowUnauthenticatedIdentities

      @Stability(Experimental) public IdentityPool.Builder allowUnauthenticatedIdentities(Boolean allowUnauthenticatedIdentities)
      (experimental) Wwhether the identity pool supports unauthenticated logins.

      Default: - false

      Parameters:
      allowUnauthenticatedIdentities - Wwhether the identity pool supports unauthenticated logins. This parameter is required.
      Returns:
      this
    • authenticatedRole

      @Stability(Experimental) public IdentityPool.Builder authenticatedRole(IRole authenticatedRole)
      (experimental) The Default Role to be assumed by Authenticated Users.

      Default: - A Default Authenticated Role will be added

      Parameters:
      authenticatedRole - The Default Role to be assumed by Authenticated Users. This parameter is required.
      Returns:
      this
    • authenticationProviders

      @Stability(Experimental) public IdentityPool.Builder authenticationProviders(IdentityPoolAuthenticationProviders authenticationProviders)
      (experimental) Authentication providers for using in identity pool.

      Default: - No Authentication Providers passed directly to Identity Pool

      Parameters:
      authenticationProviders - Authentication providers for using in identity pool. This parameter is required.
      Returns:
      this
    • identityPoolName

      @Stability(Experimental) public IdentityPool.Builder identityPoolName(String identityPoolName)
      (experimental) The name of the Identity Pool.

      Default: - automatically generated name by CloudFormation at deploy time

      Parameters:
      identityPoolName - The name of the Identity Pool. This parameter is required.
      Returns:
      this
    • roleMappings

      @Stability(Experimental) public IdentityPool.Builder roleMappings(List<? extends IdentityPoolRoleMapping> roleMappings)
      (experimental) Rules for mapping roles to users.

      Default: - no Role Mappings

      Parameters:
      roleMappings - Rules for mapping roles to users. This parameter is required.
      Returns:
      this
    • unauthenticatedRole

      @Stability(Experimental) public IdentityPool.Builder unauthenticatedRole(IRole unauthenticatedRole)
      (experimental) The Default Role to be assumed by Unauthenticated Users.

      Default: - A Default Unauthenticated Role will be added

      Parameters:
      unauthenticatedRole - The Default Role to be assumed by Unauthenticated Users. This parameter is required.
      Returns:
      this
    • build

      @Stability(Experimental) public IdentityPool build()
      Specified by:
      build in interface software.amazon.jsii.Builder<IdentityPool>
      Returns:
      a newly built instance of IdentityPool.