import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { StartContentUploadRequest, StartContentUploadResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link StartContentUploadCommand}. */ export interface StartContentUploadCommandInput extends StartContentUploadRequest { } /** * @public * * The output of {@link StartContentUploadCommand}. */ export interface StartContentUploadCommandOutput extends StartContentUploadResponse, __MetadataBearer { } declare const StartContentUploadCommand_base: { new (input: StartContentUploadCommandInput): import("@smithy/core/client").CommandImpl; new (input: StartContentUploadCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Get a URL to upload content to a knowledge base. To upload content, first make a PUT * request to the returned URL with your file, making sure to include the required headers. Then * use CreateContent to finalize the content creation process or UpdateContent to modify an existing resource. You can only upload content to a * knowledge base of type CUSTOM.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { WisdomClient, StartContentUploadCommand } from "@aws-sdk/client-wisdom"; // ES Modules import * // const { WisdomClient, StartContentUploadCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import * // import type { WisdomClientConfig } from "@aws-sdk/client-wisdom"; * const config = {}; // type is WisdomClientConfig * const client = new WisdomClient(config); * const input = { // StartContentUploadRequest * knowledgeBaseId: "STRING_VALUE", // required * contentType: "STRING_VALUE", // required * presignedUrlTimeToLive: Number("int"), * }; * const command = new StartContentUploadCommand(input); * const response = await client.send(command); * // { // StartContentUploadResponse * // uploadId: "STRING_VALUE", // required * // url: "STRING_VALUE", // required * // urlExpiry: new Date("TIMESTAMP"), // required * // headersToInclude: { // Headers // required * // "": "STRING_VALUE", * // }, * // }; * * ``` * * @param StartContentUploadCommandInput - {@link StartContentUploadCommandInput} * @returns {@link StartContentUploadCommandOutput} * @see {@link StartContentUploadCommandInput} for command's `input` shape. * @see {@link StartContentUploadCommandOutput} for command's `response` shape. * @see {@link WisdomClientResolvedConfig | config} for WisdomClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

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

The specified resource does not exist.

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

The input fails to satisfy the constraints specified by a service.

* * @throws {@link WisdomServiceException} *

Base exception class for all service exceptions from Wisdom service.

* * * @public */ export declare class StartContentUploadCommand extends StartContentUploadCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: StartContentUploadRequest; output: StartContentUploadResponse; }; sdk: { input: StartContentUploadCommandInput; output: StartContentUploadCommandOutput; }; }; }