# DriftCheckExplainabilityProperty

Represents the drift check explainability baselines that can be used when the model monitor is set using the model package.

- 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 driftCheckExplainabilityProperty: sagemaker.CfnModelPackage.DriftCheckExplainabilityProperty = {
  configFile: {
    s3Uri: 's3Uri',

    // the properties below are optional
    contentDigest: 'contentDigest',
    contentType: 'contentType',
  },
  constraints: {
    contentType: 'contentType',
    s3Uri: 's3Uri',

    // the properties below are optional
    contentDigest: 'contentDigest',
  },
};
```

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

drift_check_explainability_property = sagemaker.CfnModelPackage.DriftCheckExplainabilityProperty(
    config_file=sagemaker.CfnModelPackage.FileSourceProperty(
        s3_uri="s3Uri",

        # the properties below are optional
        content_digest="contentDigest",
        content_type="contentType"
    ),
    constraints=sagemaker.CfnModelPackage.MetricsSourceProperty(
        content_type="contentType",
        s3_uri="s3Uri",

        # the properties below are optional
        content_digest="contentDigest"
    )
)
```

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.*;

DriftCheckExplainabilityProperty driftCheckExplainabilityProperty = DriftCheckExplainabilityProperty.builder()
        .configFile(FileSourceProperty.builder()
                .s3Uri("s3Uri")

                // the properties below are optional
                .contentDigest("contentDigest")
                .contentType("contentType")
                .build())
        .constraints(MetricsSourceProperty.builder()
                .contentType("contentType")
                .s3Uri("s3Uri")

                // the properties below are optional
                .contentDigest("contentDigest")
                .build())
        .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 driftCheckExplainabilityProperty = new DriftCheckExplainabilityProperty {
    ConfigFile = new FileSourceProperty {
        S3Uri = "s3Uri",

        // the properties below are optional
        ContentDigest = "contentDigest",
        ContentType = "contentType"
    },
    Constraints = new MetricsSourceProperty {
        ContentType = "contentType",
        S3Uri = "s3Uri",

        // the properties below are optional
        ContentDigest = "contentDigest"
    }
};
```

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"

driftCheckExplainabilityProperty := &DriftCheckExplainabilityProperty{
	ConfigFile: &FileSourceProperty{
		S3Uri: jsii.String("s3Uri"),

		// the properties below are optional
		ContentDigest: jsii.String("contentDigest"),
		ContentType: jsii.String("contentType"),
	},
	Constraints: &MetricsSourceProperty{
		ContentType: jsii.String("contentType"),
		S3Uri: jsii.String("s3Uri"),

		// the properties below are optional
		ContentDigest: jsii.String("contentDigest"),
	},
}
```

## Properties

- `configFile`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnModelPackage.FileSourceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnModelPackage.FileSourceProperty.html) — The explainability config file for the model.

- `constraints`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnModelPackage.MetricsSourceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnModelPackage.MetricsSourceProperty.html) — The drift check explainability constraints.
