import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetTableRequest, GetTableResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetTableCommand}. */ export interface GetTableCommandInput extends GetTableRequest { } /** * @public * * The output of {@link GetTableCommand}. */ export interface GetTableCommandOutput extends GetTableResponse, __MetadataBearer { } declare const GetTableCommand_base: { new (input: GetTableCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetTableCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Returns information about the table, including the table's name and current status, the keyspace name, configuration settings, and metadata.

To read table metadata using GetTable, the IAM principal needs Select action permissions for the table and the system keyspace.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { KeyspacesClient, GetTableCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import * // const { KeyspacesClient, GetTableCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import * // import type { KeyspacesClientConfig } from "@aws-sdk/client-keyspaces"; * const config = {}; // type is KeyspacesClientConfig * const client = new KeyspacesClient(config); * const input = { // GetTableRequest * keyspaceName: "STRING_VALUE", // required * tableName: "STRING_VALUE", // required * }; * const command = new GetTableCommand(input); * const response = await client.send(command); * // { // GetTableResponse * // keyspaceName: "STRING_VALUE", // required * // tableName: "STRING_VALUE", // required * // resourceArn: "STRING_VALUE", // required * // creationTimestamp: new Date("TIMESTAMP"), * // status: "STRING_VALUE", * // schemaDefinition: { // SchemaDefinition * // allColumns: [ // ColumnDefinitionList // required * // { // ColumnDefinition * // name: "STRING_VALUE", // required * // type: "STRING_VALUE", // required * // }, * // ], * // partitionKeys: [ // PartitionKeyList // required * // { // PartitionKey * // name: "STRING_VALUE", // required * // }, * // ], * // clusteringKeys: [ // ClusteringKeyList * // { // ClusteringKey * // name: "STRING_VALUE", // required * // orderBy: "STRING_VALUE", // required * // }, * // ], * // staticColumns: [ // StaticColumnList * // { // StaticColumn * // name: "STRING_VALUE", // required * // }, * // ], * // }, * // capacitySpecification: { // CapacitySpecificationSummary * // throughputMode: "STRING_VALUE", // required * // readCapacityUnits: Number("long"), * // writeCapacityUnits: Number("long"), * // lastUpdateToPayPerRequestTimestamp: new Date("TIMESTAMP"), * // }, * // encryptionSpecification: { // EncryptionSpecification * // type: "STRING_VALUE", // required * // kmsKeyIdentifier: "STRING_VALUE", * // }, * // pointInTimeRecovery: { // PointInTimeRecoverySummary * // status: "STRING_VALUE", // required * // earliestRestorableTimestamp: new Date("TIMESTAMP"), * // }, * // ttl: { // TimeToLive * // status: "STRING_VALUE", // required * // }, * // defaultTimeToLive: Number("int"), * // comment: { // Comment * // message: "STRING_VALUE", // required * // }, * // clientSideTimestamps: { // ClientSideTimestamps * // status: "STRING_VALUE", // required * // }, * // replicaSpecifications: [ // ReplicaSpecificationSummaryList * // { // ReplicaSpecificationSummary * // region: "STRING_VALUE", * // status: "STRING_VALUE", * // capacitySpecification: { * // throughputMode: "STRING_VALUE", // required * // readCapacityUnits: Number("long"), * // writeCapacityUnits: Number("long"), * // lastUpdateToPayPerRequestTimestamp: new Date("TIMESTAMP"), * // }, * // warmThroughputSpecification: { // WarmThroughputSpecificationSummary * // readUnitsPerSecond: Number("long"), // required * // writeUnitsPerSecond: Number("long"), // required * // status: "STRING_VALUE", // required * // }, * // }, * // ], * // latestStreamArn: "STRING_VALUE", * // cdcSpecification: { // CdcSpecificationSummary * // status: "STRING_VALUE", // required * // viewType: "STRING_VALUE", * // }, * // warmThroughputSpecification: { * // readUnitsPerSecond: Number("long"), // required * // writeUnitsPerSecond: Number("long"), // required * // status: "STRING_VALUE", // required * // }, * // }; * * ``` * * @param GetTableCommandInput - {@link GetTableCommandInput} * @returns {@link GetTableCommandOutput} * @see {@link GetTableCommandInput} for command's `input` shape. * @see {@link GetTableCommandOutput} for command's `response` shape. * @see {@link KeyspacesClientResolvedConfig | config} for KeyspacesClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You don't have sufficient access permissions to perform this action.

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

Amazon Keyspaces was unable to fully process this request because of an internal server error.

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

The operation tried to access a keyspace, table, or type that doesn't exist. The resource might not be specified correctly, or its status might not be ACTIVE.

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

The operation exceeded the service quota for this resource. For more information on service quotas, see Quotas in the Amazon Keyspaces Developer Guide.

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

The operation failed due to an invalid or malformed request.

* * @throws {@link KeyspacesServiceException} *

Base exception class for all service exceptions from Keyspaces service.

* * * @public */ export declare class GetTableCommand extends GetTableCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetTableRequest; output: GetTableResponse; }; sdk: { input: GetTableCommandInput; output: GetTableCommandOutput; }; }; }