import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityProviderClient"; import type { UpdateManagedLoginBrandingRequest, UpdateManagedLoginBrandingResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateManagedLoginBrandingCommand}. */ export interface UpdateManagedLoginBrandingCommandInput extends UpdateManagedLoginBrandingRequest { } /** * @public * * The output of {@link UpdateManagedLoginBrandingCommand}. */ export interface UpdateManagedLoginBrandingCommandOutput extends UpdateManagedLoginBrandingResponse, __MetadataBearer { } declare const UpdateManagedLoginBrandingCommand_base: { new (input: UpdateManagedLoginBrandingCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [UpdateManagedLoginBrandingCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Configures the branding settings for a user pool style. This operation is the * programmatic option for the configuration of a style in the branding editor.

*

Provides values for UI customization in a Settings JSON object and image * files in an Assets array.

*

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.

* *

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For * this operation, you must use IAM credentials to authorize requests, and you must * grant yourself the corresponding IAM permission in a policy.

*

* Learn more *

* *
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CognitoIdentityProviderClient, UpdateManagedLoginBrandingCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import * // const { CognitoIdentityProviderClient, UpdateManagedLoginBrandingCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import * // import type { CognitoIdentityProviderClientConfig } from "@aws-sdk/client-cognito-identity-provider"; * const config = {}; // type is CognitoIdentityProviderClientConfig * const client = new CognitoIdentityProviderClient(config); * const input = { // UpdateManagedLoginBrandingRequest * UserPoolId: "STRING_VALUE", * ManagedLoginBrandingId: "STRING_VALUE", * UseCognitoProvidedValues: true || false, * Settings: "DOCUMENT_VALUE", * Assets: [ // AssetListType * { // AssetType * Category: "FAVICON_ICO" || "FAVICON_SVG" || "EMAIL_GRAPHIC" || "SMS_GRAPHIC" || "AUTH_APP_GRAPHIC" || "PASSWORD_GRAPHIC" || "PASSKEY_GRAPHIC" || "PAGE_HEADER_LOGO" || "PAGE_HEADER_BACKGROUND" || "PAGE_FOOTER_LOGO" || "PAGE_FOOTER_BACKGROUND" || "PAGE_BACKGROUND" || "FORM_BACKGROUND" || "FORM_LOGO" || "IDP_BUTTON_ICON", // required * ColorMode: "LIGHT" || "DARK" || "DYNAMIC", // required * Extension: "ICO" || "JPEG" || "PNG" || "SVG" || "WEBP", // required * Bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") * ResourceId: "STRING_VALUE", * }, * ], * }; * const command = new UpdateManagedLoginBrandingCommand(input); * const response = await client.send(command); * // { // UpdateManagedLoginBrandingResponse * // ManagedLoginBranding: { // ManagedLoginBrandingType * // ManagedLoginBrandingId: "STRING_VALUE", * // UserPoolId: "STRING_VALUE", * // UseCognitoProvidedValues: true || false, * // Settings: "DOCUMENT_VALUE", * // Assets: [ // AssetListType * // { // AssetType * // Category: "FAVICON_ICO" || "FAVICON_SVG" || "EMAIL_GRAPHIC" || "SMS_GRAPHIC" || "AUTH_APP_GRAPHIC" || "PASSWORD_GRAPHIC" || "PASSKEY_GRAPHIC" || "PAGE_HEADER_LOGO" || "PAGE_HEADER_BACKGROUND" || "PAGE_FOOTER_LOGO" || "PAGE_FOOTER_BACKGROUND" || "PAGE_BACKGROUND" || "FORM_BACKGROUND" || "FORM_LOGO" || "IDP_BUTTON_ICON", // required * // ColorMode: "LIGHT" || "DARK" || "DYNAMIC", // required * // Extension: "ICO" || "JPEG" || "PNG" || "SVG" || "WEBP", // required * // Bytes: new Uint8Array(), * // ResourceId: "STRING_VALUE", * // }, * // ], * // CreationDate: new Date("TIMESTAMP"), * // LastModifiedDate: new Date("TIMESTAMP"), * // }, * // }; * * ``` * * @param UpdateManagedLoginBrandingCommandInput - {@link UpdateManagedLoginBrandingCommandInput} * @returns {@link UpdateManagedLoginBrandingCommandOutput} * @see {@link UpdateManagedLoginBrandingCommandInput} for command's `input` shape. * @see {@link UpdateManagedLoginBrandingCommandOutput} for command's `response` shape. * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for CognitoIdentityProviderClient's `config` shape. * * @throws {@link ConcurrentModificationException} (client fault) *

This exception is thrown if two or more modifications are happening * concurrently.

* * @throws {@link InternalErrorException} (server fault) *

This exception is thrown when Amazon Cognito encounters an internal error.

* * @throws {@link InvalidParameterException} (client fault) *

This exception is thrown when the Amazon Cognito service encounters an invalid * parameter.

* * @throws {@link NotAuthorizedException} (client fault) *

This exception is thrown when a user isn't authorized.

* * @throws {@link OperationNotEnabledException} (client fault) *

This exception is thrown when an operation is not available in the current region or for the current user pool configuration. This can occur when attempting to perform operations that are not supported in secondary replica regions.

* * @throws {@link ResourceNotFoundException} (client fault) *

This exception is thrown when the Amazon Cognito service can't find the requested * resource.

* * @throws {@link TooManyRequestsException} (client fault) *

This exception is thrown when the user has made too many requests for a given * operation.

* * @throws {@link CognitoIdentityProviderServiceException} *

Base exception class for all service exceptions from CognitoIdentityProvider service.

* * * @public */ export declare class UpdateManagedLoginBrandingCommand extends UpdateManagedLoginBrandingCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateManagedLoginBrandingRequest; output: UpdateManagedLoginBrandingResponse; }; sdk: { input: UpdateManagedLoginBrandingCommandInput; output: UpdateManagedLoginBrandingCommandOutput; }; }; }