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.
| Source | |
|---|---|
| Type last changed |
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,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_b2bi as b2bi
x12_element_length_validation_rule_property = b2bi.CfnTransformer.X12ElementLengthValidationRuleProperty(
element_id="elementId",
max_length=123,
min_length=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.b2bi.*;
X12ElementLengthValidationRuleProperty x12ElementLengthValidationRuleProperty = X12ElementLengthValidationRuleProperty.builder()
.elementId("elementId")
.maxLength(123)
.minLength(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.B2BI;
var x12ElementLengthValidationRuleProperty = new X12ElementLengthValidationRuleProperty {
ElementId = "elementId",
MaxLength = 123,
MinLength = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
x12ElementLengthValidationRuleProperty := &X12ElementLengthValidationRuleProperty{
ElementId: jsii.String("elementId"),
MaxLength: jsii.Number(123),
MinLength: jsii.Number(123),
}
Properties
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.
Specifies the maximum allowed length for the identified element.
This value defines the upper limit for the element's content length.
Specifies the minimum required length for the identified element.
This value defines the lower limit for the element's content length.