/AWS1/CL_SGMMODELPACKAGE¶
A container for your trained model that can be deployed for SageMaker inference. This can include inference code, artifacts, and metadata. The model package type can be one of the following.
-
Versioned model: A part of a model package group in Model Registry.
-
Unversioned model: Not part of a model package group and used in Amazon Web Services Marketplace.
For more information, see CreateModelPackage .
CONSTRUCTOR¶
IMPORTING¶
Optional arguments:¶
iv_modelpackagename TYPE /AWS1/SGMENTITYNAME /AWS1/SGMENTITYNAME¶
The name of the model package. The name can be as follows:
For a versioned model, the name is automatically generated by SageMaker Model Registry and follows the format '
ModelPackageGroupName/ModelPackageVersion'.For an unversioned model, you must provide the name.
iv_modelpackagegroupname TYPE /AWS1/SGMENTITYNAME /AWS1/SGMENTITYNAME¶
The model group to which the model belongs.
iv_modelpackageversion TYPE /AWS1/SGMMODELPACKAGEVERSION /AWS1/SGMMODELPACKAGEVERSION¶
The version number of a versioned model.
iv_modelpackageregtype TYPE /AWS1/SGMMODELPACKAGEREGTYPE /AWS1/SGMMODELPACKAGEREGTYPE¶
The package registration type of the model package.
iv_modelpackagearn TYPE /AWS1/SGMMODELPACKAGEARN /AWS1/SGMMODELPACKAGEARN¶
The Amazon Resource Name (ARN) of the model package.
iv_modelpackagedescription TYPE /AWS1/SGMENTITYDESCRIPTION /AWS1/SGMENTITYDESCRIPTION¶
The description of the model package.
iv_creationtime TYPE /AWS1/SGMCREATIONTIME /AWS1/SGMCREATIONTIME¶
The time that the model package was created.
io_inferencespecification TYPE REF TO /AWS1/CL_SGMINFERENCESPEC /AWS1/CL_SGMINFERENCESPEC¶
Defines how to perform inference generation after a training job is run.
io_sourcealgorithmspec TYPE REF TO /AWS1/CL_SGMSOURCEALGSPEC /AWS1/CL_SGMSOURCEALGSPEC¶
A list of algorithms that were used to create a model package.
io_validationspecification TYPE REF TO /AWS1/CL_SGMMDELPACKAGEVALID00 /AWS1/CL_SGMMDELPACKAGEVALID00¶
Specifies batch transform jobs that SageMaker runs to validate your model package.
iv_modelpackagestatus TYPE /AWS1/SGMMODELPACKAGESTATUS /AWS1/SGMMODELPACKAGESTATUS¶
The status of the model package. This can be one of the following values.
PENDING- The model package is pending being created.
IN_PROGRESS- The model package is in the process of being created.
COMPLETED- The model package was successfully created.
FAILED- The model package failed.
DELETING- The model package is in the process of being deleted.
io_modelpackagestatusdetails TYPE REF TO /AWS1/CL_SGMMDELPACKAGESTATD00 /AWS1/CL_SGMMDELPACKAGESTATD00¶
Specifies the validation and image scan statuses of the model package.
iv_certifyformarketplace TYPE /AWS1/SGMCERTIFYFORMARKETPLACE /AWS1/SGMCERTIFYFORMARKETPLACE¶
Whether the model package is to be certified to be listed on Amazon Web Services Marketplace. For information about listing model packages on Amazon Web Services Marketplace, see List Your Algorithm or Model Package on Amazon Web Services Marketplace.
iv_modelapprovalstatus TYPE /AWS1/SGMMODELAPPROVALSTATUS /AWS1/SGMMODELAPPROVALSTATUS¶
The approval status of the model. This can be one of the following values.
APPROVED- The model is approved
REJECTED- The model is rejected.
PENDING_MANUAL_APPROVAL- The model is waiting for manual approval.
io_createdby TYPE REF TO /AWS1/CL_SGMUSERCONTEXT /AWS1/CL_SGMUSERCONTEXT¶
Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.
io_metadataproperties TYPE REF TO /AWS1/CL_SGMMETADATAPROPERTIES /AWS1/CL_SGMMETADATAPROPERTIES¶
Metadata properties of the tracking entity, trial, or trial component.
io_modelmetrics TYPE REF TO /AWS1/CL_SGMMODELMETRICS /AWS1/CL_SGMMODELMETRICS¶
Metrics for the model.
iv_lastmodifiedtime TYPE /AWS1/SGMTIMESTAMP /AWS1/SGMTIMESTAMP¶
The last time the model package was modified.
io_lastmodifiedby TYPE REF TO /AWS1/CL_SGMUSERCONTEXT /AWS1/CL_SGMUSERCONTEXT¶
Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.
iv_approvaldescription TYPE /AWS1/SGMAPPROVALDESCRIPTION /AWS1/SGMAPPROVALDESCRIPTION¶
A description provided when the model approval is set.
iv_domain TYPE /AWS1/SGMSTRING /AWS1/SGMSTRING¶
The machine learning domain of your model package and its components. Common machine learning domains include computer vision and natural language processing.
iv_task TYPE /AWS1/SGMSTRING /AWS1/SGMSTRING¶
The machine learning task your model package accomplishes. Common machine learning tasks include object detection and image classification.
iv_samplepayloadurl TYPE /AWS1/SGMSTRING /AWS1/SGMSTRING¶
The Amazon Simple Storage Service path where the sample payload are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).
it_additionalinferencespecs TYPE /AWS1/CL_SGMADDLINFERENCESPE00=>TT_ADDITIONALINFERENCESPECS TT_ADDITIONALINFERENCESPECS¶
An array of additional Inference Specification objects.
iv_sourceuri TYPE /AWS1/SGMMODELPACKAGESOURCEURI /AWS1/SGMMODELPACKAGESOURCEURI¶
The URI of the source for the model package.
io_securityconfig TYPE REF TO /AWS1/CL_SGMMODELPACKAGESECCFG /AWS1/CL_SGMMODELPACKAGESECCFG¶
An optional Key Management Service key to encrypt, decrypt, and re-encrypt model package information for regulated workloads with highly sensitive data.
io_modelcard TYPE REF TO /AWS1/CL_SGMMDELPACKAGEMDELC00 /AWS1/CL_SGMMDELPACKAGEMDELC00¶
The model card associated with the model package. Since
ModelPackageModelCardis tied to a model package, it is a specific usage of a model card and its schema is simplified compared to the schema ofModelCard. TheModelPackageModelCardschema does not includemodel_package_details, andmodel_overviewis composed of themodel_creatorandmodel_artifactproperties. 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.
io_modellifecycle TYPE REF TO /AWS1/CL_SGMMODELLIFECYCLE /AWS1/CL_SGMMODELLIFECYCLE¶
A structure describing the current state of the model in its life cycle.
it_tags TYPE /AWS1/CL_SGMTAG=>TT_TAGLIST TT_TAGLIST¶
A list of the tags associated with the model package. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
it_customermetadataprps TYPE /AWS1/CL_SGMCUSTOMERMETMAP_W=>TT_CUSTOMERMETADATAMAP TT_CUSTOMERMETADATAMAP¶
The metadata properties for the model package.
io_driftcheckbaselines TYPE REF TO /AWS1/CL_SGMDRIFTCHECKBASELI00 /AWS1/CL_SGMDRIFTCHECKBASELI00¶
Represents the drift check baselines that can be used when the model monitor is set using the model package.
iv_skipmodelvalidation TYPE /AWS1/SGMSKIPMODELVALIDATION /AWS1/SGMSKIPMODELVALIDATION¶
Indicates if you want to skip model validation.
Queryable Attributes¶
ModelPackageName¶
The name of the model package. The name can be as follows:
For a versioned model, the name is automatically generated by SageMaker Model Registry and follows the format '
ModelPackageGroupName/ModelPackageVersion'.For an unversioned model, you must provide the name.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MODELPACKAGENAME() |
Getter for MODELPACKAGENAME, with configurable default |
ASK_MODELPACKAGENAME() |
Getter for MODELPACKAGENAME w/ exceptions if field has no va |
HAS_MODELPACKAGENAME() |
Determine if MODELPACKAGENAME has a value |
ModelPackageGroupName¶
The model group to which the model belongs.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MODELPACKAGEGROUPNAME() |
Getter for MODELPACKAGEGROUPNAME, with configurable default |
ASK_MODELPACKAGEGROUPNAME() |
Getter for MODELPACKAGEGROUPNAME w/ exceptions if field has |
HAS_MODELPACKAGEGROUPNAME() |
Determine if MODELPACKAGEGROUPNAME has a value |
ModelPackageVersion¶
The version number of a versioned model.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MODELPACKAGEVERSION() |
Getter for MODELPACKAGEVERSION, with configurable default |
ASK_MODELPACKAGEVERSION() |
Getter for MODELPACKAGEVERSION w/ exceptions if field has no |
HAS_MODELPACKAGEVERSION() |
Determine if MODELPACKAGEVERSION has a value |
ModelPackageRegistrationType¶
The package registration type of the model package.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MODELPACKAGEREGTYPE() |
Getter for MODELPACKAGEREGISTRATIONTYPE, with configurable d |
ASK_MODELPACKAGEREGTYPE() |
Getter for MODELPACKAGEREGISTRATIONTYPE w/ exceptions if fie |
HAS_MODELPACKAGEREGTYPE() |
Determine if MODELPACKAGEREGISTRATIONTYPE has a value |
ModelPackageArn¶
The Amazon Resource Name (ARN) of the model package.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MODELPACKAGEARN() |
Getter for MODELPACKAGEARN, with configurable default |
ASK_MODELPACKAGEARN() |
Getter for MODELPACKAGEARN w/ exceptions if field has no val |
HAS_MODELPACKAGEARN() |
Determine if MODELPACKAGEARN has a value |
ModelPackageDescription¶
The description of the model package.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MODELPACKAGEDESCRIPTION() |
Getter for MODELPACKAGEDESCRIPTION, with configurable defaul |
ASK_MODELPACKAGEDESCRIPTION() |
Getter for MODELPACKAGEDESCRIPTION w/ exceptions if field ha |
HAS_MODELPACKAGEDESCRIPTION() |
Determine if MODELPACKAGEDESCRIPTION has a value |
CreationTime¶
The time that the model package was created.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_CREATIONTIME() |
Getter for CREATIONTIME, with configurable default |
ASK_CREATIONTIME() |
Getter for CREATIONTIME w/ exceptions if field has no value |
HAS_CREATIONTIME() |
Determine if CREATIONTIME has a value |
InferenceSpecification¶
Defines how to perform inference generation after a training job is run.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_INFERENCESPECIFICATION() |
Getter for INFERENCESPECIFICATION |
SourceAlgorithmSpecification¶
A list of algorithms that were used to create a model package.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_SOURCEALGORITHMSPEC() |
Getter for SOURCEALGORITHMSPECIFICATION |
ValidationSpecification¶
Specifies batch transform jobs that SageMaker runs to validate your model package.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_VALIDATIONSPECIFICATION() |
Getter for VALIDATIONSPECIFICATION |
ModelPackageStatus¶
The status of the model package. This can be one of the following values.
PENDING- The model package is pending being created.
IN_PROGRESS- The model package is in the process of being created.
COMPLETED- The model package was successfully created.
FAILED- The model package failed.
DELETING- The model package is in the process of being deleted.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MODELPACKAGESTATUS() |
Getter for MODELPACKAGESTATUS, with configurable default |
ASK_MODELPACKAGESTATUS() |
Getter for MODELPACKAGESTATUS w/ exceptions if field has no |
HAS_MODELPACKAGESTATUS() |
Determine if MODELPACKAGESTATUS has a value |
ModelPackageStatusDetails¶
Specifies the validation and image scan statuses of the model package.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MODELPACKAGESTATUSDETS() |
Getter for MODELPACKAGESTATUSDETAILS |
CertifyForMarketplace¶
Whether the model package is to be certified to be listed on Amazon Web Services Marketplace. For information about listing model packages on Amazon Web Services Marketplace, see List Your Algorithm or Model Package on Amazon Web Services Marketplace.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_CERTIFYFORMARKETPLACE() |
Getter for CERTIFYFORMARKETPLACE, with configurable default |
ASK_CERTIFYFORMARKETPLACE() |
Getter for CERTIFYFORMARKETPLACE w/ exceptions if field has |
HAS_CERTIFYFORMARKETPLACE() |
Determine if CERTIFYFORMARKETPLACE has a value |
ModelApprovalStatus¶
The approval status of the model. This can be one of the following values.
APPROVED- The model is approved
REJECTED- The model is rejected.
PENDING_MANUAL_APPROVAL- The model is waiting for manual approval.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MODELAPPROVALSTATUS() |
Getter for MODELAPPROVALSTATUS, with configurable default |
ASK_MODELAPPROVALSTATUS() |
Getter for MODELAPPROVALSTATUS w/ exceptions if field has no |
HAS_MODELAPPROVALSTATUS() |
Determine if MODELAPPROVALSTATUS has a value |
CreatedBy¶
Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_CREATEDBY() |
Getter for CREATEDBY |
MetadataProperties¶
Metadata properties of the tracking entity, trial, or trial component.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_METADATAPROPERTIES() |
Getter for METADATAPROPERTIES |
ModelMetrics¶
Metrics for the model.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MODELMETRICS() |
Getter for MODELMETRICS |
LastModifiedTime¶
The last time the model package was modified.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_LASTMODIFIEDTIME() |
Getter for LASTMODIFIEDTIME, with configurable default |
ASK_LASTMODIFIEDTIME() |
Getter for LASTMODIFIEDTIME w/ exceptions if field has no va |
HAS_LASTMODIFIEDTIME() |
Determine if LASTMODIFIEDTIME has a value |
LastModifiedBy¶
Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_LASTMODIFIEDBY() |
Getter for LASTMODIFIEDBY |
ApprovalDescription¶
A description provided when the model approval is set.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_APPROVALDESCRIPTION() |
Getter for APPROVALDESCRIPTION, with configurable default |
ASK_APPROVALDESCRIPTION() |
Getter for APPROVALDESCRIPTION w/ exceptions if field has no |
HAS_APPROVALDESCRIPTION() |
Determine if APPROVALDESCRIPTION has a value |
Domain¶
The machine learning domain of your model package and its components. Common machine learning domains include computer vision and natural language processing.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_DOMAIN() |
Getter for DOMAIN, with configurable default |
ASK_DOMAIN() |
Getter for DOMAIN w/ exceptions if field has no value |
HAS_DOMAIN() |
Determine if DOMAIN has a value |
Task¶
The machine learning task your model package accomplishes. Common machine learning tasks include object detection and image classification.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_TASK() |
Getter for TASK, with configurable default |
ASK_TASK() |
Getter for TASK w/ exceptions if field has no value |
HAS_TASK() |
Determine if TASK has a value |
SamplePayloadUrl¶
The Amazon Simple Storage Service path where the sample payload are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_SAMPLEPAYLOADURL() |
Getter for SAMPLEPAYLOADURL, with configurable default |
ASK_SAMPLEPAYLOADURL() |
Getter for SAMPLEPAYLOADURL w/ exceptions if field has no va |
HAS_SAMPLEPAYLOADURL() |
Determine if SAMPLEPAYLOADURL has a value |
AdditionalInferenceSpecifications¶
An array of additional Inference Specification objects.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_ADDITIONALINFERENCESPECS() |
Getter for ADDITIONALINFERENCESPECS, with configurable defau |
ASK_ADDITIONALINFERENCESPECS() |
Getter for ADDITIONALINFERENCESPECS w/ exceptions if field h |
HAS_ADDITIONALINFERENCESPECS() |
Determine if ADDITIONALINFERENCESPECS has a value |
SourceUri¶
The URI of the source for the model package.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_SOURCEURI() |
Getter for SOURCEURI, with configurable default |
ASK_SOURCEURI() |
Getter for SOURCEURI w/ exceptions if field has no value |
HAS_SOURCEURI() |
Determine if SOURCEURI has a value |
SecurityConfig¶
An optional Key Management Service key to encrypt, decrypt, and re-encrypt model package information for regulated workloads with highly sensitive data.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_SECURITYCONFIG() |
Getter for SECURITYCONFIG |
ModelCard¶
The model card associated with the model package. Since
ModelPackageModelCardis tied to a model package, it is a specific usage of a model card and its schema is simplified compared to the schema ofModelCard. TheModelPackageModelCardschema does not includemodel_package_details, andmodel_overviewis composed of themodel_creatorandmodel_artifactproperties. 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.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MODELCARD() |
Getter for MODELCARD |
ModelLifeCycle¶
A structure describing the current state of the model in its life cycle.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MODELLIFECYCLE() |
Getter for MODELLIFECYCLE |
Tags¶
A list of the tags associated with the model package. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_TAGS() |
Getter for TAGS, with configurable default |
ASK_TAGS() |
Getter for TAGS w/ exceptions if field has no value |
HAS_TAGS() |
Determine if TAGS has a value |
CustomerMetadataProperties¶
The metadata properties for the model package.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_CUSTOMERMETADATAPRPS() |
Getter for CUSTOMERMETADATAPROPERTIES, with configurable def |
ASK_CUSTOMERMETADATAPRPS() |
Getter for CUSTOMERMETADATAPROPERTIES w/ exceptions if field |
HAS_CUSTOMERMETADATAPRPS() |
Determine if CUSTOMERMETADATAPROPERTIES has a value |
DriftCheckBaselines¶
Represents the drift check baselines that can be used when the model monitor is set using the model package.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_DRIFTCHECKBASELINES() |
Getter for DRIFTCHECKBASELINES |
SkipModelValidation¶
Indicates if you want to skip model validation.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_SKIPMODELVALIDATION() |
Getter for SKIPMODELVALIDATION, with configurable default |
ASK_SKIPMODELVALIDATION() |
Getter for SKIPMODELVALIDATION w/ exceptions if field has no |
HAS_SKIPMODELVALIDATION() |
Determine if SKIPMODELVALIDATION has a value |