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 { GetPartitionsRequest, GetPartitionsResponse } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetPartitionsCommand}. */ export interface GetPartitionsCommandInput extends GetPartitionsRequest { } /** * @public * * The output of {@link GetPartitionsCommand}. */ export interface GetPartitionsCommandOutput extends GetPartitionsResponse, __MetadataBearer { } declare const GetPartitionsCommand_base: { new (input: GetPartitionsCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetPartitionsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Retrieves information about the partitions in a table.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GlueClient, GetPartitionsCommand } from "@aws-sdk/client-glue"; // ES Modules import * // const { GlueClient, GetPartitionsCommand } = 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 = { // GetPartitionsRequest * CatalogId: "STRING_VALUE", * DatabaseName: "STRING_VALUE", // required * TableName: "STRING_VALUE", // required * Expression: "STRING_VALUE", * NextToken: "STRING_VALUE", * Segment: { // Segment * SegmentNumber: Number("int"), // required * TotalSegments: Number("int"), // required * }, * MaxResults: Number("int"), * ExcludeColumnSchema: true || false, * TransactionId: "STRING_VALUE", * QueryAsOfTime: new Date("TIMESTAMP"), * AuditContext: { // AuditContext * AdditionalAuditContext: "STRING_VALUE", * RequestedColumns: [ // AuditColumnNamesList * "STRING_VALUE", * ], * AllColumnsRequested: true || false, * }, * }; * const command = new GetPartitionsCommand(input); * const response = await client.send(command); * // { // GetPartitionsResponse * // Partitions: [ // PartitionList * // { // Partition * // Values: [ // ValueStringList * // "STRING_VALUE", * // ], * // DatabaseName: "STRING_VALUE", * // TableName: "STRING_VALUE", * // CreationTime: new Date("TIMESTAMP"), * // LastAccessTime: new Date("TIMESTAMP"), * // 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"), * // }, * // }, * // Parameters: "", * // LastAnalyzedTime: new Date("TIMESTAMP"), * // CatalogId: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param GetPartitionsCommandInput - {@link GetPartitionsCommandInput} * @returns {@link GetPartitionsCommandOutput} * @see {@link GetPartitionsCommandInput} for command's `input` shape. * @see {@link GetPartitionsCommandOutput} 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 FederationSourceException} (client fault) *

A federation source failed.

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

A federation source failed, but the operation may be retried.

* * @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 InvalidStateException} (client fault) *

An error that indicates your data is in an invalid state.

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

The operation timed out.

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

A resource was not ready for a transaction.

* * @throws {@link GlueServiceException} *

Base exception class for all service exceptions from Glue service.

* * * @public */ export declare class GetPartitionsCommand extends GetPartitionsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetPartitionsRequest; output: GetPartitionsResponse; }; sdk: { input: GetPartitionsCommandInput; output: GetPartitionsCommandOutput; }; }; }