Class: AWSCDK::Wisdom::CfnAIGuardrail::GuardrailRegexConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Wisdom::CfnAIGuardrail::GuardrailRegexConfigProperty
- Defined in:
- wisdom/cfn_ai_guardrail.rb
Overview
A regex configuration.
Instance Attribute Summary collapse
-
#action ⇒ String
readonly
The action of the guardrail regex configuration.
-
#description ⇒ String?
readonly
The regex description.
-
#name ⇒ String
readonly
A regex configuration.
-
#pattern ⇒ String
readonly
The regex pattern.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action:, name:, pattern:, description: nil) ⇒ GuardrailRegexConfigProperty
constructor
A new instance of GuardrailRegexConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(action:, name:, pattern:, description: nil) ⇒ GuardrailRegexConfigProperty
Returns a new instance of GuardrailRegexConfigProperty.
1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 |
# File 'wisdom/cfn_ai_guardrail.rb', line 1175 def initialize(action:, name:, pattern:, description: nil) @action = action Jsii::Type.check_type(@action, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "action") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @pattern = pattern Jsii::Type.check_type(@pattern, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "pattern") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? end |
Instance Attribute Details
#action ⇒ String (readonly)
The action of the guardrail regex configuration.
1190 1191 1192 |
# File 'wisdom/cfn_ai_guardrail.rb', line 1190 def action @action end |
#description ⇒ String? (readonly)
The regex description.
1205 1206 1207 |
# File 'wisdom/cfn_ai_guardrail.rb', line 1205 def description @description end |
#name ⇒ String (readonly)
A regex configuration.
1195 1196 1197 |
# File 'wisdom/cfn_ai_guardrail.rb', line 1195 def name @name end |
#pattern ⇒ String (readonly)
The regex pattern.
1200 1201 1202 |
# File 'wisdom/cfn_ai_guardrail.rb', line 1200 def pattern @pattern end |
Class Method Details
.jsii_properties ⇒ Object
1207 1208 1209 1210 1211 1212 1213 1214 |
# File 'wisdom/cfn_ai_guardrail.rb', line 1207 def self.jsii_properties { :action => "action", :name => "name", :pattern => "pattern", :description => "description", } end |
Instance Method Details
#to_jsii ⇒ Object
1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 |
# File 'wisdom/cfn_ai_guardrail.rb', line 1216 def to_jsii result = {} result.merge!({ "action" => @action, "name" => @name, "pattern" => @pattern, "description" => @description, }) result.compact end |