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

Sets the default application to the application with the specified ARN.

*

To remove the default application, use the GetDefaultApplicationSetting * operation to get the current default and then call the * PutDefaultApplicationSetting with the current applications ARN and the * setAsDefault parameter set to false.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchClient, PutDefaultApplicationSettingCommand } from "@aws-sdk/client-opensearch"; // ES Modules import * // const { OpenSearchClient, PutDefaultApplicationSettingCommand } = 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 = { // PutDefaultApplicationSettingRequest * applicationArn: "STRING_VALUE", // required * setAsDefault: true || false, // required * }; * const command = new PutDefaultApplicationSettingCommand(input); * const response = await client.send(command); * // { // PutDefaultApplicationSettingResponse * // applicationArn: "STRING_VALUE", * // }; * * ``` * * @param PutDefaultApplicationSettingCommandInput - {@link PutDefaultApplicationSettingCommandInput} * @returns {@link PutDefaultApplicationSettingCommandOutput} * @see {@link PutDefaultApplicationSettingCommandInput} for command's `input` shape. * @see {@link PutDefaultApplicationSettingCommandOutput} 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 InternalException} (server fault) *

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

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

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

* * @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 PutDefaultApplicationSettingCommand extends PutDefaultApplicationSettingCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PutDefaultApplicationSettingRequest; output: PutDefaultApplicationSettingResponse; }; sdk: { input: PutDefaultApplicationSettingCommandInput; output: PutDefaultApplicationSettingCommandOutput; }; }; }