Show / Hide Table of Contents

Class InputFormat

The format of the source data.

Inheritance
object
InputFormat
Namespace: Amazon.CDK.AWS.DynamoDB
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class InputFormat : DeputyBase
Syntax (vb)
Public MustInherit Class InputFormat Inherits DeputyBase
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

InputFormat()

The format of the source data.

Methods

Csv(ICsvOptions?)

CSV format.

DynamoDBJson()

DynamoDB JSON format.

Ion()

Amazon Ion format.

Constructors

InputFormat()

The format of the source data.

protected InputFormat()
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"
                }
            });

Methods

Csv(ICsvOptions?)

CSV format.

public static InputFormat Csv(ICsvOptions? options = null)
Parameters
options ICsvOptions
Returns

InputFormat

Remarks

ExampleMetadata: infused

DynamoDBJson()

DynamoDB JSON format.

public static InputFormat DynamoDBJson()
Returns

InputFormat

Remarks

ExampleMetadata: infused

Ion()

Amazon Ion format.

public static InputFormat Ion()
Returns

InputFormat

Remarks

ExampleMetadata: infused

Back to top Generated by DocFX