DataStorageConfigProperty Struct
The Amazon S3 location and configuration for storing inference request and response data.
This is an optional parameter that you can use for data capture. For more information, see Capture 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 dataStorageConfigProperty: sagemaker.CfnInferenceExperiment.DataStorageConfigProperty = {
destination: 'destination',
// the properties below are optional
contentType: {
csvContentTypes: ['csvContentTypes'],
jsonContentTypes: ['jsonContentTypes'],
},
kmsKey: 'kmsKey',
};
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
data_storage_config_property = sagemaker.CfnInferenceExperiment.DataStorageConfigProperty(
destination="destination",
# the properties below are optional
content_type=sagemaker.CfnInferenceExperiment.CaptureContentTypeHeaderProperty(
csv_content_types=["csvContentTypes"],
json_content_types=["jsonContentTypes"]
),
kms_key="kmsKey"
)
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.*;
DataStorageConfigProperty dataStorageConfigProperty = DataStorageConfigProperty.builder()
.destination("destination")
// the properties below are optional
.contentType(CaptureContentTypeHeaderProperty.builder()
.csvContentTypes(List.of("csvContentTypes"))
.jsonContentTypes(List.of("jsonContentTypes"))
.build())
.kmsKey("kmsKey")
.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 dataStorageConfigProperty = new DataStorageConfigProperty {
Destination = "destination",
// the properties below are optional
ContentType = new CaptureContentTypeHeaderProperty {
CsvContentTypes = new [] { "csvContentTypes" },
JsonContentTypes = new [] { "jsonContentTypes" }
},
KmsKey = "kmsKey"
};
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"
dataStorageConfigProperty := &DataStorageConfigProperty{
Destination: jsii.String("destination"),
// the properties below are optional
ContentType: &CaptureContentTypeHeaderProperty{
CsvContentTypes: []*string{
jsii.String("csvContentTypes"),
},
JsonContentTypes: []*string{
jsii.String("jsonContentTypes"),
},
},
KmsKey: jsii.String("kmsKey"),
}
Properties
contentTypeoptionalIResolvable | CfnInferenceExperiment.content_typeoptionaltyping.Union[IResolvable, CaptureContentTypeHeaderProperty]contentTypeoptionalIResolvableContentTypeoptionalIResolvableContentTypeoptionalinterface{} #Configuration specifying how to treat different headers.
If no headers are specified SageMaker will by default base64 encode when capturing the data.
The Amazon S3 bucket where the inference request and response data is stored.
kmsKeyoptionalstringkms_keyoptionalstrkmsKeyoptionalStringKmsKeyoptionalstringKmsKeyoptional*string #The AWS Key Management Service key that Amazon SageMaker uses to encrypt captured data at rest using Amazon S3 server-side encryption.