FileFormatDescriptorProperty Struct
Contains information about a source file's formatting.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
}
};
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
csvFormatDescriptoroptionalIResolvable | CfnAnomalyDetector.csv_format_descriptoroptionaltyping.Union[IResolvable, CsvFormatDescriptorProperty]csvFormatDescriptoroptionalIResolvableCsvFormatDescriptoroptionalIResolvableCsvFormatDescriptoroptionalinterface{} #Contains information about how a source CSV data file should be analyzed.
jsonFormatDescriptoroptionalIResolvable | CfnAnomalyDetector.json_format_descriptoroptionaltyping.Union[IResolvable, JsonFormatDescriptorProperty]jsonFormatDescriptoroptionalIResolvableJsonFormatDescriptoroptionalIResolvableJsonFormatDescriptoroptionalinterface{} #Contains information about how a source JSON data file should be analyzed.