Class CfnManagedLoginBranding
- All Implemented Interfaces:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
This operation is the programmatic option for the creation of a new style in the branding designer.
Provides values for UI customization in a Settings
JSON object and image files in an Assets
array. To send the JSON object Document
type parameter in Settings
, you might need to update to the most recent version of your AWS SDK.
This operation has a 2-megabyte request-size limit and include the CSS settings and image assets for your app client. Your branding settings might exceed 2MB in size. Amazon Cognito doesn't require that you pass all parameters in one request and preserves existing style settings that you don't specify. If your request is larger than 2MB, separate it into multiple requests, each with a size smaller than the limit.
As a best practice, modify the output of DescribeManagedLoginBrandingByClient into the request parameters for this operation. To get all settings, set ReturnMergedResources
to true
. For more information, see API and SDK operations for managed login branding
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.cognito.*; Object settings; CfnManagedLoginBranding cfnManagedLoginBranding = CfnManagedLoginBranding.Builder.create(this, "MyCfnManagedLoginBranding") .userPoolId("userPoolId") // the properties below are optional .assets(List.of(AssetTypeProperty.builder() .category("category") .colorMode("colorMode") .extension("extension") // the properties below are optional .bytes("bytes") .resourceId("resourceId") .build())) .clientId("clientId") .returnMergedResources(false) .settings(settings) .useCognitoProvidedValues(false) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
An image file from a managed login branding style in a user pool.static final class
A fluent builder forCfnManagedLoginBranding
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnManagedLoginBranding
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnManagedLoginBranding
(software.amazon.jsii.JsiiObjectRef objRef) CfnManagedLoginBranding
(software.constructs.Construct scope, String id, CfnManagedLoginBrandingProps props) -
Method Summary
Modifier and TypeMethodDescriptionAn array of image files that you want to apply to roles like backgrounds, logos, and icons.The ID of the managed login branding style.The app client that's assigned to the branding style that you want more information about.Whentrue
, returns values for branding options that are unchanged from Amazon Cognito defaults.A JSON file, encoded as aDocument
type, with the the settings that you want to apply to your style.When true, applies the default branding style options.The user pool where the branding style is assigned.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
An array of image files that you want to apply to roles like backgrounds, logos, and icons.void
setAssets
(IResolvable value) An array of image files that you want to apply to roles like backgrounds, logos, and icons.void
setClientId
(String value) The app client that's assigned to the branding style that you want more information about.void
setReturnMergedResources
(Boolean value) Whentrue
, returns values for branding options that are unchanged from Amazon Cognito defaults.void
Whentrue
, returns values for branding options that are unchanged from Amazon Cognito defaults.void
setSettings
(Object value) A JSON file, encoded as aDocument
type, with the the settings that you want to apply to your style.void
When true, applies the default branding style options.void
When true, applies the default branding style options.void
setUserPoolId
(String value) The user pool where the branding style is assigned.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnManagedLoginBranding
protected CfnManagedLoginBranding(software.amazon.jsii.JsiiObjectRef objRef) -
CfnManagedLoginBranding
protected CfnManagedLoginBranding(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnManagedLoginBranding
@Stability(Stable) public CfnManagedLoginBranding(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnManagedLoginBrandingProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrManagedLoginBrandingId
The ID of the managed login branding style. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getUserPoolId
The user pool where the branding style is assigned. -
setUserPoolId
The user pool where the branding style is assigned. -
getAssets
An array of image files that you want to apply to roles like backgrounds, logos, and icons. -
setAssets
An array of image files that you want to apply to roles like backgrounds, logos, and icons. -
setAssets
An array of image files that you want to apply to roles like backgrounds, logos, and icons. -
getClientId
The app client that's assigned to the branding style that you want more information about. -
setClientId
The app client that's assigned to the branding style that you want more information about. -
getReturnMergedResources
Whentrue
, returns values for branding options that are unchanged from Amazon Cognito defaults. -
setReturnMergedResources
Whentrue
, returns values for branding options that are unchanged from Amazon Cognito defaults. -
setReturnMergedResources
Whentrue
, returns values for branding options that are unchanged from Amazon Cognito defaults. -
getSettings
A JSON file, encoded as aDocument
type, with the the settings that you want to apply to your style. -
setSettings
A JSON file, encoded as aDocument
type, with the the settings that you want to apply to your style. -
getUseCognitoProvidedValues
When true, applies the default branding style options. -
setUseCognitoProvidedValues
When true, applies the default branding style options. -
setUseCognitoProvidedValues
When true, applies the default branding style options.
-