interface X12ElementLengthValidationRuleProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.B2BI.Mixins.CfnTransformerPropsMixin.X12ElementLengthValidationRuleProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsb2bi/mixins#CfnTransformerPropsMixin_X12ElementLengthValidationRuleProperty |
Java | software.amazon.awscdk.mixins.preview.services.b2bi.mixins.CfnTransformerPropsMixin.X12ElementLengthValidationRuleProperty |
Python | aws_cdk.mixins_preview.aws_b2bi.mixins.CfnTransformerPropsMixin.X12ElementLengthValidationRuleProperty |
TypeScript | @aws-cdk/mixins-preview » aws_b2bi » mixins » CfnTransformerPropsMixin » 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 { mixins as b2bi_mixins } from '@aws-cdk/mixins-preview/aws-b2bi';
const x12ElementLengthValidationRuleProperty: b2bi_mixins.CfnTransformerPropsMixin.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
(optional)
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
(optional)
Specifies the maximum allowed length for the identified element.
This value defines the upper limit for the element's content length.
minLength?
Type:
number
(optional)
Specifies the minimum required length for the identified element.
This value defines the lower limit for the element's content length.

.NET
Go
Java
Python
TypeScript