# FormatOptionsProperty

Represents a set of options that define the structure of either comma-separated value (CSV), Excel, or JSON input.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_databrew as databrew } from 'aws-cdk-lib';
const formatOptionsProperty: databrew.CfnDataset.FormatOptionsProperty = {
  csv: {
    delimiter: 'delimiter',
    headerRow: false,
  },
  excel: {
    headerRow: false,
    sheetIndexes: [123],
    sheetNames: ['sheetNames'],
  },
  json: {
    multiLine: false,
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_databrew as databrew

format_options_property = databrew.CfnDataset.FormatOptionsProperty(
    csv=databrew.CfnDataset.CsvOptionsProperty(
        delimiter="delimiter",
        header_row=False
    ),
    excel=databrew.CfnDataset.ExcelOptionsProperty(
        header_row=False,
        sheet_indexes=[123],
        sheet_names=["sheetNames"]
    ),
    json=databrew.CfnDataset.JsonOptionsProperty(
        multi_line=False
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.databrew.*;

FormatOptionsProperty formatOptionsProperty = FormatOptionsProperty.builder()
        .csv(CsvOptionsProperty.builder()
                .delimiter("delimiter")
                .headerRow(false)
                .build())
        .excel(ExcelOptionsProperty.builder()
                .headerRow(false)
                .sheetIndexes(List.of(123))
                .sheetNames(List.of("sheetNames"))
                .build())
        .json(JsonOptionsProperty.builder()
                .multiLine(false)
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DataBrew;

var formatOptionsProperty = new FormatOptionsProperty {
    Csv = new CsvOptionsProperty {
        Delimiter = "delimiter",
        HeaderRow = false
    },
    Excel = new ExcelOptionsProperty {
        HeaderRow = false,
        SheetIndexes = new [] { 123 },
        SheetNames = new [] { "sheetNames" }
    },
    Json = new JsonOptionsProperty {
        MultiLine = false
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

formatOptionsProperty := &FormatOptionsProperty{
	Csv: &CsvOptionsProperty{
		Delimiter: jsii.String("delimiter"),
		HeaderRow: jsii.Boolean(false),
	},
	Excel: &ExcelOptionsProperty{
		HeaderRow: jsii.Boolean(false),
		SheetIndexes: []interface{}{
			jsii.Number(123),
		},
		SheetNames: []*string{
			jsii.String("sheetNames"),
		},
	},
	Json: &JsonOptionsProperty{
		MultiLine: jsii.Boolean(false),
	},
}
```

## Properties

- `csv`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataset.CsvOptionsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_databrew.CfnDataset.CsvOptionsProperty.html) — Options that define how CSV input is to be interpreted by DataBrew.

- `excel`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataset.ExcelOptionsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_databrew.CfnDataset.ExcelOptionsProperty.html) — Options that define how Excel input is to be interpreted by DataBrew.

- `json`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataset.JsonOptionsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_databrew.CfnDataset.JsonOptionsProperty.html) — Options that define how JSON input is to be interpreted by DataBrew.
