CreateModelPackageGroupCommand

Creates a model group. A model group contains a group of model versions.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { SageMakerClient, CreateModelPackageGroupCommand } from "@aws-sdk/client-sagemaker"; // ES Modules import
// const { SageMakerClient, CreateModelPackageGroupCommand } = require("@aws-sdk/client-sagemaker"); // CommonJS import
const client = new SageMakerClient(config);
const input = { // CreateModelPackageGroupInput
  ModelPackageGroupName: "STRING_VALUE", // required
  ModelPackageGroupDescription: "STRING_VALUE",
  Tags: [ // TagList
    { // Tag
      Key: "STRING_VALUE", // required
      Value: "STRING_VALUE", // required
    },
  ],
};
const command = new CreateModelPackageGroupCommand(input);
const response = await client.send(command);
// { // CreateModelPackageGroupOutput
//   ModelPackageGroupArn: "STRING_VALUE", // required
// };

CreateModelPackageGroupCommand Input

Parameter
Type
Description
ModelPackageGroupName
Required
string | undefined

The name of the model group.

ModelPackageGroupDescription
string | undefined

A description for the model group.

Tags
Tag[] | undefined

A list of key value pairs associated with the model group. For more information, see Tagging Amazon Web Services resources  in the Amazon Web Services General Reference Guide.

CreateModelPackageGroupCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
ModelPackageGroupArn
Required
string | undefined

The Amazon Resource Name (ARN) of the model group.

Throws

Name
Fault
Details
ResourceLimitExceeded
client

You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.

SageMakerServiceException
Base exception class for all service exceptions from SageMaker service.