# ImportSourceSpecification

Properties for importing data from the S3.

- Source: [`aws-dynamodb/lib/table.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-dynamodb/lib/table.ts#L209)
- Type last changed: v2.123.0 · 24 Jan 2024

## Example

```ts
import * as cdk from 'aws-cdk-lib';
import * as s3 from 'aws-cdk-lib/aws-s3';

const app = new cdk.App();
const stack = new cdk.Stack(app, 'Stack');

declare const bucket: s3.IBucket;

new dynamodb.Table(stack, 'Table', {
  partitionKey: {
    name: 'id',
    type: dynamodb.AttributeType.STRING,
  },
  importSource: {
    compressionType: dynamodb.InputCompressionType.GZIP,
    inputFormat: dynamodb.InputFormat.dynamoDBJson(),
    bucket,
    keyPrefix: 'prefix',
  },
});
```

## Properties

- `bucket`: [IBucket](/cdk/api/v2/docs/aws-cdk-lib.aws_s3.IBucket.html) (required) — The S3 bucket that is being imported from.

- `bucketOwner`: string — The account number of the S3 bucket that is being imported from.

  **Default:** no value

- `compressionType`: [InputCompressionType](/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.InputCompressionType.html) = InputCompressionType.NONE — The compression type of the imported data.

- `inputFormat`: [InputFormat](/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.InputFormat.html) (required) — The format of the imported data.

- `keyPrefix`: string — The key prefix shared by all S3 Objects that are being imported.

  **Default:** no value
