1.0.2 • Published 4 years ago

@raydeck/serverless-setup-cognito v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Set up cognito.json for web apps and react native apps in serverless monorepos

Usage

npx @raydeck/serverless-setup-cognito [options]

Options

  • -s --stage stage Stage for the stack we are examining (default from monorepo root)
  • -r --region region Region for the stack (default us-east-1)
  • -p --cognitoPath path Path to the cognito serverless package
  • -c --clientPath path Path to the package defining the app client
  • -k --clientName resourceName Logical name of the cognito client name resource (e.g. CounselorClient)

@raydeck/serverless-setup-cognito - v1.0.2

Index

Variables

Functions

Variables

clientName

clientName: any

Defined in bin.ts:28


clientPath

clientPath: any

Defined in bin.ts:28


cognitoPath

cognitoPath: any

Defined in bin.ts:28


region

region: any

Defined in bin.ts:28


stage

stage: any

Defined in bin.ts:28

Functions

getConfig

getConfig(__namedParameters: object): Promise‹object›

Defined in index.ts:7

Parameters:

__namedParameters: object

NameTypeDefault
clientNameundefined | string-
clientPathundefined | string-
cognitoPathundefined | string-
pathstringprocess.cwd()
regionundefined | string-
stagestring-

Returns: Promise‹object›


writeConfig

writeConfig(config: PromiseValue‹ReturnType‹typeof getConfig››, path: string): void

Defined in index.ts:55

Parameters:

NameTypeDefault
configPromiseValue‹ReturnType‹typeof getConfig››-
pathstringjoin(process.cwd(), "config")

Returns: void