import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { KinesisVideoClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KinesisVideoClient"; import type { GetDataEndpointInput, GetDataEndpointOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetDataEndpointCommand}. */ export interface GetDataEndpointCommandInput extends GetDataEndpointInput { } /** * @public * * The output of {@link GetDataEndpointCommand}. */ export interface GetDataEndpointCommandOutput extends GetDataEndpointOutput, __MetadataBearer { } declare const GetDataEndpointCommand_base: { new (input: GetDataEndpointCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetDataEndpointCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Gets an endpoint for a specified stream for either reading or writing. Use this * endpoint in your application to read from the specified stream (using the * GetMedia or GetMediaForFragmentList operations) or write * to it (using the PutMedia operation). *

* *

The returned endpoint does not have the API name appended. The client needs to * add the API name to the returned endpoint.

*
*

In the request, specify the stream either by StreamName or * StreamARN.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { KinesisVideoClient, GetDataEndpointCommand } from "@aws-sdk/client-kinesis-video"; // ES Modules import * // const { KinesisVideoClient, GetDataEndpointCommand } = require("@aws-sdk/client-kinesis-video"); // CommonJS import * // import type { KinesisVideoClientConfig } from "@aws-sdk/client-kinesis-video"; * const config = {}; // type is KinesisVideoClientConfig * const client = new KinesisVideoClient(config); * const input = { // GetDataEndpointInput * StreamName: "STRING_VALUE", * StreamARN: "STRING_VALUE", * APIName: "PUT_MEDIA" || "GET_MEDIA" || "LIST_FRAGMENTS" || "GET_MEDIA_FOR_FRAGMENT_LIST" || "GET_HLS_STREAMING_SESSION_URL" || "GET_DASH_STREAMING_SESSION_URL" || "GET_CLIP" || "GET_IMAGES", // required * }; * const command = new GetDataEndpointCommand(input); * const response = await client.send(command); * // { // GetDataEndpointOutput * // DataEndpoint: "STRING_VALUE", * // }; * * ``` * * @param GetDataEndpointCommandInput - {@link GetDataEndpointCommandInput} * @returns {@link GetDataEndpointCommandOutput} * @see {@link GetDataEndpointCommandInput} for command's `input` shape. * @see {@link GetDataEndpointCommandOutput} for command's `response` shape. * @see {@link KinesisVideoClientResolvedConfig | config} for KinesisVideoClient's `config` shape. * * @throws {@link ClientLimitExceededException} (client fault) *

Kinesis Video Streams has throttled the request because you have exceeded the limit of * allowed client calls. Try making the call later.

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

The value for this input parameter is invalid.

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

The caller is not authorized to perform this operation.

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

Amazon Kinesis Video Streams can't find the stream that you specified.

* * @throws {@link KinesisVideoServiceException} *

Base exception class for all service exceptions from KinesisVideo service.

* * * @public */ export declare class GetDataEndpointCommand extends GetDataEndpointCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetDataEndpointInput; output: GetDataEndpointOutput; }; sdk: { input: GetDataEndpointCommandInput; output: GetDataEndpointCommandOutput; }; }; }