CsvHeaders
- class aws_cdk.aws_stepfunctions.CsvHeaders(*args: Any, **kwargs)
Bases:
object
Configuration for CSV header options for a CSV Item Reader.
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_stepfunctions as stepfunctions csv_headers = stepfunctions.CsvHeaders.use(["headers"])
Attributes
- header_location
Location of headers in CSV file.
- headers
List of headers if
headerLocation
isGIVEN
.
Static Methods
- classmethod use(headers)
Configures S3CsvItemReader to use the headers provided in the
headers
parameter.- Parameters:
headers (
Sequence
[str
]) –List of headers.
- Return type:
- Returns:
CsvHeaders
- classmethod use_first_row()
Configures S3CsvItemReader to read headers from the first row of the CSV file.
- Return type:
- Returns:
CsvHeaders