# DataStorageConfigProperty

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](https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-data-capture.html) .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `contentType`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInferenceExperiment.CaptureContentTypeHeaderProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnInferenceExperiment.CaptureContentTypeHeaderProperty.html) — Configuration specifying how to treat different headers.

  If no headers are specified SageMaker will by default base64 encode when capturing the data.

- `destination`: string (required) — The Amazon S3 bucket where the inference request and response data is stored.

- `kmsKey`: string — The AWS Key Management Service key that Amazon SageMaker uses to encrypt captured data at rest using Amazon S3 server-side encryption.
