Class: AWSCDK::Wisdom::CfnAIGuardrail::GuardrailContextualGroundingFilterConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Wisdom::CfnAIGuardrail::GuardrailContextualGroundingFilterConfigProperty
- Defined in:
- wisdom/cfn_ai_guardrail.rb
Overview
A configuration for grounding filter.
Instance Attribute Summary collapse
-
#threshold ⇒ Numeric
readonly
The threshold for this filter.
-
#type ⇒ String
readonly
The type of this filter.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(threshold:, type:) ⇒ GuardrailContextualGroundingFilterConfigProperty
constructor
A new instance of GuardrailContextualGroundingFilterConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(threshold:, type:) ⇒ GuardrailContextualGroundingFilterConfigProperty
Returns a new instance of GuardrailContextualGroundingFilterConfigProperty.
912 913 914 915 916 917 |
# File 'wisdom/cfn_ai_guardrail.rb', line 912 def initialize(threshold:, type:) @threshold = threshold Jsii::Type.check_type(@threshold, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "threshold") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") end |
Instance Attribute Details
#threshold ⇒ Numeric (readonly)
Note:
Default: - 0
The threshold for this filter.
924 925 926 |
# File 'wisdom/cfn_ai_guardrail.rb', line 924 def threshold @threshold end |
#type ⇒ String (readonly)
The type of this filter.
929 930 931 |
# File 'wisdom/cfn_ai_guardrail.rb', line 929 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
931 932 933 934 935 936 |
# File 'wisdom/cfn_ai_guardrail.rb', line 931 def self.jsii_properties { :threshold => "threshold", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
938 939 940 941 942 943 944 945 |
# File 'wisdom/cfn_ai_guardrail.rb', line 938 def to_jsii result = {} result.merge!({ "threshold" => @threshold, "type" => @type, }) result.compact end |