import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateApplicationRequest, CreateApplicationResponse } from "../models/models_0"; import type { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateApplicationCommand}. */ export interface CreateApplicationCommandInput extends CreateApplicationRequest { } /** * @public * * The output of {@link CreateApplicationCommand}. */ export interface CreateApplicationCommandOutput extends CreateApplicationResponse, __MetadataBearer { } declare const CreateApplicationCommand_base: { new (input: CreateApplicationCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateApplicationCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Creates an OpenSearch UI application. For more information, see Using the OpenSearch user interface in Amazon OpenSearch Service.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchClient, CreateApplicationCommand } from "@aws-sdk/client-opensearch"; // ES Modules import * // const { OpenSearchClient, CreateApplicationCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import * // import type { OpenSearchClientConfig } from "@aws-sdk/client-opensearch"; * const config = {}; // type is OpenSearchClientConfig * const client = new OpenSearchClient(config); * const input = { // CreateApplicationRequest * clientToken: "STRING_VALUE", * name: "STRING_VALUE", // required * dataSources: [ // DataSources * { // DataSource * dataSourceArn: "STRING_VALUE", * dataSourceDescription: "STRING_VALUE", * iamRoleForDataSourceArn: "STRING_VALUE", * }, * ], * iamIdentityCenterOptions: { // IamIdentityCenterOptionsInput * enabled: true || false, * iamIdentityCenterInstanceArn: "STRING_VALUE", * iamRoleForIdentityCenterApplicationArn: "STRING_VALUE", * }, * appConfigs: [ // AppConfigs * { // AppConfig * key: "opensearchDashboards.dashboardAdmin.users" || "opensearchDashboards.dashboardAdmin.groups", * value: "STRING_VALUE", * }, * ], * tagList: [ // TagList * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * kmsKeyArn: "STRING_VALUE", * }; * const command = new CreateApplicationCommand(input); * const response = await client.send(command); * // { // CreateApplicationResponse * // id: "STRING_VALUE", * // name: "STRING_VALUE", * // arn: "STRING_VALUE", * // dataSources: [ // DataSources * // { // DataSource * // dataSourceArn: "STRING_VALUE", * // dataSourceDescription: "STRING_VALUE", * // iamRoleForDataSourceArn: "STRING_VALUE", * // }, * // ], * // iamIdentityCenterOptions: { // IamIdentityCenterOptions * // enabled: true || false, * // iamIdentityCenterInstanceArn: "STRING_VALUE", * // iamRoleForIdentityCenterApplicationArn: "STRING_VALUE", * // iamIdentityCenterApplicationArn: "STRING_VALUE", * // }, * // appConfigs: [ // AppConfigs * // { // AppConfig * // key: "opensearchDashboards.dashboardAdmin.users" || "opensearchDashboards.dashboardAdmin.groups", * // value: "STRING_VALUE", * // }, * // ], * // tagList: [ // TagList * // { // Tag * // Key: "STRING_VALUE", // required * // Value: "STRING_VALUE", // required * // }, * // ], * // createdAt: new Date("TIMESTAMP"), * // kmsKeyArn: "STRING_VALUE", * // }; * * ``` * * @param CreateApplicationCommandInput - {@link CreateApplicationCommandInput} * @returns {@link CreateApplicationCommandOutput} * @see {@link CreateApplicationCommandInput} for command's `input` shape. * @see {@link CreateApplicationCommandOutput} for command's `response` shape. * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

An error occurred because you don't have permissions to access the resource.

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

An error occurred while processing the request.

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

An error occurred because the client attempts to remove a resource that is currently in use.

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

An error occured because the client wanted to access an unsupported operation.

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

Request processing failed because of an unknown error, exception, or internal failure.

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

An exception for accessing or deleting a resource that doesn't exist.

* * @throws {@link OpenSearchServiceException} *

Base exception class for all service exceptions from OpenSearch service.

* * * @public */ export declare class CreateApplicationCommand extends CreateApplicationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateApplicationRequest; output: CreateApplicationResponse; }; sdk: { input: CreateApplicationCommandInput; output: CreateApplicationCommandOutput; }; }; }