Class IdentityPoolRoleAttachment.Builder

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

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

    • create

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

      @Stability(Experimental) public IdentityPoolRoleAttachment.Builder identityPool(IIdentityPool identityPool)
      (experimental) Id of the Attachments Underlying Identity Pool.

      Parameters:
      identityPool - Id of the Attachments Underlying Identity Pool. This parameter is required.
      Returns:
      this
    • authenticatedRole

      @Stability(Experimental) public IdentityPoolRoleAttachment.Builder authenticatedRole(IRole authenticatedRole)
      (experimental) Default Authenticated (User) Role.

      Default: - No default authenticated role will be added

      Parameters:
      authenticatedRole - Default Authenticated (User) Role. This parameter is required.
      Returns:
      this
    • roleMappings

      @Stability(Experimental) public IdentityPoolRoleAttachment.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 IdentityPoolRoleAttachment.Builder unauthenticatedRole(IRole unauthenticatedRole)
      (experimental) Default Unauthenticated (Guest) Role.

      Default: - No default unauthenticated role will be added

      Parameters:
      unauthenticatedRole - Default Unauthenticated (Guest) Role. This parameter is required.
      Returns:
      this
    • build

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