AWS::B2BI::Transformer X12ElementLengthValidationRule - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::B2BI::Transformer X12ElementLengthValidationRule

Defines a validation rule that specifies custom length constraints for a specific X12 element. This rule allows you to override the standard minimum and maximum length requirements for an element, enabling validation of trading partner-specific length requirements that may differ from the X12 specification. Both minimum and maximum length values must be specified.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "ElementId" : String, "MaxLength" : Number, "MinLength" : Number }

YAML

ElementId: String MaxLength: Number MinLength: Number

Properties

ElementId

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.

Required: Yes

Type: String

Pattern: ^[0-9]{4}$

Minimum: 4

Maximum: 4

Update requires: No interruption

MaxLength

Specifies the maximum allowed length for the identified element. This value defines the upper limit for the element's content length.

Required: Yes

Type: Number

Minimum: 1

Maximum: 1000000

Update requires: No interruption

MinLength

Specifies the minimum required length for the identified element. This value defines the lower limit for the element's content length.

Required: Yes

Type: Number

Minimum: 1

Maximum: 1000000

Update requires: No interruption