interface X12ElementRequirementValidationRuleProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.B2BI.Mixins.CfnTransformerPropsMixin.X12ElementRequirementValidationRuleProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsb2bi/mixins#CfnTransformerPropsMixin_X12ElementRequirementValidationRuleProperty |
Java | software.amazon.awscdk.mixins.preview.services.b2bi.mixins.CfnTransformerPropsMixin.X12ElementRequirementValidationRuleProperty |
Python | aws_cdk.mixins_preview.aws_b2bi.mixins.CfnTransformerPropsMixin.X12ElementRequirementValidationRuleProperty |
TypeScript | @aws-cdk/mixins-preview » aws_b2bi » mixins » CfnTransformerPropsMixin » 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 { mixins as b2bi_mixins } from '@aws-cdk/mixins-preview/aws-b2bi';
const x12ElementRequirementValidationRuleProperty: b2bi_mixins.CfnTransformerPropsMixin.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
(optional)
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
(optional)
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).

.NET
Go
Java
Python
TypeScript