Class: AWSCDK::Sagemaker::CfnModelCard::BusinessDetailsProperty

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

Overview

Information about how the model supports business goals.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(business_problem: nil, business_stakeholders: nil, line_of_business: nil) ⇒ BusinessDetailsProperty

Returns a new instance of BusinessDetailsProperty.

Parameters:

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

    The specific business problem that the model is trying to solve.

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

    The relevant stakeholders for the model.

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

    The broader business need that the model is serving.



766
767
768
769
770
771
772
773
# File 'sagemaker/cfn_model_card.rb', line 766

def initialize(business_problem: nil, business_stakeholders: nil, line_of_business: nil)
  @business_problem = business_problem
  Jsii::Type.check_type(@business_problem, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "businessProblem") unless @business_problem.nil?
  @business_stakeholders = business_stakeholders
  Jsii::Type.check_type(@business_stakeholders, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "businessStakeholders") unless @business_stakeholders.nil?
  @line_of_business = line_of_business
  Jsii::Type.check_type(@line_of_business, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lineOfBusiness") unless @line_of_business.nil?
end

Instance Attribute Details

#business_problemString? (readonly)

The specific business problem that the model is trying to solve.



779
780
781
# File 'sagemaker/cfn_model_card.rb', line 779

def business_problem
  @business_problem
end

#business_stakeholdersString? (readonly)

The relevant stakeholders for the model.



784
785
786
# File 'sagemaker/cfn_model_card.rb', line 784

def business_stakeholders
  @business_stakeholders
end

#line_of_businessString? (readonly)

The broader business need that the model is serving.



789
790
791
# File 'sagemaker/cfn_model_card.rb', line 789

def line_of_business
  @line_of_business
end

Class Method Details

.jsii_propertiesObject



791
792
793
794
795
796
797
# File 'sagemaker/cfn_model_card.rb', line 791

def self.jsii_properties
  {
    :business_problem => "businessProblem",
    :business_stakeholders => "businessStakeholders",
    :line_of_business => "lineOfBusiness",
  }
end

Instance Method Details

#to_jsiiObject



799
800
801
802
803
804
805
806
807
# File 'sagemaker/cfn_model_card.rb', line 799

def to_jsii
  result = {}
  result.merge!({
    "businessProblem" => @business_problem,
    "businessStakeholders" => @business_stakeholders,
    "lineOfBusiness" => @line_of_business,
  })
  result.compact
end