Skip to content
v2.278.0

ModelPackageStatusItemProperty Struct ​

Represents the overall status of a 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 modelPackageStatusItemProperty: sagemaker.CfnModelPackage.ModelPackageStatusItemProperty = {
  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_item_property = 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.*;

ModelPackageStatusItemProperty modelPackageStatusItemProperty = ModelPackageStatusItemProperty.builder()
        .name("name")
        .status("status")

        // the properties below are optional
        .failureReason("failureReason")
        .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 modelPackageStatusItemProperty = 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"

modelPackageStatusItemProperty := &ModelPackageStatusItemProperty{
	Name: jsii.String("name"),
	Status: jsii.String("status"),

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

Properties ​

failureReasonoptionalstringfailure_reasonoptionalstrfailureReasonoptionalStringFailureReasonoptionalstringFailureReasonoptional*string #
if the overall status is `Failed` , the reason for the failure.
namestringnamestrnameStringNamestringName*string required #
The name of the model package for which the overall status is being reported.
statusstringstatusstrstatusStringStatusstringStatus*string required #
The current status.