Skip to content
v2.278.0

DriftCheckModelDataQualityProperty Struct ​

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

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 driftCheckModelDataQualityProperty: sagemaker.CfnModelPackage.DriftCheckModelDataQualityProperty = {
  constraints: {
    contentType: 'contentType',
    s3Uri: 's3Uri',

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

    // the properties below are optional
    contentDigest: 'contentDigest',
  },
};
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_model_data_quality_property = sagemaker.CfnModelPackage.DriftCheckModelDataQualityProperty(
    constraints=sagemaker.CfnModelPackage.MetricsSourceProperty(
        content_type="contentType",
        s3_uri="s3Uri",

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

        # the properties below are optional
        content_digest="contentDigest"
    )
)
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.*;

DriftCheckModelDataQualityProperty driftCheckModelDataQualityProperty = DriftCheckModelDataQualityProperty.builder()
        .constraints(MetricsSourceProperty.builder()
                .contentType("contentType")
                .s3Uri("s3Uri")

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

                // the properties below are optional
                .contentDigest("contentDigest")
                .build())
        .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 driftCheckModelDataQualityProperty = new DriftCheckModelDataQualityProperty {
    Constraints = new MetricsSourceProperty {
        ContentType = "contentType",
        S3Uri = "s3Uri",

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

        // the properties below are optional
        ContentDigest = "contentDigest"
    }
};
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"

driftCheckModelDataQualityProperty := &DriftCheckModelDataQualityProperty{
	Constraints: &MetricsSourceProperty{
		ContentType: jsii.String("contentType"),
		S3Uri: jsii.String("s3Uri"),

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

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

Properties ​

constraintsoptionalIResolvable | CfnModelPackage.MetricsSourcePropertyconstraintsoptionaltyping.Union[IResolvable, MetricsSourceProperty]constraintsoptionalIResolvableConstraintsoptionalIResolvableConstraintsoptionalinterface{} #
The drift check model data quality constraints.
statisticsoptionalIResolvable | CfnModelPackage.MetricsSourcePropertystatisticsoptionaltyping.Union[IResolvable, MetricsSourceProperty]statisticsoptionalIResolvableStatisticsoptionalIResolvableStatisticsoptionalinterface{} #
The drift check model data quality statistics.