Amplify Toolbox
    Preparing search index...
    • Provide references to existing auth resources.

      Parameters

      • props: {
            access?: AuthAccessGenerator;
            authRoleArn: string;
            groups?: { [groupName: string]: string };
            identityPoolId: string;
            unauthRoleArn: string;
            userPoolClientId: string;
            userPoolId: string;
        }
        • Optionalaccess?: AuthAccessGenerator

          Configure access to auth for other Amplify resources

          access: (allow) => [allow.resource(postConfirmation).to(["addUserToGroup"])]
          
          access: (allow) => [allow.resource(groupManager).to(["manageGroups"])]
          
        • authRoleArn: string

          Existing AuthRole ARN

        • Optionalgroups?: { [groupName: string]: string }

          A mapping of existing group names and their associated role ARNs which can be used for group permissions.

        • identityPoolId: string

          Existing IdentityPool Id

        • unauthRoleArn: string

          Existing UnauthRole ARN

        • userPoolClientId: string

          Existing UserPoolClient Id

        • userPoolId: string

          Existing UserPool Id

      Returns ConstructFactory<BackendReferenceAuth>