Class: AWSCDK::Sagemaker::CfnModelPackage::ModelPackageStatusItemProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelPackage::ModelPackageStatusItemProperty
- Defined in:
- sagemaker/cfn_model_package.rb
Overview
Represents the overall status of a model package.
Instance Attribute Summary collapse
-
#failure_reason ⇒ String?
readonly
if the overall status is
Failed, the reason for the failure. -
#name ⇒ String
readonly
The name of the model package for which the overall status is being reported.
-
#status ⇒ String
readonly
The current status.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, status:, failure_reason: nil) ⇒ ModelPackageStatusItemProperty
constructor
A new instance of ModelPackageStatusItemProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, status:, failure_reason: nil) ⇒ ModelPackageStatusItemProperty
Returns a new instance of ModelPackageStatusItemProperty.
2044 2045 2046 2047 2048 2049 2050 2051 |
# File 'sagemaker/cfn_model_package.rb', line 2044 def initialize(name:, status:, failure_reason: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @status = status Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") @failure_reason = failure_reason Jsii::Type.check_type(@failure_reason, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "failureReason") unless @failure_reason.nil? end |
Instance Attribute Details
#failure_reason ⇒ String? (readonly)
if the overall status is Failed , the reason for the failure.
2067 2068 2069 |
# File 'sagemaker/cfn_model_package.rb', line 2067 def failure_reason @failure_reason end |
#name ⇒ String (readonly)
The name of the model package for which the overall status is being reported.
2057 2058 2059 |
# File 'sagemaker/cfn_model_package.rb', line 2057 def name @name end |
#status ⇒ String (readonly)
The current status.
2062 2063 2064 |
# File 'sagemaker/cfn_model_package.rb', line 2062 def status @status end |
Class Method Details
.jsii_properties ⇒ Object
2069 2070 2071 2072 2073 2074 2075 |
# File 'sagemaker/cfn_model_package.rb', line 2069 def self.jsii_properties { :name => "name", :status => "status", :failure_reason => "failureReason", } end |
Instance Method Details
#to_jsii ⇒ Object
2077 2078 2079 2080 2081 2082 2083 2084 2085 |
# File 'sagemaker/cfn_model_package.rb', line 2077 def to_jsii result = {} result.merge!({ "name" => @name, "status" => @status, "failureReason" => @failure_reason, }) result.compact end |