import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateThemeRequest, CreateThemeResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateThemeCommand}. */ export interface CreateThemeCommandInput extends CreateThemeRequest { } /** * @public * * The output of {@link CreateThemeCommand}. */ export interface CreateThemeCommandOutput extends CreateThemeResponse, __MetadataBearer { } declare const CreateThemeCommand_base: { new (input: CreateThemeCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateThemeCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a theme to apply to the components in an Amplify app.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AmplifyUIBuilderClient, CreateThemeCommand } from "@aws-sdk/client-amplifyuibuilder"; // ES Modules import * // const { AmplifyUIBuilderClient, CreateThemeCommand } = require("@aws-sdk/client-amplifyuibuilder"); // CommonJS import * // import type { AmplifyUIBuilderClientConfig } from "@aws-sdk/client-amplifyuibuilder"; * const config = {}; // type is AmplifyUIBuilderClientConfig * const client = new AmplifyUIBuilderClient(config); * const input = { // CreateThemeRequest * appId: "STRING_VALUE", // required * environmentName: "STRING_VALUE", // required * clientToken: "STRING_VALUE", * themeToCreate: { // CreateThemeData * name: "STRING_VALUE", // required * values: [ // ThemeValuesList // required * { // ThemeValues * key: "STRING_VALUE", * value: { // ThemeValue * value: "STRING_VALUE", * children: [ * { * key: "STRING_VALUE", * value: { * value: "STRING_VALUE", * children: "", * }, * }, * ], * }, * }, * ], * overrides: "", * tags: { // Tags * "": "STRING_VALUE", * }, * }, * }; * const command = new CreateThemeCommand(input); * const response = await client.send(command); * // { // CreateThemeResponse * // entity: { // Theme * // appId: "STRING_VALUE", // required * // environmentName: "STRING_VALUE", // required * // id: "STRING_VALUE", // required * // name: "STRING_VALUE", // required * // createdAt: new Date("TIMESTAMP"), // required * // modifiedAt: new Date("TIMESTAMP"), * // values: [ // ThemeValuesList // required * // { // ThemeValues * // key: "STRING_VALUE", * // value: { // ThemeValue * // value: "STRING_VALUE", * // children: [ * // { * // key: "STRING_VALUE", * // value: { * // value: "STRING_VALUE", * // children: "", * // }, * // }, * // ], * // }, * // }, * // ], * // overrides: "", * // tags: { // Tags * // "": "STRING_VALUE", * // }, * // }, * // }; * * ``` * * @param CreateThemeCommandInput - {@link CreateThemeCommandInput} * @returns {@link CreateThemeCommandOutput} * @see {@link CreateThemeCommandInput} for command's `input` shape. * @see {@link CreateThemeCommandOutput} for command's `response` shape. * @see {@link AmplifyUIBuilderClientResolvedConfig | config} for AmplifyUIBuilderClient's `config` shape. * * @throws {@link InternalServerException} (server fault) *

An internal error has occurred. Please retry your request.

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

An invalid or out-of-range value was supplied for the input parameter.

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

The resource specified in the request conflicts with an existing resource.

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

You exceeded your service quota. Service quotas, also referred to as limits, are the * maximum number of service resources or operations for your Amazon Web Services account.

* * @throws {@link AmplifyUIBuilderServiceException} *

Base exception class for all service exceptions from AmplifyUIBuilder service.

* * * @public */ export declare class CreateThemeCommand extends CreateThemeCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateThemeRequest; output: CreateThemeResponse; }; sdk: { input: CreateThemeCommandInput; output: CreateThemeCommandOutput; }; }; }