Class CfnTransformerPropsMixin.X12ElementRequirementValidationRuleProperty
Defines a validation rule that modifies the requirement status of a specific X12 element within a segment.
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.B2BI.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnTransformerPropsMixin.X12ElementRequirementValidationRuleProperty : CfnTransformerPropsMixin.IX12ElementRequirementValidationRuleProperty
Syntax (vb)
Public Class CfnTransformerPropsMixin.X12ElementRequirementValidationRuleProperty Implements CfnTransformerPropsMixin.IX12ElementRequirementValidationRuleProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.B2BI.Mixins;
var x12ElementRequirementValidationRuleProperty = new X12ElementRequirementValidationRuleProperty {
ElementPosition = "elementPosition",
Requirement = "requirement"
};
Synopsis
Constructors
| X12ElementRequirementValidationRuleProperty() | Defines a validation rule that modifies the requirement status of a specific X12 element within a segment. |
Properties
| ElementPosition | Specifies the position of the element within an X12 segment for which the requirement status will be modified. |
| Requirement | Specifies the requirement status for the element at the specified position. |
Constructors
X12ElementRequirementValidationRuleProperty()
Defines a validation rule that modifies the requirement status of a specific X12 element within a segment.
public X12ElementRequirementValidationRuleProperty()
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.B2BI.Mixins;
var x12ElementRequirementValidationRuleProperty = new X12ElementRequirementValidationRuleProperty {
ElementPosition = "elementPosition",
Requirement = "requirement"
};
Properties
ElementPosition
Specifies the position of the element within an X12 segment for which the requirement status will be modified.
public string? ElementPosition { get; set; }
Property Value
Remarks
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
Specifies the requirement status for the element at the specified position.
public string? Requirement { get; set; }
Property Value
Remarks
Valid values are OPTIONAL (the element may be omitted) or MANDATORY (the element must be present).