batch_describe_model_package

batch_describe_model_package(**kwargs)

This action batch describes a list of versioned model packages

See also: AWS API Documentation

Request Syntax

response = client.batch_describe_model_package(
    ModelPackageArnList=[
        'string',
    ]
)
Parameters
ModelPackageArnList (list) --

[REQUIRED]

The list of Amazon Resource Name (ARN) of the model package groups.

  • (string) --
Return type
dict
Returns
Response Syntax
{
    'ModelPackageSummaries': {
        'string': {
            'ModelPackageGroupName': 'string',
            'ModelPackageVersion': 123,
            'ModelPackageArn': 'string',
            'ModelPackageDescription': 'string',
            'CreationTime': datetime(2015, 1, 1),
            'InferenceSpecification': {
                'Containers': [
                    {
                        'ContainerHostname': 'string',
                        'Image': 'string',
                        'ImageDigest': 'string',
                        'ModelDataUrl': 'string',
                        'ProductId': 'string',
                        'Environment': {
                            'string': 'string'
                        },
                        'ModelInput': {
                            'DataInputConfig': 'string'
                        },
                        'Framework': 'string',
                        'FrameworkVersion': 'string',
                        'NearestModelName': 'string'
                    },
                ],
                'SupportedTransformInstanceTypes': [
                    'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge',
                ],
                'SupportedRealtimeInferenceInstanceTypes': [
                    'ml.t2.medium'|'ml.t2.large'|'ml.t2.xlarge'|'ml.t2.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.m5d.large'|'ml.m5d.xlarge'|'ml.m5d.2xlarge'|'ml.m5d.4xlarge'|'ml.m5d.12xlarge'|'ml.m5d.24xlarge'|'ml.c4.large'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.large'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5d.large'|'ml.c5d.xlarge'|'ml.c5d.2xlarge'|'ml.c5d.4xlarge'|'ml.c5d.9xlarge'|'ml.c5d.18xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.12xlarge'|'ml.r5.24xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.12xlarge'|'ml.r5d.24xlarge'|'ml.inf1.xlarge'|'ml.inf1.2xlarge'|'ml.inf1.6xlarge'|'ml.inf1.24xlarge'|'ml.c6i.large'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.4xlarge'|'ml.c6i.8xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.12xlarge'|'ml.g5.16xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.p4d.24xlarge'|'ml.c7g.large'|'ml.c7g.xlarge'|'ml.c7g.2xlarge'|'ml.c7g.4xlarge'|'ml.c7g.8xlarge'|'ml.c7g.12xlarge'|'ml.c7g.16xlarge'|'ml.m6g.large'|'ml.m6g.xlarge'|'ml.m6g.2xlarge'|'ml.m6g.4xlarge'|'ml.m6g.8xlarge'|'ml.m6g.12xlarge'|'ml.m6g.16xlarge'|'ml.m6gd.large'|'ml.m6gd.xlarge'|'ml.m6gd.2xlarge'|'ml.m6gd.4xlarge'|'ml.m6gd.8xlarge'|'ml.m6gd.12xlarge'|'ml.m6gd.16xlarge'|'ml.c6g.large'|'ml.c6g.xlarge'|'ml.c6g.2xlarge'|'ml.c6g.4xlarge'|'ml.c6g.8xlarge'|'ml.c6g.12xlarge'|'ml.c6g.16xlarge'|'ml.c6gd.large'|'ml.c6gd.xlarge'|'ml.c6gd.2xlarge'|'ml.c6gd.4xlarge'|'ml.c6gd.8xlarge'|'ml.c6gd.12xlarge'|'ml.c6gd.16xlarge'|'ml.c6gn.large'|'ml.c6gn.xlarge'|'ml.c6gn.2xlarge'|'ml.c6gn.4xlarge'|'ml.c6gn.8xlarge'|'ml.c6gn.12xlarge'|'ml.c6gn.16xlarge'|'ml.r6g.large'|'ml.r6g.xlarge'|'ml.r6g.2xlarge'|'ml.r6g.4xlarge'|'ml.r6g.8xlarge'|'ml.r6g.12xlarge'|'ml.r6g.16xlarge'|'ml.r6gd.large'|'ml.r6gd.xlarge'|'ml.r6gd.2xlarge'|'ml.r6gd.4xlarge'|'ml.r6gd.8xlarge'|'ml.r6gd.12xlarge'|'ml.r6gd.16xlarge'|'ml.p4de.24xlarge',
                ],
                'SupportedContentTypes': [
                    'string',
                ],
                'SupportedResponseMIMETypes': [
                    'string',
                ]
            },
            'ModelPackageStatus': 'Pending'|'InProgress'|'Completed'|'Failed'|'Deleting',
            'ModelApprovalStatus': 'Approved'|'Rejected'|'PendingManualApproval'
        }
    },
    'BatchDescribeModelPackageErrorMap': {
        'string': {
            'ErrorCode': 'string',
            'ErrorResponse': 'string'
        }
    }
}

Response Structure

  • (dict) --
    • ModelPackageSummaries (dict) --

      The summaries for the model package versions

      • (string) --
        • (dict) --

          Provides summary information about the model package.

          • ModelPackageGroupName (string) --

            The group name for the model package

          • ModelPackageVersion (integer) --

            The version number of a versioned model.

          • ModelPackageArn (string) --

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

          • ModelPackageDescription (string) --

            The description of the model package.

          • CreationTime (datetime) --

            The creation time of the mortgage package summary.

          • InferenceSpecification (dict) --

            Defines how to perform inference generation after a training job is run.

            • Containers (list) --

              The Amazon ECR registry path of the Docker image that contains the inference code.

              • (dict) --

                Describes the Docker container for the model package.

                • ContainerHostname (string) --

                  The DNS host name for the Docker container.

                • Image (string) --

                  The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.

                  If you are using your own custom algorithm instead of an algorithm provided by SageMaker, the inference code must meet SageMaker requirements. SageMaker supports both registry/repository[:tag] and registry/repository[@digest] image path formats. For more information, see Using Your Own Algorithms with Amazon SageMaker.

                • ImageDigest (string) --

                  An MD5 hash of the training algorithm that identifies the Docker image used for training.

                • ModelDataUrl (string) --

                  The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive ( .tar.gz suffix).

                  Note

                  The model artifacts must be in an S3 bucket that is in the same region as the model package.

                • ProductId (string) --

                  The Amazon Web Services Marketplace product ID of the model package.

                • Environment (dict) --

                  The environment variables to set in the Docker container. Each key and value in the Environment string to string map can have length of up to 1024. We support up to 16 entries in the map.

                  • (string) --
                    • (string) --
                • ModelInput (dict) --

                  A structure with Model Input details.

                  • DataInputConfig (string) --

                    The input configuration object for the model.

                • Framework (string) --

                  The machine learning framework of the model package container image.

                • FrameworkVersion (string) --

                  The framework version of the Model Package Container Image.

                • NearestModelName (string) --

                  The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that matches your model. You can find a list of benchmarked models by calling ListModelMetadata .

            • SupportedTransformInstanceTypes (list) --

              A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.

              This parameter is required for unversioned models, and optional for versioned models.

              • (string) --
            • SupportedRealtimeInferenceInstanceTypes (list) --

              A list of the instance types that are used to generate inferences in real-time.

              This parameter is required for unversioned models, and optional for versioned models.

              • (string) --
            • SupportedContentTypes (list) --

              The supported MIME types for the input data.

              • (string) --
            • SupportedResponseMIMETypes (list) --

              The supported MIME types for the output data.

              • (string) --
          • ModelPackageStatus (string) --

            The status of the mortgage package.

          • ModelApprovalStatus (string) --

            The approval status of the model.

    • BatchDescribeModelPackageErrorMap (dict) --

      A map of the resource and BatchDescribeModelPackageError objects reporting the error associated with describing the model package.

      • (string) --
        • (dict) --

          The error code and error description associated with the resource.

          • ErrorCode (string) --
          • ErrorResponse (string) --