This construct returns the given Cognito UserPool's UserPoolDomain, or creates one. This resolves an issue with [AWS::Cognito::UserPoolDomain](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooldomain.html), since that will fail if one already exists.
Project description
@reapit-cdk/userpool-domain
This construct returns the given Cognito UserPool's UserPoolDomain, or creates one. This resolves an issue with AWS::Cognito::UserPoolDomain, since that will fail if one already exists.
Package Installation:
yarn add --dev @reapit-cdk/userpool-domain
# or
npm install @reapit-cdk/userpool-domain --save-dev
Usage
import { CfnOutput, Stack, App } from 'aws-cdk-lib'
import { UserPool } from 'aws-cdk-lib/aws-cognito'
import { UserPoolDomain } from '@reapit-cdk/userpool-domain'
const app = new App()
const stack = new Stack(app, 'stack-name')
const userPool = UserPool.fromUserPoolId(stack, 'userpool', 'USERPOOL_ID')
const userPoolDomain = new UserPoolDomain(stack, 'domain', { userPool })
new CfnOutput(stack, 'userPoolDomain', {
value: userPoolDomain.domain,
})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for reapit-cdk.userpool-domain-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ddd3198c2f2fd059907a4b8c31328ba8abfb181f9ea63e6f94d8df5a2fe6abc |
|
MD5 | fec0aa1492c344bd9dfc8d1c43754ccb |
|
BLAKE2b-256 | 554d0184a2b759d3029a9dea50411ec09787c7ecdfb85b6f28ff5412a14387f0 |
Close
Hashes for reapit_cdk.userpool_domain-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 876b8011a933ce4ee9e4866add3ed3018a26525868a15254177f64761e1c765f |
|
MD5 | 7ab474e7b379dd16b8f58f6941dbd272 |
|
BLAKE2b-256 | 2bbbd3394c63b6a4a209486726df18ae792502141790321ea2a814c0be89dfd4 |