Skip to content
v2.278.0

DriftCheckBaselinesProperty Struct ​

Represents the drift check 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 driftCheckBaselinesProperty: sagemaker.CfnModelPackage.DriftCheckBaselinesProperty = {
  bias: {
    configFile: {
      s3Uri: 's3Uri',

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

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

      // the properties below are optional
      contentDigest: 'contentDigest',
    },
  },
  explainability: {
    configFile: {
      s3Uri: 's3Uri',

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

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

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

      // the properties below are optional
      contentDigest: 'contentDigest',
    },
  },
  modelQuality: {
    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_baselines_property = sagemaker.CfnModelPackage.DriftCheckBaselinesProperty(
    bias=sagemaker.CfnModelPackage.DriftCheckBiasProperty(
        config_file=sagemaker.CfnModelPackage.FileSourceProperty(
            s3_uri="s3Uri",

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

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

            # the properties below are optional
            content_digest="contentDigest"
        )
    ),
    explainability=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"
        )
    ),
    model_data_quality=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"
        )
    ),
    model_quality=sagemaker.CfnModelPackage.DriftCheckModelQualityProperty(
        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.*;

DriftCheckBaselinesProperty driftCheckBaselinesProperty = DriftCheckBaselinesProperty.builder()
        .bias(DriftCheckBiasProperty.builder()
                .configFile(FileSourceProperty.builder()
                        .s3Uri("s3Uri")

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

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

                        // the properties below are optional
                        .contentDigest("contentDigest")
                        .build())
                .build())
        .explainability(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())
        .modelDataQuality(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())
        .modelQuality(DriftCheckModelQualityProperty.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())
        .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 driftCheckBaselinesProperty = new DriftCheckBaselinesProperty {
    Bias = new DriftCheckBiasProperty {
        ConfigFile = new FileSourceProperty {
            S3Uri = "s3Uri",

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

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

            // the properties below are optional
            ContentDigest = "contentDigest"
        }
    },
    Explainability = 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"
        }
    },
    ModelDataQuality = 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"
        }
    },
    ModelQuality = new DriftCheckModelQualityProperty {
        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"

driftCheckBaselinesProperty := &DriftCheckBaselinesProperty{
	Bias: &DriftCheckBiasProperty{
		ConfigFile: &FileSourceProperty{
			S3Uri: jsii.String("s3Uri"),

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

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

			// the properties below are optional
			ContentDigest: jsii.String("contentDigest"),
		},
	},
	Explainability: &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"),
		},
	},
	ModelDataQuality: &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"),
		},
	},
	ModelQuality: &DriftCheckModelQualityProperty{
		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 ​

biasoptionalIResolvable | CfnModelPackage.DriftCheckBiasPropertybiasoptionaltyping.Union[IResolvable, DriftCheckBiasProperty]biasoptionalIResolvableBiasoptionalIResolvableBiasoptionalinterface{} #
Represents the drift check bias baselines that can be used when the model monitor is set using the model package.
explainabilityoptionalIResolvable | CfnModelPackage.DriftCheckExplainabilityPropertyexplainabilityoptionaltyping.Union[IResolvable, DriftCheckExplainabilityProperty]explainabilityoptionalIResolvableExplainabilityoptionalIResolvableExplainabilityoptionalinterface{} #
Represents the drift check explainability baselines that can be used when the model monitor is set using the model package.
modelDataQualityoptionalIResolvable | CfnModelPackage.DriftCheckModelDataQualityPropertymodel_data_qualityoptionaltyping.Union[IResolvable, DriftCheckModelDataQualityProperty]modelDataQualityoptionalIResolvableModelDataQualityoptionalIResolvableModelDataQualityoptionalinterface{} #
Represents the drift check model data quality baselines that can be used when the model monitor is set using the model package.
modelQualityoptionalIResolvable | CfnModelPackage.DriftCheckModelQualityPropertymodel_qualityoptionaltyping.Union[IResolvable, DriftCheckModelQualityProperty]modelQualityoptionalIResolvableModelQualityoptionalIResolvableModelQualityoptionalinterface{} #
Represents the drift check model quality baselines that can be used when the model monitor is set using the model package.