Class S3CsvItemReader
Item Reader configuration for iterating over items in a CSV file stored in S3.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.StepFunctions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class S3CsvItemReader : DeputyBase, IItemReader
Syntax (vb)
Public Class S3CsvItemReader
Inherits DeputyBase
Implements IItemReader
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;
using Amazon.CDK.AWS.StepFunctions;
Bucket bucket;
CsvHeaders csvHeaders;
var s3CsvItemReader = new S3CsvItemReader(new S3CsvItemReaderProps {
Key = "key",
// the properties below are optional
Bucket = bucket,
BucketNamePath = "bucketNamePath",
CsvDelimiter = CsvDelimiter.COMMA,
CsvHeaders = csvHeaders,
MaxItems = 123
});
Synopsis
Constructors
S3Csv |
|
S3Csv |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
S3Csv |
Used by jsii to construct an instance of this class from DeputyProps |
Properties
Bucket | S3 Bucket containing a file with a list to iterate over. |
Bucket |
S3 bucket name containing objects to iterate over or a file with a list to iterate over, as JsonPath. |
Csv |
Delimiter used in CSV file. |
Csv |
CSV headers configuration. |
Input |
|
Key | S3 key of a file with a list to iterate over. |
Max |
Limits the number of items passed to the Distributed Map state. |
Resource | ARN for the |
Methods
Provide |
Compile policy statements to provide relevent permissions to the state machine. |
Render(Nullable<QueryLanguage>) | Renders the ItemReader configuration as JSON object. |
Validate |
Validate that ItemReader contains exactly either. |
Constructors
S3CsvItemReader(IS3CsvItemReaderProps)
S3CsvItemReader(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected S3CsvItemReader(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
S3CsvItemReader(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected S3CsvItemReader(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
Properties
Bucket
S3 Bucket containing a file with a list to iterate over.
public virtual IBucket Bucket { get; }
Property Value
BucketNamePath
S3 bucket name containing objects to iterate over or a file with a list to iterate over, as JsonPath.
public virtual string BucketNamePath { get; }
Property Value
System.
CsvDelimiter
Delimiter used in CSV file.
public virtual Nullable<CsvDelimiter> CsvDelimiter { get; }
Property Value
System.
CsvHeaders
InputType
protected virtual string InputType { get; }
Property Value
System.
Key
S3 key of a file with a list to iterate over.
public virtual string Key { get; }
Property Value
System.
MaxItems
Limits the number of items passed to the Distributed Map state.
public virtual Nullable<double> MaxItems { get; }
Property Value
System.
Remarks
Default: - No maxItems
Resource
ARN for the getObject
method of the S3 API This API method is used to iterate all objects in the S3 bucket/prefix.
public virtual string Resource { get; }
Property Value
System.
Methods
ProvidePolicyStatements()
Compile policy statements to provide relevent permissions to the state machine.
public virtual PolicyStatement[] ProvidePolicyStatements()
Returns
Render(Nullable<QueryLanguage>)
Renders the ItemReader configuration as JSON object.
public virtual object Render(Nullable<QueryLanguage> queryLanguage = null)
Parameters
- queryLanguage System.
Nullable <QueryLanguage >
Returns
System.
ValidateItemReader()
Validate that ItemReader contains exactly either.
public virtual string[] ValidateItemReader()
Returns
System.
Remarks
See: bucketNamePath