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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c91c0f5b06076508fc1c027fc521f147e7559ba211fc0183be94d3bb0e41b945 |
|
MD5 | 90df0e5f1e81d7c84bbd704234125e2b |
|
BLAKE2b-256 | 2b95620b8a04c20b4e450467af3f3295c995d4b7e4eb8b004a18b066b21c4aaa |
Close
Hashes for reapit_cdk.userpool_domain-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e52f5379e034aba5f16d94ba61347fcb8ef13f673358afee688f83012cb53b74 |
|
MD5 | 3b4d2413a4932f4c9a2893f66a960fd8 |
|
BLAKE2b-256 | 584264091da04a6a7a4610b2e698ad518a7403b8da77e21c309635a17721d6e9 |