Skip to content

DescribeModelPackageOutput

Source code in docs_src/capo_sagemaker/types/describe_model_package_output.py
class DescribeModelPackageOutput(TypedDict, closed=True):
    model_package_name: NotRequired["capo_sagemaker.types.entity_name.EntityName"]
    """<p>The name of the model package being described.</p>"""
    model_package_group_name: NotRequired["capo_sagemaker.types.entity_name.EntityName"]
    """<p>If the model is a versioned model, the name of the model group that the versioned model belongs to.</p>"""
    model_package_version: NotRequired[
        "capo_sagemaker.types.model_package_version.ModelPackageVersion"
    ]
    """<p>The version of the model package.</p>"""
    model_package_registration_type: NotRequired[
        "capo_sagemaker.types.model_package_registration_type.ModelPackageRegistrationType"
    ]
    """<p> The package registration type of the model package output. </p>"""
    model_package_arn: NotRequired[
        "capo_sagemaker.types.model_package_arn.ModelPackageArn"
    ]
    """<p>The Amazon Resource Name (ARN) of the model package.</p>"""
    model_package_description: NotRequired[
        "capo_sagemaker.types.entity_description.EntityDescription"
    ]
    """<p>A brief summary of the model package.</p>"""
    creation_time: NotRequired["capo_sagemaker.types.creation_time.CreationTime"]
    """<p>A timestamp specifying when the model package was created.</p>"""
    inference_specification: NotRequired[
        "capo_sagemaker.types.inference_specification.InferenceSpecification"
    ]
    """<p>Details about inference jobs that you can run with models based on this model package.</p>"""
    source_algorithm_specification: NotRequired[
        "capo_sagemaker.types.source_algorithm_specification.SourceAlgorithmSpecification"
    ]
    """<p>Details about the algorithm that was used to create the model package.</p>"""
    validation_specification: NotRequired[
        "capo_sagemaker.types.model_package_validation_specification.ModelPackageValidationSpecification"
    ]
    """<p>Configurations for one or more transform jobs that SageMaker runs to test the model package.</p>"""
    model_package_status: NotRequired[
        "capo_sagemaker.types.model_package_status.ModelPackageStatus"
    ]
    """<p>The current status of the model package.</p>"""
    model_package_status_details: NotRequired[
        "capo_sagemaker.types.model_package_status_details.ModelPackageStatusDetails"
    ]
    """<p>Details about the current status of the model package.</p>"""
    certify_for_marketplace: NotRequired[
        "capo_sagemaker.types.certify_for_marketplace.CertifyForMarketplace"
    ]
    """<p>Whether the model package is certified for listing on Amazon Web Services Marketplace.</p>"""
    model_approval_status: NotRequired[
        "capo_sagemaker.types.model_approval_status.ModelApprovalStatus"
    ]
    """<p>The approval status of the model package.</p>"""
    created_by: NotRequired["capo_sagemaker.types.user_context.UserContext"]
    metadata_properties: NotRequired[
        "capo_sagemaker.types.metadata_properties.MetadataProperties"
    ]
    model_metrics: NotRequired["capo_sagemaker.types.model_metrics.ModelMetrics"]
    """<p>Metrics for the model.</p>"""
    last_modified_time: NotRequired["capo_sagemaker.types.timestamp.Timestamp"]
    """<p>The last time that the model package was modified.</p>"""
    last_modified_by: NotRequired["capo_sagemaker.types.user_context.UserContext"]
    approval_description: NotRequired[
        "capo_sagemaker.types.approval_description.ApprovalDescription"
    ]
    """<p>A description provided for the model approval.</p>"""
    domain: NotRequired["capo_sagemaker.types.string.String"]
    """<p>The machine learning domain of the model package you specified. Common machine learning domains include computer vision and natural language processing.</p>"""
    task: NotRequired["capo_sagemaker.types.string.String"]
    """<p>The machine learning task you specified that your model package accomplishes. Common machine learning tasks include object detection and image classification.</p>"""
    sample_payload_url: NotRequired["capo_sagemaker.types.string.String"]
    """<p>The Amazon Simple Storage Service (Amazon S3) path where the sample payload are stored. This path points to a single gzip compressed tar archive (.tar.gz suffix).</p>"""
    customer_metadata_properties: NotRequired[
        "capo_sagemaker.types.customer_metadata_map.CustomerMetadataMap"
    ]
    """<p>The metadata properties associated with the model package versions.</p>"""
    drift_check_baselines: NotRequired[
        "capo_sagemaker.types.drift_check_baselines.DriftCheckBaselines"
    ]
    """<p>Represents the drift check baselines that can be used when the model monitor is set using the model package. For more information, see the topic on <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/pipelines-quality-clarify-baseline-lifecycle.html#pipelines-quality-clarify-baseline-drift-detection">Drift Detection against Previous Baselines in SageMaker Pipelines</a> in the <i>Amazon SageMaker Developer Guide</i>. </p>"""
    additional_inference_specifications: NotRequired[
        "capo_sagemaker.types.additional_inference_specifications.AdditionalInferenceSpecifications"
    ]
    """<p>An array of additional Inference Specification objects. Each additional Inference Specification specifies artifacts based on this model package that can be used on inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts.</p>"""
    skip_model_validation: NotRequired[
        "capo_sagemaker.types.skip_model_validation.SkipModelValidation"
    ]
    """<p>Indicates if you want to skip model validation.</p>"""
    source_uri: NotRequired[
        "capo_sagemaker.types.model_package_source_uri.ModelPackageSourceUri"
    ]
    """<p>The URI of the source for the model package.</p>"""
    security_config: NotRequired[
        "capo_sagemaker.types.model_package_security_config.ModelPackageSecurityConfig"
    ]
    """<p>The KMS Key ID (<code>KMSKeyId</code>) used for encryption of model package information.</p>"""
    model_card: NotRequired[
        "capo_sagemaker.types.model_package_model_card.ModelPackageModelCard"
    ]
    """<p>The model card associated with the model package. Since <code>ModelPackageModelCard</code> is tied to a model package, it is a specific usage of a model card and its schema is simplified compared to the schema of <code>ModelCard</code>. The <code>ModelPackageModelCard</code> schema does not include <code>model_package_details</code>, and <code>model_overview</code> is composed of the <code>model_creator</code> and <code>model_artifact</code> properties. For more information about the model package model card schema, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-details.html#model-card-schema">Model package model card schema</a>. For more information about the model card associated with the model package, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-details.html">View the Details of a Model Version</a>.</p> <p>When you set <code>IncludedData</code> to <code>MetadataOnly</code> in the request, <code>ModelCardStatus</code> is preserved and <code>ModelCardContent</code> is sanitized to include only the following JSON paths, when present in the model card:</p> <ul> <li> <p> <code>model_overview.model_id</code> </p> </li> <li> <p> <code>model_overview.model_name</code> </p> </li> <li> <p> <code>intended_uses.risk_rating</code> </p> </li> <li> <p> <code>model_package_details.model_package_group_name</code> </p> </li> <li> <p> <code>model_package_details.model_package_arn</code> </p> </li> </ul> <p>Because the <code>ModelPackageModelCard</code> schema does not include <code>model_package_details</code> and limits <code>model_overview</code> to <code>model_creator</code> and <code>model_artifact</code>, the sanitized <code>ModelCardContent</code> for a model package typically contains only <code>intended_uses.risk_rating</code> if it was provided when the model card was created. To retrieve the complete <code>ModelCardContent</code>, set <code>IncludedData</code> to <code>AllData</code> or omit the parameter.</p>"""
    model_life_cycle: NotRequired[
        "capo_sagemaker.types.model_life_cycle.ModelLifeCycle"
    ]
    """<p> A structure describing the current state of the model in its life cycle. </p>"""
    managed_storage_type: NotRequired[
        "capo_sagemaker.types.managed_storage_type.ManagedStorageType"
    ]
    """<p>The storage type of the model package.</p>"""

additional_inference_specifications instance-attribute

additional_inference_specifications: NotRequired[AdditionalInferenceSpecifications]

An array of additional Inference Specification objects. Each additional Inference Specification specifies artifacts based on this model package that can be used on inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts.

approval_description instance-attribute

approval_description: NotRequired[ApprovalDescription]

A description provided for the model approval.

certify_for_marketplace instance-attribute

certify_for_marketplace: NotRequired[CertifyForMarketplace]

Whether the model package is certified for listing on Amazon Web Services Marketplace.

created_by instance-attribute

created_by: NotRequired[UserContext]

creation_time instance-attribute

creation_time: NotRequired[CreationTime]

A timestamp specifying when the model package was created.

customer_metadata_properties instance-attribute

customer_metadata_properties: NotRequired[CustomerMetadataMap]

The metadata properties associated with the model package versions.

domain instance-attribute

domain: NotRequired[String]

The machine learning domain of the model package you specified. Common machine learning domains include computer vision and natural language processing.

drift_check_baselines instance-attribute

drift_check_baselines: NotRequired[DriftCheckBaselines]

Represents the drift check baselines that can be used when the model monitor is set using the model package. For more information, see the topic on Drift Detection against Previous Baselines in SageMaker Pipelines in the Amazon SageMaker Developer Guide.

inference_specification instance-attribute

inference_specification: NotRequired[InferenceSpecification]

Details about inference jobs that you can run with models based on this model package.

last_modified_by instance-attribute

last_modified_by: NotRequired[UserContext]

last_modified_time instance-attribute

last_modified_time: NotRequired[Timestamp]

The last time that the model package was modified.

managed_storage_type instance-attribute

managed_storage_type: NotRequired[ManagedStorageType]

The storage type of the model package.

metadata_properties instance-attribute

metadata_properties: NotRequired[MetadataProperties]

model_approval_status instance-attribute

model_approval_status: NotRequired[ModelApprovalStatus]

The approval status of the model package.

model_card instance-attribute

model_card: NotRequired[ModelPackageModelCard]

The model card associated with the model package. Since ModelPackageModelCard is tied to a model package, it is a specific usage of a model card and its schema is simplified compared to the schema of ModelCard. The ModelPackageModelCard schema does not include model_package_details, and model_overview is composed of the model_creator and model_artifact properties. For more information about the model package model card schema, see Model package model card schema. For more information about the model card associated with the model package, see View the Details of a Model Version.

When you set IncludedData to MetadataOnly in the request, ModelCardStatus is preserved and ModelCardContent is sanitized to include only the following JSON paths, when present in the model card:

  • model_overview.model_id

  • model_overview.model_name

  • intended_uses.risk_rating

  • model_package_details.model_package_group_name

  • model_package_details.model_package_arn

Because the ModelPackageModelCard schema does not include model_package_details and limits model_overview to model_creator and model_artifact, the sanitized ModelCardContent for a model package typically contains only intended_uses.risk_rating if it was provided when the model card was created. To retrieve the complete ModelCardContent, set IncludedData to AllData or omit the parameter.

model_life_cycle instance-attribute

model_life_cycle: NotRequired[ModelLifeCycle]

A structure describing the current state of the model in its life cycle.

model_metrics instance-attribute

model_metrics: NotRequired[ModelMetrics]

Metrics for the model.

model_package_arn instance-attribute

model_package_arn: NotRequired[ModelPackageArn]

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

model_package_description instance-attribute

model_package_description: NotRequired[EntityDescription]

A brief summary of the model package.

model_package_group_name instance-attribute

model_package_group_name: NotRequired[EntityName]

If the model is a versioned model, the name of the model group that the versioned model belongs to.

model_package_name instance-attribute

model_package_name: NotRequired[EntityName]

The name of the model package being described.

model_package_registration_type instance-attribute

model_package_registration_type: NotRequired[ModelPackageRegistrationType]

The package registration type of the model package output.

model_package_status instance-attribute

model_package_status: NotRequired[ModelPackageStatus]

The current status of the model package.

model_package_status_details instance-attribute

model_package_status_details: NotRequired[ModelPackageStatusDetails]

Details about the current status of the model package.

model_package_version instance-attribute

model_package_version: NotRequired[ModelPackageVersion]

The version of the model package.

sample_payload_url instance-attribute

sample_payload_url: NotRequired[String]

The Amazon Simple Storage Service (Amazon S3) path where the sample payload are stored. This path points to a single gzip compressed tar archive (.tar.gz suffix).

security_config instance-attribute

security_config: NotRequired[ModelPackageSecurityConfig]

The KMS Key ID (KMSKeyId) used for encryption of model package information.

skip_model_validation instance-attribute

skip_model_validation: NotRequired[SkipModelValidation]

Indicates if you want to skip model validation.

source_algorithm_specification instance-attribute

source_algorithm_specification: NotRequired[SourceAlgorithmSpecification]

Details about the algorithm that was used to create the model package.

source_uri instance-attribute

source_uri: NotRequired[ModelPackageSourceUri]

The URI of the source for the model package.

task instance-attribute

task: NotRequired[String]

The machine learning task you specified that your model package accomplishes. Common machine learning tasks include object detection and image classification.

validation_specification instance-attribute

validation_specification: NotRequired[ModelPackageValidationSpecification]

Configurations for one or more transform jobs that SageMaker runs to test the model package.