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 { BatchGetPartitionRequest, BatchGetPartitionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link BatchGetPartitionCommand}. */ export interface BatchGetPartitionCommandInput extends BatchGetPartitionRequest { } /** * @public * * The output of {@link BatchGetPartitionCommand}. */ export interface BatchGetPartitionCommandOutput extends BatchGetPartitionResponse, __MetadataBearer { } declare const BatchGetPartitionCommand_base: { new (input: BatchGetPartitionCommandInput): import("@smithy/core/client").CommandImpl; new (input: BatchGetPartitionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Retrieves partitions in a batch request.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GlueClient, BatchGetPartitionCommand } from "@aws-sdk/client-glue"; // ES Modules import * // const { GlueClient, BatchGetPartitionCommand } = 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 = { // BatchGetPartitionRequest * CatalogId: "STRING_VALUE", * DatabaseName: "STRING_VALUE", // required * TableName: "STRING_VALUE", // required * PartitionsToGet: [ // BatchGetPartitionValueList // required * { // PartitionValueList * Values: [ // ValueStringList // required * "STRING_VALUE", * ], * }, * ], * AuditContext: { // AuditContext * AdditionalAuditContext: "STRING_VALUE", * RequestedColumns: [ // AuditColumnNamesList * "STRING_VALUE", * ], * AllColumnsRequested: true || false, * }, * QuerySessionContext: { // QuerySessionContext * QueryId: "STRING_VALUE", * QueryStartTime: new Date("TIMESTAMP"), * ClusterId: "STRING_VALUE", * QueryAuthorizationId: "STRING_VALUE", * AdditionalContext: { // AdditionalContextMap * "": "STRING_VALUE", * }, * }, * }; * const command = new BatchGetPartitionCommand(input); * const response = await client.send(command); * // { // BatchGetPartitionResponse * // 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", * // }, * // ], * // UnprocessedKeys: [ // BatchGetPartitionValueList * // { // PartitionValueList * // Values: [ // required * // "STRING_VALUE", * // ], * // }, * // ], * // }; * * ``` * * @param BatchGetPartitionCommandInput - {@link BatchGetPartitionCommandInput} * @returns {@link BatchGetPartitionCommandOutput} * @see {@link BatchGetPartitionCommandInput} for command's `input` shape. * @see {@link BatchGetPartitionCommandOutput} 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 GlueServiceException} *

Base exception class for all service exceptions from Glue service.

* * * @public */ export declare class BatchGetPartitionCommand extends BatchGetPartitionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: BatchGetPartitionRequest; output: BatchGetPartitionResponse; }; sdk: { input: BatchGetPartitionCommandInput; output: BatchGetPartitionCommandOutput; }; }; }