interface ImportSourceSpecification
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.DynamoDB.ImportSourceSpecification |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsdynamodb#ImportSourceSpecification |
Java | software.amazon.awscdk.services.dynamodb.ImportSourceSpecification |
Python | aws_cdk.aws_dynamodb.ImportSourceSpecification |
TypeScript (source) | aws-cdk-lib » aws_dynamodb » ImportSourceSpecification |
Properties for importing data from the S3.
Example
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
| Name | Type | Description |
|---|---|---|
| bucket | IBucket | The S3 bucket that is being imported from. |
| input | Input | The format of the imported data. |
| bucket | string | The account number of the S3 bucket that is being imported from. |
| compression | Input | The compression type of the imported data. |
| key | string | The key prefix shared by all S3 Objects that are being imported. |
bucket
Type:
IBucket
The S3 bucket that is being imported from.
inputFormat
Type:
Input
The format of the imported data.
bucketOwner?
Type:
string
(optional, default: no value)
The account number of the S3 bucket that is being imported from.
compressionType?
Type:
Input
(optional, default: InputCompressionType.NONE)
The compression type of the imported data.
keyPrefix?
Type:
string
(optional, default: no value)
The key prefix shared by all S3 Objects that are being imported.

.NET
Go
Java
Python
TypeScript (