123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056(* generated by: awso-codegen generate-all --botocore-data vendor/botocore/botocore/data -o aws --runtime-dir lib/runtime/awso --cli-dir awso-cli *)openAwsoopen!Import[@@@warning"-32"]letservice=Service.b2biletapiVersion="2022-06-23"letendpointPrefix="b2bi"letserviceFullName="AWS B2B Data Interchange"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="AWS B2BI"lettargetPrefix="B2BI"letsimple_to_jsonto_valuex=Botodata.Json.value_to_json_scalar(to_valuex)letcomposed_to_jsonto_valuex=Botodata.Json.value_to_json(to_valuex)letto_queryto_valuex=Client.Query.of_value(to_valuex)letstructure_to_value_auxst~f=letfilter=function|(k,Somev)->Some(k,v)|_->Noneinletpairkv=(k,v)inletdefer_value(k,dv)=pairkdvin((List.filter_mapst~f:filter)|>(List.map~f:defer_value))|>(funx->`Structure(fx))letstructure_to_value=structure_to_value_aux~f:Fn.idletstructure_to_wrapped_value~wrapper~response=structure_to_value_aux~f:(funx->[(wrapper,(`Structurex));(response,(`Structure[]))])moduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleCodeList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"CodeList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleElementId=structtypenonrect=string[@@ocaml.doc"A string type representing an X12 element ID. Element IDs are four-digit numeric identifiers that uniquely identify elements within the X12 standard. This type enforces a pattern of exactly four digits to ensure valid element IDs are used in validation rules."]letcontext_="ElementId"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ElementId"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"A string type representing an X12 element ID. Element IDs are four-digit numeric identifiers that uniquely identify elements within the X12 standard. This type enforces a pattern of exactly four digits to ensure valid element IDs are used in validation rules."]moduleX12ElementLengthValidationRuleMaxLengthInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:1000000)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for X12ElementLengthValidationRuleMaxLengthInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleX12ElementLengthValidationRuleMinLengthInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:1000000)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for X12ElementLengthValidationRuleMinLengthInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleElementPosition=structtypenonrect=string[@@ocaml.doc"A string type representing the position of an element within an X12 segment. The format follows the pattern of segment identifier followed by element position (e.g., \"ST-01\" for the first element of the ST segment) and optionally a component position (e.g., \"ST-01-02\" for the second component of the first element). This type is used in validation rules to precisely identify which element in which position is being validated."]letcontext_="ElementPosition"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ElementPosition"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"A string type representing the position of an element within an X12 segment. The format follows the pattern of segment identifier followed by element position (e.g., \"ST-01\" for the first element of the ST segment) and optionally a component position (e.g., \"ST-01-02\" for the second component of the first element). This type is used in validation rules to precisely identify which element in which position is being validated."]moduleElementRequirement=structtypenonrect=|OPTIONAL|MANDATORY|Non_static_idofstringletmakei=iletto_string=function|OPTIONAL->"OPTIONAL"|MANDATORY->"MANDATORY"|Non_static_ids->sletof_string=function|"OPTIONAL"->OPTIONAL|"MANDATORY"->MANDATORY|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ElementRequirement"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ElementRequirement"j)letto_json=simple_to_jsonto_valueendmoduleX12CodeListValidationRule=structtypenonrect={elementId:ElementId.t[@ocaml.doc"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:CodeList.toption[@ocaml.doc"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."];codesToRemove:CodeList.toption[@ocaml.doc"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."]}letcontext_="X12CodeListValidationRule"letmake?codesToAdd=fun?codesToRemove->fun~elementId->fun()->{codesToAdd;codesToRemove;elementId}letto_valuex=structure_to_value[("elementId",(Some(ElementId.to_valuex.elementId)));("codesToAdd",(Option.mapx.codesToAdd~f:CodeList.to_value));("codesToRemove",(Option.mapx.codesToRemove~f:CodeList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcodesToRemove=(Option.map~f:CodeList.of_xml)(Xml.childxml_arg0"codesToRemove")inletcodesToAdd=(Option.map~f:CodeList.of_xml)(Xml.childxml_arg0"codesToAdd")inletelementId=ElementId.of_xml(Xml.child_exn~context:context_xml_arg0"elementId")inmake?codesToRemove?codesToAdd~elementId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcodesToRemove=field_mapjson__"codesToRemove"CodeList.of_jsoninletcodesToAdd=field_mapjson__"codesToAdd"CodeList.of_jsoninletelementId=field_map_exnjson__"elementId"ElementId.of_jsoninmake?codesToRemove?codesToAdd~elementId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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."]moduleX12ElementLengthValidationRule=structtypenonrect={elementId:ElementId.t[@ocaml.doc"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:X12ElementLengthValidationRuleMaxLengthInteger.t[@ocaml.doc"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:X12ElementLengthValidationRuleMinLengthInteger.t[@ocaml.doc"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."]}letcontext_="X12ElementLengthValidationRule"letmake~elementId=fun~maxLength->fun~minLength->fun()->{elementId;maxLength;minLength}letto_valuex=structure_to_value[("elementId",(Some(ElementId.to_valuex.elementId)));("maxLength",(Some(X12ElementLengthValidationRuleMaxLengthInteger.to_valuex.maxLength)));("minLength",(Some(X12ElementLengthValidationRuleMinLengthInteger.to_valuex.minLength)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letminLength=X12ElementLengthValidationRuleMinLengthInteger.of_xml(Xml.child_exn~context:context_xml_arg0"minLength")inletmaxLength=X12ElementLengthValidationRuleMaxLengthInteger.of_xml(Xml.child_exn~context:context_xml_arg0"maxLength")inletelementId=ElementId.of_xml(Xml.child_exn~context:context_xml_arg0"elementId")inmake~minLength~maxLength~elementId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letminLength=field_map_exnjson__"minLength"X12ElementLengthValidationRuleMinLengthInteger.of_jsoninletmaxLength=field_map_exnjson__"maxLength"X12ElementLengthValidationRuleMaxLengthInteger.of_jsoninletelementId=field_map_exnjson__"elementId"ElementId.of_jsoninmake~minLength~maxLength~elementId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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."]moduleX12ElementRequirementValidationRule=structtypenonrect={elementPosition:ElementPosition.t[@ocaml.doc"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:ElementRequirement.t[@ocaml.doc"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)."]}letcontext_="X12ElementRequirementValidationRule"letmake~elementPosition=fun~requirement->fun()->{elementPosition;requirement}letto_valuex=structure_to_value[("elementPosition",(Some(ElementPosition.to_valuex.elementPosition)));("requirement",(Some(ElementRequirement.to_valuex.requirement)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrequirement=ElementRequirement.of_xml(Xml.child_exn~context:context_xml_arg0"requirement")inletelementPosition=ElementPosition.of_xml(Xml.child_exn~context:context_xml_arg0"elementPosition")inmake~requirement~elementPosition()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrequirement=field_map_exnjson__"requirement"ElementRequirement.of_jsoninletelementPosition=field_map_exnjson__"elementPosition"ElementPosition.of_jsoninmake~requirement~elementPosition()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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."]moduleX12ValidationRule=structtypenonrect={codeListValidationRule:X12CodeListValidationRule.toption[@ocaml.doc"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."];elementLengthValidationRule:X12ElementLengthValidationRule.toption[@ocaml.doc"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."];elementRequirementValidationRule:X12ElementRequirementValidationRule.toption[@ocaml.doc"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."]}letmake?codeListValidationRule=fun?elementLengthValidationRule->fun?elementRequirementValidationRule->fun()->{codeListValidationRule;elementLengthValidationRule;elementRequirementValidationRule}letto_valuex=structure_to_value[("codeListValidationRule",(Option.mapx.codeListValidationRule~f:X12CodeListValidationRule.to_value));("elementLengthValidationRule",(Option.mapx.elementLengthValidationRule~f:X12ElementLengthValidationRule.to_value));("elementRequirementValidationRule",(Option.mapx.elementRequirementValidationRule~f:X12ElementRequirementValidationRule.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letelementRequirementValidationRule=(Option.map~f:X12ElementRequirementValidationRule.of_xml)(Xml.childxml_arg0"elementRequirementValidationRule")inletelementLengthValidationRule=(Option.map~f:X12ElementLengthValidationRule.of_xml)(Xml.childxml_arg0"elementLengthValidationRule")inletcodeListValidationRule=(Option.map~f:X12CodeListValidationRule.of_xml)(Xml.childxml_arg0"codeListValidationRule")inmake?elementRequirementValidationRule?elementLengthValidationRule?codeListValidationRule()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letelementRequirementValidationRule=field_mapjson__"elementRequirementValidationRule"X12ElementRequirementValidationRule.of_jsoninletelementLengthValidationRule=field_mapjson__"elementLengthValidationRule"X12ElementLengthValidationRule.of_jsoninletcodeListValidationRule=field_mapjson__"codeListValidationRule"X12CodeListValidationRule.of_jsoninmake?elementRequirementValidationRule?elementLengthValidationRule?codeListValidationRule()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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."]moduleStartingFunctionalGroupControlNumber=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:999999999)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for StartingFunctionalGroupControlNumber"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleStartingInterchangeControlNumber=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:999999999)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for StartingInterchangeControlNumber"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleStartingTransactionSetControlNumber=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:999999999)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for StartingTransactionSetControlNumber"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleX12ComponentSeparator=structtypenonrect=stringletcontext_="X12ComponentSeparator"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1)>>=(fun()->check_patterni~pattern:"[!&'()*+,\\-./:;?=%@\\[\\]_{}|<>~^`\"]")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"X12ComponentSeparator"jletto_json=simple_to_jsonto_valueendmoduleX12DataElementSeparator=structtypenonrect=stringletcontext_="X12DataElementSeparator"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1)>>=(fun()->check_patterni~pattern:"[!&'()*+,\\-./:;?=%@\\[\\]_{}|<>~^`\"]")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"X12DataElementSeparator"jletto_json=simple_to_jsonto_valueendmoduleX12SegmentTerminator=structtypenonrect=stringletcontext_="X12SegmentTerminator"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1)>>=(fun()->check_patterni~pattern:"[!&'()*+,\\-./:;?=%@\\[\\]_{}|<>~^`\"]")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"X12SegmentTerminator"jletto_json=simple_to_jsonto_valueendmoduleX12ApplicationReceiverCode=structtypenonrect=stringletcontext_="X12ApplicationReceiverCode"letmakei=letopenResultinok_or_failwith((check_string_mini~min:2)>>=(fun()->(check_string_maxi~max:15)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9 ]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"X12ApplicationReceiverCode"jletto_json=simple_to_jsonto_valueendmoduleX12ApplicationSenderCode=structtypenonrect=stringletcontext_="X12ApplicationSenderCode"letmakei=letopenResultinok_or_failwith((check_string_mini~min:2)>>=(fun()->(check_string_maxi~max:15)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9 ]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"X12ApplicationSenderCode"jletto_json=simple_to_jsonto_valueendmoduleX12ResponsibleAgencyCode=structtypenonrect=stringletcontext_="X12ResponsibleAgencyCode"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"X12ResponsibleAgencyCode"jletto_json=simple_to_jsonto_valueendmoduleX12AcknowledgmentRequestedCode=structtypenonrect=stringletcontext_="X12AcknowledgmentRequestedCode"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"X12AcknowledgmentRequestedCode"jletto_json=simple_to_jsonto_valueendmoduleX12IdQualifier=structtypenonrect=stringletcontext_="X12IdQualifier"letmakei=letopenResultinok_or_failwith((check_string_mini~min:2)>>=(fun()->(check_string_maxi~max:2)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"X12IdQualifier"jletto_json=simple_to_jsonto_valueendmoduleX12ReceiverId=structtypenonrect=stringletcontext_="X12ReceiverId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:15)>>=(fun()->(check_string_maxi~max:15)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9 ]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"X12ReceiverId"jletto_json=simple_to_jsonto_valueendmoduleX12RepetitionSeparator=structtypenonrect=stringletcontext_="X12RepetitionSeparator"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"X12RepetitionSeparator"jletto_json=simple_to_jsonto_valueendmoduleX12SenderId=structtypenonrect=stringletcontext_="X12SenderId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:15)>>=(fun()->(check_string_maxi~max:15)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9 ]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"X12SenderId"jletto_json=simple_to_jsonto_valueendmoduleX12UsageIndicatorCode=structtypenonrect=stringletcontext_="X12UsageIndicatorCode"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"X12UsageIndicatorCode"jletto_json=simple_to_jsonto_valueendmoduleX12SplitBy=structtypenonrect=|NONE|TRANSACTION|Non_static_idofstringletmakei=iletto_string=function|NONE->"NONE"|TRANSACTION->"TRANSACTION"|Non_static_ids->sletof_string=function|"NONE"->NONE|"TRANSACTION"->TRANSACTION|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration X12SplitBy"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"X12SplitBy"j)letto_json=simple_to_jsonto_valueendmoduleX12ValidationRules=structtypenonrect=X12ValidationRule.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:X12ValidationRule.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:X12ValidationRule.of_xml)letof_jsonj=list_of_json~kind:"X12ValidationRules"~of_json:X12ValidationRule.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleX12FunctionalAcknowledgment=structtypenonrect=|DO_NOT_GENERATE|GENERATE_ALL_SEGMENTS|GENERATE_WITHOUT_TRANSACTION_SET_RESPONSE_LOOP|Non_static_idofstringletmakei=iletto_string=function|DO_NOT_GENERATE->"DO_NOT_GENERATE"|GENERATE_ALL_SEGMENTS->"GENERATE_ALL_SEGMENTS"|GENERATE_WITHOUT_TRANSACTION_SET_RESPONSE_LOOP->"GENERATE_WITHOUT_TRANSACTION_SET_RESPONSE_LOOP"|Non_static_ids->sletof_string=function|"DO_NOT_GENERATE"->DO_NOT_GENERATE|"GENERATE_ALL_SEGMENTS"->GENERATE_ALL_SEGMENTS|"GENERATE_WITHOUT_TRANSACTION_SET_RESPONSE_LOOP"->GENERATE_WITHOUT_TRANSACTION_SET_RESPONSE_LOOP|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration X12FunctionalAcknowledgment"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"X12FunctionalAcknowledgment"j)letto_json=simple_to_jsonto_valueendmoduleX12TechnicalAcknowledgment=structtypenonrect=|DO_NOT_GENERATE|GENERATE_ALL_SEGMENTS|Non_static_idofstringletmakei=iletto_string=function|DO_NOT_GENERATE->"DO_NOT_GENERATE"|GENERATE_ALL_SEGMENTS->"GENERATE_ALL_SEGMENTS"|Non_static_ids->sletof_string=function|"DO_NOT_GENERATE"->DO_NOT_GENERATE|"GENERATE_ALL_SEGMENTS"->GENERATE_ALL_SEGMENTS|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration X12TechnicalAcknowledgment"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"X12TechnicalAcknowledgment"j)letto_json=simple_to_jsonto_valueendmoduleLineLength=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:1);iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for LineLength"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleLineTerminator=structtypenonrect=|CRLF|LF|CR|Non_static_idofstringletmakei=iletto_string=function|CRLF->"CRLF"|LF->"LF"|CR->"CR"|Non_static_ids->sletof_string=function|"CRLF"->CRLF|"LF"->LF|"CR"->CR|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration LineTerminator"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"LineTerminator"j)letto_json=simple_to_jsonto_valueendmoduleWrapFormat=structtypenonrect=|SEGMENT|ONE_LINE|LINE_LENGTH|Non_static_idofstringletmakei=iletto_string=function|SEGMENT->"SEGMENT"|ONE_LINE->"ONE_LINE"|LINE_LENGTH->"LINE_LENGTH"|Non_static_ids->sletof_string=function|"SEGMENT"->SEGMENT|"ONE_LINE"->ONE_LINE|"LINE_LENGTH"->LINE_LENGTH|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration WrapFormat"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WrapFormat"j)letto_json=simple_to_jsonto_valueendmoduleX12ControlNumbers=structtypenonrect={startingInterchangeControlNumber:StartingInterchangeControlNumber.toption[@ocaml.doc"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."];startingFunctionalGroupControlNumber:StartingFunctionalGroupControlNumber.toption[@ocaml.doc"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."];startingTransactionSetControlNumber:StartingTransactionSetControlNumber.toption[@ocaml.doc"Specifies the starting transaction set control number (ST02) to use for X12 EDI generation. This number is incremented for each new transaction set."]}letmake?startingInterchangeControlNumber=fun?startingFunctionalGroupControlNumber->fun?startingTransactionSetControlNumber->fun()->{startingInterchangeControlNumber;startingFunctionalGroupControlNumber;startingTransactionSetControlNumber}letto_valuex=structure_to_value[("startingInterchangeControlNumber",(Option.mapx.startingInterchangeControlNumber~f:StartingInterchangeControlNumber.to_value));("startingFunctionalGroupControlNumber",(Option.mapx.startingFunctionalGroupControlNumber~f:StartingFunctionalGroupControlNumber.to_value));("startingTransactionSetControlNumber",(Option.mapx.startingTransactionSetControlNumber~f:StartingTransactionSetControlNumber.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstartingTransactionSetControlNumber=(Option.map~f:StartingTransactionSetControlNumber.of_xml)(Xml.childxml_arg0"startingTransactionSetControlNumber")inletstartingFunctionalGroupControlNumber=(Option.map~f:StartingFunctionalGroupControlNumber.of_xml)(Xml.childxml_arg0"startingFunctionalGroupControlNumber")inletstartingInterchangeControlNumber=(Option.map~f:StartingInterchangeControlNumber.of_xml)(Xml.childxml_arg0"startingInterchangeControlNumber")inmake?startingTransactionSetControlNumber?startingFunctionalGroupControlNumber?startingInterchangeControlNumber()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstartingTransactionSetControlNumber=field_mapjson__"startingTransactionSetControlNumber"StartingTransactionSetControlNumber.of_jsoninletstartingFunctionalGroupControlNumber=field_mapjson__"startingFunctionalGroupControlNumber"StartingFunctionalGroupControlNumber.of_jsoninletstartingInterchangeControlNumber=field_mapjson__"startingInterchangeControlNumber"StartingInterchangeControlNumber.of_jsoninmake?startingTransactionSetControlNumber?startingFunctionalGroupControlNumber?startingInterchangeControlNumber()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains configuration for X12 control numbers used in X12 EDI generation. Control numbers are used to uniquely identify interchanges, functional groups, and transaction sets."]moduleX12Delimiters=structtypenonrect={componentSeparator:X12ComponentSeparator.toption[@ocaml.doc"The component, or sub-element, separator. The default value is : (colon)."];dataElementSeparator:X12DataElementSeparator.toption[@ocaml.doc"The data element separator. The default value is * (asterisk)."];segmentTerminator:X12SegmentTerminator.toption[@ocaml.doc"The segment terminator. The default value is ~ (tilde)."]}letmake?componentSeparator=fun?dataElementSeparator->fun?segmentTerminator->fun()->{componentSeparator;dataElementSeparator;segmentTerminator}letto_valuex=structure_to_value[("componentSeparator",(Option.mapx.componentSeparator~f:X12ComponentSeparator.to_value));("dataElementSeparator",(Option.mapx.dataElementSeparator~f:X12DataElementSeparator.to_value));("segmentTerminator",(Option.mapx.segmentTerminator~f:X12SegmentTerminator.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsegmentTerminator=(Option.map~f:X12SegmentTerminator.of_xml)(Xml.childxml_arg0"segmentTerminator")inletdataElementSeparator=(Option.map~f:X12DataElementSeparator.of_xml)(Xml.childxml_arg0"dataElementSeparator")inletcomponentSeparator=(Option.map~f:X12ComponentSeparator.of_xml)(Xml.childxml_arg0"componentSeparator")inmake?segmentTerminator?dataElementSeparator?componentSeparator()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsegmentTerminator=field_mapjson__"segmentTerminator"X12SegmentTerminator.of_jsoninletdataElementSeparator=field_mapjson__"dataElementSeparator"X12DataElementSeparator.of_jsoninletcomponentSeparator=field_mapjson__"componentSeparator"X12ComponentSeparator.of_jsoninmake?segmentTerminator?dataElementSeparator?componentSeparator()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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."]moduleX12FunctionalGroupHeaders=structtypenonrect={applicationSenderCode:X12ApplicationSenderCode.toption[@ocaml.doc"A value representing the code used to identify the party transmitting a message, at position GS-02."];applicationReceiverCode:X12ApplicationReceiverCode.toption[@ocaml.doc"A value representing the code used to identify the party receiving a message, at position GS-03."];responsibleAgencyCode:X12ResponsibleAgencyCode.toption[@ocaml.doc"A code that identifies the issuer of the standard, at position GS-07."]}letmake?applicationSenderCode=fun?applicationReceiverCode->fun?responsibleAgencyCode->fun()->{applicationSenderCode;applicationReceiverCode;responsibleAgencyCode}letto_valuex=structure_to_value[("applicationSenderCode",(Option.mapx.applicationSenderCode~f:X12ApplicationSenderCode.to_value));("applicationReceiverCode",(Option.mapx.applicationReceiverCode~f:X12ApplicationReceiverCode.to_value));("responsibleAgencyCode",(Option.mapx.responsibleAgencyCode~f:X12ResponsibleAgencyCode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresponsibleAgencyCode=(Option.map~f:X12ResponsibleAgencyCode.of_xml)(Xml.childxml_arg0"responsibleAgencyCode")inletapplicationReceiverCode=(Option.map~f:X12ApplicationReceiverCode.of_xml)(Xml.childxml_arg0"applicationReceiverCode")inletapplicationSenderCode=(Option.map~f:X12ApplicationSenderCode.of_xml)(Xml.childxml_arg0"applicationSenderCode")inmake?responsibleAgencyCode?applicationReceiverCode?applicationSenderCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresponsibleAgencyCode=field_mapjson__"responsibleAgencyCode"X12ResponsibleAgencyCode.of_jsoninletapplicationReceiverCode=field_mapjson__"applicationReceiverCode"X12ApplicationReceiverCode.of_jsoninletapplicationSenderCode=field_mapjson__"applicationSenderCode"X12ApplicationSenderCode.of_jsoninmake?responsibleAgencyCode?applicationReceiverCode?applicationSenderCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Part of the X12 message structure. These are the functional group headers for the X12 EDI object."]moduleX12GS05TimeFormat=structtypenonrect=|HHMM|HHMMSS|HHMMSSDD|Non_static_idofstringletmakei=iletto_string=function|HHMM->"HHMM"|HHMMSS->"HHMMSS"|HHMMSSDD->"HHMMSSDD"|Non_static_ids->sletof_string=function|"HHMM"->HHMM|"HHMMSS"->HHMMSS|"HHMMSSDD"->HHMMSSDD|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration X12GS05TimeFormat"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"X12GS05TimeFormat"j)letto_json=simple_to_jsonto_valueendmoduleX12InterchangeControlHeaders=structtypenonrect={senderIdQualifier:X12IdQualifier.toption[@ocaml.doc"Located at position ISA-05 in the header. Qualifier for the sender ID. Together, the ID and qualifier uniquely identify the sending trading partner."];senderId:X12SenderId.toption[@ocaml.doc"Located at position ISA-06 in the header. This value (along with the senderIdQualifier) identifies the sender of the interchange."];receiverIdQualifier:X12IdQualifier.toption[@ocaml.doc"Located at position ISA-07 in the header. Qualifier for the receiver ID. Together, the ID and qualifier uniquely identify the receiving trading partner."];receiverId:X12ReceiverId.toption[@ocaml.doc"Located at position ISA-08 in the header. This value (along with the receiverIdQualifier) identifies the intended recipient of the interchange."];repetitionSeparator:X12RepetitionSeparator.toption[@ocaml.doc"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."];acknowledgmentRequestedCode:X12AcknowledgmentRequestedCode.toption[@ocaml.doc"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."];usageIndicatorCode:X12UsageIndicatorCode.toption[@ocaml.doc"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."]}letmake?senderIdQualifier=fun?senderId->fun?receiverIdQualifier->fun?receiverId->fun?repetitionSeparator->fun?acknowledgmentRequestedCode->fun?usageIndicatorCode->fun()->{senderIdQualifier;senderId;receiverIdQualifier;receiverId;repetitionSeparator;acknowledgmentRequestedCode;usageIndicatorCode}letto_valuex=structure_to_value[("senderIdQualifier",(Option.mapx.senderIdQualifier~f:X12IdQualifier.to_value));("senderId",(Option.mapx.senderId~f:X12SenderId.to_value));("receiverIdQualifier",(Option.mapx.receiverIdQualifier~f:X12IdQualifier.to_value));("receiverId",(Option.mapx.receiverId~f:X12ReceiverId.to_value));("repetitionSeparator",(Option.mapx.repetitionSeparator~f:X12RepetitionSeparator.to_value));("acknowledgmentRequestedCode",(Option.mapx.acknowledgmentRequestedCode~f:X12AcknowledgmentRequestedCode.to_value));("usageIndicatorCode",(Option.mapx.usageIndicatorCode~f:X12UsageIndicatorCode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letusageIndicatorCode=(Option.map~f:X12UsageIndicatorCode.of_xml)(Xml.childxml_arg0"usageIndicatorCode")inletacknowledgmentRequestedCode=(Option.map~f:X12AcknowledgmentRequestedCode.of_xml)(Xml.childxml_arg0"acknowledgmentRequestedCode")inletrepetitionSeparator=(Option.map~f:X12RepetitionSeparator.of_xml)(Xml.childxml_arg0"repetitionSeparator")inletreceiverId=(Option.map~f:X12ReceiverId.of_xml)(Xml.childxml_arg0"receiverId")inletreceiverIdQualifier=(Option.map~f:X12IdQualifier.of_xml)(Xml.childxml_arg0"receiverIdQualifier")inletsenderId=(Option.map~f:X12SenderId.of_xml)(Xml.childxml_arg0"senderId")inletsenderIdQualifier=(Option.map~f:X12IdQualifier.of_xml)(Xml.childxml_arg0"senderIdQualifier")inmake?usageIndicatorCode?acknowledgmentRequestedCode?repetitionSeparator?receiverId?receiverIdQualifier?senderId?senderIdQualifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letusageIndicatorCode=field_mapjson__"usageIndicatorCode"X12UsageIndicatorCode.of_jsoninletacknowledgmentRequestedCode=field_mapjson__"acknowledgmentRequestedCode"X12AcknowledgmentRequestedCode.of_jsoninletrepetitionSeparator=field_mapjson__"repetitionSeparator"X12RepetitionSeparator.of_jsoninletreceiverId=field_mapjson__"receiverId"X12ReceiverId.of_jsoninletreceiverIdQualifier=field_mapjson__"receiverIdQualifier"X12IdQualifier.of_jsoninletsenderId=field_mapjson__"senderId"X12SenderId.of_jsoninletsenderIdQualifier=field_mapjson__"senderIdQualifier"X12IdQualifier.of_jsoninmake?usageIndicatorCode?acknowledgmentRequestedCode?repetitionSeparator?receiverId?receiverIdQualifier?senderId?senderIdQualifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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."]moduleX12ValidateEdi=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleX12SplitOptions=structtypenonrect={splitBy:X12SplitBy.t[@ocaml.doc"Specifies the method used to split X12 EDI files. Valid values include TRANSACTION (split by individual transaction sets), or NONE (no splitting)."]}letcontext_="X12SplitOptions"letmake~splitBy=fun()->{splitBy}letto_valuex=structure_to_value[("splitBy",(Some(X12SplitBy.to_valuex.splitBy)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsplitBy=X12SplitBy.of_xml(Xml.child_exn~context:context_xml_arg0"splitBy")inmake~splitBy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsplitBy=field_map_exnjson__"splitBy"X12SplitBy.of_jsoninmake~splitBy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains options for splitting X12 EDI files into smaller units. This is useful for processing large EDI files more efficiently."]moduleX12ValidationOptions=structtypenonrect={validationRules:X12ValidationRules.toption[@ocaml.doc"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."]}letmake?validationRules=fun()->{validationRules}letto_valuex=structure_to_value[("validationRules",(Option.mapx.validationRules~f:X12ValidationRules.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalidationRules=(Option.map~f:X12ValidationRules.of_xml)(Xml.childxml_arg0"validationRules")inmake?validationRules()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalidationRules=field_mapjson__"validationRules"X12ValidationRules.of_jsoninmake?validationRules()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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."]moduleX12TransactionSet=structtypenonrect=|X12_100|X12_101|X12_102|X12_103|X12_104|X12_105|X12_106|X12_107|X12_108|X12_109|X12_110|X12_111|X12_112|X12_113|X12_120|X12_121|X12_124|X12_125|X12_126|X12_127|X12_128|X12_129|X12_130|X12_131|X12_132|X12_133|X12_135|X12_138|X12_139|X12_140|X12_141|X12_142|X12_143|X12_144|X12_146|X12_147|X12_148|X12_149|X12_150|X12_151|X12_152|X12_153|X12_154|X12_155|X12_157|X12_158|X12_159|X12_160|X12_161|X12_163|X12_170|X12_175|X12_176|X12_179|X12_180|X12_185|X12_186|X12_187|X12_188|X12_189|X12_190|X12_191|X12_194|X12_195|X12_196|X12_197|X12_198|X12_199|X12_200|X12_201|X12_202|X12_203|X12_204|X12_205|X12_206|X12_210|X12_211|X12_212|X12_213|X12_214|X12_215|X12_216|X12_217|X12_218|X12_219|X12_220|X12_222|X12_223|X12_224|X12_225|X12_227|X12_228|X12_240|X12_242|X12_244|X12_245|X12_248|X12_249|X12_250|X12_251|X12_252|X12_255|X12_256|X12_259|X12_260|X12_261|X12_262|X12_263|X12_264|X12_265|X12_266|X12_267|X12_268|X12_269|X12_270|X12_271|X12_272|X12_273|X12_274|X12_275|X12_276|X12_277|X12_278|X12_280|X12_283|X12_284|X12_285|X12_286|X12_288|X12_290|X12_300|X12_301|X12_303|X12_304|X12_309|X12_310|X12_311|X12_312|X12_313|X12_315|X12_317|X12_319|X12_322|X12_323|X12_324|X12_325|X12_326|X12_350|X12_352|X12_353|X12_354|X12_355|X12_356|X12_357|X12_358|X12_361|X12_362|X12_404|X12_410|X12_412|X12_414|X12_417|X12_418|X12_419|X12_420|X12_421|X12_422|X12_423|X12_424|X12_425|X12_426|X12_429|X12_431|X12_432|X12_433|X12_434|X12_435|X12_436|X12_437|X12_440|X12_451|X12_452|X12_453|X12_455|X12_456|X12_460|X12_463|X12_466|X12_468|X12_470|X12_475|X12_485|X12_486|X12_490|X12_492|X12_494|X12_500|X12_501|X12_503|X12_504|X12_511|X12_517|X12_521|X12_527|X12_536|X12_540|X12_561|X12_567|X12_568|X12_601|X12_602|X12_620|X12_625|X12_650|X12_715|X12_753|X12_754|X12_805|X12_806|X12_810|X12_811|X12_812|X12_813|X12_814|X12_815|X12_816|X12_818|X12_819|X12_820|X12_821|X12_822|X12_823|X12_824|X12_826|X12_827|X12_828|X12_829|X12_830|X12_831|X12_832|X12_833|X12_834|X12_835|X12_836|X12_837|X12_838|X12_839|X12_840|X12_841|X12_842|X12_843|X12_844|X12_845|X12_846|X12_847|X12_848|X12_849|X12_850|X12_851|X12_852|X12_853|X12_854|X12_855|X12_856|X12_857|X12_858|X12_859|X12_860|X12_861|X12_862|X12_863|X12_864|X12_865|X12_866|X12_867|X12_868|X12_869|X12_870|X12_871|X12_872|X12_873|X12_874|X12_875|X12_876|X12_877|X12_878|X12_879|X12_880|X12_881|X12_882|X12_883|X12_884|X12_885|X12_886|X12_887|X12_888|X12_889|X12_891|X12_893|X12_894|X12_895|X12_896|X12_920|X12_924|X12_925|X12_926|X12_928|X12_940|X12_943|X12_944|X12_945|X12_947|X12_980|X12_990|X12_993|X12_996|X12_997|X12_998|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231|Non_static_idofstringletmakei=iletto_string=function|X12_100->"X12_100"|X12_101->"X12_101"|X12_102->"X12_102"|X12_103->"X12_103"|X12_104->"X12_104"|X12_105->"X12_105"|X12_106->"X12_106"|X12_107->"X12_107"|X12_108->"X12_108"|X12_109->"X12_109"|X12_110->"X12_110"|X12_111->"X12_111"|X12_112->"X12_112"|X12_113->"X12_113"|X12_120->"X12_120"|X12_121->"X12_121"|X12_124->"X12_124"|X12_125->"X12_125"|X12_126->"X12_126"|X12_127->"X12_127"|X12_128->"X12_128"|X12_129->"X12_129"|X12_130->"X12_130"|X12_131->"X12_131"|X12_132->"X12_132"|X12_133->"X12_133"|X12_135->"X12_135"|X12_138->"X12_138"|X12_139->"X12_139"|X12_140->"X12_140"|X12_141->"X12_141"|X12_142->"X12_142"|X12_143->"X12_143"|X12_144->"X12_144"|X12_146->"X12_146"|X12_147->"X12_147"|X12_148->"X12_148"|X12_149->"X12_149"|X12_150->"X12_150"|X12_151->"X12_151"|X12_152->"X12_152"|X12_153->"X12_153"|X12_154->"X12_154"|X12_155->"X12_155"|X12_157->"X12_157"|X12_158->"X12_158"|X12_159->"X12_159"|X12_160->"X12_160"|X12_161->"X12_161"|X12_163->"X12_163"|X12_170->"X12_170"|X12_175->"X12_175"|X12_176->"X12_176"|X12_179->"X12_179"|X12_180->"X12_180"|X12_185->"X12_185"|X12_186->"X12_186"|X12_187->"X12_187"|X12_188->"X12_188"|X12_189->"X12_189"|X12_190->"X12_190"|X12_191->"X12_191"|X12_194->"X12_194"|X12_195->"X12_195"|X12_196->"X12_196"|X12_197->"X12_197"|X12_198->"X12_198"|X12_199->"X12_199"|X12_200->"X12_200"|X12_201->"X12_201"|X12_202->"X12_202"|X12_203->"X12_203"|X12_204->"X12_204"|X12_205->"X12_205"|X12_206->"X12_206"|X12_210->"X12_210"|X12_211->"X12_211"|X12_212->"X12_212"|X12_213->"X12_213"|X12_214->"X12_214"|X12_215->"X12_215"|X12_216->"X12_216"|X12_217->"X12_217"|X12_218->"X12_218"|X12_219->"X12_219"|X12_220->"X12_220"|X12_222->"X12_222"|X12_223->"X12_223"|X12_224->"X12_224"|X12_225->"X12_225"|X12_227->"X12_227"|X12_228->"X12_228"|X12_240->"X12_240"|X12_242->"X12_242"|X12_244->"X12_244"|X12_245->"X12_245"|X12_248->"X12_248"|X12_249->"X12_249"|X12_250->"X12_250"|X12_251->"X12_251"|X12_252->"X12_252"|X12_255->"X12_255"|X12_256->"X12_256"|X12_259->"X12_259"|X12_260->"X12_260"|X12_261->"X12_261"|X12_262->"X12_262"|X12_263->"X12_263"|X12_264->"X12_264"|X12_265->"X12_265"|X12_266->"X12_266"|X12_267->"X12_267"|X12_268->"X12_268"|X12_269->"X12_269"|X12_270->"X12_270"|X12_271->"X12_271"|X12_272->"X12_272"|X12_273->"X12_273"|X12_274->"X12_274"|X12_275->"X12_275"|X12_276->"X12_276"|X12_277->"X12_277"|X12_278->"X12_278"|X12_280->"X12_280"|X12_283->"X12_283"|X12_284->"X12_284"|X12_285->"X12_285"|X12_286->"X12_286"|X12_288->"X12_288"|X12_290->"X12_290"|X12_300->"X12_300"|X12_301->"X12_301"|X12_303->"X12_303"|X12_304->"X12_304"|X12_309->"X12_309"|X12_310->"X12_310"|X12_311->"X12_311"|X12_312->"X12_312"|X12_313->"X12_313"|X12_315->"X12_315"|X12_317->"X12_317"|X12_319->"X12_319"|X12_322->"X12_322"|X12_323->"X12_323"|X12_324->"X12_324"|X12_325->"X12_325"|X12_326->"X12_326"|X12_350->"X12_350"|X12_352->"X12_352"|X12_353->"X12_353"|X12_354->"X12_354"|X12_355->"X12_355"|X12_356->"X12_356"|X12_357->"X12_357"|X12_358->"X12_358"|X12_361->"X12_361"|X12_362->"X12_362"|X12_404->"X12_404"|X12_410->"X12_410"|X12_412->"X12_412"|X12_414->"X12_414"|X12_417->"X12_417"|X12_418->"X12_418"|X12_419->"X12_419"|X12_420->"X12_420"|X12_421->"X12_421"|X12_422->"X12_422"|X12_423->"X12_423"|X12_424->"X12_424"|X12_425->"X12_425"|X12_426->"X12_426"|X12_429->"X12_429"|X12_431->"X12_431"|X12_432->"X12_432"|X12_433->"X12_433"|X12_434->"X12_434"|X12_435->"X12_435"|X12_436->"X12_436"|X12_437->"X12_437"|X12_440->"X12_440"|X12_451->"X12_451"|X12_452->"X12_452"|X12_453->"X12_453"|X12_455->"X12_455"|X12_456->"X12_456"|X12_460->"X12_460"|X12_463->"X12_463"|X12_466->"X12_466"|X12_468->"X12_468"|X12_470->"X12_470"|X12_475->"X12_475"|X12_485->"X12_485"|X12_486->"X12_486"|X12_490->"X12_490"|X12_492->"X12_492"|X12_494->"X12_494"|X12_500->"X12_500"|X12_501->"X12_501"|X12_503->"X12_503"|X12_504->"X12_504"|X12_511->"X12_511"|X12_517->"X12_517"|X12_521->"X12_521"|X12_527->"X12_527"|X12_536->"X12_536"|X12_540->"X12_540"|X12_561->"X12_561"|X12_567->"X12_567"|X12_568->"X12_568"|X12_601->"X12_601"|X12_602->"X12_602"|X12_620->"X12_620"|X12_625->"X12_625"|X12_650->"X12_650"|X12_715->"X12_715"|X12_753->"X12_753"|X12_754->"X12_754"|X12_805->"X12_805"|X12_806->"X12_806"|X12_810->"X12_810"|X12_811->"X12_811"|X12_812->"X12_812"|X12_813->"X12_813"|X12_814->"X12_814"|X12_815->"X12_815"|X12_816->"X12_816"|X12_818->"X12_818"|X12_819->"X12_819"|X12_820->"X12_820"|X12_821->"X12_821"|X12_822->"X12_822"|X12_823->"X12_823"|X12_824->"X12_824"|X12_826->"X12_826"|X12_827->"X12_827"|X12_828->"X12_828"|X12_829->"X12_829"|X12_830->"X12_830"|X12_831->"X12_831"|X12_832->"X12_832"|X12_833->"X12_833"|X12_834->"X12_834"|X12_835->"X12_835"|X12_836->"X12_836"|X12_837->"X12_837"|X12_838->"X12_838"|X12_839->"X12_839"|X12_840->"X12_840"|X12_841->"X12_841"|X12_842->"X12_842"|X12_843->"X12_843"|X12_844->"X12_844"|X12_845->"X12_845"|X12_846->"X12_846"|X12_847->"X12_847"|X12_848->"X12_848"|X12_849->"X12_849"|X12_850->"X12_850"|X12_851->"X12_851"|X12_852->"X12_852"|X12_853->"X12_853"|X12_854->"X12_854"|X12_855->"X12_855"|X12_856->"X12_856"|X12_857->"X12_857"|X12_858->"X12_858"|X12_859->"X12_859"|X12_860->"X12_860"|X12_861->"X12_861"|X12_862->"X12_862"|X12_863->"X12_863"|X12_864->"X12_864"|X12_865->"X12_865"|X12_866->"X12_866"|X12_867->"X12_867"|X12_868->"X12_868"|X12_869->"X12_869"|X12_870->"X12_870"|X12_871->"X12_871"|X12_872->"X12_872"|X12_873->"X12_873"|X12_874->"X12_874"|X12_875->"X12_875"|X12_876->"X12_876"|X12_877->"X12_877"|X12_878->"X12_878"|X12_879->"X12_879"|X12_880->"X12_880"|X12_881->"X12_881"|X12_882->"X12_882"|X12_883->"X12_883"|X12_884->"X12_884"|X12_885->"X12_885"|X12_886->"X12_886"|X12_887->"X12_887"|X12_888->"X12_888"|X12_889->"X12_889"|X12_891->"X12_891"|X12_893->"X12_893"|X12_894->"X12_894"|X12_895->"X12_895"|X12_896->"X12_896"|X12_920->"X12_920"|X12_924->"X12_924"|X12_925->"X12_925"|X12_926->"X12_926"|X12_928->"X12_928"|X12_940->"X12_940"|X12_943->"X12_943"|X12_944->"X12_944"|X12_945->"X12_945"|X12_947->"X12_947"|X12_980->"X12_980"|X12_990->"X12_990"|X12_993->"X12_993"|X12_996->"X12_996"|X12_997->"X12_997"|X12_998->"X12_998"|X12_999->"X12_999"|X12_270_X279->"X12_270_X279"|X12_271_X279->"X12_271_X279"|X12_275_X210->"X12_275_X210"|X12_275_X211->"X12_275_X211"|X12_276_X212->"X12_276_X212"|X12_277_X212->"X12_277_X212"|X12_277_X214->"X12_277_X214"|X12_277_X364->"X12_277_X364"|X12_278_X217->"X12_278_X217"|X12_820_X218->"X12_820_X218"|X12_820_X306->"X12_820_X306"|X12_824_X186->"X12_824_X186"|X12_834_X220->"X12_834_X220"|X12_834_X307->"X12_834_X307"|X12_834_X318->"X12_834_X318"|X12_835_X221->"X12_835_X221"|X12_837_X222->"X12_837_X222"|X12_837_X223->"X12_837_X223"|X12_837_X224->"X12_837_X224"|X12_837_X291->"X12_837_X291"|X12_837_X292->"X12_837_X292"|X12_837_X298->"X12_837_X298"|X12_999_X231->"X12_999_X231"|Non_static_ids->sletof_string=function|"X12_100"->X12_100|"X12_101"->X12_101|"X12_102"->X12_102|"X12_103"->X12_103|"X12_104"->X12_104|"X12_105"->X12_105|"X12_106"->X12_106|"X12_107"->X12_107|"X12_108"->X12_108|"X12_109"->X12_109|"X12_110"->X12_110|"X12_111"->X12_111|"X12_112"->X12_112|"X12_113"->X12_113|"X12_120"->X12_120|"X12_121"->X12_121|"X12_124"->X12_124|"X12_125"->X12_125|"X12_126"->X12_126|"X12_127"->X12_127|"X12_128"->X12_128|"X12_129"->X12_129|"X12_130"->X12_130|"X12_131"->X12_131|"X12_132"->X12_132|"X12_133"->X12_133|"X12_135"->X12_135|"X12_138"->X12_138|"X12_139"->X12_139|"X12_140"->X12_140|"X12_141"->X12_141|"X12_142"->X12_142|"X12_143"->X12_143|"X12_144"->X12_144|"X12_146"->X12_146|"X12_147"->X12_147|"X12_148"->X12_148|"X12_149"->X12_149|"X12_150"->X12_150|"X12_151"->X12_151|"X12_152"->X12_152|"X12_153"->X12_153|"X12_154"->X12_154|"X12_155"->X12_155|"X12_157"->X12_157|"X12_158"->X12_158|"X12_159"->X12_159|"X12_160"->X12_160|"X12_161"->X12_161|"X12_163"->X12_163|"X12_170"->X12_170|"X12_175"->X12_175|"X12_176"->X12_176|"X12_179"->X12_179|"X12_180"->X12_180|"X12_185"->X12_185|"X12_186"->X12_186|"X12_187"->X12_187|"X12_188"->X12_188|"X12_189"->X12_189|"X12_190"->X12_190|"X12_191"->X12_191|"X12_194"->X12_194|"X12_195"->X12_195|"X12_196"->X12_196|"X12_197"->X12_197|"X12_198"->X12_198|"X12_199"->X12_199|"X12_200"->X12_200|"X12_201"->X12_201|"X12_202"->X12_202|"X12_203"->X12_203|"X12_204"->X12_204|"X12_205"->X12_205|"X12_206"->X12_206|"X12_210"->X12_210|"X12_211"->X12_211|"X12_212"->X12_212|"X12_213"->X12_213|"X12_214"->X12_214|"X12_215"->X12_215|"X12_216"->X12_216|"X12_217"->X12_217|"X12_218"->X12_218|"X12_219"->X12_219|"X12_220"->X12_220|"X12_222"->X12_222|"X12_223"->X12_223|"X12_224"->X12_224|"X12_225"->X12_225|"X12_227"->X12_227|"X12_228"->X12_228|"X12_240"->X12_240|"X12_242"->X12_242|"X12_244"->X12_244|"X12_245"->X12_245|"X12_248"->X12_248|"X12_249"->X12_249|"X12_250"->X12_250|"X12_251"->X12_251|"X12_252"->X12_252|"X12_255"->X12_255|"X12_256"->X12_256|"X12_259"->X12_259|"X12_260"->X12_260|"X12_261"->X12_261|"X12_262"->X12_262|"X12_263"->X12_263|"X12_264"->X12_264|"X12_265"->X12_265|"X12_266"->X12_266|"X12_267"->X12_267|"X12_268"->X12_268|"X12_269"->X12_269|"X12_270"->X12_270|"X12_271"->X12_271|"X12_272"->X12_272|"X12_273"->X12_273|"X12_274"->X12_274|"X12_275"->X12_275|"X12_276"->X12_276|"X12_277"->X12_277|"X12_278"->X12_278|"X12_280"->X12_280|"X12_283"->X12_283|"X12_284"->X12_284|"X12_285"->X12_285|"X12_286"->X12_286|"X12_288"->X12_288|"X12_290"->X12_290|"X12_300"->X12_300|"X12_301"->X12_301|"X12_303"->X12_303|"X12_304"->X12_304|"X12_309"->X12_309|"X12_310"->X12_310|"X12_311"->X12_311|"X12_312"->X12_312|"X12_313"->X12_313|"X12_315"->X12_315|"X12_317"->X12_317|"X12_319"->X12_319|"X12_322"->X12_322|"X12_323"->X12_323|"X12_324"->X12_324|"X12_325"->X12_325|"X12_326"->X12_326|"X12_350"->X12_350|"X12_352"->X12_352|"X12_353"->X12_353|"X12_354"->X12_354|"X12_355"->X12_355|"X12_356"->X12_356|"X12_357"->X12_357|"X12_358"->X12_358|"X12_361"->X12_361|"X12_362"->X12_362|"X12_404"->X12_404|"X12_410"->X12_410|"X12_412"->X12_412|"X12_414"->X12_414|"X12_417"->X12_417|"X12_418"->X12_418|"X12_419"->X12_419|"X12_420"->X12_420|"X12_421"->X12_421|"X12_422"->X12_422|"X12_423"->X12_423|"X12_424"->X12_424|"X12_425"->X12_425|"X12_426"->X12_426|"X12_429"->X12_429|"X12_431"->X12_431|"X12_432"->X12_432|"X12_433"->X12_433|"X12_434"->X12_434|"X12_435"->X12_435|"X12_436"->X12_436|"X12_437"->X12_437|"X12_440"->X12_440|"X12_451"->X12_451|"X12_452"->X12_452|"X12_453"->X12_453|"X12_455"->X12_455|"X12_456"->X12_456|"X12_460"->X12_460|"X12_463"->X12_463|"X12_466"->X12_466|"X12_468"->X12_468|"X12_470"->X12_470|"X12_475"->X12_475|"X12_485"->X12_485|"X12_486"->X12_486|"X12_490"->X12_490|"X12_492"->X12_492|"X12_494"->X12_494|"X12_500"->X12_500|"X12_501"->X12_501|"X12_503"->X12_503|"X12_504"->X12_504|"X12_511"->X12_511|"X12_517"->X12_517|"X12_521"->X12_521|"X12_527"->X12_527|"X12_536"->X12_536|"X12_540"->X12_540|"X12_561"->X12_561|"X12_567"->X12_567|"X12_568"->X12_568|"X12_601"->X12_601|"X12_602"->X12_602|"X12_620"->X12_620|"X12_625"->X12_625|"X12_650"->X12_650|"X12_715"->X12_715|"X12_753"->X12_753|"X12_754"->X12_754|"X12_805"->X12_805|"X12_806"->X12_806|"X12_810"->X12_810|"X12_811"->X12_811|"X12_812"->X12_812|"X12_813"->X12_813|"X12_814"->X12_814|"X12_815"->X12_815|"X12_816"->X12_816|"X12_818"->X12_818|"X12_819"->X12_819|"X12_820"->X12_820|"X12_821"->X12_821|"X12_822"->X12_822|"X12_823"->X12_823|"X12_824"->X12_824|"X12_826"->X12_826|"X12_827"->X12_827|"X12_828"->X12_828|"X12_829"->X12_829|"X12_830"->X12_830|"X12_831"->X12_831|"X12_832"->X12_832|"X12_833"->X12_833|"X12_834"->X12_834|"X12_835"->X12_835|"X12_836"->X12_836|"X12_837"->X12_837|"X12_838"->X12_838|"X12_839"->X12_839|"X12_840"->X12_840|"X12_841"->X12_841|"X12_842"->X12_842|"X12_843"->X12_843|"X12_844"->X12_844|"X12_845"->X12_845|"X12_846"->X12_846|"X12_847"->X12_847|"X12_848"->X12_848|"X12_849"->X12_849|"X12_850"->X12_850|"X12_851"->X12_851|"X12_852"->X12_852|"X12_853"->X12_853|"X12_854"->X12_854|"X12_855"->X12_855|"X12_856"->X12_856|"X12_857"->X12_857|"X12_858"->X12_858|"X12_859"->X12_859|"X12_860"->X12_860|"X12_861"->X12_861|"X12_862"->X12_862|"X12_863"->X12_863|"X12_864"->X12_864|"X12_865"->X12_865|"X12_866"->X12_866|"X12_867"->X12_867|"X12_868"->X12_868|"X12_869"->X12_869|"X12_870"->X12_870|"X12_871"->X12_871|"X12_872"->X12_872|"X12_873"->X12_873|"X12_874"->X12_874|"X12_875"->X12_875|"X12_876"->X12_876|"X12_877"->X12_877|"X12_878"->X12_878|"X12_879"->X12_879|"X12_880"->X12_880|"X12_881"->X12_881|"X12_882"->X12_882|"X12_883"->X12_883|"X12_884"->X12_884|"X12_885"->X12_885|"X12_886"->X12_886|"X12_887"->X12_887|"X12_888"->X12_888|"X12_889"->X12_889|"X12_891"->X12_891|"X12_893"->X12_893|"X12_894"->X12_894|"X12_895"->X12_895|"X12_896"->X12_896|"X12_920"->X12_920|"X12_924"->X12_924|"X12_925"->X12_925|"X12_926"->X12_926|"X12_928"->X12_928|"X12_940"->X12_940|"X12_943"->X12_943|"X12_944"->X12_944|"X12_945"->X12_945|"X12_947"->X12_947|"X12_980"->X12_980|"X12_990"->X12_990|"X12_993"->X12_993|"X12_996"->X12_996|"X12_997"->X12_997|"X12_998"->X12_998|"X12_999"->X12_999|"X12_270_X279"->X12_270_X279|"X12_271_X279"->X12_271_X279|"X12_275_X210"->X12_275_X210|"X12_275_X211"->X12_275_X211|"X12_276_X212"->X12_276_X212|"X12_277_X212"->X12_277_X212|"X12_277_X214"->X12_277_X214|"X12_277_X364"->X12_277_X364|"X12_278_X217"->X12_278_X217|"X12_820_X218"->X12_820_X218|"X12_820_X306"->X12_820_X306|"X12_824_X186"->X12_824_X186|"X12_834_X220"->X12_834_X220|"X12_834_X307"->X12_834_X307|"X12_834_X318"->X12_834_X318|"X12_835_X221"->X12_835_X221|"X12_837_X222"->X12_837_X222|"X12_837_X223"->X12_837_X223|"X12_837_X224"->X12_837_X224|"X12_837_X291"->X12_837_X291|"X12_837_X292"->X12_837_X292|"X12_837_X298"->X12_837_X298|"X12_999_X231"->X12_999_X231|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration X12TransactionSet"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"X12TransactionSet"j)letto_json=simple_to_jsonto_valueendmoduleX12Version=structtypenonrect=|VERSION_4010|VERSION_4030|VERSION_4050|VERSION_4060|VERSION_5010|VERSION_5010_HIPAA|Non_static_idofstringletmakei=iletto_string=function|VERSION_4010->"VERSION_4010"|VERSION_4030->"VERSION_4030"|VERSION_4050->"VERSION_4050"|VERSION_4060->"VERSION_4060"|VERSION_5010->"VERSION_5010"|VERSION_5010_HIPAA->"VERSION_5010_HIPAA"|Non_static_ids->sletof_string=function|"VERSION_4010"->VERSION_4010|"VERSION_4030"->VERSION_4030|"VERSION_4050"->VERSION_4050|"VERSION_4060"->VERSION_4060|"VERSION_5010"->VERSION_5010|"VERSION_5010_HIPAA"->VERSION_5010_HIPAA|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration X12Version"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"X12Version"j)letto_json=simple_to_jsonto_valueendmoduleS3Key=structtypenonrect=stringletcontext_="S3Key"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"S3Key"jletto_json=simple_to_jsonto_valueendmoduleX12AcknowledgmentOptions=structtypenonrect={functionalAcknowledgment:X12FunctionalAcknowledgment.t[@ocaml.doc"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."];technicalAcknowledgment:X12TechnicalAcknowledgment.t[@ocaml.doc"Specifies whether technical acknowledgments (TA1) should be generated for incoming X12 interchanges. Valid values are DO_NOT_GENERATE and GENERATE_ALL_SEGMENTS and."]}letcontext_="X12AcknowledgmentOptions"letmake~functionalAcknowledgment=fun~technicalAcknowledgment->fun()->{functionalAcknowledgment;technicalAcknowledgment}letto_valuex=structure_to_value[("functionalAcknowledgment",(Some(X12FunctionalAcknowledgment.to_valuex.functionalAcknowledgment)));("technicalAcknowledgment",(Some(X12TechnicalAcknowledgment.to_valuex.technicalAcknowledgment)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettechnicalAcknowledgment=X12TechnicalAcknowledgment.of_xml(Xml.child_exn~context:context_xml_arg0"technicalAcknowledgment")inletfunctionalAcknowledgment=X12FunctionalAcknowledgment.of_xml(Xml.child_exn~context:context_xml_arg0"functionalAcknowledgment")inmake~technicalAcknowledgment~functionalAcknowledgment()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettechnicalAcknowledgment=field_map_exnjson__"technicalAcknowledgment"X12TechnicalAcknowledgment.of_jsoninletfunctionalAcknowledgment=field_map_exnjson__"functionalAcknowledgment"X12FunctionalAcknowledgment.of_jsoninmake~technicalAcknowledgment~functionalAcknowledgment()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains options for configuring X12 acknowledgments. These options control how functional and technical acknowledgments are handled."]moduleWrapOptions=structtypenonrect={wrapBy:WrapFormat.t[@ocaml.doc"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."];lineTerminator:LineTerminator.toption[@ocaml.doc"Specifies the character sequence used to terminate lines when wrapping. Valid values: CRLF: carriage return and line feed LF: line feed) CR: carriage return"];lineLength:LineLength.toption[@ocaml.doc"Specifies the maximum length of a line before wrapping occurs. This value is used when wrapBy is set to LINE_LENGTH."]}letcontext_="WrapOptions"letmake?lineTerminator=fun?lineLength->fun~wrapBy->fun()->{lineTerminator;lineLength;wrapBy}letto_valuex=structure_to_value[("wrapBy",(Some(WrapFormat.to_valuex.wrapBy)));("lineTerminator",(Option.mapx.lineTerminator~f:LineTerminator.to_value));("lineLength",(Option.mapx.lineLength~f:LineLength.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlineLength=(Option.map~f:LineLength.of_xml)(Xml.childxml_arg0"lineLength")inletlineTerminator=(Option.map~f:LineTerminator.of_xml)(Xml.childxml_arg0"lineTerminator")inletwrapBy=WrapFormat.of_xml(Xml.child_exn~context:context_xml_arg0"wrapBy")inmake?lineLength?lineTerminator~wrapBy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlineLength=field_mapjson__"lineLength"LineLength.of_jsoninletlineTerminator=field_mapjson__"lineTerminator"LineTerminator.of_jsoninletwrapBy=field_map_exnjson__"wrapBy"WrapFormat.of_jsoninmake?lineLength?lineTerminator~wrapBy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains options for wrapping (line folding) in X12 EDI files. Wrapping controls how long lines are handled in the EDI output."]moduleX12OutboundEdiHeaders=structtypenonrect={interchangeControlHeaders:X12InterchangeControlHeaders.toption[@ocaml.doc"In X12 EDI messages, delimiters are used to mark the end of segments or elements, and are defined in the interchange control header."];functionalGroupHeaders:X12FunctionalGroupHeaders.toption[@ocaml.doc"The functional group headers for the X12 object."];delimiters:X12Delimiters.toption[@ocaml.doc"The delimiters, for example semicolon (;), that separates sections of the headers for the X12 object."];validateEdi:X12ValidateEdi.toption[@ocaml.doc"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."];controlNumbers:X12ControlNumbers.toption[@ocaml.doc"Specifies control number configuration for outbound X12 EDI headers. These settings determine the starting values for interchange, functional group, and transaction set control numbers."];gs05TimeFormat:X12GS05TimeFormat.toption}letmake?interchangeControlHeaders=fun?functionalGroupHeaders->fun?delimiters->fun?validateEdi->fun?controlNumbers->fun?gs05TimeFormat->fun()->{interchangeControlHeaders;functionalGroupHeaders;delimiters;validateEdi;controlNumbers;gs05TimeFormat}letto_valuex=structure_to_value[("interchangeControlHeaders",(Option.mapx.interchangeControlHeaders~f:X12InterchangeControlHeaders.to_value));("functionalGroupHeaders",(Option.mapx.functionalGroupHeaders~f:X12FunctionalGroupHeaders.to_value));("delimiters",(Option.mapx.delimiters~f:X12Delimiters.to_value));("validateEdi",(Option.mapx.validateEdi~f:X12ValidateEdi.to_value));("controlNumbers",(Option.mapx.controlNumbers~f:X12ControlNumbers.to_value));("gs05TimeFormat",(Option.mapx.gs05TimeFormat~f:X12GS05TimeFormat.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgs05TimeFormat=(Option.map~f:X12GS05TimeFormat.of_xml)(Xml.childxml_arg0"gs05TimeFormat")inletcontrolNumbers=(Option.map~f:X12ControlNumbers.of_xml)(Xml.childxml_arg0"controlNumbers")inletvalidateEdi=(Option.map~f:X12ValidateEdi.of_xml)(Xml.childxml_arg0"validateEdi")inletdelimiters=(Option.map~f:X12Delimiters.of_xml)(Xml.childxml_arg0"delimiters")inletfunctionalGroupHeaders=(Option.map~f:X12FunctionalGroupHeaders.of_xml)(Xml.childxml_arg0"functionalGroupHeaders")inletinterchangeControlHeaders=(Option.map~f:X12InterchangeControlHeaders.of_xml)(Xml.childxml_arg0"interchangeControlHeaders")inmake?gs05TimeFormat?controlNumbers?validateEdi?delimiters?functionalGroupHeaders?interchangeControlHeaders()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgs05TimeFormat=field_mapjson__"gs05TimeFormat"X12GS05TimeFormat.of_jsoninletcontrolNumbers=field_mapjson__"controlNumbers"X12ControlNumbers.of_jsoninletvalidateEdi=field_mapjson__"validateEdi"X12ValidateEdi.of_jsoninletdelimiters=field_mapjson__"delimiters"X12Delimiters.of_jsoninletfunctionalGroupHeaders=field_mapjson__"functionalGroupHeaders"X12FunctionalGroupHeaders.of_jsoninletinterchangeControlHeaders=field_mapjson__"interchangeControlHeaders"X12InterchangeControlHeaders.of_jsoninmake?gs05TimeFormat?controlNumbers?validateEdi?delimiters?functionalGroupHeaders?interchangeControlHeaders()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure containing the details for an outbound EDI object."]moduleX12AdvancedOptions=structtypenonrect={splitOptions:X12SplitOptions.toption[@ocaml.doc"Specifies options for splitting X12 EDI files. These options control how large X12 files are divided into smaller, more manageable units."];validationOptions:X12ValidationOptions.toption[@ocaml.doc"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."]}letmake?splitOptions=fun?validationOptions->fun()->{splitOptions;validationOptions}letto_valuex=structure_to_value[("splitOptions",(Option.mapx.splitOptions~f:X12SplitOptions.to_value));("validationOptions",(Option.mapx.validationOptions~f:X12ValidationOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalidationOptions=(Option.map~f:X12ValidationOptions.of_xml)(Xml.childxml_arg0"validationOptions")inletsplitOptions=(Option.map~f:X12SplitOptions.of_xml)(Xml.childxml_arg0"splitOptions")inmake?validationOptions?splitOptions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalidationOptions=field_mapjson__"validationOptions"X12ValidationOptions.of_jsoninletsplitOptions=field_mapjson__"splitOptions"X12SplitOptions.of_jsoninmake?validationOptions?splitOptions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains advanced options specific to X12 EDI processing, such as splitting large X12 files into smaller units."]moduleX12Details=structtypenonrect={transactionSet:X12TransactionSet.toption[@ocaml.doc"Returns an enumerated type where each value identifies an X12 transaction set. Transaction sets are maintained by the X12 Accredited Standards Committee."];version:X12Version.toption[@ocaml.doc"Returns the version to use for the specified X12 transaction set."]}letmake?transactionSet=fun?version->fun()->{transactionSet;version}letto_valuex=structure_to_value[("transactionSet",(Option.mapx.transactionSet~f:X12TransactionSet.to_value));("version",(Option.mapx.version~f:X12Version.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letversion=(Option.map~f:X12Version.of_xml)(Xml.childxml_arg0"version")inlettransactionSet=(Option.map~f:X12TransactionSet.of_xml)(Xml.childxml_arg0"transactionSet")inmake?version?transactionSet()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letversion=field_mapjson__"version"X12Version.of_jsoninlettransactionSet=field_mapjson__"transactionSet"X12TransactionSet.of_jsoninmake?version?transactionSet()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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."]moduleSampleDocumentKeys=structtypenonrect={input:S3Key.toption[@ocaml.doc"An array of keys for your input sample documents."];output:S3Key.toption[@ocaml.doc"An array of keys for your output sample documents."]}letmake?input=fun?output->fun()->{input;output}letto_valuex=structure_to_value[("input",(Option.mapx.input~f:S3Key.to_value));("output",(Option.mapx.output~f:S3Key.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoutput=(Option.map~f:S3Key.of_xml)(Xml.childxml_arg0"output")inletinput=(Option.map~f:S3Key.of_xml)(Xml.childxml_arg0"input")inmake?output?input()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoutput=field_mapjson__"output"S3Key.of_jsoninletinput=field_mapjson__"input"S3Key.of_jsoninmake?output?input()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An array of the Amazon S3 keys used to identify the location for your sample documents."]moduleX12InboundEdiOptions=structtypenonrect={acknowledgmentOptions:X12AcknowledgmentOptions.toption[@ocaml.doc"Specifies acknowledgment options for inbound X12 EDI files. These options control how functional and technical acknowledgments are handled."]}letmake?acknowledgmentOptions=fun()->{acknowledgmentOptions}letto_valuex=structure_to_value[("acknowledgmentOptions",(Option.mapx.acknowledgmentOptions~f:X12AcknowledgmentOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letacknowledgmentOptions=(Option.map~f:X12AcknowledgmentOptions.of_xml)(Xml.childxml_arg0"acknowledgmentOptions")inmake?acknowledgmentOptions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letacknowledgmentOptions=field_mapjson__"acknowledgmentOptions"X12AcknowledgmentOptions.of_jsoninmake?acknowledgmentOptions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains options specific to processing inbound X12 EDI files."]moduleX12Envelope=structtypenonrect={common:X12OutboundEdiHeaders.toption[@ocaml.doc"A container for the X12 outbound EDI headers."];wrapOptions:WrapOptions.toption}letmake?common=fun?wrapOptions->fun()->{common;wrapOptions}letto_valuex=structure_to_value[("common",(Option.mapx.common~f:X12OutboundEdiHeaders.to_value));("wrapOptions",(Option.mapx.wrapOptions~f:WrapOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwrapOptions=(Option.map~f:WrapOptions.of_xml)(Xml.childxml_arg0"wrapOptions")inletcommon=(Option.map~f:X12OutboundEdiHeaders.of_xml)(Xml.childxml_arg0"common")inmake?wrapOptions?common()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwrapOptions=field_mapjson__"wrapOptions"WrapOptions.of_jsoninletcommon=field_mapjson__"common"X12OutboundEdiHeaders.of_jsoninmake?wrapOptions?common()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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"]moduleBucketName=structtypenonrect=stringletcontext_="BucketName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:63)>>=(fun()->check_string_mini~min:3));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"BucketName"jletto_json=simple_to_jsonto_valueendmoduleAdvancedOptions=structtypenonrect={x12:X12AdvancedOptions.toption[@ocaml.doc"A structure that contains X12-specific advanced options, such as split options for processing X12 EDI files."]}letmake?x12=fun()->{x12}letto_valuex=structure_to_value[("x12",(Option.mapx.x12~f:X12AdvancedOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letx12=(Option.map~f:X12AdvancedOptions.of_xml)(Xml.childxml_arg0"x12")inmake?x12()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letx12=field_mapjson__"x12"X12AdvancedOptions.of_jsoninmake?x12()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains advanced options for EDI processing. Currently, only X12 advanced options are supported."]moduleFormatOptions=structtypenonrect={x12:X12Details.toption}letmake?x12=fun()->{x12}letto_valuex=structure_to_value[("x12",(Option.mapx.x12~f:X12Details.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letx12=(Option.map~f:X12Details.of_xml)(Xml.childxml_arg0"x12")inmake?x12()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letx12=field_mapjson__"x12"X12Details.of_jsoninmake?x12()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains the X12 transaction set and version."]moduleFromFormat=structtypenonrect=|X12|Non_static_idofstringletmakei=iletto_string=function|X12->"X12"|Non_static_ids->sletof_string=function|"X12"->X12|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration FromFormat"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FromFormat"j)letto_json=simple_to_jsonto_valueendmoduleMappingTemplate=structtypenonrect=stringletcontext_="MappingTemplate"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:350000)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MappingTemplate"jletto_json=simple_to_jsonto_valueendmoduleMappingTemplateLanguage=structtypenonrect=|XSLT|JSONATA|Non_static_idofstringletmakei=iletto_string=function|XSLT->"XSLT"|JSONATA->"JSONATA"|Non_static_ids->sletof_string=function|"XSLT"->XSLT|"JSONATA"->JSONATA|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration MappingTemplateLanguage"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MappingTemplateLanguage"j)letto_json=simple_to_jsonto_valueendmoduleToFormat=structtypenonrect=|X12|Non_static_idofstringletmakei=iletto_string=function|X12->"X12"|Non_static_ids->sletof_string=function|"X12"->X12|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ToFormat"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ToFormat"j)letto_json=simple_to_jsonto_valueendmoduleKeyList=structtypenonrect=SampleDocumentKeys.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SampleDocumentKeys.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:SampleDocumentKeys.of_xml)letof_jsonj=list_of_json~kind:"KeyList"~of_json:SampleDocumentKeys.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInboundEdiOptions=structtypenonrect={x12:X12InboundEdiOptions.toption[@ocaml.doc"A structure that contains X12-specific options for processing inbound X12 EDI files."]}letmake?x12=fun()->{x12}letto_valuex=structure_to_value[("x12",(Option.mapx.x12~f:X12InboundEdiOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letx12=(Option.map~f:X12InboundEdiOptions.of_xml)(Xml.childxml_arg0"x12")inmake?x12()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letx12=field_mapjson__"x12"X12InboundEdiOptions.of_jsoninmake?x12()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains options for processing inbound EDI files. These options allow for customizing how incoming EDI documents are processed."]moduleOutboundEdiOptions=structtypenonrect={x12:X12Envelope.toption[@ocaml.doc"A structure that contains an X12 envelope structure."]}letmake?x12=fun()->{x12}letto_valuex=structure_to_value[("x12",(Option.mapx.x12~f:X12Envelope.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letx12=(Option.map~f:X12Envelope.of_xml)(Xml.childxml_arg0"x12")inmake?x12()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letx12=field_mapjson__"x12"X12Envelope.of_jsoninmake?x12()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A container for outbound EDI options."]moduleCapabilityId=structtypenonrect=stringletcontext_="CapabilityId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9_-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CapabilityId"jletto_json=simple_to_jsonto_valueendmoduleCapabilityDirection=structtypenonrect=|INBOUND|OUTBOUND|Non_static_idofstringletmakei=iletto_string=function|INBOUND->"INBOUND"|OUTBOUND->"OUTBOUND"|Non_static_ids->sletof_string=function|"INBOUND"->INBOUND|"OUTBOUND"->OUTBOUND|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration CapabilityDirection"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CapabilityDirection"j)letto_json=simple_to_jsonto_valueendmoduleEdiType=structtypenonrect={x12Details:X12Details.toption[@ocaml.doc"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."]}letmake?x12Details=fun()->{x12Details}letto_valuex=structure_to_value[("x12Details",(Option.mapx.x12Details~f:X12Details.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letx12Details=(Option.map~f:X12Details.of_xml)(Xml.childxml_arg0"x12Details")inmake?x12Details()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letx12Details=field_mapjson__"x12Details"X12Details.of_jsoninmake?x12Details()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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."]moduleS3Location=structtypenonrect={bucketName:BucketName.toption[@ocaml.doc"Specifies the name of the Amazon S3 bucket."];key:S3Key.toption[@ocaml.doc"Specifies the Amazon S3 key for the file location."]}letmake?bucketName=fun?key->fun()->{bucketName;key}letto_valuex=structure_to_value[("bucketName",(Option.mapx.bucketName~f:BucketName.to_value));("key",(Option.mapx.key~f:S3Key.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkey=(Option.map~f:S3Key.of_xml)(Xml.childxml_arg0"key")inletbucketName=(Option.map~f:BucketName.of_xml)(Xml.childxml_arg0"bucketName")inmake?key?bucketName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkey=field_mapjson__"key"S3Key.of_jsoninletbucketName=field_mapjson__"bucketName"BucketName.of_jsoninmake?key?bucketName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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."]moduleTransformerId=structtypenonrect=stringletcontext_="TransformerId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9_-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TransformerId"jletto_json=simple_to_jsonto_valueendmoduleInputFileSourceFileContentString=structtypenonrect=stringletcontext_="InputFileSourceFileContentString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:5000000)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"InputFileSourceFileContentString"jletto_json=simple_to_jsonto_valueendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleCreatedDate=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleFileFormat=structtypenonrect=|XML|JSON|NOT_USED|Non_static_idofstringletmakei=iletto_string=function|XML->"XML"|JSON->"JSON"|NOT_USED->"NOT_USED"|Non_static_ids->sletof_string=function|"XML"->XML|"JSON"->JSON|"NOT_USED"->NOT_USED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration FileFormat"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FileFormat"j)letto_json=simple_to_jsonto_valueendmoduleFileLocation=structtypenonrect=stringletcontext_="FileLocation"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"FileLocation"jletto_json=simple_to_jsonto_valueendmoduleInputConversion=structtypenonrect={fromFormat:FromFormat.t[@ocaml.doc"The format for the transformer input: currently on X12 is supported."];formatOptions:FormatOptions.toption[@ocaml.doc"A structure that contains the formatting options for an inbound transformer."];advancedOptions:AdvancedOptions.toption[@ocaml.doc"Specifies advanced options for the input conversion process. These options provide additional control over how EDI files are processed during transformation."]}letcontext_="InputConversion"letmake?formatOptions=fun?advancedOptions->fun~fromFormat->fun()->{formatOptions;advancedOptions;fromFormat}letto_valuex=structure_to_value[("fromFormat",(Some(FromFormat.to_valuex.fromFormat)));("formatOptions",(Option.mapx.formatOptions~f:FormatOptions.to_value));("advancedOptions",(Option.mapx.advancedOptions~f:AdvancedOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letadvancedOptions=(Option.map~f:AdvancedOptions.of_xml)(Xml.childxml_arg0"advancedOptions")inletformatOptions=(Option.map~f:FormatOptions.of_xml)(Xml.childxml_arg0"formatOptions")inletfromFormat=FromFormat.of_xml(Xml.child_exn~context:context_xml_arg0"fromFormat")inmake?advancedOptions?formatOptions~fromFormat()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letadvancedOptions=field_mapjson__"advancedOptions"AdvancedOptions.of_jsoninletformatOptions=field_mapjson__"formatOptions"FormatOptions.of_jsoninletfromFormat=field_map_exnjson__"fromFormat"FromFormat.of_jsoninmake?advancedOptions?formatOptions~fromFormat()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the input formatting options for an inbound transformer (takes an X12-formatted EDI document as input and converts it to JSON or XML."]moduleMapping=structtypenonrect={templateLanguage:MappingTemplateLanguage.t[@ocaml.doc"The transformation language for the template, either XSLT or JSONATA."];template:MappingTemplate.toption[@ocaml.doc"A string that represents the mapping template, in the transformation language specified in templateLanguage."]}letcontext_="Mapping"letmake?template=fun~templateLanguage->fun()->{template;templateLanguage}letto_valuex=structure_to_value[("templateLanguage",(Some(MappingTemplateLanguage.to_valuex.templateLanguage)));("template",(Option.mapx.template~f:MappingTemplate.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettemplate=(Option.map~f:MappingTemplate.of_xml)(Xml.childxml_arg0"template")inlettemplateLanguage=MappingTemplateLanguage.of_xml(Xml.child_exn~context:context_xml_arg0"templateLanguage")inmake?template~templateLanguage()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettemplate=field_mapjson__"template"MappingTemplate.of_jsoninlettemplateLanguage=field_map_exnjson__"templateLanguage"MappingTemplateLanguage.of_jsoninmake?template~templateLanguage()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT."]moduleModifiedDate=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleOutputConversion=structtypenonrect={toFormat:ToFormat.t[@ocaml.doc"The format for the output from an outbound transformer: only X12 is currently supported."];formatOptions:FormatOptions.toption[@ocaml.doc"A structure that contains the X12 transaction set and version for the transformer output."];advancedOptions:AdvancedOptions.toption}letcontext_="OutputConversion"letmake?formatOptions=fun?advancedOptions->fun~toFormat->fun()->{formatOptions;advancedOptions;toFormat}letto_valuex=structure_to_value[("toFormat",(Some(ToFormat.to_valuex.toFormat)));("formatOptions",(Option.mapx.formatOptions~f:FormatOptions.to_value));("advancedOptions",(Option.mapx.advancedOptions~f:AdvancedOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letadvancedOptions=(Option.map~f:AdvancedOptions.of_xml)(Xml.childxml_arg0"advancedOptions")inletformatOptions=(Option.map~f:FormatOptions.of_xml)(Xml.childxml_arg0"formatOptions")inlettoFormat=ToFormat.of_xml(Xml.child_exn~context:context_xml_arg0"toFormat")inmake?advancedOptions?formatOptions~toFormat()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letadvancedOptions=field_mapjson__"advancedOptions"AdvancedOptions.of_jsoninletformatOptions=field_mapjson__"formatOptions"FormatOptions.of_jsoninlettoFormat=field_map_exnjson__"toFormat"ToFormat.of_jsoninmake?advancedOptions?formatOptions~toFormat()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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)."]moduleSampleDocuments=structtypenonrect={bucketName:BucketName.t[@ocaml.doc"Contains the Amazon S3 bucket that is used to hold your sample documents."];keys:KeyList.t[@ocaml.doc"Contains an array of the Amazon S3 keys used to identify the location for your sample documents."]}letcontext_="SampleDocuments"letmake~bucketName=fun~keys->fun()->{bucketName;keys}letto_valuex=structure_to_value[("bucketName",(Some(BucketName.to_valuex.bucketName)));("keys",(Some(KeyList.to_valuex.keys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeys=KeyList.of_xml(Xml.child_exn~context:context_xml_arg0"keys")inletbucketName=BucketName.of_xml(Xml.child_exn~context:context_xml_arg0"bucketName")inmake~keys~bucketName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeys=field_map_exnjson__"keys"KeyList.of_jsoninletbucketName=field_map_exnjson__"bucketName"BucketName.of_jsoninmake~keys~bucketName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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."]moduleTransformerName=structtypenonrect=stringletcontext_="TransformerName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:254)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9_-]{1,512}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TransformerName"jletto_json=simple_to_jsonto_valueendmoduleTransformerStatus=structtypenonrect=|Active|Inactive|Non_static_idofstringletmakei=iletto_string=function|Active->"active"|Inactive->"inactive"|Non_static_ids->sletof_string=function|"active"->Active|"inactive"->Inactive|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration TransformerStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TransformerStatus"j)letto_json=simple_to_jsonto_valueendmoduleBusinessName=structtypenonrect=stringletcontext_="BusinessName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:254)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"BusinessName"jletto_json=simple_to_jsonto_valueendmoduleLogGroupName=structtypenonrect=stringletcontext_="LogGroupName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:512)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LogGroupName"jletto_json=simple_to_jsonto_valueendmoduleLogging=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration Logging"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Logging"j)letto_json=simple_to_jsonto_valueendmoduleProfileId=structtypenonrect=stringletcontext_="ProfileId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9_-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ProfileId"jletto_json=simple_to_jsonto_valueendmoduleProfileName=structtypenonrect=stringletcontext_="ProfileName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:254)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ProfileName"jletto_json=simple_to_jsonto_valueendmoduleCapabilityOptions=structtypenonrect={outboundEdi:OutboundEdiOptions.toption[@ocaml.doc"A structure that contains the outbound EDI options."];inboundEdi:InboundEdiOptions.toption[@ocaml.doc"A structure that contains the inbound EDI options for the capability."]}letmake?outboundEdi=fun?inboundEdi->fun()->{outboundEdi;inboundEdi}letto_valuex=structure_to_value[("outboundEdi",(Option.mapx.outboundEdi~f:OutboundEdiOptions.to_value));("inboundEdi",(Option.mapx.inboundEdi~f:InboundEdiOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinboundEdi=(Option.map~f:InboundEdiOptions.of_xml)(Xml.childxml_arg0"inboundEdi")inletoutboundEdi=(Option.map~f:OutboundEdiOptions.of_xml)(Xml.childxml_arg0"outboundEdi")inmake?inboundEdi?outboundEdi()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinboundEdi=field_mapjson__"inboundEdi"InboundEdiOptions.of_jsoninletoutboundEdi=field_mapjson__"outboundEdi"OutboundEdiOptions.of_jsoninmake?inboundEdi?outboundEdi()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the details for an Outbound EDI capability."]modulePartnerName=structtypenonrect=stringletcontext_="PartnerName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:254)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PartnerName"jletto_json=simple_to_jsonto_valueendmodulePartnershipCapabilities=structtypenonrect=CapabilityId.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CapabilityId.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:CapabilityId.of_xml)letof_jsonj=list_of_json~kind:"PartnershipCapabilities"~of_json:CapabilityId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePartnershipId=structtypenonrect=stringletcontext_="PartnershipId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9_-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PartnershipId"jletto_json=simple_to_jsonto_valueendmoduleTradingPartnerId=structtypenonrect=stringletcontext_="TradingPartnerId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9_-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TradingPartnerId"jletto_json=simple_to_jsonto_valueendmoduleCapabilityName=structtypenonrect=stringletcontext_="CapabilityName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:254)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CapabilityName"jletto_json=simple_to_jsonto_valueendmoduleCapabilityType=structtypenonrect=|Edi|Non_static_idofstringletmakei=iletto_string=function|Edi->"edi"|Non_static_ids->sletof_string=function|"edi"->Edi|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration CapabilityType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CapabilityType"j)letto_json=simple_to_jsonto_valueendmoduleErrorMessage=structtypenonrect=stringletcontext_="ErrorMessage"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:10));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ErrorMessage"jletto_json=simple_to_jsonto_valueendmoduleInteger=structtypenonrect=intletmakei=iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for Integer"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleEdiConfiguration=structtypenonrect={capabilityDirection:CapabilityDirection.toption[@ocaml.doc"Specifies whether this is capability is for inbound or outbound transformations."];type_:EdiType.t[@ocaml.doc"Returns the type of the capability. Currently, only edi is supported."];inputLocation:S3Location.t[@ocaml.doc"Contains the Amazon S3 bucket and prefix for the location of the input file, which is contained in an S3Location object."];outputLocation:S3Location.t[@ocaml.doc"Contains the Amazon S3 bucket and prefix for the location of the output file, which is contained in an S3Location object."];transformerId:TransformerId.t[@ocaml.doc"Returns the system-assigned unique identifier for the transformer."]}letcontext_="EdiConfiguration"letmake?capabilityDirection=fun~type_->fun~inputLocation->fun~outputLocation->fun~transformerId->fun()->{capabilityDirection;type_;inputLocation;outputLocation;transformerId}letto_valuex=structure_to_value[("capabilityDirection",(Option.mapx.capabilityDirection~f:CapabilityDirection.to_value));("type",(Some(EdiType.to_valuex.type_)));("inputLocation",(Some(S3Location.to_valuex.inputLocation)));("outputLocation",(Some(S3Location.to_valuex.outputLocation)));("transformerId",(Some(TransformerId.to_valuex.transformerId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettransformerId=TransformerId.of_xml(Xml.child_exn~context:context_xml_arg0"transformerId")inletoutputLocation=S3Location.of_xml(Xml.child_exn~context:context_xml_arg0"outputLocation")inletinputLocation=S3Location.of_xml(Xml.child_exn~context:context_xml_arg0"inputLocation")inlettype_=EdiType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletcapabilityDirection=(Option.map~f:CapabilityDirection.of_xml)(Xml.childxml_arg0"capabilityDirection")inmake~transformerId~outputLocation~inputLocation~type_?capabilityDirection()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettransformerId=field_map_exnjson__"transformerId"TransformerId.of_jsoninletoutputLocation=field_map_exnjson__"outputLocation"S3Location.of_jsoninletinputLocation=field_map_exnjson__"inputLocation"S3Location.of_jsoninlettype_=field_map_exnjson__"type"EdiType.of_jsoninletcapabilityDirection=field_mapjson__"capabilityDirection"CapabilityDirection.of_jsoninmake~transformerId~outputLocation~inputLocation~type_?capabilityDirection()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the details for the EDI (electronic data interchange) transformation."]moduleConversionSourceFormat=structtypenonrect=|JSON|XML|Non_static_idofstringletmakei=iletto_string=function|JSON->"JSON"|XML->"XML"|Non_static_ids->sletof_string=function|"JSON"->JSON|"XML"->XML|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ConversionSourceFormat"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ConversionSourceFormat"j)letto_json=simple_to_jsonto_valueendmoduleInputFileSource=structtypenonrect={fileContent:InputFileSourceFileContentString.toption[@ocaml.doc"Specify the input contents, as a string, for the source of an outbound transformation."]}letmake?fileContent=fun()->{fileContent}letto_valuex=structure_to_value[("fileContent",(Option.mapx.fileContent~f:InputFileSourceFileContentString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfileContent=(Option.map~f:InputFileSourceFileContentString.of_xml)(Xml.childxml_arg0"fileContent")inmake?fileContent()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfileContent=field_mapjson__"fileContent"InputFileSourceFileContentString.of_jsoninmake?fileContent()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input file to use for an outbound transformation."]moduleConversionTargetFormat=structtypenonrect=|X12|Non_static_idofstringletmakei=iletto_string=function|X12->"X12"|Non_static_ids->sletof_string=function|"X12"->X12|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ConversionTargetFormat"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ConversionTargetFormat"j)letto_json=simple_to_jsonto_valueendmoduleConversionTargetFormatDetails=structtypenonrect={x12:X12Details.toption}letmake?x12=fun()->{x12}letto_valuex=structure_to_value[("x12",(Option.mapx.x12~f:X12Details.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letx12=(Option.map~f:X12Details.of_xml)(Xml.childxml_arg0"x12")inmake?x12()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letx12=field_mapjson__"x12"X12Details.of_jsoninmake?x12()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains a structure describing the X12 details for the conversion target."]moduleOutputSampleFileSource=structtypenonrect={fileLocation:S3Location.toption}letmake?fileLocation=fun()->{fileLocation}letto_valuex=structure_to_value[("fileLocation",(Option.mapx.fileLocation~f:S3Location.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfileLocation=(Option.map~f:S3Location.of_xml)(Xml.childxml_arg0"fileLocation")inmake?fileLocation()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfileLocation=field_mapjson__"fileLocation"S3Location.of_jsoninmake?fileLocation()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Container for the location of a sample file used for outbound transformations."]moduleTag=structtypenonrect={key:TagKey.t[@ocaml.doc"Specifies the name assigned to the tag that you create."];value:TagValue.t[@ocaml.doc"Contains one or more values that you assigned to the key name that you create."]}letcontext_="Tag"letmake~key=fun~value->fun()->{key;value}letto_valuex=structure_to_value[("Key",(Some(TagKey.to_valuex.key)));("Value",(Some(TagValue.to_valuex.value)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=TagValue.of_xml(Xml.child_exn~context:context_xml_arg0"Value")inletkey=TagKey.of_xml(Xml.child_exn~context:context_xml_arg0"Key")inmake~value~key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_map_exnjson__"Value"TagValue.of_jsoninletkey=field_map_exnjson__"Key"TagKey.of_jsoninmake~value~key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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."]moduleTransformerSummary=structtypenonrect={transformerId:TransformerId.toption[@ocaml.doc"Returns the system-assigned unique identifier for the transformer."];name:TransformerName.toption[@ocaml.doc"Returns the descriptive name for the transformer."];status:TransformerStatus.toption[@ocaml.doc"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."];createdAt:CreatedDate.toption[@ocaml.doc"Returns a timestamp indicating when the transformer was created. For example, 2023-07-20T19:58:44.624Z."];modifiedAt:ModifiedDate.toption[@ocaml.doc"Returns a timestamp representing the date and time for the most recent change for the transformer object."];fileFormat:FileFormat.toption[@ocaml.doc"Returns that the currently supported file formats for EDI transformations are JSON and XML."];mappingTemplate:MappingTemplate.toption[@ocaml.doc"Returns the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT."];ediType:EdiType.toption[@ocaml.doc"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."];sampleDocument:FileLocation.toption[@ocaml.doc"Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data."];inputConversion:InputConversion.toption[@ocaml.doc"Returns a structure that contains the format options for the transformation."];mapping:Mapping.toption[@ocaml.doc"Returns the structure that contains the mapping template and its language (either XSLT or JSONATA)."];outputConversion:OutputConversion.toption[@ocaml.doc"Returns the OutputConversion object, which contains the format options for the outbound transformation."];sampleDocuments:SampleDocuments.toption[@ocaml.doc"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."]}letmake?transformerId=fun?name->fun?status->fun?createdAt->fun?modifiedAt->fun?fileFormat->fun?mappingTemplate->fun?ediType->fun?sampleDocument->fun?inputConversion->fun?mapping->fun?outputConversion->fun?sampleDocuments->fun()->{transformerId;name;status;createdAt;modifiedAt;fileFormat;mappingTemplate;ediType;sampleDocument;inputConversion;mapping;outputConversion;sampleDocuments}letto_valuex=structure_to_value[("transformerId",(Option.mapx.transformerId~f:TransformerId.to_value));("name",(Option.mapx.name~f:TransformerName.to_value));("status",(Option.mapx.status~f:TransformerStatus.to_value));("createdAt",(Option.mapx.createdAt~f:CreatedDate.to_value));("modifiedAt",(Option.mapx.modifiedAt~f:ModifiedDate.to_value));("fileFormat",(Option.mapx.fileFormat~f:FileFormat.to_value));("mappingTemplate",(Option.mapx.mappingTemplate~f:MappingTemplate.to_value));("ediType",(Option.mapx.ediType~f:EdiType.to_value));("sampleDocument",(Option.mapx.sampleDocument~f:FileLocation.to_value));("inputConversion",(Option.mapx.inputConversion~f:InputConversion.to_value));("mapping",(Option.mapx.mapping~f:Mapping.to_value));("outputConversion",(Option.mapx.outputConversion~f:OutputConversion.to_value));("sampleDocuments",(Option.mapx.sampleDocuments~f:SampleDocuments.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsampleDocuments=(Option.map~f:SampleDocuments.of_xml)(Xml.childxml_arg0"sampleDocuments")inletoutputConversion=(Option.map~f:OutputConversion.of_xml)(Xml.childxml_arg0"outputConversion")inletmapping=(Option.map~f:Mapping.of_xml)(Xml.childxml_arg0"mapping")inletinputConversion=(Option.map~f:InputConversion.of_xml)(Xml.childxml_arg0"inputConversion")inletsampleDocument=(Option.map~f:FileLocation.of_xml)(Xml.childxml_arg0"sampleDocument")inletediType=(Option.map~f:EdiType.of_xml)(Xml.childxml_arg0"ediType")inletmappingTemplate=(Option.map~f:MappingTemplate.of_xml)(Xml.childxml_arg0"mappingTemplate")inletfileFormat=(Option.map~f:FileFormat.of_xml)(Xml.childxml_arg0"fileFormat")inletmodifiedAt=(Option.map~f:ModifiedDate.of_xml)(Xml.childxml_arg0"modifiedAt")inletcreatedAt=(Option.map~f:CreatedDate.of_xml)(Xml.childxml_arg0"createdAt")inletstatus=(Option.map~f:TransformerStatus.of_xml)(Xml.childxml_arg0"status")inletname=(Option.map~f:TransformerName.of_xml)(Xml.childxml_arg0"name")inlettransformerId=(Option.map~f:TransformerId.of_xml)(Xml.childxml_arg0"transformerId")inmake?sampleDocuments?outputConversion?mapping?inputConversion?sampleDocument?ediType?mappingTemplate?fileFormat?modifiedAt?createdAt?status?name?transformerId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsampleDocuments=field_mapjson__"sampleDocuments"SampleDocuments.of_jsoninletoutputConversion=field_mapjson__"outputConversion"OutputConversion.of_jsoninletmapping=field_mapjson__"mapping"Mapping.of_jsoninletinputConversion=field_mapjson__"inputConversion"InputConversion.of_jsoninletsampleDocument=field_mapjson__"sampleDocument"FileLocation.of_jsoninletediType=field_mapjson__"ediType"EdiType.of_jsoninletmappingTemplate=field_mapjson__"mappingTemplate"MappingTemplate.of_jsoninletfileFormat=field_mapjson__"fileFormat"FileFormat.of_jsoninletmodifiedAt=field_mapjson__"modifiedAt"ModifiedDate.of_jsoninletcreatedAt=field_mapjson__"createdAt"CreatedDate.of_jsoninletstatus=field_mapjson__"status"TransformerStatus.of_jsoninletname=field_mapjson__"name"TransformerName.of_jsoninlettransformerId=field_mapjson__"transformerId"TransformerId.of_jsoninmake?sampleDocuments?outputConversion?mapping?inputConversion?sampleDocument?ediType?mappingTemplate?fileFormat?modifiedAt?createdAt?status?name?transformerId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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."]moduleProfileSummary=structtypenonrect={profileId:ProfileId.toption[@ocaml.doc"Returns the unique, system-generated identifier for the profile."];name:ProfileName.toption[@ocaml.doc"Returns the display name for profile."];businessName:BusinessName.toption[@ocaml.doc"Returns the name for the business associated with this profile."];logging:Logging.toption[@ocaml.doc"Specifies whether or not logging is enabled for this profile."];logGroupName:LogGroupName.toption[@ocaml.doc"Returns the name of the logging group."];createdAt:CreatedDate.toption[@ocaml.doc"Returns the timestamp for creation date and time of the profile."];modifiedAt:ModifiedDate.toption[@ocaml.doc"Returns the timestamp that identifies the most recent date and time that the profile was modified."]}letmake?profileId=fun?name->fun?businessName->fun?logging->fun?logGroupName->fun?createdAt->fun?modifiedAt->fun()->{profileId;name;businessName;logging;logGroupName;createdAt;modifiedAt}letto_valuex=structure_to_value[("profileId",(Option.mapx.profileId~f:ProfileId.to_value));("name",(Option.mapx.name~f:ProfileName.to_value));("businessName",(Option.mapx.businessName~f:BusinessName.to_value));("logging",(Option.mapx.logging~f:Logging.to_value));("logGroupName",(Option.mapx.logGroupName~f:LogGroupName.to_value));("createdAt",(Option.mapx.createdAt~f:CreatedDate.to_value));("modifiedAt",(Option.mapx.modifiedAt~f:ModifiedDate.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmodifiedAt=(Option.map~f:ModifiedDate.of_xml)(Xml.childxml_arg0"modifiedAt")inletcreatedAt=(Option.map~f:CreatedDate.of_xml)(Xml.childxml_arg0"createdAt")inletlogGroupName=(Option.map~f:LogGroupName.of_xml)(Xml.childxml_arg0"logGroupName")inletlogging=(Option.map~f:Logging.of_xml)(Xml.childxml_arg0"logging")inletbusinessName=(Option.map~f:BusinessName.of_xml)(Xml.childxml_arg0"businessName")inletname=(Option.map~f:ProfileName.of_xml)(Xml.childxml_arg0"name")inletprofileId=(Option.map~f:ProfileId.of_xml)(Xml.childxml_arg0"profileId")inmake?modifiedAt?createdAt?logGroupName?logging?businessName?name?profileId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmodifiedAt=field_mapjson__"modifiedAt"ModifiedDate.of_jsoninletcreatedAt=field_mapjson__"createdAt"CreatedDate.of_jsoninletlogGroupName=field_mapjson__"logGroupName"LogGroupName.of_jsoninletlogging=field_mapjson__"logging"Logging.of_jsoninletbusinessName=field_mapjson__"businessName"BusinessName.of_jsoninletname=field_mapjson__"name"ProfileName.of_jsoninletprofileId=field_mapjson__"profileId"ProfileId.of_jsoninmake?modifiedAt?createdAt?logGroupName?logging?businessName?name?profileId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the details for a profile. A profile is the mechanism used to create the concept of a private network."]modulePartnershipSummary=structtypenonrect={profileId:ProfileId.toption[@ocaml.doc"Returns the unique, system-generated identifier for the profile connected to this partnership."];partnershipId:PartnershipId.toption[@ocaml.doc"Returns the unique, system-generated identifier for a partnership."];name:PartnerName.toption[@ocaml.doc"Returns the name of the partnership."];capabilities:PartnershipCapabilities.toption[@ocaml.doc"Returns one or more capabilities associated with this partnership."];capabilityOptions:CapabilityOptions.toption;tradingPartnerId:TradingPartnerId.toption[@ocaml.doc"Returns the unique, system-generated identifier for a trading partner."];createdAt:CreatedDate.toption[@ocaml.doc"Returns a timestamp for creation date and time of the partnership."];modifiedAt:ModifiedDate.toption[@ocaml.doc"Returns a timestamp that identifies the most recent date and time that the partnership was modified."]}letmake?profileId=fun?partnershipId->fun?name->fun?capabilities->fun?capabilityOptions->fun?tradingPartnerId->fun?createdAt->fun?modifiedAt->fun()->{profileId;partnershipId;name;capabilities;capabilityOptions;tradingPartnerId;createdAt;modifiedAt}letto_valuex=structure_to_value[("profileId",(Option.mapx.profileId~f:ProfileId.to_value));("partnershipId",(Option.mapx.partnershipId~f:PartnershipId.to_value));("name",(Option.mapx.name~f:PartnerName.to_value));("capabilities",(Option.mapx.capabilities~f:PartnershipCapabilities.to_value));("capabilityOptions",(Option.mapx.capabilityOptions~f:CapabilityOptions.to_value));("tradingPartnerId",(Option.mapx.tradingPartnerId~f:TradingPartnerId.to_value));("createdAt",(Option.mapx.createdAt~f:CreatedDate.to_value));("modifiedAt",(Option.mapx.modifiedAt~f:ModifiedDate.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmodifiedAt=(Option.map~f:ModifiedDate.of_xml)(Xml.childxml_arg0"modifiedAt")inletcreatedAt=(Option.map~f:CreatedDate.of_xml)(Xml.childxml_arg0"createdAt")inlettradingPartnerId=(Option.map~f:TradingPartnerId.of_xml)(Xml.childxml_arg0"tradingPartnerId")inletcapabilityOptions=(Option.map~f:CapabilityOptions.of_xml)(Xml.childxml_arg0"capabilityOptions")inletcapabilities=(Option.map~f:PartnershipCapabilities.of_xml)(Xml.childxml_arg0"capabilities")inletname=(Option.map~f:PartnerName.of_xml)(Xml.childxml_arg0"name")inletpartnershipId=(Option.map~f:PartnershipId.of_xml)(Xml.childxml_arg0"partnershipId")inletprofileId=(Option.map~f:ProfileId.of_xml)(Xml.childxml_arg0"profileId")inmake?modifiedAt?createdAt?tradingPartnerId?capabilityOptions?capabilities?name?partnershipId?profileId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmodifiedAt=field_mapjson__"modifiedAt"ModifiedDate.of_jsoninletcreatedAt=field_mapjson__"createdAt"CreatedDate.of_jsoninlettradingPartnerId=field_mapjson__"tradingPartnerId"TradingPartnerId.of_jsoninletcapabilityOptions=field_mapjson__"capabilityOptions"CapabilityOptions.of_jsoninletcapabilities=field_mapjson__"capabilities"PartnershipCapabilities.of_jsoninletname=field_mapjson__"name"PartnerName.of_jsoninletpartnershipId=field_mapjson__"partnershipId"PartnershipId.of_jsoninletprofileId=field_mapjson__"profileId"ProfileId.of_jsoninmake?modifiedAt?createdAt?tradingPartnerId?capabilityOptions?capabilities?name?partnershipId?profileId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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."]moduleCapabilitySummary=structtypenonrect={capabilityId:CapabilityId.toption[@ocaml.doc"Returns a system-assigned unique identifier for the capability."];name:CapabilityName.toption[@ocaml.doc"The display name of the capability."];type_:CapabilityType.toption[@ocaml.doc"Returns the type of the capability. Currently, only edi is supported."];createdAt:CreatedDate.toption[@ocaml.doc"Returns a timestamp for creation date and time of the capability."];modifiedAt:ModifiedDate.toption[@ocaml.doc"Returns a timestamp that identifies the most recent date and time that the capability was modified."]}letmake?capabilityId=fun?name->fun?type_->fun?createdAt->fun?modifiedAt->fun()->{capabilityId;name;type_;createdAt;modifiedAt}letto_valuex=structure_to_value[("capabilityId",(Option.mapx.capabilityId~f:CapabilityId.to_value));("name",(Option.mapx.name~f:CapabilityName.to_value));("type",(Option.mapx.type_~f:CapabilityType.to_value));("createdAt",(Option.mapx.createdAt~f:CreatedDate.to_value));("modifiedAt",(Option.mapx.modifiedAt~f:ModifiedDate.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmodifiedAt=(Option.map~f:ModifiedDate.of_xml)(Xml.childxml_arg0"modifiedAt")inletcreatedAt=(Option.map~f:CreatedDate.of_xml)(Xml.childxml_arg0"createdAt")inlettype_=(Option.map~f:CapabilityType.of_xml)(Xml.childxml_arg0"type")inletname=(Option.map~f:CapabilityName.of_xml)(Xml.childxml_arg0"name")inletcapabilityId=(Option.map~f:CapabilityId.of_xml)(Xml.childxml_arg0"capabilityId")inmake?modifiedAt?createdAt?type_?name?capabilityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmodifiedAt=field_mapjson__"modifiedAt"ModifiedDate.of_jsoninletcreatedAt=field_mapjson__"createdAt"CreatedDate.of_jsoninlettype_=field_mapjson__"type"CapabilityType.of_jsoninletname=field_mapjson__"name"CapabilityName.of_jsoninletcapabilityId=field_mapjson__"capabilityId"CapabilityId.of_jsoninmake?modifiedAt?createdAt?type_?name?capabilityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the capability summary details. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs."]moduleAccessDeniedException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You do not have sufficient access to perform this action."]moduleConflictException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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."]moduleInternalServerException=structtypenonrect={message:ErrorMessage.toption;retryAfterSeconds:Integer.toption[@ocaml.doc"The server attempts to retry a failed command."]}letmake?message=fun?retryAfterSeconds->fun()->{message;retryAfterSeconds}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value));("retryAfterSeconds",(Option.mapx.retryAfterSeconds~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretryAfterSeconds=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"retryAfterSeconds")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?retryAfterSeconds?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretryAfterSeconds=field_mapjson__"retryAfterSeconds"Integer.of_jsoninletmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?retryAfterSeconds?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service."]moduleResourceArn=structtypenonrect=stringletcontext_="ResourceArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ResourceArn"jletto_json=simple_to_jsonto_valueendmoduleResourceNotFoundException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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."]moduleServiceQuotaExceededException=structtypenonrect={message:ErrorMessage.toption;resourceId:String_.toption[@ocaml.doc"The ID for the resource that exceeded the quota, which caused the exception."];resourceType:String_.toption[@ocaml.doc"The resource type (profile, partnership, transformer, or capability) that exceeded the quota, which caused the exception."];serviceCode:String_.toption[@ocaml.doc"The code responsible for exceeding the quota, which caused the exception."];quotaCode:String_.toption[@ocaml.doc"The quota that was exceeded, which caused the exception."]}letmake?message=fun?resourceId->fun?resourceType->fun?serviceCode->fun?quotaCode->fun()->{message;resourceId;resourceType;serviceCode;quotaCode}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value));("resourceId",(Option.mapx.resourceId~f:String_.to_value));("resourceType",(Option.mapx.resourceType~f:String_.to_value));("serviceCode",(Option.mapx.serviceCode~f:String_.to_value));("quotaCode",(Option.mapx.quotaCode~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letquotaCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"quotaCode")inletserviceCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceCode")inletresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceType")inletresourceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceId")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?quotaCode?serviceCode?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letquotaCode=field_mapjson__"quotaCode"String_.of_jsoninletserviceCode=field_mapjson__"serviceCode"String_.of_jsoninletresourceType=field_mapjson__"resourceType"String_.of_jsoninletresourceId=field_mapjson__"resourceId"String_.of_jsoninletmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?quotaCode?serviceCode?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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."]moduleThrottlingException=structtypenonrect={message:ErrorMessage.toption;retryAfterSeconds:Integer.toption[@ocaml.doc"The server attempts to retry a command that was throttled."]}letmake?message=fun?retryAfterSeconds->fun()->{message;retryAfterSeconds}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value));("retryAfterSeconds",(Option.mapx.retryAfterSeconds~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretryAfterSeconds=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"retryAfterSeconds")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?retryAfterSeconds?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretryAfterSeconds=field_mapjson__"retryAfterSeconds"Integer.of_jsoninletmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?retryAfterSeconds?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions."]moduleValidationException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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."]moduleEmail=structtypenonrect=stringletcontext_="Email"letmakei=letopenResultinok_or_failwith((check_string_mini~min:5)>>=(fun()->(check_string_maxi~max:254)>>=(fun()->check_patterni~pattern:"[\\w\\.\\-]+@[\\w\\.\\-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Email"jletto_json=simple_to_jsonto_valueendmodulePhone=structtypenonrect=stringletcontext_="Phone"letmakei=letopenResultinok_or_failwith((check_string_mini~min:7)>>=(fun()->(check_string_maxi~max:22)>>=(fun()->check_patterni~pattern:"\\+?([0-9 \\t\\-()\\/]{7,})(?:\\s*(?:#|x\\.?|ext\\.?|extension) \\t*(\\d+))?")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Phone"jletto_json=simple_to_jsonto_valueendmoduleCapabilityConfiguration=structtypenonrect={edi:EdiConfiguration.toption[@ocaml.doc"An EDI (electronic data interchange) configuration object."]}letmake?edi=fun()->{edi}letto_valuex=structure_to_value[("edi",(Option.mapx.edi~f:EdiConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letedi=(Option.map~f:EdiConfiguration.of_xml)(Xml.childxml_arg0"edi")inmake?edi()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letedi=field_mapjson__"edi"EdiConfiguration.of_jsoninmake?edi()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"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."]moduleInstructionsDocuments=structtypenonrect=S3Location.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:5)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:S3Location.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:S3Location.of_xml)letof_jsonj=list_of_json~kind:"InstructionsDocuments"~of_json:S3Location.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAmazonResourceName=structtypenonrect=stringletcontext_="AmazonResourceName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1011)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AmazonResourceName"jletto_json=simple_to_jsonto_valueendmoduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleParsedSplitFileContentsList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"ParsedSplitFileContentsList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleValidationMessages=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"ValidationMessages"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTestMappingInputFileContent=structtypenonrect=stringletcontext_="TestMappingInputFileContent"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:5000000)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TestMappingInputFileContent"jletto_json=simple_to_jsonto_valueendmoduleConversionSource=structtypenonrect={fileFormat:ConversionSourceFormat.t[@ocaml.doc"The format for the input file: either JSON or XML."];inputFile:InputFileSource.t[@ocaml.doc"File to be converted"]}letcontext_="ConversionSource"letmake~fileFormat=fun~inputFile->fun()->{fileFormat;inputFile}letto_valuex=structure_to_value[("fileFormat",(Some(ConversionSourceFormat.to_valuex.fileFormat)));("inputFile",(Some(InputFileSource.to_valuex.inputFile)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinputFile=InputFileSource.of_xml(Xml.child_exn~context:context_xml_arg0"inputFile")inletfileFormat=ConversionSourceFormat.of_xml(Xml.child_exn~context:context_xml_arg0"fileFormat")inmake~inputFile~fileFormat()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinputFile=field_map_exnjson__"inputFile"InputFileSource.of_jsoninletfileFormat=field_map_exnjson__"fileFormat"ConversionSourceFormat.of_jsoninmake~inputFile~fileFormat()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the input for an outbound transformation."]moduleConversionTarget=structtypenonrect={fileFormat:ConversionTargetFormat.t[@ocaml.doc"Currently, only X12 format is supported."];formatDetails:ConversionTargetFormatDetails.toption[@ocaml.doc"A structure that contains the formatting details for the conversion target."];outputSampleFile:OutputSampleFileSource.toption[@ocaml.doc"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"];advancedOptions:AdvancedOptions.toption}letcontext_="ConversionTarget"letmake?formatDetails=fun?outputSampleFile->fun?advancedOptions->fun~fileFormat->fun()->{formatDetails;outputSampleFile;advancedOptions;fileFormat}letto_valuex=structure_to_value[("fileFormat",(Some(ConversionTargetFormat.to_valuex.fileFormat)));("formatDetails",(Option.mapx.formatDetails~f:ConversionTargetFormatDetails.to_value));("outputSampleFile",(Option.mapx.outputSampleFile~f:OutputSampleFileSource.to_value));("advancedOptions",(Option.mapx.advancedOptions~f:AdvancedOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letadvancedOptions=(Option.map~f:AdvancedOptions.of_xml)(Xml.childxml_arg0"advancedOptions")inletoutputSampleFile=(Option.map~f:OutputSampleFileSource.of_xml)(Xml.childxml_arg0"outputSampleFile")inletformatDetails=(Option.map~f:ConversionTargetFormatDetails.of_xml)(Xml.childxml_arg0"formatDetails")inletfileFormat=ConversionTargetFormat.of_xml(Xml.child_exn~context:context_xml_arg0"fileFormat")inmake?advancedOptions?outputSampleFile?formatDetails~fileFormat()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letadvancedOptions=field_mapjson__"advancedOptions"AdvancedOptions.of_jsoninletoutputSampleFile=field_mapjson__"outputSampleFile"OutputSampleFileSource.of_jsoninletformatDetails=field_mapjson__"formatDetails"ConversionTargetFormatDetails.of_jsoninletfileFormat=field_map_exnjson__"fileFormat"ConversionTargetFormat.of_jsoninmake?advancedOptions?outputSampleFile?formatDetails~fileFormat()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provide a sample of what the output of the transformation should look like."]moduleTagList=structtypenonrect=Tag.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Tag.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Tag.of_xml)letof_jsonj=list_of_json~kind:"TagList"~of_json:Tag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTransformerJobId=structtypenonrect=stringletcontext_="TransformerJobId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:25)>>=(fun()->(check_string_maxi~max:25)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9_-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TransformerJobId"jletto_json=simple_to_jsonto_valueendmodulePageToken=structtypenonrect=stringletcontext_="PageToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PageToken"jletto_json=simple_to_jsonto_valueendmoduleTransformerList=structtypenonrect=TransformerSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TransformerSummary.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TransformerSummary.of_xml)letof_jsonj=list_of_json~kind:"TransformerList"~of_json:TransformerSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleProfileList=structtypenonrect=ProfileSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ProfileSummary.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:ProfileSummary.of_xml)letof_jsonj=list_of_json~kind:"ProfileList"~of_json:ProfileSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePartnershipList=structtypenonrect=PartnershipSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PartnershipSummary.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:PartnershipSummary.of_xml)letof_jsonj=list_of_json~kind:"PartnershipList"~of_json:PartnershipSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCapabilityList=structtypenonrect=CapabilitySummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CapabilitySummary.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:CapabilitySummary.of_xml)letof_jsonj=list_of_json~kind:"CapabilityList"~of_json:CapabilitySummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleS3LocationList=structtypenonrect=S3Location.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:S3Location.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:S3Location.of_xml)letof_jsonj=list_of_json~kind:"S3LocationList"~of_json:S3Location.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTransformerJobStatus=structtypenonrect=|Running|Succeeded|Failed|Non_static_idofstringletmakei=iletto_string=function|Running->"running"|Succeeded->"succeeded"|Failed->"failed"|Non_static_ids->sletof_string=function|"running"->Running|"succeeded"->Succeeded|"failed"->Failed|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration TransformerJobStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TransformerJobStatus"j)letto_json=simple_to_jsonto_valueendmoduleGenerateMappingResponseMappingAccuracyFloat=structtypenonrect=floatletmakei=letopenResultinok_or_failwith((check_float_mini~min:1.)>>=(fun()->check_float_mini~min:0.));iletof_string=Float.of_stringletto_valuex=`Floatxletto_queryv=to_queryto_valuevletto_headerx=Stdlib.Float.to_stringxletof_xmlxml_arg0=Float.of_string(string_of_xml~kind:"a float"xml_arg0)letof_jsonj=float_of_json~kind:"a float"jletto_json=simple_to_jsonto_valueendmoduleGenerateMappingInputFileContent=structtypenonrect=stringletcontext_="GenerateMappingInputFileContent"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:5000000)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"GenerateMappingInputFileContent"jletto_json=simple_to_jsonto_valueendmoduleGenerateMappingOutputFileContent=structtypenonrect=stringletcontext_="GenerateMappingOutputFileContent"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:5000000)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"GenerateMappingOutputFileContent"jletto_json=simple_to_jsonto_valueendmoduleMappingType=structtypenonrect=|JSONATA|XSLT|Non_static_idofstringletmakei=iletto_string=function|JSONATA->"JSONATA"|XSLT->"XSLT"|Non_static_ids->sletof_string=function|"JSONATA"->JSONATA|"XSLT"->XSLT|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration MappingType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MappingType"j)letto_json=simple_to_jsonto_valueendmoduleTemplateDetails=structtypenonrect={x12:X12Details.toption}letmake?x12=fun()->{x12}letto_valuex=structure_to_value[("x12",(Option.mapx.x12~f:X12Details.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letx12=(Option.map~f:X12Details.of_xml)(Xml.childxml_arg0"x12")inmake?x12()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letx12=field_mapjson__"x12"X12Details.of_jsoninmake?x12()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A data structure that contains the information to use when generating a mapping template."]moduleUpdateTransformerResponse=structtypenonrect={transformerId:TransformerId.toption[@ocaml.doc"Returns the system-assigned unique identifier for the transformer."];transformerArn:ResourceArn.toption[@ocaml.doc"Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer."];name:TransformerName.toption[@ocaml.doc"Returns the name of the transformer."];status:TransformerStatus.toption[@ocaml.doc"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."];createdAt:CreatedDate.toption[@ocaml.doc"Returns a timestamp for creation date and time of the transformer."];modifiedAt:ModifiedDate.toption[@ocaml.doc"Returns a timestamp for last time the transformer was modified."];fileFormat:FileFormat.toption[@ocaml.doc"Returns that the currently supported file formats for EDI transformations are JSON and XML."];mappingTemplate:MappingTemplate.toption[@ocaml.doc"Returns the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT."];ediType:EdiType.toption[@ocaml.doc"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."];sampleDocument:FileLocation.toption[@ocaml.doc"Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data."];inputConversion:InputConversion.toption[@ocaml.doc"Returns the InputConversion object, which contains the format options for the inbound transformation."];mapping:Mapping.toption[@ocaml.doc"Returns the structure that contains the mapping template and its language (either XSLT or JSONATA)."];outputConversion:OutputConversion.toption[@ocaml.doc"Returns the OutputConversion object, which contains the format options for the outbound transformation."];sampleDocuments:SampleDocuments.toption[@ocaml.doc"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."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?transformerId=fun?transformerArn->fun?name->fun?status->fun?createdAt->fun?modifiedAt->fun?fileFormat->fun?mappingTemplate->fun?ediType->fun?sampleDocument->fun?inputConversion->fun?mapping->fun?outputConversion->fun?sampleDocuments->fun()->{transformerId;transformerArn;name;status;createdAt;modifiedAt;fileFormat;mappingTemplate;ediType;sampleDocument;inputConversion;mapping;outputConversion;sampleDocuments}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("transformerId",(Option.mapx.transformerId~f:TransformerId.to_value));("transformerArn",(Option.mapx.transformerArn~f:ResourceArn.to_value));("name",(Option.mapx.name~f:TransformerName.to_value));("status",(Option.mapx.status~f:TransformerStatus.to_value));("createdAt",(Option.mapx.createdAt~f:CreatedDate.to_value));("modifiedAt",(Option.mapx.modifiedAt~f:ModifiedDate.to_value));("fileFormat",(Option.mapx.fileFormat~f:FileFormat.to_value));("mappingTemplate",(Option.mapx.mappingTemplate~f:MappingTemplate.to_value));("ediType",(Option.mapx.ediType~f:EdiType.to_value));("sampleDocument",(Option.mapx.sampleDocument~f:FileLocation.to_value));("inputConversion",(Option.mapx.inputConversion~f:InputConversion.to_value));("mapping",(Option.mapx.mapping~f:Mapping.to_value));("outputConversion",(Option.mapx.outputConversion~f:OutputConversion.to_value));("sampleDocuments",(Option.mapx.sampleDocuments~f:SampleDocuments.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsampleDocuments=(Option.map~f:SampleDocuments.of_xml)(Xml.childxml_arg0"sampleDocuments")inletoutputConversion=(Option.map~f:OutputConversion.of_xml)(Xml.childxml_arg0"outputConversion")inletmapping=(Option.map~f:Mapping.of_xml)(Xml.childxml_arg0"mapping")inletinputConversion=(Option.map~f:InputConversion.of_xml)(Xml.childxml_arg0"inputConversion")inletsampleDocument=(Option.map~f:FileLocation.of_xml)(Xml.childxml_arg0"sampleDocument")inletediType=(Option.map~f:EdiType.of_xml)(Xml.childxml_arg0"ediType")inletmappingTemplate=(Option.map~f:MappingTemplate.of_xml)(Xml.childxml_arg0"mappingTemplate")inletfileFormat=(Option.map~f:FileFormat.of_xml)(Xml.childxml_arg0"fileFormat")inletmodifiedAt=(Option.map~f:ModifiedDate.of_xml)(Xml.childxml_arg0"modifiedAt")inletcreatedAt=(Option.map~f:CreatedDate.of_xml)(Xml.childxml_arg0"createdAt")inletstatus=(Option.map~f:TransformerStatus.of_xml)(Xml.childxml_arg0"status")inletname=(Option.map~f:TransformerName.of_xml)(Xml.childxml_arg0"name")inlettransformerArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"transformerArn")inlettransformerId=(Option.map~f:TransformerId.of_xml)(Xml.childxml_arg0"transformerId")inmake?sampleDocuments?outputConversion?mapping?inputConversion?sampleDocument?ediType?mappingTemplate?fileFormat?modifiedAt?createdAt?status?name?transformerArn?transformerId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsampleDocuments=field_mapjson__"sampleDocuments"SampleDocuments.of_jsoninletoutputConversion=field_mapjson__"outputConversion"OutputConversion.of_jsoninletmapping=field_mapjson__"mapping"Mapping.of_jsoninletinputConversion=field_mapjson__"inputConversion"InputConversion.of_jsoninletsampleDocument=field_mapjson__"sampleDocument"FileLocation.of_jsoninletediType=field_mapjson__"ediType"EdiType.of_jsoninletmappingTemplate=field_mapjson__"mappingTemplate"MappingTemplate.of_jsoninletfileFormat=field_mapjson__"fileFormat"FileFormat.of_jsoninletmodifiedAt=field_mapjson__"modifiedAt"ModifiedDate.of_jsoninletcreatedAt=field_mapjson__"createdAt"CreatedDate.of_jsoninletstatus=field_mapjson__"status"TransformerStatus.of_jsoninletname=field_mapjson__"name"TransformerName.of_jsoninlettransformerArn=field_mapjson__"transformerArn"ResourceArn.of_jsoninlettransformerId=field_mapjson__"transformerId"TransformerId.of_jsoninmake?sampleDocuments?outputConversion?mapping?inputConversion?sampleDocument?ediType?mappingTemplate?fileFormat?modifiedAt?createdAt?status?name?transformerArn?transformerId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the specified parameters for a transformer. 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."]moduleUpdateTransformerRequest=structtypenonrect={transformerId:TransformerId.t[@ocaml.doc"Specifies the system-assigned unique identifier for the transformer."];name:TransformerName.toption[@ocaml.doc"Specify a new name for the transformer, if you want to update it."];status:TransformerStatus.toption[@ocaml.doc"Specifies the transformer's status. You can update the state of the transformer from inactive to active."];fileFormat:FileFormat.toption[@ocaml.doc"Specifies that the currently supported file formats for EDI transformations are JSON and XML."];mappingTemplate:MappingTemplate.toption[@ocaml.doc"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."];ediType:EdiType.toption[@ocaml.doc"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."];sampleDocument:FileLocation.toption[@ocaml.doc"Specifies a sample EDI document that is used by a transformer as a guide for processing the EDI data."];inputConversion:InputConversion.toption[@ocaml.doc"To update, specify the InputConversion object, which contains the format options for the inbound transformation."];mapping:Mapping.toption[@ocaml.doc"Specify the structure that contains the mapping template and its language (either XSLT or JSONATA)."];outputConversion:OutputConversion.toption[@ocaml.doc"To update, specify the OutputConversion object, which contains the format options for the outbound transformation."];sampleDocuments:SampleDocuments.toption[@ocaml.doc"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."]}letcontext_="UpdateTransformerRequest"letmake?name=fun?status->fun?fileFormat->fun?mappingTemplate->fun?ediType->fun?sampleDocument->fun?inputConversion->fun?mapping->fun?outputConversion->fun?sampleDocuments->fun~transformerId->fun()->{name;status;fileFormat;mappingTemplate;ediType;sampleDocument;inputConversion;mapping;outputConversion;sampleDocuments;transformerId}letto_valuex=structure_to_value[("transformerId",(Some(TransformerId.to_valuex.transformerId)));("name",(Option.mapx.name~f:TransformerName.to_value));("status",(Option.mapx.status~f:TransformerStatus.to_value));("fileFormat",(Option.mapx.fileFormat~f:FileFormat.to_value));("mappingTemplate",(Option.mapx.mappingTemplate~f:MappingTemplate.to_value));("ediType",(Option.mapx.ediType~f:EdiType.to_value));("sampleDocument",(Option.mapx.sampleDocument~f:FileLocation.to_value));("inputConversion",(Option.mapx.inputConversion~f:InputConversion.to_value));("mapping",(Option.mapx.mapping~f:Mapping.to_value));("outputConversion",(Option.mapx.outputConversion~f:OutputConversion.to_value));("sampleDocuments",(Option.mapx.sampleDocuments~f:SampleDocuments.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsampleDocuments=(Option.map~f:SampleDocuments.of_xml)(Xml.childxml_arg0"sampleDocuments")inletoutputConversion=(Option.map~f:OutputConversion.of_xml)(Xml.childxml_arg0"outputConversion")inletmapping=(Option.map~f:Mapping.of_xml)(Xml.childxml_arg0"mapping")inletinputConversion=(Option.map~f:InputConversion.of_xml)(Xml.childxml_arg0"inputConversion")inletsampleDocument=(Option.map~f:FileLocation.of_xml)(Xml.childxml_arg0"sampleDocument")inletediType=(Option.map~f:EdiType.of_xml)(Xml.childxml_arg0"ediType")inletmappingTemplate=(Option.map~f:MappingTemplate.of_xml)(Xml.childxml_arg0"mappingTemplate")inletfileFormat=(Option.map~f:FileFormat.of_xml)(Xml.childxml_arg0"fileFormat")inletstatus=(Option.map~f:TransformerStatus.of_xml)(Xml.childxml_arg0"status")inletname=(Option.map~f:TransformerName.of_xml)(Xml.childxml_arg0"name")inlettransformerId=TransformerId.of_xml(Xml.child_exn~context:context_xml_arg0"transformerId")inmake?sampleDocuments?outputConversion?mapping?inputConversion?sampleDocument?ediType?mappingTemplate?fileFormat?status?name~transformerId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsampleDocuments=field_mapjson__"sampleDocuments"SampleDocuments.of_jsoninletoutputConversion=field_mapjson__"outputConversion"OutputConversion.of_jsoninletmapping=field_mapjson__"mapping"Mapping.of_jsoninletinputConversion=field_mapjson__"inputConversion"InputConversion.of_jsoninletsampleDocument=field_mapjson__"sampleDocument"FileLocation.of_jsoninletediType=field_mapjson__"ediType"EdiType.of_jsoninletmappingTemplate=field_mapjson__"mappingTemplate"MappingTemplate.of_jsoninletfileFormat=field_mapjson__"fileFormat"FileFormat.of_jsoninletstatus=field_mapjson__"status"TransformerStatus.of_jsoninletname=field_mapjson__"name"TransformerName.of_jsoninlettransformerId=field_map_exnjson__"transformerId"TransformerId.of_jsoninmake?sampleDocuments?outputConversion?mapping?inputConversion?sampleDocument?ediType?mappingTemplate?fileFormat?status?name~transformerId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the specified parameters for a transformer. 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."]moduleUpdateProfileResponse=structtypenonrect={profileId:ProfileId.toption[@ocaml.doc"Returns the unique, system-generated identifier for the profile."];profileArn:ResourceArn.toption[@ocaml.doc"Returns an Amazon Resource Name (ARN) for the profile."];name:ProfileName.toption[@ocaml.doc"Returns the name of the profile."];email:Email.toption[@ocaml.doc"Returns the email address associated with this customer profile."];phone:Phone.toption[@ocaml.doc"Returns the phone number associated with the profile."];businessName:BusinessName.toption[@ocaml.doc"Returns the name for the business associated with this profile."];logging:Logging.toption[@ocaml.doc"Specifies whether or not logging is enabled for this profile."];logGroupName:LogGroupName.toption[@ocaml.doc"Returns the name of the logging group."];createdAt:CreatedDate.toption[@ocaml.doc"Returns a timestamp for creation date and time of the profile."];modifiedAt:ModifiedDate.toption[@ocaml.doc"Returns a timestamp for last time the profile was modified."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?profileId=fun?profileArn->fun?name->fun?email->fun?phone->fun?businessName->fun?logging->fun?logGroupName->fun?createdAt->fun?modifiedAt->fun()->{profileId;profileArn;name;email;phone;businessName;logging;logGroupName;createdAt;modifiedAt}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("profileId",(Option.mapx.profileId~f:ProfileId.to_value));("profileArn",(Option.mapx.profileArn~f:ResourceArn.to_value));("name",(Option.mapx.name~f:ProfileName.to_value));("email",(Option.mapx.email~f:Email.to_value));("phone",(Option.mapx.phone~f:Phone.to_value));("businessName",(Option.mapx.businessName~f:BusinessName.to_value));("logging",(Option.mapx.logging~f:Logging.to_value));("logGroupName",(Option.mapx.logGroupName~f:LogGroupName.to_value));("createdAt",(Option.mapx.createdAt~f:CreatedDate.to_value));("modifiedAt",(Option.mapx.modifiedAt~f:ModifiedDate.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmodifiedAt=(Option.map~f:ModifiedDate.of_xml)(Xml.childxml_arg0"modifiedAt")inletcreatedAt=(Option.map~f:CreatedDate.of_xml)(Xml.childxml_arg0"createdAt")inletlogGroupName=(Option.map~f:LogGroupName.of_xml)(Xml.childxml_arg0"logGroupName")inletlogging=(Option.map~f:Logging.of_xml)(Xml.childxml_arg0"logging")inletbusinessName=(Option.map~f:BusinessName.of_xml)(Xml.childxml_arg0"businessName")inletphone=(Option.map~f:Phone.of_xml)(Xml.childxml_arg0"phone")inletemail=(Option.map~f:Email.of_xml)(Xml.childxml_arg0"email")inletname=(Option.map~f:ProfileName.of_xml)(Xml.childxml_arg0"name")inletprofileArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"profileArn")inletprofileId=(Option.map~f:ProfileId.of_xml)(Xml.childxml_arg0"profileId")inmake?modifiedAt?createdAt?logGroupName?logging?businessName?phone?email?name?profileArn?profileId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmodifiedAt=field_mapjson__"modifiedAt"ModifiedDate.of_jsoninletcreatedAt=field_mapjson__"createdAt"CreatedDate.of_jsoninletlogGroupName=field_mapjson__"logGroupName"LogGroupName.of_jsoninletlogging=field_mapjson__"logging"Logging.of_jsoninletbusinessName=field_mapjson__"businessName"BusinessName.of_jsoninletphone=field_mapjson__"phone"Phone.of_jsoninletemail=field_mapjson__"email"Email.of_jsoninletname=field_mapjson__"name"ProfileName.of_jsoninletprofileArn=field_mapjson__"profileArn"ResourceArn.of_jsoninletprofileId=field_mapjson__"profileId"ProfileId.of_jsoninmake?modifiedAt?createdAt?logGroupName?logging?businessName?phone?email?name?profileArn?profileId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the specified parameters for a profile. A profile is the mechanism used to create the concept of a private network."]moduleUpdateProfileRequest=structtypenonrect={profileId:ProfileId.t[@ocaml.doc"Specifies the unique, system-generated identifier for the profile."];name:ProfileName.toption[@ocaml.doc"The name of the profile, used to identify it."];email:Email.toption[@ocaml.doc"Specifies the email address associated with this customer profile."];phone:Phone.toption[@ocaml.doc"Specifies the phone number associated with the profile."];businessName:BusinessName.toption[@ocaml.doc"Specifies the name for the business associated with this profile."]}letcontext_="UpdateProfileRequest"letmake?name=fun?email->fun?phone->fun?businessName->fun~profileId->fun()->{name;email;phone;businessName;profileId}letto_valuex=structure_to_value[("profileId",(Some(ProfileId.to_valuex.profileId)));("name",(Option.mapx.name~f:ProfileName.to_value));("email",(Option.mapx.email~f:Email.to_value));("phone",(Option.mapx.phone~f:Phone.to_value));("businessName",(Option.mapx.businessName~f:BusinessName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbusinessName=(Option.map~f:BusinessName.of_xml)(Xml.childxml_arg0"businessName")inletphone=(Option.map~f:Phone.of_xml)(Xml.childxml_arg0"phone")inletemail=(Option.map~f:Email.of_xml)(Xml.childxml_arg0"email")inletname=(Option.map~f:ProfileName.of_xml)(Xml.childxml_arg0"name")inletprofileId=ProfileId.of_xml(Xml.child_exn~context:context_xml_arg0"profileId")inmake?businessName?phone?email?name~profileId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbusinessName=field_mapjson__"businessName"BusinessName.of_jsoninletphone=field_mapjson__"phone"Phone.of_jsoninletemail=field_mapjson__"email"Email.of_jsoninletname=field_mapjson__"name"ProfileName.of_jsoninletprofileId=field_map_exnjson__"profileId"ProfileId.of_jsoninmake?businessName?phone?email?name~profileId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the specified parameters for a profile. A profile is the mechanism used to create the concept of a private network."]moduleUpdatePartnershipResponse=structtypenonrect={profileId:ProfileId.toption[@ocaml.doc"Returns the unique, system-generated identifier for the profile connected to this partnership."];partnershipId:PartnershipId.toption[@ocaml.doc"Returns the unique, system-generated identifier for a partnership."];partnershipArn:ResourceArn.toption[@ocaml.doc"Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer."];name:PartnerName.toption[@ocaml.doc"The name of the partnership, used to identify it."];email:Email.toption[@ocaml.doc"Returns the email address associated with this trading partner."];phone:Phone.toption[@ocaml.doc"Returns the phone number associated with the partnership."];capabilities:PartnershipCapabilities.toption[@ocaml.doc"Returns one or more capabilities associated with this partnership."];capabilityOptions:CapabilityOptions.toption[@ocaml.doc"Returns the structure that contains the details for the associated capabilities."];tradingPartnerId:TradingPartnerId.toption[@ocaml.doc"Returns the unique, system-generated identifier for a trading partner."];createdAt:CreatedDate.toption[@ocaml.doc"Returns a timestamp that identifies the most recent date and time that the partnership was modified."];modifiedAt:ModifiedDate.toption[@ocaml.doc"Returns a timestamp that identifies the most recent date and time that the partnership was modified."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?profileId=fun?partnershipId->fun?partnershipArn->fun?name->fun?email->fun?phone->fun?capabilities->fun?capabilityOptions->fun?tradingPartnerId->fun?createdAt->fun?modifiedAt->fun()->{profileId;partnershipId;partnershipArn;name;email;phone;capabilities;capabilityOptions;tradingPartnerId;createdAt;modifiedAt}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("profileId",(Option.mapx.profileId~f:ProfileId.to_value));("partnershipId",(Option.mapx.partnershipId~f:PartnershipId.to_value));("partnershipArn",(Option.mapx.partnershipArn~f:ResourceArn.to_value));("name",(Option.mapx.name~f:PartnerName.to_value));("email",(Option.mapx.email~f:Email.to_value));("phone",(Option.mapx.phone~f:Phone.to_value));("capabilities",(Option.mapx.capabilities~f:PartnershipCapabilities.to_value));("capabilityOptions",(Option.mapx.capabilityOptions~f:CapabilityOptions.to_value));("tradingPartnerId",(Option.mapx.tradingPartnerId~f:TradingPartnerId.to_value));("createdAt",(Option.mapx.createdAt~f:CreatedDate.to_value));("modifiedAt",(Option.mapx.modifiedAt~f:ModifiedDate.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmodifiedAt=(Option.map~f:ModifiedDate.of_xml)(Xml.childxml_arg0"modifiedAt")inletcreatedAt=(Option.map~f:CreatedDate.of_xml)(Xml.childxml_arg0"createdAt")inlettradingPartnerId=(Option.map~f:TradingPartnerId.of_xml)(Xml.childxml_arg0"tradingPartnerId")inletcapabilityOptions=(Option.map~f:CapabilityOptions.of_xml)(Xml.childxml_arg0"capabilityOptions")inletcapabilities=(Option.map~f:PartnershipCapabilities.of_xml)(Xml.childxml_arg0"capabilities")inletphone=(Option.map~f:Phone.of_xml)(Xml.childxml_arg0"phone")inletemail=(Option.map~f:Email.of_xml)(Xml.childxml_arg0"email")inletname=(Option.map~f:PartnerName.of_xml)(Xml.childxml_arg0"name")inletpartnershipArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"partnershipArn")inletpartnershipId=(Option.map~f:PartnershipId.of_xml)(Xml.childxml_arg0"partnershipId")inletprofileId=(Option.map~f:ProfileId.of_xml)(Xml.childxml_arg0"profileId")inmake?modifiedAt?createdAt?tradingPartnerId?capabilityOptions?capabilities?phone?email?name?partnershipArn?partnershipId?profileId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmodifiedAt=field_mapjson__"modifiedAt"ModifiedDate.of_jsoninletcreatedAt=field_mapjson__"createdAt"CreatedDate.of_jsoninlettradingPartnerId=field_mapjson__"tradingPartnerId"TradingPartnerId.of_jsoninletcapabilityOptions=field_mapjson__"capabilityOptions"CapabilityOptions.of_jsoninletcapabilities=field_mapjson__"capabilities"PartnershipCapabilities.of_jsoninletphone=field_mapjson__"phone"Phone.of_jsoninletemail=field_mapjson__"email"Email.of_jsoninletname=field_mapjson__"name"PartnerName.of_jsoninletpartnershipArn=field_mapjson__"partnershipArn"ResourceArn.of_jsoninletpartnershipId=field_mapjson__"partnershipId"PartnershipId.of_jsoninletprofileId=field_mapjson__"profileId"ProfileId.of_jsoninmake?modifiedAt?createdAt?tradingPartnerId?capabilityOptions?capabilities?phone?email?name?partnershipArn?partnershipId?profileId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates some of the parameters for a partnership between a customer and trading partner. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities."]moduleUpdatePartnershipRequest=structtypenonrect={partnershipId:PartnershipId.t[@ocaml.doc"Specifies the unique, system-generated identifier for a partnership."];name:PartnerName.toption[@ocaml.doc"The name of the partnership, used to identify it."];capabilities:PartnershipCapabilities.toption[@ocaml.doc"List of the capabilities associated with this partnership."];capabilityOptions:CapabilityOptions.toption[@ocaml.doc"To update, specify the structure that contains the details for the associated capabilities."]}letcontext_="UpdatePartnershipRequest"letmake?name=fun?capabilities->fun?capabilityOptions->fun~partnershipId->fun()->{name;capabilities;capabilityOptions;partnershipId}letto_valuex=structure_to_value[("partnershipId",(Some(PartnershipId.to_valuex.partnershipId)));("name",(Option.mapx.name~f:PartnerName.to_value));("capabilities",(Option.mapx.capabilities~f:PartnershipCapabilities.to_value));("capabilityOptions",(Option.mapx.capabilityOptions~f:CapabilityOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcapabilityOptions=(Option.map~f:CapabilityOptions.of_xml)(Xml.childxml_arg0"capabilityOptions")inletcapabilities=(Option.map~f:PartnershipCapabilities.of_xml)(Xml.childxml_arg0"capabilities")inletname=(Option.map~f:PartnerName.of_xml)(Xml.childxml_arg0"name")inletpartnershipId=PartnershipId.of_xml(Xml.child_exn~context:context_xml_arg0"partnershipId")inmake?capabilityOptions?capabilities?name~partnershipId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcapabilityOptions=field_mapjson__"capabilityOptions"CapabilityOptions.of_jsoninletcapabilities=field_mapjson__"capabilities"PartnershipCapabilities.of_jsoninletname=field_mapjson__"name"PartnerName.of_jsoninletpartnershipId=field_map_exnjson__"partnershipId"PartnershipId.of_jsoninmake?capabilityOptions?capabilities?name~partnershipId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates some of the parameters for a partnership between a customer and trading partner. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities."]moduleUpdateCapabilityResponse=structtypenonrect={capabilityId:CapabilityId.toption[@ocaml.doc"Returns a system-assigned unique identifier for the capability."];capabilityArn:ResourceArn.toption[@ocaml.doc"Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer."];name:CapabilityName.toption[@ocaml.doc"Returns the name of the capability, used to identify it."];type_:CapabilityType.toption[@ocaml.doc"Returns the type of the capability. Currently, only edi is supported."];configuration:CapabilityConfiguration.toption[@ocaml.doc"Returns a structure that contains the details for a capability."];instructionsDocuments:InstructionsDocuments.toption[@ocaml.doc"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."];createdAt:CreatedDate.toption[@ocaml.doc"Returns a timestamp for creation date and time of the capability."];modifiedAt:ModifiedDate.toption[@ocaml.doc"Returns a timestamp for last time the capability was modified."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?capabilityId=fun?capabilityArn->fun?name->fun?type_->fun?configuration->fun?instructionsDocuments->fun?createdAt->fun?modifiedAt->fun()->{capabilityId;capabilityArn;name;type_;configuration;instructionsDocuments;createdAt;modifiedAt}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("capabilityId",(Option.mapx.capabilityId~f:CapabilityId.to_value));("capabilityArn",(Option.mapx.capabilityArn~f:ResourceArn.to_value));("name",(Option.mapx.name~f:CapabilityName.to_value));("type",(Option.mapx.type_~f:CapabilityType.to_value));("configuration",(Option.mapx.configuration~f:CapabilityConfiguration.to_value));("instructionsDocuments",(Option.mapx.instructionsDocuments~f:InstructionsDocuments.to_value));("createdAt",(Option.mapx.createdAt~f:CreatedDate.to_value));("modifiedAt",(Option.mapx.modifiedAt~f:ModifiedDate.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmodifiedAt=(Option.map~f:ModifiedDate.of_xml)(Xml.childxml_arg0"modifiedAt")inletcreatedAt=(Option.map~f:CreatedDate.of_xml)(Xml.childxml_arg0"createdAt")inletinstructionsDocuments=(Option.map~f:InstructionsDocuments.of_xml)(Xml.childxml_arg0"instructionsDocuments")inletconfiguration=(Option.map~f:CapabilityConfiguration.of_xml)(Xml.childxml_arg0"configuration")inlettype_=(Option.map~f:CapabilityType.of_xml)(Xml.childxml_arg0"type")inletname=(Option.map~f:CapabilityName.of_xml)(Xml.childxml_arg0"name")inletcapabilityArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"capabilityArn")inletcapabilityId=(Option.map~f:CapabilityId.of_xml)(Xml.childxml_arg0"capabilityId")inmake?modifiedAt?createdAt?instructionsDocuments?configuration?type_?name?capabilityArn?capabilityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmodifiedAt=field_mapjson__"modifiedAt"ModifiedDate.of_jsoninletcreatedAt=field_mapjson__"createdAt"CreatedDate.of_jsoninletinstructionsDocuments=field_mapjson__"instructionsDocuments"InstructionsDocuments.of_jsoninletconfiguration=field_mapjson__"configuration"CapabilityConfiguration.of_jsoninlettype_=field_mapjson__"type"CapabilityType.of_jsoninletname=field_mapjson__"name"CapabilityName.of_jsoninletcapabilityArn=field_mapjson__"capabilityArn"ResourceArn.of_jsoninletcapabilityId=field_mapjson__"capabilityId"CapabilityId.of_jsoninmake?modifiedAt?createdAt?instructionsDocuments?configuration?type_?name?capabilityArn?capabilityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates some of the parameters for a capability, based on the specified parameters. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs."]moduleUpdateCapabilityRequest=structtypenonrect={capabilityId:CapabilityId.t[@ocaml.doc"Specifies a system-assigned unique identifier for the capability."];name:CapabilityName.toption[@ocaml.doc"Specifies a new name for the capability, to replace the existing name."];configuration:CapabilityConfiguration.toption[@ocaml.doc"Specifies a structure that contains the details for a capability."];instructionsDocuments:InstructionsDocuments.toption[@ocaml.doc"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."]}letcontext_="UpdateCapabilityRequest"letmake?name=fun?configuration->fun?instructionsDocuments->fun~capabilityId->fun()->{name;configuration;instructionsDocuments;capabilityId}letto_valuex=structure_to_value[("capabilityId",(Some(CapabilityId.to_valuex.capabilityId)));("name",(Option.mapx.name~f:CapabilityName.to_value));("configuration",(Option.mapx.configuration~f:CapabilityConfiguration.to_value));("instructionsDocuments",(Option.mapx.instructionsDocuments~f:InstructionsDocuments.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinstructionsDocuments=(Option.map~f:InstructionsDocuments.of_xml)(Xml.childxml_arg0"instructionsDocuments")inletconfiguration=(Option.map~f:CapabilityConfiguration.of_xml)(Xml.childxml_arg0"configuration")inletname=(Option.map~f:CapabilityName.of_xml)(Xml.childxml_arg0"name")inletcapabilityId=CapabilityId.of_xml(Xml.child_exn~context:context_xml_arg0"capabilityId")inmake?instructionsDocuments?configuration?name~capabilityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinstructionsDocuments=field_mapjson__"instructionsDocuments"InstructionsDocuments.of_jsoninletconfiguration=field_mapjson__"configuration"CapabilityConfiguration.of_jsoninletname=field_mapjson__"name"CapabilityName.of_jsoninletcapabilityId=field_map_exnjson__"capabilityId"CapabilityId.of_jsoninmake?instructionsDocuments?configuration?name~capabilityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates some of the parameters for a capability, based on the specified parameters. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs."]moduleUntagResourceRequest=structtypenonrect={resourceARN:AmazonResourceName.t[@ocaml.doc"Specifies an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer."];tagKeys:TagKeyList.t[@ocaml.doc"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."]}letcontext_="UntagResourceRequest"letmake~resourceARN=fun~tagKeys->fun()->{resourceARN;tagKeys}letto_valuex=structure_to_value[("ResourceARN",(Some(AmazonResourceName.to_valuex.resourceARN)));("TagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"TagKeys")inletresourceARN=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~tagKeys~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"TagKeys"TagKeyList.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"AmazonResourceName.of_jsoninmake~tagKeys~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Detaches a key-value pair from the specified resource, as identified by its Amazon Resource Name (ARN). Resources are capability, partnership, profile, transformers and other entities."]moduleTestParsingResponse=structtypenonrect={parsedFileContent:String_.toption[@ocaml.doc"Returns the contents of the input file being tested, parsed according to the specified EDI (electronic data interchange) type."];parsedSplitFileContents:ParsedSplitFileContentsList.toption[@ocaml.doc"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."];validationMessages:ValidationMessages.toption[@ocaml.doc"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."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?parsedFileContent=fun?parsedSplitFileContents->fun?validationMessages->fun()->{parsedFileContent;parsedSplitFileContents;validationMessages}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("parsedFileContent",(Option.mapx.parsedFileContent~f:String_.to_value));("parsedSplitFileContents",(Option.mapx.parsedSplitFileContents~f:ParsedSplitFileContentsList.to_value));("validationMessages",(Option.mapx.validationMessages~f:ValidationMessages.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalidationMessages=(Option.map~f:ValidationMessages.of_xml)(Xml.childxml_arg0"validationMessages")inletparsedSplitFileContents=(Option.map~f:ParsedSplitFileContentsList.of_xml)(Xml.childxml_arg0"parsedSplitFileContents")inletparsedFileContent=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"parsedFileContent")inmake?validationMessages?parsedSplitFileContents?parsedFileContent()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalidationMessages=field_mapjson__"validationMessages"ValidationMessages.of_jsoninletparsedSplitFileContents=field_mapjson__"parsedSplitFileContents"ParsedSplitFileContentsList.of_jsoninletparsedFileContent=field_mapjson__"parsedFileContent"String_.of_jsoninmake?validationMessages?parsedSplitFileContents?parsedFileContent()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parses the input EDI (electronic data interchange) file. The input file has a file size limit of 250 KB."]moduleTestParsingRequest=structtypenonrect={inputFile:S3Location.t[@ocaml.doc"Specifies an S3Location object, which contains the Amazon S3 bucket and prefix for the location of the input file."];fileFormat:FileFormat.t[@ocaml.doc"Specifies that the currently supported file formats for EDI transformations are JSON and XML."];ediType:EdiType.t[@ocaml.doc"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."];advancedOptions:AdvancedOptions.toption[@ocaml.doc"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."]}letcontext_="TestParsingRequest"letmake?advancedOptions=fun~inputFile->fun~fileFormat->fun~ediType->fun()->{advancedOptions;inputFile;fileFormat;ediType}letto_valuex=structure_to_value[("inputFile",(Some(S3Location.to_valuex.inputFile)));("fileFormat",(Some(FileFormat.to_valuex.fileFormat)));("ediType",(Some(EdiType.to_valuex.ediType)));("advancedOptions",(Option.mapx.advancedOptions~f:AdvancedOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letadvancedOptions=(Option.map~f:AdvancedOptions.of_xml)(Xml.childxml_arg0"advancedOptions")inletediType=EdiType.of_xml(Xml.child_exn~context:context_xml_arg0"ediType")inletfileFormat=FileFormat.of_xml(Xml.child_exn~context:context_xml_arg0"fileFormat")inletinputFile=S3Location.of_xml(Xml.child_exn~context:context_xml_arg0"inputFile")inmake?advancedOptions~ediType~fileFormat~inputFile()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letadvancedOptions=field_mapjson__"advancedOptions"AdvancedOptions.of_jsoninletediType=field_map_exnjson__"ediType"EdiType.of_jsoninletfileFormat=field_map_exnjson__"fileFormat"FileFormat.of_jsoninletinputFile=field_map_exnjson__"inputFile"S3Location.of_jsoninmake?advancedOptions~ediType~fileFormat~inputFile()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parses the input EDI (electronic data interchange) file. The input file has a file size limit of 250 KB."]moduleTestMappingResponse=structtypenonrect={mappedFileContent:String_.toption[@ocaml.doc"Returns a string for the mapping that can be used to identify the mapping. Similar to a fingerprint"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?mappedFileContent=fun()->{mappedFileContent}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("mappedFileContent",(Option.mapx.mappedFileContent~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmappedFileContent=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"mappedFileContent")inmake?mappedFileContent()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmappedFileContent=field_mapjson__"mappedFileContent"String_.of_jsoninmake?mappedFileContent()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Maps the input file according to the provided template file. The API call downloads the file contents from the Amazon S3 location, and passes the contents in as a string, to the inputFileContent parameter."]moduleTestMappingRequest=structtypenonrect={inputFileContent:TestMappingInputFileContent.t[@ocaml.doc"Specify the contents of the EDI (electronic data interchange) XML or JSON file that is used as input for the transform."];mappingTemplate:MappingTemplate.t[@ocaml.doc"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."];fileFormat:FileFormat.t[@ocaml.doc"Specifies that the currently supported file formats for EDI transformations are JSON and XML."]}letcontext_="TestMappingRequest"letmake~inputFileContent=fun~mappingTemplate->fun~fileFormat->fun()->{inputFileContent;mappingTemplate;fileFormat}letto_valuex=structure_to_value[("inputFileContent",(Some(TestMappingInputFileContent.to_valuex.inputFileContent)));("mappingTemplate",(Some(MappingTemplate.to_valuex.mappingTemplate)));("fileFormat",(Some(FileFormat.to_valuex.fileFormat)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfileFormat=FileFormat.of_xml(Xml.child_exn~context:context_xml_arg0"fileFormat")inletmappingTemplate=MappingTemplate.of_xml(Xml.child_exn~context:context_xml_arg0"mappingTemplate")inletinputFileContent=TestMappingInputFileContent.of_xml(Xml.child_exn~context:context_xml_arg0"inputFileContent")inmake~fileFormat~mappingTemplate~inputFileContent()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfileFormat=field_map_exnjson__"fileFormat"FileFormat.of_jsoninletmappingTemplate=field_map_exnjson__"mappingTemplate"MappingTemplate.of_jsoninletinputFileContent=field_map_exnjson__"inputFileContent"TestMappingInputFileContent.of_jsoninmake~fileFormat~mappingTemplate~inputFileContent()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Maps the input file according to the provided template file. The API call downloads the file contents from the Amazon S3 location, and passes the contents in as a string, to the inputFileContent parameter."]moduleTestConversionResponse=structtypenonrect={convertedFileContent:String_.toption[@ocaml.doc"Returns the converted file content."];validationMessages:ValidationMessages.toption[@ocaml.doc"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."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?convertedFileContent=fun?validationMessages->fun()->{convertedFileContent;validationMessages}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("convertedFileContent",(Option.mapx.convertedFileContent~f:String_.to_value));("validationMessages",(Option.mapx.validationMessages~f:ValidationMessages.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalidationMessages=(Option.map~f:ValidationMessages.of_xml)(Xml.childxml_arg0"validationMessages")inletconvertedFileContent=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"convertedFileContent")inmake?validationMessages?convertedFileContent()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalidationMessages=field_mapjson__"validationMessages"ValidationMessages.of_jsoninletconvertedFileContent=field_mapjson__"convertedFileContent"String_.of_jsoninmake?validationMessages?convertedFileContent()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This operation mimics the latter half of a typical Outbound EDI request. It takes an input JSON/XML in the B2Bi shape as input, converts it to an X12 EDI string, and return that string."]moduleTestConversionRequest=structtypenonrect={source:ConversionSource.t[@ocaml.doc"Specify the source file for an outbound EDI request."];target:ConversionTarget.t[@ocaml.doc"Specify the format (X12 is the only currently supported format), and other details for the conversion target."]}letcontext_="TestConversionRequest"letmake~source=fun~target->fun()->{source;target}letto_valuex=structure_to_value[("source",(Some(ConversionSource.to_valuex.source)));("target",(Some(ConversionTarget.to_valuex.target)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettarget=ConversionTarget.of_xml(Xml.child_exn~context:context_xml_arg0"target")inletsource=ConversionSource.of_xml(Xml.child_exn~context:context_xml_arg0"source")inmake~target~source()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettarget=field_map_exnjson__"target"ConversionTarget.of_jsoninletsource=field_map_exnjson__"source"ConversionSource.of_jsoninmake~target~source()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This operation mimics the latter half of a typical Outbound EDI request. It takes an input JSON/XML in the B2Bi shape as input, converts it to an X12 EDI string, and return that string."]moduleTagResourceRequest=structtypenonrect={resourceARN:AmazonResourceName.t[@ocaml.doc"Specifies an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer."];tags:TagList.t[@ocaml.doc"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."]}letcontext_="TagResourceRequest"letmake~resourceARN=fun~tags->fun()->{resourceARN;tags}letto_valuex=structure_to_value[("ResourceARN",(Some(AmazonResourceName.to_valuex.resourceARN)));("Tags",(Some(TagList.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagList.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inletresourceARN=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~tags~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"TagList.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"AmazonResourceName.of_jsoninmake~tags~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Resources are capability, partnership, profile, transformers and other entities. There is no response returned from this call."]moduleStartTransformerJobResponse=structtypenonrect={transformerJobId:TransformerJobId.toption[@ocaml.doc"Returns the unique, system-generated identifier for a transformer run."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?transformerJobId=fun()->{transformerJobId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("transformerJobId",(Option.mapx.transformerJobId~f:TransformerJobId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettransformerJobId=(Option.map~f:TransformerJobId.of_xml)(Xml.childxml_arg0"transformerJobId")inmake?transformerJobId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettransformerJobId=field_mapjson__"transformerJobId"TransformerJobId.of_jsoninmake?transformerJobId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Runs a job, using a transformer, to parse input EDI (electronic data interchange) file into the output structures used by Amazon Web Services B2B Data Interchange. If you only want to transform EDI (electronic data interchange) documents, you don't need to create profiles, partnerships or capabilities. Just create and configure a transformer, and then run the StartTransformerJob API to process your files. The system stores transformer jobs for 30 days. During that period, you can run GetTransformerJob and supply its transformerId and transformerJobId to return details of the job."]moduleStartTransformerJobRequest=structtypenonrect={inputFile:S3Location.t[@ocaml.doc"Specifies the location of the input file for the transformation. The location consists of an Amazon S3 bucket and prefix."];outputLocation:S3Location.t[@ocaml.doc"Specifies the location of the output file for the transformation. The location consists of an Amazon S3 bucket and prefix."];transformerId:TransformerId.t[@ocaml.doc"Specifies the system-assigned unique identifier for the transformer."];clientToken:String_.toption[@ocaml.doc"Reserved for future use."]}letcontext_="StartTransformerJobRequest"letmake?clientToken=fun~inputFile->fun~outputLocation->fun~transformerId->fun()->{clientToken;inputFile;outputLocation;transformerId}letto_valuex=structure_to_value[("inputFile",(Some(S3Location.to_valuex.inputFile)));("outputLocation",(Some(S3Location.to_valuex.outputLocation)));("transformerId",(Some(TransformerId.to_valuex.transformerId)));("clientToken",(Option.mapx.clientToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inlettransformerId=TransformerId.of_xml(Xml.child_exn~context:context_xml_arg0"transformerId")inletoutputLocation=S3Location.of_xml(Xml.child_exn~context:context_xml_arg0"outputLocation")inletinputFile=S3Location.of_xml(Xml.child_exn~context:context_xml_arg0"inputFile")inmake?clientToken~transformerId~outputLocation~inputFile()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"String_.of_jsoninlettransformerId=field_map_exnjson__"transformerId"TransformerId.of_jsoninletoutputLocation=field_map_exnjson__"outputLocation"S3Location.of_jsoninletinputFile=field_map_exnjson__"inputFile"S3Location.of_jsoninmake?clientToken~transformerId~outputLocation~inputFile()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Runs a job, using a transformer, to parse input EDI (electronic data interchange) file into the output structures used by Amazon Web Services B2B Data Interchange. If you only want to transform EDI (electronic data interchange) documents, you don't need to create profiles, partnerships or capabilities. Just create and configure a transformer, and then run the StartTransformerJob API to process your files. The system stores transformer jobs for 30 days. During that period, you can run GetTransformerJob and supply its transformerId and transformerJobId to return details of the job."]moduleListTransformersResponse=structtypenonrect={transformers:TransformerList.toption[@ocaml.doc"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."];nextToken:PageToken.toption[@ocaml.doc"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."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?transformers=fun?nextToken->fun()->{transformers;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("transformers",(Option.mapx.transformers~f:TransformerList.to_value));("nextToken",(Option.mapx.nextToken~f:PageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inlettransformers=(Option.map~f:TransformerList.of_xml)(Xml.childxml_arg0"transformers")inmake?nextToken?transformers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PageToken.of_jsoninlettransformers=field_mapjson__"transformers"TransformerList.of_jsoninmake?nextToken?transformers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the available transformers. 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."]moduleListTransformersRequest=structtypenonrect={nextToken:PageToken.toption[@ocaml.doc"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."];maxResults:MaxResults.toption[@ocaml.doc"Specifies the number of items to return for the API response."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:PageToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"nextToken"PageToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the available transformers. 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."]moduleListTagsForResourceResponse=structtypenonrect={tags:TagList.toption[@ocaml.doc"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."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify. The resource can be a capability, partnership, profile, or transformer."]moduleListTagsForResourceRequest=structtypenonrect={resourceARN:AmazonResourceName.t[@ocaml.doc"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."]}letcontext_="ListTagsForResourceRequest"letmake~resourceARN=fun()->{resourceARN}letto_valuex=structure_to_value[("ResourceARN",(Some(AmazonResourceName.to_valuex.resourceARN)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceARN=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceARN=field_map_exnjson__"ResourceARN"AmazonResourceName.of_jsoninmake~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify. The resource can be a capability, partnership, profile, or transformer."]moduleListProfilesResponse=structtypenonrect={profiles:ProfileList.toption[@ocaml.doc"Returns an array of ProfileSummary objects."];nextToken:PageToken.toption[@ocaml.doc"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."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?profiles=fun?nextToken->fun()->{profiles;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("profiles",(Option.mapx.profiles~f:ProfileList.to_value));("nextToken",(Option.mapx.nextToken~f:PageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inletprofiles=(Option.map~f:ProfileList.of_xml)(Xml.childxml_arg0"profiles")inmake?nextToken?profiles()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PageToken.of_jsoninletprofiles=field_mapjson__"profiles"ProfileList.of_jsoninmake?nextToken?profiles()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the profiles associated with your Amazon Web Services account for your current or specified region. A profile is the mechanism used to create the concept of a private network."]moduleListProfilesRequest=structtypenonrect={nextToken:PageToken.toption[@ocaml.doc"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."];maxResults:MaxResults.toption[@ocaml.doc"Specifies the maximum number of profiles to return."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:PageToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"nextToken"PageToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the profiles associated with your Amazon Web Services account for your current or specified region. A profile is the mechanism used to create the concept of a private network."]moduleListPartnershipsResponse=structtypenonrect={partnerships:PartnershipList.toption[@ocaml.doc"Specifies a list of your partnerships."];nextToken:PageToken.toption[@ocaml.doc"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."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?partnerships=fun?nextToken->fun()->{partnerships;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("partnerships",(Option.mapx.partnerships~f:PartnershipList.to_value));("nextToken",(Option.mapx.nextToken~f:PageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inletpartnerships=(Option.map~f:PartnershipList.of_xml)(Xml.childxml_arg0"partnerships")inmake?nextToken?partnerships()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PageToken.of_jsoninletpartnerships=field_mapjson__"partnerships"PartnershipList.of_jsoninmake?nextToken?partnerships()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the partnerships associated with your Amazon Web Services account for your current or specified region. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities."]moduleListPartnershipsRequest=structtypenonrect={profileId:ProfileId.toption[@ocaml.doc"Specifies the unique, system-generated identifier for the profile connected to this partnership."];nextToken:PageToken.toption[@ocaml.doc"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."];maxResults:MaxResults.toption[@ocaml.doc"Specifies the maximum number of capabilities to return."]}letmake?profileId=fun?nextToken->fun?maxResults->fun()->{profileId;nextToken;maxResults}letto_valuex=structure_to_value[("profileId",(Option.mapx.profileId~f:ProfileId.to_value));("nextToken",(Option.mapx.nextToken~f:PageToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inletprofileId=(Option.map~f:ProfileId.of_xml)(Xml.childxml_arg0"profileId")inmake?maxResults?nextToken?profileId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"nextToken"PageToken.of_jsoninletprofileId=field_mapjson__"profileId"ProfileId.of_jsoninmake?maxResults?nextToken?profileId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the partnerships associated with your Amazon Web Services account for your current or specified region. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities."]moduleListCapabilitiesResponse=structtypenonrect={capabilities:CapabilityList.toption[@ocaml.doc"Returns one or more capabilities associated with this partnership."];nextToken:PageToken.toption[@ocaml.doc"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."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?capabilities=fun?nextToken->fun()->{capabilities;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("capabilities",(Option.mapx.capabilities~f:CapabilityList.to_value));("nextToken",(Option.mapx.nextToken~f:PageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inletcapabilities=(Option.map~f:CapabilityList.of_xml)(Xml.childxml_arg0"capabilities")inmake?nextToken?capabilities()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PageToken.of_jsoninletcapabilities=field_mapjson__"capabilities"CapabilityList.of_jsoninmake?nextToken?capabilities()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the capabilities associated with your Amazon Web Services account for your current or specified region. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs."]moduleListCapabilitiesRequest=structtypenonrect={nextToken:PageToken.toption[@ocaml.doc"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."];maxResults:MaxResults.toption[@ocaml.doc"Specifies the maximum number of capabilities to return."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:PageToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"nextToken"PageToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the capabilities associated with your Amazon Web Services account for your current or specified region. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs."]moduleGetTransformerResponse=structtypenonrect={transformerId:TransformerId.toption[@ocaml.doc"Returns the system-assigned unique identifier for the transformer."];transformerArn:ResourceArn.toption[@ocaml.doc"Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer."];name:TransformerName.toption[@ocaml.doc"Returns the name of the transformer, used to identify it."];status:TransformerStatus.toption[@ocaml.doc"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."];createdAt:CreatedDate.toption[@ocaml.doc"Returns a timestamp for creation date and time of the transformer."];modifiedAt:ModifiedDate.toption[@ocaml.doc"Returns a timestamp for last time the transformer was modified."];fileFormat:FileFormat.toption[@ocaml.doc"Returns that the currently supported file formats for EDI transformations are JSON and XML."];mappingTemplate:MappingTemplate.toption[@ocaml.doc"Returns the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT."];ediType:EdiType.toption[@ocaml.doc"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."];sampleDocument:FileLocation.toption[@ocaml.doc"Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data."];inputConversion:InputConversion.toption[@ocaml.doc"Returns the InputConversion object, which contains the format options for the inbound transformation."];mapping:Mapping.toption[@ocaml.doc"Returns the structure that contains the mapping template and its language (either XSLT or JSONATA)."];outputConversion:OutputConversion.toption[@ocaml.doc"Returns the OutputConversion object, which contains the format options for the outbound transformation."];sampleDocuments:SampleDocuments.toption[@ocaml.doc"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."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?transformerId=fun?transformerArn->fun?name->fun?status->fun?createdAt->fun?modifiedAt->fun?fileFormat->fun?mappingTemplate->fun?ediType->fun?sampleDocument->fun?inputConversion->fun?mapping->fun?outputConversion->fun?sampleDocuments->fun()->{transformerId;transformerArn;name;status;createdAt;modifiedAt;fileFormat;mappingTemplate;ediType;sampleDocument;inputConversion;mapping;outputConversion;sampleDocuments}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("transformerId",(Option.mapx.transformerId~f:TransformerId.to_value));("transformerArn",(Option.mapx.transformerArn~f:ResourceArn.to_value));("name",(Option.mapx.name~f:TransformerName.to_value));("status",(Option.mapx.status~f:TransformerStatus.to_value));("createdAt",(Option.mapx.createdAt~f:CreatedDate.to_value));("modifiedAt",(Option.mapx.modifiedAt~f:ModifiedDate.to_value));("fileFormat",(Option.mapx.fileFormat~f:FileFormat.to_value));("mappingTemplate",(Option.mapx.mappingTemplate~f:MappingTemplate.to_value));("ediType",(Option.mapx.ediType~f:EdiType.to_value));("sampleDocument",(Option.mapx.sampleDocument~f:FileLocation.to_value));("inputConversion",(Option.mapx.inputConversion~f:InputConversion.to_value));("mapping",(Option.mapx.mapping~f:Mapping.to_value));("outputConversion",(Option.mapx.outputConversion~f:OutputConversion.to_value));("sampleDocuments",(Option.mapx.sampleDocuments~f:SampleDocuments.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsampleDocuments=(Option.map~f:SampleDocuments.of_xml)(Xml.childxml_arg0"sampleDocuments")inletoutputConversion=(Option.map~f:OutputConversion.of_xml)(Xml.childxml_arg0"outputConversion")inletmapping=(Option.map~f:Mapping.of_xml)(Xml.childxml_arg0"mapping")inletinputConversion=(Option.map~f:InputConversion.of_xml)(Xml.childxml_arg0"inputConversion")inletsampleDocument=(Option.map~f:FileLocation.of_xml)(Xml.childxml_arg0"sampleDocument")inletediType=(Option.map~f:EdiType.of_xml)(Xml.childxml_arg0"ediType")inletmappingTemplate=(Option.map~f:MappingTemplate.of_xml)(Xml.childxml_arg0"mappingTemplate")inletfileFormat=(Option.map~f:FileFormat.of_xml)(Xml.childxml_arg0"fileFormat")inletmodifiedAt=(Option.map~f:ModifiedDate.of_xml)(Xml.childxml_arg0"modifiedAt")inletcreatedAt=(Option.map~f:CreatedDate.of_xml)(Xml.childxml_arg0"createdAt")inletstatus=(Option.map~f:TransformerStatus.of_xml)(Xml.childxml_arg0"status")inletname=(Option.map~f:TransformerName.of_xml)(Xml.childxml_arg0"name")inlettransformerArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"transformerArn")inlettransformerId=(Option.map~f:TransformerId.of_xml)(Xml.childxml_arg0"transformerId")inmake?sampleDocuments?outputConversion?mapping?inputConversion?sampleDocument?ediType?mappingTemplate?fileFormat?modifiedAt?createdAt?status?name?transformerArn?transformerId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsampleDocuments=field_mapjson__"sampleDocuments"SampleDocuments.of_jsoninletoutputConversion=field_mapjson__"outputConversion"OutputConversion.of_jsoninletmapping=field_mapjson__"mapping"Mapping.of_jsoninletinputConversion=field_mapjson__"inputConversion"InputConversion.of_jsoninletsampleDocument=field_mapjson__"sampleDocument"FileLocation.of_jsoninletediType=field_mapjson__"ediType"EdiType.of_jsoninletmappingTemplate=field_mapjson__"mappingTemplate"MappingTemplate.of_jsoninletfileFormat=field_mapjson__"fileFormat"FileFormat.of_jsoninletmodifiedAt=field_mapjson__"modifiedAt"ModifiedDate.of_jsoninletcreatedAt=field_mapjson__"createdAt"CreatedDate.of_jsoninletstatus=field_mapjson__"status"TransformerStatus.of_jsoninletname=field_mapjson__"name"TransformerName.of_jsoninlettransformerArn=field_mapjson__"transformerArn"ResourceArn.of_jsoninlettransformerId=field_mapjson__"transformerId"TransformerId.of_jsoninmake?sampleDocuments?outputConversion?mapping?inputConversion?sampleDocument?ediType?mappingTemplate?fileFormat?modifiedAt?createdAt?status?name?transformerArn?transformerId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the details for the transformer specified by the transformer ID. 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."]moduleGetTransformerRequest=structtypenonrect={transformerId:TransformerId.t[@ocaml.doc"Specifies the system-assigned unique identifier for the transformer."]}letcontext_="GetTransformerRequest"letmake~transformerId=fun()->{transformerId}letto_valuex=structure_to_value[("transformerId",(Some(TransformerId.to_valuex.transformerId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettransformerId=TransformerId.of_xml(Xml.child_exn~context:context_xml_arg0"transformerId")inmake~transformerId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettransformerId=field_map_exnjson__"transformerId"TransformerId.of_jsoninmake~transformerId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the details for the transformer specified by the transformer ID. 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."]moduleGetTransformerJobResponse=structtypenonrect={status:TransformerJobStatus.toption[@ocaml.doc"Returns the current state of the transformer job, either running, succeeded, or failed."];outputFiles:S3LocationList.toption[@ocaml.doc"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."];message:String_.toption[@ocaml.doc"Returns an optional error message, which gets populated when the job is not run successfully."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?status=fun?outputFiles->fun?message->fun()->{status;outputFiles;message}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("status",(Option.mapx.status~f:TransformerJobStatus.to_value));("outputFiles",(Option.mapx.outputFiles~f:S3LocationList.to_value));("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inletoutputFiles=(Option.map~f:S3LocationList.of_xml)(Xml.childxml_arg0"outputFiles")inletstatus=(Option.map~f:TransformerJobStatus.of_xml)(Xml.childxml_arg0"status")inmake?message?outputFiles?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninletoutputFiles=field_mapjson__"outputFiles"S3LocationList.of_jsoninletstatus=field_mapjson__"status"TransformerJobStatus.of_jsoninmake?message?outputFiles?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the details of the transformer run, based on the Transformer job ID. If 30 days have elapsed since your transformer job was started, the system deletes it. So, if you run GetTransformerJob and supply a transformerId and transformerJobId for a job that was started more than 30 days previously, you receive a 404 response."]moduleGetTransformerJobRequest=structtypenonrect={transformerJobId:TransformerJobId.t[@ocaml.doc"Specifies the unique, system-generated identifier for a transformer run."];transformerId:TransformerId.t[@ocaml.doc"Specifies the system-assigned unique identifier for the transformer."]}letcontext_="GetTransformerJobRequest"letmake~transformerJobId=fun~transformerId->fun()->{transformerJobId;transformerId}letto_valuex=structure_to_value[("transformerJobId",(Some(TransformerJobId.to_valuex.transformerJobId)));("transformerId",(Some(TransformerId.to_valuex.transformerId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettransformerId=TransformerId.of_xml(Xml.child_exn~context:context_xml_arg0"transformerId")inlettransformerJobId=TransformerJobId.of_xml(Xml.child_exn~context:context_xml_arg0"transformerJobId")inmake~transformerId~transformerJobId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettransformerId=field_map_exnjson__"transformerId"TransformerId.of_jsoninlettransformerJobId=field_map_exnjson__"transformerJobId"TransformerJobId.of_jsoninmake~transformerId~transformerJobId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the details of the transformer run, based on the Transformer job ID. If 30 days have elapsed since your transformer job was started, the system deletes it. So, if you run GetTransformerJob and supply a transformerId and transformerJobId for a job that was started more than 30 days previously, you receive a 404 response."]moduleGetProfileResponse=structtypenonrect={profileId:ProfileId.toption[@ocaml.doc"Returns the unique, system-generated identifier for the profile."];profileArn:ResourceArn.toption[@ocaml.doc"Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer."];name:ProfileName.toption[@ocaml.doc"Returns the name of the profile, used to identify it."];email:Email.toption[@ocaml.doc"Returns the email address associated with this customer profile."];phone:Phone.toption[@ocaml.doc"Returns the phone number associated with the profile."];businessName:BusinessName.toption[@ocaml.doc"Returns the name for the business associated with this profile."];logging:Logging.toption[@ocaml.doc"Returns whether or not logging is enabled for this profile."];logGroupName:LogGroupName.toption[@ocaml.doc"Returns the name of the logging group."];createdAt:CreatedDate.toption[@ocaml.doc"Returns a timestamp for creation date and time of the transformer."];modifiedAt:ModifiedDate.toption[@ocaml.doc"Returns a timestamp for last time the profile was modified."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?profileId=fun?profileArn->fun?name->fun?email->fun?phone->fun?businessName->fun?logging->fun?logGroupName->fun?createdAt->fun?modifiedAt->fun()->{profileId;profileArn;name;email;phone;businessName;logging;logGroupName;createdAt;modifiedAt}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("profileId",(Option.mapx.profileId~f:ProfileId.to_value));("profileArn",(Option.mapx.profileArn~f:ResourceArn.to_value));("name",(Option.mapx.name~f:ProfileName.to_value));("email",(Option.mapx.email~f:Email.to_value));("phone",(Option.mapx.phone~f:Phone.to_value));("businessName",(Option.mapx.businessName~f:BusinessName.to_value));("logging",(Option.mapx.logging~f:Logging.to_value));("logGroupName",(Option.mapx.logGroupName~f:LogGroupName.to_value));("createdAt",(Option.mapx.createdAt~f:CreatedDate.to_value));("modifiedAt",(Option.mapx.modifiedAt~f:ModifiedDate.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmodifiedAt=(Option.map~f:ModifiedDate.of_xml)(Xml.childxml_arg0"modifiedAt")inletcreatedAt=(Option.map~f:CreatedDate.of_xml)(Xml.childxml_arg0"createdAt")inletlogGroupName=(Option.map~f:LogGroupName.of_xml)(Xml.childxml_arg0"logGroupName")inletlogging=(Option.map~f:Logging.of_xml)(Xml.childxml_arg0"logging")inletbusinessName=(Option.map~f:BusinessName.of_xml)(Xml.childxml_arg0"businessName")inletphone=(Option.map~f:Phone.of_xml)(Xml.childxml_arg0"phone")inletemail=(Option.map~f:Email.of_xml)(Xml.childxml_arg0"email")inletname=(Option.map~f:ProfileName.of_xml)(Xml.childxml_arg0"name")inletprofileArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"profileArn")inletprofileId=(Option.map~f:ProfileId.of_xml)(Xml.childxml_arg0"profileId")inmake?modifiedAt?createdAt?logGroupName?logging?businessName?phone?email?name?profileArn?profileId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmodifiedAt=field_mapjson__"modifiedAt"ModifiedDate.of_jsoninletcreatedAt=field_mapjson__"createdAt"CreatedDate.of_jsoninletlogGroupName=field_mapjson__"logGroupName"LogGroupName.of_jsoninletlogging=field_mapjson__"logging"Logging.of_jsoninletbusinessName=field_mapjson__"businessName"BusinessName.of_jsoninletphone=field_mapjson__"phone"Phone.of_jsoninletemail=field_mapjson__"email"Email.of_jsoninletname=field_mapjson__"name"ProfileName.of_jsoninletprofileArn=field_mapjson__"profileArn"ResourceArn.of_jsoninletprofileId=field_mapjson__"profileId"ProfileId.of_jsoninmake?modifiedAt?createdAt?logGroupName?logging?businessName?phone?email?name?profileArn?profileId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the details for the profile specified by the profile ID. A profile is the mechanism used to create the concept of a private network."]moduleGetProfileRequest=structtypenonrect={profileId:ProfileId.t[@ocaml.doc"Specifies the unique, system-generated identifier for the profile."]}letcontext_="GetProfileRequest"letmake~profileId=fun()->{profileId}letto_valuex=structure_to_value[("profileId",(Some(ProfileId.to_valuex.profileId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprofileId=ProfileId.of_xml(Xml.child_exn~context:context_xml_arg0"profileId")inmake~profileId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprofileId=field_map_exnjson__"profileId"ProfileId.of_jsoninmake~profileId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the details for the profile specified by the profile ID. A profile is the mechanism used to create the concept of a private network."]moduleGetPartnershipResponse=structtypenonrect={profileId:ProfileId.toption[@ocaml.doc"Returns the unique, system-generated identifier for the profile connected to this partnership."];partnershipId:PartnershipId.toption[@ocaml.doc"Returns the unique, system-generated identifier for a partnership."];partnershipArn:ResourceArn.toption[@ocaml.doc"Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer."];name:PartnerName.toption[@ocaml.doc"Returns the display name of the partnership"];email:Email.toption[@ocaml.doc"Returns the email address associated with this trading partner."];phone:Phone.toption[@ocaml.doc"Returns the phone number associated with the partnership."];capabilities:PartnershipCapabilities.toption[@ocaml.doc"Returns one or more capabilities associated with this partnership."];capabilityOptions:CapabilityOptions.toption;tradingPartnerId:TradingPartnerId.toption[@ocaml.doc"Returns the unique identifier for the partner for this partnership."];createdAt:CreatedDate.toption[@ocaml.doc"Returns a timestamp for creation date and time of the partnership."];modifiedAt:ModifiedDate.toption[@ocaml.doc"Returns a timestamp that identifies the most recent date and time that the partnership was modified."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?profileId=fun?partnershipId->fun?partnershipArn->fun?name->fun?email->fun?phone->fun?capabilities->fun?capabilityOptions->fun?tradingPartnerId->fun?createdAt->fun?modifiedAt->fun()->{profileId;partnershipId;partnershipArn;name;email;phone;capabilities;capabilityOptions;tradingPartnerId;createdAt;modifiedAt}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("profileId",(Option.mapx.profileId~f:ProfileId.to_value));("partnershipId",(Option.mapx.partnershipId~f:PartnershipId.to_value));("partnershipArn",(Option.mapx.partnershipArn~f:ResourceArn.to_value));("name",(Option.mapx.name~f:PartnerName.to_value));("email",(Option.mapx.email~f:Email.to_value));("phone",(Option.mapx.phone~f:Phone.to_value));("capabilities",(Option.mapx.capabilities~f:PartnershipCapabilities.to_value));("capabilityOptions",(Option.mapx.capabilityOptions~f:CapabilityOptions.to_value));("tradingPartnerId",(Option.mapx.tradingPartnerId~f:TradingPartnerId.to_value));("createdAt",(Option.mapx.createdAt~f:CreatedDate.to_value));("modifiedAt",(Option.mapx.modifiedAt~f:ModifiedDate.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmodifiedAt=(Option.map~f:ModifiedDate.of_xml)(Xml.childxml_arg0"modifiedAt")inletcreatedAt=(Option.map~f:CreatedDate.of_xml)(Xml.childxml_arg0"createdAt")inlettradingPartnerId=(Option.map~f:TradingPartnerId.of_xml)(Xml.childxml_arg0"tradingPartnerId")inletcapabilityOptions=(Option.map~f:CapabilityOptions.of_xml)(Xml.childxml_arg0"capabilityOptions")inletcapabilities=(Option.map~f:PartnershipCapabilities.of_xml)(Xml.childxml_arg0"capabilities")inletphone=(Option.map~f:Phone.of_xml)(Xml.childxml_arg0"phone")inletemail=(Option.map~f:Email.of_xml)(Xml.childxml_arg0"email")inletname=(Option.map~f:PartnerName.of_xml)(Xml.childxml_arg0"name")inletpartnershipArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"partnershipArn")inletpartnershipId=(Option.map~f:PartnershipId.of_xml)(Xml.childxml_arg0"partnershipId")inletprofileId=(Option.map~f:ProfileId.of_xml)(Xml.childxml_arg0"profileId")inmake?modifiedAt?createdAt?tradingPartnerId?capabilityOptions?capabilities?phone?email?name?partnershipArn?partnershipId?profileId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmodifiedAt=field_mapjson__"modifiedAt"ModifiedDate.of_jsoninletcreatedAt=field_mapjson__"createdAt"CreatedDate.of_jsoninlettradingPartnerId=field_mapjson__"tradingPartnerId"TradingPartnerId.of_jsoninletcapabilityOptions=field_mapjson__"capabilityOptions"CapabilityOptions.of_jsoninletcapabilities=field_mapjson__"capabilities"PartnershipCapabilities.of_jsoninletphone=field_mapjson__"phone"Phone.of_jsoninletemail=field_mapjson__"email"Email.of_jsoninletname=field_mapjson__"name"PartnerName.of_jsoninletpartnershipArn=field_mapjson__"partnershipArn"ResourceArn.of_jsoninletpartnershipId=field_mapjson__"partnershipId"PartnershipId.of_jsoninletprofileId=field_mapjson__"profileId"ProfileId.of_jsoninmake?modifiedAt?createdAt?tradingPartnerId?capabilityOptions?capabilities?phone?email?name?partnershipArn?partnershipId?profileId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the details for a partnership, based on the partner and profile IDs specified. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities."]moduleGetPartnershipRequest=structtypenonrect={partnershipId:PartnershipId.t[@ocaml.doc"Specifies the unique, system-generated identifier for a partnership."]}letcontext_="GetPartnershipRequest"letmake~partnershipId=fun()->{partnershipId}letto_valuex=structure_to_value[("partnershipId",(Some(PartnershipId.to_valuex.partnershipId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpartnershipId=PartnershipId.of_xml(Xml.child_exn~context:context_xml_arg0"partnershipId")inmake~partnershipId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpartnershipId=field_map_exnjson__"partnershipId"PartnershipId.of_jsoninmake~partnershipId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the details for a partnership, based on the partner and profile IDs specified. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities."]moduleGetCapabilityResponse=structtypenonrect={capabilityId:CapabilityId.toption[@ocaml.doc"Returns a system-assigned unique identifier for the capability."];capabilityArn:ResourceArn.toption[@ocaml.doc"Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer."];name:CapabilityName.toption[@ocaml.doc"Returns the name of the capability, used to identify it."];type_:CapabilityType.toption[@ocaml.doc"Returns the type of the capability. Currently, only edi is supported."];configuration:CapabilityConfiguration.toption[@ocaml.doc"Returns a structure that contains the details for a capability."];instructionsDocuments:InstructionsDocuments.toption[@ocaml.doc"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."];createdAt:CreatedDate.toption[@ocaml.doc"Returns a timestamp for creation date and time of the capability."];modifiedAt:ModifiedDate.toption[@ocaml.doc"Returns a timestamp for last time the capability was modified."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?capabilityId=fun?capabilityArn->fun?name->fun?type_->fun?configuration->fun?instructionsDocuments->fun?createdAt->fun?modifiedAt->fun()->{capabilityId;capabilityArn;name;type_;configuration;instructionsDocuments;createdAt;modifiedAt}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("capabilityId",(Option.mapx.capabilityId~f:CapabilityId.to_value));("capabilityArn",(Option.mapx.capabilityArn~f:ResourceArn.to_value));("name",(Option.mapx.name~f:CapabilityName.to_value));("type",(Option.mapx.type_~f:CapabilityType.to_value));("configuration",(Option.mapx.configuration~f:CapabilityConfiguration.to_value));("instructionsDocuments",(Option.mapx.instructionsDocuments~f:InstructionsDocuments.to_value));("createdAt",(Option.mapx.createdAt~f:CreatedDate.to_value));("modifiedAt",(Option.mapx.modifiedAt~f:ModifiedDate.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmodifiedAt=(Option.map~f:ModifiedDate.of_xml)(Xml.childxml_arg0"modifiedAt")inletcreatedAt=(Option.map~f:CreatedDate.of_xml)(Xml.childxml_arg0"createdAt")inletinstructionsDocuments=(Option.map~f:InstructionsDocuments.of_xml)(Xml.childxml_arg0"instructionsDocuments")inletconfiguration=(Option.map~f:CapabilityConfiguration.of_xml)(Xml.childxml_arg0"configuration")inlettype_=(Option.map~f:CapabilityType.of_xml)(Xml.childxml_arg0"type")inletname=(Option.map~f:CapabilityName.of_xml)(Xml.childxml_arg0"name")inletcapabilityArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"capabilityArn")inletcapabilityId=(Option.map~f:CapabilityId.of_xml)(Xml.childxml_arg0"capabilityId")inmake?modifiedAt?createdAt?instructionsDocuments?configuration?type_?name?capabilityArn?capabilityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmodifiedAt=field_mapjson__"modifiedAt"ModifiedDate.of_jsoninletcreatedAt=field_mapjson__"createdAt"CreatedDate.of_jsoninletinstructionsDocuments=field_mapjson__"instructionsDocuments"InstructionsDocuments.of_jsoninletconfiguration=field_mapjson__"configuration"CapabilityConfiguration.of_jsoninlettype_=field_mapjson__"type"CapabilityType.of_jsoninletname=field_mapjson__"name"CapabilityName.of_jsoninletcapabilityArn=field_mapjson__"capabilityArn"ResourceArn.of_jsoninletcapabilityId=field_mapjson__"capabilityId"CapabilityId.of_jsoninmake?modifiedAt?createdAt?instructionsDocuments?configuration?type_?name?capabilityArn?capabilityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the details for the specified capability. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs."]moduleGetCapabilityRequest=structtypenonrect={capabilityId:CapabilityId.t[@ocaml.doc"Specifies a system-assigned unique identifier for the capability."]}letcontext_="GetCapabilityRequest"letmake~capabilityId=fun()->{capabilityId}letto_valuex=structure_to_value[("capabilityId",(Some(CapabilityId.to_valuex.capabilityId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcapabilityId=CapabilityId.of_xml(Xml.child_exn~context:context_xml_arg0"capabilityId")inmake~capabilityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcapabilityId=field_map_exnjson__"capabilityId"CapabilityId.of_jsoninmake~capabilityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the details for the specified capability. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs."]moduleGenerateMappingResponse=structtypenonrect={mappingTemplate:String_.toption[@ocaml.doc"Returns a mapping template based on your inputs."];mappingAccuracy:GenerateMappingResponseMappingAccuracyFloat.toption[@ocaml.doc"Returns a percentage that estimates the accuracy of the generated mapping."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?mappingTemplate=fun?mappingAccuracy->fun()->{mappingTemplate;mappingAccuracy}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("mappingTemplate",(Option.mapx.mappingTemplate~f:String_.to_value));("mappingAccuracy",(Option.mapx.mappingAccuracy~f:GenerateMappingResponseMappingAccuracyFloat.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmappingAccuracy=(Option.map~f:GenerateMappingResponseMappingAccuracyFloat.of_xml)(Xml.childxml_arg0"mappingAccuracy")inletmappingTemplate=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"mappingTemplate")inmake?mappingAccuracy?mappingTemplate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmappingAccuracy=field_mapjson__"mappingAccuracy"GenerateMappingResponseMappingAccuracyFloat.of_jsoninletmappingTemplate=field_mapjson__"mappingTemplate"String_.of_jsoninmake?mappingAccuracy?mappingTemplate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Takes sample input and output documents and uses Amazon Bedrock to generate a mapping automatically. Depending on the accuracy and other factors, you can then edit the mapping for your needs. Before you can use the AI-assisted feature for Amazon Web Services B2B Data Interchange you must enable models in Amazon Bedrock. For details, see AI-assisted template mapping prerequisites in the Amazon Web Services B2B Data Interchange User guide. To generate a mapping, perform the following steps: Start with an X12 EDI document to use as the input. Call TestMapping using your EDI document. Use the output from the TestMapping operation as either input or output for your GenerateMapping call, along with your sample file."]moduleGenerateMappingRequest=structtypenonrect={inputFileContent:GenerateMappingInputFileContent.t[@ocaml.doc"Provide the contents of a sample X12 EDI file, either in JSON or XML format, to use as a starting point for the mapping."];outputFileContent:GenerateMappingOutputFileContent.t[@ocaml.doc"Provide the contents of a sample X12 EDI file, either in JSON or XML format, to use as a target for the mapping."];mappingType:MappingType.t[@ocaml.doc"Specify the mapping type: either JSONATA or XSLT."]}letcontext_="GenerateMappingRequest"letmake~inputFileContent=fun~outputFileContent->fun~mappingType->fun()->{inputFileContent;outputFileContent;mappingType}letto_valuex=structure_to_value[("inputFileContent",(Some(GenerateMappingInputFileContent.to_valuex.inputFileContent)));("outputFileContent",(Some(GenerateMappingOutputFileContent.to_valuex.outputFileContent)));("mappingType",(Some(MappingType.to_valuex.mappingType)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmappingType=MappingType.of_xml(Xml.child_exn~context:context_xml_arg0"mappingType")inletoutputFileContent=GenerateMappingOutputFileContent.of_xml(Xml.child_exn~context:context_xml_arg0"outputFileContent")inletinputFileContent=GenerateMappingInputFileContent.of_xml(Xml.child_exn~context:context_xml_arg0"inputFileContent")inmake~mappingType~outputFileContent~inputFileContent()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmappingType=field_map_exnjson__"mappingType"MappingType.of_jsoninletoutputFileContent=field_map_exnjson__"outputFileContent"GenerateMappingOutputFileContent.of_jsoninletinputFileContent=field_map_exnjson__"inputFileContent"GenerateMappingInputFileContent.of_jsoninmake~mappingType~outputFileContent~inputFileContent()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Takes sample input and output documents and uses Amazon Bedrock to generate a mapping automatically. Depending on the accuracy and other factors, you can then edit the mapping for your needs. Before you can use the AI-assisted feature for Amazon Web Services B2B Data Interchange you must enable models in Amazon Bedrock. For details, see AI-assisted template mapping prerequisites in the Amazon Web Services B2B Data Interchange User guide. To generate a mapping, perform the following steps: Start with an X12 EDI document to use as the input. Call TestMapping using your EDI document. Use the output from the TestMapping operation as either input or output for your GenerateMapping call, along with your sample file."]moduleDeleteTransformerRequest=structtypenonrect={transformerId:TransformerId.t[@ocaml.doc"Specifies the system-assigned unique identifier for the transformer."]}letcontext_="DeleteTransformerRequest"letmake~transformerId=fun()->{transformerId}letto_valuex=structure_to_value[("transformerId",(Some(TransformerId.to_valuex.transformerId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettransformerId=TransformerId.of_xml(Xml.child_exn~context:context_xml_arg0"transformerId")inmake~transformerId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettransformerId=field_map_exnjson__"transformerId"TransformerId.of_jsoninmake~transformerId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified transformer. 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."]moduleDeleteProfileRequest=structtypenonrect={profileId:ProfileId.t[@ocaml.doc"Specifies the unique, system-generated identifier for the profile."]}letcontext_="DeleteProfileRequest"letmake~profileId=fun()->{profileId}letto_valuex=structure_to_value[("profileId",(Some(ProfileId.to_valuex.profileId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprofileId=ProfileId.of_xml(Xml.child_exn~context:context_xml_arg0"profileId")inmake~profileId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprofileId=field_map_exnjson__"profileId"ProfileId.of_jsoninmake~profileId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified profile. A profile is the mechanism used to create the concept of a private network."]moduleDeletePartnershipRequest=structtypenonrect={partnershipId:PartnershipId.t[@ocaml.doc"Specifies the unique, system-generated identifier for a partnership."]}letcontext_="DeletePartnershipRequest"letmake~partnershipId=fun()->{partnershipId}letto_valuex=structure_to_value[("partnershipId",(Some(PartnershipId.to_valuex.partnershipId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpartnershipId=PartnershipId.of_xml(Xml.child_exn~context:context_xml_arg0"partnershipId")inmake~partnershipId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpartnershipId=field_map_exnjson__"partnershipId"PartnershipId.of_jsoninmake~partnershipId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified partnership. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities."]moduleDeleteCapabilityRequest=structtypenonrect={capabilityId:CapabilityId.t[@ocaml.doc"Specifies a system-assigned unique identifier for the capability."]}letcontext_="DeleteCapabilityRequest"letmake~capabilityId=fun()->{capabilityId}letto_valuex=structure_to_value[("capabilityId",(Some(CapabilityId.to_valuex.capabilityId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcapabilityId=CapabilityId.of_xml(Xml.child_exn~context:context_xml_arg0"capabilityId")inmake~capabilityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcapabilityId=field_map_exnjson__"capabilityId"CapabilityId.of_jsoninmake~capabilityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified capability. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs."]moduleCreateTransformerResponse=structtypenonrect={transformerId:TransformerId.toption[@ocaml.doc"Returns the system-assigned unique identifier for the transformer."];transformerArn:ResourceArn.toption[@ocaml.doc"Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer."];name:TransformerName.toption[@ocaml.doc"Returns the name of the transformer, used to identify it."];status:TransformerStatus.toption[@ocaml.doc"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."];createdAt:CreatedDate.toption[@ocaml.doc"Returns a timestamp for creation date and time of the transformer."];fileFormat:FileFormat.toption[@ocaml.doc"Returns that the currently supported file formats for EDI transformations are JSON and XML."];mappingTemplate:MappingTemplate.toption[@ocaml.doc"Returns the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT."];ediType:EdiType.toption[@ocaml.doc"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."];sampleDocument:FileLocation.toption[@ocaml.doc"Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data."];inputConversion:InputConversion.toption[@ocaml.doc"Returns the InputConversion object, which contains the format options for the inbound transformation."];mapping:Mapping.toption[@ocaml.doc"Returns the structure that contains the mapping template and its language (either XSLT or JSONATA)."];outputConversion:OutputConversion.toption[@ocaml.doc"Returns the OutputConversion object, which contains the format options for the outbound transformation."];sampleDocuments:SampleDocuments.toption[@ocaml.doc"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."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?transformerId=fun?transformerArn->fun?name->fun?status->fun?createdAt->fun?fileFormat->fun?mappingTemplate->fun?ediType->fun?sampleDocument->fun?inputConversion->fun?mapping->fun?outputConversion->fun?sampleDocuments->fun()->{transformerId;transformerArn;name;status;createdAt;fileFormat;mappingTemplate;ediType;sampleDocument;inputConversion;mapping;outputConversion;sampleDocuments}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("transformerId",(Option.mapx.transformerId~f:TransformerId.to_value));("transformerArn",(Option.mapx.transformerArn~f:ResourceArn.to_value));("name",(Option.mapx.name~f:TransformerName.to_value));("status",(Option.mapx.status~f:TransformerStatus.to_value));("createdAt",(Option.mapx.createdAt~f:CreatedDate.to_value));("fileFormat",(Option.mapx.fileFormat~f:FileFormat.to_value));("mappingTemplate",(Option.mapx.mappingTemplate~f:MappingTemplate.to_value));("ediType",(Option.mapx.ediType~f:EdiType.to_value));("sampleDocument",(Option.mapx.sampleDocument~f:FileLocation.to_value));("inputConversion",(Option.mapx.inputConversion~f:InputConversion.to_value));("mapping",(Option.mapx.mapping~f:Mapping.to_value));("outputConversion",(Option.mapx.outputConversion~f:OutputConversion.to_value));("sampleDocuments",(Option.mapx.sampleDocuments~f:SampleDocuments.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsampleDocuments=(Option.map~f:SampleDocuments.of_xml)(Xml.childxml_arg0"sampleDocuments")inletoutputConversion=(Option.map~f:OutputConversion.of_xml)(Xml.childxml_arg0"outputConversion")inletmapping=(Option.map~f:Mapping.of_xml)(Xml.childxml_arg0"mapping")inletinputConversion=(Option.map~f:InputConversion.of_xml)(Xml.childxml_arg0"inputConversion")inletsampleDocument=(Option.map~f:FileLocation.of_xml)(Xml.childxml_arg0"sampleDocument")inletediType=(Option.map~f:EdiType.of_xml)(Xml.childxml_arg0"ediType")inletmappingTemplate=(Option.map~f:MappingTemplate.of_xml)(Xml.childxml_arg0"mappingTemplate")inletfileFormat=(Option.map~f:FileFormat.of_xml)(Xml.childxml_arg0"fileFormat")inletcreatedAt=(Option.map~f:CreatedDate.of_xml)(Xml.childxml_arg0"createdAt")inletstatus=(Option.map~f:TransformerStatus.of_xml)(Xml.childxml_arg0"status")inletname=(Option.map~f:TransformerName.of_xml)(Xml.childxml_arg0"name")inlettransformerArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"transformerArn")inlettransformerId=(Option.map~f:TransformerId.of_xml)(Xml.childxml_arg0"transformerId")inmake?sampleDocuments?outputConversion?mapping?inputConversion?sampleDocument?ediType?mappingTemplate?fileFormat?createdAt?status?name?transformerArn?transformerId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsampleDocuments=field_mapjson__"sampleDocuments"SampleDocuments.of_jsoninletoutputConversion=field_mapjson__"outputConversion"OutputConversion.of_jsoninletmapping=field_mapjson__"mapping"Mapping.of_jsoninletinputConversion=field_mapjson__"inputConversion"InputConversion.of_jsoninletsampleDocument=field_mapjson__"sampleDocument"FileLocation.of_jsoninletediType=field_mapjson__"ediType"EdiType.of_jsoninletmappingTemplate=field_mapjson__"mappingTemplate"MappingTemplate.of_jsoninletfileFormat=field_mapjson__"fileFormat"FileFormat.of_jsoninletcreatedAt=field_mapjson__"createdAt"CreatedDate.of_jsoninletstatus=field_mapjson__"status"TransformerStatus.of_jsoninletname=field_mapjson__"name"TransformerName.of_jsoninlettransformerArn=field_mapjson__"transformerArn"ResourceArn.of_jsoninlettransformerId=field_mapjson__"transformerId"TransformerId.of_jsoninmake?sampleDocuments?outputConversion?mapping?inputConversion?sampleDocument?ediType?mappingTemplate?fileFormat?createdAt?status?name?transformerArn?transformerId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a transformer. Amazon Web Services B2B Data Interchange currently supports two scenarios: Inbound EDI: the Amazon Web Services customer receives an EDI file from their trading partner. Amazon Web Services B2B Data Interchange converts this EDI file into a JSON or XML file with a service-defined structure. A mapping template provided by the customer, in JSONata or XSLT format, is optionally applied to this file to produce a JSON or XML file with the structure the customer requires. Outbound EDI: the Amazon Web Services customer has a JSON or XML file containing data that they wish to use in an EDI file. A mapping template, provided by the customer (in either JSONata or XSLT format) is applied to this file to generate a JSON or XML file in the service-defined structure. This file is then converted to an EDI file. The following fields are provided for backwards compatibility only: fileFormat, mappingTemplate, ediType, and sampleDocument. Use the mapping data type in place of mappingTemplate and fileFormat Use the sampleDocuments data type in place of sampleDocument Use either the inputConversion or outputConversion in place of ediType"]moduleCreateTransformerRequest=structtypenonrect={name:TransformerName.t[@ocaml.doc"Specifies the name of the transformer, used to identify it."];clientToken:String_.toption[@ocaml.doc"Reserved for future use."];tags:TagList.toption[@ocaml.doc"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."];fileFormat:FileFormat.toption[@ocaml.doc"Specifies that the currently supported file formats for EDI transformations are JSON and XML."];mappingTemplate:MappingTemplate.toption[@ocaml.doc"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."];ediType:EdiType.toption[@ocaml.doc"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."];sampleDocument:FileLocation.toption[@ocaml.doc"Specifies a sample EDI document that is used by a transformer as a guide for processing the EDI data."];inputConversion:InputConversion.toption[@ocaml.doc"Specify the InputConversion object, which contains the format options for the inbound transformation."];mapping:Mapping.toption[@ocaml.doc"Specify the structure that contains the mapping template and its language (either XSLT or JSONATA)."];outputConversion:OutputConversion.toption[@ocaml.doc"A structure that contains the OutputConversion object, which contains the format options for the outbound transformation."];sampleDocuments:SampleDocuments.toption[@ocaml.doc"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."]}letcontext_="CreateTransformerRequest"letmake?clientToken=fun?tags->fun?fileFormat->fun?mappingTemplate->fun?ediType->fun?sampleDocument->fun?inputConversion->fun?mapping->fun?outputConversion->fun?sampleDocuments->fun~name->fun()->{clientToken;tags;fileFormat;mappingTemplate;ediType;sampleDocument;inputConversion;mapping;outputConversion;sampleDocuments;name}letto_valuex=structure_to_value[("name",(Some(TransformerName.to_valuex.name)));("clientToken",(Option.mapx.clientToken~f:String_.to_value));("tags",(Option.mapx.tags~f:TagList.to_value));("fileFormat",(Option.mapx.fileFormat~f:FileFormat.to_value));("mappingTemplate",(Option.mapx.mappingTemplate~f:MappingTemplate.to_value));("ediType",(Option.mapx.ediType~f:EdiType.to_value));("sampleDocument",(Option.mapx.sampleDocument~f:FileLocation.to_value));("inputConversion",(Option.mapx.inputConversion~f:InputConversion.to_value));("mapping",(Option.mapx.mapping~f:Mapping.to_value));("outputConversion",(Option.mapx.outputConversion~f:OutputConversion.to_value));("sampleDocuments",(Option.mapx.sampleDocuments~f:SampleDocuments.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsampleDocuments=(Option.map~f:SampleDocuments.of_xml)(Xml.childxml_arg0"sampleDocuments")inletoutputConversion=(Option.map~f:OutputConversion.of_xml)(Xml.childxml_arg0"outputConversion")inletmapping=(Option.map~f:Mapping.of_xml)(Xml.childxml_arg0"mapping")inletinputConversion=(Option.map~f:InputConversion.of_xml)(Xml.childxml_arg0"inputConversion")inletsampleDocument=(Option.map~f:FileLocation.of_xml)(Xml.childxml_arg0"sampleDocument")inletediType=(Option.map~f:EdiType.of_xml)(Xml.childxml_arg0"ediType")inletmappingTemplate=(Option.map~f:MappingTemplate.of_xml)(Xml.childxml_arg0"mappingTemplate")inletfileFormat=(Option.map~f:FileFormat.of_xml)(Xml.childxml_arg0"fileFormat")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"tags")inletclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inletname=TransformerName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake?sampleDocuments?outputConversion?mapping?inputConversion?sampleDocument?ediType?mappingTemplate?fileFormat?tags?clientToken~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsampleDocuments=field_mapjson__"sampleDocuments"SampleDocuments.of_jsoninletoutputConversion=field_mapjson__"outputConversion"OutputConversion.of_jsoninletmapping=field_mapjson__"mapping"Mapping.of_jsoninletinputConversion=field_mapjson__"inputConversion"InputConversion.of_jsoninletsampleDocument=field_mapjson__"sampleDocument"FileLocation.of_jsoninletediType=field_mapjson__"ediType"EdiType.of_jsoninletmappingTemplate=field_mapjson__"mappingTemplate"MappingTemplate.of_jsoninletfileFormat=field_mapjson__"fileFormat"FileFormat.of_jsoninlettags=field_mapjson__"tags"TagList.of_jsoninletclientToken=field_mapjson__"clientToken"String_.of_jsoninletname=field_map_exnjson__"name"TransformerName.of_jsoninmake?sampleDocuments?outputConversion?mapping?inputConversion?sampleDocument?ediType?mappingTemplate?fileFormat?tags?clientToken~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a transformer. Amazon Web Services B2B Data Interchange currently supports two scenarios: Inbound EDI: the Amazon Web Services customer receives an EDI file from their trading partner. Amazon Web Services B2B Data Interchange converts this EDI file into a JSON or XML file with a service-defined structure. A mapping template provided by the customer, in JSONata or XSLT format, is optionally applied to this file to produce a JSON or XML file with the structure the customer requires. Outbound EDI: the Amazon Web Services customer has a JSON or XML file containing data that they wish to use in an EDI file. A mapping template, provided by the customer (in either JSONata or XSLT format) is applied to this file to generate a JSON or XML file in the service-defined structure. This file is then converted to an EDI file. The following fields are provided for backwards compatibility only: fileFormat, mappingTemplate, ediType, and sampleDocument. Use the mapping data type in place of mappingTemplate and fileFormat Use the sampleDocuments data type in place of sampleDocument Use either the inputConversion or outputConversion in place of ediType"]moduleCreateStarterMappingTemplateResponse=structtypenonrect={mappingTemplate:String_.toption[@ocaml.doc"Returns a string that represents the mapping template."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?mappingTemplate=fun()->{mappingTemplate}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("mappingTemplate",(Option.mapx.mappingTemplate~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmappingTemplate=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"mappingTemplate")inmake?mappingTemplate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmappingTemplate=field_mapjson__"mappingTemplate"String_.of_jsoninmake?mappingTemplate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Amazon Web Services B2B Data Interchange uses a mapping template in JSONata or XSLT format to transform a customer input file into a JSON or XML file that can be converted to EDI. If you provide a sample EDI file with the same structure as the EDI files that you wish to generate, then the service can generate a mapping template. The starter template contains placeholder values which you can replace with JSONata or XSLT expressions to take data from your input file and insert it into the JSON or XML file that is used to generate the EDI. If you do not provide a sample EDI file, then the service can generate a mapping template based on the EDI settings in the templateDetails parameter. Currently, we only support generating a template that can generate the input to produce an Outbound X12 EDI file."]moduleCreateStarterMappingTemplateRequest=structtypenonrect={outputSampleLocation:S3Location.toption[@ocaml.doc"Specify the location of the sample EDI file that is used to generate the mapping template."];mappingType:MappingType.t[@ocaml.doc"Specify the format for the mapping template: either JSONATA or XSLT."];templateDetails:TemplateDetails.t[@ocaml.doc"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."]}letcontext_="CreateStarterMappingTemplateRequest"letmake?outputSampleLocation=fun~mappingType->fun~templateDetails->fun()->{outputSampleLocation;mappingType;templateDetails}letto_valuex=structure_to_value[("outputSampleLocation",(Option.mapx.outputSampleLocation~f:S3Location.to_value));("mappingType",(Some(MappingType.to_valuex.mappingType)));("templateDetails",(Some(TemplateDetails.to_valuex.templateDetails)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettemplateDetails=TemplateDetails.of_xml(Xml.child_exn~context:context_xml_arg0"templateDetails")inletmappingType=MappingType.of_xml(Xml.child_exn~context:context_xml_arg0"mappingType")inletoutputSampleLocation=(Option.map~f:S3Location.of_xml)(Xml.childxml_arg0"outputSampleLocation")inmake~templateDetails~mappingType?outputSampleLocation()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettemplateDetails=field_map_exnjson__"templateDetails"TemplateDetails.of_jsoninletmappingType=field_map_exnjson__"mappingType"MappingType.of_jsoninletoutputSampleLocation=field_mapjson__"outputSampleLocation"S3Location.of_jsoninmake~templateDetails~mappingType?outputSampleLocation()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Amazon Web Services B2B Data Interchange uses a mapping template in JSONata or XSLT format to transform a customer input file into a JSON or XML file that can be converted to EDI. If you provide a sample EDI file with the same structure as the EDI files that you wish to generate, then the service can generate a mapping template. The starter template contains placeholder values which you can replace with JSONata or XSLT expressions to take data from your input file and insert it into the JSON or XML file that is used to generate the EDI. If you do not provide a sample EDI file, then the service can generate a mapping template based on the EDI settings in the templateDetails parameter. Currently, we only support generating a template that can generate the input to produce an Outbound X12 EDI file."]moduleCreateProfileResponse=structtypenonrect={profileId:ProfileId.toption[@ocaml.doc"Returns the unique, system-generated identifier for the profile."];profileArn:ResourceArn.toption[@ocaml.doc"Returns an Amazon Resource Name (ARN) for the profile."];name:ProfileName.toption[@ocaml.doc"Returns the name of the profile, used to identify it."];businessName:BusinessName.toption[@ocaml.doc"Returns the name for the business associated with this profile."];phone:Phone.toption[@ocaml.doc"Returns the phone number associated with the profile."];email:Email.toption[@ocaml.doc"Returns the email address associated with this customer profile."];logging:Logging.toption[@ocaml.doc"Returns whether or not logging is turned on for this profile."];logGroupName:LogGroupName.toption[@ocaml.doc"Returns the name of the logging group."];createdAt:CreatedDate.toption[@ocaml.doc"Returns a timestamp representing the time the profile was created."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?profileId=fun?profileArn->fun?name->fun?businessName->fun?phone->fun?email->fun?logging->fun?logGroupName->fun?createdAt->fun()->{profileId;profileArn;name;businessName;phone;email;logging;logGroupName;createdAt}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("profileId",(Option.mapx.profileId~f:ProfileId.to_value));("profileArn",(Option.mapx.profileArn~f:ResourceArn.to_value));("name",(Option.mapx.name~f:ProfileName.to_value));("businessName",(Option.mapx.businessName~f:BusinessName.to_value));("phone",(Option.mapx.phone~f:Phone.to_value));("email",(Option.mapx.email~f:Email.to_value));("logging",(Option.mapx.logging~f:Logging.to_value));("logGroupName",(Option.mapx.logGroupName~f:LogGroupName.to_value));("createdAt",(Option.mapx.createdAt~f:CreatedDate.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreatedAt=(Option.map~f:CreatedDate.of_xml)(Xml.childxml_arg0"createdAt")inletlogGroupName=(Option.map~f:LogGroupName.of_xml)(Xml.childxml_arg0"logGroupName")inletlogging=(Option.map~f:Logging.of_xml)(Xml.childxml_arg0"logging")inletemail=(Option.map~f:Email.of_xml)(Xml.childxml_arg0"email")inletphone=(Option.map~f:Phone.of_xml)(Xml.childxml_arg0"phone")inletbusinessName=(Option.map~f:BusinessName.of_xml)(Xml.childxml_arg0"businessName")inletname=(Option.map~f:ProfileName.of_xml)(Xml.childxml_arg0"name")inletprofileArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"profileArn")inletprofileId=(Option.map~f:ProfileId.of_xml)(Xml.childxml_arg0"profileId")inmake?createdAt?logGroupName?logging?email?phone?businessName?name?profileArn?profileId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreatedAt=field_mapjson__"createdAt"CreatedDate.of_jsoninletlogGroupName=field_mapjson__"logGroupName"LogGroupName.of_jsoninletlogging=field_mapjson__"logging"Logging.of_jsoninletemail=field_mapjson__"email"Email.of_jsoninletphone=field_mapjson__"phone"Phone.of_jsoninletbusinessName=field_mapjson__"businessName"BusinessName.of_jsoninletname=field_mapjson__"name"ProfileName.of_jsoninletprofileArn=field_mapjson__"profileArn"ResourceArn.of_jsoninletprofileId=field_mapjson__"profileId"ProfileId.of_jsoninmake?createdAt?logGroupName?logging?email?phone?businessName?name?profileArn?profileId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a customer profile. You can have up to five customer profiles, each representing a distinct private network. A profile is the mechanism used to create the concept of a private network."]moduleCreateProfileRequest=structtypenonrect={name:ProfileName.t[@ocaml.doc"Specifies the name of the profile."];email:Email.toption[@ocaml.doc"Specifies the email address associated with this customer profile."];phone:Phone.t[@ocaml.doc"Specifies the phone number associated with the profile."];businessName:BusinessName.t[@ocaml.doc"Specifies the name for the business associated with this profile."];logging:Logging.t[@ocaml.doc"Specifies whether or not logging is enabled for this profile."];clientToken:String_.toption[@ocaml.doc"Reserved for future use."];tags:TagList.toption[@ocaml.doc"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."]}letcontext_="CreateProfileRequest"letmake?email=fun?clientToken->fun?tags->fun~name->fun~phone->fun~businessName->fun~logging->fun()->{email;clientToken;tags;name;phone;businessName;logging}letto_valuex=structure_to_value[("name",(Some(ProfileName.to_valuex.name)));("email",(Option.mapx.email~f:Email.to_value));("phone",(Some(Phone.to_valuex.phone)));("businessName",(Some(BusinessName.to_valuex.businessName)));("logging",(Some(Logging.to_valuex.logging)));("clientToken",(Option.mapx.clientToken~f:String_.to_value));("tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"tags")inletclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inletlogging=Logging.of_xml(Xml.child_exn~context:context_xml_arg0"logging")inletbusinessName=BusinessName.of_xml(Xml.child_exn~context:context_xml_arg0"businessName")inletphone=Phone.of_xml(Xml.child_exn~context:context_xml_arg0"phone")inletemail=(Option.map~f:Email.of_xml)(Xml.childxml_arg0"email")inletname=ProfileName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake?tags?clientToken~logging~businessName~phone?email~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagList.of_jsoninletclientToken=field_mapjson__"clientToken"String_.of_jsoninletlogging=field_map_exnjson__"logging"Logging.of_jsoninletbusinessName=field_map_exnjson__"businessName"BusinessName.of_jsoninletphone=field_map_exnjson__"phone"Phone.of_jsoninletemail=field_mapjson__"email"Email.of_jsoninletname=field_map_exnjson__"name"ProfileName.of_jsoninmake?tags?clientToken~logging~businessName~phone?email~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a customer profile. You can have up to five customer profiles, each representing a distinct private network. A profile is the mechanism used to create the concept of a private network."]moduleCreatePartnershipResponse=structtypenonrect={profileId:ProfileId.toption[@ocaml.doc"Returns the unique, system-generated identifier for the profile connected to this partnership."];partnershipId:PartnershipId.toption[@ocaml.doc"Returns the unique, system-generated identifier for a partnership."];partnershipArn:ResourceArn.toption[@ocaml.doc"Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer."];name:PartnerName.toption[@ocaml.doc"Returns a descriptive name for the partnership."];email:Email.toption[@ocaml.doc"Returns the email address associated with this trading partner."];phone:Phone.toption[@ocaml.doc"Returns the phone number associated with the partnership."];capabilities:PartnershipCapabilities.toption[@ocaml.doc"Returns one or more capabilities associated with this partnership."];capabilityOptions:CapabilityOptions.toption[@ocaml.doc"Returns the structure that contains the details for the associated capabilities."];tradingPartnerId:TradingPartnerId.toption[@ocaml.doc"Returns the unique, system-generated identifier for a trading partner."];createdAt:CreatedDate.toption[@ocaml.doc"Returns a timestamp for creation date and time of the partnership."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?profileId=fun?partnershipId->fun?partnershipArn->fun?name->fun?email->fun?phone->fun?capabilities->fun?capabilityOptions->fun?tradingPartnerId->fun?createdAt->fun()->{profileId;partnershipId;partnershipArn;name;email;phone;capabilities;capabilityOptions;tradingPartnerId;createdAt}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("profileId",(Option.mapx.profileId~f:ProfileId.to_value));("partnershipId",(Option.mapx.partnershipId~f:PartnershipId.to_value));("partnershipArn",(Option.mapx.partnershipArn~f:ResourceArn.to_value));("name",(Option.mapx.name~f:PartnerName.to_value));("email",(Option.mapx.email~f:Email.to_value));("phone",(Option.mapx.phone~f:Phone.to_value));("capabilities",(Option.mapx.capabilities~f:PartnershipCapabilities.to_value));("capabilityOptions",(Option.mapx.capabilityOptions~f:CapabilityOptions.to_value));("tradingPartnerId",(Option.mapx.tradingPartnerId~f:TradingPartnerId.to_value));("createdAt",(Option.mapx.createdAt~f:CreatedDate.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreatedAt=(Option.map~f:CreatedDate.of_xml)(Xml.childxml_arg0"createdAt")inlettradingPartnerId=(Option.map~f:TradingPartnerId.of_xml)(Xml.childxml_arg0"tradingPartnerId")inletcapabilityOptions=(Option.map~f:CapabilityOptions.of_xml)(Xml.childxml_arg0"capabilityOptions")inletcapabilities=(Option.map~f:PartnershipCapabilities.of_xml)(Xml.childxml_arg0"capabilities")inletphone=(Option.map~f:Phone.of_xml)(Xml.childxml_arg0"phone")inletemail=(Option.map~f:Email.of_xml)(Xml.childxml_arg0"email")inletname=(Option.map~f:PartnerName.of_xml)(Xml.childxml_arg0"name")inletpartnershipArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"partnershipArn")inletpartnershipId=(Option.map~f:PartnershipId.of_xml)(Xml.childxml_arg0"partnershipId")inletprofileId=(Option.map~f:ProfileId.of_xml)(Xml.childxml_arg0"profileId")inmake?createdAt?tradingPartnerId?capabilityOptions?capabilities?phone?email?name?partnershipArn?partnershipId?profileId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreatedAt=field_mapjson__"createdAt"CreatedDate.of_jsoninlettradingPartnerId=field_mapjson__"tradingPartnerId"TradingPartnerId.of_jsoninletcapabilityOptions=field_mapjson__"capabilityOptions"CapabilityOptions.of_jsoninletcapabilities=field_mapjson__"capabilities"PartnershipCapabilities.of_jsoninletphone=field_mapjson__"phone"Phone.of_jsoninletemail=field_mapjson__"email"Email.of_jsoninletname=field_mapjson__"name"PartnerName.of_jsoninletpartnershipArn=field_mapjson__"partnershipArn"ResourceArn.of_jsoninletpartnershipId=field_mapjson__"partnershipId"PartnershipId.of_jsoninletprofileId=field_mapjson__"profileId"ProfileId.of_jsoninmake?createdAt?tradingPartnerId?capabilityOptions?capabilities?phone?email?name?partnershipArn?partnershipId?profileId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a partnership between a customer and a trading partner, based on the supplied parameters. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities."]moduleCreatePartnershipRequest=structtypenonrect={profileId:ProfileId.t[@ocaml.doc"Specifies the unique, system-generated identifier for the profile connected to this partnership."];name:PartnerName.t[@ocaml.doc"Specifies a descriptive name for the partnership."];email:Email.t[@ocaml.doc"Specifies the email address associated with this trading partner."];phone:Phone.toption[@ocaml.doc"Specifies the phone number associated with the partnership."];capabilities:PartnershipCapabilities.t[@ocaml.doc"Specifies a list of the capabilities associated with this partnership."];capabilityOptions:CapabilityOptions.toption[@ocaml.doc"Specify the structure that contains the details for the associated capabilities."];clientToken:String_.toption[@ocaml.doc"Reserved for future use."];tags:TagList.toption[@ocaml.doc"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."]}letcontext_="CreatePartnershipRequest"letmake?phone=fun?capabilityOptions->fun?clientToken->fun?tags->fun~profileId->fun~name->fun~email->fun~capabilities->fun()->{phone;capabilityOptions;clientToken;tags;profileId;name;email;capabilities}letto_valuex=structure_to_value[("profileId",(Some(ProfileId.to_valuex.profileId)));("name",(Some(PartnerName.to_valuex.name)));("email",(Some(Email.to_valuex.email)));("phone",(Option.mapx.phone~f:Phone.to_value));("capabilities",(Some(PartnershipCapabilities.to_valuex.capabilities)));("capabilityOptions",(Option.mapx.capabilityOptions~f:CapabilityOptions.to_value));("clientToken",(Option.mapx.clientToken~f:String_.to_value));("tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"tags")inletclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inletcapabilityOptions=(Option.map~f:CapabilityOptions.of_xml)(Xml.childxml_arg0"capabilityOptions")inletcapabilities=PartnershipCapabilities.of_xml(Xml.child_exn~context:context_xml_arg0"capabilities")inletphone=(Option.map~f:Phone.of_xml)(Xml.childxml_arg0"phone")inletemail=Email.of_xml(Xml.child_exn~context:context_xml_arg0"email")inletname=PartnerName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inletprofileId=ProfileId.of_xml(Xml.child_exn~context:context_xml_arg0"profileId")inmake?tags?clientToken?capabilityOptions~capabilities?phone~email~name~profileId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagList.of_jsoninletclientToken=field_mapjson__"clientToken"String_.of_jsoninletcapabilityOptions=field_mapjson__"capabilityOptions"CapabilityOptions.of_jsoninletcapabilities=field_map_exnjson__"capabilities"PartnershipCapabilities.of_jsoninletphone=field_mapjson__"phone"Phone.of_jsoninletemail=field_map_exnjson__"email"Email.of_jsoninletname=field_map_exnjson__"name"PartnerName.of_jsoninletprofileId=field_map_exnjson__"profileId"ProfileId.of_jsoninmake?tags?clientToken?capabilityOptions~capabilities?phone~email~name~profileId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a partnership between a customer and a trading partner, based on the supplied parameters. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities."]moduleCreateCapabilityResponse=structtypenonrect={capabilityId:CapabilityId.toption[@ocaml.doc"Returns a system-assigned unique identifier for the capability."];capabilityArn:ResourceArn.toption[@ocaml.doc"Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer."];name:CapabilityName.toption[@ocaml.doc"Returns the name of the capability used to identify it."];type_:CapabilityType.toption[@ocaml.doc"Returns the type of the capability. Currently, only edi is supported."];configuration:CapabilityConfiguration.toption[@ocaml.doc"Returns a structure that contains the details for a capability."];instructionsDocuments:InstructionsDocuments.toption[@ocaml.doc"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."];createdAt:CreatedDate.toption[@ocaml.doc"Returns a timestamp for creation date and time of the capability."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?capabilityId=fun?capabilityArn->fun?name->fun?type_->fun?configuration->fun?instructionsDocuments->fun?createdAt->fun()->{capabilityId;capabilityArn;name;type_;configuration;instructionsDocuments;createdAt}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("capabilityId",(Option.mapx.capabilityId~f:CapabilityId.to_value));("capabilityArn",(Option.mapx.capabilityArn~f:ResourceArn.to_value));("name",(Option.mapx.name~f:CapabilityName.to_value));("type",(Option.mapx.type_~f:CapabilityType.to_value));("configuration",(Option.mapx.configuration~f:CapabilityConfiguration.to_value));("instructionsDocuments",(Option.mapx.instructionsDocuments~f:InstructionsDocuments.to_value));("createdAt",(Option.mapx.createdAt~f:CreatedDate.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreatedAt=(Option.map~f:CreatedDate.of_xml)(Xml.childxml_arg0"createdAt")inletinstructionsDocuments=(Option.map~f:InstructionsDocuments.of_xml)(Xml.childxml_arg0"instructionsDocuments")inletconfiguration=(Option.map~f:CapabilityConfiguration.of_xml)(Xml.childxml_arg0"configuration")inlettype_=(Option.map~f:CapabilityType.of_xml)(Xml.childxml_arg0"type")inletname=(Option.map~f:CapabilityName.of_xml)(Xml.childxml_arg0"name")inletcapabilityArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"capabilityArn")inletcapabilityId=(Option.map~f:CapabilityId.of_xml)(Xml.childxml_arg0"capabilityId")inmake?createdAt?instructionsDocuments?configuration?type_?name?capabilityArn?capabilityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreatedAt=field_mapjson__"createdAt"CreatedDate.of_jsoninletinstructionsDocuments=field_mapjson__"instructionsDocuments"InstructionsDocuments.of_jsoninletconfiguration=field_mapjson__"configuration"CapabilityConfiguration.of_jsoninlettype_=field_mapjson__"type"CapabilityType.of_jsoninletname=field_mapjson__"name"CapabilityName.of_jsoninletcapabilityArn=field_mapjson__"capabilityArn"ResourceArn.of_jsoninletcapabilityId=field_mapjson__"capabilityId"CapabilityId.of_jsoninmake?createdAt?instructionsDocuments?configuration?type_?name?capabilityArn?capabilityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Instantiates a capability based on the specified parameters. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs."]moduleCreateCapabilityRequest=structtypenonrect={name:CapabilityName.t[@ocaml.doc"Specifies the name of the capability, used to identify it."];type_:CapabilityType.t[@ocaml.doc"Specifies the type of the capability. Currently, only edi is supported."];configuration:CapabilityConfiguration.t[@ocaml.doc"Specifies a structure that contains the details for a capability."];instructionsDocuments:InstructionsDocuments.toption[@ocaml.doc"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."];clientToken:String_.toption[@ocaml.doc"Reserved for future use."];tags:TagList.toption[@ocaml.doc"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."]}letcontext_="CreateCapabilityRequest"letmake?instructionsDocuments=fun?clientToken->fun?tags->fun~name->fun~type_->fun~configuration->fun()->{instructionsDocuments;clientToken;tags;name;type_;configuration}letto_valuex=structure_to_value[("name",(Some(CapabilityName.to_valuex.name)));("type",(Some(CapabilityType.to_valuex.type_)));("configuration",(Some(CapabilityConfiguration.to_valuex.configuration)));("instructionsDocuments",(Option.mapx.instructionsDocuments~f:InstructionsDocuments.to_value));("clientToken",(Option.mapx.clientToken~f:String_.to_value));("tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"tags")inletclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inletinstructionsDocuments=(Option.map~f:InstructionsDocuments.of_xml)(Xml.childxml_arg0"instructionsDocuments")inletconfiguration=CapabilityConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"configuration")inlettype_=CapabilityType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletname=CapabilityName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake?tags?clientToken?instructionsDocuments~configuration~type_~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagList.of_jsoninletclientToken=field_mapjson__"clientToken"String_.of_jsoninletinstructionsDocuments=field_mapjson__"instructionsDocuments"InstructionsDocuments.of_jsoninletconfiguration=field_map_exnjson__"configuration"CapabilityConfiguration.of_jsoninlettype_=field_map_exnjson__"type"CapabilityType.of_jsoninletname=field_map_exnjson__"name"CapabilityName.of_jsoninmake?tags?clientToken?instructionsDocuments~configuration~type_~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Instantiates a capability based on the specified parameters. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs."]