Skip to content
v2.275.0

X12ElementLengthValidationRuleProperty Struct ​

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.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_b2bi as b2bi } from 'aws-cdk-lib';
const x12ElementLengthValidationRuleProperty: b2bi.CfnTransformer.X12ElementLengthValidationRuleProperty = {
  elementId: 'elementId',
  maxLength: 123,
  minLength: 123,
};

Properties ​

elementIdstringelement_idstrelementIdStringElementIdstringElementId*stringrequired#
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.

maxLengthnumbermax_lengthint | floatmaxLengthNumberMaxLengthdoubleMaxLength*float64required#
Specifies the maximum allowed length for the identified element.

This value defines the upper limit for the element's content length.

minLengthnumbermin_lengthint | floatminLengthNumberMinLengthdoubleMinLength*float64required#
Specifies the minimum required length for the identified element.

This value defines the lower limit for the element's content length.