Class: AWSCDK::B2BI::CfnTransformer::X12ElementLengthValidationRuleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::B2BI::CfnTransformer::X12ElementLengthValidationRuleProperty
- Defined in:
- b2_bi/cfn_transformer.rb
Overview
Defines a validation rule that specifies custom length constraints for a specific X12 element.
This rule allows you to override the standard minimum and maximum length requirements for an element, enabling validation of trading partner-specific length requirements that may differ from the X12 specification. Both minimum and maximum length values must be specified.
Instance Attribute Summary collapse
-
#element_id ⇒ String
readonly
Specifies the four-digit element ID to which the length constraints will be applied.
-
#max_length ⇒ Numeric
readonly
Specifies the maximum allowed length for the identified element.
-
#min_length ⇒ Numeric
readonly
Specifies the minimum required length for the identified element.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(element_id:, max_length:, min_length:) ⇒ X12ElementLengthValidationRuleProperty
constructor
A new instance of X12ElementLengthValidationRuleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(element_id:, max_length:, min_length:) ⇒ X12ElementLengthValidationRuleProperty
Returns a new instance of X12ElementLengthValidationRuleProperty.
1178 1179 1180 1181 1182 1183 1184 1185 |
# File 'b2_bi/cfn_transformer.rb', line 1178 def initialize(element_id:, max_length:, min_length:) @element_id = element_id Jsii::Type.check_type(@element_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "elementId") @max_length = max_length Jsii::Type.check_type(@max_length, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxLength") @min_length = min_length Jsii::Type.check_type(@min_length, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minLength") end |
Instance Attribute Details
#element_id ⇒ String (readonly)
Specifies the four-digit element ID to which the length constraints will be applied.
This identifies which X12 element will have its length requirements modified.
1193 1194 1195 |
# File 'b2_bi/cfn_transformer.rb', line 1193 def element_id @element_id end |
#max_length ⇒ Numeric (readonly)
Specifies the maximum allowed length for the identified element.
This value defines the upper limit for the element's content length.
1200 1201 1202 |
# File 'b2_bi/cfn_transformer.rb', line 1200 def max_length @max_length end |
#min_length ⇒ Numeric (readonly)
Specifies the minimum required length for the identified element.
This value defines the lower limit for the element's content length.
1207 1208 1209 |
# File 'b2_bi/cfn_transformer.rb', line 1207 def min_length @min_length end |
Class Method Details
.jsii_properties ⇒ Object
1209 1210 1211 1212 1213 1214 1215 |
# File 'b2_bi/cfn_transformer.rb', line 1209 def self.jsii_properties { :element_id => "elementId", :max_length => "maxLength", :min_length => "minLength", } end |
Instance Method Details
#to_jsii ⇒ Object
1217 1218 1219 1220 1221 1222 1223 1224 1225 |
# File 'b2_bi/cfn_transformer.rb', line 1217 def to_jsii result = {} result.merge!({ "elementId" => @element_id, "maxLength" => @max_length, "minLength" => @min_length, }) result.compact end |