interface X12ElementRequirementValidationRuleProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.aws_b2bi.CfnTransformer.X12ElementRequirementValidationRuleProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsb2bi#CfnTransformer_X12ElementRequirementValidationRuleProperty |
![]() | software.amazon.awscdk.services.b2bi.CfnTransformer.X12ElementRequirementValidationRuleProperty |
![]() | aws_cdk.aws_b2bi.CfnTransformer.X12ElementRequirementValidationRuleProperty |
![]() | aws-cdk-lib » aws_b2bi » CfnTransformer » X12ElementRequirementValidationRuleProperty |
Defines a validation rule that modifies the requirement status of a specific X12 element within a segment.
This rule allows you to make optional elements mandatory or mandatory elements optional, providing flexibility to accommodate different trading partner requirements and business rules. The rule targets a specific element position within a segment and sets its requirement status to either OPTIONAL or MANDATORY.
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 x12ElementRequirementValidationRuleProperty: b2bi.CfnTransformer.X12ElementRequirementValidationRuleProperty = {
elementPosition: 'elementPosition',
requirement: 'requirement',
};
Properties
Name | Type | Description |
---|---|---|
element | string | Specifies the position of the element within an X12 segment for which the requirement status will be modified. |
requirement | string | Specifies the requirement status for the element at the specified position. |
elementPosition
Type:
string
Specifies the position of the element within an X12 segment for which the requirement status will be modified.
The format follows the pattern of segment identifier followed by element position (e.g., "ST-01" for the first element of the ST segment).
requirement
Type:
string
Specifies the requirement status for the element at the specified position.
Valid values are OPTIONAL (the element may be omitted) or MANDATORY (the element must be present).