import type { MetadataBearer as __MetadataBearer, StreamingBlobPayloadOutputTypes } from "@smithy/types"; import type { GetObjectRequest, GetObjectResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetObjectCommand}. */ export interface GetObjectCommandInput extends GetObjectRequest { } /** * @public * * The output of {@link GetObjectCommand}. */ export interface GetObjectCommandOutput extends Omit, __MetadataBearer { Body?: StreamingBlobPayloadOutputTypes; } declare const GetObjectCommand_base: { new (input: GetObjectCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetObjectCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Downloads the object at the specified path. If the object’s upload availability is set to streaming, AWS Elemental MediaStore downloads the object even if it’s still uploading the object.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MediaStoreDataClient, GetObjectCommand } from "@aws-sdk/client-mediastore-data"; // ES Modules import * // const { MediaStoreDataClient, GetObjectCommand } = require("@aws-sdk/client-mediastore-data"); // CommonJS import * // import type { MediaStoreDataClientConfig } from "@aws-sdk/client-mediastore-data"; * const config = {}; // type is MediaStoreDataClientConfig * const client = new MediaStoreDataClient(config); * const input = { // GetObjectRequest * Path: "STRING_VALUE", // required * Range: "STRING_VALUE", * }; * const command = new GetObjectCommand(input); * const response = await client.send(command); * // consume or destroy the stream to free the socket. * const bytes = await response.Body.transformToByteArray(); * // const str = await response.Body.transformToString(); * // response.Body.destroy(); // only applicable to Node.js Readable streams. * * // { // GetObjectResponse * // Body: "", // see \@smithy/types -> StreamingBlobPayloadOutputTypes * // CacheControl: "STRING_VALUE", * // ContentRange: "STRING_VALUE", * // ContentLength: Number("long"), * // ContentType: "STRING_VALUE", * // ETag: "STRING_VALUE", * // LastModified: new Date("TIMESTAMP"), * // StatusCode: Number("int"), // required * // }; * * ``` * * @param GetObjectCommandInput - {@link GetObjectCommandInput} * @returns {@link GetObjectCommandOutput} * @see {@link GetObjectCommandInput} for command's `input` shape. * @see {@link GetObjectCommandOutput} for command's `response` shape. * @see {@link MediaStoreDataClientResolvedConfig | config} for MediaStoreDataClient's `config` shape. * * @throws {@link ContainerNotFoundException} (client fault) *

The specified container was not found for the specified account.

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

The service is temporarily unavailable.

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

Could not perform an operation on an object that does not exist.

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

The requested content range is not valid.

* * @throws {@link MediaStoreDataServiceException} *

Base exception class for all service exceptions from MediaStoreData service.

* * * @public */ export declare class GetObjectCommand extends GetObjectCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetObjectRequest; output: GetObjectResponse; }; sdk: { input: GetObjectCommandInput; output: GetObjectCommandOutput; }; }; }