import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient"; import type { ImportTableInput, ImportTableOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ImportTableCommand}. */ export interface ImportTableCommandInput extends ImportTableInput { } /** * @public * * The output of {@link ImportTableCommand}. */ export interface ImportTableCommandOutput extends ImportTableOutput, __MetadataBearer { } declare const ImportTableCommand_base: { new (input: ImportTableCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ImportTableCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Imports table data from an S3 bucket.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DynamoDBClient, ImportTableCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import * // const { DynamoDBClient, ImportTableCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import * // import type { DynamoDBClientConfig } from "@aws-sdk/client-dynamodb"; * const config = {}; // type is DynamoDBClientConfig * const client = new DynamoDBClient(config); * const input = { // ImportTableInput * ClientToken: "STRING_VALUE", * S3BucketSource: { // S3BucketSource * S3BucketOwner: "STRING_VALUE", * S3Bucket: "STRING_VALUE", // required * S3KeyPrefix: "STRING_VALUE", * }, * InputFormat: "DYNAMODB_JSON" || "ION" || "CSV", // required * InputFormatOptions: { // InputFormatOptions * Csv: { // CsvOptions * Delimiter: "STRING_VALUE", * HeaderList: [ // CsvHeaderList * "STRING_VALUE", * ], * }, * }, * InputCompressionType: "GZIP" || "ZSTD" || "NONE", * TableCreationParameters: { // TableCreationParameters * TableName: "STRING_VALUE", // required * AttributeDefinitions: [ // AttributeDefinitions // required * { // AttributeDefinition * AttributeName: "STRING_VALUE", // required * AttributeType: "S" || "N" || "B", // required * }, * ], * KeySchema: [ // KeySchema // required * { // KeySchemaElement * AttributeName: "STRING_VALUE", // required * KeyType: "HASH" || "RANGE", // required * }, * ], * BillingMode: "PROVISIONED" || "PAY_PER_REQUEST", * ProvisionedThroughput: { // ProvisionedThroughput * ReadCapacityUnits: Number("long"), // required * WriteCapacityUnits: Number("long"), // required * }, * OnDemandThroughput: { // OnDemandThroughput * MaxReadRequestUnits: Number("long"), * MaxWriteRequestUnits: Number("long"), * }, * SSESpecification: { // SSESpecification * Enabled: true || false, * SSEType: "AES256" || "KMS", * KMSMasterKeyId: "STRING_VALUE", * }, * GlobalSecondaryIndexes: [ // GlobalSecondaryIndexList * { // GlobalSecondaryIndex * IndexName: "STRING_VALUE", // required * KeySchema: [ // required * { * AttributeName: "STRING_VALUE", // required * KeyType: "HASH" || "RANGE", // required * }, * ], * Projection: { // Projection * ProjectionType: "ALL" || "KEYS_ONLY" || "INCLUDE", * NonKeyAttributes: [ // NonKeyAttributeNameList * "STRING_VALUE", * ], * }, * ProvisionedThroughput: { * ReadCapacityUnits: Number("long"), // required * WriteCapacityUnits: Number("long"), // required * }, * OnDemandThroughput: { * MaxReadRequestUnits: Number("long"), * MaxWriteRequestUnits: Number("long"), * }, * WarmThroughput: { // WarmThroughput * ReadUnitsPerSecond: Number("long"), * WriteUnitsPerSecond: Number("long"), * }, * }, * ], * }, * }; * const command = new ImportTableCommand(input); * const response = await client.send(command); * // { // ImportTableOutput * // ImportTableDescription: { // ImportTableDescription * // ImportArn: "STRING_VALUE", * // ImportStatus: "IN_PROGRESS" || "COMPLETED" || "CANCELLING" || "CANCELLED" || "FAILED", * // TableArn: "STRING_VALUE", * // TableId: "STRING_VALUE", * // ClientToken: "STRING_VALUE", * // S3BucketSource: { // S3BucketSource * // S3BucketOwner: "STRING_VALUE", * // S3Bucket: "STRING_VALUE", // required * // S3KeyPrefix: "STRING_VALUE", * // }, * // ErrorCount: Number("long"), * // CloudWatchLogGroupArn: "STRING_VALUE", * // InputFormat: "DYNAMODB_JSON" || "ION" || "CSV", * // InputFormatOptions: { // InputFormatOptions * // Csv: { // CsvOptions * // Delimiter: "STRING_VALUE", * // HeaderList: [ // CsvHeaderList * // "STRING_VALUE", * // ], * // }, * // }, * // InputCompressionType: "GZIP" || "ZSTD" || "NONE", * // TableCreationParameters: { // TableCreationParameters * // TableName: "STRING_VALUE", // required * // AttributeDefinitions: [ // AttributeDefinitions // required * // { // AttributeDefinition * // AttributeName: "STRING_VALUE", // required * // AttributeType: "S" || "N" || "B", // required * // }, * // ], * // KeySchema: [ // KeySchema // required * // { // KeySchemaElement * // AttributeName: "STRING_VALUE", // required * // KeyType: "HASH" || "RANGE", // required * // }, * // ], * // BillingMode: "PROVISIONED" || "PAY_PER_REQUEST", * // ProvisionedThroughput: { // ProvisionedThroughput * // ReadCapacityUnits: Number("long"), // required * // WriteCapacityUnits: Number("long"), // required * // }, * // OnDemandThroughput: { // OnDemandThroughput * // MaxReadRequestUnits: Number("long"), * // MaxWriteRequestUnits: Number("long"), * // }, * // SSESpecification: { // SSESpecification * // Enabled: true || false, * // SSEType: "AES256" || "KMS", * // KMSMasterKeyId: "STRING_VALUE", * // }, * // GlobalSecondaryIndexes: [ // GlobalSecondaryIndexList * // { // GlobalSecondaryIndex * // IndexName: "STRING_VALUE", // required * // KeySchema: [ // required * // { * // AttributeName: "STRING_VALUE", // required * // KeyType: "HASH" || "RANGE", // required * // }, * // ], * // Projection: { // Projection * // ProjectionType: "ALL" || "KEYS_ONLY" || "INCLUDE", * // NonKeyAttributes: [ // NonKeyAttributeNameList * // "STRING_VALUE", * // ], * // }, * // ProvisionedThroughput: { * // ReadCapacityUnits: Number("long"), // required * // WriteCapacityUnits: Number("long"), // required * // }, * // OnDemandThroughput: { * // MaxReadRequestUnits: Number("long"), * // MaxWriteRequestUnits: Number("long"), * // }, * // WarmThroughput: { // WarmThroughput * // ReadUnitsPerSecond: Number("long"), * // WriteUnitsPerSecond: Number("long"), * // }, * // }, * // ], * // }, * // StartTime: new Date("TIMESTAMP"), * // EndTime: new Date("TIMESTAMP"), * // ProcessedSizeBytes: Number("long"), * // ProcessedItemCount: Number("long"), * // ImportedItemCount: Number("long"), * // FailureCode: "STRING_VALUE", * // FailureMessage: "STRING_VALUE", * // }, * // }; * * ``` * * @param ImportTableCommandInput - {@link ImportTableCommandInput} * @returns {@link ImportTableCommandOutput} * @see {@link ImportTableCommandInput} for command's `input` shape. * @see {@link ImportTableCommandOutput} for command's `response` shape. * @see {@link DynamoDBClientResolvedConfig | config} for DynamoDBClient's `config` shape. * * @throws {@link ImportConflictException} (client fault) *

There was a conflict when importing from the specified S3 source. This can occur when * the current import conflicts with a previous import request that had the same client * token.

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

There is no limit to the number of daily on-demand backups that can be taken.

*

For most purposes, up to 500 simultaneous table operations are allowed per account. * These operations include CreateTable, UpdateTable, * DeleteTable,UpdateTimeToLive, * RestoreTableFromBackup, and RestoreTableToPointInTime.

*

When you are creating a table with one or more secondary indexes, you can have up * to 250 such requests running at a time. However, if the table or index specifications * are complex, then DynamoDB might temporarily reduce the number of concurrent * operations.

*

When importing into DynamoDB, up to 50 simultaneous import table operations are * allowed per account.

*

There is a soft account quota of 2,500 tables.

*

GetRecords was called with a value of more than 1000 for the limit request * parameter.

*

More than 2 processes are reading from the same streams shard at the same time. * Exceeding this limit may result in request throttling.

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

The operation conflicts with the resource's availability. For example:

* *

When appropriate, wait for the ongoing update to complete and attempt the request * again.

* * @throws {@link DynamoDBServiceException} *

Base exception class for all service exceptions from DynamoDB service.

* * * @public */ export declare class ImportTableCommand extends ImportTableCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ImportTableInput; output: ImportTableOutput; }; sdk: { input: ImportTableCommandInput; output: ImportTableCommandOutput; }; }; }