This repository was archived by the owner on Dec 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +53
-0
lines changed
presets/library/cognito-management-panel Expand file tree Collapse file tree 3 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ import { extend , extract } from '../../../src/index.js'
2+
3+ export default [ extend ( 'presets/base/typescript-cdk' ) , extract ( ) ]
Original file line number Diff line number Diff line change 1+ <p align =" center " >
2+ <a href =" https://buttonize.io " >
3+ <img width="350" alt="Buttonize.io" src="https://user-images.githubusercontent.com/6282843/212024942-9fd50774-ea26-48ba-b2cf-ca2584498c9a.png">
4+ </a >
5+ </p >
6+
7+ ---
8+
9+ ## Cognito Management Panel
10+
11+ [ ![ Cognito Management Panel] ( https://github.com/buttonize/create-buttonize/assets/6282843/e2a9d533-d32f-4fb3-b50a-61947d3c24c7 )] ( https://buttonize.io/library/cognito-management-panel )
12+
13+ Learn more about Cognito Management Panel Construct [ here] ( https://buttonize.io/library/cognito-management-panel ) .
14+
15+ ## CDK
16+
17+ The ` cdk.json ` file tells the CDK Toolkit how to execute your app.
18+
19+ ### Useful commands
20+
21+ * ` npm run build ` compile typescript to js
22+ * ` npm run watch ` watch for changes and compile
23+ * ` npx cdk deploy ` deploy this stack to your default AWS account/region
24+ * ` npx cdk diff ` compare deployed stack with current state
25+ * ` npx cdk synth ` emits the synthesized CloudFormation template
Original file line number Diff line number Diff line change 1+ import * as cdk from 'aws-cdk-lib'
2+ import { UserPool } from 'aws-cdk-lib/aws-cognito'
3+ import { Buttonize } from 'buttonize/cdk'
4+ import { CognitoManagementPanel } from 'buttonize/library'
5+ import { Construct } from 'constructs'
6+
7+ export class ExampleStack extends cdk . Stack {
8+ constructor ( scope : Construct , id : string , props ?: cdk . StackProps ) {
9+ super ( scope , id , props )
10+
11+ Buttonize . init ( this , {
12+ apiKey : '@@apiKey'
13+ } )
14+
15+ const userPool = new UserPool ( this , 'UserPool' , {
16+ signInAliases : {
17+ email : true
18+ }
19+ } )
20+
21+ new CognitoManagementPanel ( this , 'CognitoPanel' , {
22+ userPool
23+ } )
24+ }
25+ }
You can’t perform that action at this time.
0 commit comments