Interface IS3FileItemReaderProps
Base interface for Item Reader configuration properties the iterate over entries in a S3 file.
Namespace: Amazon.CDK.AWS.StepFunctions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IS3FileItemReaderProps : IItemReaderProps
Syntax (vb)
Public Interface IS3FileItemReaderProps
Inherits IItemReaderProps
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.S3;
/**
* Tree view of bucket:
* my-bucket
* |
* +--input.json
* |
* ...
*
* File content of input.json:
* [
* "item1",
* "item2"
* ]
*/
var bucket = new Bucket(this, "Bucket", new BucketProps {
BucketName = "my-bucket"
});
var distributedMap = new DistributedMap(this, "DistributedMap", new DistributedMapProps {
ItemReader = new S3JsonItemReader(new S3FileItemReaderProps {
Bucket = bucket,
Key = "input.json"
})
});
distributedMap.ItemProcessor(new Pass(this, "Pass"));
Synopsis
Properties
Key | Key of file stored in S3 bucket containing an array to iterate over. |
Properties
Key
Key of file stored in S3 bucket containing an array to iterate over.
string Key { get; }
Property Value
System.String