AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Cognito::UserPoolUICustomizationAttachment

CfnUserPoolUICustomizationAttachment

A container for the UI customization information for the hosted UI in a user pool.

Import

import { CfnUserPoolUICustomizationAttachment } from 'aws-cdk-lib/aws-cognito';

Or use the module namespace:

import * as cognito from 'aws-cdk-lib/aws-cognito';
// cognito.CfnUserPoolUICustomizationAttachment

Properties

Configuration passed to the constructor as CfnUserPoolUICustomizationAttachmentProps.

clientIdRequired
string

The app client ID for your UI customization. When this value isn't present, the customization applies to all user pool app clients that don't have client-level settings..

userPoolIdRequired
string | IUserPoolRef

The ID of the user pool where you want to apply branding to the classic hosted UI.

cssOptional
string

A plaintext CSS file that contains the custom fields that you want to apply to your user pool or app client. To download a template, go to the Amazon Cognito console. Navigate to your user pool *App clients* tab, select *Login pages* , edit *Hosted UI (classic) style* , and select the link to `CSS template.css` .

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon Cognito Cheat Sheet

Everything you need to know about Amazon Cognito on one page. HD quality, print-friendly.

Download Free Infographic