Class: AWSCDK::Sagemaker::CfnModelPackage::ModelPackageStatusItemProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_model_package.rb

Overview

Represents the overall status of a model package.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, status:, failure_reason: nil) ⇒ ModelPackageStatusItemProperty

Returns a new instance of ModelPackageStatusItemProperty.

Parameters:

  • name (String)

    The name of the model package for which the overall status is being reported.

  • status (String)

    The current status.

  • failure_reason (String, nil) (defaults to: nil)

    if the overall status is Failed , the reason for the failure.



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_reasonString? (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

#nameString (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

#statusString (readonly)

The current status.



2062
2063
2064
# File 'sagemaker/cfn_model_package.rb', line 2062

def status
  @status
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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