Class CsvHeaders
Configuration for CSV header options for a CSV Item Reader.
Inheritance
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
Constructors
Csv |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Csv |
Used by jsii to construct an instance of this class from DeputyProps |
Properties
Header |
Location of headers in CSV file. |
Headers | List of headers if |
Methods
Use(String[]) | Configures S3CsvItemReader to use the headers provided in the |
Use |
Configures S3CsvItemReader to read headers from the first row of the CSV file. |
Constructors
CsvHeaders(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CsvHeaders(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
CsvHeaders(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CsvHeaders(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
Properties
HeaderLocation
Location of headers in CSV file.
public virtual CsvHeaderLocation HeaderLocation { get; }
Property Value
Headers
List of headers if headerLocation
is GIVEN
.
public virtual string[] Headers { get; }
Property Value
System.
Methods
Use(String[])
Configures S3CsvItemReader to use the headers provided in the headers
parameter.
public static CsvHeaders Use(string[] headers)
Parameters
- headers System.
String [] - List of headers.
Returns
- CsvHeaders
UseFirstRow()
Configures S3CsvItemReader to read headers from the first row of the CSV file.
public static CsvHeaders UseFirstRow()
Returns
- CsvHeaders