Skip to content
v2.278.0

ModelPackageStatusDetailsProperty Struct ​

Specifies the validation and image scan statuses of 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 modelPackageStatusDetailsProperty: sagemaker.CfnModelPackage.ModelPackageStatusDetailsProperty = {
  validationStatuses: [{
    name: 'name',
    status: 'status',

    // the properties below are optional
    failureReason: 'failureReason',
  }],
};
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

model_package_status_details_property = sagemaker.CfnModelPackage.ModelPackageStatusDetailsProperty(
    validation_statuses=[sagemaker.CfnModelPackage.ModelPackageStatusItemProperty(
        name="name",
        status="status",

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

ModelPackageStatusDetailsProperty modelPackageStatusDetailsProperty = ModelPackageStatusDetailsProperty.builder()
        .validationStatuses(List.of(ModelPackageStatusItemProperty.builder()
                .name("name")
                .status("status")

                // the properties below are optional
                .failureReason("failureReason")
                .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 modelPackageStatusDetailsProperty = new ModelPackageStatusDetailsProperty {
    ValidationStatuses = new [] { new ModelPackageStatusItemProperty {
        Name = "name",
        Status = "status",

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

modelPackageStatusDetailsProperty := &ModelPackageStatusDetailsProperty{
	ValidationStatuses: []interface{}{
		&ModelPackageStatusItemProperty{
			Name: jsii.String("name"),
			Status: jsii.String("status"),

			// the properties below are optional
			FailureReason: jsii.String("failureReason"),
		},
	},
}

Properties ​

validationStatusesoptionalIResolvable | IResolvable | CfnModelPackage.ModelPackageStatusItemProperty[]validation_statusesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ModelPackageStatusItemProperty]]]validationStatusesoptionalIResolvableValidationStatusesoptionalIResolvableValidationStatusesoptionalinterface{} #
The validation status of the model package.