Class S3FileItemReaderProps
Base interface for Item Reader configuration properties the iterate over entries in a S3 file.
Inheritance
System.Object
S3FileItemReaderProps
Namespace: Amazon.CDK.AWS.StepFunctions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class S3FileItemReaderProps : Object, IS3FileItemReaderProps, IItemReaderProps
Syntax (vb)
Public Class S3FileItemReaderProps
Inherits Object
Implements IS3FileItemReaderProps, IItemReaderProps
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.S3;
// create a bucket
var bucket = new Bucket(this, "Bucket");
var distributedMap = new DistributedMap(this, "Distributed Map State", new DistributedMapProps {
ItemReader = new S3JsonItemReader(new S3FileItemReaderProps {
Bucket = bucket,
Key = "my-key.json"
}),
ResultWriter = new ResultWriter(new ResultWriterProps {
Bucket = bucket,
Prefix = "my-prefix"
})
});
distributedMap.ItemProcessor(new Pass(this, "Pass State"));
Synopsis
Constructors
S3FileItemReaderProps() |
Properties
Bucket | S3 Bucket containing objects to iterate over or a file with a list to iterate over. |
Key | Key of file stored in S3 bucket containing an array to iterate over. |
MaxItems | Limits the number of items passed to the Distributed Map state. |
Constructors
S3FileItemReaderProps()
public S3FileItemReaderProps()
Properties
Bucket
S3 Bucket containing objects to iterate over or a file with a list to iterate over.
public IBucket Bucket { get; set; }
Property Value
Key
Key of file stored in S3 bucket containing an array to iterate over.
public string Key { get; set; }
Property Value
System.String
MaxItems
Limits the number of items passed to the Distributed Map state.
public Nullable<double> MaxItems { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Default: - Distributed Map state will iterate over all items provided by the ItemReader