import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GlueClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlueClient"; import type { GetTableVersionsRequest } from "../models/models_2"; import type { GetTableVersionsResponse } from "../models/models_3"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetTableVersionsCommand}. */ export interface GetTableVersionsCommandInput extends GetTableVersionsRequest { } /** * @public * * The output of {@link GetTableVersionsCommand}. */ export interface GetTableVersionsCommandOutput extends GetTableVersionsResponse, __MetadataBearer { } declare const GetTableVersionsCommand_base: { new (input: GetTableVersionsCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetTableVersionsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Retrieves a list of strings that identify available versions of * a specified table.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GlueClient, GetTableVersionsCommand } from "@aws-sdk/client-glue"; // ES Modules import * // const { GlueClient, GetTableVersionsCommand } = require("@aws-sdk/client-glue"); // CommonJS import * // import type { GlueClientConfig } from "@aws-sdk/client-glue"; * const config = {}; // type is GlueClientConfig * const client = new GlueClient(config); * const input = { // GetTableVersionsRequest * CatalogId: "STRING_VALUE", * DatabaseName: "STRING_VALUE", // required * TableName: "STRING_VALUE", // required * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * AuditContext: { // AuditContext * AdditionalAuditContext: "STRING_VALUE", * RequestedColumns: [ // AuditColumnNamesList * "STRING_VALUE", * ], * AllColumnsRequested: true || false, * }, * }; * const command = new GetTableVersionsCommand(input); * const response = await client.send(command); * // { // GetTableVersionsResponse * // TableVersions: [ // GetTableVersionsList * // { // TableVersion * // Table: { // Table * // Name: "STRING_VALUE", // required * // DatabaseName: "STRING_VALUE", * // Description: "STRING_VALUE", * // Owner: "STRING_VALUE", * // CreateTime: new Date("TIMESTAMP"), * // UpdateTime: new Date("TIMESTAMP"), * // LastAccessTime: new Date("TIMESTAMP"), * // LastAnalyzedTime: new Date("TIMESTAMP"), * // Retention: Number("int"), * // StorageDescriptor: { // StorageDescriptor * // Columns: [ // ColumnList * // { // Column * // Name: "STRING_VALUE", // required * // Type: "STRING_VALUE", * // Comment: "STRING_VALUE", * // Parameters: { // ParametersMap * // "": "STRING_VALUE", * // }, * // }, * // ], * // Location: "STRING_VALUE", * // AdditionalLocations: [ // LocationStringList * // "STRING_VALUE", * // ], * // InputFormat: "STRING_VALUE", * // OutputFormat: "STRING_VALUE", * // Compressed: true || false, * // NumberOfBuckets: Number("int"), * // SerdeInfo: { // SerDeInfo * // Name: "STRING_VALUE", * // SerializationLibrary: "STRING_VALUE", * // Parameters: { * // "": "STRING_VALUE", * // }, * // }, * // BucketColumns: [ // NameStringList * // "STRING_VALUE", * // ], * // SortColumns: [ // OrderList * // { // Order * // Column: "STRING_VALUE", // required * // SortOrder: Number("int"), // required * // }, * // ], * // Parameters: "", * // SkewedInfo: { // SkewedInfo * // SkewedColumnNames: [ * // "STRING_VALUE", * // ], * // SkewedColumnValues: [ // ColumnValueStringList * // "STRING_VALUE", * // ], * // SkewedColumnValueLocationMaps: { // LocationMap * // "": "STRING_VALUE", * // }, * // }, * // StoredAsSubDirectories: true || false, * // SchemaReference: { // SchemaReference * // SchemaId: { // SchemaId * // SchemaArn: "STRING_VALUE", * // SchemaName: "STRING_VALUE", * // RegistryName: "STRING_VALUE", * // }, * // SchemaVersionId: "STRING_VALUE", * // SchemaVersionNumber: Number("long"), * // }, * // }, * // PartitionKeys: [ * // { * // Name: "STRING_VALUE", // required * // Type: "STRING_VALUE", * // Comment: "STRING_VALUE", * // Parameters: "", * // }, * // ], * // ViewOriginalText: "STRING_VALUE", * // ViewExpandedText: "STRING_VALUE", * // TableType: "STRING_VALUE", * // Parameters: "", * // CreatedBy: "STRING_VALUE", * // IsRegisteredWithLakeFormation: true || false, * // TargetTable: { // TableIdentifier * // CatalogId: "STRING_VALUE", * // DatabaseName: "STRING_VALUE", * // Name: "STRING_VALUE", * // Region: "STRING_VALUE", * // }, * // CatalogId: "STRING_VALUE", * // VersionId: "STRING_VALUE", * // FederatedTable: { // FederatedTable * // Identifier: "STRING_VALUE", * // DatabaseIdentifier: "STRING_VALUE", * // ConnectionName: "STRING_VALUE", * // ConnectionType: "STRING_VALUE", * // }, * // ViewDefinition: { // ViewDefinition * // IsProtected: true || false, * // Definer: "STRING_VALUE", * // ViewVersionId: Number("long"), * // ViewVersionToken: "STRING_VALUE", * // RefreshSeconds: Number("long"), * // LastRefreshType: "FULL" || "INCREMENTAL", * // SubObjects: [ // ViewSubObjectsList * // "STRING_VALUE", * // ], * // SubObjectVersionIds: [ // ViewSubObjectVersionIdsList * // Number("long"), * // ], * // Representations: [ // ViewRepresentationList * // { // ViewRepresentation * // Dialect: "REDSHIFT" || "ATHENA" || "SPARK", * // DialectVersion: "STRING_VALUE", * // ViewOriginalText: "STRING_VALUE", * // ViewExpandedText: "STRING_VALUE", * // ValidationConnection: "STRING_VALUE", * // IsStale: true || false, * // }, * // ], * // }, * // IsMultiDialectView: true || false, * // IsMaterializedView: true || false, * // Status: { // TableStatus * // RequestedBy: "STRING_VALUE", * // UpdatedBy: "STRING_VALUE", * // RequestTime: new Date("TIMESTAMP"), * // UpdateTime: new Date("TIMESTAMP"), * // Action: "UPDATE" || "CREATE", * // State: "QUEUED" || "IN_PROGRESS" || "SUCCESS" || "STOPPED" || "FAILED", * // Error: { // ErrorDetail * // ErrorCode: "STRING_VALUE", * // ErrorMessage: "STRING_VALUE", * // }, * // Details: { // StatusDetails * // RequestedChange: { * // Name: "STRING_VALUE", // required * // DatabaseName: "STRING_VALUE", * // Description: "STRING_VALUE", * // Owner: "STRING_VALUE", * // CreateTime: new Date("TIMESTAMP"), * // UpdateTime: new Date("TIMESTAMP"), * // LastAccessTime: new Date("TIMESTAMP"), * // LastAnalyzedTime: new Date("TIMESTAMP"), * // Retention: Number("int"), * // StorageDescriptor: { * // Columns: "", * // Location: "STRING_VALUE", * // AdditionalLocations: [ * // "STRING_VALUE", * // ], * // InputFormat: "STRING_VALUE", * // OutputFormat: "STRING_VALUE", * // Compressed: true || false, * // NumberOfBuckets: Number("int"), * // SerdeInfo: { * // Name: "STRING_VALUE", * // SerializationLibrary: "STRING_VALUE", * // Parameters: "", * // }, * // BucketColumns: "", * // SortColumns: [ * // { * // Column: "STRING_VALUE", // required * // SortOrder: Number("int"), // required * // }, * // ], * // Parameters: "", * // SkewedInfo: { * // SkewedColumnNames: "", * // SkewedColumnValues: [ * // "STRING_VALUE", * // ], * // SkewedColumnValueLocationMaps: { * // "": "STRING_VALUE", * // }, * // }, * // StoredAsSubDirectories: true || false, * // SchemaReference: { * // SchemaId: { * // SchemaArn: "STRING_VALUE", * // SchemaName: "STRING_VALUE", * // RegistryName: "STRING_VALUE", * // }, * // SchemaVersionId: "STRING_VALUE", * // SchemaVersionNumber: Number("long"), * // }, * // }, * // PartitionKeys: "", * // ViewOriginalText: "STRING_VALUE", * // ViewExpandedText: "STRING_VALUE", * // TableType: "STRING_VALUE", * // Parameters: "", * // CreatedBy: "STRING_VALUE", * // IsRegisteredWithLakeFormation: true || false, * // TargetTable: { * // CatalogId: "STRING_VALUE", * // DatabaseName: "STRING_VALUE", * // Name: "STRING_VALUE", * // Region: "STRING_VALUE", * // }, * // CatalogId: "STRING_VALUE", * // VersionId: "STRING_VALUE", * // FederatedTable: { * // Identifier: "STRING_VALUE", * // DatabaseIdentifier: "STRING_VALUE", * // ConnectionName: "STRING_VALUE", * // ConnectionType: "STRING_VALUE", * // }, * // ViewDefinition: { * // IsProtected: true || false, * // Definer: "STRING_VALUE", * // ViewVersionId: Number("long"), * // ViewVersionToken: "STRING_VALUE", * // RefreshSeconds: Number("long"), * // LastRefreshType: "FULL" || "INCREMENTAL", * // SubObjects: [ * // "STRING_VALUE", * // ], * // SubObjectVersionIds: [ * // Number("long"), * // ], * // Representations: [ * // { * // Dialect: "REDSHIFT" || "ATHENA" || "SPARK", * // DialectVersion: "STRING_VALUE", * // ViewOriginalText: "STRING_VALUE", * // ViewExpandedText: "STRING_VALUE", * // ValidationConnection: "STRING_VALUE", * // IsStale: true || false, * // }, * // ], * // }, * // IsMultiDialectView: true || false, * // IsMaterializedView: true || false, * // Status: { * // RequestedBy: "STRING_VALUE", * // UpdatedBy: "STRING_VALUE", * // RequestTime: new Date("TIMESTAMP"), * // UpdateTime: new Date("TIMESTAMP"), * // Action: "UPDATE" || "CREATE", * // State: "QUEUED" || "IN_PROGRESS" || "SUCCESS" || "STOPPED" || "FAILED", * // Error: { * // ErrorCode: "STRING_VALUE", * // ErrorMessage: "STRING_VALUE", * // }, * // Details: { * // RequestedChange: "", * // ViewValidations: [ // ViewValidationList * // { // ViewValidation * // Dialect: "REDSHIFT" || "ATHENA" || "SPARK", * // DialectVersion: "STRING_VALUE", * // ViewValidationText: "STRING_VALUE", * // UpdateTime: new Date("TIMESTAMP"), * // State: "QUEUED" || "IN_PROGRESS" || "SUCCESS" || "STOPPED" || "FAILED", * // Error: "", * // }, * // ], * // }, * // }, * // }, * // ViewValidations: [ * // { * // Dialect: "REDSHIFT" || "ATHENA" || "SPARK", * // DialectVersion: "STRING_VALUE", * // ViewValidationText: "STRING_VALUE", * // UpdateTime: new Date("TIMESTAMP"), * // State: "QUEUED" || "IN_PROGRESS" || "SUCCESS" || "STOPPED" || "FAILED", * // Error: "", * // }, * // ], * // }, * // }, * // }, * // VersionId: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param GetTableVersionsCommandInput - {@link GetTableVersionsCommandInput} * @returns {@link GetTableVersionsCommandOutput} * @see {@link GetTableVersionsCommandInput} for command's `input` shape. * @see {@link GetTableVersionsCommandOutput} for command's `response` shape. * @see {@link GlueClientResolvedConfig | config} for GlueClient's `config` shape. * * @throws {@link EntityNotFoundException} (client fault) *

A specified entity does not exist

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

An encryption operation failed.

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

An internal service error occurred.

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

The input provided was not valid.

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

The operation timed out.

* * @throws {@link GlueServiceException} *

Base exception class for all service exceptions from Glue service.

* * * @public */ export declare class GetTableVersionsCommand extends GetTableVersionsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetTableVersionsRequest; output: GetTableVersionsResponse; }; sdk: { input: GetTableVersionsCommandInput; output: GetTableVersionsCommandOutput; }; }; }