Class IdentityPoolRoleAttachment.Builder

java.lang.Object
software.amazon.awscdk.services.cognito.identitypool.alpha.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 Attachment's underlying Identity Pool.

      Parameters:
      identityPool - ID of the Attachment's 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.