# ModelPackageStatusDetailsProperty

Specifies the validation and image scan statuses of the model package.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `validationStatuses`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnModelPackage.ModelPackageStatusItemProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnModelPackage.ModelPackageStatusItemProperty.html)[] — The validation status of the model package.
