Class S3CsvItemReader.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.S3CsvItemReader.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3CsvItemReader>
- Enclosing class:
- S3CsvItemReader
@Stability(Stable)
public static final class S3CsvItemReader.Builder
extends Object
implements software.amazon.jsii.Builder<S3CsvItemReader>
A fluent builder for
S3CsvItemReader
.-
Method Summary
Modifier and TypeMethodDescriptionS3 Bucket containing objects to iterate over or a file with a list to iterate over.bucketNamePath
(String bucketNamePath) S3 bucket name containing objects to iterate over or a file with a list to iterate over, as JsonPath.build()
static S3CsvItemReader.Builder
create()
csvHeaders
(CsvHeaders csvHeaders) CSV file header configuration.Key of file stored in S3 bucket containing an array to iterate over.Limits the number of items passed to the Distributed Map state.
-
Method Details
-
create
- Returns:
- a new instance of
S3CsvItemReader.Builder
.
-
bucket
S3 Bucket containing objects to iterate over or a file with a list to iterate over.Default: - S3 bucket will be determined from
- Parameters:
bucket
- S3 Bucket containing objects to iterate over or a file with a list to iterate over. This parameter is required.- Returns:
this
- See Also:
-
bucketNamePath
S3 bucket name containing objects to iterate over or a file with a list to iterate over, as JsonPath.Default: - S3 bucket will be determined from
- Parameters:
bucketNamePath
- S3 bucket name containing objects to iterate over or a file with a list to iterate over, as JsonPath. This parameter is required.- Returns:
this
- See Also:
-
maxItems
Limits the number of items passed to the Distributed Map state.Default: - Distributed Map state will iterate over all items provided by the ItemReader
- Parameters:
maxItems
- Limits the number of items passed to the Distributed Map state. This parameter is required.- Returns:
this
-
key
Key of file stored in S3 bucket containing an array to iterate over.- Parameters:
key
- Key of file stored in S3 bucket containing an array to iterate over. This parameter is required.- Returns:
this
-
csvHeaders
CSV file header configuration.Default: - CsvHeaders with CsvHeadersLocation.FIRST_ROW
- Parameters:
csvHeaders
- CSV file header configuration. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<S3CsvItemReader>
- Returns:
- a newly built instance of
S3CsvItemReader
.
-