import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetDataSourceInput, GetDataSourceOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetDataSourceCommand}. */ export interface GetDataSourceCommandInput extends GetDataSourceInput { } /** * @public * * The output of {@link GetDataSourceCommand}. */ export interface GetDataSourceCommandOutput extends GetDataSourceOutput, __MetadataBearer { } declare const GetDataSourceCommand_base: { new (input: GetDataSourceCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetDataSourceCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Returns a DataSource that includes metadata and data file information, as well as the current status of the DataSource.

*

* GetDataSource provides results in normal or verbose format. The verbose format * adds the schema description and the list of files pointed to by the DataSource to the normal format.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MachineLearningClient, GetDataSourceCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import * // const { MachineLearningClient, GetDataSourceCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import * // import type { MachineLearningClientConfig } from "@aws-sdk/client-machine-learning"; * const config = {}; // type is MachineLearningClientConfig * const client = new MachineLearningClient(config); * const input = { // GetDataSourceInput * DataSourceId: "STRING_VALUE", // required * Verbose: true || false, * }; * const command = new GetDataSourceCommand(input); * const response = await client.send(command); * // { // GetDataSourceOutput * // DataSourceId: "STRING_VALUE", * // DataLocationS3: "STRING_VALUE", * // DataRearrangement: "STRING_VALUE", * // CreatedByIamUser: "STRING_VALUE", * // CreatedAt: new Date("TIMESTAMP"), * // LastUpdatedAt: new Date("TIMESTAMP"), * // DataSizeInBytes: Number("long"), * // NumberOfFiles: Number("long"), * // Name: "STRING_VALUE", * // Status: "PENDING" || "INPROGRESS" || "FAILED" || "COMPLETED" || "DELETED", * // LogUri: "STRING_VALUE", * // Message: "STRING_VALUE", * // RedshiftMetadata: { // RedshiftMetadata * // RedshiftDatabase: { // RedshiftDatabase * // DatabaseName: "STRING_VALUE", // required * // ClusterIdentifier: "STRING_VALUE", // required * // }, * // DatabaseUserName: "STRING_VALUE", * // SelectSqlQuery: "STRING_VALUE", * // }, * // RDSMetadata: { // RDSMetadata * // Database: { // RDSDatabase * // InstanceIdentifier: "STRING_VALUE", // required * // DatabaseName: "STRING_VALUE", // required * // }, * // DatabaseUserName: "STRING_VALUE", * // SelectSqlQuery: "STRING_VALUE", * // ResourceRole: "STRING_VALUE", * // ServiceRole: "STRING_VALUE", * // DataPipelineId: "STRING_VALUE", * // }, * // RoleARN: "STRING_VALUE", * // ComputeStatistics: true || false, * // ComputeTime: Number("long"), * // FinishedAt: new Date("TIMESTAMP"), * // StartedAt: new Date("TIMESTAMP"), * // DataSourceSchema: "STRING_VALUE", * // }; * * ``` * * @param GetDataSourceCommandInput - {@link GetDataSourceCommandInput} * @returns {@link GetDataSourceCommandOutput} * @see {@link GetDataSourceCommandInput} for command's `input` shape. * @see {@link GetDataSourceCommandOutput} for command's `response` shape. * @see {@link MachineLearningClientResolvedConfig | config} for MachineLearningClient's `config` shape. * * @throws {@link InternalServerException} (server fault) *

An error on the server occurred when trying to process a request.

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

An error on the client occurred. Typically, the cause is an invalid input value.

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

A specified resource cannot be located.

* * @throws {@link MachineLearningServiceException} *

Base exception class for all service exceptions from MachineLearning service.

* * * @public */ export declare class GetDataSourceCommand extends GetDataSourceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetDataSourceInput; output: GetDataSourceOutput; }; sdk: { input: GetDataSourceCommandInput; output: GetDataSourceCommandOutput; }; }; }