# ModelPackageStatusItemProperty

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

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

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

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

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

## Properties

- `failureReason`: string — if the overall status is `Failed` , the reason for the failure.

- `name`: string (required) — The name of the model package for which the overall status is being reported.

- `status`: string (required) — The current status.
