Class: AWSCDK::Sagemaker::CfnModelPackageProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelPackageProps
- Defined in:
- sagemaker/cfn_model_package_props.rb
Overview
Properties for defining a CfnModelPackage.
Instance Attribute Summary collapse
-
#additional_inference_specifications ⇒ AWSCDK::IResolvable, ...
readonly
An array of additional Inference Specification objects.
-
#additional_inference_specifications_to_add ⇒ AWSCDK::IResolvable, ...
readonly
An array of additional Inference Specification objects to be added to the existing array.
-
#approval_description ⇒ String?
readonly
A description provided when the model approval is set.
-
#certify_for_marketplace ⇒ Boolean, ...
readonly
Whether the model package is to be certified to be listed on AWS Marketplace.
-
#client_token ⇒ String?
readonly
A unique token that guarantees that the call to this API is idempotent.
-
#customer_metadata_properties ⇒ AWSCDK::IResolvable, ...
readonly
The metadata properties for the model package.
-
#domain ⇒ String?
readonly
The machine learning domain of your model package and its components.
-
#drift_check_baselines ⇒ AWSCDK::IResolvable, ...
readonly
Represents the drift check baselines that can be used when the model monitor is set using the model package.
-
#inference_specification ⇒ AWSCDK::IResolvable, ...
readonly
Defines how to perform inference generation after a training job is run.
-
#last_modified_time ⇒ String?
readonly
The last time the model package was modified.
-
#metadata_properties ⇒ AWSCDK::IResolvable, ...
readonly
Metadata properties of the tracking entity, trial, or trial component.
-
#model_approval_status ⇒ String?
readonly
The approval status of the model.
-
#model_card ⇒ AWSCDK::IResolvable, ...
readonly
An Amazon SageMaker Model Card.
-
#model_metrics ⇒ AWSCDK::IResolvable, ...
readonly
Metrics for the model.
-
#model_package_description ⇒ String?
readonly
The description of the model package.
-
#model_package_group_name ⇒ String?
readonly
The model group to which the model belongs.
-
#model_package_name ⇒ String?
readonly
The name of the model package.
-
#model_package_status_details ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the validation and image scan statuses of the model package.
-
#model_package_version ⇒ Numeric?
readonly
The version number of a versioned model.
-
#sample_payload_url ⇒ String?
readonly
The Amazon Simple Storage Service path where the sample payload are stored.
-
#security_config ⇒ AWSCDK::IResolvable, ...
readonly
An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package information for regulated workloads with highly sensitive data.
-
#skip_model_validation ⇒ String?
readonly
Indicates if you want to skip model validation.
-
#source_algorithm_specification ⇒ AWSCDK::IResolvable, ...
readonly
A list of algorithms that were used to create a model package.
-
#source_uri ⇒ String?
readonly
The URI of the source for the model package.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A list of the tags associated with the model package.
-
#task ⇒ String?
readonly
The machine learning task your model package accomplishes.
-
#validation_specification ⇒ AWSCDK::IResolvable, ...
readonly
Specifies batch transform jobs that SageMaker runs to validate your model package.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(additional_inference_specifications: nil, additional_inference_specifications_to_add: nil, approval_description: nil, certify_for_marketplace: nil, client_token: nil, customer_metadata_properties: nil, domain: nil, drift_check_baselines: nil, inference_specification: nil, last_modified_time: nil, metadata_properties: nil, model_approval_status: nil, model_card: nil, model_metrics: nil, model_package_description: nil, model_package_group_name: nil, model_package_name: nil, model_package_status_details: nil, model_package_version: nil, sample_payload_url: nil, security_config: nil, skip_model_validation: nil, source_algorithm_specification: nil, source_uri: nil, tags: nil, task: nil, validation_specification: nil) ⇒ CfnModelPackageProps
constructor
A new instance of CfnModelPackageProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(additional_inference_specifications: nil, additional_inference_specifications_to_add: nil, approval_description: nil, certify_for_marketplace: nil, client_token: nil, customer_metadata_properties: nil, domain: nil, drift_check_baselines: nil, inference_specification: nil, last_modified_time: nil, metadata_properties: nil, model_approval_status: nil, model_card: nil, model_metrics: nil, model_package_description: nil, model_package_group_name: nil, model_package_name: nil, model_package_status_details: nil, model_package_version: nil, sample_payload_url: nil, security_config: nil, skip_model_validation: nil, source_algorithm_specification: nil, source_uri: nil, tags: nil, task: nil, validation_specification: nil) ⇒ CfnModelPackageProps
Returns a new instance of CfnModelPackageProps.
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'sagemaker/cfn_model_package_props.rb', line 36 def initialize(additional_inference_specifications: nil, additional_inference_specifications_to_add: nil, approval_description: nil, certify_for_marketplace: nil, client_token: nil, customer_metadata_properties: nil, domain: nil, drift_check_baselines: nil, inference_specification: nil, last_modified_time: nil, metadata_properties: nil, model_approval_status: nil, model_card: nil, model_metrics: nil, model_package_description: nil, model_package_group_name: nil, model_package_name: nil, model_package_status_details: nil, model_package_version: nil, sample_payload_url: nil, security_config: nil, skip_model_validation: nil, source_algorithm_specification: nil, source_uri: nil, tags: nil, task: nil, validation_specification: nil) @additional_inference_specifications = additional_inference_specifications Jsii::Type.check_type(@additional_inference_specifications, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2FnZW1ha2VyLkNmbk1vZGVsUGFja2FnZS5BZGRpdGlvbmFsSW5mZXJlbmNlU3BlY2lmaWNhdGlvbkRlZmluaXRpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "additionalInferenceSpecifications") unless @additional_inference_specifications.nil? @additional_inference_specifications_to_add = additional_inference_specifications_to_add Jsii::Type.check_type(@additional_inference_specifications_to_add, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2FnZW1ha2VyLkNmbk1vZGVsUGFja2FnZS5BZGRpdGlvbmFsSW5mZXJlbmNlU3BlY2lmaWNhdGlvbkRlZmluaXRpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "additionalInferenceSpecificationsToAdd") unless @additional_inference_specifications_to_add.nil? @approval_description = approval_description Jsii::Type.check_type(@approval_description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "approvalDescription") unless @approval_description.nil? @certify_for_marketplace = certify_for_marketplace Jsii::Type.check_type(@certify_for_marketplace, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "certifyForMarketplace") unless @certify_for_marketplace.nil? @client_token = client_token Jsii::Type.check_type(@client_token, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientToken") unless @client_token.nil? @customer_metadata_properties = Jsii::Type.check_type(@customer_metadata_properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "customerMetadataProperties") unless @customer_metadata_properties.nil? @domain = domain Jsii::Type.check_type(@domain, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domain") unless @domain.nil? @drift_check_baselines = drift_check_baselines.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::DriftCheckBaselinesProperty.new(**drift_check_baselines.transform_keys(&:to_sym)) : drift_check_baselines Jsii::Type.check_type(@drift_check_baselines, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLkRyaWZ0Q2hlY2tCYXNlbGluZXNQcm9wZXJ0eSJ9XX19")), "driftCheckBaselines") unless @drift_check_baselines.nil? @inference_specification = inference_specification.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::InferenceSpecificationProperty.new(**inference_specification.transform_keys(&:to_sym)) : inference_specification Jsii::Type.check_type(@inference_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLkluZmVyZW5jZVNwZWNpZmljYXRpb25Qcm9wZXJ0eSJ9XX19")), "inferenceSpecification") unless @inference_specification.nil? @last_modified_time = last_modified_time Jsii::Type.check_type(@last_modified_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lastModifiedTime") unless @last_modified_time.nil? @metadata_properties = .is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::MetadataPropertiesProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@metadata_properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLk1ldGFkYXRhUHJvcGVydGllc1Byb3BlcnR5In1dfX0=")), "metadataProperties") unless @metadata_properties.nil? @model_approval_status = model_approval_status Jsii::Type.check_type(@model_approval_status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "modelApprovalStatus") unless @model_approval_status.nil? @model_card = model_card.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::ModelCardProperty.new(**model_card.transform_keys(&:to_sym)) : model_card Jsii::Type.check_type(@model_card, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLk1vZGVsQ2FyZFByb3BlcnR5In1dfX0=")), "modelCard") unless @model_card.nil? @model_metrics = model_metrics.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::ModelMetricsProperty.new(**model_metrics.transform_keys(&:to_sym)) : model_metrics Jsii::Type.check_type(@model_metrics, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLk1vZGVsTWV0cmljc1Byb3BlcnR5In1dfX0=")), "modelMetrics") unless @model_metrics.nil? @model_package_description = model_package_description Jsii::Type.check_type(@model_package_description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "modelPackageDescription") unless @model_package_description.nil? @model_package_group_name = model_package_group_name Jsii::Type.check_type(@model_package_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "modelPackageGroupName") unless @model_package_group_name.nil? @model_package_name = model_package_name Jsii::Type.check_type(@model_package_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "modelPackageName") unless @model_package_name.nil? @model_package_status_details = model_package_status_details.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::ModelPackageStatusDetailsProperty.new(**model_package_status_details.transform_keys(&:to_sym)) : model_package_status_details Jsii::Type.check_type(@model_package_status_details, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLk1vZGVsUGFja2FnZVN0YXR1c0RldGFpbHNQcm9wZXJ0eSJ9XX19")), "modelPackageStatusDetails") unless @model_package_status_details.nil? @model_package_version = model_package_version Jsii::Type.check_type(@model_package_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "modelPackageVersion") unless @model_package_version.nil? @sample_payload_url = sample_payload_url Jsii::Type.check_type(@sample_payload_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "samplePayloadUrl") unless @sample_payload_url.nil? @security_config = security_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::SecurityConfigProperty.new(**security_config.transform_keys(&:to_sym)) : security_config Jsii::Type.check_type(@security_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLlNlY3VyaXR5Q29uZmlnUHJvcGVydHkifV19fQ==")), "securityConfig") unless @security_config.nil? @skip_model_validation = skip_model_validation Jsii::Type.check_type(@skip_model_validation, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "skipModelValidation") unless @skip_model_validation.nil? @source_algorithm_specification = source_algorithm_specification.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::SourceAlgorithmSpecificationProperty.new(**source_algorithm_specification.transform_keys(&:to_sym)) : source_algorithm_specification Jsii::Type.check_type(@source_algorithm_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLlNvdXJjZUFsZ29yaXRobVNwZWNpZmljYXRpb25Qcm9wZXJ0eSJ9XX19")), "sourceAlgorithmSpecification") unless @source_algorithm_specification.nil? @source_uri = source_uri Jsii::Type.check_type(@source_uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceUri") unless @source_uri.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? @task = task Jsii::Type.check_type(@task, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "task") unless @task.nil? @validation_specification = validation_specification.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::ValidationSpecificationProperty.new(**validation_specification.transform_keys(&:to_sym)) : validation_specification Jsii::Type.check_type(@validation_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLlZhbGlkYXRpb25TcGVjaWZpY2F0aW9uUHJvcGVydHkifV19fQ==")), "validationSpecification") unless @validation_specification.nil? end |
Instance Attribute Details
#additional_inference_specifications ⇒ AWSCDK::IResolvable, ... (readonly)
An array of additional Inference Specification objects.
97 98 99 |
# File 'sagemaker/cfn_model_package_props.rb', line 97 def additional_inference_specifications @additional_inference_specifications end |
#additional_inference_specifications_to_add ⇒ AWSCDK::IResolvable, ... (readonly)
An array of additional Inference Specification objects to be added to the existing array.
The total number of additional Inference Specification objects cannot exceed 15. Each additional Inference Specification object specifies artifacts based on this model package that can be used on inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts.
104 105 106 |
# File 'sagemaker/cfn_model_package_props.rb', line 104 def additional_inference_specifications_to_add @additional_inference_specifications_to_add end |
#approval_description ⇒ String? (readonly)
A description provided when the model approval is set.
109 110 111 |
# File 'sagemaker/cfn_model_package_props.rb', line 109 def approval_description @approval_description end |
#certify_for_marketplace ⇒ Boolean, ... (readonly)
Whether the model package is to be certified to be listed on AWS Marketplace.
For information about listing model packages on AWS Marketplace, see List Your Algorithm or Model Package on AWS Marketplace .
116 117 118 |
# File 'sagemaker/cfn_model_package_props.rb', line 116 def certify_for_marketplace @certify_for_marketplace end |
#client_token ⇒ String? (readonly)
A unique token that guarantees that the call to this API is idempotent.
121 122 123 |
# File 'sagemaker/cfn_model_package_props.rb', line 121 def client_token @client_token end |
#customer_metadata_properties ⇒ AWSCDK::IResolvable, ... (readonly)
The metadata properties for the model package.
126 127 128 |
# File 'sagemaker/cfn_model_package_props.rb', line 126 def @customer_metadata_properties end |
#domain ⇒ String? (readonly)
The machine learning domain of your model package and its components.
Common machine learning domains include computer vision and natural language processing.
133 134 135 |
# File 'sagemaker/cfn_model_package_props.rb', line 133 def domain @domain end |
#drift_check_baselines ⇒ AWSCDK::IResolvable, ... (readonly)
Represents the drift check baselines that can be used when the model monitor is set using the model package.
138 139 140 |
# File 'sagemaker/cfn_model_package_props.rb', line 138 def drift_check_baselines @drift_check_baselines end |
#inference_specification ⇒ AWSCDK::IResolvable, ... (readonly)
Defines how to perform inference generation after a training job is run.
143 144 145 |
# File 'sagemaker/cfn_model_package_props.rb', line 143 def inference_specification @inference_specification end |
#last_modified_time ⇒ String? (readonly)
The last time the model package was modified.
148 149 150 |
# File 'sagemaker/cfn_model_package_props.rb', line 148 def last_modified_time @last_modified_time end |
#metadata_properties ⇒ AWSCDK::IResolvable, ... (readonly)
Metadata properties of the tracking entity, trial, or trial component.
153 154 155 |
# File 'sagemaker/cfn_model_package_props.rb', line 153 def @metadata_properties end |
#model_approval_status ⇒ String? (readonly)
The approval status of the model. This can be one of the following values.
APPROVED- The model is approvedREJECTED- The model is rejected.PENDING_MANUAL_APPROVAL- The model is waiting for manual approval.
162 163 164 |
# File 'sagemaker/cfn_model_package_props.rb', line 162 def model_approval_status @model_approval_status end |
#model_card ⇒ AWSCDK::IResolvable, ... (readonly)
An Amazon SageMaker Model Card.
167 168 169 |
# File 'sagemaker/cfn_model_package_props.rb', line 167 def model_card @model_card end |
#model_metrics ⇒ AWSCDK::IResolvable, ... (readonly)
Metrics for the model.
172 173 174 |
# File 'sagemaker/cfn_model_package_props.rb', line 172 def model_metrics @model_metrics end |
#model_package_description ⇒ String? (readonly)
The description of the model package.
177 178 179 |
# File 'sagemaker/cfn_model_package_props.rb', line 177 def model_package_description @model_package_description end |
#model_package_group_name ⇒ String? (readonly)
The model group to which the model belongs.
182 183 184 |
# File 'sagemaker/cfn_model_package_props.rb', line 182 def model_package_group_name @model_package_group_name end |
#model_package_name ⇒ String? (readonly)
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.
190 191 192 |
# File 'sagemaker/cfn_model_package_props.rb', line 190 def model_package_name @model_package_name end |
#model_package_status_details ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the validation and image scan statuses of the model package.
195 196 197 |
# File 'sagemaker/cfn_model_package_props.rb', line 195 def model_package_status_details @model_package_status_details end |
#model_package_version ⇒ Numeric? (readonly)
The version number of a versioned model.
200 201 202 |
# File 'sagemaker/cfn_model_package_props.rb', line 200 def model_package_version @model_package_version end |
#sample_payload_url ⇒ String? (readonly)
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).
207 208 209 |
# File 'sagemaker/cfn_model_package_props.rb', line 207 def sample_payload_url @sample_payload_url end |
#security_config ⇒ AWSCDK::IResolvable, ... (readonly)
An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package information for regulated workloads with highly sensitive data.
212 213 214 |
# File 'sagemaker/cfn_model_package_props.rb', line 212 def security_config @security_config end |
#skip_model_validation ⇒ String? (readonly)
Indicates if you want to skip model validation.
217 218 219 |
# File 'sagemaker/cfn_model_package_props.rb', line 217 def skip_model_validation @skip_model_validation end |
#source_algorithm_specification ⇒ AWSCDK::IResolvable, ... (readonly)
A list of algorithms that were used to create a model package.
222 223 224 |
# File 'sagemaker/cfn_model_package_props.rb', line 222 def source_algorithm_specification @source_algorithm_specification end |
#source_uri ⇒ String? (readonly)
The URI of the source for the model package.
227 228 229 |
# File 'sagemaker/cfn_model_package_props.rb', line 227 def source_uri @source_uri end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A list of the tags associated with the model package.
For more information, see Tagging AWS resources in the AWS General Reference Guide .
234 235 236 |
# File 'sagemaker/cfn_model_package_props.rb', line 234 def @tags end |
#task ⇒ String? (readonly)
The machine learning task your model package accomplishes.
Common machine learning tasks include object detection and image classification.
241 242 243 |
# File 'sagemaker/cfn_model_package_props.rb', line 241 def task @task end |
#validation_specification ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies batch transform jobs that SageMaker runs to validate your model package.
246 247 248 |
# File 'sagemaker/cfn_model_package_props.rb', line 246 def validation_specification @validation_specification end |
Class Method Details
.jsii_properties ⇒ Object
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 |
# File 'sagemaker/cfn_model_package_props.rb', line 248 def self.jsii_properties { :additional_inference_specifications => "additionalInferenceSpecifications", :additional_inference_specifications_to_add => "additionalInferenceSpecificationsToAdd", :approval_description => "approvalDescription", :certify_for_marketplace => "certifyForMarketplace", :client_token => "clientToken", :customer_metadata_properties => "customerMetadataProperties", :domain => "domain", :drift_check_baselines => "driftCheckBaselines", :inference_specification => "inferenceSpecification", :last_modified_time => "lastModifiedTime", :metadata_properties => "metadataProperties", :model_approval_status => "modelApprovalStatus", :model_card => "modelCard", :model_metrics => "modelMetrics", :model_package_description => "modelPackageDescription", :model_package_group_name => "modelPackageGroupName", :model_package_name => "modelPackageName", :model_package_status_details => "modelPackageStatusDetails", :model_package_version => "modelPackageVersion", :sample_payload_url => "samplePayloadUrl", :security_config => "securityConfig", :skip_model_validation => "skipModelValidation", :source_algorithm_specification => "sourceAlgorithmSpecification", :source_uri => "sourceUri", :tags => "tags", :task => "task", :validation_specification => "validationSpecification", } end |
Instance Method Details
#to_jsii ⇒ Object
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 |
# File 'sagemaker/cfn_model_package_props.rb', line 280 def to_jsii result = {} result.merge!({ "additionalInferenceSpecifications" => @additional_inference_specifications, "additionalInferenceSpecificationsToAdd" => @additional_inference_specifications_to_add, "approvalDescription" => @approval_description, "certifyForMarketplace" => @certify_for_marketplace, "clientToken" => @client_token, "customerMetadataProperties" => @customer_metadata_properties, "domain" => @domain, "driftCheckBaselines" => @drift_check_baselines, "inferenceSpecification" => @inference_specification, "lastModifiedTime" => @last_modified_time, "metadataProperties" => @metadata_properties, "modelApprovalStatus" => @model_approval_status, "modelCard" => @model_card, "modelMetrics" => @model_metrics, "modelPackageDescription" => @model_package_description, "modelPackageGroupName" => @model_package_group_name, "modelPackageName" => @model_package_name, "modelPackageStatusDetails" => @model_package_status_details, "modelPackageVersion" => @model_package_version, "samplePayloadUrl" => @sample_payload_url, "securityConfig" => @security_config, "skipModelValidation" => @skip_model_validation, "sourceAlgorithmSpecification" => @source_algorithm_specification, "sourceUri" => @source_uri, "tags" => @tags, "task" => @task, "validationSpecification" => @validation_specification, }) result.compact end |