Skip to content

feat(cognito): add ManagedLoginBranding L2 construct #34574

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

ykethan
Copy link
Contributor

@ykethan ykethan commented May 29, 2025

Issue # (if applicable)

Closes #.

Reason for this change

Description of changes

This PR adds a new L2 construct for Amazon Cognito ManagedLoginBranding, allowing users to customize the managed login UI experience for their Amazon Cognito User Pools.
Added enums for asset categories, color modes, and extensions
Added validation for resource properties
Added documentation in README.md

References:

AWS CloudFormation resource: AWS::Cognito::ManagedLoginBranding
Documentation: Amazon Cognito Managed Login

Describe any new or updated permissions being added

Description of how you validated changes

Added comprehensive unit tests for all scenarios
Created an integration test with three different branding configurations:

  • Basic settings
  • Asset-based branding
  • Default Cognito values

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions bot added the p2 label May 29, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team May 29, 2025 02:46
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label May 29, 2025
*/
readonly assets?: BrandingAsset[];

// TODO: create a detailed type for settings as there isn't a json schema published yet.
Copy link
Contributor Author

@ykethan ykethan May 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfortunately this cannot be fully typed yet as there is no json schema published from cognito

@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Jun 2, 2025
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 1bd23e5
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. p2 pr/needs-maintainer-review This PR needs a review from a Core Team Member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants