# FileFormatDescriptorProperty

Contains information about a source file's formatting.

- 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_lookoutmetrics as lookoutmetrics } from 'aws-cdk-lib';
const fileFormatDescriptorProperty: lookoutmetrics.CfnAnomalyDetector.FileFormatDescriptorProperty = {
  csvFormatDescriptor: {
    charset: 'charset',
    containsHeader: false,
    delimiter: 'delimiter',
    fileCompression: 'fileCompression',
    headerList: ['headerList'],
    quoteSymbol: 'quoteSymbol',
  },
  jsonFormatDescriptor: {
    charset: 'charset',
    fileCompression: 'fileCompression',
  },
};
```

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_lookoutmetrics as lookoutmetrics

file_format_descriptor_property = lookoutmetrics.CfnAnomalyDetector.FileFormatDescriptorProperty(
    csv_format_descriptor=lookoutmetrics.CfnAnomalyDetector.CsvFormatDescriptorProperty(
        charset="charset",
        contains_header=False,
        delimiter="delimiter",
        file_compression="fileCompression",
        header_list=["headerList"],
        quote_symbol="quoteSymbol"
    ),
    json_format_descriptor=lookoutmetrics.CfnAnomalyDetector.JsonFormatDescriptorProperty(
        charset="charset",
        file_compression="fileCompression"
    )
)
```

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.lookoutmetrics.*;

FileFormatDescriptorProperty fileFormatDescriptorProperty = FileFormatDescriptorProperty.builder()
        .csvFormatDescriptor(CsvFormatDescriptorProperty.builder()
                .charset("charset")
                .containsHeader(false)
                .delimiter("delimiter")
                .fileCompression("fileCompression")
                .headerList(List.of("headerList"))
                .quoteSymbol("quoteSymbol")
                .build())
        .jsonFormatDescriptor(JsonFormatDescriptorProperty.builder()
                .charset("charset")
                .fileCompression("fileCompression")
                .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.LookoutMetrics;

var fileFormatDescriptorProperty = new FileFormatDescriptorProperty {
    CsvFormatDescriptor = new CsvFormatDescriptorProperty {
        Charset = "charset",
        ContainsHeader = false,
        Delimiter = "delimiter",
        FileCompression = "fileCompression",
        HeaderList = new [] { "headerList" },
        QuoteSymbol = "quoteSymbol"
    },
    JsonFormatDescriptor = new JsonFormatDescriptorProperty {
        Charset = "charset",
        FileCompression = "fileCompression"
    }
};
```

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"

fileFormatDescriptorProperty := &FileFormatDescriptorProperty{
	CsvFormatDescriptor: &CsvFormatDescriptorProperty{
		Charset: jsii.String("charset"),
		ContainsHeader: jsii.Boolean(false),
		Delimiter: jsii.String("delimiter"),
		FileCompression: jsii.String("fileCompression"),
		HeaderList: []*string{
			jsii.String("headerList"),
		},
		QuoteSymbol: jsii.String("quoteSymbol"),
	},
	JsonFormatDescriptor: &JsonFormatDescriptorProperty{
		Charset: jsii.String("charset"),
		FileCompression: jsii.String("fileCompression"),
	},
}
```

## Properties

- `csvFormatDescriptor`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnomalyDetector.CsvFormatDescriptorProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lookoutmetrics.CfnAnomalyDetector.CsvFormatDescriptorProperty.html) — Contains information about how a source CSV data file should be analyzed.

- `jsonFormatDescriptor`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnomalyDetector.JsonFormatDescriptorProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lookoutmetrics.CfnAnomalyDetector.JsonFormatDescriptorProperty.html) — Contains information about how a source JSON data file should be analyzed.
