Skip to content
v2.277.0

ValidationSpecificationProperty Struct ​

Specifies batch transform jobs that SageMaker runs to validate your 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 validationSpecificationProperty: sagemaker.CfnModelPackage.ValidationSpecificationProperty = {
  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
# 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

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

ValidationSpecificationProperty validationSpecificationProperty = 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();
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 validationSpecificationProperty = 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"

validationSpecificationProperty := &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 ​

validationProfilesIResolvable | IResolvable | CfnModelPackage.ValidationProfileProperty[]validation_profilestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ValidationProfileProperty]]]validationProfilesIResolvableValidationProfilesIResolvableValidationProfilesinterface{}required#
An array of `ModelPackageValidationProfile` objects, each of which specifies a batch transform job that SageMaker runs to validate your model package.
validationRolestringvalidation_rolestrvalidationRoleStringValidationRolestringValidationRole*stringrequired#
The IAM roles to be used for the validation of the model package.