CfnManagedLoginBrandingProps
- class aws_cdk.aws_cognito.CfnManagedLoginBrandingProps(*, user_pool_id, assets=None, client_id=None, return_merged_resources=None, settings=None, use_cognito_provided_values=None)
Bases:
objectProperties for defining a
CfnManagedLoginBranding.- Parameters:
user_pool_id (
str) – The user pool where the branding style is assigned.assets (
Union[IResolvable,Sequence[Union[IResolvable,AssetTypeProperty,Dict[str,Any]]],None]) – An array of image files that you want to apply to roles like backgrounds, logos, and icons. Each object must also indicate whether it is for dark mode, light mode, or browser-adaptive mode.client_id (
Optional[str]) – The app client that you want to assign the branding style to. Each style is linked to an app client until you delete it.return_merged_resources (
Union[bool,IResolvable,None]) – Whentrue, returns values for branding options that are unchanged from Amazon Cognito defaults. Whenfalseor when you omit this parameter, returns only values that you customized in your branding style.settings (
Any) – A JSON file, encoded as aDocumenttype, with the the settings that you want to apply to your style. The following components are not currently implemented and reserved for future use: -signUp-instructions-sessionTimerDisplay-languageSelector(for localization, see Managed login localization)use_cognito_provided_values (
Union[bool,IResolvable,None]) – When true, applies the default branding style options. This option reverts to default style options that are managed by Amazon Cognito. You can modify them later in the branding editor. When you specifytruefor this option, you must also omit values forSettingsandAssetsin the request.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_cognito as cognito # settings: Any cfn_managed_login_branding_props = cognito.CfnManagedLoginBrandingProps( user_pool_id="userPoolId", # the properties below are optional assets=[cognito.CfnManagedLoginBranding.AssetTypeProperty( category="category", color_mode="colorMode", extension="extension", # the properties below are optional bytes="bytes", resource_id="resourceId" )], client_id="clientId", return_merged_resources=False, settings=settings, use_cognito_provided_values=False )
Attributes
- assets
An array of image files that you want to apply to roles like backgrounds, logos, and icons.
Each object must also indicate whether it is for dark mode, light mode, or browser-adaptive mode.
- client_id
The app client that you want to assign the branding style to.
Each style is linked to an app client until you delete it.
- return_merged_resources
When
true, returns values for branding options that are unchanged from Amazon Cognito defaults.When
falseor when you omit this parameter, returns only values that you customized in your branding style.
- settings
A JSON file, encoded as a
Documenttype, with the the settings that you want to apply to your style.The following components are not currently implemented and reserved for future use:
signUpinstructionssessionTimerDisplaylanguageSelector(for localization, see Managed login localization)
- use_cognito_provided_values
When true, applies the default branding style options.
This option reverts to default style options that are managed by Amazon Cognito. You can modify them later in the branding editor.
When you specify
truefor this option, you must also omit values forSettingsandAssetsin the request.
- user_pool_id
The user pool where the branding style is assigned.