import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateDirectQueryDataSourceRequest, UpdateDirectQueryDataSourceResponse } from "../models/models_1"; import type { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateDirectQueryDataSourceCommand}. */ export interface UpdateDirectQueryDataSourceCommandInput extends UpdateDirectQueryDataSourceRequest { } /** * @public * * The output of {@link UpdateDirectQueryDataSourceCommand}. */ export interface UpdateDirectQueryDataSourceCommandOutput extends UpdateDirectQueryDataSourceResponse, __MetadataBearer { } declare const UpdateDirectQueryDataSourceCommand_base: { new (input: UpdateDirectQueryDataSourceCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateDirectQueryDataSourceCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Updates the configuration or properties of an existing direct query data source in * Amazon OpenSearch Service.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchClient, UpdateDirectQueryDataSourceCommand } from "@aws-sdk/client-opensearch"; // ES Modules import * // const { OpenSearchClient, UpdateDirectQueryDataSourceCommand } = 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 = { // UpdateDirectQueryDataSourceRequest * DataSourceName: "STRING_VALUE", // required * DataSourceType: { // DirectQueryDataSourceType Union: only one key present * CloudWatchLog: { // CloudWatchDirectQueryDataSource * RoleArn: "STRING_VALUE", // required * }, * SecurityLake: { // SecurityLakeDirectQueryDataSource * RoleArn: "STRING_VALUE", // required * }, * Prometheus: { // PrometheusDirectQueryDataSource * RoleArn: "STRING_VALUE", // required * WorkspaceArn: "STRING_VALUE", // required * }, * }, * Description: "STRING_VALUE", * OpenSearchArns: [ // DirectQueryOpenSearchARNList * "STRING_VALUE", * ], * DataSourceAccessPolicy: "STRING_VALUE", * }; * const command = new UpdateDirectQueryDataSourceCommand(input); * const response = await client.send(command); * // { // UpdateDirectQueryDataSourceResponse * // DataSourceArn: "STRING_VALUE", * // }; * * ``` * * @param UpdateDirectQueryDataSourceCommandInput - {@link UpdateDirectQueryDataSourceCommandInput} * @returns {@link UpdateDirectQueryDataSourceCommandOutput} * @see {@link UpdateDirectQueryDataSourceCommandInput} for command's `input` shape. * @see {@link UpdateDirectQueryDataSourceCommandOutput} for command's `response` shape. * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape. * * @throws {@link BaseException} (client fault) *

An error occurred while processing the request.

* * @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 LimitExceededException} (client fault) *

An exception for trying to create more than the allowed number of resources or sub-resources.

* * @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 UpdateDirectQueryDataSourceCommand extends UpdateDirectQueryDataSourceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateDirectQueryDataSourceRequest; output: UpdateDirectQueryDataSourceResponse; }; sdk: { input: UpdateDirectQueryDataSourceCommandInput; output: UpdateDirectQueryDataSourceCommandOutput; }; }; }