AWS cli documentation change
Summary
Added detailed documentation for X12 validation options including code list validation, element length constraints, and element requirement rules. Updated CLI version reference from 2.28.16 to 2.28.19.
Security assessment
The changes add documentation about configurable validation rules that help enforce data integrity and compliance in EDI processing. While these validation features can improve security posture by enabling stricter data validation, there is no evidence this addresses a specific existing security vulnerability. The documentation explains security-adjacent controls rather than patching a known issue.
Diff
diff --git a/cli/latest/reference/b2bi/test-parsing.md b/cli/latest/reference/b2bi/test-parsing.md index 4299c1252..b09fcbfe5 100644 --- a//cli/latest/reference/b2bi/test-parsing.md +++ b//cli/latest/reference/b2bi/test-parsing.md @@ -15 +15 @@ - * [AWS CLI 2.28.16 Command Reference](../../index.html) » + * [AWS CLI 2.28.19 Command Reference](../../index.html) » @@ -186,6 +186,64 @@ JSON Syntax: - -Shorthand Syntax: - - - x12={splitOptions={splitBy=string}} - +>> +>> validationOptions -> (structure) +>> +>>> 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. +>>> +>>> validationRules -> (list) +>>> +>>>> Specifies a list of validation rules to apply during EDI document processing. These rules can include code list modifications, element length constraints, and element requirement changes. +>>>> +>>>> (tagged union structure) +>>>> +>>>>> Represents a single validation rule that can be applied during X12 EDI processing. This is a union type that can contain one of several specific validation rule types: code list validation rules for modifying allowed element codes, element length validation rules for enforcing custom length constraints, or element requirement validation rules for changing mandatory/optional status. Each validation rule targets specific aspects of EDI document validation to ensure compliance with trading partner requirements and business rules. +>>>>> +>>>>> ### Note +>>>>> +>>>>> This is a Tagged Union structure. Only one of the following top level keys can be set: `codeListValidationRule`, `elementLengthValidationRule`, `elementRequirementValidationRule`. +>>>>> +>>>>> codeListValidationRule -> (structure) +>>>>> +>>>>>> Specifies a code list validation rule that modifies the allowed code values for a specific X12 element. This rule enables you to customize which codes are considered valid for an element, allowing for trading partner-specific code requirements. +>>>>>> +>>>>>> elementId -> (string) +>>>>>> +>>>>>>> Specifies the four-digit element ID to which the code list modifications apply. This identifies which X12 element will have its allowed code values modified. +>>>>>> +>>>>>> codesToAdd -> (list) +>>>>>> +>>>>>>> Specifies a list of code values to add to the element’s allowed values. These codes will be considered valid for the specified element in addition to the standard codes defined by the X12 specification. +>>>>>>> +>>>>>>> (string) +>>>>>> +>>>>>> codesToRemove -> (list) +>>>>>> +>>>>>>> Specifies a list of code values to remove from the element’s allowed values. These codes will be considered invalid for the specified element, even if they are part of the standard codes defined by the X12 specification. +>>>>>>> +>>>>>>> (string) +>>>>> +>>>>> elementLengthValidationRule -> (structure) +>>>>> +>>>>>> Specifies an element length validation rule that defines custom length constraints for a specific X12 element. This rule allows you to enforce minimum and maximum length requirements that may differ from the standard X12 specification. +>>>>>> +>>>>>> elementId -> (string) +>>>>>> +>>>>>>> Specifies the four-digit element ID to which the length constraints will be applied. This identifies which X12 element will have its length requirements modified. +>>>>>> +>>>>>> maxLength -> (integer) +>>>>>> +>>>>>>> Specifies the maximum allowed length for the identified element. This value must be between 1 and 200 characters and defines the upper limit for the element’s content length. +>>>>>> +>>>>>> minLength -> (integer) +>>>>>> +>>>>>>> Specifies the minimum required length for the identified element. This value must be between 1 and 200 characters and defines the lower limit for the element’s content length. +>>>>> +>>>>> elementRequirementValidationRule -> (structure) +>>>>> +>>>>>> Specifies an element requirement validation rule that modifies whether a specific X12 element is required or optional within a segment. This rule provides flexibility to accommodate different trading partner requirements for element presence. +>>>>>> +>>>>>> elementPosition -> (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 -> (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). @@ -199,0 +258,21 @@ JSON Syntax: + }, + "validationOptions": { + "validationRules": [ + { + "codeListValidationRule": { + "elementId": "string", + "codesToAdd": ["string", ...], + "codesToRemove": ["string", ...] + }, + "elementLengthValidationRule": { + "elementId": "string", + "maxLength": integer, + "minLength": integer + }, + "elementRequirementValidationRule": { + "elementPosition": "string", + "requirement": "OPTIONAL"|"MANDATORY" + } + } + ... + ] @@ -311,0 +391,6 @@ parsedSplitFileContents -> (list) +> (string) + +validationMessages -> (list) + +> Returns an array of validation messages generated during EDI validation. These messages provide detailed information about validation errors, warnings, or confirmations based on the configured X12 validation rules such as element length constraints, code list validations, and element requirement checks. This field is populated when the `TestParsing` API validates EDI documents. +> @@ -324 +409 @@ parsedSplitFileContents -> (list) - * [AWS CLI 2.28.16 Command Reference](../../index.html) » + * [AWS CLI 2.28.19 Command Reference](../../index.html) »