# ModelPackageDetailsProperty

Metadata information related to model package version.

- 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 modelPackageDetailsProperty: sagemaker.CfnModelCard.ModelPackageDetailsProperty = {
  approvalDescription: 'approvalDescription',
  createdBy: {
    userProfileName: 'userProfileName',
  },
  domain: 'domain',
  inferenceSpecification: {
    containers: [{
      image: 'image',

      // the properties below are optional
      modelDataUrl: 'modelDataUrl',
      nearestModelName: 'nearestModelName',
    }],
  },
  modelApprovalStatus: 'modelApprovalStatus',
  modelPackageArn: 'modelPackageArn',
  modelPackageDescription: 'modelPackageDescription',
  modelPackageGroupName: 'modelPackageGroupName',
  modelPackageName: 'modelPackageName',
  modelPackageStatus: 'modelPackageStatus',
  modelPackageVersion: 123,
  sourceAlgorithms: [{
    algorithmName: 'algorithmName',

    // the properties below are optional
    modelDataUrl: 'modelDataUrl',
  }],
  task: 'task',
};
```

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_details_property = sagemaker.CfnModelCard.ModelPackageDetailsProperty(
    approval_description="approvalDescription",
    created_by=sagemaker.CfnModelCard.ModelPackageCreatorProperty(
        user_profile_name="userProfileName"
    ),
    domain="domain",
    inference_specification=sagemaker.CfnModelCard.InferenceSpecificationProperty(
        containers=[sagemaker.CfnModelCard.ContainerProperty(
            image="image",

            # the properties below are optional
            model_data_url="modelDataUrl",
            nearest_model_name="nearestModelName"
        )]
    ),
    model_approval_status="modelApprovalStatus",
    model_package_arn="modelPackageArn",
    model_package_description="modelPackageDescription",
    model_package_group_name="modelPackageGroupName",
    model_package_name="modelPackageName",
    model_package_status="modelPackageStatus",
    model_package_version=123,
    source_algorithms=[sagemaker.CfnModelCard.SourceAlgorithmProperty(
        algorithm_name="algorithmName",

        # the properties below are optional
        model_data_url="modelDataUrl"
    )],
    task="task"
)
```

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

ModelPackageDetailsProperty modelPackageDetailsProperty = ModelPackageDetailsProperty.builder()
        .approvalDescription("approvalDescription")
        .createdBy(ModelPackageCreatorProperty.builder()
                .userProfileName("userProfileName")
                .build())
        .domain("domain")
        .inferenceSpecification(InferenceSpecificationProperty.builder()
                .containers(List.of(ContainerProperty.builder()
                        .image("image")

                        // the properties below are optional
                        .modelDataUrl("modelDataUrl")
                        .nearestModelName("nearestModelName")
                        .build()))
                .build())
        .modelApprovalStatus("modelApprovalStatus")
        .modelPackageArn("modelPackageArn")
        .modelPackageDescription("modelPackageDescription")
        .modelPackageGroupName("modelPackageGroupName")
        .modelPackageName("modelPackageName")
        .modelPackageStatus("modelPackageStatus")
        .modelPackageVersion(123)
        .sourceAlgorithms(List.of(SourceAlgorithmProperty.builder()
                .algorithmName("algorithmName")

                // the properties below are optional
                .modelDataUrl("modelDataUrl")
                .build()))
        .task("task")
        .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 modelPackageDetailsProperty = new ModelPackageDetailsProperty {
    ApprovalDescription = "approvalDescription",
    CreatedBy = new ModelPackageCreatorProperty {
        UserProfileName = "userProfileName"
    },
    Domain = "domain",
    InferenceSpecification = new InferenceSpecificationProperty {
        Containers = new [] { new ContainerProperty {
            Image = "image",

            // the properties below are optional
            ModelDataUrl = "modelDataUrl",
            NearestModelName = "nearestModelName"
        } }
    },
    ModelApprovalStatus = "modelApprovalStatus",
    ModelPackageArn = "modelPackageArn",
    ModelPackageDescription = "modelPackageDescription",
    ModelPackageGroupName = "modelPackageGroupName",
    ModelPackageName = "modelPackageName",
    ModelPackageStatus = "modelPackageStatus",
    ModelPackageVersion = 123,
    SourceAlgorithms = new [] { new SourceAlgorithmProperty {
        AlgorithmName = "algorithmName",

        // the properties below are optional
        ModelDataUrl = "modelDataUrl"
    } },
    Task = "task"
};
```

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"

modelPackageDetailsProperty := &ModelPackageDetailsProperty{
	ApprovalDescription: jsii.String("approvalDescription"),
	CreatedBy: &ModelPackageCreatorProperty{
		UserProfileName: jsii.String("userProfileName"),
	},
	Domain: jsii.String("domain"),
	InferenceSpecification: &InferenceSpecificationProperty{
		Containers: []interface{}{
			&ContainerProperty{
				Image: jsii.String("image"),

				// the properties below are optional
				ModelDataUrl: jsii.String("modelDataUrl"),
				NearestModelName: jsii.String("nearestModelName"),
			},
		},
	},
	ModelApprovalStatus: jsii.String("modelApprovalStatus"),
	ModelPackageArn: jsii.String("modelPackageArn"),
	ModelPackageDescription: jsii.String("modelPackageDescription"),
	ModelPackageGroupName: jsii.String("modelPackageGroupName"),
	ModelPackageName: jsii.String("modelPackageName"),
	ModelPackageStatus: jsii.String("modelPackageStatus"),
	ModelPackageVersion: jsii.Number(123),
	SourceAlgorithms: []interface{}{
		&SourceAlgorithmProperty{
			AlgorithmName: jsii.String("algorithmName"),

			// the properties below are optional
			ModelDataUrl: jsii.String("modelDataUrl"),
		},
	},
	Task: jsii.String("task"),
}
```

## Properties

- `approvalDescription`: string — A description provided for the model approval.

- `createdBy`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnModelCard.ModelPackageCreatorProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnModelCard.ModelPackageCreatorProperty.html)

- `domain`: string — The machine learning domain of the model package you specified.

  Common machine learning domains include computer vision and natural language processing.

- `inferenceSpecification`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnModelCard.InferenceSpecificationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnModelCard.InferenceSpecificationProperty.html)

- `modelApprovalStatus`: string — Current approval status of model package.

- `modelPackageArn`: string — The Amazon Resource Name (ARN) of the model package.

- `modelPackageDescription`: string — A brief summary of the model package.

- `modelPackageGroupName`: string — If the model is a versioned model, the name of the model group that the versioned model belongs to.

- `modelPackageName`: string — Name of the model package.

- `modelPackageStatus`: string — Current status of model package.

- `modelPackageVersion`: number — Version of the model package.

- `sourceAlgorithms`: [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) | [CfnModelCard.SourceAlgorithmProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnModelCard.SourceAlgorithmProperty.html)[]

- `task`: string — The machine learning task you specified that your model package accomplishes.

  Common machine learning tasks include object detection and image classification.
