Class CfnManagedLoginBranding
- All Implemented Interfaces:
IInspectable,IManagedLoginBrandingRef,IEnvironmentAware,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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn image file from a managed login branding style in a user pool.static final classA fluent builder forCfnManagedLoginBranding.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.cognito.IManagedLoginBrandingRef
IManagedLoginBrandingRef.Jsii$Default, IManagedLoginBrandingRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnManagedLoginBranding(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnManagedLoginBranding(software.amazon.jsii.JsiiObjectRef objRef) CfnManagedLoginBranding(software.constructs.Construct scope, String id, CfnManagedLoginBrandingProps props) Create a newAWS::Cognito::ManagedLoginBranding. -
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 you want to assign the branding style to.A reference to a ManagedLoginBranding resource.Whentrue, returns values for branding options that are unchanged from Amazon Cognito defaults.A JSON file, encoded as aDocumenttype, 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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnManagedLoginBranding.renderProperties(Map<String, Object> props) voidAn array of image files that you want to apply to roles like backgrounds, logos, and icons.voidsetAssets(IResolvable value) An array of image files that you want to apply to roles like backgrounds, logos, and icons.voidsetClientId(String value) The app client that you want to assign the branding style to.voidsetReturnMergedResources(Boolean value) Whentrue, returns values for branding options that are unchanged from Amazon Cognito defaults.voidWhentrue, returns values for branding options that are unchanged from Amazon Cognito defaults.voidsetSettings(Object value) A JSON file, encoded as aDocumenttype, with the the settings that you want to apply to your style.voidWhen true, applies the default branding style options.voidWhen true, applies the default branding style options.voidsetUserPoolId(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, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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) Create a newAWS::Cognito::ManagedLoginBranding.- 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
-
isCfnManagedLoginBranding
Checks whether the given object is a CfnManagedLoginBranding.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrManagedLoginBrandingId
The ID of the managed login branding style. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getManagedLoginBrandingRef
A reference to a ManagedLoginBranding resource.- Specified by:
getManagedLoginBrandingRefin interfaceIManagedLoginBrandingRef
-
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.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnManagedLoginBranding.AssetTypeProperty> -
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 you want to assign the branding style to. -
setClientId
The app client that you want to assign the branding style to. -
getReturnMergedResources
Whentrue, returns values for branding options that are unchanged from Amazon Cognito defaults.Returns union: either
BooleanorIResolvable -
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 aDocumenttype, with the the settings that you want to apply to your style. -
setSettings
A JSON file, encoded as aDocumenttype, with the the settings that you want to apply to your style. -
getUseCognitoProvidedValues
When true, applies the default branding style options.Returns union: either
BooleanorIResolvable -
setUseCognitoProvidedValues
When true, applies the default branding style options. -
setUseCognitoProvidedValues
When true, applies the default branding style options.
-