Module Smaws_Client_B2bi.Types

type nonrec x12_version =
  1. | VERSION_5010_HIPAA
  2. | VERSION_5010
  3. | VERSION_4060
  4. | VERSION_4050
  5. | VERSION_4030
  6. | VERSION_4010
type nonrec element_id = string
type nonrec code_list = Smaws_Lib.Smithy_api.Types.string_ list
type nonrec x12_code_list_validation_rule = {
  1. codes_to_remove : code_list option;
    (*

    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.

    *)
  2. codes_to_add : code_list option;
    (*

    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.

    *)
  3. element_id : element_id;
    (*

    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.

    *)
}

Defines a validation rule that modifies the allowed code values for a specific X12 element. This rule allows you to add or remove valid codes from an element's standard code list, providing flexibility to accommodate trading partner-specific requirements or industry variations. You can specify codes to add to expand the allowed values beyond the X12 standard, or codes to remove to restrict the allowed values for stricter validation.

type nonrec x12_element_length_validation_rule = {
  1. min_length : Smaws_Lib.Smithy_api.Types.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.

    *)
  2. max_length : Smaws_Lib.Smithy_api.Types.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.

    *)
  3. element_id : element_id;
    (*

    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.

    *)
}

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 and must be between 1 and 200 characters.

type nonrec element_position = string
type nonrec element_requirement =
  1. | MANDATORY
  2. | OPTIONAL
type nonrec x12_element_requirement_validation_rule = {
  1. requirement : element_requirement;
    (*

    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).

    *)
  2. element_position : element_position;
    (*

    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).

    *)
}

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.

type nonrec x12_validation_rule =
  1. | ElementRequirementValidationRule of x12_element_requirement_validation_rule
    (*

    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.

    *)
  2. | ElementLengthValidationRule of x12_element_length_validation_rule
    (*

    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.

    *)
  3. | CodeListValidationRule of x12_code_list_validation_rule
    (*

    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.

    *)

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.

type nonrec x12_validation_rules = x12_validation_rule list
type nonrec x12_validation_options = {
  1. validation_rules : x12_validation_rules option;
    (*

    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.

    *)
}

Contains configuration options for X12 EDI validation. This structure allows you to specify custom validation rules that will be applied during EDI document processing, including element length constraints, code list modifications, and element requirement changes. These validation options provide flexibility to accommodate trading partner-specific requirements while maintaining EDI compliance. The validation rules are applied in addition to standard X12 validation to ensure documents meet both standard and custom requirements.

type nonrec x12_validate_edi = bool
type nonrec x12_usage_indicator_code = string
type nonrec x12_transaction_set =
  1. | X12_999_X231
  2. | X12_837_X298
  3. | X12_837_X292
  4. | X12_837_X291
  5. | X12_837_X224
  6. | X12_837_X223
  7. | X12_837_X222
  8. | X12_835_X221
  9. | X12_834_X318
  10. | X12_834_X307
  11. | X12_834_X220
  12. | X12_824_X186
  13. | X12_820_X306
  14. | X12_820_X218
  15. | X12_278_X217
  16. | X12_277_X364
  17. | X12_277_X214
  18. | X12_277_X212
  19. | X12_276_X212
  20. | X12_275_X211
  21. | X12_275_X210
  22. | X12_271_X279
  23. | X12_270_X279
  24. | X12_999
  25. | X12_998
  26. | X12_997
  27. | X12_996
  28. | X12_993
  29. | X12_990
  30. | X12_980
  31. | X12_947
  32. | X12_945
  33. | X12_944
  34. | X12_943
  35. | X12_940
  36. | X12_928
  37. | X12_926
  38. | X12_925
  39. | X12_924
  40. | X12_920
  41. | X12_896
  42. | X12_895
  43. | X12_894
  44. | X12_893
  45. | X12_891
  46. | X12_889
  47. | X12_888
  48. | X12_887
  49. | X12_886
  50. | X12_885
  51. | X12_884
  52. | X12_883
  53. | X12_882
  54. | X12_881
  55. | X12_880
  56. | X12_879
  57. | X12_878
  58. | X12_877
  59. | X12_876
  60. | X12_875
  61. | X12_874
  62. | X12_873
  63. | X12_872
  64. | X12_871
  65. | X12_870
  66. | X12_869
  67. | X12_868
  68. | X12_867
  69. | X12_866
  70. | X12_865
  71. | X12_864
  72. | X12_863
  73. | X12_862
  74. | X12_861
  75. | X12_860
  76. | X12_859
  77. | X12_858
  78. | X12_857
  79. | X12_856
  80. | X12_855
  81. | X12_854
  82. | X12_853
  83. | X12_852
  84. | X12_851
  85. | X12_850
  86. | X12_849
  87. | X12_848
  88. | X12_847
  89. | X12_846
  90. | X12_845
  91. | X12_844
  92. | X12_843
  93. | X12_842
  94. | X12_841
  95. | X12_840
  96. | X12_839
  97. | X12_838
  98. | X12_837
  99. | X12_836
  100. | X12_835
  101. | X12_834
  102. | X12_833
  103. | X12_832
  104. | X12_831
  105. | X12_830
  106. | X12_829
  107. | X12_828
  108. | X12_827
  109. | X12_826
  110. | X12_824
  111. | X12_823
  112. | X12_822
  113. | X12_821
  114. | X12_820
  115. | X12_819
  116. | X12_818
  117. | X12_816
  118. | X12_815
  119. | X12_814
  120. | X12_813
  121. | X12_812
  122. | X12_811
  123. | X12_810
  124. | X12_806
  125. | X12_805
  126. | X12_754
  127. | X12_753
  128. | X12_715
  129. | X12_650
  130. | X12_625
  131. | X12_620
  132. | X12_602
  133. | X12_601
  134. | X12_568
  135. | X12_567
  136. | X12_561
  137. | X12_540
  138. | X12_536
  139. | X12_527
  140. | X12_521
  141. | X12_517
  142. | X12_511
  143. | X12_504
  144. | X12_503
  145. | X12_501
  146. | X12_500
  147. | X12_494
  148. | X12_492
  149. | X12_490
  150. | X12_486
  151. | X12_485
  152. | X12_475
  153. | X12_470
  154. | X12_468
  155. | X12_466
  156. | X12_463
  157. | X12_460
  158. | X12_456
  159. | X12_455
  160. | X12_453
  161. | X12_452
  162. | X12_451
  163. | X12_440
  164. | X12_437
  165. | X12_436
  166. | X12_435
  167. | X12_434
  168. | X12_433
  169. | X12_432
  170. | X12_431
  171. | X12_429
  172. | X12_426
  173. | X12_425
  174. | X12_424
  175. | X12_423
  176. | X12_422
  177. | X12_421
  178. | X12_420
  179. | X12_419
  180. | X12_418
  181. | X12_417
  182. | X12_414
  183. | X12_412
  184. | X12_410
  185. | X12_404
  186. | X12_362
  187. | X12_361
  188. | X12_358
  189. | X12_357
  190. | X12_356
  191. | X12_355
  192. | X12_354
  193. | X12_353
  194. | X12_352
  195. | X12_350
  196. | X12_326
  197. | X12_325
  198. | X12_324
  199. | X12_323
  200. | X12_322
  201. | X12_319
  202. | X12_317
  203. | X12_315
  204. | X12_313
  205. | X12_312
  206. | X12_311
  207. | X12_310
  208. | X12_309
  209. | X12_304
  210. | X12_303
  211. | X12_301
  212. | X12_300
  213. | X12_290
  214. | X12_288
  215. | X12_286
  216. | X12_285
  217. | X12_284
  218. | X12_283
  219. | X12_280
  220. | X12_278
  221. | X12_277
  222. | X12_276
  223. | X12_275
  224. | X12_274
  225. | X12_273
  226. | X12_272
  227. | X12_271
  228. | X12_270
  229. | X12_269
  230. | X12_268
  231. | X12_267
  232. | X12_266
  233. | X12_265
  234. | X12_264
  235. | X12_263
  236. | X12_262
  237. | X12_261
  238. | X12_260
  239. | X12_259
  240. | X12_256
  241. | X12_255
  242. | X12_252
  243. | X12_251
  244. | X12_250
  245. | X12_249
  246. | X12_248
  247. | X12_245
  248. | X12_244
  249. | X12_242
  250. | X12_240
  251. | X12_228
  252. | X12_227
  253. | X12_225
  254. | X12_224
  255. | X12_223
  256. | X12_222
  257. | X12_220
  258. | X12_219
  259. | X12_218
  260. | X12_217
  261. | X12_216
  262. | X12_215
  263. | X12_214
  264. | X12_213
  265. | X12_212
  266. | X12_211
  267. | X12_210
  268. | X12_206
  269. | X12_205
  270. | X12_204
  271. | X12_203
  272. | X12_202
  273. | X12_201
  274. | X12_200
  275. | X12_199
  276. | X12_198
  277. | X12_197
  278. | X12_196
  279. | X12_195
  280. | X12_194
  281. | X12_191
  282. | X12_190
  283. | X12_189
  284. | X12_188
  285. | X12_187
  286. | X12_186
  287. | X12_185
  288. | X12_180
  289. | X12_179
  290. | X12_176
  291. | X12_175
  292. | X12_170
  293. | X12_163
  294. | X12_161
  295. | X12_160
  296. | X12_159
  297. | X12_158
  298. | X12_157
  299. | X12_155
  300. | X12_154
  301. | X12_153
  302. | X12_152
  303. | X12_151
  304. | X12_150
  305. | X12_149
  306. | X12_148
  307. | X12_147
  308. | X12_146
  309. | X12_144
  310. | X12_143
  311. | X12_142
  312. | X12_141
  313. | X12_140
  314. | X12_139
  315. | X12_138
  316. | X12_135
  317. | X12_133
  318. | X12_132
  319. | X12_131
  320. | X12_130
  321. | X12_129
  322. | X12_128
  323. | X12_127
  324. | X12_126
  325. | X12_125
  326. | X12_124
  327. | X12_121
  328. | X12_120
  329. | X12_113
  330. | X12_112
  331. | X12_111
  332. | X12_110
  333. | X12_109
  334. | X12_108
  335. | X12_107
  336. | X12_106
  337. | X12_105
  338. | X12_104
  339. | X12_103
  340. | X12_102
  341. | X12_101
  342. | X12_100
type nonrec x12_technical_acknowledgment =
  1. | GENERATE_ALL_SEGMENTS
  2. | DO_NOT_GENERATE
type nonrec x12_split_by =
  1. | TRANSACTION
  2. | NONE
type nonrec x12_split_options = {
  1. split_by : x12_split_by;
    (*

    Specifies the method used to split X12 EDI files. Valid values include TRANSACTION (split by individual transaction sets), or NONE (no splitting).

    *)
}

Contains options for splitting X12 EDI files into smaller units. This is useful for processing large EDI files more efficiently.

type nonrec x12_sender_id = string
type nonrec x12_segment_terminator = string
type nonrec x12_responsible_agency_code = string
type nonrec x12_repetition_separator = string
type nonrec x12_receiver_id = string
type nonrec x12_id_qualifier = string
type nonrec x12_acknowledgment_requested_code = string
type nonrec x12_interchange_control_headers = {
  1. usage_indicator_code : x12_usage_indicator_code option;
    (*

    Located at position ISA-15 in the header. Specifies how this interchange is being used:

    • T indicates this interchange is for testing.
    • P indicates this interchange is for production.
    • I indicates this interchange is informational.
    *)
  2. acknowledgment_requested_code : x12_acknowledgment_requested_code option;
    (*

    Located at position ISA-14 in the header. The value "1" indicates that the sender is requesting an interchange acknowledgment at receipt of the interchange. The value "0" is used otherwise.

    *)
  3. repetition_separator : x12_repetition_separator option;
    (*

    Located at position ISA-11 in the header. This string makes it easier when you need to group similar adjacent element values together without using extra segments.

    This parameter is only honored for version greater than 401 (VERSION_4010 and higher).

    For versions less than 401, this field is called StandardsId, in which case our service sets the value to U.

    *)
  4. receiver_id : x12_receiver_id option;
    (*

    Located at position ISA-08 in the header. This value (along with the receiverIdQualifier) identifies the intended recipient of the interchange.

    *)
  5. receiver_id_qualifier : x12_id_qualifier option;
    (*

    Located at position ISA-07 in the header. Qualifier for the receiver ID. Together, the ID and qualifier uniquely identify the receiving trading partner.

    *)
  6. sender_id : x12_sender_id option;
    (*

    Located at position ISA-06 in the header. This value (along with the senderIdQualifier) identifies the sender of the interchange.

    *)
  7. sender_id_qualifier : x12_id_qualifier option;
    (*

    Located at position ISA-05 in the header. Qualifier for the sender ID. Together, the ID and qualifier uniquely identify the sending trading partner.

    *)
}

In X12, the Interchange Control Header is the first segment of an EDI document and is part of the Interchange Envelope. It contains information about the sender and receiver, the date and time of transmission, and the X12 version being used. It also includes delivery information, such as the sender and receiver IDs.

type nonrec x12_application_sender_code = string
type nonrec x12_application_receiver_code = string
type nonrec x12_functional_group_headers = {
  1. responsible_agency_code : x12_responsible_agency_code option;
    (*

    A code that identifies the issuer of the standard, at position GS-07.

    *)
  2. application_receiver_code : x12_application_receiver_code option;
    (*

    A value representing the code used to identify the party receiving a message, at position GS-03.

    *)
  3. application_sender_code : x12_application_sender_code option;
    (*

    A value representing the code used to identify the party transmitting a message, at position GS-02.

    *)
}

Part of the X12 message structure. These are the functional group headers for the X12 EDI object.

type nonrec x12_component_separator = string
type nonrec x12_data_element_separator = string
type nonrec x12_delimiters = {
  1. segment_terminator : x12_segment_terminator option;
    (*

    The segment terminator. The default value is ~ (tilde).

    *)
  2. data_element_separator : x12_data_element_separator option;
    (*

    The data element separator. The default value is * (asterisk).

    *)
  3. component_separator : x12_component_separator option;
    (*

    The component, or sub-element, separator. The default value is : (colon).

    *)
}

In X12 EDI messages, delimiters are used to mark the end of segments or elements, and are defined in the interchange control header. The delimiters are part of the message's syntax and divide up its different elements.

type nonrec starting_interchange_control_number = int
type nonrec starting_functional_group_control_number = int
type nonrec starting_transaction_set_control_number = int
type nonrec x12_control_numbers = {
  1. starting_transaction_set_control_number : starting_transaction_set_control_number option;
    (*

    Specifies the starting transaction set control number (ST02) to use for X12 EDI generation. This number is incremented for each new transaction set.

    *)
  2. starting_functional_group_control_number : starting_functional_group_control_number option;
    (*

    Specifies the starting functional group control number (GS06) to use for X12 EDI generation. This number is incremented for each new functional group. For the GS (functional group) envelope, Amazon Web Services B2B Data Interchange generates a functional group control number that is unique to the sender ID, receiver ID, and functional identifier code combination.

    *)
  3. starting_interchange_control_number : starting_interchange_control_number option;
    (*

    Specifies the starting interchange control number (ISA13) to use for X12 EDI generation. This number is incremented for each new interchange. For the ISA (interchange) envelope, Amazon Web Services B2B Data Interchange generates an interchange control number that is unique for the ISA05 and ISA06 (sender) & ISA07 and ISA08 (receiver) combination.

    *)
}

Contains configuration for X12 control numbers used in X12 EDI generation. Control numbers are used to uniquely identify interchanges, functional groups, and transaction sets.

type nonrec x12gs05_time_format =
  1. | HHMMSSDD
  2. | HHMMSS
  3. | HHMM

Specifies the time format in the GS05 element (time) of the functional group header. The following formats use 24-hour clock time:

  • HHMM - Hours and minutes
  • HHMMSS - Hours, minutes, and seconds
  • HHMMSSDD - Hours, minutes, seconds, and decimal seconds

Where:

  • HH - Hours (00-23)
  • MM - Minutes (00-59)
  • SS - Seconds (00-59)
  • DD - Hundredths of seconds (00-99)
type nonrec x12_outbound_edi_headers = {
  1. gs05_time_format : x12gs05_time_format option;
  2. control_numbers : x12_control_numbers option;
    (*

    Specifies control number configuration for outbound X12 EDI headers. These settings determine the starting values for interchange, functional group, and transaction set control numbers.

    *)
  3. validate_edi : x12_validate_edi option;
    (*

    Specifies whether or not to validate the EDI for this X12 object: TRUE or FALSE. When enabled, this performs both standard EDI validation and applies any configured custom validation rules including element length constraints, code list validations, and element requirement checks. Validation results are returned in the response validation messages.

    *)
  4. delimiters : x12_delimiters option;
    (*

    The delimiters, for example semicolon (;), that separates sections of the headers for the X12 object.

    *)
  5. functional_group_headers : x12_functional_group_headers option;
    (*

    The functional group headers for the X12 object.

    *)
  6. interchange_control_headers : x12_interchange_control_headers option;
    (*

    In X12 EDI messages, delimiters are used to mark the end of segments or elements, and are defined in the interchange control header.

    *)
}

A structure containing the details for an outbound EDI object.

type nonrec x12_functional_acknowledgment =
  1. | GENERATE_WITHOUT_TRANSACTION_SET_RESPONSE_LOOP
  2. | GENERATE_ALL_SEGMENTS
  3. | DO_NOT_GENERATE
type nonrec x12_acknowledgment_options = {
  1. technical_acknowledgment : x12_technical_acknowledgment;
    (*

    Specifies whether technical acknowledgments (TA1) should be generated for incoming X12 interchanges. Valid values are DO_NOT_GENERATE and GENERATE_ALL_SEGMENTS and.

    *)
  2. functional_acknowledgment : x12_functional_acknowledgment;
    (*

    Specifies whether functional acknowledgments (997/999) should be generated for incoming X12 transactions. Valid values are DO_NOT_GENERATE, GENERATE_ALL_SEGMENTS and GENERATE_WITHOUT_TRANSACTION_SET_RESPONSE_LOOP.

    If you choose GENERATE_WITHOUT_TRANSACTION_SET_RESPONSE_LOOP, Amazon Web Services B2B Data Interchange skips the AK2_Loop when generating an acknowledgment document.

    *)
}

Contains options for configuring X12 acknowledgments. These options control how functional and technical acknowledgments are handled.

type nonrec x12_inbound_edi_options = {
  1. acknowledgment_options : x12_acknowledgment_options option;
    (*

    Specifies acknowledgment options for inbound X12 EDI files. These options control how functional and technical acknowledgments are handled.

    *)
}

Contains options specific to processing inbound X12 EDI files.

type nonrec wrap_format =
  1. | LINE_LENGTH
  2. | ONE_LINE
  3. | SEGMENT
type nonrec line_terminator =
  1. | CR
  2. | LF
  3. | CRLF
type nonrec line_length = int
type nonrec wrap_options = {
  1. line_length : line_length option;
    (*

    Specifies the maximum length of a line before wrapping occurs. This value is used when wrapBy is set to LINE_LENGTH.

    *)
  2. line_terminator : line_terminator option;
    (*

    Specifies the character sequence used to terminate lines when wrapping. Valid values:

    • CRLF: carriage return and line feed
    • LF: line feed)
    • CR: carriage return
    *)
  3. wrap_by : wrap_format;
    (*

    Specifies the method used for wrapping lines in the EDI output. Valid values:

    • SEGMENT: Wraps by segment.
    • ONE_LINE: Indicates that the entire content is on a single line.

      When you specify ONE_LINE, do not provide either the line length nor the line terminator value.

    • LINE_LENGTH: Wraps by character count, as specified by lineLength value.
    *)
}

Contains options for wrapping (line folding) in X12 EDI files. Wrapping controls how long lines are handled in the EDI output.

type nonrec x12_envelope = {
  1. wrap_options : wrap_options option;
  2. common : x12_outbound_edi_headers option;
    (*

    A container for the X12 outbound EDI headers.

    *)
}

A wrapper structure for an X12 definition object.

the X12 envelope ensures the integrity of the data and the efficiency of the information exchange. The X12 message structure has hierarchical levels. From highest to the lowest, they are:

  • Interchange Envelope
  • Functional Group
  • Transaction Set
type nonrec x12_details = {
  1. version : x12_version option;
    (*

    Returns the version to use for the specified X12 transaction set.

    *)
  2. transaction_set : x12_transaction_set option;
    (*

    Returns an enumerated type where each value identifies an X12 transaction set. Transaction sets are maintained by the X12 Accredited Standards Committee.

    *)
}

A structure that contains the X12 transaction set and version. The X12 structure is used when the system transforms an EDI (electronic data interchange) file.

If an EDI input file contains more than one transaction, each transaction must have the same transaction set and version, for example 214/4010. If not, the transformer cannot parse the file.

type nonrec x12_advanced_options = {
  1. validation_options : x12_validation_options option;
    (*

    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.

    *)
  2. split_options : x12_split_options option;
    (*

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

    *)
}

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

type nonrec validation_messages = Smaws_Lib.Smithy_api.Types.string_ list
type nonrec error_message = string
type nonrec validation_exception = {
  1. message : error_message;
}

Occurs when a B2BI object cannot be validated against a request from another object. This exception can be thrown during standard EDI validation or when custom validation rules fail, such as when element length constraints are violated, invalid codes are used in code list validations, or required elements are missing based on configured element requirement rules.

type nonrec transformer_id = string
type nonrec resource_arn = string
type nonrec transformer_name = string
type nonrec transformer_status =
  1. | INACTIVE
  2. | ACTIVE
type nonrec created_date = Smaws_Lib.CoreTypes.Timestamp.t
type nonrec modified_date = Smaws_Lib.CoreTypes.Timestamp.t
type nonrec file_format =
  1. | NOT_USED
  2. | JSON
  3. | XML
type nonrec mapping_template = string
type nonrec edi_type =
  1. | X12Details of x12_details
    (*

    Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.

    *)

Specifies the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.

type nonrec file_location = string
type nonrec from_format =
  1. | X12
type nonrec format_options =
  1. | X12 of x12_details

A structure that contains the X12 transaction set and version.

type nonrec advanced_options = {
  1. x12 : x12_advanced_options option;
    (*

    A structure that contains X12-specific advanced options, such as split options for processing X12 EDI files.

    *)
}

A structure that contains advanced options for EDI processing. Currently, only X12 advanced options are supported.

type nonrec input_conversion = {
  1. advanced_options : advanced_options option;
    (*

    Specifies advanced options for the input conversion process. These options provide additional control over how EDI files are processed during transformation.

    *)
  2. format_options : format_options option;
    (*

    A structure that contains the formatting options for an inbound transformer.

    *)
  3. from_format : from_format;
    (*

    The format for the transformer input: currently on X12 is supported.

    *)
}

Contains the input formatting options for an inbound transformer (takes an X12-formatted EDI document as input and converts it to JSON or XML.

type nonrec mapping_template_language =
  1. | JSONATA
  2. | XSLT
type nonrec mapping = {
  1. template : mapping_template option;
    (*

    A string that represents the mapping template, in the transformation language specified in templateLanguage.

    *)
  2. template_language : mapping_template_language;
    (*

    The transformation language for the template, either XSLT or JSONATA.

    *)
}

Specifies the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.

type nonrec to_format =
  1. | X12
type nonrec output_conversion = {
  1. advanced_options : advanced_options option;
  2. format_options : format_options option;
    (*

    A structure that contains the X12 transaction set and version for the transformer output.

    *)
  3. to_format : to_format;
    (*

    The format for the output from an outbound transformer: only X12 is currently supported.

    *)
}

Contains the formatting options for an outbound transformer (takes JSON or XML as input and converts it to an EDI document (currently only X12 format is supported).

type nonrec bucket_name = string
type nonrec s3_key = string
type nonrec sample_document_keys = {
  1. output : s3_key option;
    (*

    An array of keys for your output sample documents.

    *)
  2. input : s3_key option;
    (*

    An array of keys for your input sample documents.

    *)
}

An array of the Amazon S3 keys used to identify the location for your sample documents.

type nonrec key_list = sample_document_keys list
type nonrec sample_documents = {
  1. keys : key_list;
    (*

    Contains an array of the Amazon S3 keys used to identify the location for your sample documents.

    *)
  2. bucket_name : bucket_name;
    (*

    Contains the Amazon S3 bucket that is used to hold your sample documents.

    *)
}

Describes a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.

type nonrec update_transformer_response = {
  1. sample_documents : sample_documents option;
    (*

    Returns a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.

    *)
  2. output_conversion : output_conversion option;
    (*

    Returns the OutputConversion object, which contains the format options for the outbound transformation.

    *)
  3. mapping : mapping option;
    (*

    Returns the structure that contains the mapping template and its language (either XSLT or JSONATA).

    *)
  4. input_conversion : input_conversion option;
    (*

    Returns the InputConversion object, which contains the format options for the inbound transformation.

    *)
  5. sample_document : file_location option;
    (*

    Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data.

    *)
  6. edi_type : edi_type option;
    (*

    Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.

    *)
  7. mapping_template : mapping_template option;
    (*

    Returns the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.

    *)
  8. file_format : file_format option;
    (*

    Returns that the currently supported file formats for EDI transformations are JSON and XML.

    *)
  9. modified_at : modified_date;
    (*

    Returns a timestamp for last time the transformer was modified.

    *)
  10. created_at : created_date;
    (*

    Returns a timestamp for creation date and time of the transformer.

    *)
  11. status : transformer_status;
    (*

    Returns the state of the newly created transformer. The transformer can be either active or inactive. For the transformer to be used in a capability, its status must active.

    *)
  12. name : transformer_name;
    (*

    Returns the name of the transformer.

    *)
  13. transformer_arn : resource_arn;
    (*

    Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.

    *)
  14. transformer_id : transformer_id;
    (*

    Returns the system-assigned unique identifier for the transformer.

    *)
}
type nonrec update_transformer_request = {
  1. sample_documents : sample_documents option;
    (*

    Specify a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.

    *)
  2. output_conversion : output_conversion option;
    (*

    To update, specify the OutputConversion object, which contains the format options for the outbound transformation.

    *)
  3. mapping : mapping option;
    (*

    Specify the structure that contains the mapping template and its language (either XSLT or JSONATA).

    *)
  4. input_conversion : input_conversion option;
    (*

    To update, specify the InputConversion object, which contains the format options for the inbound transformation.

    *)
  5. sample_document : file_location option;
    (*

    Specifies a sample EDI document that is used by a transformer as a guide for processing the EDI data.

    *)
  6. edi_type : edi_type option;
    (*

    Specifies the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.

    *)
  7. mapping_template : mapping_template option;
    (*

    Specifies the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.

    This parameter is available for backwards compatibility. Use the Mapping data type instead.

    *)
  8. file_format : file_format option;
    (*

    Specifies that the currently supported file formats for EDI transformations are JSON and XML.

    *)
  9. status : transformer_status option;
    (*

    Specifies the transformer's status. You can update the state of the transformer from inactive to active.

    *)
  10. name : transformer_name option;
    (*

    Specify a new name for the transformer, if you want to update it.

    *)
  11. transformer_id : transformer_id;
    (*

    Specifies the system-assigned unique identifier for the transformer.

    *)
}
type nonrec throttling_exception = {
  1. retry_after_seconds : Smaws_Lib.Smithy_api.Types.integer option;
    (*

    The server attempts to retry a command that was throttled.

    *)
  2. message : error_message;
}

The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

type nonrec service_quota_exceeded_exception = {
  1. quota_code : Smaws_Lib.Smithy_api.Types.string_;
    (*

    The quota that was exceeded, which caused the exception.

    *)
  2. service_code : Smaws_Lib.Smithy_api.Types.string_;
    (*

    The code responsible for exceeding the quota, which caused the exception.

    *)
  3. resource_type : Smaws_Lib.Smithy_api.Types.string_;
    (*

    The resource type (profile, partnership, transformer, or capability) that exceeded the quota, which caused the exception.

    *)
  4. resource_id : Smaws_Lib.Smithy_api.Types.string_;
    (*

    The ID for the resource that exceeded the quota, which caused the exception.

    *)
  5. message : error_message;
}

Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.

type nonrec resource_not_found_exception = {
  1. message : error_message;
}

Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

type nonrec internal_server_exception = {
  1. retry_after_seconds : Smaws_Lib.Smithy_api.Types.integer option;
    (*

    The server attempts to retry a failed command.

    *)
  2. message : error_message;
}

This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

type nonrec conflict_exception = {
  1. message : error_message;
}

A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.

type nonrec access_denied_exception = {
  1. message : error_message;
}

You do not have sufficient access to perform this action.

type nonrec profile_id = string
type nonrec profile_name = string
type nonrec email = string
type nonrec phone = string
type nonrec business_name = string
type nonrec logging =
  1. | DISABLED
  2. | ENABLED
type nonrec log_group_name = string
type nonrec update_profile_response = {
  1. modified_at : modified_date option;
    (*

    Returns a timestamp for last time the profile was modified.

    *)
  2. created_at : created_date;
    (*

    Returns a timestamp for creation date and time of the profile.

    *)
  3. log_group_name : log_group_name option;
    (*

    Returns the name of the logging group.

    *)
  4. logging : logging option;
    (*

    Specifies whether or not logging is enabled for this profile.

    *)
  5. business_name : business_name;
    (*

    Returns the name for the business associated with this profile.

    *)
  6. phone : phone;
    (*

    Returns the phone number associated with the profile.

    *)
  7. email : email option;
    (*

    Returns the email address associated with this customer profile.

    *)
  8. name : profile_name;
    (*

    Returns the name of the profile.

    *)
  9. profile_arn : resource_arn;
    (*

    Returns an Amazon Resource Name (ARN) for the profile.

    *)
  10. profile_id : profile_id;
    (*

    Returns the unique, system-generated identifier for the profile.

    *)
}
type nonrec update_profile_request = {
  1. business_name : business_name option;
    (*

    Specifies the name for the business associated with this profile.

    *)
  2. phone : phone option;
    (*

    Specifies the phone number associated with the profile.

    *)
  3. email : email option;
    (*

    Specifies the email address associated with this customer profile.

    *)
  4. name : profile_name option;
    (*

    The name of the profile, used to identify it.

    *)
  5. profile_id : profile_id;
    (*

    Specifies the unique, system-generated identifier for the profile.

    *)
}
type nonrec partnership_id = string
type nonrec partner_name = string
type nonrec capability_id = string
type nonrec partnership_capabilities = capability_id list
type nonrec outbound_edi_options =
  1. | X12 of x12_envelope
    (*

    A structure that contains an X12 envelope structure.

    *)

A container for outbound EDI options.

type nonrec inbound_edi_options = {
  1. x12 : x12_inbound_edi_options option;
    (*

    A structure that contains X12-specific options for processing inbound X12 EDI files.

    *)
}

Contains options for processing inbound EDI files. These options allow for customizing how incoming EDI documents are processed.

type nonrec capability_options = {
  1. inbound_edi : inbound_edi_options option;
    (*

    A structure that contains the inbound EDI options for the capability.

    *)
  2. outbound_edi : outbound_edi_options option;
    (*

    A structure that contains the outbound EDI options.

    *)
}

Contains the details for an Outbound EDI capability.

type nonrec trading_partner_id = string
type nonrec update_partnership_response = {
  1. modified_at : modified_date option;
    (*

    Returns a timestamp that identifies the most recent date and time that the partnership was modified.

    *)
  2. created_at : created_date;
    (*

    Returns a timestamp that identifies the most recent date and time that the partnership was modified.

    *)
  3. trading_partner_id : trading_partner_id option;
    (*

    Returns the unique, system-generated identifier for a trading partner.

    *)
  4. capability_options : capability_options option;
    (*

    Returns the structure that contains the details for the associated capabilities.

    *)
  5. capabilities : partnership_capabilities option;
    (*

    Returns one or more capabilities associated with this partnership.

    *)
  6. phone : phone option;
    (*

    Returns the phone number associated with the partnership.

    *)
  7. email : email option;
    (*

    Returns the email address associated with this trading partner.

    *)
  8. name : partner_name option;
    (*

    The name of the partnership, used to identify it.

    *)
  9. partnership_arn : resource_arn;
    (*

    Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.

    *)
  10. partnership_id : partnership_id;
    (*

    Returns the unique, system-generated identifier for a partnership.

    *)
  11. profile_id : profile_id;
    (*

    Returns the unique, system-generated identifier for the profile connected to this partnership.

    *)
}
type nonrec update_partnership_request = {
  1. capability_options : capability_options option;
    (*

    To update, specify the structure that contains the details for the associated capabilities.

    *)
  2. capabilities : partnership_capabilities option;
    (*

    List of the capabilities associated with this partnership.

    *)
  3. name : partner_name option;
    (*

    The name of the partnership, used to identify it.

    *)
  4. partnership_id : partnership_id;
    (*

    Specifies the unique, system-generated identifier for a partnership.

    *)
}
type nonrec capability_name = string
type nonrec capability_type =
  1. | EDI
type nonrec capability_direction =
  1. | OUTBOUND
  2. | INBOUND
type nonrec s3_location = {
  1. key : s3_key option;
    (*

    Specifies the Amazon S3 key for the file location.

    *)
  2. bucket_name : bucket_name option;
    (*

    Specifies the name of the Amazon S3 bucket.

    *)
}

Specifies the details for the Amazon S3 file location that is being used with Amazon Web Services B2B Data Interchange. File locations in Amazon S3 are identified using a combination of the bucket and key.

type nonrec edi_configuration = {
  1. transformer_id : transformer_id;
    (*

    Returns the system-assigned unique identifier for the transformer.

    *)
  2. output_location : s3_location;
    (*

    Contains the Amazon S3 bucket and prefix for the location of the output file, which is contained in an S3Location object.

    *)
  3. input_location : s3_location;
    (*

    Contains the Amazon S3 bucket and prefix for the location of the input file, which is contained in an S3Location object.

    *)
  4. type_ : edi_type;
    (*

    Returns the type of the capability. Currently, only edi is supported.

    *)
  5. capability_direction : capability_direction option;
    (*

    Specifies whether this is capability is for inbound or outbound transformations.

    *)
}

Specifies the details for the EDI (electronic data interchange) transformation.

type nonrec capability_configuration =
  1. | Edi of edi_configuration
    (*

    An EDI (electronic data interchange) configuration object.

    *)

A capability object. Currently, only EDI (electronic data interchange) capabilities are supported. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.

type nonrec instructions_documents = s3_location list
type nonrec update_capability_response = {
  1. modified_at : modified_date option;
    (*

    Returns a timestamp for last time the capability was modified.

    *)
  2. created_at : created_date;
    (*

    Returns a timestamp for creation date and time of the capability.

    *)
  3. instructions_documents : instructions_documents option;
    (*

    Returns one or more locations in Amazon S3, each specifying an EDI document that can be used with this capability. Each item contains the name of the bucket and the key, to identify the document's location.

    *)
  4. configuration : capability_configuration;
    (*

    Returns a structure that contains the details for a capability.

    *)
  5. type_ : capability_type;
    (*

    Returns the type of the capability. Currently, only edi is supported.

    *)
  6. name : capability_name;
    (*

    Returns the name of the capability, used to identify it.

    *)
  7. capability_arn : resource_arn;
    (*

    Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.

    *)
  8. capability_id : capability_id;
    (*

    Returns a system-assigned unique identifier for the capability.

    *)
}
type nonrec update_capability_request = {
  1. instructions_documents : instructions_documents option;
    (*

    Specifies one or more locations in Amazon S3, each specifying an EDI document that can be used with this capability. Each item contains the name of the bucket and the key, to identify the document's location.

    *)
  2. configuration : capability_configuration option;
    (*

    Specifies a structure that contains the details for a capability.

    *)
  3. name : capability_name option;
    (*

    Specifies a new name for the capability, to replace the existing name.

    *)
  4. capability_id : capability_id;
    (*

    Specifies a system-assigned unique identifier for the capability.

    *)
}
type nonrec amazon_resource_name = string
type nonrec tag_key = string
type nonrec tag_key_list = tag_key list
type nonrec untag_resource_request = {
  1. tag_keys : tag_key_list;
    (*

    Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.

    *)
  2. resource_ar_n : amazon_resource_name;
    (*

    Specifies an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.

    *)
}
type nonrec transformer_summary = {
  1. sample_documents : sample_documents option;
    (*

    Returns a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.

    *)
  2. output_conversion : output_conversion option;
    (*

    Returns the OutputConversion object, which contains the format options for the outbound transformation.

    *)
  3. mapping : mapping option;
    (*

    Returns the structure that contains the mapping template and its language (either XSLT or JSONATA).

    *)
  4. input_conversion : input_conversion option;
    (*

    Returns a structure that contains the format options for the transformation.

    *)
  5. sample_document : file_location option;
    (*

    Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data.

    *)
  6. edi_type : edi_type option;
    (*

    Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.

    *)
  7. mapping_template : mapping_template option;
    (*

    Returns the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.

    *)
  8. file_format : file_format option;
    (*

    Returns that the currently supported file formats for EDI transformations are JSON and XML.

    *)
  9. modified_at : modified_date option;
    (*

    Returns a timestamp representing the date and time for the most recent change for the transformer object.

    *)
  10. created_at : created_date;
    (*

    Returns a timestamp indicating when the transformer was created. For example, 2023-07-20T19:58:44.624Z.

    *)
  11. status : transformer_status;
    (*

    Returns the state of the newly created transformer. The transformer can be either active or inactive. For the transformer to be used in a capability, its status must active.

    *)
  12. name : transformer_name;
    (*

    Returns the descriptive name for the transformer.

    *)
  13. transformer_id : transformer_id;
    (*

    Returns the system-assigned unique identifier for the transformer.

    *)
}

Contains the details for a transformer object. A transformer can take an EDI file as input and transform it into a JSON-or XML-formatted document. Alternatively, a transformer can take a JSON-or XML-formatted document as input and transform it into an EDI file.

type nonrec transformer_list = transformer_summary list
type nonrec transformer_job_status =
  1. | FAILED
  2. | SUCCEEDED
  3. | RUNNING
type nonrec transformer_job_id = string
type nonrec transformer = Smaws_Lib.CoreTypes.Resource.t
type nonrec parsed_split_file_contents_list = Smaws_Lib.Smithy_api.Types.string_ list
type nonrec test_parsing_response = {
  1. validation_messages : validation_messages option;
    (*

    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.

    *)
  2. parsed_split_file_contents : parsed_split_file_contents_list option;
    (*

    Returns an array of parsed file contents when the input file is split according to the specified split options. Each element in the array represents a separate split file's parsed content.

    *)
  3. parsed_file_content : Smaws_Lib.Smithy_api.Types.string_;
    (*

    Returns the contents of the input file being tested, parsed according to the specified EDI (electronic data interchange) type.

    *)
}
type nonrec test_parsing_request = {
  1. advanced_options : advanced_options option;
    (*

    Specifies advanced options for parsing the input EDI file. These options allow for more granular control over the parsing process, including split options for X12 files.

    *)
  2. edi_type : edi_type;
    (*

    Specifies the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.

    *)
  3. file_format : file_format;
    (*

    Specifies that the currently supported file formats for EDI transformations are JSON and XML.

    *)
  4. input_file : s3_location;
    (*

    Specifies an S3Location object, which contains the Amazon S3 bucket and prefix for the location of the input file.

    *)
}
type nonrec test_mapping_response = {
  1. mapped_file_content : Smaws_Lib.Smithy_api.Types.string_;
    (*

    Returns a string for the mapping that can be used to identify the mapping. Similar to a fingerprint

    *)
}
type nonrec test_mapping_input_file_content = string
type nonrec test_mapping_request = {
  1. file_format : file_format;
    (*

    Specifies that the currently supported file formats for EDI transformations are JSON and XML.

    *)
  2. mapping_template : mapping_template;
    (*

    Specifies the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.

    This parameter is available for backwards compatibility. Use the Mapping data type instead.

    *)
  3. input_file_content : test_mapping_input_file_content;
    (*

    Specify the contents of the EDI (electronic data interchange) XML or JSON file that is used as input for the transform.

    *)
}
type nonrec test_conversion_response = {
  1. validation_messages : validation_messages option;
    (*

    Returns an array of validation messages that Amazon Web Services B2B Data Interchange generates during the conversion process. These messages include both standard EDI validation results and custom validation messages when custom validation rules are configured. Custom validation messages provide detailed feedback on element length constraints, code list validations, and element requirement checks applied during the outbound EDI generation process.

    *)
  2. converted_file_content : Smaws_Lib.Smithy_api.Types.string_;
    (*

    Returns the converted file content.

    *)
}
type nonrec conversion_source_format =
  1. | XML
  2. | JSON
type nonrec input_file_source =
  1. | FileContent of Smaws_Lib.Smithy_api.Types.string_
    (*

    Specify the input contents, as a string, for the source of an outbound transformation.

    *)

The input file to use for an outbound transformation.

type nonrec conversion_source = {
  1. input_file : input_file_source;
    (*

    File to be converted

    *)
  2. file_format : conversion_source_format;
    (*

    The format for the input file: either JSON or XML.

    *)
}

Describes the input for an outbound transformation.

type nonrec conversion_target_format =
  1. | X12
type nonrec conversion_target_format_details =
  1. | X12 of x12_details

Contains a structure describing the X12 details for the conversion target.

type nonrec output_sample_file_source =
  1. | FileLocation of s3_location

Container for the location of a sample file used for outbound transformations.

type nonrec conversion_target = {
  1. advanced_options : advanced_options option;
  2. output_sample_file : output_sample_file_source option;
    (*

    Customer uses this to provide a sample on what should file look like after conversion X12 EDI use case around this would be discovering the file syntax

    *)
  3. format_details : conversion_target_format_details option;
    (*

    A structure that contains the formatting details for the conversion target.

    *)
  4. file_format : conversion_target_format;
    (*

    Currently, only X12 format is supported.

    *)
}

Provide a sample of what the output of the transformation should look like.

type nonrec test_conversion_request = {
  1. target : conversion_target;
    (*

    Specify the format (X12 is the only currently supported format), and other details for the conversion target.

    *)
  2. source : conversion_source;
    (*

    Specify the source file for an outbound EDI request.

    *)
}
type nonrec template_details =
  1. | X12 of x12_details

A data structure that contains the information to use when generating a mapping template.

type nonrec tag_value = string
type nonrec tag = {
  1. value : tag_value;
    (*

    Contains one or more values that you assigned to the key name that you create.

    *)
  2. key : tag_key;
    (*

    Specifies the name assigned to the tag that you create.

    *)
}

Creates a key-value pair for a specific resource. Tags are metadata that you can use to search for and group a resource for various purposes. You can apply tags to capabilities, partnerships, profiles and transformers. A tag key can take more than one value. For example, to group capabilities for accounting purposes, you might create a tag called Group and assign the values Research and Accounting to that group.

type nonrec tag_list = tag list
type nonrec tag_resource_request = {
  1. tags : tag_list;
    (*

    Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.

    *)
  2. resource_ar_n : amazon_resource_name;
    (*

    Specifies an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.

    *)
}
type nonrec start_transformer_job_response = {
  1. transformer_job_id : transformer_job_id;
    (*

    Returns the unique, system-generated identifier for a transformer run.

    *)
}
type nonrec start_transformer_job_request = {
  1. client_token : Smaws_Lib.Smithy_api.Types.string_ option;
    (*

    Reserved for future use.

    *)
  2. transformer_id : transformer_id;
    (*

    Specifies the system-assigned unique identifier for the transformer.

    *)
  3. output_location : s3_location;
    (*

    Specifies the location of the output file for the transformation. The location consists of an Amazon S3 bucket and prefix.

    *)
  4. input_file : s3_location;
    (*

    Specifies the location of the input file for the transformation. The location consists of an Amazon S3 bucket and prefix.

    *)
}
type nonrec s3_location_list = s3_location list
type nonrec profile_summary = {
  1. modified_at : modified_date option;
    (*

    Returns the timestamp that identifies the most recent date and time that the profile was modified.

    *)
  2. created_at : created_date;
    (*

    Returns the timestamp for creation date and time of the profile.

    *)
  3. log_group_name : log_group_name option;
    (*

    Returns the name of the logging group.

    *)
  4. logging : logging option;
    (*

    Specifies whether or not logging is enabled for this profile.

    *)
  5. business_name : business_name;
    (*

    Returns the name for the business associated with this profile.

    *)
  6. name : profile_name;
    (*

    Returns the display name for profile.

    *)
  7. profile_id : profile_id;
    (*

    Returns the unique, system-generated identifier for the profile.

    *)
}

Contains the details for a profile. A profile is the mechanism used to create the concept of a private network.

type nonrec profile_list = profile_summary list
type nonrec profile = Smaws_Lib.CoreTypes.Resource.t
type nonrec partnership_summary = {
  1. modified_at : modified_date option;
    (*

    Returns a timestamp that identifies the most recent date and time that the partnership was modified.

    *)
  2. created_at : created_date;
    (*

    Returns a timestamp for creation date and time of the partnership.

    *)
  3. trading_partner_id : trading_partner_id option;
    (*

    Returns the unique, system-generated identifier for a trading partner.

    *)
  4. capability_options : capability_options option;
  5. capabilities : partnership_capabilities option;
    (*

    Returns one or more capabilities associated with this partnership.

    *)
  6. name : partner_name option;
    (*

    Returns the name of the partnership.

    *)
  7. partnership_id : partnership_id;
    (*

    Returns the unique, system-generated identifier for a partnership.

    *)
  8. profile_id : profile_id;
    (*

    Returns the unique, system-generated identifier for the profile connected to this partnership.

    *)
}

A structure that contains the details for a partnership. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.

type nonrec partnership_list = partnership_summary list
type nonrec partnership = Smaws_Lib.CoreTypes.Resource.t
type nonrec page_token = string
type nonrec max_results = int
type nonrec mapping_type =
  1. | XSLT
  2. | JSONATA
type nonrec list_transformers_response = {
  1. next_token : page_token option;
    (*

    When additional results are obtained from the command, a NextToken parameter is returned in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional resources.

    *)
  2. transformers : transformer_list;
    (*

    Returns an array of one or more transformer objects.

    For each transformer, a TransformerSummary object is returned. The TransformerSummary contains all the details for a specific transformer.

    *)
}
type nonrec list_transformers_request = {
  1. max_results : max_results option;
    (*

    Specifies the number of items to return for the API response.

    *)
  2. next_token : page_token option;
    (*

    When additional results are obtained from the command, a NextToken parameter is returned in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional resources.

    *)
}
type nonrec list_tags_for_resource_response = {
  1. tags : tag_list option;
    (*

    Returns the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.

    *)
}
type nonrec list_tags_for_resource_request = {
  1. resource_ar_n : amazon_resource_name;
    (*

    Requests the tags associated with a particular Amazon Resource Name (ARN). An ARN is an identifier for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.

    *)
}
type nonrec list_profiles_response = {
  1. next_token : page_token option;
    (*

    When additional results are obtained from the command, a NextToken parameter is returned in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional resources.

    *)
  2. profiles : profile_list;
    (*

    Returns an array of ProfileSummary objects.

    *)
}
type nonrec list_profiles_request = {
  1. max_results : max_results option;
    (*

    Specifies the maximum number of profiles to return.

    *)
  2. next_token : page_token option;
    (*

    When additional results are obtained from the command, a NextToken parameter is returned in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional resources.

    *)
}
type nonrec list_partnerships_response = {
  1. next_token : page_token option;
    (*

    When additional results are obtained from the command, a NextToken parameter is returned in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional resources.

    *)
  2. partnerships : partnership_list;
    (*

    Specifies a list of your partnerships.

    *)
}
type nonrec list_partnerships_request = {
  1. max_results : max_results option;
    (*

    Specifies the maximum number of capabilities to return.

    *)
  2. next_token : page_token option;
    (*

    When additional results are obtained from the command, a NextToken parameter is returned in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional resources.

    *)
  3. profile_id : profile_id option;
    (*

    Specifies the unique, system-generated identifier for the profile connected to this partnership.

    *)
}
type nonrec capability_summary = {
  1. modified_at : modified_date option;
    (*

    Returns a timestamp that identifies the most recent date and time that the capability was modified.

    *)
  2. created_at : created_date;
    (*

    Returns a timestamp for creation date and time of the capability.

    *)
  3. type_ : capability_type;
    (*

    Returns the type of the capability. Currently, only edi is supported.

    *)
  4. name : capability_name;
    (*

    The display name of the capability.

    *)
  5. capability_id : capability_id;
    (*

    Returns a system-assigned unique identifier for the capability.

    *)
}

Returns the capability summary details. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.

type nonrec capability_list = capability_summary list
type nonrec list_capabilities_response = {
  1. next_token : page_token option;
    (*

    When additional results are obtained from the command, a NextToken parameter is returned in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional resources.

    *)
  2. capabilities : capability_list;
    (*

    Returns one or more capabilities associated with this partnership.

    *)
}
type nonrec list_capabilities_request = {
  1. max_results : max_results option;
    (*

    Specifies the maximum number of capabilities to return.

    *)
  2. next_token : page_token option;
    (*

    When additional results are obtained from the command, a NextToken parameter is returned in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional resources.

    *)
}
type nonrec get_transformer_response = {
  1. sample_documents : sample_documents option;
    (*

    Returns a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.

    *)
  2. output_conversion : output_conversion option;
    (*

    Returns the OutputConversion object, which contains the format options for the outbound transformation.

    *)
  3. mapping : mapping option;
    (*

    Returns the structure that contains the mapping template and its language (either XSLT or JSONATA).

    *)
  4. input_conversion : input_conversion option;
    (*

    Returns the InputConversion object, which contains the format options for the inbound transformation.

    *)
  5. sample_document : file_location option;
    (*

    Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data.

    *)
  6. edi_type : edi_type option;
    (*

    Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.

    *)
  7. mapping_template : mapping_template option;
    (*

    Returns the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.

    *)
  8. file_format : file_format option;
    (*

    Returns that the currently supported file formats for EDI transformations are JSON and XML.

    *)
  9. modified_at : modified_date option;
    (*

    Returns a timestamp for last time the transformer was modified.

    *)
  10. created_at : created_date;
    (*

    Returns a timestamp for creation date and time of the transformer.

    *)
  11. status : transformer_status;
    (*

    Returns the state of the newly created transformer. The transformer can be either active or inactive. For the transformer to be used in a capability, its status must active.

    *)
  12. name : transformer_name;
    (*

    Returns the name of the transformer, used to identify it.

    *)
  13. transformer_arn : resource_arn;
    (*

    Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.

    *)
  14. transformer_id : transformer_id;
    (*

    Returns the system-assigned unique identifier for the transformer.

    *)
}
type nonrec get_transformer_request = {
  1. transformer_id : transformer_id;
    (*

    Specifies the system-assigned unique identifier for the transformer.

    *)
}
type nonrec get_transformer_job_response = {
  1. message : Smaws_Lib.Smithy_api.Types.string_ option;
    (*

    Returns an optional error message, which gets populated when the job is not run successfully.

    *)
  2. output_files : s3_location_list option;
    (*

    Returns the location for the output files. If the caller specified a directory for the output, then this contains the full path to the output file, including the file name generated by the service.

    *)
  3. status : transformer_job_status;
    (*

    Returns the current state of the transformer job, either running, succeeded, or failed.

    *)
}
type nonrec get_transformer_job_request = {
  1. transformer_id : transformer_id;
    (*

    Specifies the system-assigned unique identifier for the transformer.

    *)
  2. transformer_job_id : transformer_job_id;
    (*

    Specifies the unique, system-generated identifier for a transformer run.

    *)
}
type nonrec get_profile_response = {
  1. modified_at : modified_date option;
    (*

    Returns a timestamp for last time the profile was modified.

    *)
  2. created_at : created_date;
    (*

    Returns a timestamp for creation date and time of the transformer.

    *)
  3. log_group_name : log_group_name option;
    (*

    Returns the name of the logging group.

    *)
  4. logging : logging option;
    (*

    Returns whether or not logging is enabled for this profile.

    *)
  5. business_name : business_name;
    (*

    Returns the name for the business associated with this profile.

    *)
  6. phone : phone;
    (*

    Returns the phone number associated with the profile.

    *)
  7. email : email option;
    (*

    Returns the email address associated with this customer profile.

    *)
  8. name : profile_name;
    (*

    Returns the name of the profile, used to identify it.

    *)
  9. profile_arn : resource_arn;
    (*

    Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.

    *)
  10. profile_id : profile_id;
    (*

    Returns the unique, system-generated identifier for the profile.

    *)
}
type nonrec get_profile_request = {
  1. profile_id : profile_id;
    (*

    Specifies the unique, system-generated identifier for the profile.

    *)
}
type nonrec get_partnership_response = {
  1. modified_at : modified_date option;
    (*

    Returns a timestamp that identifies the most recent date and time that the partnership was modified.

    *)
  2. created_at : created_date;
    (*

    Returns a timestamp for creation date and time of the partnership.

    *)
  3. trading_partner_id : trading_partner_id option;
    (*

    Returns the unique identifier for the partner for this partnership.

    *)
  4. capability_options : capability_options option;
  5. capabilities : partnership_capabilities option;
    (*

    Returns one or more capabilities associated with this partnership.

    *)
  6. phone : phone option;
    (*

    Returns the phone number associated with the partnership.

    *)
  7. email : email option;
    (*

    Returns the email address associated with this trading partner.

    *)
  8. name : partner_name option;
    (*

    Returns the display name of the partnership

    *)
  9. partnership_arn : resource_arn;
    (*

    Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.

    *)
  10. partnership_id : partnership_id;
    (*

    Returns the unique, system-generated identifier for a partnership.

    *)
  11. profile_id : profile_id;
    (*

    Returns the unique, system-generated identifier for the profile connected to this partnership.

    *)
}
type nonrec get_partnership_request = {
  1. partnership_id : partnership_id;
    (*

    Specifies the unique, system-generated identifier for a partnership.

    *)
}
type nonrec get_capability_response = {
  1. modified_at : modified_date option;
    (*

    Returns a timestamp for last time the capability was modified.

    *)
  2. created_at : created_date;
    (*

    Returns a timestamp for creation date and time of the capability.

    *)
  3. instructions_documents : instructions_documents option;
    (*

    Returns one or more locations in Amazon S3, each specifying an EDI document that can be used with this capability. Each item contains the name of the bucket and the key, to identify the document's location.

    *)
  4. configuration : capability_configuration;
    (*

    Returns a structure that contains the details for a capability.

    *)
  5. type_ : capability_type;
    (*

    Returns the type of the capability. Currently, only edi is supported.

    *)
  6. name : capability_name;
    (*

    Returns the name of the capability, used to identify it.

    *)
  7. capability_arn : resource_arn;
    (*

    Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.

    *)
  8. capability_id : capability_id;
    (*

    Returns a system-assigned unique identifier for the capability.

    *)
}
type nonrec get_capability_request = {
  1. capability_id : capability_id;
    (*

    Specifies a system-assigned unique identifier for the capability.

    *)
}
type nonrec generate_mapping_response = {
  1. mapping_accuracy : Smaws_Lib.Smithy_api.Types.float_ option;
    (*

    Returns a percentage that estimates the accuracy of the generated mapping.

    *)
  2. mapping_template : Smaws_Lib.Smithy_api.Types.string_;
    (*

    Returns a mapping template based on your inputs.

    *)
}
type nonrec generate_mapping_input_file_content = string
type nonrec generate_mapping_output_file_content = string
type nonrec generate_mapping_request = {
  1. mapping_type : mapping_type;
    (*

    Specify the mapping type: either JSONATA or XSLT.

    *)
  2. output_file_content : generate_mapping_output_file_content;
    (*

    Provide the contents of a sample X12 EDI file, either in JSON or XML format, to use as a target for the mapping.

    *)
  3. input_file_content : generate_mapping_input_file_content;
    (*

    Provide the contents of a sample X12 EDI file, either in JSON or XML format, to use as a starting point for the mapping.

    *)
}
type nonrec delete_transformer_request = {
  1. transformer_id : transformer_id;
    (*

    Specifies the system-assigned unique identifier for the transformer.

    *)
}
type nonrec delete_profile_request = {
  1. profile_id : profile_id;
    (*

    Specifies the unique, system-generated identifier for the profile.

    *)
}
type nonrec delete_partnership_request = {
  1. partnership_id : partnership_id;
    (*

    Specifies the unique, system-generated identifier for a partnership.

    *)
}
type nonrec delete_capability_request = {
  1. capability_id : capability_id;
    (*

    Specifies a system-assigned unique identifier for the capability.

    *)
}
type nonrec create_transformer_response = {
  1. sample_documents : sample_documents option;
    (*

    Returns a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.

    *)
  2. output_conversion : output_conversion option;
    (*

    Returns the OutputConversion object, which contains the format options for the outbound transformation.

    *)
  3. mapping : mapping option;
    (*

    Returns the structure that contains the mapping template and its language (either XSLT or JSONATA).

    *)
  4. input_conversion : input_conversion option;
    (*

    Returns the InputConversion object, which contains the format options for the inbound transformation.

    *)
  5. sample_document : file_location option;
    (*

    Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data.

    *)
  6. edi_type : edi_type option;
    (*

    Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.

    *)
  7. mapping_template : mapping_template option;
    (*

    Returns the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.

    *)
  8. file_format : file_format option;
    (*

    Returns that the currently supported file formats for EDI transformations are JSON and XML.

    *)
  9. created_at : created_date;
    (*

    Returns a timestamp for creation date and time of the transformer.

    *)
  10. status : transformer_status;
    (*

    Returns the state of the newly created transformer. The transformer can be either active or inactive. For the transformer to be used in a capability, its status must active.

    *)
  11. name : transformer_name;
    (*

    Returns the name of the transformer, used to identify it.

    *)
  12. transformer_arn : resource_arn;
    (*

    Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.

    *)
  13. transformer_id : transformer_id;
    (*

    Returns the system-assigned unique identifier for the transformer.

    *)
}
type nonrec create_transformer_request = {
  1. sample_documents : sample_documents option;
    (*

    Specify a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.

    *)
  2. output_conversion : output_conversion option;
    (*

    A structure that contains the OutputConversion object, which contains the format options for the outbound transformation.

    *)
  3. mapping : mapping option;
    (*

    Specify the structure that contains the mapping template and its language (either XSLT or JSONATA).

    *)
  4. input_conversion : input_conversion option;
    (*

    Specify the InputConversion object, which contains the format options for the inbound transformation.

    *)
  5. sample_document : file_location option;
    (*

    Specifies a sample EDI document that is used by a transformer as a guide for processing the EDI data.

    *)
  6. edi_type : edi_type option;
    (*

    Specifies the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.

    *)
  7. mapping_template : mapping_template option;
    (*

    Specifies the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.

    This parameter is available for backwards compatibility. Use the Mapping data type instead.

    *)
  8. file_format : file_format option;
    (*

    Specifies that the currently supported file formats for EDI transformations are JSON and XML.

    *)
  9. tags : tag_list option;
    (*

    Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.

    *)
  10. client_token : Smaws_Lib.Smithy_api.Types.string_ option;
    (*

    Reserved for future use.

    *)
  11. name : transformer_name;
    (*

    Specifies the name of the transformer, used to identify it.

    *)
}
type nonrec create_starter_mapping_template_response = {
  1. mapping_template : Smaws_Lib.Smithy_api.Types.string_;
    (*

    Returns a string that represents the mapping template.

    *)
}
type nonrec create_starter_mapping_template_request = {
  1. template_details : template_details;
    (*

    Describes the details needed for generating the template. Specify the X12 transaction set and version for which the template is used: currently, we only support X12.

    *)
  2. mapping_type : mapping_type;
    (*

    Specify the format for the mapping template: either JSONATA or XSLT.

    *)
  3. output_sample_location : s3_location option;
    (*

    Specify the location of the sample EDI file that is used to generate the mapping template.

    *)
}
type nonrec create_profile_response = {
  1. created_at : created_date;
    (*

    Returns a timestamp representing the time the profile was created.

    *)
  2. log_group_name : log_group_name option;
    (*

    Returns the name of the logging group.

    *)
  3. logging : logging option;
    (*

    Returns whether or not logging is turned on for this profile.

    *)
  4. email : email option;
    (*

    Returns the email address associated with this customer profile.

    *)
  5. phone : phone;
    (*

    Returns the phone number associated with the profile.

    *)
  6. business_name : business_name;
    (*

    Returns the name for the business associated with this profile.

    *)
  7. name : profile_name;
    (*

    Returns the name of the profile, used to identify it.

    *)
  8. profile_arn : resource_arn;
    (*

    Returns an Amazon Resource Name (ARN) for the profile.

    *)
  9. profile_id : profile_id;
    (*

    Returns the unique, system-generated identifier for the profile.

    *)
}
type nonrec create_profile_request = {
  1. tags : tag_list option;
    (*

    Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.

    *)
  2. client_token : Smaws_Lib.Smithy_api.Types.string_ option;
    (*

    Reserved for future use.

    *)
  3. logging : logging;
    (*

    Specifies whether or not logging is enabled for this profile.

    *)
  4. business_name : business_name;
    (*

    Specifies the name for the business associated with this profile.

    *)
  5. phone : phone;
    (*

    Specifies the phone number associated with the profile.

    *)
  6. email : email option;
    (*

    Specifies the email address associated with this customer profile.

    *)
  7. name : profile_name;
    (*

    Specifies the name of the profile.

    *)
}
type nonrec create_partnership_response = {
  1. created_at : created_date;
    (*

    Returns a timestamp for creation date and time of the partnership.

    *)
  2. trading_partner_id : trading_partner_id option;
    (*

    Returns the unique, system-generated identifier for a trading partner.

    *)
  3. capability_options : capability_options option;
    (*

    Returns the structure that contains the details for the associated capabilities.

    *)
  4. capabilities : partnership_capabilities option;
    (*

    Returns one or more capabilities associated with this partnership.

    *)
  5. phone : phone option;
    (*

    Returns the phone number associated with the partnership.

    *)
  6. email : email option;
    (*

    Returns the email address associated with this trading partner.

    *)
  7. name : partner_name option;
    (*

    Returns a descriptive name for the partnership.

    *)
  8. partnership_arn : resource_arn;
    (*

    Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.

    *)
  9. partnership_id : partnership_id;
    (*

    Returns the unique, system-generated identifier for a partnership.

    *)
  10. profile_id : profile_id;
    (*

    Returns the unique, system-generated identifier for the profile connected to this partnership.

    *)
}
type nonrec create_partnership_request = {
  1. tags : tag_list option;
    (*

    Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.

    *)
  2. client_token : Smaws_Lib.Smithy_api.Types.string_ option;
    (*

    Reserved for future use.

    *)
  3. capability_options : capability_options option;
    (*

    Specify the structure that contains the details for the associated capabilities.

    *)
  4. capabilities : partnership_capabilities;
    (*

    Specifies a list of the capabilities associated with this partnership.

    *)
  5. phone : phone option;
    (*

    Specifies the phone number associated with the partnership.

    *)
  6. email : email;
    (*

    Specifies the email address associated with this trading partner.

    *)
  7. name : partner_name;
    (*

    Specifies a descriptive name for the partnership.

    *)
  8. profile_id : profile_id;
    (*

    Specifies the unique, system-generated identifier for the profile connected to this partnership.

    *)
}
type nonrec create_capability_response = {
  1. created_at : created_date;
    (*

    Returns a timestamp for creation date and time of the capability.

    *)
  2. instructions_documents : instructions_documents option;
    (*

    Returns one or more locations in Amazon S3, each specifying an EDI document that can be used with this capability. Each item contains the name of the bucket and the key, to identify the document's location.

    *)
  3. configuration : capability_configuration;
    (*

    Returns a structure that contains the details for a capability.

    *)
  4. type_ : capability_type;
    (*

    Returns the type of the capability. Currently, only edi is supported.

    *)
  5. name : capability_name;
    (*

    Returns the name of the capability used to identify it.

    *)
  6. capability_arn : resource_arn;
    (*

    Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.

    *)
  7. capability_id : capability_id;
    (*

    Returns a system-assigned unique identifier for the capability.

    *)
}
type nonrec create_capability_request = {
  1. tags : tag_list option;
    (*

    Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.

    *)
  2. client_token : Smaws_Lib.Smithy_api.Types.string_ option;
    (*

    Reserved for future use.

    *)
  3. instructions_documents : instructions_documents option;
    (*

    Specifies one or more locations in Amazon S3, each specifying an EDI document that can be used with this capability. Each item contains the name of the bucket and the key, to identify the document's location.

    *)
  4. configuration : capability_configuration;
    (*

    Specifies a structure that contains the details for a capability.

    *)
  5. type_ : capability_type;
    (*

    Specifies the type of the capability. Currently, only edi is supported.

    *)
  6. name : capability_name;
    (*

    Specifies the name of the capability, used to identify it.

    *)
}
type nonrec capability = Smaws_Lib.CoreTypes.Resource.t