Class ImportSourceSpecification
Properties for importing data from the S3.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.DynamoDB
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ImportSourceSpecification : IImportSourceSpecification
Syntax (vb)
Public Class ImportSourceSpecification Implements IImportSourceSpecification
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK;
using Amazon.CDK.AWS.S3;
IBucket bucket;
var app = new App();
var stack = new Stack(app, "Stack");
new Table(stack, "Table", new TableProps {
PartitionKey = new Attribute {
Name = "id",
Type = AttributeType.STRING
},
ImportSource = new ImportSourceSpecification {
CompressionType = InputCompressionType.GZIP,
InputFormat = InputFormat.DynamoDBJson(),
Bucket = bucket,
KeyPrefix = "prefix"
}
});
Synopsis
Constructors
| ImportSourceSpecification() | Properties for importing data from the S3. |
Properties
| Bucket | The S3 bucket that is being imported from. |
| BucketOwner | The account number of the S3 bucket that is being imported from. |
| CompressionType | The compression type of the imported data. |
| InputFormat | The format of the imported data. |
| KeyPrefix | The key prefix shared by all S3 Objects that are being imported. |
Constructors
ImportSourceSpecification()
Properties for importing data from the S3.
public ImportSourceSpecification()
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK;
using Amazon.CDK.AWS.S3;
IBucket bucket;
var app = new App();
var stack = new Stack(app, "Stack");
new Table(stack, "Table", new TableProps {
PartitionKey = new Attribute {
Name = "id",
Type = AttributeType.STRING
},
ImportSource = new ImportSourceSpecification {
CompressionType = InputCompressionType.GZIP,
InputFormat = InputFormat.DynamoDBJson(),
Bucket = bucket,
KeyPrefix = "prefix"
}
});
Properties
Bucket
The S3 bucket that is being imported from.
public IBucket Bucket { get; set; }
Property Value
Remarks
ExampleMetadata: infused
BucketOwner
The account number of the S3 bucket that is being imported from.
public string? BucketOwner { get; set; }
Property Value
Remarks
Default: - no value
CompressionType
The compression type of the imported data.
public InputCompressionType? CompressionType { get; set; }
Property Value
Remarks
Default: InputCompressionType.NONE
InputFormat
The format of the imported data.
public InputFormat InputFormat { get; set; }
Property Value
Remarks
ExampleMetadata: infused
KeyPrefix
The key prefix shared by all S3 Objects that are being imported.
public string? KeyPrefix { get; set; }
Property Value
Remarks
Default: - no value