Class CsvHeaders
Configuration for CSV header options for a CSV Item Reader.
Namespace: Amazon.CDK.AWS.StepFunctions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CsvHeaders : DeputyBase
Syntax (vb)
Public Class CsvHeaders Inherits DeputyBase
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.StepFunctions;
var csvHeaders = CsvHeaders.Use(new [] { "headers" });
Synopsis
Properties
HeaderLocation | Location of headers in CSV file. |
Headers | List of headers if |
Methods
Use(string[]) | Configures S3CsvItemReader to use the headers provided in the |
UseFirstRow() | Configures S3CsvItemReader to read headers from the first row of the CSV file. |
Properties
HeaderLocation
Location of headers in CSV file.
public virtual CsvHeaderLocation HeaderLocation { get; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
Headers
List of headers if headerLocation
is GIVEN
.
public virtual string[]? Headers { get; }
Property Value
string[]
Remarks
ExampleMetadata: fixture=_generated
Methods
Use(string[])
Configures S3CsvItemReader to use the headers provided in the headers
parameter.
public static CsvHeaders Use(string[] headers)
Parameters
- headers string[]
- List of headers.
Returns
- CsvHeaders
Remarks
ExampleMetadata: fixture=_generated
UseFirstRow()
Configures S3CsvItemReader to read headers from the first row of the CSV file.
public static CsvHeaders UseFirstRow()
Returns
- CsvHeaders
Remarks
ExampleMetadata: fixture=_generated