Skip to content
v2.277.0

DatasetFormatProperty Struct ​

The dataset format of the data to monitor.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const datasetFormatProperty: sagemaker.CfnModelExplainabilityJobDefinition.DatasetFormatProperty = {
  csv: {
    header: false,
  },
  json: {
    line: false,
  },
  parquet: false,
};
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_sagemaker as sagemaker

dataset_format_property = sagemaker.CfnModelExplainabilityJobDefinition.DatasetFormatProperty(
    csv=sagemaker.CfnModelExplainabilityJobDefinition.CsvProperty(
        header=False
    ),
    json=sagemaker.CfnModelExplainabilityJobDefinition.JsonProperty(
        line=False
    ),
    parquet=False
)
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.sagemaker.*;

DatasetFormatProperty datasetFormatProperty = DatasetFormatProperty.builder()
        .csv(CsvProperty.builder()
                .header(false)
                .build())
        .json(JsonProperty.builder()
                .line(false)
                .build())
        .parquet(false)
        .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.Sagemaker;

var datasetFormatProperty = new DatasetFormatProperty {
    Csv = new CsvProperty {
        Header = false
    },
    Json = new JsonProperty {
        Line = false
    },
    Parquet = false
};
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"

datasetFormatProperty := &DatasetFormatProperty{
	Csv: &CsvProperty{
		Header: jsii.Boolean(false),
	},
	Json: &JsonProperty{
		Line: jsii.Boolean(false),
	},
	Parquet: jsii.Boolean(false),
}

Properties ​

csvoptionalIResolvable | CfnModelExplainabilityJobDefinition.CsvPropertycsvoptionaltyping.Union[IResolvable, CsvProperty]csvoptionalIResolvableCsvoptionalIResolvableCsvoptionalinterface{} #
The CSV format.
jsonoptionalIResolvable | CfnModelExplainabilityJobDefinition.JsonPropertyjsonoptionaltyping.Union[IResolvable, JsonProperty]jsonoptionalIResolvableJsonoptionalIResolvableJsonoptionalinterface{} #
The Json format.
parquetoptionalboolean | IResolvableparquetoptionaltyping.Union[bool, IResolvable]parquetoptionalBooleanParquetoptionalboolParquetoptionalinterface{} #
A flag indicating if the dataset format is Parquet.