12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204(* 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.supplychainletapiVersion="2024-01-01"letendpointPrefix="scn"letserviceFullName="AWS Supply Chain"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"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[]))])moduleDataIntegrationFlowFieldPriorityDedupeFieldName=structtypenonrect=stringletcontext_="DataIntegrationFlowFieldPriorityDedupeFieldName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(fun()->check_patterni~pattern:"[a-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:"DataIntegrationFlowFieldPriorityDedupeFieldName"jletto_json=simple_to_jsonto_valueendmoduleDataIntegrationFlowFieldPriorityDedupeSortOrder=structtypenonrect=|ASC|DESC|Non_static_idofstringletmakei=iletto_string=function|ASC->"ASC"|DESC->"DESC"|Non_static_ids->sletof_string=function|"ASC"->ASC|"DESC"->DESC|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 DataIntegrationFlowFieldPriorityDedupeSortOrder"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DataIntegrationFlowFieldPriorityDedupeSortOrder"j)letto_json=simple_to_jsonto_valueendmoduleDataIntegrationFlowFieldPriorityDedupeField=structtypenonrect={name:DataIntegrationFlowFieldPriorityDedupeFieldName.t[@ocaml.doc"The name of the deduplication field. Must exist in the dataset and not be a primary key."];sortOrder:DataIntegrationFlowFieldPriorityDedupeSortOrder.t[@ocaml.doc"The sort order for the deduplication field."]}letcontext_="DataIntegrationFlowFieldPriorityDedupeField"letmake~name=fun~sortOrder->fun()->{name;sortOrder}letto_valuex=structure_to_value[("name",(Some(DataIntegrationFlowFieldPriorityDedupeFieldName.to_valuex.name)));("sortOrder",(Some(DataIntegrationFlowFieldPriorityDedupeSortOrder.to_valuex.sortOrder)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsortOrder=DataIntegrationFlowFieldPriorityDedupeSortOrder.of_xml(Xml.child_exn~context:context_xml_arg0"sortOrder")inletname=DataIntegrationFlowFieldPriorityDedupeFieldName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~sortOrder~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsortOrder=field_map_exnjson__"sortOrder"DataIntegrationFlowFieldPriorityDedupeSortOrder.of_jsoninletname=field_map_exnjson__"name"DataIntegrationFlowFieldPriorityDedupeFieldName.of_jsoninmake~sortOrder~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The field used in the field priority deduplication strategy."]moduleDataIntegrationFlowFieldPriorityDedupeFieldList=structtypenonrect=DataIntegrationFlowFieldPriorityDedupeField.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DataIntegrationFlowFieldPriorityDedupeField.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:DataIntegrationFlowFieldPriorityDedupeField.of_xml)letof_jsonj=list_of_json~kind:"DataIntegrationFlowFieldPriorityDedupeFieldList"~of_json:DataIntegrationFlowFieldPriorityDedupeField.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDataIntegrationFlowDedupeStrategyType=structtypenonrect=|FIELD_PRIORITY|Non_static_idofstringletmakei=iletto_string=function|FIELD_PRIORITY->"FIELD_PRIORITY"|Non_static_ids->sletof_string=function|"FIELD_PRIORITY"->FIELD_PRIORITY|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 DataIntegrationFlowDedupeStrategyType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DataIntegrationFlowDedupeStrategyType"j)letto_json=simple_to_jsonto_valueendmoduleDataIntegrationFlowFieldPriorityDedupeStrategyConfiguration=structtypenonrect={fields:DataIntegrationFlowFieldPriorityDedupeFieldList.t[@ocaml.doc"The list of field names and their sort order for deduplication, arranged in descending priority from highest to lowest."]}letcontext_="DataIntegrationFlowFieldPriorityDedupeStrategyConfiguration"letmake~fields=fun()->{fields}letto_valuex=structure_to_value[("fields",(Some(DataIntegrationFlowFieldPriorityDedupeFieldList.to_valuex.fields)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfields=DataIntegrationFlowFieldPriorityDedupeFieldList.of_xml(Xml.child_exn~context:context_xml_arg0"fields")inmake~fields()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfields=field_map_exnjson__"fields"DataIntegrationFlowFieldPriorityDedupeFieldList.of_jsoninmake~fields()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The field priority deduplication strategy details."]moduleDataLakeDatasetPartitionTransformType=structtypenonrect=|YEAR|MONTH|DAY|HOUR|IDENTITY|Non_static_idofstringletmakei=iletto_string=function|YEAR->"YEAR"|MONTH->"MONTH"|DAY->"DAY"|HOUR->"HOUR"|IDENTITY->"IDENTITY"|Non_static_ids->sletof_string=function|"YEAR"->YEAR|"MONTH"->MONTH|"DAY"->DAY|"HOUR"->HOUR|"IDENTITY"->IDENTITY|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 DataLakeDatasetPartitionTransformType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DataLakeDatasetPartitionTransformType"j)letto_json=simple_to_jsonto_valueendmoduleBoolean=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_valueendmoduleDataIntegrationFlowDedupeStrategy=structtypenonrect={type_:DataIntegrationFlowDedupeStrategyType.t[@ocaml.doc"The type of the deduplication strategy. FIELD_PRIORITY - Field priority configuration for the deduplication strategy specifies an ordered list of fields used to tie-break the data records sharing the same primary key values. Fields earlier in the list have higher priority for evaluation. For each field, the sort order determines whether to retain data record with larger or smaller field value."];fieldPriority:DataIntegrationFlowFieldPriorityDedupeStrategyConfiguration.toption[@ocaml.doc"The field priority deduplication strategy."]}letcontext_="DataIntegrationFlowDedupeStrategy"letmake?fieldPriority=fun~type_->fun()->{fieldPriority;type_}letto_valuex=structure_to_value[("type",(Some(DataIntegrationFlowDedupeStrategyType.to_valuex.type_)));("fieldPriority",(Option.mapx.fieldPriority~f:DataIntegrationFlowFieldPriorityDedupeStrategyConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfieldPriority=(Option.map~f:DataIntegrationFlowFieldPriorityDedupeStrategyConfiguration.of_xml)(Xml.childxml_arg0"fieldPriority")inlettype_=DataIntegrationFlowDedupeStrategyType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inmake?fieldPriority~type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfieldPriority=field_mapjson__"fieldPriority"DataIntegrationFlowFieldPriorityDedupeStrategyConfiguration.of_jsoninlettype_=field_map_exnjson__"type"DataIntegrationFlowDedupeStrategyType.of_jsoninmake?fieldPriority~type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The deduplication strategy details."]moduleDataIntegrationFlowLoadType=structtypenonrect=|INCREMENTAL|REPLACE|Non_static_idofstringletmakei=iletto_string=function|INCREMENTAL->"INCREMENTAL"|REPLACE->"REPLACE"|Non_static_ids->sletof_string=function|"INCREMENTAL"->INCREMENTAL|"REPLACE"->REPLACE|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 DataIntegrationFlowLoadType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DataIntegrationFlowLoadType"j)letto_json=simple_to_jsonto_valueendmoduleDataIntegrationFlowFileType=structtypenonrect=|CSV|PARQUET|JSON|Non_static_idofstringletmakei=iletto_string=function|CSV->"CSV"|PARQUET->"PARQUET"|JSON->"JSON"|Non_static_ids->sletof_string=function|"CSV"->CSV|"PARQUET"->PARQUET|"JSON"->JSON|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 DataIntegrationFlowFileType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DataIntegrationFlowFileType"j)letto_json=simple_to_jsonto_valueendmoduleDataLakeDatasetPartitionFieldTransform=structtypenonrect={type_:DataLakeDatasetPartitionTransformType.t[@ocaml.doc"The type of partitioning transformation for this field. The available options are: IDENTITY - Partitions data on a given field by its exact values. YEAR - Partitions data on a timestamp field using year granularity. MONTH - Partitions data on a timestamp field using month granularity. DAY - Partitions data on a timestamp field using day granularity. HOUR - Partitions data on a timestamp field using hour granularity."]}letcontext_="DataLakeDatasetPartitionFieldTransform"letmake~type_=fun()->{type_}letto_valuex=structure_to_value[("type",(Some(DataLakeDatasetPartitionTransformType.to_valuex.type_)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=DataLakeDatasetPartitionTransformType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inmake~type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_map_exnjson__"type"DataLakeDatasetPartitionTransformType.of_jsoninmake~type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The detail of the partition field transformation."]moduleDataLakeDatasetSchemaFieldName=structtypenonrect=stringletcontext_="DataLakeDatasetSchemaFieldName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(fun()->check_patterni~pattern:"[a-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:"DataLakeDatasetSchemaFieldName"jletto_json=simple_to_jsonto_valueendmoduleDataLakeDatasetSchemaFieldType=structtypenonrect=|INT|DOUBLE|STRING|TIMESTAMP|LONG|Non_static_idofstringletmakei=iletto_string=function|INT->"INT"|DOUBLE->"DOUBLE"|STRING->"STRING"|TIMESTAMP->"TIMESTAMP"|LONG->"LONG"|Non_static_ids->sletof_string=function|"INT"->INT|"DOUBLE"->DOUBLE|"STRING"->STRING|"TIMESTAMP"->TIMESTAMP|"LONG"->LONG|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 DataLakeDatasetSchemaFieldType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DataLakeDatasetSchemaFieldType"j)letto_json=simple_to_jsonto_valueendmoduleDataIntegrationFlowDatasetOptions=structtypenonrect={loadType:DataIntegrationFlowLoadType.toption[@ocaml.doc"The target dataset's data load type. This only affects how source S3 files are selected in the S3-to-dataset flow. REPLACE - Target dataset will get replaced with the new file added under the source s3 prefix. INCREMENTAL - Target dataset will get updated with the up-to-date content under S3 prefix incorporating any file additions or removals there."];dedupeRecords:Boolean.toption[@ocaml.doc"The option to perform deduplication on data records sharing same primary key values. If disabled, transformed data with duplicate primary key values will ingest into dataset, for datasets within asc namespace, such duplicates will cause ingestion fail. If enabled without dedupeStrategy, deduplication is done by retaining a random data record among those sharing the same primary key values. If enabled with dedupeStragtegy, the deduplication is done following the strategy. Note that target dataset may have partition configured, when dedupe is enabled, it only dedupe against primary keys and retain only one record out of those duplicates regardless of its partition status."];dedupeStrategy:DataIntegrationFlowDedupeStrategy.toption[@ocaml.doc"The deduplication strategy to dedupe the data records sharing same primary key values of the target dataset. This strategy only applies to target dataset with primary keys and with dedupeRecords option enabled. If transformed data still got duplicates after the dedupeStrategy evaluation, a random data record is chosen to be retained."]}letmake?loadType=fun?dedupeRecords->fun?dedupeStrategy->fun()->{loadType;dedupeRecords;dedupeStrategy}letto_valuex=structure_to_value[("loadType",(Option.mapx.loadType~f:DataIntegrationFlowLoadType.to_value));("dedupeRecords",(Option.mapx.dedupeRecords~f:Boolean.to_value));("dedupeStrategy",(Option.mapx.dedupeStrategy~f:DataIntegrationFlowDedupeStrategy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdedupeStrategy=(Option.map~f:DataIntegrationFlowDedupeStrategy.of_xml)(Xml.childxml_arg0"dedupeStrategy")inletdedupeRecords=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"dedupeRecords")inletloadType=(Option.map~f:DataIntegrationFlowLoadType.of_xml)(Xml.childxml_arg0"loadType")inmake?dedupeStrategy?dedupeRecords?loadType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdedupeStrategy=field_mapjson__"dedupeStrategy"DataIntegrationFlowDedupeStrategy.of_jsoninletdedupeRecords=field_mapjson__"dedupeRecords"Boolean.of_jsoninletloadType=field_mapjson__"loadType"DataIntegrationFlowLoadType.of_jsoninmake?dedupeStrategy?dedupeRecords?loadType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The dataset options used in dataset source and target configurations."]moduleDatasetIdentifier=structtypenonrect=stringletcontext_="DatasetIdentifier"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1011)>>=(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:"DatasetIdentifier"jletto_json=simple_to_jsonto_valueendmoduleDataIntegrationFlowS3Options=structtypenonrect={fileType:DataIntegrationFlowFileType.toption[@ocaml.doc"The Amazon S3 file type in S3 options."]}letmake?fileType=fun()->{fileType}letto_valuex=structure_to_value[("fileType",(Option.mapx.fileType~f:DataIntegrationFlowFileType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfileType=(Option.map~f:DataIntegrationFlowFileType.of_xml)(Xml.childxml_arg0"fileType")inmake?fileType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfileType=field_mapjson__"fileType"DataIntegrationFlowFileType.of_jsoninmake?fileType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The Amazon S3 options used in S3 source and target configurations."]moduleDataIntegrationFlowS3Prefix=structtypenonrect=stringletcontext_="DataIntegrationFlowS3Prefix"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:700)>>=(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:"DataIntegrationFlowS3Prefix"jletto_json=simple_to_jsonto_valueendmoduleS3BucketName=structtypenonrect=stringletcontext_="S3BucketName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:3)>>=(fun()->(check_string_maxi~max:63)>>=(fun()->check_patterni~pattern:"[a-z0-9][a-z0-9.-]*[a-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:"S3BucketName"jletto_json=simple_to_jsonto_valueendmoduleDataLakeDatasetPartitionField=structtypenonrect={name:DataLakeDatasetSchemaFieldName.t[@ocaml.doc"The name of the partition field."];transform:DataLakeDatasetPartitionFieldTransform.t[@ocaml.doc"The transformation of the partition field. A transformation specifies how to partition on a given field. For example, with timestamp you can specify that you'd like to partition fields by day, e.g. data record with value 2025-01-03T00:00:00Z in partition field is in 2025-01-03 partition. Also noted that data record without any value in optional partition field is in NULL partition."]}letcontext_="DataLakeDatasetPartitionField"letmake~name=fun~transform->fun()->{name;transform}letto_valuex=structure_to_value[("name",(Some(DataLakeDatasetSchemaFieldName.to_valuex.name)));("transform",(Some(DataLakeDatasetPartitionFieldTransform.to_valuex.transform)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettransform=DataLakeDatasetPartitionFieldTransform.of_xml(Xml.child_exn~context:context_xml_arg0"transform")inletname=DataLakeDatasetSchemaFieldName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~transform~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettransform=field_map_exnjson__"transform"DataLakeDatasetPartitionFieldTransform.of_jsoninletname=field_map_exnjson__"name"DataLakeDatasetSchemaFieldName.of_jsoninmake~transform~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The detail of the partition field."]moduleDataLakeDatasetPrimaryKeyField=structtypenonrect={name:DataLakeDatasetSchemaFieldName.t[@ocaml.doc"The name of the primary key field."]}letcontext_="DataLakeDatasetPrimaryKeyField"letmake~name=fun()->{name}letto_valuex=structure_to_value[("name",(Some(DataLakeDatasetSchemaFieldName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=DataLakeDatasetSchemaFieldName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"name"DataLakeDatasetSchemaFieldName.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The detail of the primary key field."]moduleDataLakeDatasetSchemaField=structtypenonrect={name:DataLakeDatasetSchemaFieldName.t[@ocaml.doc"The dataset field name."];type_:DataLakeDatasetSchemaFieldType.t[@ocaml.doc"The dataset field type."];isRequired:Boolean.t[@ocaml.doc"Indicate if the field is required or not."]}letcontext_="DataLakeDatasetSchemaField"letmake~name=fun~type_->fun~isRequired->fun()->{name;type_;isRequired}letto_valuex=structure_to_value[("name",(Some(DataLakeDatasetSchemaFieldName.to_valuex.name)));("type",(Some(DataLakeDatasetSchemaFieldType.to_valuex.type_)));("isRequired",(Some(Boolean.to_valuex.isRequired)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letisRequired=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"isRequired")inlettype_=DataLakeDatasetSchemaFieldType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletname=DataLakeDatasetSchemaFieldName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~isRequired~type_~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letisRequired=field_map_exnjson__"isRequired"Boolean.of_jsoninlettype_=field_map_exnjson__"type"DataLakeDatasetSchemaFieldType.of_jsoninletname=field_map_exnjson__"name"DataLakeDatasetSchemaFieldName.of_jsoninmake~isRequired~type_~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The dataset field details."]moduleDataIntegrationFlowDatasetSourceConfiguration=structtypenonrect={datasetIdentifier:DatasetIdentifier.t[@ocaml.doc"The ARN of the dataset."];options:DataIntegrationFlowDatasetOptions.toption[@ocaml.doc"The dataset DataIntegrationFlow source options."]}letcontext_="DataIntegrationFlowDatasetSourceConfiguration"letmake?options=fun~datasetIdentifier->fun()->{options;datasetIdentifier}letto_valuex=structure_to_value[("datasetIdentifier",(Some(DatasetIdentifier.to_valuex.datasetIdentifier)));("options",(Option.mapx.options~f:DataIntegrationFlowDatasetOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoptions=(Option.map~f:DataIntegrationFlowDatasetOptions.of_xml)(Xml.childxml_arg0"options")inletdatasetIdentifier=DatasetIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"datasetIdentifier")inmake?options~datasetIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoptions=field_mapjson__"options"DataIntegrationFlowDatasetOptions.of_jsoninletdatasetIdentifier=field_map_exnjson__"datasetIdentifier"DatasetIdentifier.of_jsoninmake?options~datasetIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The dataset DataIntegrationFlow source configuration parameters."]moduleDataIntegrationFlowS3SourceConfiguration=structtypenonrect={bucketName:S3BucketName.t[@ocaml.doc"The bucketName of the S3 source objects."];prefix:DataIntegrationFlowS3Prefix.t[@ocaml.doc"The prefix of the S3 source objects. To trigger data ingestion, S3 files need to be put under s3://bucketName/prefix/."];options:DataIntegrationFlowS3Options.toption[@ocaml.doc"The other options of the S3 DataIntegrationFlow source."]}letcontext_="DataIntegrationFlowS3SourceConfiguration"letmake?options=fun~bucketName->fun~prefix->fun()->{options;bucketName;prefix}letto_valuex=structure_to_value[("bucketName",(Some(S3BucketName.to_valuex.bucketName)));("prefix",(Some(DataIntegrationFlowS3Prefix.to_valuex.prefix)));("options",(Option.mapx.options~f:DataIntegrationFlowS3Options.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoptions=(Option.map~f:DataIntegrationFlowS3Options.of_xml)(Xml.childxml_arg0"options")inletprefix=DataIntegrationFlowS3Prefix.of_xml(Xml.child_exn~context:context_xml_arg0"prefix")inletbucketName=S3BucketName.of_xml(Xml.child_exn~context:context_xml_arg0"bucketName")inmake?options~prefix~bucketName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoptions=field_mapjson__"options"DataIntegrationFlowS3Options.of_jsoninletprefix=field_map_exnjson__"prefix"DataIntegrationFlowS3Prefix.of_jsoninletbucketName=field_map_exnjson__"bucketName"S3BucketName.of_jsoninmake?options~prefix~bucketName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The S3 DataIntegrationFlow source configuration parameters."]moduleDataIntegrationFlowSourceName=structtypenonrect=stringletcontext_="DataIntegrationFlowSourceName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:256)>>=(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:"DataIntegrationFlowSourceName"jletto_json=simple_to_jsonto_valueendmoduleDataIntegrationFlowSourceType=structtypenonrect=|S3|DATASET|Non_static_idofstringletmakei=iletto_string=function|S3->"S3"|DATASET->"DATASET"|Non_static_ids->sletof_string=function|"S3"->S3|"DATASET"->DATASET|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 DataIntegrationFlowSourceType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DataIntegrationFlowSourceType"j)letto_json=simple_to_jsonto_valueendmoduleDataIntegrationFlowSQLQuery=structtypenonrect=stringletcontext_="DataIntegrationFlowSQLQuery"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:65535)>>=(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:"DataIntegrationFlowSQLQuery"jletto_json=simple_to_jsonto_valueendmoduleDataIntegrationDatasetArn=structtypenonrect=stringletcontext_="DataIntegrationDatasetArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:20)>>=(fun()->(check_string_maxi~max:1011)>>=(fun()->check_patterni~pattern:"arn:aws:scn:([a-z0-9-]+):([0-9]+):instance/([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/namespaces/[^/]+/datasets/[^/]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DataIntegrationDatasetArn"jletto_json=simple_to_jsonto_valueendmoduleDataIntegrationS3ObjectKey=structtypenonrect=stringletcontext_="DataIntegrationS3ObjectKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1024)>>=(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:"DataIntegrationS3ObjectKey"jletto_json=simple_to_jsonto_valueendmoduleDataIntegrationEventDatasetLoadStatus=structtypenonrect=|SUCCEEDED|IN_PROGRESS|FAILED|Non_static_idofstringletmakei=iletto_string=function|SUCCEEDED->"SUCCEEDED"|IN_PROGRESS->"IN_PROGRESS"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"SUCCEEDED"->SUCCEEDED|"IN_PROGRESS"->IN_PROGRESS|"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 DataIntegrationEventDatasetLoadStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DataIntegrationEventDatasetLoadStatus"j)letto_json=simple_to_jsonto_valueendmoduleString_=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_valueendmoduleDataLakeDatasetPartitionFieldList=structtypenonrect=DataLakeDatasetPartitionField.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DataLakeDatasetPartitionField.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:DataLakeDatasetPartitionField.of_xml)letof_jsonj=list_of_json~kind:"DataLakeDatasetPartitionFieldList"~of_json:DataLakeDatasetPartitionField.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDataLakeDatasetPrimaryKeyFieldList=structtypenonrect=DataLakeDatasetPrimaryKeyField.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:20)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DataLakeDatasetPrimaryKeyField.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:DataLakeDatasetPrimaryKeyField.of_xml)letof_jsonj=list_of_json~kind:"DataLakeDatasetPrimaryKeyFieldList"~of_json:DataLakeDatasetPrimaryKeyField.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDataLakeDatasetSchemaFieldList=structtypenonrect=DataLakeDatasetSchemaField.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:500)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DataLakeDatasetSchemaField.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:DataLakeDatasetSchemaField.of_xml)letof_jsonj=list_of_json~kind:"DataLakeDatasetSchemaFieldList"~of_json:DataLakeDatasetSchemaField.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDataLakeDatasetSchemaName=structtypenonrect=stringletcontext_="DataLakeDatasetSchemaName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(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:"DataLakeDatasetSchemaName"jletto_json=simple_to_jsonto_valueendmoduleDataIntegrationFlowSource=structtypenonrect={sourceType:DataIntegrationFlowSourceType.t[@ocaml.doc"The DataIntegrationFlow source type."];sourceName:DataIntegrationFlowSourceName.t[@ocaml.doc"The DataIntegrationFlow source name that can be used as table alias in SQL transformation query."];s3Source:DataIntegrationFlowS3SourceConfiguration.toption[@ocaml.doc"The S3 DataIntegrationFlow source."];datasetSource:DataIntegrationFlowDatasetSourceConfiguration.toption[@ocaml.doc"The dataset DataIntegrationFlow source."]}letcontext_="DataIntegrationFlowSource"letmake?s3Source=fun?datasetSource->fun~sourceType->fun~sourceName->fun()->{s3Source;datasetSource;sourceType;sourceName}letto_valuex=structure_to_value[("sourceType",(Some(DataIntegrationFlowSourceType.to_valuex.sourceType)));("sourceName",(Some(DataIntegrationFlowSourceName.to_valuex.sourceName)));("s3Source",(Option.mapx.s3Source~f:DataIntegrationFlowS3SourceConfiguration.to_value));("datasetSource",(Option.mapx.datasetSource~f:DataIntegrationFlowDatasetSourceConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasetSource=(Option.map~f:DataIntegrationFlowDatasetSourceConfiguration.of_xml)(Xml.childxml_arg0"datasetSource")inlets3Source=(Option.map~f:DataIntegrationFlowS3SourceConfiguration.of_xml)(Xml.childxml_arg0"s3Source")inletsourceName=DataIntegrationFlowSourceName.of_xml(Xml.child_exn~context:context_xml_arg0"sourceName")inletsourceType=DataIntegrationFlowSourceType.of_xml(Xml.child_exn~context:context_xml_arg0"sourceType")inmake?datasetSource?s3Source~sourceName~sourceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasetSource=field_mapjson__"datasetSource"DataIntegrationFlowDatasetSourceConfiguration.of_jsoninlets3Source=field_mapjson__"s3Source"DataIntegrationFlowS3SourceConfiguration.of_jsoninletsourceName=field_map_exnjson__"sourceName"DataIntegrationFlowSourceName.of_jsoninletsourceType=field_map_exnjson__"sourceType"DataIntegrationFlowSourceType.of_jsoninmake?datasetSource?s3Source~sourceName~sourceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The DataIntegrationFlow source parameters."]moduleDataIntegrationFlowDatasetTargetConfiguration=structtypenonrect={datasetIdentifier:DatasetIdentifier.t[@ocaml.doc"The dataset ARN."];options:DataIntegrationFlowDatasetOptions.toption[@ocaml.doc"The dataset DataIntegrationFlow target options."]}letcontext_="DataIntegrationFlowDatasetTargetConfiguration"letmake?options=fun~datasetIdentifier->fun()->{options;datasetIdentifier}letto_valuex=structure_to_value[("datasetIdentifier",(Some(DatasetIdentifier.to_valuex.datasetIdentifier)));("options",(Option.mapx.options~f:DataIntegrationFlowDatasetOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoptions=(Option.map~f:DataIntegrationFlowDatasetOptions.of_xml)(Xml.childxml_arg0"options")inletdatasetIdentifier=DatasetIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"datasetIdentifier")inmake?options~datasetIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoptions=field_mapjson__"options"DataIntegrationFlowDatasetOptions.of_jsoninletdatasetIdentifier=field_map_exnjson__"datasetIdentifier"DatasetIdentifier.of_jsoninmake?options~datasetIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The dataset DataIntegrationFlow target configuration parameters."]moduleDataIntegrationFlowS3TargetConfiguration=structtypenonrect={bucketName:S3BucketName.t[@ocaml.doc"The bucketName of the S3 target objects."];prefix:DataIntegrationFlowS3Prefix.t[@ocaml.doc"The prefix of the S3 target objects."];options:DataIntegrationFlowS3Options.toption[@ocaml.doc"The S3 DataIntegrationFlow target options."]}letcontext_="DataIntegrationFlowS3TargetConfiguration"letmake?options=fun~bucketName->fun~prefix->fun()->{options;bucketName;prefix}letto_valuex=structure_to_value[("bucketName",(Some(S3BucketName.to_valuex.bucketName)));("prefix",(Some(DataIntegrationFlowS3Prefix.to_valuex.prefix)));("options",(Option.mapx.options~f:DataIntegrationFlowS3Options.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoptions=(Option.map~f:DataIntegrationFlowS3Options.of_xml)(Xml.childxml_arg0"options")inletprefix=DataIntegrationFlowS3Prefix.of_xml(Xml.child_exn~context:context_xml_arg0"prefix")inletbucketName=S3BucketName.of_xml(Xml.child_exn~context:context_xml_arg0"bucketName")inmake?options~prefix~bucketName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoptions=field_mapjson__"options"DataIntegrationFlowS3Options.of_jsoninletprefix=field_map_exnjson__"prefix"DataIntegrationFlowS3Prefix.of_jsoninletbucketName=field_map_exnjson__"bucketName"S3BucketName.of_jsoninmake?options~prefix~bucketName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The S3 DataIntegrationFlow target configuration parameters."]moduleDataIntegrationFlowTargetType=structtypenonrect=|S3|DATASET|Non_static_idofstringletmakei=iletto_string=function|S3->"S3"|DATASET->"DATASET"|Non_static_ids->sletof_string=function|"S3"->S3|"DATASET"->DATASET|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 DataIntegrationFlowTargetType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DataIntegrationFlowTargetType"j)letto_json=simple_to_jsonto_valueendmoduleDataIntegrationFlowSQLTransformationConfiguration=structtypenonrect={query:DataIntegrationFlowSQLQuery.t[@ocaml.doc"The transformation SQL query body based on SparkSQL."]}letcontext_="DataIntegrationFlowSQLTransformationConfiguration"letmake~query=fun()->{query}letto_valuex=structure_to_value[("query",(Some(DataIntegrationFlowSQLQuery.to_valuex.query)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letquery=DataIntegrationFlowSQLQuery.of_xml(Xml.child_exn~context:context_xml_arg0"query")inmake~query()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letquery=field_map_exnjson__"query"DataIntegrationFlowSQLQuery.of_jsoninmake~query()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The SQL DataIntegrationFlow transformation configuration parameters."]moduleDataIntegrationFlowTransformationType=structtypenonrect=|SQL|NONE|Non_static_idofstringletmakei=iletto_string=function|SQL->"SQL"|NONE->"NONE"|Non_static_ids->sletof_string=function|"SQL"->SQL|"NONE"->NONE|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 DataIntegrationFlowTransformationType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DataIntegrationFlowTransformationType"j)letto_json=simple_to_jsonto_valueendmoduleDataIntegrationFlowExecutionDiagnosticReportsRootS3URI=structtypenonrect=stringletcontext_="DataIntegrationFlowExecutionDiagnosticReportsRootS3URI"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"s3://[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]/.{1,1024}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DataIntegrationFlowExecutionDiagnosticReportsRootS3URI"jletto_json=simple_to_jsonto_valueendmoduleDataIntegrationFlowDatasetSource=structtypenonrect={datasetIdentifier:DataIntegrationDatasetArn.toption[@ocaml.doc"The ARN of the dataset source."]}letmake?datasetIdentifier=fun()->{datasetIdentifier}letto_valuex=structure_to_value[("datasetIdentifier",(Option.mapx.datasetIdentifier~f:DataIntegrationDatasetArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasetIdentifier=(Option.map~f:DataIntegrationDatasetArn.of_xml)(Xml.childxml_arg0"datasetIdentifier")inmake?datasetIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasetIdentifier=field_mapjson__"datasetIdentifier"DataIntegrationDatasetArn.of_jsoninmake?datasetIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details of a flow execution with dataset source."]moduleDataIntegrationFlowS3Source=structtypenonrect={bucketName:S3BucketName.toption[@ocaml.doc"The S3 bucket name of the S3 source."];key:DataIntegrationS3ObjectKey.toption[@ocaml.doc"The S3 object key of the S3 source."]}letmake?bucketName=fun?key->fun()->{bucketName;key}letto_valuex=structure_to_value[("bucketName",(Option.mapx.bucketName~f:S3BucketName.to_value));("key",(Option.mapx.key~f:DataIntegrationS3ObjectKey.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkey=(Option.map~f:DataIntegrationS3ObjectKey.of_xml)(Xml.childxml_arg0"key")inletbucketName=(Option.map~f:S3BucketName.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"DataIntegrationS3ObjectKey.of_jsoninletbucketName=field_mapjson__"bucketName"S3BucketName.of_jsoninmake?key?bucketName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details of a flow execution with S3 source."]moduleDataIntegrationEventDatasetLoadExecutionDetails=structtypenonrect={status:DataIntegrationEventDatasetLoadStatus.toption[@ocaml.doc"The event load execution status to target dataset."];message:String_.toption[@ocaml.doc"The failure message (if any) of failed event load execution to dataset."]}letmake?status=fun?message->fun()->{status;message}letto_valuex=structure_to_value[("status",(Option.mapx.status~f:DataIntegrationEventDatasetLoadStatus.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")inletstatus=(Option.map~f:DataIntegrationEventDatasetLoadStatus.of_xml)(Xml.childxml_arg0"status")inmake?message?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninletstatus=field_mapjson__"status"DataIntegrationEventDatasetLoadStatus.of_jsoninmake?message?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The target dataset load execution details."]moduleDataIntegrationEventDatasetOperationType=structtypenonrect=|APPEND|UPSERT|DELETE|Non_static_idofstringletmakei=iletto_string=function|APPEND->"APPEND"|UPSERT->"UPSERT"|DELETE->"DELETE"|Non_static_ids->sletof_string=function|"APPEND"->APPEND|"UPSERT"->UPSERT|"DELETE"->DELETE|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 DataIntegrationEventDatasetOperationType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DataIntegrationEventDatasetOperationType"j)letto_json=simple_to_jsonto_valueendmoduleAwsAccountId=structtypenonrect=stringletcontext_="AwsAccountId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[0-9]{12}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AwsAccountId"jletto_json=simple_to_jsonto_valueendmoduleDouble=structtypenonrect=floatletmakei=iletof_string=Float.of_stringletto_valuex=`Doublexletto_queryv=to_queryto_valuevletto_headerx=Stdlib.Float.to_stringxletof_xmlxml_arg0=Float.of_string(string_of_xml~kind:"a double"xml_arg0)letof_jsonj=float_of_json~kind:"a double"jletto_json=simple_to_jsonto_valueendmoduleInstanceDescription=structtypenonrect=stringletcontext_="InstanceDescription"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:501)>>=(fun()->check_patterni~pattern:"([a-zA-Z0-9., _\202\188'%-]){0,500}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"InstanceDescription"jletto_json=simple_to_jsonto_valueendmoduleInstanceName=structtypenonrect=stringletcontext_="InstanceName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:63)>>=(fun()->check_patterni~pattern:"(?![ _\202\188'%-])[a-zA-Z0-9 _\202\188'%-]{0,62}[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:"InstanceName"jletto_json=simple_to_jsonto_valueendmoduleInstanceState=structtypenonrect=|Initializing|Active|CreateFailed|DeleteFailed|Deleting|Deleted|Non_static_idofstringletmakei=iletto_string=function|Initializing->"Initializing"|Active->"Active"|CreateFailed->"CreateFailed"|DeleteFailed->"DeleteFailed"|Deleting->"Deleting"|Deleted->"Deleted"|Non_static_ids->sletof_string=function|"Initializing"->Initializing|"Active"->Active|"CreateFailed"->CreateFailed|"DeleteFailed"->DeleteFailed|"Deleting"->Deleting|"Deleted"->Deleted|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 InstanceState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"InstanceState"j)letto_json=simple_to_jsonto_valueendmoduleInstanceWebAppDnsDomain=structtypenonrect=stringletcontext_="InstanceWebAppDnsDomain"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"(?![-])[a-zA-Z0-9-]{1,62}[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:"InstanceWebAppDnsDomain"jletto_json=simple_to_jsonto_valueendmoduleKmsKeyArn=structtypenonrect=stringletcontext_="KmsKeyArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:[a-z0-9][-.a-z0-9]{0,62}:kms:([a-z0-9][-.a-z0-9]{0,62})?:([a-z0-9][-.a-z0-9]{0,62})?:key/.{0,1019}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"KmsKeyArn"jletto_json=simple_to_jsonto_valueendmoduleTimestamp=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_valueendmoduleUUID=structtypenonrect=stringletcontext_="UUID"letmakei=letopenResultinok_or_failwith((check_string_mini~min:36)>>=(fun()->(check_string_maxi~max:36)>>=(fun()->check_patterni~pattern:"[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"UUID"jletto_json=simple_to_jsonto_valueendmoduleAscResourceArn=structtypenonrect=stringletcontext_="AscResourceArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:20)>>=(fun()->(check_string_maxi~max:1011)>>=(fun()->check_patterni~pattern:"arn:aws:scn(?::([a-z0-9-]+):([0-9]+):instance)?/([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})[-_./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:"AscResourceArn"jletto_json=simple_to_jsonto_valueendmoduleDataLakeNamespaceDescription=structtypenonrect=stringletcontext_="DataLakeNamespaceDescription"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(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:"DataLakeNamespaceDescription"jletto_json=simple_to_jsonto_valueendmoduleDataLakeNamespaceName=structtypenonrect=stringletcontext_="DataLakeNamespaceName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:50)>>=(fun()->check_patterni~pattern:"[a-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:"DataLakeNamespaceName"jletto_json=simple_to_jsonto_valueendmoduleDataLakeDatasetDescription=structtypenonrect=stringletcontext_="DataLakeDatasetDescription"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(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:"DataLakeDatasetDescription"jletto_json=simple_to_jsonto_valueendmoduleDataLakeDatasetName=structtypenonrect=stringletcontext_="DataLakeDatasetName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:75)>>=(fun()->check_patterni~pattern:"[a-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:"DataLakeDatasetName"jletto_json=simple_to_jsonto_valueendmoduleDataLakeDatasetPartitionSpec=structtypenonrect={fields:DataLakeDatasetPartitionFieldList.t[@ocaml.doc"The fields on which to partition a dataset. The partitions will be applied hierarchically based on the order of this list."]}letcontext_="DataLakeDatasetPartitionSpec"letmake~fields=fun()->{fields}letto_valuex=structure_to_value[("fields",(Some(DataLakeDatasetPartitionFieldList.to_valuex.fields)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfields=DataLakeDatasetPartitionFieldList.of_xml(Xml.child_exn~context:context_xml_arg0"fields")inmake~fields()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfields=field_map_exnjson__"fields"DataLakeDatasetPartitionFieldList.of_jsoninmake~fields()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The partition specification for a dataset."]moduleDataLakeDatasetSchema=structtypenonrect={name:DataLakeDatasetSchemaName.t[@ocaml.doc"The name of the dataset schema."];fields:DataLakeDatasetSchemaFieldList.t[@ocaml.doc"The list of field details of the dataset schema."];primaryKeys:DataLakeDatasetPrimaryKeyFieldList.toption[@ocaml.doc"The list of primary key fields for the dataset. Primary keys defined can help data ingestion methods to ensure data uniqueness: CreateDataIntegrationFlow's dedupe strategy will leverage primary keys to perform records deduplication before write to dataset; SendDataIntegrationEvent's UPSERT and DELETE can only work with dataset with primary keys. For more details, refer to those data ingestion documentations. Note that defining primary keys does not necessarily mean the dataset cannot have duplicate records, duplicate records can still be ingested if CreateDataIntegrationFlow's dedupe disabled or through SendDataIntegrationEvent's APPEND operation."]}letcontext_="DataLakeDatasetSchema"letmake?primaryKeys=fun~name->fun~fields->fun()->{primaryKeys;name;fields}letto_valuex=structure_to_value[("name",(Some(DataLakeDatasetSchemaName.to_valuex.name)));("fields",(Some(DataLakeDatasetSchemaFieldList.to_valuex.fields)));("primaryKeys",(Option.mapx.primaryKeys~f:DataLakeDatasetPrimaryKeyFieldList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprimaryKeys=(Option.map~f:DataLakeDatasetPrimaryKeyFieldList.of_xml)(Xml.childxml_arg0"primaryKeys")inletfields=DataLakeDatasetSchemaFieldList.of_xml(Xml.child_exn~context:context_xml_arg0"fields")inletname=DataLakeDatasetSchemaName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake?primaryKeys~fields~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprimaryKeys=field_mapjson__"primaryKeys"DataLakeDatasetPrimaryKeyFieldList.of_jsoninletfields=field_map_exnjson__"fields"DataLakeDatasetSchemaFieldList.of_jsoninletname=field_map_exnjson__"name"DataLakeDatasetSchemaName.of_jsoninmake?primaryKeys~fields~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The schema details of the dataset. Note that for AWS Supply Chain dataset under asc namespace, it may have internal fields like connection_id that will be auto populated by data ingestion methods."]moduleDataIntegrationFlowName=structtypenonrect=stringletcontext_="DataIntegrationFlowName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:256)>>=(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:"DataIntegrationFlowName"jletto_json=simple_to_jsonto_valueendmoduleDataIntegrationFlowSourceList=structtypenonrect=DataIntegrationFlowSource.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:40)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DataIntegrationFlowSource.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:DataIntegrationFlowSource.of_xml)letof_jsonj=list_of_json~kind:"DataIntegrationFlowSourceList"~of_json:DataIntegrationFlowSource.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDataIntegrationFlowTarget=structtypenonrect={targetType:DataIntegrationFlowTargetType.t[@ocaml.doc"The DataIntegrationFlow target type."];s3Target:DataIntegrationFlowS3TargetConfiguration.toption[@ocaml.doc"The S3 DataIntegrationFlow target."];datasetTarget:DataIntegrationFlowDatasetTargetConfiguration.toption[@ocaml.doc"The dataset DataIntegrationFlow target. Note that for AWS Supply Chain dataset under asc namespace, it has a connection_id internal field that is not allowed to be provided by client directly, they will be auto populated."]}letcontext_="DataIntegrationFlowTarget"letmake?s3Target=fun?datasetTarget->fun~targetType->fun()->{s3Target;datasetTarget;targetType}letto_valuex=structure_to_value[("targetType",(Some(DataIntegrationFlowTargetType.to_valuex.targetType)));("s3Target",(Option.mapx.s3Target~f:DataIntegrationFlowS3TargetConfiguration.to_value));("datasetTarget",(Option.mapx.datasetTarget~f:DataIntegrationFlowDatasetTargetConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasetTarget=(Option.map~f:DataIntegrationFlowDatasetTargetConfiguration.of_xml)(Xml.childxml_arg0"datasetTarget")inlets3Target=(Option.map~f:DataIntegrationFlowS3TargetConfiguration.of_xml)(Xml.childxml_arg0"s3Target")inlettargetType=DataIntegrationFlowTargetType.of_xml(Xml.child_exn~context:context_xml_arg0"targetType")inmake?datasetTarget?s3Target~targetType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasetTarget=field_mapjson__"datasetTarget"DataIntegrationFlowDatasetTargetConfiguration.of_jsoninlets3Target=field_mapjson__"s3Target"DataIntegrationFlowS3TargetConfiguration.of_jsoninlettargetType=field_map_exnjson__"targetType"DataIntegrationFlowTargetType.of_jsoninmake?datasetTarget?s3Target~targetType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The DataIntegrationFlow target parameters."]moduleDataIntegrationFlowTransformation=structtypenonrect={transformationType:DataIntegrationFlowTransformationType.t[@ocaml.doc"The DataIntegrationFlow transformation type."];sqlTransformation:DataIntegrationFlowSQLTransformationConfiguration.toption[@ocaml.doc"The SQL DataIntegrationFlow transformation configuration."]}letcontext_="DataIntegrationFlowTransformation"letmake?sqlTransformation=fun~transformationType->fun()->{sqlTransformation;transformationType}letto_valuex=structure_to_value[("transformationType",(Some(DataIntegrationFlowTransformationType.to_valuex.transformationType)));("sqlTransformation",(Option.mapx.sqlTransformation~f:DataIntegrationFlowSQLTransformationConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsqlTransformation=(Option.map~f:DataIntegrationFlowSQLTransformationConfiguration.of_xml)(Xml.childxml_arg0"sqlTransformation")inlettransformationType=DataIntegrationFlowTransformationType.of_xml(Xml.child_exn~context:context_xml_arg0"transformationType")inmake?sqlTransformation~transformationType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsqlTransformation=field_mapjson__"sqlTransformation"DataIntegrationFlowSQLTransformationConfiguration.of_jsoninlettransformationType=field_map_exnjson__"transformationType"DataIntegrationFlowTransformationType.of_jsoninmake?sqlTransformation~transformationType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The DataIntegrationFlow transformation parameters."]moduleDataIntegrationFlowExecutionOutputMetadata=structtypenonrect={diagnosticReportsRootS3URI:DataIntegrationFlowExecutionDiagnosticReportsRootS3URI.toption[@ocaml.doc"The S3 URI under which all diagnostic files (such as deduped records if any) are stored."]}letmake?diagnosticReportsRootS3URI=fun()->{diagnosticReportsRootS3URI}letto_valuex=structure_to_value[("diagnosticReportsRootS3URI",(Option.mapx.diagnosticReportsRootS3URI~f:DataIntegrationFlowExecutionDiagnosticReportsRootS3URI.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdiagnosticReportsRootS3URI=(Option.map~f:DataIntegrationFlowExecutionDiagnosticReportsRootS3URI.of_xml)(Xml.childxml_arg0"diagnosticReportsRootS3URI")inmake?diagnosticReportsRootS3URI()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdiagnosticReportsRootS3URI=field_mapjson__"diagnosticReportsRootS3URI"DataIntegrationFlowExecutionDiagnosticReportsRootS3URI.of_jsoninmake?diagnosticReportsRootS3URI()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The output metadata of the flow execution."]moduleDataIntegrationFlowExecutionSourceInfo=structtypenonrect={sourceType:DataIntegrationFlowSourceType.toption[@ocaml.doc"The data integration flow execution source type."];s3Source:DataIntegrationFlowS3Source.toption[@ocaml.doc"The source details of a flow execution with S3 source."];datasetSource:DataIntegrationFlowDatasetSource.toption[@ocaml.doc"The source details of a flow execution with dataset source."]}letmake?sourceType=fun?s3Source->fun?datasetSource->fun()->{sourceType;s3Source;datasetSource}letto_valuex=structure_to_value[("sourceType",(Option.mapx.sourceType~f:DataIntegrationFlowSourceType.to_value));("s3Source",(Option.mapx.s3Source~f:DataIntegrationFlowS3Source.to_value));("datasetSource",(Option.mapx.datasetSource~f:DataIntegrationFlowDatasetSource.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasetSource=(Option.map~f:DataIntegrationFlowDatasetSource.of_xml)(Xml.childxml_arg0"datasetSource")inlets3Source=(Option.map~f:DataIntegrationFlowS3Source.of_xml)(Xml.childxml_arg0"s3Source")inletsourceType=(Option.map~f:DataIntegrationFlowSourceType.of_xml)(Xml.childxml_arg0"sourceType")inmake?datasetSource?s3Source?sourceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasetSource=field_mapjson__"datasetSource"DataIntegrationFlowDatasetSource.of_jsoninlets3Source=field_mapjson__"s3Source"DataIntegrationFlowS3Source.of_jsoninletsourceType=field_mapjson__"sourceType"DataIntegrationFlowSourceType.of_jsoninmake?datasetSource?s3Source?sourceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The source information of a flow execution."]moduleDataIntegrationFlowExecutionStatus=structtypenonrect=|SUCCEEDED|IN_PROGRESS|FAILED|Non_static_idofstringletmakei=iletto_string=function|SUCCEEDED->"SUCCEEDED"|IN_PROGRESS->"IN_PROGRESS"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"SUCCEEDED"->SUCCEEDED|"IN_PROGRESS"->IN_PROGRESS|"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 DataIntegrationFlowExecutionStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DataIntegrationFlowExecutionStatus"j)letto_json=simple_to_jsonto_valueendmoduleDataIntegrationEventDatasetTargetDetails=structtypenonrect={datasetIdentifier:DataIntegrationDatasetArn.toption[@ocaml.doc"The datalake dataset ARN identifier."];operationType:DataIntegrationEventDatasetOperationType.toption[@ocaml.doc"The target dataset load operation type. The available options are: APPEND - Add new records to the dataset. Noted that this operation type will just try to append records as-is without any primary key or partition constraints. UPSERT - Modify existing records in the dataset with primary key configured, events for datasets without primary keys are not allowed. If event data contains primary keys that match records in the dataset within same partition, then those existing records (in that partition) will be updated. If primary keys do not match, new records will be added. Note that if dataset contain records with duplicate primary key values in the same partition, those duplicate records will be deduped into one updated record. DELETE - Remove existing records in the dataset with primary key configured, events for datasets without primary keys are not allowed. If event data contains primary keys that match records in the dataset within same partition, then those existing records (in that partition) will be deleted. If primary keys do not match, no actions will be done. Note that if dataset contain records with duplicate primary key values in the same partition, all those duplicates will be removed."];datasetLoadExecution:DataIntegrationEventDatasetLoadExecutionDetails.toption[@ocaml.doc"The target dataset load execution."]}letmake?datasetIdentifier=fun?operationType->fun?datasetLoadExecution->fun()->{datasetIdentifier;operationType;datasetLoadExecution}letto_valuex=structure_to_value[("datasetIdentifier",(Option.mapx.datasetIdentifier~f:DataIntegrationDatasetArn.to_value));("operationType",(Option.mapx.operationType~f:DataIntegrationEventDatasetOperationType.to_value));("datasetLoadExecution",(Option.mapx.datasetLoadExecution~f:DataIntegrationEventDatasetLoadExecutionDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasetLoadExecution=(Option.map~f:DataIntegrationEventDatasetLoadExecutionDetails.of_xml)(Xml.childxml_arg0"datasetLoadExecution")inletoperationType=(Option.map~f:DataIntegrationEventDatasetOperationType.of_xml)(Xml.childxml_arg0"operationType")inletdatasetIdentifier=(Option.map~f:DataIntegrationDatasetArn.of_xml)(Xml.childxml_arg0"datasetIdentifier")inmake?datasetLoadExecution?operationType?datasetIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasetLoadExecution=field_mapjson__"datasetLoadExecution"DataIntegrationEventDatasetLoadExecutionDetails.of_jsoninletoperationType=field_mapjson__"operationType"DataIntegrationEventDatasetOperationType.of_jsoninletdatasetIdentifier=field_mapjson__"datasetIdentifier"DataIntegrationDatasetArn.of_jsoninmake?datasetLoadExecution?operationType?datasetIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The target dataset details for a DATASET event type."]moduleDataIntegrationEventGroupId=structtypenonrect=stringletcontext_="DataIntegrationEventGroupId"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:"DataIntegrationEventGroupId"jletto_json=simple_to_jsonto_valueendmoduleDataIntegrationEventType=structtypenonrect=|Scn_data_forecast|Scn_data_inventorylevel|Scn_data_inboundorder|Scn_data_inboundorderline|Scn_data_inboundorderlineschedule|Scn_data_outboundorderline|Scn_data_outboundshipment|Scn_data_processheader|Scn_data_processoperation|Scn_data_processproduct|Scn_data_reservation|Scn_data_shipment|Scn_data_shipmentstop|Scn_data_shipmentstoporder|Scn_data_supplyplan|Scn_data_dataset|Non_static_idofstringletmakei=iletto_string=function|Scn_data_forecast->"scn.data.forecast"|Scn_data_inventorylevel->"scn.data.inventorylevel"|Scn_data_inboundorder->"scn.data.inboundorder"|Scn_data_inboundorderline->"scn.data.inboundorderline"|Scn_data_inboundorderlineschedule->"scn.data.inboundorderlineschedule"|Scn_data_outboundorderline->"scn.data.outboundorderline"|Scn_data_outboundshipment->"scn.data.outboundshipment"|Scn_data_processheader->"scn.data.processheader"|Scn_data_processoperation->"scn.data.processoperation"|Scn_data_processproduct->"scn.data.processproduct"|Scn_data_reservation->"scn.data.reservation"|Scn_data_shipment->"scn.data.shipment"|Scn_data_shipmentstop->"scn.data.shipmentstop"|Scn_data_shipmentstoporder->"scn.data.shipmentstoporder"|Scn_data_supplyplan->"scn.data.supplyplan"|Scn_data_dataset->"scn.data.dataset"|Non_static_ids->sletof_string=function|"scn.data.forecast"->Scn_data_forecast|"scn.data.inventorylevel"->Scn_data_inventorylevel|"scn.data.inboundorder"->Scn_data_inboundorder|"scn.data.inboundorderline"->Scn_data_inboundorderline|"scn.data.inboundorderlineschedule"->Scn_data_inboundorderlineschedule|"scn.data.outboundorderline"->Scn_data_outboundorderline|"scn.data.outboundshipment"->Scn_data_outboundshipment|"scn.data.processheader"->Scn_data_processheader|"scn.data.processoperation"->Scn_data_processoperation|"scn.data.processproduct"->Scn_data_processproduct|"scn.data.reservation"->Scn_data_reservation|"scn.data.shipment"->Scn_data_shipment|"scn.data.shipmentstop"->Scn_data_shipmentstop|"scn.data.shipmentstoporder"->Scn_data_shipmentstoporder|"scn.data.supplyplan"->Scn_data_supplyplan|"scn.data.dataset"->Scn_data_dataset|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 DataIntegrationEventType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DataIntegrationEventType"j)letto_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_valueendmoduleInstance=structtypenonrect={instanceId:UUID.toption[@ocaml.doc"The Amazon Web Services Supply Chain instance identifier."];awsAccountId:AwsAccountId.toption[@ocaml.doc"The Amazon Web Services account ID that owns the instance."];state:InstanceState.toption[@ocaml.doc"The state of the instance."];errorMessage:String_.toption[@ocaml.doc"The Amazon Web Services Supply Chain instance error message. If the instance results in an unhealthy state, customers need to check the error message, delete the current instance, and recreate a new one based on the mitigation from the error message."];webAppDnsDomain:InstanceWebAppDnsDomain.toption[@ocaml.doc"The WebApp DNS domain name of the instance."];createdTime:Timestamp.toption[@ocaml.doc"The instance creation timestamp."];lastModifiedTime:Timestamp.toption[@ocaml.doc"The instance last modified timestamp."];instanceName:InstanceName.toption[@ocaml.doc"The Amazon Web Services Supply Chain instance name."];instanceDescription:InstanceDescription.toption[@ocaml.doc"The Amazon Web Services Supply Chain instance description."];kmsKeyArn:KmsKeyArn.toption[@ocaml.doc"The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you optionally provided for encryption. If you did not provide anything here, AWS Supply Chain uses the Amazon Web Services owned KMS key and nothing is returned."];versionNumber:Double.toption[@ocaml.doc"The version number of the instance."]}letmake?instanceId=fun?awsAccountId->fun?state->fun?errorMessage->fun?webAppDnsDomain->fun?createdTime->fun?lastModifiedTime->fun?instanceName->fun?instanceDescription->fun?kmsKeyArn->fun?versionNumber->fun()->{instanceId;awsAccountId;state;errorMessage;webAppDnsDomain;createdTime;lastModifiedTime;instanceName;instanceDescription;kmsKeyArn;versionNumber}letto_valuex=structure_to_value[("instanceId",(Option.mapx.instanceId~f:UUID.to_value));("awsAccountId",(Option.mapx.awsAccountId~f:AwsAccountId.to_value));("state",(Option.mapx.state~f:InstanceState.to_value));("errorMessage",(Option.mapx.errorMessage~f:String_.to_value));("webAppDnsDomain",(Option.mapx.webAppDnsDomain~f:InstanceWebAppDnsDomain.to_value));("createdTime",(Option.mapx.createdTime~f:Timestamp.to_value));("lastModifiedTime",(Option.mapx.lastModifiedTime~f:Timestamp.to_value));("instanceName",(Option.mapx.instanceName~f:InstanceName.to_value));("instanceDescription",(Option.mapx.instanceDescription~f:InstanceDescription.to_value));("kmsKeyArn",(Option.mapx.kmsKeyArn~f:KmsKeyArn.to_value));("versionNumber",(Option.mapx.versionNumber~f:Double.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letversionNumber=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"versionNumber")inletkmsKeyArn=(Option.map~f:KmsKeyArn.of_xml)(Xml.childxml_arg0"kmsKeyArn")inletinstanceDescription=(Option.map~f:InstanceDescription.of_xml)(Xml.childxml_arg0"instanceDescription")inletinstanceName=(Option.map~f:InstanceName.of_xml)(Xml.childxml_arg0"instanceName")inletlastModifiedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"lastModifiedTime")inletcreatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdTime")inletwebAppDnsDomain=(Option.map~f:InstanceWebAppDnsDomain.of_xml)(Xml.childxml_arg0"webAppDnsDomain")inleterrorMessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"errorMessage")inletstate=(Option.map~f:InstanceState.of_xml)(Xml.childxml_arg0"state")inletawsAccountId=(Option.map~f:AwsAccountId.of_xml)(Xml.childxml_arg0"awsAccountId")inletinstanceId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"instanceId")inmake?versionNumber?kmsKeyArn?instanceDescription?instanceName?lastModifiedTime?createdTime?webAppDnsDomain?errorMessage?state?awsAccountId?instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letversionNumber=field_mapjson__"versionNumber"Double.of_jsoninletkmsKeyArn=field_mapjson__"kmsKeyArn"KmsKeyArn.of_jsoninletinstanceDescription=field_mapjson__"instanceDescription"InstanceDescription.of_jsoninletinstanceName=field_mapjson__"instanceName"InstanceName.of_jsoninletlastModifiedTime=field_mapjson__"lastModifiedTime"Timestamp.of_jsoninletcreatedTime=field_mapjson__"createdTime"Timestamp.of_jsoninletwebAppDnsDomain=field_mapjson__"webAppDnsDomain"InstanceWebAppDnsDomain.of_jsoninleterrorMessage=field_mapjson__"errorMessage"String_.of_jsoninletstate=field_mapjson__"state"InstanceState.of_jsoninletawsAccountId=field_mapjson__"awsAccountId"AwsAccountId.of_jsoninletinstanceId=field_mapjson__"instanceId"UUID.of_jsoninmake?versionNumber?kmsKeyArn?instanceDescription?instanceName?lastModifiedTime?createdTime?webAppDnsDomain?errorMessage?state?awsAccountId?instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details of the instance."]moduleDataLakeNamespace=structtypenonrect={instanceId:UUID.toption[@ocaml.doc"The Amazon Web Services Supply Chain instance identifier."];name:DataLakeNamespaceName.toption[@ocaml.doc"The name of the namespace."];arn:AscResourceArn.toption[@ocaml.doc"The arn of the namespace."];description:DataLakeNamespaceDescription.toption[@ocaml.doc"The description of the namespace."];createdTime:Timestamp.toption[@ocaml.doc"The creation time of the namespace."];lastModifiedTime:Timestamp.toption[@ocaml.doc"The last modified time of the namespace."]}letmake?instanceId=fun?name->fun?arn->fun?description->fun?createdTime->fun?lastModifiedTime->fun()->{instanceId;name;arn;description;createdTime;lastModifiedTime}letto_valuex=structure_to_value[("instanceId",(Option.mapx.instanceId~f:UUID.to_value));("name",(Option.mapx.name~f:DataLakeNamespaceName.to_value));("arn",(Option.mapx.arn~f:AscResourceArn.to_value));("description",(Option.mapx.description~f:DataLakeNamespaceDescription.to_value));("createdTime",(Option.mapx.createdTime~f:Timestamp.to_value));("lastModifiedTime",(Option.mapx.lastModifiedTime~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastModifiedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"lastModifiedTime")inletcreatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdTime")inletdescription=(Option.map~f:DataLakeNamespaceDescription.of_xml)(Xml.childxml_arg0"description")inletarn=(Option.map~f:AscResourceArn.of_xml)(Xml.childxml_arg0"arn")inletname=(Option.map~f:DataLakeNamespaceName.of_xml)(Xml.childxml_arg0"name")inletinstanceId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"instanceId")inmake?lastModifiedTime?createdTime?description?arn?name?instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastModifiedTime=field_mapjson__"lastModifiedTime"Timestamp.of_jsoninletcreatedTime=field_mapjson__"createdTime"Timestamp.of_jsoninletdescription=field_mapjson__"description"DataLakeNamespaceDescription.of_jsoninletarn=field_mapjson__"arn"AscResourceArn.of_jsoninletname=field_mapjson__"name"DataLakeNamespaceName.of_jsoninletinstanceId=field_mapjson__"instanceId"UUID.of_jsoninmake?lastModifiedTime?createdTime?description?arn?name?instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The data lake namespace details."]moduleDataLakeDataset=structtypenonrect={instanceId:UUID.toption[@ocaml.doc"The Amazon Web Services Supply Chain instance identifier."];namespace:DataLakeNamespaceName.toption[@ocaml.doc"The namespace of the dataset, besides the custom defined namespace, every instance comes with below pre-defined namespaces: asc - For information on the Amazon Web Services Supply Chain supported datasets see https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html. default - For datasets with custom user-defined schemas."];name:DataLakeDatasetName.toption[@ocaml.doc"The name of the dataset. For asc namespace, the name must be one of the supported data entities under https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html."];arn:AscResourceArn.toption[@ocaml.doc"The arn of the dataset."];schema:DataLakeDatasetSchema.toption[@ocaml.doc"The schema of the dataset."];description:DataLakeDatasetDescription.toption[@ocaml.doc"The description of the dataset."];partitionSpec:DataLakeDatasetPartitionSpec.toption;createdTime:Timestamp.toption[@ocaml.doc"The creation time of the dataset."];lastModifiedTime:Timestamp.toption[@ocaml.doc"The last modified time of the dataset."]}letmake?instanceId=fun?namespace->fun?name->fun?arn->fun?schema->fun?description->fun?partitionSpec->fun?createdTime->fun?lastModifiedTime->fun()->{instanceId;namespace;name;arn;schema;description;partitionSpec;createdTime;lastModifiedTime}letto_valuex=structure_to_value[("instanceId",(Option.mapx.instanceId~f:UUID.to_value));("namespace",(Option.mapx.namespace~f:DataLakeNamespaceName.to_value));("name",(Option.mapx.name~f:DataLakeDatasetName.to_value));("arn",(Option.mapx.arn~f:AscResourceArn.to_value));("schema",(Option.mapx.schema~f:DataLakeDatasetSchema.to_value));("description",(Option.mapx.description~f:DataLakeDatasetDescription.to_value));("partitionSpec",(Option.mapx.partitionSpec~f:DataLakeDatasetPartitionSpec.to_value));("createdTime",(Option.mapx.createdTime~f:Timestamp.to_value));("lastModifiedTime",(Option.mapx.lastModifiedTime~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastModifiedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"lastModifiedTime")inletcreatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdTime")inletpartitionSpec=(Option.map~f:DataLakeDatasetPartitionSpec.of_xml)(Xml.childxml_arg0"partitionSpec")inletdescription=(Option.map~f:DataLakeDatasetDescription.of_xml)(Xml.childxml_arg0"description")inletschema=(Option.map~f:DataLakeDatasetSchema.of_xml)(Xml.childxml_arg0"schema")inletarn=(Option.map~f:AscResourceArn.of_xml)(Xml.childxml_arg0"arn")inletname=(Option.map~f:DataLakeDatasetName.of_xml)(Xml.childxml_arg0"name")inletnamespace=(Option.map~f:DataLakeNamespaceName.of_xml)(Xml.childxml_arg0"namespace")inletinstanceId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"instanceId")inmake?lastModifiedTime?createdTime?partitionSpec?description?schema?arn?name?namespace?instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastModifiedTime=field_mapjson__"lastModifiedTime"Timestamp.of_jsoninletcreatedTime=field_mapjson__"createdTime"Timestamp.of_jsoninletpartitionSpec=field_mapjson__"partitionSpec"DataLakeDatasetPartitionSpec.of_jsoninletdescription=field_mapjson__"description"DataLakeDatasetDescription.of_jsoninletschema=field_mapjson__"schema"DataLakeDatasetSchema.of_jsoninletarn=field_mapjson__"arn"AscResourceArn.of_jsoninletname=field_mapjson__"name"DataLakeDatasetName.of_jsoninletnamespace=field_mapjson__"namespace"DataLakeNamespaceName.of_jsoninletinstanceId=field_mapjson__"instanceId"UUID.of_jsoninmake?lastModifiedTime?createdTime?partitionSpec?description?schema?arn?name?namespace?instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The data lake dataset details."]moduleDataIntegrationFlow=structtypenonrect={instanceId:UUID.toption[@ocaml.doc"The DataIntegrationFlow instance ID."];name:DataIntegrationFlowName.toption[@ocaml.doc"The DataIntegrationFlow name."];sources:DataIntegrationFlowSourceList.toption[@ocaml.doc"The DataIntegrationFlow source configurations."];transformation:DataIntegrationFlowTransformation.toption[@ocaml.doc"The DataIntegrationFlow transformation configurations."];target:DataIntegrationFlowTarget.toption[@ocaml.doc"The DataIntegrationFlow target configuration."];createdTime:Timestamp.toption[@ocaml.doc"The DataIntegrationFlow creation timestamp."];lastModifiedTime:Timestamp.toption[@ocaml.doc"The DataIntegrationFlow last modified timestamp."]}letmake?instanceId=fun?name->fun?sources->fun?transformation->fun?target->fun?createdTime->fun?lastModifiedTime->fun()->{instanceId;name;sources;transformation;target;createdTime;lastModifiedTime}letto_valuex=structure_to_value[("instanceId",(Option.mapx.instanceId~f:UUID.to_value));("name",(Option.mapx.name~f:DataIntegrationFlowName.to_value));("sources",(Option.mapx.sources~f:DataIntegrationFlowSourceList.to_value));("transformation",(Option.mapx.transformation~f:DataIntegrationFlowTransformation.to_value));("target",(Option.mapx.target~f:DataIntegrationFlowTarget.to_value));("createdTime",(Option.mapx.createdTime~f:Timestamp.to_value));("lastModifiedTime",(Option.mapx.lastModifiedTime~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastModifiedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"lastModifiedTime")inletcreatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdTime")inlettarget=(Option.map~f:DataIntegrationFlowTarget.of_xml)(Xml.childxml_arg0"target")inlettransformation=(Option.map~f:DataIntegrationFlowTransformation.of_xml)(Xml.childxml_arg0"transformation")inletsources=(Option.map~f:DataIntegrationFlowSourceList.of_xml)(Xml.childxml_arg0"sources")inletname=(Option.map~f:DataIntegrationFlowName.of_xml)(Xml.childxml_arg0"name")inletinstanceId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"instanceId")inmake?lastModifiedTime?createdTime?target?transformation?sources?name?instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastModifiedTime=field_mapjson__"lastModifiedTime"Timestamp.of_jsoninletcreatedTime=field_mapjson__"createdTime"Timestamp.of_jsoninlettarget=field_mapjson__"target"DataIntegrationFlowTarget.of_jsoninlettransformation=field_mapjson__"transformation"DataIntegrationFlowTransformation.of_jsoninletsources=field_mapjson__"sources"DataIntegrationFlowSourceList.of_jsoninletname=field_mapjson__"name"DataIntegrationFlowName.of_jsoninletinstanceId=field_mapjson__"instanceId"UUID.of_jsoninmake?lastModifiedTime?createdTime?target?transformation?sources?name?instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The DataIntegrationFlow details."]moduleDataIntegrationFlowExecution=structtypenonrect={instanceId:UUID.toption[@ocaml.doc"The flow execution's instanceId."];flowName:DataIntegrationFlowName.toption[@ocaml.doc"The flow execution's flowName."];executionId:UUID.toption[@ocaml.doc"The flow executionId."];status:DataIntegrationFlowExecutionStatus.toption[@ocaml.doc"The status of flow execution."];sourceInfo:DataIntegrationFlowExecutionSourceInfo.toption[@ocaml.doc"The source information for a flow execution."];message:String_.toption[@ocaml.doc"The failure message (if any) of failed flow execution."];startTime:Timestamp.toption[@ocaml.doc"The flow execution start timestamp."];endTime:Timestamp.toption[@ocaml.doc"The flow execution end timestamp."];outputMetadata:DataIntegrationFlowExecutionOutputMetadata.toption[@ocaml.doc"The flow execution output metadata."]}letmake?instanceId=fun?flowName->fun?executionId->fun?status->fun?sourceInfo->fun?message->fun?startTime->fun?endTime->fun?outputMetadata->fun()->{instanceId;flowName;executionId;status;sourceInfo;message;startTime;endTime;outputMetadata}letto_valuex=structure_to_value[("instanceId",(Option.mapx.instanceId~f:UUID.to_value));("flowName",(Option.mapx.flowName~f:DataIntegrationFlowName.to_value));("executionId",(Option.mapx.executionId~f:UUID.to_value));("status",(Option.mapx.status~f:DataIntegrationFlowExecutionStatus.to_value));("sourceInfo",(Option.mapx.sourceInfo~f:DataIntegrationFlowExecutionSourceInfo.to_value));("message",(Option.mapx.message~f:String_.to_value));("startTime",(Option.mapx.startTime~f:Timestamp.to_value));("endTime",(Option.mapx.endTime~f:Timestamp.to_value));("outputMetadata",(Option.mapx.outputMetadata~f:DataIntegrationFlowExecutionOutputMetadata.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoutputMetadata=(Option.map~f:DataIntegrationFlowExecutionOutputMetadata.of_xml)(Xml.childxml_arg0"outputMetadata")inletendTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"endTime")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"startTime")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inletsourceInfo=(Option.map~f:DataIntegrationFlowExecutionSourceInfo.of_xml)(Xml.childxml_arg0"sourceInfo")inletstatus=(Option.map~f:DataIntegrationFlowExecutionStatus.of_xml)(Xml.childxml_arg0"status")inletexecutionId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"executionId")inletflowName=(Option.map~f:DataIntegrationFlowName.of_xml)(Xml.childxml_arg0"flowName")inletinstanceId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"instanceId")inmake?outputMetadata?endTime?startTime?message?sourceInfo?status?executionId?flowName?instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoutputMetadata=field_mapjson__"outputMetadata"DataIntegrationFlowExecutionOutputMetadata.of_jsoninletendTime=field_mapjson__"endTime"Timestamp.of_jsoninletstartTime=field_mapjson__"startTime"Timestamp.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninletsourceInfo=field_mapjson__"sourceInfo"DataIntegrationFlowExecutionSourceInfo.of_jsoninletstatus=field_mapjson__"status"DataIntegrationFlowExecutionStatus.of_jsoninletexecutionId=field_mapjson__"executionId"UUID.of_jsoninletflowName=field_mapjson__"flowName"DataIntegrationFlowName.of_jsoninletinstanceId=field_mapjson__"instanceId"UUID.of_jsoninmake?outputMetadata?endTime?startTime?message?sourceInfo?status?executionId?flowName?instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The flow execution details."]moduleDataIntegrationEvent=structtypenonrect={instanceId:UUID.toption[@ocaml.doc"The AWS Supply Chain instance identifier."];eventId:UUID.toption[@ocaml.doc"The unique event identifier."];eventType:DataIntegrationEventType.toption[@ocaml.doc"The data event type."];eventGroupId:DataIntegrationEventGroupId.toption[@ocaml.doc"Event identifier (for example, orderId for InboundOrder) used for data sharding or partitioning."];eventTimestamp:Timestamp.toption[@ocaml.doc"The event timestamp (in epoch seconds)."];datasetTargetDetails:DataIntegrationEventDatasetTargetDetails.toption[@ocaml.doc"The target dataset details for a DATASET event type."]}letmake?instanceId=fun?eventId->fun?eventType->fun?eventGroupId->fun?eventTimestamp->fun?datasetTargetDetails->fun()->{instanceId;eventId;eventType;eventGroupId;eventTimestamp;datasetTargetDetails}letto_valuex=structure_to_value[("instanceId",(Option.mapx.instanceId~f:UUID.to_value));("eventId",(Option.mapx.eventId~f:UUID.to_value));("eventType",(Option.mapx.eventType~f:DataIntegrationEventType.to_value));("eventGroupId",(Option.mapx.eventGroupId~f:DataIntegrationEventGroupId.to_value));("eventTimestamp",(Option.mapx.eventTimestamp~f:Timestamp.to_value));("datasetTargetDetails",(Option.mapx.datasetTargetDetails~f:DataIntegrationEventDatasetTargetDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasetTargetDetails=(Option.map~f:DataIntegrationEventDatasetTargetDetails.of_xml)(Xml.childxml_arg0"datasetTargetDetails")inleteventTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"eventTimestamp")inleteventGroupId=(Option.map~f:DataIntegrationEventGroupId.of_xml)(Xml.childxml_arg0"eventGroupId")inleteventType=(Option.map~f:DataIntegrationEventType.of_xml)(Xml.childxml_arg0"eventType")inleteventId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"eventId")inletinstanceId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"instanceId")inmake?datasetTargetDetails?eventTimestamp?eventGroupId?eventType?eventId?instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasetTargetDetails=field_mapjson__"datasetTargetDetails"DataIntegrationEventDatasetTargetDetails.of_jsoninleteventTimestamp=field_mapjson__"eventTimestamp"Timestamp.of_jsoninleteventGroupId=field_mapjson__"eventGroupId"DataIntegrationEventGroupId.of_jsoninleteventType=field_mapjson__"eventType"DataIntegrationEventType.of_jsoninleteventId=field_mapjson__"eventId"UUID.of_jsoninletinstanceId=field_mapjson__"instanceId"UUID.of_jsoninmake?datasetTargetDetails?eventTimestamp?eventGroupId?eventType?eventId?instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The data integration event details."]moduleConfigurationJobStatus=structtypenonrect=|NEW|FAILED|IN_PROGRESS|QUEUED|SUCCESS|Non_static_idofstringletmakei=iletto_string=function|NEW->"NEW"|FAILED->"FAILED"|IN_PROGRESS->"IN_PROGRESS"|QUEUED->"QUEUED"|SUCCESS->"SUCCESS"|Non_static_ids->sletof_string=function|"NEW"->NEW|"FAILED"->FAILED|"IN_PROGRESS"->IN_PROGRESS|"QUEUED"->QUEUED|"SUCCESS"->SUCCESS|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 ConfigurationJobStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ConfigurationJobStatus"j)letto_json=simple_to_jsonto_valueendmoduleConfigurationS3Uri=structtypenonrect=stringletcontext_="ConfigurationS3Uri"letmakei=letopenResultinok_or_failwith((check_string_mini~min:10)>>=(fun()->check_patterni~pattern:"[sS]3://[a-z0-9][a-z0-9.-]{1,61}[a-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:"ConfigurationS3Uri"jletto_json=simple_to_jsonto_valueendmoduleAccessDeniedException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You do not have the required privileges to perform this action."]moduleConflictException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updating or deleting a resource can cause an inconsistent state."]moduleInternalServerException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Unexpected error during processing of request."]moduleResourceNotFoundException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request references a resource which does not exist."]moduleServiceQuotaExceededException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request would cause a service quota to be exceeded."]moduleThrottlingException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request was denied due to request throttling."]moduleValidationException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input does not satisfy the constraints specified by an AWS service."]moduleTagKeyList=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_valuevendmoduleTagMap=structtypenonrect=(TagKey.t*TagValue.t)listletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((TagKey.of_stringchopped),(TagValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(TagKey.to_valuex)|>(funx->(TagValue.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:TagKey.of_string~of_json:TagValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleClientToken=structtypenonrect=string[@@ocaml.doc"Unique, case-sensitive identifier that you provide to ensure the idempotency of the request."]letcontext_="ClientToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:126)>>=(fun()->check_string_mini~min:33));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ClientToken"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Unique, case-sensitive identifier that you provide to ensure the idempotency of the request."]moduleDataIntegrationEventData=structtypenonrect=stringletcontext_="DataIntegrationEventData"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1048576)>>=(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:"DataIntegrationEventData"jletto_json=simple_to_jsonto_valueendmoduleDataIntegrationEventDatasetTargetConfiguration=structtypenonrect={datasetIdentifier:DataIntegrationDatasetArn.t[@ocaml.doc"The datalake dataset ARN identifier."];operationType:DataIntegrationEventDatasetOperationType.t[@ocaml.doc"The target dataset load operation type."]}letcontext_="DataIntegrationEventDatasetTargetConfiguration"letmake~datasetIdentifier=fun~operationType->fun()->{datasetIdentifier;operationType}letto_valuex=structure_to_value[("datasetIdentifier",(Some(DataIntegrationDatasetArn.to_valuex.datasetIdentifier)));("operationType",(Some(DataIntegrationEventDatasetOperationType.to_valuex.operationType)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoperationType=DataIntegrationEventDatasetOperationType.of_xml(Xml.child_exn~context:context_xml_arg0"operationType")inletdatasetIdentifier=DataIntegrationDatasetArn.of_xml(Xml.child_exn~context:context_xml_arg0"datasetIdentifier")inmake~operationType~datasetIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoperationType=field_map_exnjson__"operationType"DataIntegrationEventDatasetOperationType.of_jsoninletdatasetIdentifier=field_map_exnjson__"datasetIdentifier"DataIntegrationDatasetArn.of_jsoninmake~operationType~datasetIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The target dataset configuration for a DATASET event type."]moduleSyntheticTimestamp_epoch_seconds=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_valueendmoduleInstanceList=structtypenonrect=Instance.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Instance.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:Instance.of_xml)letof_jsonj=list_of_json~kind:"InstanceList"~of_json:Instance.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInstanceNextToken=structtypenonrect=stringletcontext_="InstanceNextToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(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:"InstanceNextToken"jletto_json=simple_to_jsonto_valueendmoduleInstanceMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:20)>>=(fun()->check_int_mini~min:0));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 InstanceMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleInstanceNameList=structtypenonrect=InstanceName.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(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:InstanceName.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:InstanceName.of_xml)letof_jsonj=list_of_json~kind:"InstanceNameList"~of_json:InstanceName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInstanceStateList=structtypenonrect=InstanceState.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:6)>>=(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:InstanceState.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:InstanceState.of_xml)letof_jsonj=list_of_json~kind:"InstanceStateList"~of_json:InstanceState.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDataLakeNamespaceList=structtypenonrect=DataLakeNamespace.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:20)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DataLakeNamespace.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:DataLakeNamespace.of_xml)letof_jsonj=list_of_json~kind:"DataLakeNamespaceList"~of_json:DataLakeNamespace.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDataLakeNamespaceNextToken=structtypenonrect=stringletcontext_="DataLakeNamespaceNextToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:65535)>>=(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:"DataLakeNamespaceNextToken"jletto_json=simple_to_jsonto_valueendmoduleDataLakeNamespaceMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:20)>>=(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 DataLakeNamespaceMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleDataLakeDatasetList=structtypenonrect=DataLakeDataset.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:20)>>=(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:DataLakeDataset.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:DataLakeDataset.of_xml)letof_jsonj=list_of_json~kind:"DataLakeDatasetList"~of_json:DataLakeDataset.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDataLakeDatasetNextToken=structtypenonrect=stringletcontext_="DataLakeDatasetNextToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:65535)>>=(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:"DataLakeDatasetNextToken"jletto_json=simple_to_jsonto_valueendmoduleDataLakeDatasetMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:20)>>=(fun()->check_int_mini~min:0));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 DataLakeDatasetMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleDataIntegrationFlowList=structtypenonrect=DataIntegrationFlow.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DataIntegrationFlow.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:DataIntegrationFlow.of_xml)letof_jsonj=list_of_json~kind:"DataIntegrationFlowList"~of_json:DataIntegrationFlow.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDataIntegrationFlowNextToken=structtypenonrect=stringletcontext_="DataIntegrationFlowNextToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:65535)>>=(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:"DataIntegrationFlowNextToken"jletto_json=simple_to_jsonto_valueendmoduleDataIntegrationFlowMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:20)>>=(fun()->check_int_mini~min:0));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 DataIntegrationFlowMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleDataIntegrationFlowExecutionList=structtypenonrect=DataIntegrationFlowExecution.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DataIntegrationFlowExecution.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:DataIntegrationFlowExecution.of_xml)letof_jsonj=list_of_json~kind:"DataIntegrationFlowExecutionList"~of_json:DataIntegrationFlowExecution.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDataIntegrationFlowExecutionNextToken=structtypenonrect=stringletcontext_="DataIntegrationFlowExecutionNextToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:65535)>>=(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:"DataIntegrationFlowExecutionNextToken"jletto_json=simple_to_jsonto_valueendmoduleDataIntegrationFlowExecutionMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:20)>>=(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 DataIntegrationFlowExecutionMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleDataIntegrationEventList=structtypenonrect=DataIntegrationEvent.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DataIntegrationEvent.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:DataIntegrationEvent.of_xml)letof_jsonj=list_of_json~kind:"DataIntegrationEventList"~of_json:DataIntegrationEvent.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDataIntegrationEventNextToken=structtypenonrect=stringletcontext_="DataIntegrationEventNextToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:65535)>>=(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:"DataIntegrationEventNextToken"jletto_json=simple_to_jsonto_valueendmoduleDataIntegrationEventMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:20)>>=(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 DataIntegrationEventMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleBillOfMaterialsImportJob=structtypenonrect={instanceId:UUID.toption[@ocaml.doc"The BillOfMaterialsImportJob instanceId."];jobId:UUID.toption[@ocaml.doc"The BillOfMaterialsImportJob jobId."];status:ConfigurationJobStatus.toption[@ocaml.doc"The BillOfMaterialsImportJob ConfigurationJobStatus."];s3uri:ConfigurationS3Uri.toption[@ocaml.doc"The S3 URI from which the CSV is read."];message:String_.toption[@ocaml.doc"When the BillOfMaterialsImportJob has reached a terminal state, there will be a message."]}letmake?instanceId=fun?jobId->fun?status->fun?s3uri->fun?message->fun()->{instanceId;jobId;status;s3uri;message}letto_valuex=structure_to_value[("instanceId",(Option.mapx.instanceId~f:UUID.to_value));("jobId",(Option.mapx.jobId~f:UUID.to_value));("status",(Option.mapx.status~f:ConfigurationJobStatus.to_value));("s3uri",(Option.mapx.s3uri~f:ConfigurationS3Uri.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")inlets3uri=(Option.map~f:ConfigurationS3Uri.of_xml)(Xml.childxml_arg0"s3uri")inletstatus=(Option.map~f:ConfigurationJobStatus.of_xml)(Xml.childxml_arg0"status")inletjobId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"jobId")inletinstanceId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"instanceId")inmake?message?s3uri?status?jobId?instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninlets3uri=field_mapjson__"s3uri"ConfigurationS3Uri.of_jsoninletstatus=field_mapjson__"status"ConfigurationJobStatus.of_jsoninletjobId=field_mapjson__"jobId"UUID.of_jsoninletinstanceId=field_mapjson__"instanceId"UUID.of_jsoninmake?message?s3uri?status?jobId?instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The BillOfMaterialsImportJob details."]moduleUpdateInstanceResponse=structtypenonrect={instance:Instance.toption[@ocaml.doc"The instance resource data details."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?instance=fun()->{instance}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[("instance",(Option.mapx.instance~f:Instance.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinstance=(Option.map~f:Instance.of_xml)(Xml.childxml_arg0"instance")inmake?instance()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinstance=field_mapjson__"instance"Instance.of_jsoninmake?instance()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters for UpdateInstance."]moduleUpdateInstanceRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The AWS Supply Chain instance identifier."];instanceName:InstanceName.toption[@ocaml.doc"The AWS Supply Chain instance name."];instanceDescription:InstanceDescription.toption[@ocaml.doc"The AWS Supply Chain instance description."]}letcontext_="UpdateInstanceRequest"letmake?instanceName=fun?instanceDescription->fun~instanceId->fun()->{instanceName;instanceDescription;instanceId}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("instanceName",(Option.mapx.instanceName~f:InstanceName.to_value));("instanceDescription",(Option.mapx.instanceDescription~f:InstanceDescription.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinstanceDescription=(Option.map~f:InstanceDescription.of_xml)(Xml.childxml_arg0"instanceDescription")inletinstanceName=(Option.map~f:InstanceName.of_xml)(Xml.childxml_arg0"instanceName")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake?instanceDescription?instanceName~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinstanceDescription=field_mapjson__"instanceDescription"InstanceDescription.of_jsoninletinstanceName=field_mapjson__"instanceName"InstanceName.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake?instanceDescription?instanceName~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters for UpdateInstance."]moduleUpdateDataLakeNamespaceResponse=structtypenonrect={namespace:DataLakeNamespace.toption[@ocaml.doc"The updated namespace details."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?namespace=fun()->{namespace}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[("namespace",(Option.mapx.namespace~f:DataLakeNamespace.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnamespace=(Option.map~f:DataLakeNamespace.of_xml)(Xml.childxml_arg0"namespace")inmake?namespace()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnamespace=field_mapjson__"namespace"DataLakeNamespace.of_jsoninmake?namespace()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters of UpdateDataLakeNamespace."]moduleUpdateDataLakeNamespaceRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The Amazon Web Services Chain instance identifier."];name:DataLakeNamespaceName.t[@ocaml.doc"The name of the namespace. Noted you cannot update namespace with name starting with asc, default, scn, aws, amazon, amzn"];description:DataLakeNamespaceDescription.toption[@ocaml.doc"The updated description of the data lake namespace."]}letcontext_="UpdateDataLakeNamespaceRequest"letmake?description=fun~instanceId->fun~name->fun()->{description;instanceId;name}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("name",(Some(DataLakeNamespaceName.to_valuex.name)));("description",(Option.mapx.description~f:DataLakeNamespaceDescription.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdescription=(Option.map~f:DataLakeNamespaceDescription.of_xml)(Xml.childxml_arg0"description")inletname=DataLakeNamespaceName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake?description~name~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdescription=field_mapjson__"description"DataLakeNamespaceDescription.of_jsoninletname=field_map_exnjson__"name"DataLakeNamespaceName.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake?description~name~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters of UpdateDataLakeNamespace."]moduleUpdateDataLakeDatasetResponse=structtypenonrect={dataset:DataLakeDataset.toption[@ocaml.doc"The updated dataset details."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?dataset=fun()->{dataset}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[("dataset",(Option.mapx.dataset~f:DataLakeDataset.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataset=(Option.map~f:DataLakeDataset.of_xml)(Xml.childxml_arg0"dataset")inmake?dataset()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataset=field_mapjson__"dataset"DataLakeDataset.of_jsoninmake?dataset()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters of UpdateDataLakeDataset."]moduleUpdateDataLakeDatasetRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The Amazon Web Services Chain instance identifier."];namespace:DataLakeNamespaceName.t[@ocaml.doc"The namespace of the dataset, besides the custom defined namespace, every instance comes with below pre-defined namespaces: asc - For information on the Amazon Web Services Supply Chain supported datasets see https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html. default - For datasets with custom user-defined schemas."];name:DataLakeDatasetName.t[@ocaml.doc"The name of the dataset. For asc namespace, the name must be one of the supported data entities under https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html."];description:DataLakeDatasetDescription.toption[@ocaml.doc"The updated description of the data lake dataset."]}letcontext_="UpdateDataLakeDatasetRequest"letmake?description=fun~instanceId->fun~namespace->fun~name->fun()->{description;instanceId;namespace;name}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("namespace",(Some(DataLakeNamespaceName.to_valuex.namespace)));("name",(Some(DataLakeDatasetName.to_valuex.name)));("description",(Option.mapx.description~f:DataLakeDatasetDescription.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdescription=(Option.map~f:DataLakeDatasetDescription.of_xml)(Xml.childxml_arg0"description")inletname=DataLakeDatasetName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inletnamespace=DataLakeNamespaceName.of_xml(Xml.child_exn~context:context_xml_arg0"namespace")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake?description~name~namespace~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdescription=field_mapjson__"description"DataLakeDatasetDescription.of_jsoninletname=field_map_exnjson__"name"DataLakeDatasetName.of_jsoninletnamespace=field_map_exnjson__"namespace"DataLakeNamespaceName.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake?description~name~namespace~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters of UpdateDataLakeDataset."]moduleUpdateDataIntegrationFlowResponse=structtypenonrect={flow:DataIntegrationFlow.toption[@ocaml.doc"The details of the updated DataIntegrationFlow."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?flow=fun()->{flow}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[("flow",(Option.mapx.flow~f:DataIntegrationFlow.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letflow=(Option.map~f:DataIntegrationFlow.of_xml)(Xml.childxml_arg0"flow")inmake?flow()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letflow=field_mapjson__"flow"DataIntegrationFlow.of_jsoninmake?flow()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters for UpdateDataIntegrationFlow."]moduleUpdateDataIntegrationFlowRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The Amazon Web Services Supply Chain instance identifier."];name:DataIntegrationFlowName.t[@ocaml.doc"The name of the DataIntegrationFlow to be updated."];sources:DataIntegrationFlowSourceList.toption[@ocaml.doc"The new source configurations for the DataIntegrationFlow."];transformation:DataIntegrationFlowTransformation.toption[@ocaml.doc"The new transformation configurations for the DataIntegrationFlow."];target:DataIntegrationFlowTarget.toption[@ocaml.doc"The new target configurations for the DataIntegrationFlow."]}letcontext_="UpdateDataIntegrationFlowRequest"letmake?sources=fun?transformation->fun?target->fun~instanceId->fun~name->fun()->{sources;transformation;target;instanceId;name}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("name",(Some(DataIntegrationFlowName.to_valuex.name)));("sources",(Option.mapx.sources~f:DataIntegrationFlowSourceList.to_value));("transformation",(Option.mapx.transformation~f:DataIntegrationFlowTransformation.to_value));("target",(Option.mapx.target~f:DataIntegrationFlowTarget.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettarget=(Option.map~f:DataIntegrationFlowTarget.of_xml)(Xml.childxml_arg0"target")inlettransformation=(Option.map~f:DataIntegrationFlowTransformation.of_xml)(Xml.childxml_arg0"transformation")inletsources=(Option.map~f:DataIntegrationFlowSourceList.of_xml)(Xml.childxml_arg0"sources")inletname=DataIntegrationFlowName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake?target?transformation?sources~name~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettarget=field_mapjson__"target"DataIntegrationFlowTarget.of_jsoninlettransformation=field_mapjson__"transformation"DataIntegrationFlowTransformation.of_jsoninletsources=field_mapjson__"sources"DataIntegrationFlowSourceList.of_jsoninletname=field_map_exnjson__"name"DataIntegrationFlowName.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake?target?transformation?sources~name~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters for UpdateDataIntegrationFlow."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()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))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters of UntagResource."]moduleUntagResourceRequest=structtypenonrect={resourceArn:AscResourceArn.t[@ocaml.doc"The Amazon Web Services Supply chain resource ARN that needs to be untagged."];tagKeys:TagKeyList.t[@ocaml.doc"The list of tag keys to be deleted for an Amazon Web Services Supply Chain resource."]}letcontext_="UntagResourceRequest"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("resourceArn",(Some(AscResourceArn.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=AscResourceArn.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"AscResourceArn.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters of UntagResource."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()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))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters for TagResource."]moduleTagResourceRequest=structtypenonrect={resourceArn:AscResourceArn.t[@ocaml.doc"The Amazon Web Services Supply chain resource ARN that needs to be tagged."];tags:TagMap.t[@ocaml.doc"The tags of the Amazon Web Services Supply chain resource to be created."]}letcontext_="TagResourceRequest"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("resourceArn",(Some(AscResourceArn.to_valuex.resourceArn)));("tags",(Some(TagMap.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagMap.of_xml(Xml.child_exn~context:context_xml_arg0"tags")inletresourceArn=AscResourceArn.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"TagMap.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"AscResourceArn.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters of TagResource."]moduleSendDataIntegrationEventResponse=structtypenonrect={eventId:UUID.toption[@ocaml.doc"The unique event identifier."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?eventId=fun()->{eventId}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[("eventId",(Option.mapx.eventId~f:UUID.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteventId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"eventId")inmake?eventId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteventId=field_mapjson__"eventId"UUID.of_jsoninmake?eventId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters for SendDataIntegrationEvent."]moduleSendDataIntegrationEventRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The AWS Supply Chain instance identifier."];eventType:DataIntegrationEventType.t[@ocaml.doc"The data event type. scn.data.dataset - Send data directly to any specified dataset. scn.data.supplyplan - Send data to supply_plan dataset. scn.data.shipmentstoporder - Send data to shipment_stop_order dataset. scn.data.shipmentstop - Send data to shipment_stop dataset. scn.data.shipment - Send data to shipment dataset. scn.data.reservation - Send data to reservation dataset. scn.data.processproduct - Send data to process_product dataset. scn.data.processoperation - Send data to process_operation dataset. scn.data.processheader - Send data to process_header dataset. scn.data.forecast - Send data to forecast dataset. scn.data.inventorylevel - Send data to inv_level dataset. scn.data.inboundorder - Send data to inbound_order dataset. scn.data.inboundorderline - Send data to inbound_order_line dataset. scn.data.inboundorderlineschedule - Send data to inbound_order_line_schedule dataset. scn.data.outboundorderline - Send data to outbound_order_line dataset. scn.data.outboundshipment - Send data to outbound_shipment dataset."];data:DataIntegrationEventData.t[@ocaml.doc"The data payload of the event, should follow the data schema of the target dataset, or see Data entities supported in AWS Supply Chain. To send single data record, use JsonObject format; to send multiple data records, use JsonArray format. Note that for AWS Supply Chain dataset under asc namespace, it has a connection_id internal field that is not allowed to be provided by client directly, they will be auto populated."];eventGroupId:DataIntegrationEventGroupId.t[@ocaml.doc"Event identifier (for example, orderId for InboundOrder) used for data sharding or partitioning. Noted under one eventGroupId of same eventType and instanceId, events are processed sequentially in the order they are received by the server."];eventTimestamp:SyntheticTimestamp_epoch_seconds.toption[@ocaml.doc"The timestamp (in epoch seconds) associated with the event. If not provided, it will be assigned with current timestamp."];clientToken:ClientToken.toption[@ocaml.doc"The idempotent client token. The token is active for 8 hours, and within its lifetime, it ensures the request completes only once upon retry with same client token. If omitted, the AWS SDK generates a unique value so that AWS SDK can safely retry the request upon network errors."];datasetTarget:DataIntegrationEventDatasetTargetConfiguration.toption[@ocaml.doc"The target dataset configuration for scn.data.dataset event type."]}letcontext_="SendDataIntegrationEventRequest"letmake?eventTimestamp=fun?clientToken->fun?datasetTarget->fun~instanceId->fun~eventType->fun~data->fun~eventGroupId->fun()->{eventTimestamp;clientToken;datasetTarget;instanceId;eventType;data;eventGroupId}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("eventType",(Some(DataIntegrationEventType.to_valuex.eventType)));("data",(Some(DataIntegrationEventData.to_valuex.data)));("eventGroupId",(Some(DataIntegrationEventGroupId.to_valuex.eventGroupId)));("eventTimestamp",(Option.mapx.eventTimestamp~f:SyntheticTimestamp_epoch_seconds.to_value));("clientToken",(Option.mapx.clientToken~f:ClientToken.to_value));("datasetTarget",(Option.mapx.datasetTarget~f:DataIntegrationEventDatasetTargetConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasetTarget=(Option.map~f:DataIntegrationEventDatasetTargetConfiguration.of_xml)(Xml.childxml_arg0"datasetTarget")inletclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"clientToken")inleteventTimestamp=(Option.map~f:SyntheticTimestamp_epoch_seconds.of_xml)(Xml.childxml_arg0"eventTimestamp")inleteventGroupId=DataIntegrationEventGroupId.of_xml(Xml.child_exn~context:context_xml_arg0"eventGroupId")inletdata=DataIntegrationEventData.of_xml(Xml.child_exn~context:context_xml_arg0"data")inleteventType=DataIntegrationEventType.of_xml(Xml.child_exn~context:context_xml_arg0"eventType")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake?datasetTarget?clientToken?eventTimestamp~eventGroupId~data~eventType~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasetTarget=field_mapjson__"datasetTarget"DataIntegrationEventDatasetTargetConfiguration.of_jsoninletclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninleteventTimestamp=field_mapjson__"eventTimestamp"SyntheticTimestamp_epoch_seconds.of_jsoninleteventGroupId=field_map_exnjson__"eventGroupId"DataIntegrationEventGroupId.of_jsoninletdata=field_map_exnjson__"data"DataIntegrationEventData.of_jsoninleteventType=field_map_exnjson__"eventType"DataIntegrationEventType.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake?datasetTarget?clientToken?eventTimestamp~eventGroupId~data~eventType~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters for SendDataIntegrationEvent."]moduleListTagsForResourceResponse=structtypenonrect={tags:TagMap.toption[@ocaml.doc"The tags added to an Amazon Web Services Supply Chain resource."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}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[("tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagMap.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters of ListTagsForResource."]moduleListTagsForResourceRequest=structtypenonrect={resourceArn:AscResourceArn.t[@ocaml.doc"The Amazon Web Services Supply chain resource ARN that needs tags to be listed."]}letcontext_="ListTagsForResourceRequest"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("resourceArn",(Some(AscResourceArn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=AscResourceArn.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"AscResourceArn.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters of ListTagsForResource."]moduleListInstancesResponse=structtypenonrect={instances:InstanceList.toption[@ocaml.doc"The list of instances resource data details."];nextToken:InstanceNextToken.toption[@ocaml.doc"The pagination token to fetch the next page of instances."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?instances=fun?nextToken->fun()->{instances;nextToken}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[("instances",(Option.mapx.instances~f:InstanceList.to_value));("nextToken",(Option.mapx.nextToken~f:InstanceNextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:InstanceNextToken.of_xml)(Xml.childxml_arg0"nextToken")inletinstances=(Option.map~f:InstanceList.of_xml)(Xml.childxml_arg0"instances")inmake?nextToken?instances()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"InstanceNextToken.of_jsoninletinstances=field_mapjson__"instances"InstanceList.of_jsoninmake?nextToken?instances()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters for ListInstances."]moduleListInstancesRequest=structtypenonrect={nextToken:InstanceNextToken.toption[@ocaml.doc"The pagination token to fetch the next page of instances."];maxResults:InstanceMaxResults.toption[@ocaml.doc"Specify the maximum number of instances to fetch in this paginated request."];instanceNameFilter:InstanceNameList.toption[@ocaml.doc"The filter to ListInstances based on their names."];instanceStateFilter:InstanceStateList.toption[@ocaml.doc"The filter to ListInstances based on their state."]}letmake?nextToken=fun?maxResults->fun?instanceNameFilter->fun?instanceStateFilter->fun()->{nextToken;maxResults;instanceNameFilter;instanceStateFilter}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:InstanceNextToken.to_value));("maxResults",(Option.mapx.maxResults~f:InstanceMaxResults.to_value));("instanceNameFilter",(Option.mapx.instanceNameFilter~f:InstanceNameList.to_value));("instanceStateFilter",(Option.mapx.instanceStateFilter~f:InstanceStateList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinstanceStateFilter=(Option.map~f:InstanceStateList.of_xml)(Xml.childxml_arg0"instanceStateFilter")inletinstanceNameFilter=(Option.map~f:InstanceNameList.of_xml)(Xml.childxml_arg0"instanceNameFilter")inletmaxResults=(Option.map~f:InstanceMaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:InstanceNextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?instanceStateFilter?instanceNameFilter?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinstanceStateFilter=field_mapjson__"instanceStateFilter"InstanceStateList.of_jsoninletinstanceNameFilter=field_mapjson__"instanceNameFilter"InstanceNameList.of_jsoninletmaxResults=field_mapjson__"maxResults"InstanceMaxResults.of_jsoninletnextToken=field_mapjson__"nextToken"InstanceNextToken.of_jsoninmake?instanceStateFilter?instanceNameFilter?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters for ListInstances."]moduleListDataLakeNamespacesResponse=structtypenonrect={namespaces:DataLakeNamespaceList.toption[@ocaml.doc"The list of fetched namespace details. Noted it only contains custom namespaces, pre-defined namespaces are not included."];nextToken:DataLakeNamespaceNextToken.toption[@ocaml.doc"The pagination token to fetch next page of namespaces."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?namespaces=fun?nextToken->fun()->{namespaces;nextToken}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[("namespaces",(Option.mapx.namespaces~f:DataLakeNamespaceList.to_value));("nextToken",(Option.mapx.nextToken~f:DataLakeNamespaceNextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:DataLakeNamespaceNextToken.of_xml)(Xml.childxml_arg0"nextToken")inletnamespaces=(Option.map~f:DataLakeNamespaceList.of_xml)(Xml.childxml_arg0"namespaces")inmake?nextToken?namespaces()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"DataLakeNamespaceNextToken.of_jsoninletnamespaces=field_mapjson__"namespaces"DataLakeNamespaceList.of_jsoninmake?nextToken?namespaces()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters of ListDataLakeNamespaces."]moduleListDataLakeNamespacesRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The Amazon Web Services Supply Chain instance identifier."];nextToken:DataLakeNamespaceNextToken.toption[@ocaml.doc"The pagination token to fetch next page of namespaces."];maxResults:DataLakeNamespaceMaxResults.toption[@ocaml.doc"The max number of namespaces to fetch in this paginated request."]}letcontext_="ListDataLakeNamespacesRequest"letmake?nextToken=fun?maxResults->fun~instanceId->fun()->{nextToken;maxResults;instanceId}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("nextToken",(Option.mapx.nextToken~f:DataLakeNamespaceNextToken.to_value));("maxResults",(Option.mapx.maxResults~f:DataLakeNamespaceMaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:DataLakeNamespaceMaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:DataLakeNamespaceNextToken.of_xml)(Xml.childxml_arg0"nextToken")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake?maxResults?nextToken~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"DataLakeNamespaceMaxResults.of_jsoninletnextToken=field_mapjson__"nextToken"DataLakeNamespaceNextToken.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake?maxResults?nextToken~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters of ListDataLakeNamespaces."]moduleListDataLakeDatasetsResponse=structtypenonrect={datasets:DataLakeDatasetList.toption[@ocaml.doc"The list of fetched dataset details."];nextToken:DataLakeDatasetNextToken.toption[@ocaml.doc"The pagination token to fetch next page of datasets."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?datasets=fun?nextToken->fun()->{datasets;nextToken}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[("datasets",(Option.mapx.datasets~f:DataLakeDatasetList.to_value));("nextToken",(Option.mapx.nextToken~f:DataLakeDatasetNextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:DataLakeDatasetNextToken.of_xml)(Xml.childxml_arg0"nextToken")inletdatasets=(Option.map~f:DataLakeDatasetList.of_xml)(Xml.childxml_arg0"datasets")inmake?nextToken?datasets()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"DataLakeDatasetNextToken.of_jsoninletdatasets=field_mapjson__"datasets"DataLakeDatasetList.of_jsoninmake?nextToken?datasets()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters of ListDataLakeDatasets."]moduleListDataLakeDatasetsRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The Amazon Web Services Supply Chain instance identifier."];namespace:DataLakeNamespaceName.t[@ocaml.doc"The namespace of the dataset, besides the custom defined namespace, every instance comes with below pre-defined namespaces: asc - For information on the Amazon Web Services Supply Chain supported datasets see https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html. default - For datasets with custom user-defined schemas."];nextToken:DataLakeDatasetNextToken.toption[@ocaml.doc"The pagination token to fetch next page of datasets."];maxResults:DataLakeDatasetMaxResults.toption[@ocaml.doc"The max number of datasets to fetch in this paginated request."]}letcontext_="ListDataLakeDatasetsRequest"letmake?nextToken=fun?maxResults->fun~instanceId->fun~namespace->fun()->{nextToken;maxResults;instanceId;namespace}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("namespace",(Some(DataLakeNamespaceName.to_valuex.namespace)));("nextToken",(Option.mapx.nextToken~f:DataLakeDatasetNextToken.to_value));("maxResults",(Option.mapx.maxResults~f:DataLakeDatasetMaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:DataLakeDatasetMaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:DataLakeDatasetNextToken.of_xml)(Xml.childxml_arg0"nextToken")inletnamespace=DataLakeNamespaceName.of_xml(Xml.child_exn~context:context_xml_arg0"namespace")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake?maxResults?nextToken~namespace~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"DataLakeDatasetMaxResults.of_jsoninletnextToken=field_mapjson__"nextToken"DataLakeDatasetNextToken.of_jsoninletnamespace=field_map_exnjson__"namespace"DataLakeNamespaceName.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake?maxResults?nextToken~namespace~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters of ListDataLakeDatasets."]moduleListDataIntegrationFlowsResponse=structtypenonrect={flows:DataIntegrationFlowList.toption[@ocaml.doc"The response parameters for ListDataIntegrationFlows."];nextToken:DataIntegrationFlowNextToken.toption[@ocaml.doc"The pagination token to fetch the next page of the DataIntegrationFlows."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?flows=fun?nextToken->fun()->{flows;nextToken}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[("flows",(Option.mapx.flows~f:DataIntegrationFlowList.to_value));("nextToken",(Option.mapx.nextToken~f:DataIntegrationFlowNextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:DataIntegrationFlowNextToken.of_xml)(Xml.childxml_arg0"nextToken")inletflows=(Option.map~f:DataIntegrationFlowList.of_xml)(Xml.childxml_arg0"flows")inmake?nextToken?flows()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"DataIntegrationFlowNextToken.of_jsoninletflows=field_mapjson__"flows"DataIntegrationFlowList.of_jsoninmake?nextToken?flows()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters for ListDataIntegrationFlows."]moduleListDataIntegrationFlowsRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The Amazon Web Services Supply Chain instance identifier."];nextToken:DataIntegrationFlowNextToken.toption[@ocaml.doc"The pagination token to fetch the next page of the DataIntegrationFlows."];maxResults:DataIntegrationFlowMaxResults.toption[@ocaml.doc"Specify the maximum number of DataIntegrationFlows to fetch in one paginated request."]}letcontext_="ListDataIntegrationFlowsRequest"letmake?nextToken=fun?maxResults->fun~instanceId->fun()->{nextToken;maxResults;instanceId}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("nextToken",(Option.mapx.nextToken~f:DataIntegrationFlowNextToken.to_value));("maxResults",(Option.mapx.maxResults~f:DataIntegrationFlowMaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:DataIntegrationFlowMaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:DataIntegrationFlowNextToken.of_xml)(Xml.childxml_arg0"nextToken")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake?maxResults?nextToken~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"DataIntegrationFlowMaxResults.of_jsoninletnextToken=field_mapjson__"nextToken"DataIntegrationFlowNextToken.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake?maxResults?nextToken~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters for ListDataIntegrationFlows."]moduleListDataIntegrationFlowExecutionsResponse=structtypenonrect={flowExecutions:DataIntegrationFlowExecutionList.toption[@ocaml.doc"The list of flow executions."];nextToken:DataIntegrationFlowExecutionNextToken.toption[@ocaml.doc"The pagination token to fetch next page of flow executions."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?flowExecutions=fun?nextToken->fun()->{flowExecutions;nextToken}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[("flowExecutions",(Option.mapx.flowExecutions~f:DataIntegrationFlowExecutionList.to_value));("nextToken",(Option.mapx.nextToken~f:DataIntegrationFlowExecutionNextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:DataIntegrationFlowExecutionNextToken.of_xml)(Xml.childxml_arg0"nextToken")inletflowExecutions=(Option.map~f:DataIntegrationFlowExecutionList.of_xml)(Xml.childxml_arg0"flowExecutions")inmake?nextToken?flowExecutions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"DataIntegrationFlowExecutionNextToken.of_jsoninletflowExecutions=field_mapjson__"flowExecutions"DataIntegrationFlowExecutionList.of_jsoninmake?nextToken?flowExecutions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters of ListFlowExecutions."]moduleListDataIntegrationFlowExecutionsRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The AWS Supply Chain instance identifier."];flowName:DataIntegrationFlowName.t[@ocaml.doc"The flow name."];nextToken:DataIntegrationFlowExecutionNextToken.toption[@ocaml.doc"The pagination token to fetch next page of flow executions."];maxResults:DataIntegrationFlowExecutionMaxResults.toption[@ocaml.doc"The number to specify the max number of flow executions to fetch in this paginated request."]}letcontext_="ListDataIntegrationFlowExecutionsRequest"letmake?nextToken=fun?maxResults->fun~instanceId->fun~flowName->fun()->{nextToken;maxResults;instanceId;flowName}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("flowName",(Some(DataIntegrationFlowName.to_valuex.flowName)));("nextToken",(Option.mapx.nextToken~f:DataIntegrationFlowExecutionNextToken.to_value));("maxResults",(Option.mapx.maxResults~f:DataIntegrationFlowExecutionMaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:DataIntegrationFlowExecutionMaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:DataIntegrationFlowExecutionNextToken.of_xml)(Xml.childxml_arg0"nextToken")inletflowName=DataIntegrationFlowName.of_xml(Xml.child_exn~context:context_xml_arg0"flowName")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake?maxResults?nextToken~flowName~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"DataIntegrationFlowExecutionMaxResults.of_jsoninletnextToken=field_mapjson__"nextToken"DataIntegrationFlowExecutionNextToken.of_jsoninletflowName=field_map_exnjson__"flowName"DataIntegrationFlowName.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake?maxResults?nextToken~flowName~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters of ListFlowExecutions."]moduleListDataIntegrationEventsResponse=structtypenonrect={events:DataIntegrationEventList.toption[@ocaml.doc"The list of data integration events."];nextToken:DataIntegrationEventNextToken.toption[@ocaml.doc"The pagination token to fetch the next page of the ListDataIntegrationEvents."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?events=fun?nextToken->fun()->{events;nextToken}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[("events",(Option.mapx.events~f:DataIntegrationEventList.to_value));("nextToken",(Option.mapx.nextToken~f:DataIntegrationEventNextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:DataIntegrationEventNextToken.of_xml)(Xml.childxml_arg0"nextToken")inletevents=(Option.map~f:DataIntegrationEventList.of_xml)(Xml.childxml_arg0"events")inmake?nextToken?events()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"DataIntegrationEventNextToken.of_jsoninletevents=field_mapjson__"events"DataIntegrationEventList.of_jsoninmake?nextToken?events()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters for ListDataIntegrationEvents."]moduleListDataIntegrationEventsRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The Amazon Web Services Supply Chain instance identifier."];eventType:DataIntegrationEventType.toption[@ocaml.doc"List data integration events for the specified eventType."];nextToken:DataIntegrationEventNextToken.toption[@ocaml.doc"The pagination token to fetch the next page of the data integration events."];maxResults:DataIntegrationEventMaxResults.toption[@ocaml.doc"Specify the maximum number of data integration events to fetch in one paginated request."]}letcontext_="ListDataIntegrationEventsRequest"letmake?eventType=fun?nextToken->fun?maxResults->fun~instanceId->fun()->{eventType;nextToken;maxResults;instanceId}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("eventType",(Option.mapx.eventType~f:DataIntegrationEventType.to_value));("nextToken",(Option.mapx.nextToken~f:DataIntegrationEventNextToken.to_value));("maxResults",(Option.mapx.maxResults~f:DataIntegrationEventMaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:DataIntegrationEventMaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:DataIntegrationEventNextToken.of_xml)(Xml.childxml_arg0"nextToken")inleteventType=(Option.map~f:DataIntegrationEventType.of_xml)(Xml.childxml_arg0"eventType")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake?maxResults?nextToken?eventType~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"DataIntegrationEventMaxResults.of_jsoninletnextToken=field_mapjson__"nextToken"DataIntegrationEventNextToken.of_jsoninleteventType=field_mapjson__"eventType"DataIntegrationEventType.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake?maxResults?nextToken?eventType~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters for ListDataIntegrationEvents."]moduleGetInstanceResponse=structtypenonrect={instance:Instance.toption[@ocaml.doc"The instance resource data details."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?instance=fun()->{instance}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[("instance",(Option.mapx.instance~f:Instance.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinstance=(Option.map~f:Instance.of_xml)(Xml.childxml_arg0"instance")inmake?instance()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinstance=field_mapjson__"instance"Instance.of_jsoninmake?instance()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters for GetInstance."]moduleGetInstanceRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The AWS Supply Chain instance identifier"]}letcontext_="GetInstanceRequest"letmake~instanceId=fun()->{instanceId}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters for GetInstance."]moduleGetDataLakeNamespaceResponse=structtypenonrect={namespace:DataLakeNamespace.toption[@ocaml.doc"The fetched namespace details."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?namespace=fun()->{namespace}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[("namespace",(Option.mapx.namespace~f:DataLakeNamespace.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnamespace=(Option.map~f:DataLakeNamespace.of_xml)(Xml.childxml_arg0"namespace")inmake?namespace()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnamespace=field_mapjson__"namespace"DataLakeNamespace.of_jsoninmake?namespace()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters for GetDataLakeNamespace."]moduleGetDataLakeNamespaceRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The Amazon Web Services Supply Chain instance identifier."];name:DataLakeNamespaceName.t[@ocaml.doc"The name of the namespace. Besides the namespaces user created, you can also specify the pre-defined namespaces: asc - Pre-defined namespace containing Amazon Web Services Supply Chain supported datasets, see https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html. default - Pre-defined namespace containing datasets with custom user-defined schemas."]}letcontext_="GetDataLakeNamespaceRequest"letmake~instanceId=fun~name->fun()->{instanceId;name}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("name",(Some(DataLakeNamespaceName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=DataLakeNamespaceName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake~name~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"name"DataLakeNamespaceName.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake~name~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters for GetDataLakeNamespace."]moduleGetDataLakeDatasetResponse=structtypenonrect={dataset:DataLakeDataset.toption[@ocaml.doc"The fetched dataset details."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?dataset=fun()->{dataset}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[("dataset",(Option.mapx.dataset~f:DataLakeDataset.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataset=(Option.map~f:DataLakeDataset.of_xml)(Xml.childxml_arg0"dataset")inmake?dataset()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataset=field_mapjson__"dataset"DataLakeDataset.of_jsoninmake?dataset()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters for GetDataLakeDataset."]moduleGetDataLakeDatasetRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The Amazon Web Services Supply Chain instance identifier."];namespace:DataLakeNamespaceName.t[@ocaml.doc"The namespace of the dataset, besides the custom defined namespace, every instance comes with below pre-defined namespaces: asc - For information on the Amazon Web Services Supply Chain supported datasets see https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html. default - For datasets with custom user-defined schemas."];name:DataLakeDatasetName.t[@ocaml.doc"The name of the dataset. For asc namespace, the name must be one of the supported data entities under https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html."]}letcontext_="GetDataLakeDatasetRequest"letmake~instanceId=fun~namespace->fun~name->fun()->{instanceId;namespace;name}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("namespace",(Some(DataLakeNamespaceName.to_valuex.namespace)));("name",(Some(DataLakeDatasetName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=DataLakeDatasetName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inletnamespace=DataLakeNamespaceName.of_xml(Xml.child_exn~context:context_xml_arg0"namespace")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake~name~namespace~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"name"DataLakeDatasetName.of_jsoninletnamespace=field_map_exnjson__"namespace"DataLakeNamespaceName.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake~name~namespace~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters for GetDataLakeDataset."]moduleGetDataIntegrationFlowResponse=structtypenonrect={flow:DataIntegrationFlow.toption[@ocaml.doc"The details of the DataIntegrationFlow returned."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?flow=fun()->{flow}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[("flow",(Option.mapx.flow~f:DataIntegrationFlow.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letflow=(Option.map~f:DataIntegrationFlow.of_xml)(Xml.childxml_arg0"flow")inmake?flow()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letflow=field_mapjson__"flow"DataIntegrationFlow.of_jsoninmake?flow()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters for GetDataIntegrationFlow."]moduleGetDataIntegrationFlowRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The Amazon Web Services Supply Chain instance identifier."];name:DataIntegrationFlowName.t[@ocaml.doc"The name of the DataIntegrationFlow created."]}letcontext_="GetDataIntegrationFlowRequest"letmake~instanceId=fun~name->fun()->{instanceId;name}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("name",(Some(DataIntegrationFlowName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=DataIntegrationFlowName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake~name~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"name"DataIntegrationFlowName.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake~name~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters for GetDataIntegrationFlow."]moduleGetDataIntegrationFlowExecutionResponse=structtypenonrect={flowExecution:DataIntegrationFlowExecution.toption[@ocaml.doc"The flow execution details."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?flowExecution=fun()->{flowExecution}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[("flowExecution",(Option.mapx.flowExecution~f:DataIntegrationFlowExecution.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letflowExecution=(Option.map~f:DataIntegrationFlowExecution.of_xml)(Xml.childxml_arg0"flowExecution")inmake?flowExecution()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letflowExecution=field_mapjson__"flowExecution"DataIntegrationFlowExecution.of_jsoninmake?flowExecution()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters of GetFlowExecution."]moduleGetDataIntegrationFlowExecutionRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The AWS Supply Chain instance identifier."];flowName:DataIntegrationFlowName.t[@ocaml.doc"The flow name."];executionId:UUID.t[@ocaml.doc"The flow execution identifier."]}letcontext_="GetDataIntegrationFlowExecutionRequest"letmake~instanceId=fun~flowName->fun~executionId->fun()->{instanceId;flowName;executionId}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("flowName",(Some(DataIntegrationFlowName.to_valuex.flowName)));("executionId",(Some(UUID.to_valuex.executionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexecutionId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"executionId")inletflowName=DataIntegrationFlowName.of_xml(Xml.child_exn~context:context_xml_arg0"flowName")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake~executionId~flowName~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexecutionId=field_map_exnjson__"executionId"UUID.of_jsoninletflowName=field_map_exnjson__"flowName"DataIntegrationFlowName.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake~executionId~flowName~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters of GetFlowExecution."]moduleGetDataIntegrationEventResponse=structtypenonrect={event:DataIntegrationEvent.toption[@ocaml.doc"The details of the DataIntegrationEvent returned."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?event=fun()->{event}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[("event",(Option.mapx.event~f:DataIntegrationEvent.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letevent=(Option.map~f:DataIntegrationEvent.of_xml)(Xml.childxml_arg0"event")inmake?event()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letevent=field_mapjson__"event"DataIntegrationEvent.of_jsoninmake?event()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters for GetDataIntegrationEvent."]moduleGetDataIntegrationEventRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The Amazon Web Services Supply Chain instance identifier."];eventId:UUID.t[@ocaml.doc"The unique event identifier."]}letcontext_="GetDataIntegrationEventRequest"letmake~instanceId=fun~eventId->fun()->{instanceId;eventId}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("eventId",(Some(UUID.to_valuex.eventId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteventId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"eventId")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake~eventId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteventId=field_map_exnjson__"eventId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake~eventId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters for GetDataIntegrationEvent."]moduleGetBillOfMaterialsImportJobResponse=structtypenonrect={job:BillOfMaterialsImportJob.toption[@ocaml.doc"The BillOfMaterialsImportJob."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?job=fun()->{job}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[("job",(Option.mapx.job~f:BillOfMaterialsImportJob.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjob=(Option.map~f:BillOfMaterialsImportJob.of_xml)(Xml.childxml_arg0"job")inmake?job()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjob=field_mapjson__"job"BillOfMaterialsImportJob.of_jsoninmake?job()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters for GetBillOfMaterialsImportJob."]moduleGetBillOfMaterialsImportJobRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The AWS Supply Chain instance identifier."];jobId:UUID.t[@ocaml.doc"The BillOfMaterialsImportJob identifier."]}letcontext_="GetBillOfMaterialsImportJobRequest"letmake~instanceId=fun~jobId->fun()->{instanceId;jobId}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("jobId",(Some(UUID.to_valuex.jobId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"jobId")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake~jobId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobId=field_map_exnjson__"jobId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake~jobId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters for GetBillOfMaterialsImportJob."]moduleDeleteInstanceResponse=structtypenonrect={instance:Instance.toption[@ocaml.doc"The AWS Supply Chain instance resource data details."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?instance=fun()->{instance}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[("instance",(Option.mapx.instance~f:Instance.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinstance=(Option.map~f:Instance.of_xml)(Xml.childxml_arg0"instance")inmake?instance()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinstance=field_mapjson__"instance"Instance.of_jsoninmake?instance()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters for DeleteInstance."]moduleDeleteInstanceRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The AWS Supply Chain instance identifier."]}letcontext_="DeleteInstanceRequest"letmake~instanceId=fun()->{instanceId}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters for DeleteInstance."]moduleDeleteDataLakeNamespaceResponse=structtypenonrect={instanceId:UUID.toption[@ocaml.doc"The AWS Supply Chain instance identifier."];name:DataLakeNamespaceName.toption[@ocaml.doc"The name of deleted namespace."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?instanceId=fun?name->fun()->{instanceId;name}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[("instanceId",(Option.mapx.instanceId~f:UUID.to_value));("name",(Option.mapx.name~f:DataLakeNamespaceName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=(Option.map~f:DataLakeNamespaceName.of_xml)(Xml.childxml_arg0"name")inletinstanceId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"instanceId")inmake?name?instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_mapjson__"name"DataLakeNamespaceName.of_jsoninletinstanceId=field_mapjson__"instanceId"UUID.of_jsoninmake?name?instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters of DeleteDataLakeNamespace."]moduleDeleteDataLakeNamespaceRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The AWS Supply Chain instance identifier."];name:DataLakeNamespaceName.t[@ocaml.doc"The name of the namespace. Noted you cannot delete pre-defined namespace like asc, default which are only deleted through instance deletion."]}letcontext_="DeleteDataLakeNamespaceRequest"letmake~instanceId=fun~name->fun()->{instanceId;name}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("name",(Some(DataLakeNamespaceName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=DataLakeNamespaceName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake~name~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"name"DataLakeNamespaceName.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake~name~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters of DeleteDataLakeNamespace."]moduleDeleteDataLakeDatasetResponse=structtypenonrect={instanceId:UUID.toption[@ocaml.doc"The AWS Supply Chain instance identifier."];namespace:DataLakeNamespaceName.toption[@ocaml.doc"The namespace of deleted dataset."];name:DataLakeDatasetName.toption[@ocaml.doc"The name of deleted dataset."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?instanceId=fun?namespace->fun?name->fun()->{instanceId;namespace;name}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[("instanceId",(Option.mapx.instanceId~f:UUID.to_value));("namespace",(Option.mapx.namespace~f:DataLakeNamespaceName.to_value));("name",(Option.mapx.name~f:DataLakeDatasetName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=(Option.map~f:DataLakeDatasetName.of_xml)(Xml.childxml_arg0"name")inletnamespace=(Option.map~f:DataLakeNamespaceName.of_xml)(Xml.childxml_arg0"namespace")inletinstanceId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"instanceId")inmake?name?namespace?instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_mapjson__"name"DataLakeDatasetName.of_jsoninletnamespace=field_mapjson__"namespace"DataLakeNamespaceName.of_jsoninletinstanceId=field_mapjson__"instanceId"UUID.of_jsoninmake?name?namespace?instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters of DeleteDataLakeDataset."]moduleDeleteDataLakeDatasetRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The AWS Supply Chain instance identifier."];namespace:DataLakeNamespaceName.t[@ocaml.doc"The namespace of the dataset, besides the custom defined namespace, every instance comes with below pre-defined namespaces: asc - For information on the Amazon Web Services Supply Chain supported datasets see https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html. default - For datasets with custom user-defined schemas."];name:DataLakeDatasetName.t[@ocaml.doc"The name of the dataset. For asc namespace, the name must be one of the supported data entities under https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html."]}letcontext_="DeleteDataLakeDatasetRequest"letmake~instanceId=fun~namespace->fun~name->fun()->{instanceId;namespace;name}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("namespace",(Some(DataLakeNamespaceName.to_valuex.namespace)));("name",(Some(DataLakeDatasetName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=DataLakeDatasetName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inletnamespace=DataLakeNamespaceName.of_xml(Xml.child_exn~context:context_xml_arg0"namespace")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake~name~namespace~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"name"DataLakeDatasetName.of_jsoninletnamespace=field_map_exnjson__"namespace"DataLakeNamespaceName.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake~name~namespace~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters of DeleteDataLakeDataset."]moduleDeleteDataIntegrationFlowResponse=structtypenonrect={instanceId:UUID.toption[@ocaml.doc"The Amazon Web Services Supply Chain instance identifier."];name:DataIntegrationFlowName.toption[@ocaml.doc"The name of the DataIntegrationFlow deleted."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?instanceId=fun?name->fun()->{instanceId;name}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[("instanceId",(Option.mapx.instanceId~f:UUID.to_value));("name",(Option.mapx.name~f:DataIntegrationFlowName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=(Option.map~f:DataIntegrationFlowName.of_xml)(Xml.childxml_arg0"name")inletinstanceId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"instanceId")inmake?name?instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_mapjson__"name"DataIntegrationFlowName.of_jsoninletinstanceId=field_mapjson__"instanceId"UUID.of_jsoninmake?name?instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters for DeleteDataIntegrationFlow."]moduleDeleteDataIntegrationFlowRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The Amazon Web Services Supply Chain instance identifier."];name:DataIntegrationFlowName.t[@ocaml.doc"The name of the DataIntegrationFlow to be deleted."]}letcontext_="DeleteDataIntegrationFlowRequest"letmake~instanceId=fun~name->fun()->{instanceId;name}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("name",(Some(DataIntegrationFlowName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=DataIntegrationFlowName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake~name~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"name"DataIntegrationFlowName.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake~name~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters for DeleteDataIntegrationFlow."]moduleCreateInstanceResponse=structtypenonrect={instance:Instance.toption[@ocaml.doc"The AWS Supply Chain instance resource data details."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?instance=fun()->{instance}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[("instance",(Option.mapx.instance~f:Instance.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinstance=(Option.map~f:Instance.of_xml)(Xml.childxml_arg0"instance")inmake?instance()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinstance=field_mapjson__"instance"Instance.of_jsoninmake?instance()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters for CreateInstance."]moduleCreateInstanceRequest=structtypenonrect={instanceName:InstanceName.toption[@ocaml.doc"The AWS Supply Chain instance name."];instanceDescription:InstanceDescription.toption[@ocaml.doc"The AWS Supply Chain instance description."];kmsKeyArn:KmsKeyArn.toption[@ocaml.doc"The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption. This is required if you do not want to use the Amazon Web Services owned KMS key. If you don't provide anything here, AWS Supply Chain uses the Amazon Web Services owned KMS key."];webAppDnsDomain:InstanceWebAppDnsDomain.toption[@ocaml.doc"The DNS subdomain of the web app. This would be \"example\" in the URL \"example.scn.global.on.aws\". You can set this to a custom value, as long as the domain isn't already being used by someone else. The name may only include alphanumeric characters and hyphens."];tags:TagMap.toption[@ocaml.doc"The Amazon Web Services tags of an instance to be created."];clientToken:ClientToken.toption[@ocaml.doc"The client token for idempotency."]}letmake?instanceName=fun?instanceDescription->fun?kmsKeyArn->fun?webAppDnsDomain->fun?tags->fun?clientToken->fun()->{instanceName;instanceDescription;kmsKeyArn;webAppDnsDomain;tags;clientToken}letto_valuex=structure_to_value[("instanceName",(Option.mapx.instanceName~f:InstanceName.to_value));("instanceDescription",(Option.mapx.instanceDescription~f:InstanceDescription.to_value));("kmsKeyArn",(Option.mapx.kmsKeyArn~f:KmsKeyArn.to_value));("webAppDnsDomain",(Option.mapx.webAppDnsDomain~f:InstanceWebAppDnsDomain.to_value));("tags",(Option.mapx.tags~f:TagMap.to_value));("clientToken",(Option.mapx.clientToken~f:ClientToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"clientToken")inlettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"tags")inletwebAppDnsDomain=(Option.map~f:InstanceWebAppDnsDomain.of_xml)(Xml.childxml_arg0"webAppDnsDomain")inletkmsKeyArn=(Option.map~f:KmsKeyArn.of_xml)(Xml.childxml_arg0"kmsKeyArn")inletinstanceDescription=(Option.map~f:InstanceDescription.of_xml)(Xml.childxml_arg0"instanceDescription")inletinstanceName=(Option.map~f:InstanceName.of_xml)(Xml.childxml_arg0"instanceName")inmake?clientToken?tags?webAppDnsDomain?kmsKeyArn?instanceDescription?instanceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninlettags=field_mapjson__"tags"TagMap.of_jsoninletwebAppDnsDomain=field_mapjson__"webAppDnsDomain"InstanceWebAppDnsDomain.of_jsoninletkmsKeyArn=field_mapjson__"kmsKeyArn"KmsKeyArn.of_jsoninletinstanceDescription=field_mapjson__"instanceDescription"InstanceDescription.of_jsoninletinstanceName=field_mapjson__"instanceName"InstanceName.of_jsoninmake?clientToken?tags?webAppDnsDomain?kmsKeyArn?instanceDescription?instanceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters for CreateInstance."]moduleCreateDataLakeNamespaceResponse=structtypenonrect={namespace:DataLakeNamespace.toption[@ocaml.doc"The detail of created namespace."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?namespace=fun()->{namespace}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[("namespace",(Option.mapx.namespace~f:DataLakeNamespace.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnamespace=(Option.map~f:DataLakeNamespace.of_xml)(Xml.childxml_arg0"namespace")inmake?namespace()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnamespace=field_mapjson__"namespace"DataLakeNamespace.of_jsoninmake?namespace()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters of CreateDataLakeNamespace."]moduleCreateDataLakeNamespaceRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The Amazon Web Services Supply Chain instance identifier."];name:DataLakeNamespaceName.t[@ocaml.doc"The name of the namespace. Noted you cannot create namespace with name starting with asc, default, scn, aws, amazon, amzn"];description:DataLakeNamespaceDescription.toption[@ocaml.doc"The description of the namespace."];tags:TagMap.toption[@ocaml.doc"The tags of the namespace."]}letcontext_="CreateDataLakeNamespaceRequest"letmake?description=fun?tags->fun~instanceId->fun~name->fun()->{description;tags;instanceId;name}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("name",(Some(DataLakeNamespaceName.to_valuex.name)));("description",(Option.mapx.description~f:DataLakeNamespaceDescription.to_value));("tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"tags")inletdescription=(Option.map~f:DataLakeNamespaceDescription.of_xml)(Xml.childxml_arg0"description")inletname=DataLakeNamespaceName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake?tags?description~name~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagMap.of_jsoninletdescription=field_mapjson__"description"DataLakeNamespaceDescription.of_jsoninletname=field_map_exnjson__"name"DataLakeNamespaceName.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake?tags?description~name~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters for CreateDataLakeNamespace."]moduleCreateDataLakeDatasetResponse=structtypenonrect={dataset:DataLakeDataset.toption[@ocaml.doc"The detail of created dataset."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?dataset=fun()->{dataset}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[("dataset",(Option.mapx.dataset~f:DataLakeDataset.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataset=(Option.map~f:DataLakeDataset.of_xml)(Xml.childxml_arg0"dataset")inmake?dataset()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataset=field_mapjson__"dataset"DataLakeDataset.of_jsoninmake?dataset()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters of CreateDataLakeDataset."]moduleCreateDataLakeDatasetRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The Amazon Web Services Supply Chain instance identifier."];namespace:DataLakeNamespaceName.t[@ocaml.doc"The namespace of the dataset, besides the custom defined namespace, every instance comes with below pre-defined namespaces: asc - For information on the Amazon Web Services Supply Chain supported datasets see https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html. default - For datasets with custom user-defined schemas."];name:DataLakeDatasetName.t[@ocaml.doc"The name of the dataset. For asc name space, the name must be one of the supported data entities under https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html."];schema:DataLakeDatasetSchema.toption[@ocaml.doc"The custom schema of the data lake dataset and required for dataset in default and custom namespaces."];description:DataLakeDatasetDescription.toption[@ocaml.doc"The description of the dataset."];partitionSpec:DataLakeDatasetPartitionSpec.toption[@ocaml.doc"The partition specification of the dataset. Partitioning can effectively improve the dataset query performance by reducing the amount of data scanned during query execution. But partitioning or not will affect how data get ingested by data ingestion methods, such as SendDataIntegrationEvent's dataset UPSERT will upsert records within partition (instead of within whole dataset). For more details, refer to those data ingestion documentations."];tags:TagMap.toption[@ocaml.doc"The tags of the dataset."]}letcontext_="CreateDataLakeDatasetRequest"letmake?schema=fun?description->fun?partitionSpec->fun?tags->fun~instanceId->fun~namespace->fun~name->fun()->{schema;description;partitionSpec;tags;instanceId;namespace;name}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("namespace",(Some(DataLakeNamespaceName.to_valuex.namespace)));("name",(Some(DataLakeDatasetName.to_valuex.name)));("schema",(Option.mapx.schema~f:DataLakeDatasetSchema.to_value));("description",(Option.mapx.description~f:DataLakeDatasetDescription.to_value));("partitionSpec",(Option.mapx.partitionSpec~f:DataLakeDatasetPartitionSpec.to_value));("tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"tags")inletpartitionSpec=(Option.map~f:DataLakeDatasetPartitionSpec.of_xml)(Xml.childxml_arg0"partitionSpec")inletdescription=(Option.map~f:DataLakeDatasetDescription.of_xml)(Xml.childxml_arg0"description")inletschema=(Option.map~f:DataLakeDatasetSchema.of_xml)(Xml.childxml_arg0"schema")inletname=DataLakeDatasetName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inletnamespace=DataLakeNamespaceName.of_xml(Xml.child_exn~context:context_xml_arg0"namespace")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake?tags?partitionSpec?description?schema~name~namespace~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagMap.of_jsoninletpartitionSpec=field_mapjson__"partitionSpec"DataLakeDatasetPartitionSpec.of_jsoninletdescription=field_mapjson__"description"DataLakeDatasetDescription.of_jsoninletschema=field_mapjson__"schema"DataLakeDatasetSchema.of_jsoninletname=field_map_exnjson__"name"DataLakeDatasetName.of_jsoninletnamespace=field_map_exnjson__"namespace"DataLakeNamespaceName.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake?tags?partitionSpec?description?schema~name~namespace~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters for CreateDataLakeDataset."]moduleCreateDataIntegrationFlowResponse=structtypenonrect={instanceId:UUID.toption[@ocaml.doc"The Amazon Web Services Supply Chain instance identifier."];name:DataIntegrationFlowName.toption[@ocaml.doc"The name of the DataIntegrationFlow created."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?instanceId=fun?name->fun()->{instanceId;name}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[("instanceId",(Option.mapx.instanceId~f:UUID.to_value));("name",(Option.mapx.name~f:DataIntegrationFlowName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=(Option.map~f:DataIntegrationFlowName.of_xml)(Xml.childxml_arg0"name")inletinstanceId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"instanceId")inmake?name?instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_mapjson__"name"DataIntegrationFlowName.of_jsoninletinstanceId=field_mapjson__"instanceId"UUID.of_jsoninmake?name?instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters for CreateDataIntegrationFlow."]moduleCreateDataIntegrationFlowRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The Amazon Web Services Supply Chain instance identifier."];name:DataIntegrationFlowName.t[@ocaml.doc"Name of the DataIntegrationFlow."];sources:DataIntegrationFlowSourceList.t[@ocaml.doc"The source configurations for DataIntegrationFlow."];transformation:DataIntegrationFlowTransformation.t[@ocaml.doc"The transformation configurations for DataIntegrationFlow."];target:DataIntegrationFlowTarget.t[@ocaml.doc"The target configurations for DataIntegrationFlow."];tags:TagMap.toption[@ocaml.doc"The tags of the DataIntegrationFlow to be created"]}letcontext_="CreateDataIntegrationFlowRequest"letmake?tags=fun~instanceId->fun~name->fun~sources->fun~transformation->fun~target->fun()->{tags;instanceId;name;sources;transformation;target}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("name",(Some(DataIntegrationFlowName.to_valuex.name)));("sources",(Some(DataIntegrationFlowSourceList.to_valuex.sources)));("transformation",(Some(DataIntegrationFlowTransformation.to_valuex.transformation)));("target",(Some(DataIntegrationFlowTarget.to_valuex.target)));("tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"tags")inlettarget=DataIntegrationFlowTarget.of_xml(Xml.child_exn~context:context_xml_arg0"target")inlettransformation=DataIntegrationFlowTransformation.of_xml(Xml.child_exn~context:context_xml_arg0"transformation")inletsources=DataIntegrationFlowSourceList.of_xml(Xml.child_exn~context:context_xml_arg0"sources")inletname=DataIntegrationFlowName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake?tags~target~transformation~sources~name~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagMap.of_jsoninlettarget=field_map_exnjson__"target"DataIntegrationFlowTarget.of_jsoninlettransformation=field_map_exnjson__"transformation"DataIntegrationFlowTransformation.of_jsoninletsources=field_map_exnjson__"sources"DataIntegrationFlowSourceList.of_jsoninletname=field_map_exnjson__"name"DataIntegrationFlowName.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake?tags~target~transformation~sources~name~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters for CreateDataIntegrationFlow."]moduleCreateBillOfMaterialsImportJobResponse=structtypenonrect={jobId:UUID.toption[@ocaml.doc"The new BillOfMaterialsImportJob identifier."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?jobId=fun()->{jobId}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[("jobId",(Option.mapx.jobId~f:UUID.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"jobId")inmake?jobId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobId=field_mapjson__"jobId"UUID.of_jsoninmake?jobId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response parameters of CreateBillOfMaterialsImportJob."]moduleCreateBillOfMaterialsImportJobRequest=structtypenonrect={instanceId:UUID.t[@ocaml.doc"The AWS Supply Chain instance identifier."];s3uri:ConfigurationS3Uri.t[@ocaml.doc"The S3 URI of the CSV file to be imported. The bucket must grant permissions for AWS Supply Chain to read the file."];clientToken:ClientToken.toption[@ocaml.doc"An idempotency token ensures the API request is only completed no more than once. This way, retrying the request will not trigger the operation multiple times. A client token is a unique, case-sensitive string of 33 to 128 ASCII characters. To make an idempotent API request, specify a client token in the request. You should not reuse the same client token for other requests. If you retry a successful request with the same client token, the request will succeed with no further actions being taken, and you will receive the same API response as the original successful request."]}letcontext_="CreateBillOfMaterialsImportJobRequest"letmake?clientToken=fun~instanceId->fun~s3uri->fun()->{clientToken;instanceId;s3uri}letto_valuex=structure_to_value[("instanceId",(Some(UUID.to_valuex.instanceId)));("s3uri",(Some(ConfigurationS3Uri.to_valuex.s3uri)));("clientToken",(Option.mapx.clientToken~f:ClientToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"clientToken")inlets3uri=ConfigurationS3Uri.of_xml(Xml.child_exn~context:context_xml_arg0"s3uri")inletinstanceId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"instanceId")inmake?clientToken~s3uri~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninlets3uri=field_map_exnjson__"s3uri"ConfigurationS3Uri.of_jsoninletinstanceId=field_map_exnjson__"instanceId"UUID.of_jsoninmake?clientToken~s3uri~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters for CreateBillOfMaterialsImportJob."]