Skip to content
v2.278.0

CaptureContentTypeHeaderProperty Struct ​

Specifies the JSON and CSV content types of the data that the endpoint captures.

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.CfnEndpointConfig.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.CfnEndpointConfig.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 #
A list of the CSV content types of the data that the endpoint captures.

For the endpoint to capture the data, you must also specify the content type when you invoke the endpoint.

jsonContentTypesoptionalstring[]json_content_typesoptionaltyping.List[str]jsonContentTypesoptionalList<String>JsonContentTypesoptionalstring[]JsonContentTypesoptional*[]*string #
A list of the JSON content types of the data that the endpoint captures.

For the endpoint to capture the data, you must also specify the content type when you invoke the endpoint.