Class: AWSCDK::BedrockAgentCore::CfnEvaluator::CategoricalScaleDefinitionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_evaluator.rb

Overview

A categorical rating scale option.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(definition:, label:) ⇒ CategoricalScaleDefinitionProperty

Returns a new instance of CategoricalScaleDefinitionProperty.

Parameters:

  • definition (String)

    The description that explains what this categorical rating represents.

  • label (String)

    The label of this categorical rating option.



665
666
667
668
669
670
# File 'bedrock_agent_core/cfn_evaluator.rb', line 665

def initialize(definition:, label:)
  @definition = definition
  Jsii::Type.check_type(@definition, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "definition")
  @label = label
  Jsii::Type.check_type(@label, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "label")
end

Instance Attribute Details

#definitionString (readonly)

The description that explains what this categorical rating represents.



676
677
678
# File 'bedrock_agent_core/cfn_evaluator.rb', line 676

def definition
  @definition
end

#labelString (readonly)

The label of this categorical rating option.



681
682
683
# File 'bedrock_agent_core/cfn_evaluator.rb', line 681

def label
  @label
end

Class Method Details

.jsii_propertiesObject



683
684
685
686
687
688
# File 'bedrock_agent_core/cfn_evaluator.rb', line 683

def self.jsii_properties
  {
    :definition => "definition",
    :label => "label",
  }
end

Instance Method Details

#to_jsiiObject



690
691
692
693
694
695
696
697
# File 'bedrock_agent_core/cfn_evaluator.rb', line 690

def to_jsii
  result = {}
  result.merge!({
    "definition" => @definition,
    "label" => @label,
  })
  result.compact
end