CaptureContentTypeHeaderProperty Struct
Configuration specifying how to treat different headers.
If no headers are specified Amazon SageMaker AI will by default base64 encode when capturing the data.
| 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_sagemaker as sagemaker } from 'aws-cdk-lib';
const captureContentTypeHeaderProperty: sagemaker.CfnInferenceExperiment.CaptureContentTypeHeaderProperty = {
csvContentTypes: ['csvContentTypes'],
jsonContentTypes: ['jsonContentTypes'],
};
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
capture_content_type_header_property = sagemaker.CfnInferenceExperiment.CaptureContentTypeHeaderProperty(
csv_content_types=["csvContentTypes"],
json_content_types=["jsonContentTypes"]
)
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.*;
CaptureContentTypeHeaderProperty captureContentTypeHeaderProperty = CaptureContentTypeHeaderProperty.builder()
.csvContentTypes(List.of("csvContentTypes"))
.jsonContentTypes(List.of("jsonContentTypes"))
.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 captureContentTypeHeaderProperty = new CaptureContentTypeHeaderProperty {
CsvContentTypes = new [] { "csvContentTypes" },
JsonContentTypes = new [] { "jsonContentTypes" }
};
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"
captureContentTypeHeaderProperty := &CaptureContentTypeHeaderProperty{
CsvContentTypes: []*string{
jsii.String("csvContentTypes"),
},
JsonContentTypes: []*string{
jsii.String("jsonContentTypes"),
},
}
Properties
csvContentTypesoptionalstring[]csv_content_typesoptionaltyping.List[str]csvContentTypesoptionalList<String>CsvContentTypesoptionalstring[]CsvContentTypesoptional*[]*string #The list of all content type headers that Amazon SageMaker AI will treat as CSV and capture accordingly.
jsonContentTypesoptionalstring[]json_content_typesoptionaltyping.List[str]jsonContentTypesoptionalList<String>JsonContentTypesoptionalstring[]JsonContentTypesoptional*[]*string #The list of all content type headers that SageMaker AI will treat as JSON and capture accordingly.