interface X12ElementLengthValidationRuleProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.aws_b2bi.CfnTransformer.X12ElementLengthValidationRuleProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsb2bi#CfnTransformer_X12ElementLengthValidationRuleProperty |
![]() | software.amazon.awscdk.services.b2bi.CfnTransformer.X12ElementLengthValidationRuleProperty |
![]() | aws_cdk.aws_b2bi.CfnTransformer.X12ElementLengthValidationRuleProperty |
![]() | aws-cdk-lib » aws_b2bi » CfnTransformer » X12ElementLengthValidationRuleProperty |
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
// 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
Name | Type | Description |
---|---|---|
element | string | Specifies the four-digit element ID to which the length constraints will be applied. |
max | number | Specifies the maximum allowed length for the identified element. |
min | number | Specifies the minimum required length for the identified element. |
elementId
Type:
string
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.
maxLength
Type:
number
Specifies the maximum allowed length for the identified element.
This value defines the upper limit for the element's content length.
minLength
Type:
number
Specifies the minimum required length for the identified element.
This value defines the lower limit for the element's content length.