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 { CreatePartitionRequest, CreatePartitionResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreatePartitionCommand}. */ export interface CreatePartitionCommandInput extends CreatePartitionRequest { } /** * @public * * The output of {@link CreatePartitionCommand}. */ export interface CreatePartitionCommandOutput extends CreatePartitionResponse, __MetadataBearer { } declare const CreatePartitionCommand_base: { new (input: CreatePartitionCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreatePartitionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Creates a new partition.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GlueClient, CreatePartitionCommand } from "@aws-sdk/client-glue"; // ES Modules import * // const { GlueClient, CreatePartitionCommand } = 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 = { // CreatePartitionRequest * CatalogId: "STRING_VALUE", * DatabaseName: "STRING_VALUE", // required * TableName: "STRING_VALUE", // required * PartitionInput: { // PartitionInput * Values: [ // ValueStringList * "STRING_VALUE", * ], * 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"), * }, * }; * const command = new CreatePartitionCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param CreatePartitionCommandInput - {@link CreatePartitionCommandInput} * @returns {@link CreatePartitionCommandOutput} * @see {@link CreatePartitionCommandInput} for command's `input` shape. * @see {@link CreatePartitionCommandOutput} for command's `response` shape. * @see {@link GlueClientResolvedConfig | config} for GlueClient's `config` shape. * * @throws {@link AlreadyExistsException} (client fault) *

A resource to be created or added already exists.

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

A resource numerical limit was exceeded.

* * @throws {@link GlueServiceException} *

Base exception class for all service exceptions from Glue service.

* * * @public */ export declare class CreatePartitionCommand extends CreatePartitionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreatePartitionRequest; output: {}; }; sdk: { input: CreatePartitionCommandInput; output: CreatePartitionCommandOutput; }; }; }