Class CfnModelPackage
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IModelPackageRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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 AWS Marketplace.
For more information, see CreateModelPackage .
Example:
// 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.*;
Object modelInput;
CfnModelPackage cfnModelPackage = CfnModelPackage.Builder.create(this, "MyCfnModelPackage")
.additionalInferenceSpecifications(List.of(AdditionalInferenceSpecificationDefinitionProperty.builder()
.containers(List.of(ModelPackageContainerDefinitionProperty.builder()
.image("image")
// the properties below are optional
.containerHostname("containerHostname")
.environment(Map.of(
"environmentKey", "environment"))
.framework("framework")
.frameworkVersion("frameworkVersion")
.imageDigest("imageDigest")
.modelDataSource(ModelDataSourceProperty.builder()
.s3DataSource(S3ModelDataSourceProperty.builder()
.compressionType("compressionType")
.s3DataType("s3DataType")
.s3Uri("s3Uri")
// the properties below are optional
.modelAccessConfig(ModelAccessConfigProperty.builder()
.acceptEula(false)
.build())
.build())
.build())
.modelDataUrl("modelDataUrl")
.modelInput(modelInput)
.nearestModelName("nearestModelName")
.build()))
.name("name")
// the properties below are optional
.description("description")
.supportedContentTypes(List.of("supportedContentTypes"))
.supportedRealtimeInferenceInstanceTypes(List.of("supportedRealtimeInferenceInstanceTypes"))
.supportedResponseMimeTypes(List.of("supportedResponseMimeTypes"))
.supportedTransformInstanceTypes(List.of("supportedTransformInstanceTypes"))
.build()))
.additionalInferenceSpecificationsToAdd(List.of(AdditionalInferenceSpecificationDefinitionProperty.builder()
.containers(List.of(ModelPackageContainerDefinitionProperty.builder()
.image("image")
// the properties below are optional
.containerHostname("containerHostname")
.environment(Map.of(
"environmentKey", "environment"))
.framework("framework")
.frameworkVersion("frameworkVersion")
.imageDigest("imageDigest")
.modelDataSource(ModelDataSourceProperty.builder()
.s3DataSource(S3ModelDataSourceProperty.builder()
.compressionType("compressionType")
.s3DataType("s3DataType")
.s3Uri("s3Uri")
// the properties below are optional
.modelAccessConfig(ModelAccessConfigProperty.builder()
.acceptEula(false)
.build())
.build())
.build())
.modelDataUrl("modelDataUrl")
.modelInput(modelInput)
.nearestModelName("nearestModelName")
.build()))
.name("name")
// the properties below are optional
.description("description")
.supportedContentTypes(List.of("supportedContentTypes"))
.supportedRealtimeInferenceInstanceTypes(List.of("supportedRealtimeInferenceInstanceTypes"))
.supportedResponseMimeTypes(List.of("supportedResponseMimeTypes"))
.supportedTransformInstanceTypes(List.of("supportedTransformInstanceTypes"))
.build()))
.approvalDescription("approvalDescription")
.certifyForMarketplace(false)
.clientToken("clientToken")
.customerMetadataProperties(Map.of(
"customerMetadataPropertiesKey", "customerMetadataProperties"))
.domain("domain")
.driftCheckBaselines(DriftCheckBaselinesProperty.builder()
.bias(DriftCheckBiasProperty.builder()
.configFile(FileSourceProperty.builder()
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.contentType("contentType")
.build())
.postTrainingConstraints(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.preTrainingConstraints(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.build())
.explainability(DriftCheckExplainabilityProperty.builder()
.configFile(FileSourceProperty.builder()
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.contentType("contentType")
.build())
.constraints(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.build())
.modelDataQuality(DriftCheckModelDataQualityProperty.builder()
.constraints(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.statistics(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.build())
.modelQuality(DriftCheckModelQualityProperty.builder()
.constraints(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.statistics(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.build())
.build())
.inferenceSpecification(InferenceSpecificationProperty.builder()
.containers(List.of(ModelPackageContainerDefinitionProperty.builder()
.image("image")
// the properties below are optional
.containerHostname("containerHostname")
.environment(Map.of(
"environmentKey", "environment"))
.framework("framework")
.frameworkVersion("frameworkVersion")
.imageDigest("imageDigest")
.modelDataSource(ModelDataSourceProperty.builder()
.s3DataSource(S3ModelDataSourceProperty.builder()
.compressionType("compressionType")
.s3DataType("s3DataType")
.s3Uri("s3Uri")
// the properties below are optional
.modelAccessConfig(ModelAccessConfigProperty.builder()
.acceptEula(false)
.build())
.build())
.build())
.modelDataUrl("modelDataUrl")
.modelInput(modelInput)
.nearestModelName("nearestModelName")
.build()))
.supportedContentTypes(List.of("supportedContentTypes"))
.supportedResponseMimeTypes(List.of("supportedResponseMimeTypes"))
// the properties below are optional
.supportedRealtimeInferenceInstanceTypes(List.of("supportedRealtimeInferenceInstanceTypes"))
.supportedTransformInstanceTypes(List.of("supportedTransformInstanceTypes"))
.build())
.lastModifiedTime("lastModifiedTime")
.metadataProperties(MetadataPropertiesProperty.builder()
.commitId("commitId")
.generatedBy("generatedBy")
.projectId("projectId")
.repository("repository")
.build())
.modelApprovalStatus("modelApprovalStatus")
.modelCard(ModelCardProperty.builder()
.modelCardContent("modelCardContent")
.modelCardStatus("modelCardStatus")
.build())
.modelMetrics(ModelMetricsProperty.builder()
.bias(BiasProperty.builder()
.postTrainingReport(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.preTrainingReport(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.report(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.build())
.explainability(ExplainabilityProperty.builder()
.report(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.build())
.modelDataQuality(ModelDataQualityProperty.builder()
.constraints(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.statistics(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.build())
.modelQuality(ModelQualityProperty.builder()
.constraints(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.statistics(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.build())
.build())
.modelPackageDescription("modelPackageDescription")
.modelPackageGroupName("modelPackageGroupName")
.modelPackageName("modelPackageName")
.modelPackageStatusDetails(ModelPackageStatusDetailsProperty.builder()
.validationStatuses(List.of(ModelPackageStatusItemProperty.builder()
.name("name")
.status("status")
// the properties below are optional
.failureReason("failureReason")
.build()))
.build())
.modelPackageVersion(123)
.samplePayloadUrl("samplePayloadUrl")
.securityConfig(SecurityConfigProperty.builder()
.kmsKeyId("kmsKeyId")
.build())
.skipModelValidation("skipModelValidation")
.sourceAlgorithmSpecification(SourceAlgorithmSpecificationProperty.builder()
.sourceAlgorithms(List.of(SourceAlgorithmProperty.builder()
.algorithmName("algorithmName")
// the properties below are optional
.modelDataUrl("modelDataUrl")
.build()))
.build())
.sourceUri("sourceUri")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.task("task")
.validationSpecification(ValidationSpecificationProperty.builder()
.validationProfiles(List.of(ValidationProfileProperty.builder()
.profileName("profileName")
.transformJobDefinition(TransformJobDefinitionProperty.builder()
.transformInput(TransformInputProperty.builder()
.dataSource(DataSourceProperty.builder()
.s3DataSource(S3DataSourceProperty.builder()
.s3DataType("s3DataType")
.s3Uri("s3Uri")
.build())
.build())
// the properties below are optional
.compressionType("compressionType")
.contentType("contentType")
.splitType("splitType")
.build())
.transformOutput(TransformOutputProperty.builder()
.s3OutputPath("s3OutputPath")
// the properties below are optional
.accept("accept")
.assembleWith("assembleWith")
.kmsKeyId("kmsKeyId")
.build())
.transformResources(TransformResourcesProperty.builder()
.instanceCount(123)
.instanceType("instanceType")
// the properties below are optional
.volumeKmsKeyId("volumeKmsKeyId")
.build())
// the properties below are optional
.batchStrategy("batchStrategy")
.environment(Map.of(
"environmentKey", "environment"))
.maxConcurrentTransforms(123)
.maxPayloadInMb(123)
.build())
.build()))
.validationRole("validationRole")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA structure of additional Inference Specification.static interfaceContains bias metrics for a model.static final classA fluent builder forCfnModelPackage.static interfaceDescribes the location of the channel data.static interfaceRepresents the drift check baselines that can be used when the model monitor is set using the model package.static interfaceRepresents the drift check bias baselines that can be used when the model monitor is set using the model package.static interfaceRepresents the drift check explainability baselines that can be used when the model monitor is set using the model package.static interfaceRepresents the drift check data quality baselines that can be used when the model monitor is set using the model package.static interfaceRepresents the drift check model quality baselines that can be used when the model monitor is set using the model package.static interfaceContains explainability metrics for a model.static interfaceContains details regarding the file source.static interfaceDefines how to perform inference generation after a training job is run.static interfaceMetadata properties of the tracking entity, trial, or trial component.static interfaceDetails about the metrics source.static interfaceThe access configuration file to control access to the ML model.static interfaceAn Amazon SageMaker Model Card.static interfaceData quality constraints and statistics for a model.static interfaceSpecifies the location of ML model data to deploy.static interfaceInput object for the model.static interfaceContains metrics captured from a model.static interfaceDescribes the Docker container for the model package.static interfaceSpecifies the validation and image scan statuses of the model package.static interfaceRepresents the overall status of a model package.static interfaceModel quality statistics and constraints.static interfaceDescribes the S3 data source.static interfaceSpecifies the S3 location of ML model data to deploy.static interfaceAn optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package information for regulated workloads with highly sensitive data.static interfaceSpecifies an algorithm that was used to create the model package.static interfaceA list of algorithms that were used to create a model package.static interfaceDescribes the input source of a transform job and the way the transform job consumes it.static interfaceDefines the input needed to run a transform job using the inference specification specified in the algorithm.static interfaceDescribes the results of a transform job.static interfaceDescribes the resources, including ML instance types and ML instance count, to use for transform job.static interfaceContains data, such as the inputs and targeted instance types that are used in the process of validating the model package.static interfaceSpecifies batch transform jobs that SageMaker runs to validate your model package.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.sagemaker.IModelPackageRef
IModelPackageRef.Jsii$Default, IModelPackageRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnModelPackage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnModelPackage(software.amazon.jsii.JsiiObjectRef objRef) CfnModelPackage(software.constructs.Construct scope, String id) Create a newAWS::SageMaker::ModelPackage.CfnModelPackage(software.constructs.Construct scope, String id, CfnModelPackageProps props) Create a newAWS::SageMaker::ModelPackage. -
Method Summary
Modifier and TypeMethodDescriptionAn array of additional Inference Specification objects.An array of additional Inference Specification objects to be added to the existing array.A description provided when the model approval is set.The time that the model package was created.The Amazon Resource Name (ARN) of the model package.The status of the model package.Whether the model package is to be certified to be listed on AWS Marketplace.A unique token that guarantees that the call to this API is idempotent.The metadata properties for the model package.The machine learning domain of your model package and its components.Represents the drift check baselines that can be used when the model monitor is set using the model package.Defines how to perform inference generation after a training job is run.The last time the model package was modified.Metadata properties of the tracking entity, trial, or trial component.The approval status of the model.An Amazon SageMaker Model Card.Metrics for the model.The description of the model package.The model group to which the model belongs.The name of the model package.A reference to a ModelPackage resource.Specifies the validation and image scan statuses of the model package.The version number of a versioned model.The Amazon Simple Storage Service path where the sample payload are stored.An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package information for regulated workloads with highly sensitive data.Indicates if you want to skip model validation.A list of algorithms that were used to create a model package.The URI of the source for the model package.getTags()Tag Manager which manages the tags for this resource.A list of the tags associated with the model package.getTask()The machine learning task your model package accomplishes.Specifies batch transform jobs that SageMaker runs to validate your model package.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidAn array of additional Inference Specification objects.voidAn array of additional Inference Specification objects.voidAn array of additional Inference Specification objects to be added to the existing array.voidAn array of additional Inference Specification objects to be added to the existing array.voidsetApprovalDescription(String value) A description provided when the model approval is set.voidsetCertifyForMarketplace(Boolean value) Whether the model package is to be certified to be listed on AWS Marketplace.voidWhether the model package is to be certified to be listed on AWS Marketplace.voidsetClientToken(String value) A unique token that guarantees that the call to this API is idempotent.voidsetCustomerMetadataProperties(Map<String, String> value) The metadata properties for the model package.voidThe metadata properties for the model package.voidThe machine learning domain of your model package and its components.voidRepresents the drift check baselines that can be used when the model monitor is set using the model package.voidRepresents the drift check baselines that can be used when the model monitor is set using the model package.voidDefines how to perform inference generation after a training job is run.voidDefines how to perform inference generation after a training job is run.voidsetLastModifiedTime(String value) The last time the model package was modified.voidsetMetadataProperties(IResolvable value) Metadata properties of the tracking entity, trial, or trial component.voidMetadata properties of the tracking entity, trial, or trial component.voidsetModelApprovalStatus(String value) The approval status of the model.voidsetModelCard(IResolvable value) An Amazon SageMaker Model Card.voidAn Amazon SageMaker Model Card.voidsetModelMetrics(IResolvable value) Metrics for the model.voidMetrics for the model.voidsetModelPackageDescription(String value) The description of the model package.voidsetModelPackageGroupName(String value) The model group to which the model belongs.voidsetModelPackageName(String value) The name of the model package.voidSpecifies the validation and image scan statuses of the model package.voidSpecifies the validation and image scan statuses of the model package.voidsetModelPackageVersion(Number value) The version number of a versioned model.voidsetSamplePayloadUrl(String value) The Amazon Simple Storage Service path where the sample payload are stored.voidsetSecurityConfig(IResolvable value) An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package information for regulated workloads with highly sensitive data.voidAn optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package information for regulated workloads with highly sensitive data.voidsetSkipModelValidation(String value) Indicates if you want to skip model validation.voidA list of algorithms that were used to create a model package.voidA list of algorithms that were used to create a model package.voidsetSourceUri(String value) The URI of the source for the model package.voidsetTagsRaw(List<CfnTag> value) A list of the tags associated with the model package.voidThe machine learning task your model package accomplishes.voidSpecifies batch transform jobs that SageMaker runs to validate your model package.voidSpecifies batch transform jobs that SageMaker runs to validate your model package.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnModelPackage
protected CfnModelPackage(software.amazon.jsii.JsiiObjectRef objRef) -
CfnModelPackage
protected CfnModelPackage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnModelPackage
@Stability(Stable) public CfnModelPackage(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnModelPackageProps props) Create a newAWS::SageMaker::ModelPackage.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnModelPackage
@Stability(Stable) public CfnModelPackage(@NotNull software.constructs.Construct scope, @NotNull String id) Create a newAWS::SageMaker::ModelPackage.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreationTime
The time that the model package was created. -
getAttrModelPackageArn
The Amazon Resource Name (ARN) of the model package. -
getAttrModelPackageStatus
The status of the model package. This can be one of the following values.PENDING- The model package creation is pending.IN_PROGRESS- The model package is in the process of being created.COMPLETED- The model package was successfully created.FAILED- The model package creation failed.DELETING- The model package is in the process of being deleted.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getModelPackageRef
A reference to a ModelPackage resource.- Specified by:
getModelPackageRefin interfaceIModelPackageRef
-
getTags
Tag Manager which manages the tags for this resource. -
getAdditionalInferenceSpecifications
An array of additional Inference Specification objects.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnModelPackage.AdditionalInferenceSpecificationDefinitionProperty> -
setAdditionalInferenceSpecifications
An array of additional Inference Specification objects. -
setAdditionalInferenceSpecifications
An array of additional Inference Specification objects. -
getAdditionalInferenceSpecificationsToAdd
An array of additional Inference Specification objects to be added to the existing array.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnModelPackage.AdditionalInferenceSpecificationDefinitionProperty> -
setAdditionalInferenceSpecificationsToAdd
@Stability(Stable) public void setAdditionalInferenceSpecificationsToAdd(@Nullable IResolvable value) An array of additional Inference Specification objects to be added to the existing array. -
setAdditionalInferenceSpecificationsToAdd
@Stability(Stable) public void setAdditionalInferenceSpecificationsToAdd(@Nullable List<Object> value) An array of additional Inference Specification objects to be added to the existing array. -
getApprovalDescription
A description provided when the model approval is set. -
setApprovalDescription
A description provided when the model approval is set. -
getCertifyForMarketplace
Whether the model package is to be certified to be listed on AWS Marketplace.Returns union: either
BooleanorIResolvable -
setCertifyForMarketplace
Whether the model package is to be certified to be listed on AWS Marketplace. -
setCertifyForMarketplace
Whether the model package is to be certified to be listed on AWS Marketplace. -
getClientToken
A unique token that guarantees that the call to this API is idempotent. -
setClientToken
A unique token that guarantees that the call to this API is idempotent. -
getCustomerMetadataProperties
The metadata properties for the model package.Returns union: either Mapinvalid input: '<'String,
String> orIResolvable -
setCustomerMetadataProperties
The metadata properties for the model package. -
setCustomerMetadataProperties
The metadata properties for the model package. -
getDomain
The machine learning domain of your model package and its components. -
setDomain
The machine learning domain of your model package and its components. -
getDriftCheckBaselines
Represents the drift check baselines that can be used when the model monitor is set using the model package.Returns union: either
IResolvableorCfnModelPackage.DriftCheckBaselinesProperty -
setDriftCheckBaselines
Represents the drift check baselines that can be used when the model monitor is set using the model package. -
setDriftCheckBaselines
@Stability(Stable) public void setDriftCheckBaselines(@Nullable CfnModelPackage.DriftCheckBaselinesProperty value) Represents the drift check baselines that can be used when the model monitor is set using the model package. -
getInferenceSpecification
Defines how to perform inference generation after a training job is run.Returns union: either
IResolvableorCfnModelPackage.InferenceSpecificationProperty -
setInferenceSpecification
Defines how to perform inference generation after a training job is run. -
setInferenceSpecification
@Stability(Stable) public void setInferenceSpecification(@Nullable CfnModelPackage.InferenceSpecificationProperty value) Defines how to perform inference generation after a training job is run. -
getLastModifiedTime
The last time the model package was modified. -
setLastModifiedTime
The last time the model package was modified. -
getMetadataProperties
Metadata properties of the tracking entity, trial, or trial component.Returns union: either
IResolvableorCfnModelPackage.MetadataPropertiesProperty -
setMetadataProperties
Metadata properties of the tracking entity, trial, or trial component. -
setMetadataProperties
@Stability(Stable) public void setMetadataProperties(@Nullable CfnModelPackage.MetadataPropertiesProperty value) Metadata properties of the tracking entity, trial, or trial component. -
getModelApprovalStatus
The approval status of the model.This can be one of the following values.
-
setModelApprovalStatus
The approval status of the model.This can be one of the following values.
-
getModelCard
An Amazon SageMaker Model Card.Returns union: either
IResolvableorCfnModelPackage.ModelCardProperty -
setModelCard
An Amazon SageMaker Model Card. -
setModelCard
An Amazon SageMaker Model Card. -
getModelMetrics
Metrics for the model.Returns union: either
IResolvableorCfnModelPackage.ModelMetricsProperty -
setModelMetrics
Metrics for the model. -
setModelMetrics
@Stability(Stable) public void setModelMetrics(@Nullable CfnModelPackage.ModelMetricsProperty value) Metrics for the model. -
getModelPackageDescription
The description of the model package. -
setModelPackageDescription
The description of the model package. -
getModelPackageGroupName
The model group to which the model belongs. -
setModelPackageGroupName
The model group to which the model belongs. -
getModelPackageName
The name of the model package.The name can be as follows:.
-
setModelPackageName
The name of the model package.The name can be as follows:.
-
getModelPackageStatusDetails
Specifies the validation and image scan statuses of the model package.Returns union: either
IResolvableorCfnModelPackage.ModelPackageStatusDetailsProperty -
setModelPackageStatusDetails
Specifies the validation and image scan statuses of the model package. -
setModelPackageStatusDetails
@Stability(Stable) public void setModelPackageStatusDetails(@Nullable CfnModelPackage.ModelPackageStatusDetailsProperty value) Specifies the validation and image scan statuses of the model package. -
getModelPackageVersion
The version number of a versioned model. -
setModelPackageVersion
The version number of a versioned model. -
getSamplePayloadUrl
The Amazon Simple Storage Service path where the sample payload are stored. -
setSamplePayloadUrl
The Amazon Simple Storage Service path where the sample payload are stored. -
getSecurityConfig
An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package information for regulated workloads with highly sensitive data.Returns union: either
IResolvableorCfnModelPackage.SecurityConfigProperty -
setSecurityConfig
An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package information for regulated workloads with highly sensitive data. -
setSecurityConfig
@Stability(Stable) public void setSecurityConfig(@Nullable CfnModelPackage.SecurityConfigProperty value) An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package information for regulated workloads with highly sensitive data. -
getSkipModelValidation
Indicates if you want to skip model validation. -
setSkipModelValidation
Indicates if you want to skip model validation. -
getSourceAlgorithmSpecification
A list of algorithms that were used to create a model package.Returns union: either
IResolvableorCfnModelPackage.SourceAlgorithmSpecificationProperty -
setSourceAlgorithmSpecification
A list of algorithms that were used to create a model package. -
setSourceAlgorithmSpecification
@Stability(Stable) public void setSourceAlgorithmSpecification(@Nullable CfnModelPackage.SourceAlgorithmSpecificationProperty value) A list of algorithms that were used to create a model package. -
getSourceUri
The URI of the source for the model package. -
setSourceUri
The URI of the source for the model package. -
getTagsRaw
A list of the tags associated with the model package. -
setTagsRaw
A list of the tags associated with the model package. -
getTask
The machine learning task your model package accomplishes. -
setTask
The machine learning task your model package accomplishes. -
getValidationSpecification
Specifies batch transform jobs that SageMaker runs to validate your model package.Returns union: either
IResolvableorCfnModelPackage.ValidationSpecificationProperty -
setValidationSpecification
Specifies batch transform jobs that SageMaker runs to validate your model package. -
setValidationSpecification
@Stability(Stable) public void setValidationSpecification(@Nullable CfnModelPackage.ValidationSpecificationProperty value) Specifies batch transform jobs that SageMaker runs to validate your model package.
-