interface ImportSourceSpecificationProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.DynamoDB.CfnTable.ImportSourceSpecificationProperty |
Java | software.amazon.awscdk.services.dynamodb.CfnTable.ImportSourceSpecificationProperty |
Python | aws_cdk.aws_dynamodb.CfnTable.ImportSourceSpecificationProperty |
TypeScript | @aws-cdk/aws-dynamodb » CfnTable » ImportSourceSpecificationProperty |
Specifies the properties of data being imported from the S3 bucket source to the table.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as dynamodb from '@aws-cdk/aws-dynamodb';
const importSourceSpecificationProperty: dynamodb.CfnTable.ImportSourceSpecificationProperty = {
inputFormat: 'inputFormat',
s3BucketSource: {
s3Bucket: 's3Bucket',
// the properties below are optional
s3BucketOwner: 's3BucketOwner',
s3KeyPrefix: 's3KeyPrefix',
},
// the properties below are optional
inputCompressionType: 'inputCompressionType',
inputFormatOptions: {
csv: {
delimiter: 'delimiter',
headerList: ['headerList'],
},
},
};
Properties
Name | Type | Description |
---|---|---|
input | string | The format of the source data. |
s3 | IResolvable | S3 | The S3 bucket that provides the source for the import. |
input | string | Type of compression to be used on the input coming from the imported table. |
input | IResolvable | Input | Additional properties that specify how the input is formatted,. |
inputFormat
Type:
string
The format of the source data.
Valid values for ImportFormat
are CSV
, DYNAMODB_JSON
or ION
.
s3BucketSource
Type:
IResolvable
|
S3
The S3 bucket that provides the source for the import.
inputCompressionType?
Type:
string
(optional)
Type of compression to be used on the input coming from the imported table.
inputFormatOptions?
Type:
IResolvable
|
Input
(optional)
Additional properties that specify how the input is formatted,.