Skip to content
v2.277.0

CfnModelPackageProps Struct ​

Properties for defining a CfnModelPackage.

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';

declare const modelInput: any;
const cfnModelPackageProps: sagemaker.CfnModelPackageProps = {
  additionalInferenceSpecifications: [{
    containers: [{
      image: 'image',

      // the properties below are optional
      containerHostname: 'containerHostname',
      environment: {
        environmentKey: 'environment',
      },
      framework: 'framework',
      frameworkVersion: 'frameworkVersion',
      imageDigest: 'imageDigest',
      modelDataSource: {
        s3DataSource: {
          compressionType: 'compressionType',
          s3DataType: 's3DataType',
          s3Uri: 's3Uri',

          // the properties below are optional
          modelAccessConfig: {
            acceptEula: false,
          },
        },
      },
      modelDataUrl: 'modelDataUrl',
      modelInput: modelInput,
      nearestModelName: 'nearestModelName',
    }],
    name: 'name',

    // the properties below are optional
    description: 'description',
    supportedContentTypes: ['supportedContentTypes'],
    supportedRealtimeInferenceInstanceTypes: ['supportedRealtimeInferenceInstanceTypes'],
    supportedResponseMimeTypes: ['supportedResponseMimeTypes'],
    supportedTransformInstanceTypes: ['supportedTransformInstanceTypes'],
  }],
  additionalInferenceSpecificationsToAdd: [{
    containers: [{
      image: 'image',

      // the properties below are optional
      containerHostname: 'containerHostname',
      environment: {
        environmentKey: 'environment',
      },
      framework: 'framework',
      frameworkVersion: 'frameworkVersion',
      imageDigest: 'imageDigest',
      modelDataSource: {
        s3DataSource: {
          compressionType: 'compressionType',
          s3DataType: 's3DataType',
          s3Uri: 's3Uri',

          // the properties below are optional
          modelAccessConfig: {
            acceptEula: false,
          },
        },
      },
      modelDataUrl: 'modelDataUrl',
      modelInput: modelInput,
      nearestModelName: 'nearestModelName',
    }],
    name: 'name',

    // the properties below are optional
    description: 'description',
    supportedContentTypes: ['supportedContentTypes'],
    supportedRealtimeInferenceInstanceTypes: ['supportedRealtimeInferenceInstanceTypes'],
    supportedResponseMimeTypes: ['supportedResponseMimeTypes'],
    supportedTransformInstanceTypes: ['supportedTransformInstanceTypes'],
  }],
  approvalDescription: 'approvalDescription',
  certifyForMarketplace: false,
  clientToken: 'clientToken',
  customerMetadataProperties: {
    customerMetadataPropertiesKey: 'customerMetadataProperties',
  },
  domain: 'domain',
  driftCheckBaselines: {
    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',
      },
    },
  },
  inferenceSpecification: {
    containers: [{
      image: 'image',

      // the properties below are optional
      containerHostname: 'containerHostname',
      environment: {
        environmentKey: 'environment',
      },
      framework: 'framework',
      frameworkVersion: 'frameworkVersion',
      imageDigest: 'imageDigest',
      modelDataSource: {
        s3DataSource: {
          compressionType: 'compressionType',
          s3DataType: 's3DataType',
          s3Uri: 's3Uri',

          // the properties below are optional
          modelAccessConfig: {
            acceptEula: false,
          },
        },
      },
      modelDataUrl: 'modelDataUrl',
      modelInput: modelInput,
      nearestModelName: 'nearestModelName',
    }],
    supportedContentTypes: ['supportedContentTypes'],
    supportedResponseMimeTypes: ['supportedResponseMimeTypes'],

    // the properties below are optional
    supportedRealtimeInferenceInstanceTypes: ['supportedRealtimeInferenceInstanceTypes'],
    supportedTransformInstanceTypes: ['supportedTransformInstanceTypes'],
  },
  lastModifiedTime: 'lastModifiedTime',
  metadataProperties: {
    commitId: 'commitId',
    generatedBy: 'generatedBy',
    projectId: 'projectId',
    repository: 'repository',
  },
  modelApprovalStatus: 'modelApprovalStatus',
  modelCard: {
    modelCardContent: 'modelCardContent',
    modelCardStatus: 'modelCardStatus',
  },
  modelMetrics: {
    bias: {
      postTrainingReport: {
        contentType: 'contentType',
        s3Uri: 's3Uri',

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

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

        // the properties below are optional
        contentDigest: 'contentDigest',
      },
    },
    explainability: {
      report: {
        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',
      },
    },
  },
  modelPackageDescription: 'modelPackageDescription',
  modelPackageGroupName: 'modelPackageGroupName',
  modelPackageName: 'modelPackageName',
  modelPackageStatusDetails: {
    validationStatuses: [{
      name: 'name',
      status: 'status',

      // the properties below are optional
      failureReason: 'failureReason',
    }],
  },
  modelPackageVersion: 123,
  samplePayloadUrl: 'samplePayloadUrl',
  securityConfig: {
    kmsKeyId: 'kmsKeyId',
  },
  skipModelValidation: 'skipModelValidation',
  sourceAlgorithmSpecification: {
    sourceAlgorithms: [{
      algorithmName: 'algorithmName',

      // the properties below are optional
      modelDataUrl: 'modelDataUrl',
    }],
  },
  sourceUri: 'sourceUri',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  task: 'task',
  validationSpecification: {
    validationProfiles: [{
      profileName: 'profileName',
      transformJobDefinition: {
        transformInput: {
          dataSource: {
            s3DataSource: {
              s3DataType: 's3DataType',
              s3Uri: 's3Uri',
            },
          },

          // the properties below are optional
          compressionType: 'compressionType',
          contentType: 'contentType',
          splitType: 'splitType',
        },
        transformOutput: {
          s3OutputPath: 's3OutputPath',

          // the properties below are optional
          accept: 'accept',
          assembleWith: 'assembleWith',
          kmsKeyId: 'kmsKeyId',
        },
        transformResources: {
          instanceCount: 123,
          instanceType: 'instanceType',

          // the properties below are optional
          volumeKmsKeyId: 'volumeKmsKeyId',
        },

        // the properties below are optional
        batchStrategy: 'batchStrategy',
        environment: {
          environmentKey: 'environment',
        },
        maxConcurrentTransforms: 123,
        maxPayloadInMb: 123,
      },
    }],
    validationRole: 'validationRole',
  },
};
python
from aws_cdk import CfnTag
# 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

# model_input: Any

cfn_model_package_props = sagemaker.CfnModelPackageProps(
    additional_inference_specifications=[sagemaker.CfnModelPackage.AdditionalInferenceSpecificationDefinitionProperty(
        containers=[sagemaker.CfnModelPackage.ModelPackageContainerDefinitionProperty(
            image="image",

            # the properties below are optional
            container_hostname="containerHostname",
            environment={
                "environment_key": "environment"
            },
            framework="framework",
            framework_version="frameworkVersion",
            image_digest="imageDigest",
            model_data_source=sagemaker.CfnModelPackage.ModelDataSourceProperty(
                s3_data_source=sagemaker.CfnModelPackage.S3ModelDataSourceProperty(
                    compression_type="compressionType",
                    s3_data_type="s3DataType",
                    s3_uri="s3Uri",

                    # the properties below are optional
                    model_access_config=sagemaker.CfnModelPackage.ModelAccessConfigProperty(
                        accept_eula=False
                    )
                )
            ),
            model_data_url="modelDataUrl",
            model_input=model_input,
            nearest_model_name="nearestModelName"
        )],
        name="name",

        # the properties below are optional
        description="description",
        supported_content_types=["supportedContentTypes"],
        supported_realtime_inference_instance_types=["supportedRealtimeInferenceInstanceTypes"],
        supported_response_mime_types=["supportedResponseMimeTypes"],
        supported_transform_instance_types=["supportedTransformInstanceTypes"]
    )],
    additional_inference_specifications_to_add=[sagemaker.CfnModelPackage.AdditionalInferenceSpecificationDefinitionProperty(
        containers=[sagemaker.CfnModelPackage.ModelPackageContainerDefinitionProperty(
            image="image",

            # the properties below are optional
            container_hostname="containerHostname",
            environment={
                "environment_key": "environment"
            },
            framework="framework",
            framework_version="frameworkVersion",
            image_digest="imageDigest",
            model_data_source=sagemaker.CfnModelPackage.ModelDataSourceProperty(
                s3_data_source=sagemaker.CfnModelPackage.S3ModelDataSourceProperty(
                    compression_type="compressionType",
                    s3_data_type="s3DataType",
                    s3_uri="s3Uri",

                    # the properties below are optional
                    model_access_config=sagemaker.CfnModelPackage.ModelAccessConfigProperty(
                        accept_eula=False
                    )
                )
            ),
            model_data_url="modelDataUrl",
            model_input=model_input,
            nearest_model_name="nearestModelName"
        )],
        name="name",

        # the properties below are optional
        description="description",
        supported_content_types=["supportedContentTypes"],
        supported_realtime_inference_instance_types=["supportedRealtimeInferenceInstanceTypes"],
        supported_response_mime_types=["supportedResponseMimeTypes"],
        supported_transform_instance_types=["supportedTransformInstanceTypes"]
    )],
    approval_description="approvalDescription",
    certify_for_marketplace=False,
    client_token="clientToken",
    customer_metadata_properties={
        "customer_metadata_properties_key": "customerMetadataProperties"
    },
    domain="domain",
    drift_check_baselines=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"
            )
        )
    ),
    inference_specification=sagemaker.CfnModelPackage.InferenceSpecificationProperty(
        containers=[sagemaker.CfnModelPackage.ModelPackageContainerDefinitionProperty(
            image="image",

            # the properties below are optional
            container_hostname="containerHostname",
            environment={
                "environment_key": "environment"
            },
            framework="framework",
            framework_version="frameworkVersion",
            image_digest="imageDigest",
            model_data_source=sagemaker.CfnModelPackage.ModelDataSourceProperty(
                s3_data_source=sagemaker.CfnModelPackage.S3ModelDataSourceProperty(
                    compression_type="compressionType",
                    s3_data_type="s3DataType",
                    s3_uri="s3Uri",

                    # the properties below are optional
                    model_access_config=sagemaker.CfnModelPackage.ModelAccessConfigProperty(
                        accept_eula=False
                    )
                )
            ),
            model_data_url="modelDataUrl",
            model_input=model_input,
            nearest_model_name="nearestModelName"
        )],
        supported_content_types=["supportedContentTypes"],
        supported_response_mime_types=["supportedResponseMimeTypes"],

        # the properties below are optional
        supported_realtime_inference_instance_types=["supportedRealtimeInferenceInstanceTypes"],
        supported_transform_instance_types=["supportedTransformInstanceTypes"]
    ),
    last_modified_time="lastModifiedTime",
    metadata_properties=sagemaker.CfnModelPackage.MetadataPropertiesProperty(
        commit_id="commitId",
        generated_by="generatedBy",
        project_id="projectId",
        repository="repository"
    ),
    model_approval_status="modelApprovalStatus",
    model_card=sagemaker.CfnModelPackage.ModelCardProperty(
        model_card_content="modelCardContent",
        model_card_status="modelCardStatus"
    ),
    model_metrics=sagemaker.CfnModelPackage.ModelMetricsProperty(
        bias=sagemaker.CfnModelPackage.BiasProperty(
            post_training_report=sagemaker.CfnModelPackage.MetricsSourceProperty(
                content_type="contentType",
                s3_uri="s3Uri",

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

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

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

                # the properties below are optional
                content_digest="contentDigest"
            )
        ),
        model_data_quality=sagemaker.CfnModelPackage.ModelDataQualityProperty(
            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.ModelQualityProperty(
            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_package_description="modelPackageDescription",
    model_package_group_name="modelPackageGroupName",
    model_package_name="modelPackageName",
    model_package_status_details=sagemaker.CfnModelPackage.ModelPackageStatusDetailsProperty(
        validation_statuses=[sagemaker.CfnModelPackage.ModelPackageStatusItemProperty(
            name="name",
            status="status",

            # the properties below are optional
            failure_reason="failureReason"
        )]
    ),
    model_package_version=123,
    sample_payload_url="samplePayloadUrl",
    security_config=sagemaker.CfnModelPackage.SecurityConfigProperty(
        kms_key_id="kmsKeyId"
    ),
    skip_model_validation="skipModelValidation",
    source_algorithm_specification=sagemaker.CfnModelPackage.SourceAlgorithmSpecificationProperty(
        source_algorithms=[sagemaker.CfnModelPackage.SourceAlgorithmProperty(
            algorithm_name="algorithmName",

            # the properties below are optional
            model_data_url="modelDataUrl"
        )]
    ),
    source_uri="sourceUri",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    task="task",
    validation_specification=sagemaker.CfnModelPackage.ValidationSpecificationProperty(
        validation_profiles=[sagemaker.CfnModelPackage.ValidationProfileProperty(
            profile_name="profileName",
            transform_job_definition=sagemaker.CfnModelPackage.TransformJobDefinitionProperty(
                transform_input=sagemaker.CfnModelPackage.TransformInputProperty(
                    data_source=sagemaker.CfnModelPackage.DataSourceProperty(
                        s3_data_source=sagemaker.CfnModelPackage.S3DataSourceProperty(
                            s3_data_type="s3DataType",
                            s3_uri="s3Uri"
                        )
                    ),

                    # the properties below are optional
                    compression_type="compressionType",
                    content_type="contentType",
                    split_type="splitType"
                ),
                transform_output=sagemaker.CfnModelPackage.TransformOutputProperty(
                    s3_output_path="s3OutputPath",

                    # the properties below are optional
                    accept="accept",
                    assemble_with="assembleWith",
                    kms_key_id="kmsKeyId"
                ),
                transform_resources=sagemaker.CfnModelPackage.TransformResourcesProperty(
                    instance_count=123,
                    instance_type="instanceType",

                    # the properties below are optional
                    volume_kms_key_id="volumeKmsKeyId"
                ),

                # the properties below are optional
                batch_strategy="batchStrategy",
                environment={
                    "environment_key": "environment"
                },
                max_concurrent_transforms=123,
                max_payload_in_mb=123
            )
        )],
        validation_role="validationRole"
    )
)
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.*;

Object modelInput;

CfnModelPackageProps cfnModelPackageProps = CfnModelPackageProps.builder()
        .additionalInferenceSpecifications(List.of(AdditionalInferenceSpecificationDefinitionProperty.builder()
                .containers(List.of(ModelPackageContainerDefinitionProperty.builder()
                        .image("image")

                        // the properties below are optional
                        .containerHostname("containerHostname")
                        .environment(Map.of(
                                "environmentKey", "environment"))
                        .framework("framework")
                        .frameworkVersion("frameworkVersion")
                        .imageDigest("imageDigest")
                        .modelDataSource(ModelDataSourceProperty.builder()
                                .s3DataSource(S3ModelDataSourceProperty.builder()
                                        .compressionType("compressionType")
                                        .s3DataType("s3DataType")
                                        .s3Uri("s3Uri")

                                        // the properties below are optional
                                        .modelAccessConfig(ModelAccessConfigProperty.builder()
                                                .acceptEula(false)
                                                .build())
                                        .build())
                                .build())
                        .modelDataUrl("modelDataUrl")
                        .modelInput(modelInput)
                        .nearestModelName("nearestModelName")
                        .build()))
                .name("name")

                // the properties below are optional
                .description("description")
                .supportedContentTypes(List.of("supportedContentTypes"))
                .supportedRealtimeInferenceInstanceTypes(List.of("supportedRealtimeInferenceInstanceTypes"))
                .supportedResponseMimeTypes(List.of("supportedResponseMimeTypes"))
                .supportedTransformInstanceTypes(List.of("supportedTransformInstanceTypes"))
                .build()))
        .additionalInferenceSpecificationsToAdd(List.of(AdditionalInferenceSpecificationDefinitionProperty.builder()
                .containers(List.of(ModelPackageContainerDefinitionProperty.builder()
                        .image("image")

                        // the properties below are optional
                        .containerHostname("containerHostname")
                        .environment(Map.of(
                                "environmentKey", "environment"))
                        .framework("framework")
                        .frameworkVersion("frameworkVersion")
                        .imageDigest("imageDigest")
                        .modelDataSource(ModelDataSourceProperty.builder()
                                .s3DataSource(S3ModelDataSourceProperty.builder()
                                        .compressionType("compressionType")
                                        .s3DataType("s3DataType")
                                        .s3Uri("s3Uri")

                                        // the properties below are optional
                                        .modelAccessConfig(ModelAccessConfigProperty.builder()
                                                .acceptEula(false)
                                                .build())
                                        .build())
                                .build())
                        .modelDataUrl("modelDataUrl")
                        .modelInput(modelInput)
                        .nearestModelName("nearestModelName")
                        .build()))
                .name("name")

                // the properties below are optional
                .description("description")
                .supportedContentTypes(List.of("supportedContentTypes"))
                .supportedRealtimeInferenceInstanceTypes(List.of("supportedRealtimeInferenceInstanceTypes"))
                .supportedResponseMimeTypes(List.of("supportedResponseMimeTypes"))
                .supportedTransformInstanceTypes(List.of("supportedTransformInstanceTypes"))
                .build()))
        .approvalDescription("approvalDescription")
        .certifyForMarketplace(false)
        .clientToken("clientToken")
        .customerMetadataProperties(Map.of(
                "customerMetadataPropertiesKey", "customerMetadataProperties"))
        .domain("domain")
        .driftCheckBaselines(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())
        .inferenceSpecification(InferenceSpecificationProperty.builder()
                .containers(List.of(ModelPackageContainerDefinitionProperty.builder()
                        .image("image")

                        // the properties below are optional
                        .containerHostname("containerHostname")
                        .environment(Map.of(
                                "environmentKey", "environment"))
                        .framework("framework")
                        .frameworkVersion("frameworkVersion")
                        .imageDigest("imageDigest")
                        .modelDataSource(ModelDataSourceProperty.builder()
                                .s3DataSource(S3ModelDataSourceProperty.builder()
                                        .compressionType("compressionType")
                                        .s3DataType("s3DataType")
                                        .s3Uri("s3Uri")

                                        // the properties below are optional
                                        .modelAccessConfig(ModelAccessConfigProperty.builder()
                                                .acceptEula(false)
                                                .build())
                                        .build())
                                .build())
                        .modelDataUrl("modelDataUrl")
                        .modelInput(modelInput)
                        .nearestModelName("nearestModelName")
                        .build()))
                .supportedContentTypes(List.of("supportedContentTypes"))
                .supportedResponseMimeTypes(List.of("supportedResponseMimeTypes"))

                // the properties below are optional
                .supportedRealtimeInferenceInstanceTypes(List.of("supportedRealtimeInferenceInstanceTypes"))
                .supportedTransformInstanceTypes(List.of("supportedTransformInstanceTypes"))
                .build())
        .lastModifiedTime("lastModifiedTime")
        .metadataProperties(MetadataPropertiesProperty.builder()
                .commitId("commitId")
                .generatedBy("generatedBy")
                .projectId("projectId")
                .repository("repository")
                .build())
        .modelApprovalStatus("modelApprovalStatus")
        .modelCard(ModelCardProperty.builder()
                .modelCardContent("modelCardContent")
                .modelCardStatus("modelCardStatus")
                .build())
        .modelMetrics(ModelMetricsProperty.builder()
                .bias(BiasProperty.builder()
                        .postTrainingReport(MetricsSourceProperty.builder()
                                .contentType("contentType")
                                .s3Uri("s3Uri")

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

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

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

                                // the properties below are optional
                                .contentDigest("contentDigest")
                                .build())
                        .build())
                .modelDataQuality(ModelDataQualityProperty.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(ModelQualityProperty.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())
        .modelPackageDescription("modelPackageDescription")
        .modelPackageGroupName("modelPackageGroupName")
        .modelPackageName("modelPackageName")
        .modelPackageStatusDetails(ModelPackageStatusDetailsProperty.builder()
                .validationStatuses(List.of(ModelPackageStatusItemProperty.builder()
                        .name("name")
                        .status("status")

                        // the properties below are optional
                        .failureReason("failureReason")
                        .build()))
                .build())
        .modelPackageVersion(123)
        .samplePayloadUrl("samplePayloadUrl")
        .securityConfig(SecurityConfigProperty.builder()
                .kmsKeyId("kmsKeyId")
                .build())
        .skipModelValidation("skipModelValidation")
        .sourceAlgorithmSpecification(SourceAlgorithmSpecificationProperty.builder()
                .sourceAlgorithms(List.of(SourceAlgorithmProperty.builder()
                        .algorithmName("algorithmName")

                        // the properties below are optional
                        .modelDataUrl("modelDataUrl")
                        .build()))
                .build())
        .sourceUri("sourceUri")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .task("task")
        .validationSpecification(ValidationSpecificationProperty.builder()
                .validationProfiles(List.of(ValidationProfileProperty.builder()
                        .profileName("profileName")
                        .transformJobDefinition(TransformJobDefinitionProperty.builder()
                                .transformInput(TransformInputProperty.builder()
                                        .dataSource(DataSourceProperty.builder()
                                                .s3DataSource(S3DataSourceProperty.builder()
                                                        .s3DataType("s3DataType")
                                                        .s3Uri("s3Uri")
                                                        .build())
                                                .build())

                                        // the properties below are optional
                                        .compressionType("compressionType")
                                        .contentType("contentType")
                                        .splitType("splitType")
                                        .build())
                                .transformOutput(TransformOutputProperty.builder()
                                        .s3OutputPath("s3OutputPath")

                                        // the properties below are optional
                                        .accept("accept")
                                        .assembleWith("assembleWith")
                                        .kmsKeyId("kmsKeyId")
                                        .build())
                                .transformResources(TransformResourcesProperty.builder()
                                        .instanceCount(123)
                                        .instanceType("instanceType")

                                        // the properties below are optional
                                        .volumeKmsKeyId("volumeKmsKeyId")
                                        .build())

                                // the properties below are optional
                                .batchStrategy("batchStrategy")
                                .environment(Map.of(
                                        "environmentKey", "environment"))
                                .maxConcurrentTransforms(123)
                                .maxPayloadInMb(123)
                                .build())
                        .build()))
                .validationRole("validationRole")
                .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 modelInput;

var cfnModelPackageProps = new CfnModelPackageProps {
    AdditionalInferenceSpecifications = new [] { new AdditionalInferenceSpecificationDefinitionProperty {
        Containers = new [] { new ModelPackageContainerDefinitionProperty {
            Image = "image",

            // the properties below are optional
            ContainerHostname = "containerHostname",
            Environment = new Dictionary<string, string> {
                { "environmentKey", "environment" }
            },
            Framework = "framework",
            FrameworkVersion = "frameworkVersion",
            ImageDigest = "imageDigest",
            ModelDataSource = new ModelDataSourceProperty {
                S3DataSource = new S3ModelDataSourceProperty {
                    CompressionType = "compressionType",
                    S3DataType = "s3DataType",
                    S3Uri = "s3Uri",

                    // the properties below are optional
                    ModelAccessConfig = new ModelAccessConfigProperty {
                        AcceptEula = false
                    }
                }
            },
            ModelDataUrl = "modelDataUrl",
            ModelInput = modelInput,
            NearestModelName = "nearestModelName"
        } },
        Name = "name",

        // the properties below are optional
        Description = "description",
        SupportedContentTypes = new [] { "supportedContentTypes" },
        SupportedRealtimeInferenceInstanceTypes = new [] { "supportedRealtimeInferenceInstanceTypes" },
        SupportedResponseMimeTypes = new [] { "supportedResponseMimeTypes" },
        SupportedTransformInstanceTypes = new [] { "supportedTransformInstanceTypes" }
    } },
    AdditionalInferenceSpecificationsToAdd = new [] { new AdditionalInferenceSpecificationDefinitionProperty {
        Containers = new [] { new ModelPackageContainerDefinitionProperty {
            Image = "image",

            // the properties below are optional
            ContainerHostname = "containerHostname",
            Environment = new Dictionary<string, string> {
                { "environmentKey", "environment" }
            },
            Framework = "framework",
            FrameworkVersion = "frameworkVersion",
            ImageDigest = "imageDigest",
            ModelDataSource = new ModelDataSourceProperty {
                S3DataSource = new S3ModelDataSourceProperty {
                    CompressionType = "compressionType",
                    S3DataType = "s3DataType",
                    S3Uri = "s3Uri",

                    // the properties below are optional
                    ModelAccessConfig = new ModelAccessConfigProperty {
                        AcceptEula = false
                    }
                }
            },
            ModelDataUrl = "modelDataUrl",
            ModelInput = modelInput,
            NearestModelName = "nearestModelName"
        } },
        Name = "name",

        // the properties below are optional
        Description = "description",
        SupportedContentTypes = new [] { "supportedContentTypes" },
        SupportedRealtimeInferenceInstanceTypes = new [] { "supportedRealtimeInferenceInstanceTypes" },
        SupportedResponseMimeTypes = new [] { "supportedResponseMimeTypes" },
        SupportedTransformInstanceTypes = new [] { "supportedTransformInstanceTypes" }
    } },
    ApprovalDescription = "approvalDescription",
    CertifyForMarketplace = false,
    ClientToken = "clientToken",
    CustomerMetadataProperties = new Dictionary<string, string> {
        { "customerMetadataPropertiesKey", "customerMetadataProperties" }
    },
    Domain = "domain",
    DriftCheckBaselines = 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"
            }
        }
    },
    InferenceSpecification = new InferenceSpecificationProperty {
        Containers = new [] { new ModelPackageContainerDefinitionProperty {
            Image = "image",

            // the properties below are optional
            ContainerHostname = "containerHostname",
            Environment = new Dictionary<string, string> {
                { "environmentKey", "environment" }
            },
            Framework = "framework",
            FrameworkVersion = "frameworkVersion",
            ImageDigest = "imageDigest",
            ModelDataSource = new ModelDataSourceProperty {
                S3DataSource = new S3ModelDataSourceProperty {
                    CompressionType = "compressionType",
                    S3DataType = "s3DataType",
                    S3Uri = "s3Uri",

                    // the properties below are optional
                    ModelAccessConfig = new ModelAccessConfigProperty {
                        AcceptEula = false
                    }
                }
            },
            ModelDataUrl = "modelDataUrl",
            ModelInput = modelInput,
            NearestModelName = "nearestModelName"
        } },
        SupportedContentTypes = new [] { "supportedContentTypes" },
        SupportedResponseMimeTypes = new [] { "supportedResponseMimeTypes" },

        // the properties below are optional
        SupportedRealtimeInferenceInstanceTypes = new [] { "supportedRealtimeInferenceInstanceTypes" },
        SupportedTransformInstanceTypes = new [] { "supportedTransformInstanceTypes" }
    },
    LastModifiedTime = "lastModifiedTime",
    MetadataProperties = new MetadataPropertiesProperty {
        CommitId = "commitId",
        GeneratedBy = "generatedBy",
        ProjectId = "projectId",
        Repository = "repository"
    },
    ModelApprovalStatus = "modelApprovalStatus",
    ModelCard = new ModelCardProperty {
        ModelCardContent = "modelCardContent",
        ModelCardStatus = "modelCardStatus"
    },
    ModelMetrics = new ModelMetricsProperty {
        Bias = new BiasProperty {
            PostTrainingReport = new MetricsSourceProperty {
                ContentType = "contentType",
                S3Uri = "s3Uri",

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

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

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

                // the properties below are optional
                ContentDigest = "contentDigest"
            }
        },
        ModelDataQuality = new ModelDataQualityProperty {
            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 ModelQualityProperty {
            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"
            }
        }
    },
    ModelPackageDescription = "modelPackageDescription",
    ModelPackageGroupName = "modelPackageGroupName",
    ModelPackageName = "modelPackageName",
    ModelPackageStatusDetails = new ModelPackageStatusDetailsProperty {
        ValidationStatuses = new [] { new ModelPackageStatusItemProperty {
            Name = "name",
            Status = "status",

            // the properties below are optional
            FailureReason = "failureReason"
        } }
    },
    ModelPackageVersion = 123,
    SamplePayloadUrl = "samplePayloadUrl",
    SecurityConfig = new SecurityConfigProperty {
        KmsKeyId = "kmsKeyId"
    },
    SkipModelValidation = "skipModelValidation",
    SourceAlgorithmSpecification = new SourceAlgorithmSpecificationProperty {
        SourceAlgorithms = new [] { new SourceAlgorithmProperty {
            AlgorithmName = "algorithmName",

            // the properties below are optional
            ModelDataUrl = "modelDataUrl"
        } }
    },
    SourceUri = "sourceUri",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    Task = "task",
    ValidationSpecification = new ValidationSpecificationProperty {
        ValidationProfiles = new [] { new ValidationProfileProperty {
            ProfileName = "profileName",
            TransformJobDefinition = new TransformJobDefinitionProperty {
                TransformInput = new TransformInputProperty {
                    DataSource = new DataSourceProperty {
                        S3DataSource = new S3DataSourceProperty {
                            S3DataType = "s3DataType",
                            S3Uri = "s3Uri"
                        }
                    },

                    // the properties below are optional
                    CompressionType = "compressionType",
                    ContentType = "contentType",
                    SplitType = "splitType"
                },
                TransformOutput = new TransformOutputProperty {
                    S3OutputPath = "s3OutputPath",

                    // the properties below are optional
                    Accept = "accept",
                    AssembleWith = "assembleWith",
                    KmsKeyId = "kmsKeyId"
                },
                TransformResources = new TransformResourcesProperty {
                    InstanceCount = 123,
                    InstanceType = "instanceType",

                    // the properties below are optional
                    VolumeKmsKeyId = "volumeKmsKeyId"
                },

                // the properties below are optional
                BatchStrategy = "batchStrategy",
                Environment = new Dictionary<string, string> {
                    { "environmentKey", "environment" }
                },
                MaxConcurrentTransforms = 123,
                MaxPayloadInMb = 123
            }
        } },
        ValidationRole = "validationRole"
    }
};
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"

var modelInput interface{}

cfnModelPackageProps := &CfnModelPackageProps{
	AdditionalInferenceSpecifications: []interface{}{
		&AdditionalInferenceSpecificationDefinitionProperty{
			Containers: []interface{}{
				&ModelPackageContainerDefinitionProperty{
					Image: jsii.String("image"),

					// the properties below are optional
					ContainerHostname: jsii.String("containerHostname"),
					Environment: map[string]*string{
						"environmentKey": jsii.String("environment"),
					},
					Framework: jsii.String("framework"),
					FrameworkVersion: jsii.String("frameworkVersion"),
					ImageDigest: jsii.String("imageDigest"),
					ModelDataSource: &ModelDataSourceProperty{
						S3DataSource: &S3ModelDataSourceProperty{
							CompressionType: jsii.String("compressionType"),
							S3DataType: jsii.String("s3DataType"),
							S3Uri: jsii.String("s3Uri"),

							// the properties below are optional
							ModelAccessConfig: &ModelAccessConfigProperty{
								AcceptEula: jsii.Boolean(false),
							},
						},
					},
					ModelDataUrl: jsii.String("modelDataUrl"),
					ModelInput: modelInput,
					NearestModelName: jsii.String("nearestModelName"),
				},
			},
			Name: jsii.String("name"),

			// the properties below are optional
			Description: jsii.String("description"),
			SupportedContentTypes: []*string{
				jsii.String("supportedContentTypes"),
			},
			SupportedRealtimeInferenceInstanceTypes: []*string{
				jsii.String("supportedRealtimeInferenceInstanceTypes"),
			},
			SupportedResponseMimeTypes: []*string{
				jsii.String("supportedResponseMimeTypes"),
			},
			SupportedTransformInstanceTypes: []*string{
				jsii.String("supportedTransformInstanceTypes"),
			},
		},
	},
	AdditionalInferenceSpecificationsToAdd: []interface{}{
		&AdditionalInferenceSpecificationDefinitionProperty{
			Containers: []interface{}{
				&ModelPackageContainerDefinitionProperty{
					Image: jsii.String("image"),

					// the properties below are optional
					ContainerHostname: jsii.String("containerHostname"),
					Environment: map[string]*string{
						"environmentKey": jsii.String("environment"),
					},
					Framework: jsii.String("framework"),
					FrameworkVersion: jsii.String("frameworkVersion"),
					ImageDigest: jsii.String("imageDigest"),
					ModelDataSource: &ModelDataSourceProperty{
						S3DataSource: &S3ModelDataSourceProperty{
							CompressionType: jsii.String("compressionType"),
							S3DataType: jsii.String("s3DataType"),
							S3Uri: jsii.String("s3Uri"),

							// the properties below are optional
							ModelAccessConfig: &ModelAccessConfigProperty{
								AcceptEula: jsii.Boolean(false),
							},
						},
					},
					ModelDataUrl: jsii.String("modelDataUrl"),
					ModelInput: modelInput,
					NearestModelName: jsii.String("nearestModelName"),
				},
			},
			Name: jsii.String("name"),

			// the properties below are optional
			Description: jsii.String("description"),
			SupportedContentTypes: []*string{
				jsii.String("supportedContentTypes"),
			},
			SupportedRealtimeInferenceInstanceTypes: []*string{
				jsii.String("supportedRealtimeInferenceInstanceTypes"),
			},
			SupportedResponseMimeTypes: []*string{
				jsii.String("supportedResponseMimeTypes"),
			},
			SupportedTransformInstanceTypes: []*string{
				jsii.String("supportedTransformInstanceTypes"),
			},
		},
	},
	ApprovalDescription: jsii.String("approvalDescription"),
	CertifyForMarketplace: jsii.Boolean(false),
	ClientToken: jsii.String("clientToken"),
	CustomerMetadataProperties: map[string]*string{
		"customerMetadataPropertiesKey": jsii.String("customerMetadataProperties"),
	},
	Domain: jsii.String("domain"),
	DriftCheckBaselines: &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"),
			},
		},
	},
	InferenceSpecification: &InferenceSpecificationProperty{
		Containers: []interface{}{
			&ModelPackageContainerDefinitionProperty{
				Image: jsii.String("image"),

				// the properties below are optional
				ContainerHostname: jsii.String("containerHostname"),
				Environment: map[string]*string{
					"environmentKey": jsii.String("environment"),
				},
				Framework: jsii.String("framework"),
				FrameworkVersion: jsii.String("frameworkVersion"),
				ImageDigest: jsii.String("imageDigest"),
				ModelDataSource: &ModelDataSourceProperty{
					S3DataSource: &S3ModelDataSourceProperty{
						CompressionType: jsii.String("compressionType"),
						S3DataType: jsii.String("s3DataType"),
						S3Uri: jsii.String("s3Uri"),

						// the properties below are optional
						ModelAccessConfig: &ModelAccessConfigProperty{
							AcceptEula: jsii.Boolean(false),
						},
					},
				},
				ModelDataUrl: jsii.String("modelDataUrl"),
				ModelInput: modelInput,
				NearestModelName: jsii.String("nearestModelName"),
			},
		},
		SupportedContentTypes: []*string{
			jsii.String("supportedContentTypes"),
		},
		SupportedResponseMimeTypes: []*string{
			jsii.String("supportedResponseMimeTypes"),
		},

		// the properties below are optional
		SupportedRealtimeInferenceInstanceTypes: []*string{
			jsii.String("supportedRealtimeInferenceInstanceTypes"),
		},
		SupportedTransformInstanceTypes: []*string{
			jsii.String("supportedTransformInstanceTypes"),
		},
	},
	LastModifiedTime: jsii.String("lastModifiedTime"),
	MetadataProperties: &MetadataPropertiesProperty{
		CommitId: jsii.String("commitId"),
		GeneratedBy: jsii.String("generatedBy"),
		ProjectId: jsii.String("projectId"),
		Repository: jsii.String("repository"),
	},
	ModelApprovalStatus: jsii.String("modelApprovalStatus"),
	ModelCard: &ModelCardProperty{
		ModelCardContent: jsii.String("modelCardContent"),
		ModelCardStatus: jsii.String("modelCardStatus"),
	},
	ModelMetrics: &ModelMetricsProperty{
		Bias: &BiasProperty{
			PostTrainingReport: &MetricsSourceProperty{
				ContentType: jsii.String("contentType"),
				S3Uri: jsii.String("s3Uri"),

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

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

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

				// the properties below are optional
				ContentDigest: jsii.String("contentDigest"),
			},
		},
		ModelDataQuality: &ModelDataQualityProperty{
			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: &ModelQualityProperty{
			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"),
			},
		},
	},
	ModelPackageDescription: jsii.String("modelPackageDescription"),
	ModelPackageGroupName: jsii.String("modelPackageGroupName"),
	ModelPackageName: jsii.String("modelPackageName"),
	ModelPackageStatusDetails: &ModelPackageStatusDetailsProperty{
		ValidationStatuses: []interface{}{
			&ModelPackageStatusItemProperty{
				Name: jsii.String("name"),
				Status: jsii.String("status"),

				// the properties below are optional
				FailureReason: jsii.String("failureReason"),
			},
		},
	},
	ModelPackageVersion: jsii.Number(123),
	SamplePayloadUrl: jsii.String("samplePayloadUrl"),
	SecurityConfig: &SecurityConfigProperty{
		KmsKeyId: jsii.String("kmsKeyId"),
	},
	SkipModelValidation: jsii.String("skipModelValidation"),
	SourceAlgorithmSpecification: &SourceAlgorithmSpecificationProperty{
		SourceAlgorithms: []interface{}{
			&SourceAlgorithmProperty{
				AlgorithmName: jsii.String("algorithmName"),

				// the properties below are optional
				ModelDataUrl: jsii.String("modelDataUrl"),
			},
		},
	},
	SourceUri: jsii.String("sourceUri"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	Task: jsii.String("task"),
	ValidationSpecification: &ValidationSpecificationProperty{
		ValidationProfiles: []interface{}{
			&ValidationProfileProperty{
				ProfileName: jsii.String("profileName"),
				TransformJobDefinition: &TransformJobDefinitionProperty{
					TransformInput: &TransformInputProperty{
						DataSource: &DataSourceProperty{
							S3DataSource: &S3DataSourceProperty{
								S3DataType: jsii.String("s3DataType"),
								S3Uri: jsii.String("s3Uri"),
							},
						},

						// the properties below are optional
						CompressionType: jsii.String("compressionType"),
						ContentType: jsii.String("contentType"),
						SplitType: jsii.String("splitType"),
					},
					TransformOutput: &TransformOutputProperty{
						S3OutputPath: jsii.String("s3OutputPath"),

						// the properties below are optional
						Accept: jsii.String("accept"),
						AssembleWith: jsii.String("assembleWith"),
						KmsKeyId: jsii.String("kmsKeyId"),
					},
					TransformResources: &TransformResourcesProperty{
						InstanceCount: jsii.Number(123),
						InstanceType: jsii.String("instanceType"),

						// the properties below are optional
						VolumeKmsKeyId: jsii.String("volumeKmsKeyId"),
					},

					// the properties below are optional
					BatchStrategy: jsii.String("batchStrategy"),
					Environment: map[string]*string{
						"environmentKey": jsii.String("environment"),
					},
					MaxConcurrentTransforms: jsii.Number(123),
					MaxPayloadInMb: jsii.Number(123),
				},
			},
		},
		ValidationRole: jsii.String("validationRole"),
	},
}

Properties ​

additionalInferenceSpecificationsoptionalIResolvable | IResolvable | CfnModelPackage.AdditionalInferenceSpecificationDefinitionProperty[]additional_inference_specificationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AdditionalInferenceSpecificationDefinitionProperty]]]additionalInferenceSpecificationsoptionalIResolvableAdditionalInferenceSpecificationsoptionalIResolvableAdditionalInferenceSpecificationsoptionalinterface{}#
An array of additional Inference Specification objects.
additionalInferenceSpecificationsToAddoptionalIResolvable | IResolvable | CfnModelPackage.AdditionalInferenceSpecificationDefinitionProperty[]additional_inference_specifications_to_addoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AdditionalInferenceSpecificationDefinitionProperty]]]additionalInferenceSpecificationsToAddoptionalIResolvableAdditionalInferenceSpecificationsToAddoptionalIResolvableAdditionalInferenceSpecificationsToAddoptionalinterface{}#
An array of additional Inference Specification objects to be added to the existing array.
notes

The total number of additional Inference Specification objects cannot exceed 15. Each additional Inference Specification object specifies artifacts based on this model package that can be used on inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts.

approvalDescriptionoptionalstringapproval_descriptionoptionalstrapprovalDescriptionoptionalStringApprovalDescriptionoptionalstringApprovalDescriptionoptional*string#
A description provided when the model approval is set.
certifyForMarketplaceoptionalboolean | IResolvablecertify_for_marketplaceoptionaltyping.Union[bool, IResolvable]certifyForMarketplaceoptionalBooleanCertifyForMarketplaceoptionalboolCertifyForMarketplaceoptionalinterface{}#
Whether the model package is to be certified to be listed on AWS Marketplace.

For information about listing model packages on AWS Marketplace, see List Your Algorithm or Model Package on AWS Marketplace .

clientTokenoptionalstringclient_tokenoptionalstrclientTokenoptionalStringClientTokenoptionalstringClientTokenoptional*string#
A unique token that guarantees that the call to this API is idempotent.
customerMetadataPropertiesoptionalIResolvable | { [key: string]: string }customer_metadata_propertiesoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]customerMetadataPropertiesoptionalIResolvableCustomerMetadataPropertiesoptionalIResolvableCustomerMetadataPropertiesoptionalinterface{}#
The metadata properties for the model package.
domainoptionalstringdomainoptionalstrdomainoptionalStringDomainoptionalstringDomainoptional*string#
The machine learning domain of your model package and its components.

Common machine learning domains include computer vision and natural language processing.

driftCheckBaselinesoptionalIResolvable | CfnModelPackage.DriftCheckBaselinesPropertydrift_check_baselinesoptionaltyping.Union[IResolvable, DriftCheckBaselinesProperty]driftCheckBaselinesoptionalIResolvableDriftCheckBaselinesoptionalIResolvableDriftCheckBaselinesoptionalinterface{}#
Represents the drift check baselines that can be used when the model monitor is set using the model package.
inferenceSpecificationoptionalIResolvable | CfnModelPackage.InferenceSpecificationPropertyinference_specificationoptionaltyping.Union[IResolvable, InferenceSpecificationProperty]inferenceSpecificationoptionalIResolvableInferenceSpecificationoptionalIResolvableInferenceSpecificationoptionalinterface{}#
Defines how to perform inference generation after a training job is run.
lastModifiedTimeoptionalstringlast_modified_timeoptionalstrlastModifiedTimeoptionalStringLastModifiedTimeoptionalstringLastModifiedTimeoptional*string#
The last time the model package was modified.
metadataPropertiesoptionalIResolvable | CfnModelPackage.MetadataPropertiesPropertymetadata_propertiesoptionaltyping.Union[IResolvable, MetadataPropertiesProperty]metadataPropertiesoptionalIResolvableMetadataPropertiesoptionalIResolvableMetadataPropertiesoptionalinterface{}#
Metadata properties of the tracking entity, trial, or trial component.
modelApprovalStatusoptionalstringmodel_approval_statusoptionalstrmodelApprovalStatusoptionalStringModelApprovalStatusoptionalstringModelApprovalStatusoptional*string#
The approval status of the model. This can be one of the following values.
  • APPROVED - The model is approved
  • REJECTED - The model is rejected.
  • PENDING_MANUAL_APPROVAL - The model is waiting for manual approval.
modelCardoptionalIResolvable | CfnModelPackage.ModelCardPropertymodel_cardoptionaltyping.Union[IResolvable, ModelCardProperty]modelCardoptionalIResolvableModelCardoptionalIResolvableModelCardoptionalinterface{}#
An Amazon SageMaker Model Card.
modelMetricsoptionalIResolvable | CfnModelPackage.ModelMetricsPropertymodel_metricsoptionaltyping.Union[IResolvable, ModelMetricsProperty]modelMetricsoptionalIResolvableModelMetricsoptionalIResolvableModelMetricsoptionalinterface{}#
Metrics for the model.
modelPackageDescriptionoptionalstringmodel_package_descriptionoptionalstrmodelPackageDescriptionoptionalStringModelPackageDescriptionoptionalstringModelPackageDescriptionoptional*string#
The description of the model package.
modelPackageGroupNameoptionalstringmodel_package_group_nameoptionalstrmodelPackageGroupNameoptionalStringModelPackageGroupNameoptionalstringModelPackageGroupNameoptional*string#
The model group to which the model belongs.
modelPackageNameoptionalstringmodel_package_nameoptionalstrmodelPackageNameoptionalStringModelPackageNameoptionalstringModelPackageNameoptional*string#
The name of the model package. The name can be as follows:.
  • For a versioned model, the name is automatically generated by SageMaker Model Registry and follows the format ' ModelPackageGroupName/ModelPackageVersion '.
  • For an unversioned model, you must provide the name.
modelPackageStatusDetailsoptionalIResolvable | CfnModelPackage.ModelPackageStatusDetailsPropertymodel_package_status_detailsoptionaltyping.Union[IResolvable, ModelPackageStatusDetailsProperty]modelPackageStatusDetailsoptionalIResolvableModelPackageStatusDetailsoptionalIResolvableModelPackageStatusDetailsoptionalinterface{}#
Specifies the validation and image scan statuses of the model package.
modelPackageVersionoptionalnumbermodel_package_versionoptionalint | floatmodelPackageVersionoptionalNumberModelPackageVersionoptionaldoubleModelPackageVersionoptional*float64#
The version number of a versioned model.
samplePayloadUrloptionalstringsample_payload_urloptionalstrsamplePayloadUrloptionalStringSamplePayloadUrloptionalstringSamplePayloadUrloptional*string#
The Amazon Simple Storage Service path where the sample payload are stored.

This path must point to a single gzip compressed tar archive (.tar.gz suffix).

securityConfigoptionalIResolvable | CfnModelPackage.SecurityConfigPropertysecurity_configoptionaltyping.Union[IResolvable, SecurityConfigProperty]securityConfigoptionalIResolvableSecurityConfigoptionalIResolvableSecurityConfigoptionalinterface{}#
An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package information for regulated workloads with highly sensitive data.
skipModelValidationoptionalstringskip_model_validationoptionalstrskipModelValidationoptionalStringSkipModelValidationoptionalstringSkipModelValidationoptional*string#
Indicates if you want to skip model validation.
sourceAlgorithmSpecificationoptionalIResolvable | CfnModelPackage.SourceAlgorithmSpecificationPropertysource_algorithm_specificationoptionaltyping.Union[IResolvable, SourceAlgorithmSpecificationProperty]sourceAlgorithmSpecificationoptionalIResolvableSourceAlgorithmSpecificationoptionalIResolvableSourceAlgorithmSpecificationoptionalinterface{}#
A list of algorithms that were used to create a model package.
sourceUrioptionalstringsource_urioptionalstrsourceUrioptionalStringSourceUrioptionalstringSourceUrioptional*string#
The URI of the source for the model package.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
A list of the tags associated with the model package.

For more information, see Tagging AWS resources in the AWS General Reference Guide .

taskoptionalstringtaskoptionalstrtaskoptionalStringTaskoptionalstringTaskoptional*string#
The machine learning task your model package accomplishes.

Common machine learning tasks include object detection and image classification.

validationSpecificationoptionalIResolvable | CfnModelPackage.ValidationSpecificationPropertyvalidation_specificationoptionaltyping.Union[IResolvable, ValidationSpecificationProperty]validationSpecificationoptionalIResolvableValidationSpecificationoptionalIResolvableValidationSpecificationoptionalinterface{}#
Specifies batch transform jobs that SageMaker runs to validate your model package.