class InputFormat
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.DynamoDB.InputFormat |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsdynamodb#InputFormat |
Java | software.amazon.awscdk.services.dynamodb.InputFormat |
Python | aws_cdk.aws_dynamodb.InputFormat |
TypeScript (source) | aws-cdk-lib » aws_dynamodb » InputFormat |
The format of the source data.
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',
},
});
Initializer
new InputFormat()
Methods
| Name | Description |
|---|---|
| static csv(options?) | CSV format. |
| static dynamo | DynamoDB JSON format. |
| static ion() | Amazon Ion format. |
static csv(options?)
public static csv(options?: CsvOptions): InputFormat
Parameters
- options
CsvOptions
Returns
CSV format.
static dynamoDBJson()
public static dynamoDBJson(): InputFormat
Returns
DynamoDB JSON format.
static ion()
public static ion(): InputFormat
Returns
Amazon Ion format.

.NET
Go
Java
Python
TypeScript (