Skip to content
v2.278.0

X12ElementRequirementValidationRuleProperty Struct ​

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 ​

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 x12ElementRequirementValidationRuleProperty: b2bi.CfnTransformer.X12ElementRequirementValidationRuleProperty = {
  elementPosition: 'elementPosition',
  requirement: 'requirement',
};
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_requirement_validation_rule_property = b2bi.CfnTransformer.X12ElementRequirementValidationRuleProperty(
    element_position="elementPosition",
    requirement="requirement"
)
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.*;

X12ElementRequirementValidationRuleProperty x12ElementRequirementValidationRuleProperty = X12ElementRequirementValidationRuleProperty.builder()
        .elementPosition("elementPosition")
        .requirement("requirement")
        .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 x12ElementRequirementValidationRuleProperty = new X12ElementRequirementValidationRuleProperty {
    ElementPosition = "elementPosition",
    Requirement = "requirement"
};
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"

x12ElementRequirementValidationRuleProperty := &X12ElementRequirementValidationRuleProperty{
	ElementPosition: jsii.String("elementPosition"),
	Requirement: jsii.String("requirement"),
}

Properties ​

elementPositionstringelement_positionstrelementPositionStringElementPositionstringElementPosition*string required #
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).

requirementstringrequirementstrrequirementStringRequirementstringRequirement*string required #
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).