Skip to content
v2.278.0

X12AdvancedOptionsProperty Struct ​

Contains advanced options specific to X12 EDI processing, such as splitting large X12 files into smaller units.

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 x12AdvancedOptionsProperty: b2bi.CfnTransformer.X12AdvancedOptionsProperty = {
  splitOptions: {
    splitBy: 'splitBy',
  },
  validationOptions: {
    validationRules: [{
      codeListValidationRule: {
        elementId: 'elementId',

        // the properties below are optional
        codesToAdd: ['codesToAdd'],
        codesToRemove: ['codesToRemove'],
      },
      elementLengthValidationRule: {
        elementId: 'elementId',
        maxLength: 123,
        minLength: 123,
      },
      elementRequirementValidationRule: {
        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_advanced_options_property = b2bi.CfnTransformer.X12AdvancedOptionsProperty(
    split_options=b2bi.CfnTransformer.X12SplitOptionsProperty(
        split_by="splitBy"
    ),
    validation_options=b2bi.CfnTransformer.X12ValidationOptionsProperty(
        validation_rules=[b2bi.CfnTransformer.X12ValidationRuleProperty(
            code_list_validation_rule=b2bi.CfnTransformer.X12CodeListValidationRuleProperty(
                element_id="elementId",

                # the properties below are optional
                codes_to_add=["codesToAdd"],
                codes_to_remove=["codesToRemove"]
            ),
            element_length_validation_rule=b2bi.CfnTransformer.X12ElementLengthValidationRuleProperty(
                element_id="elementId",
                max_length=123,
                min_length=123
            ),
            element_requirement_validation_rule=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.*;

X12AdvancedOptionsProperty x12AdvancedOptionsProperty = X12AdvancedOptionsProperty.builder()
        .splitOptions(X12SplitOptionsProperty.builder()
                .splitBy("splitBy")
                .build())
        .validationOptions(X12ValidationOptionsProperty.builder()
                .validationRules(List.of(X12ValidationRuleProperty.builder()
                        .codeListValidationRule(X12CodeListValidationRuleProperty.builder()
                                .elementId("elementId")

                                // the properties below are optional
                                .codesToAdd(List.of("codesToAdd"))
                                .codesToRemove(List.of("codesToRemove"))
                                .build())
                        .elementLengthValidationRule(X12ElementLengthValidationRuleProperty.builder()
                                .elementId("elementId")
                                .maxLength(123)
                                .minLength(123)
                                .build())
                        .elementRequirementValidationRule(X12ElementRequirementValidationRuleProperty.builder()
                                .elementPosition("elementPosition")
                                .requirement("requirement")
                                .build())
                        .build()))
                .build())
        .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 x12AdvancedOptionsProperty = new X12AdvancedOptionsProperty {
    SplitOptions = new X12SplitOptionsProperty {
        SplitBy = "splitBy"
    },
    ValidationOptions = new X12ValidationOptionsProperty {
        ValidationRules = new [] { new X12ValidationRuleProperty {
            CodeListValidationRule = new X12CodeListValidationRuleProperty {
                ElementId = "elementId",

                // the properties below are optional
                CodesToAdd = new [] { "codesToAdd" },
                CodesToRemove = new [] { "codesToRemove" }
            },
            ElementLengthValidationRule = new X12ElementLengthValidationRuleProperty {
                ElementId = "elementId",
                MaxLength = 123,
                MinLength = 123
            },
            ElementRequirementValidationRule = 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"

x12AdvancedOptionsProperty := &X12AdvancedOptionsProperty{
	SplitOptions: &X12SplitOptionsProperty{
		SplitBy: jsii.String("splitBy"),
	},
	ValidationOptions: &X12ValidationOptionsProperty{
		ValidationRules: []interface{}{
			&X12ValidationRuleProperty{
				CodeListValidationRule: &X12CodeListValidationRuleProperty{
					ElementId: jsii.String("elementId"),

					// the properties below are optional
					CodesToAdd: []*string{
						jsii.String("codesToAdd"),
					},
					CodesToRemove: []*string{
						jsii.String("codesToRemove"),
					},
				},
				ElementLengthValidationRule: &X12ElementLengthValidationRuleProperty{
					ElementId: jsii.String("elementId"),
					MaxLength: jsii.Number(123),
					MinLength: jsii.Number(123),
				},
				ElementRequirementValidationRule: &X12ElementRequirementValidationRuleProperty{
					ElementPosition: jsii.String("elementPosition"),
					Requirement: jsii.String("requirement"),
				},
			},
		},
	},
}

Properties ​

splitOptionsoptionalIResolvable | CfnTransformer.X12SplitOptionsPropertysplit_optionsoptionaltyping.Union[IResolvable, X12SplitOptionsProperty]splitOptionsoptionalIResolvableSplitOptionsoptionalIResolvableSplitOptionsoptionalinterface{} #
Specifies options for splitting X12 EDI files.

These options control how large X12 files are divided into smaller, more manageable units.

validationOptionsoptionalIResolvable | CfnTransformer.X12ValidationOptionsPropertyvalidation_optionsoptionaltyping.Union[IResolvable, X12ValidationOptionsProperty]validationOptionsoptionalIResolvableValidationOptionsoptionalIResolvableValidationOptionsoptionalinterface{} #
Specifies validation options for X12 EDI processing.

These options control how validation rules are applied during EDI document processing, including custom validation rules for element length constraints, code list validations, and element requirement checks.