12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054(* 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.finspace_dataletapiVersion="2020-07-13"letendpointPrefix="finspace-api"letserviceFullName="FinSpace Public API"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="FinSpace Data"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[]))])moduleColumnDataType=structtypenonrect=|STRING|CHAR|INTEGER|TINYINT|SMALLINT|BIGINT|FLOAT|DOUBLE|DATE|DATETIME|BOOLEAN|BINARY|Non_static_idofstringletmakei=iletto_string=function|STRING->"STRING"|CHAR->"CHAR"|INTEGER->"INTEGER"|TINYINT->"TINYINT"|SMALLINT->"SMALLINT"|BIGINT->"BIGINT"|FLOAT->"FLOAT"|DOUBLE->"DOUBLE"|DATE->"DATE"|DATETIME->"DATETIME"|BOOLEAN->"BOOLEAN"|BINARY->"BINARY"|Non_static_ids->sletof_string=function|"STRING"->STRING|"CHAR"->CHAR|"INTEGER"->INTEGER|"TINYINT"->TINYINT|"SMALLINT"->SMALLINT|"BIGINT"->BIGINT|"FLOAT"->FLOAT|"DOUBLE"->DOUBLE|"DATE"->DATE|"DATETIME"->DATETIME|"BOOLEAN"->BOOLEAN|"BINARY"->BINARY|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 ColumnDataType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ColumnDataType"j)letto_json=simple_to_jsonto_valueendmoduleColumnDescription=structtypenonrect=string[@@ocaml.doc"Column Description"]letcontext_="ColumnDescription"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:512)>>=(fun()->check_patterni~pattern:"[\\s\\S]*"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ColumnDescription"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Column Description"]moduleColumnName=structtypenonrect=string[@@ocaml.doc"Column Name"]letcontext_="ColumnName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:126)>>=(fun()->check_patterni~pattern:".*\\S.*"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ColumnName"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Column Name"]moduleColumnDefinition=structtypenonrect={dataType:ColumnDataType.toption[@ocaml.doc"Data type of a column. STRING \226\128\147 A String data type. CHAR \226\128\147 A char data type. INTEGER \226\128\147 An integer data type. TINYINT \226\128\147 A tinyint data type. SMALLINT \226\128\147 A smallint data type. BIGINT \226\128\147 A bigint data type. FLOAT \226\128\147 A float data type. DOUBLE \226\128\147 A double data type. DATE \226\128\147 A date data type. DATETIME \226\128\147 A datetime data type. BOOLEAN \226\128\147 A boolean data type. BINARY \226\128\147 A binary data type."];columnName:ColumnName.toption[@ocaml.doc"The name of a column."];columnDescription:ColumnDescription.toption[@ocaml.doc"Description for a column."]}letmake?dataType=fun?columnName->fun?columnDescription->fun()->{dataType;columnName;columnDescription}letto_valuex=structure_to_value[("dataType",(Option.mapx.dataType~f:ColumnDataType.to_value));("columnName",(Option.mapx.columnName~f:ColumnName.to_value));("columnDescription",(Option.mapx.columnDescription~f:ColumnDescription.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcolumnDescription=(Option.map~f:ColumnDescription.of_xml)(Xml.childxml_arg0"columnDescription")inletcolumnName=(Option.map~f:ColumnName.of_xml)(Xml.childxml_arg0"columnName")inletdataType=(Option.map~f:ColumnDataType.of_xml)(Xml.childxml_arg0"dataType")inmake?columnDescription?columnName?dataType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcolumnDescription=field_mapjson__"columnDescription"ColumnDescription.of_jsoninletcolumnName=field_mapjson__"columnName"ColumnName.of_jsoninletdataType=field_mapjson__"dataType"ColumnDataType.of_jsoninmake?columnDescription?columnName?dataType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The definition of a column in a tabular Dataset."]moduleColumnList=structtypenonrect=ColumnDefinition.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ColumnDefinition.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:ColumnDefinition.of_xml)letof_jsonj=list_of_json~kind:"ColumnList"~of_json:ColumnDefinition.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleColumnNameList=structtypenonrect=ColumnName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ColumnName.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:ColumnName.of_xml)letof_jsonj=list_of_json~kind:"ColumnNameList"~of_json:ColumnName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleStringMapKey=structtypenonrect=stringletcontext_="StringMapKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[\\s\\S]*\\S[\\s\\S]*"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"StringMapKey"jletto_json=simple_to_jsonto_valueendmoduleStringMapValue=structtypenonrect=stringletcontext_="StringMapValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1000)>>=(fun()->check_patterni~pattern:"[\\s\\S]*\\S[\\s\\S]*"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"StringMapValue"jletto_json=simple_to_jsonto_valueendmoduleApplicationPermission=structtypenonrect=|CreateDataset|ManageClusters|ManageUsersAndGroups|ManageAttributeSets|ViewAuditData|AccessNotebooks|GetTemporaryCredentials|Non_static_idofstringletmakei=iletto_string=function|CreateDataset->"CreateDataset"|ManageClusters->"ManageClusters"|ManageUsersAndGroups->"ManageUsersAndGroups"|ManageAttributeSets->"ManageAttributeSets"|ViewAuditData->"ViewAuditData"|AccessNotebooks->"AccessNotebooks"|GetTemporaryCredentials->"GetTemporaryCredentials"|Non_static_ids->sletof_string=function|"CreateDataset"->CreateDataset|"ManageClusters"->ManageClusters|"ManageUsersAndGroups"->ManageUsersAndGroups|"ManageAttributeSets"->ManageAttributeSets|"ViewAuditData"->ViewAuditData|"AccessNotebooks"->AccessNotebooks|"GetTemporaryCredentials"->GetTemporaryCredentials|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 ApplicationPermission"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ApplicationPermission"j)letto_json=simple_to_jsonto_valueendmoduleEmail=structtypenonrect=stringletcontext_="Email"letmakei=letopenResultinok_or_failwith((check_string_mini~min:4)>>=(fun()->(check_string_maxi~max:320)>>=(fun()->check_patterni~pattern:"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Email"jletto_json=simple_to_jsonto_valueendmoduleOwnerName=structtypenonrect=string[@@ocaml.doc"1 - 250 character String"]letcontext_="OwnerName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:250)>>=(fun()->check_patterni~pattern:".*\\S.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"OwnerName"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"1 - 250 character String"]modulePhoneNumber=structtypenonrect=string[@@ocaml.doc"PhoneNumber of Dataset Owner"]letcontext_="PhoneNumber"letmakei=letopenResultinok_or_failwith((check_string_mini~min:10)>>=(fun()->(check_string_maxi~max:20)>>=(fun()->check_patterni~pattern:"^[\\+0-9\\#\\,\\(][\\+0-9\\-\\.\\/\\(\\)\\,\\#\\s]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PhoneNumber"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"PhoneNumber of Dataset Owner"]moduleSchemaDefinition=structtypenonrect={columns:ColumnList.toption[@ocaml.doc"List of column definitions."];primaryKeyColumns:ColumnNameList.toption[@ocaml.doc"List of column names used for primary key."]}letmake?columns=fun?primaryKeyColumns->fun()->{columns;primaryKeyColumns}letto_valuex=structure_to_value[("columns",(Option.mapx.columns~f:ColumnList.to_value));("primaryKeyColumns",(Option.mapx.primaryKeyColumns~f:ColumnNameList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprimaryKeyColumns=(Option.map~f:ColumnNameList.of_xml)(Xml.childxml_arg0"primaryKeyColumns")inletcolumns=(Option.map~f:ColumnList.of_xml)(Xml.childxml_arg0"columns")inmake?primaryKeyColumns?columns()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprimaryKeyColumns=field_mapjson__"primaryKeyColumns"ColumnNameList.of_jsoninletcolumns=field_mapjson__"columns"ColumnList.of_jsoninmake?primaryKeyColumns?columns()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Definition for a schema on a tabular Dataset."]moduleDataViewDestinationType=structtypenonrect=string[@@ocaml.doc"DataView Destination Type"]letcontext_="DataViewDestinationType"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:"DataViewDestinationType"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"DataView Destination Type"]moduleExportFileFormat=structtypenonrect=|PARQUET|DELIMITED_TEXT|Non_static_idofstringletmakei=iletto_string=function|PARQUET->"PARQUET"|DELIMITED_TEXT->"DELIMITED_TEXT"|Non_static_ids->sletof_string=function|"PARQUET"->PARQUET|"DELIMITED_TEXT"->DELIMITED_TEXT|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 ExportFileFormat"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ExportFileFormat"j)letto_json=simple_to_jsonto_valueendmoduleS3DestinationFormatOptions=structtypenonrect=(StringMapKey.t*StringMapValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((StringMapKey.of_stringchopped),(StringMapValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(StringMapKey.to_valuex)|>(funx->(StringMapValue.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:StringMapKey.of_string~of_json:StringMapValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleErrorCategory=structtypenonrect=|VALIDATION|SERVICE_QUOTA_EXCEEDED|ACCESS_DENIED|RESOURCE_NOT_FOUND|THROTTLING|INTERNAL_SERVICE_EXCEPTION|CANCELLED|USER_RECOVERABLE|Non_static_idofstringletmakei=iletto_string=function|VALIDATION->"VALIDATION"|SERVICE_QUOTA_EXCEEDED->"SERVICE_QUOTA_EXCEEDED"|ACCESS_DENIED->"ACCESS_DENIED"|RESOURCE_NOT_FOUND->"RESOURCE_NOT_FOUND"|THROTTLING->"THROTTLING"|INTERNAL_SERVICE_EXCEPTION->"INTERNAL_SERVICE_EXCEPTION"|CANCELLED->"CANCELLED"|USER_RECOVERABLE->"USER_RECOVERABLE"|Non_static_ids->sletof_string=function|"VALIDATION"->VALIDATION|"SERVICE_QUOTA_EXCEEDED"->SERVICE_QUOTA_EXCEEDED|"ACCESS_DENIED"->ACCESS_DENIED|"RESOURCE_NOT_FOUND"->RESOURCE_NOT_FOUND|"THROTTLING"->THROTTLING|"INTERNAL_SERVICE_EXCEPTION"->INTERNAL_SERVICE_EXCEPTION|"CANCELLED"->CANCELLED|"USER_RECOVERABLE"->USER_RECOVERABLE|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 ErrorCategory"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ErrorCategory"j)letto_json=simple_to_jsonto_valueendmoduleErrorMessage=structtypenonrect=string[@@ocaml.doc"Changeset Error Message"]letcontext_="ErrorMessage"letmakei=letopenResultinok_or_failwith(check_string_maxi~max:1000);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ErrorMessage"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Changeset Error Message"]moduleStringValueLength1to255=structtypenonrect=string[@@ocaml.doc"1 - 255 character String"]letcontext_="StringValueLength1to255"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"[\\s\\S]*\\S[\\s\\S]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"StringValueLength1to255"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"1 - 255 character String"]moduleStringValueLength1to250=structtypenonrect=string[@@ocaml.doc"1 - 250 character String"]letcontext_="StringValueLength1to250"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:250)>>=(fun()->check_patterni~pattern:"[\\s\\S]*\\S[\\s\\S]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"StringValueLength1to250"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"1 - 250 character String"]moduleApiAccess=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ApiAccess"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ApiAccess"j)letto_json=simple_to_jsonto_valueendmoduleFirstName=structtypenonrect=stringletcontext_="FirstName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:50)>>=(fun()->check_patterni~pattern:".*\\S.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"FirstName"jletto_json=simple_to_jsonto_valueendmoduleLastName=structtypenonrect=stringletcontext_="LastName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:50)>>=(fun()->check_patterni~pattern:".*\\S.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LastName"jletto_json=simple_to_jsonto_valueendmoduleRoleArn=structtypenonrect=stringletcontext_="RoleArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:20)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^arn:aws[a-z\\-]*:iam::\\d{12}:role/?[a-zA-Z_0-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:"RoleArn"jletto_json=simple_to_jsonto_valueendmoduleTimestampEpoch=structtypenonrect=Int64.t[@@ocaml.doc"Milliseconds since UTC epoch"]letmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueend[@@ocaml.doc"Milliseconds since UTC epoch"]moduleUserId=structtypenonrect=stringletcontext_="UserId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:26)>>=(fun()->check_patterni~pattern:".*\\S.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"UserId"jletto_json=simple_to_jsonto_valueendmoduleUserStatus=structtypenonrect=|CREATING|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|CREATING->"CREATING"|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"CREATING"->CREATING|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration UserStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"UserStatus"j)letto_json=simple_to_jsonto_valueendmoduleUserType=structtypenonrect=|SUPER_USER|APP_USER|Non_static_idofstringletmakei=iletto_string=function|SUPER_USER->"SUPER_USER"|APP_USER->"APP_USER"|Non_static_ids->sletof_string=function|"SUPER_USER"->SUPER_USER|"APP_USER"->APP_USER|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 UserType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"UserType"j)letto_json=simple_to_jsonto_valueendmodulePermissionGroupMembershipStatus=structtypenonrect=|ADDITION_IN_PROGRESS|ADDITION_SUCCESS|REMOVAL_IN_PROGRESS|Non_static_idofstringletmakei=iletto_string=function|ADDITION_IN_PROGRESS->"ADDITION_IN_PROGRESS"|ADDITION_SUCCESS->"ADDITION_SUCCESS"|REMOVAL_IN_PROGRESS->"REMOVAL_IN_PROGRESS"|Non_static_ids->sletof_string=function|"ADDITION_IN_PROGRESS"->ADDITION_IN_PROGRESS|"ADDITION_SUCCESS"->ADDITION_SUCCESS|"REMOVAL_IN_PROGRESS"->REMOVAL_IN_PROGRESS|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 PermissionGroupMembershipStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PermissionGroupMembershipStatus"j)letto_json=simple_to_jsonto_valueendmoduleApplicationPermissionList=structtypenonrect=ApplicationPermission.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ApplicationPermission.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:ApplicationPermission.of_xml)letof_jsonj=list_of_json~kind:"ApplicationPermissionList"~of_json:ApplicationPermission.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePermissionGroupDescription=structtypenonrect=stringletcontext_="PermissionGroupDescription"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:4000)>>=(fun()->check_patterni~pattern:"[\\s\\S]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PermissionGroupDescription"jletto_json=simple_to_jsonto_valueendmodulePermissionGroupId=structtypenonrect=stringletcontext_="PermissionGroupId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:26)>>=(fun()->check_patterni~pattern:".*\\S.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PermissionGroupId"jletto_json=simple_to_jsonto_valueendmodulePermissionGroupName=structtypenonrect=stringletcontext_="PermissionGroupName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:".*\\S.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PermissionGroupName"jletto_json=simple_to_jsonto_valueendmoduleAliasString=structtypenonrect=stringletcontext_="AliasString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^alias\\/\\S+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AliasString"jletto_json=simple_to_jsonto_valueendmoduleDatasetArn=structtypenonrect=string[@@ocaml.doc"Arn of a Dataset"]letcontext_="DatasetArn"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:"DatasetArn"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Arn of a Dataset"]moduleDatasetDescription=structtypenonrect=string[@@ocaml.doc"Description of a dataset"]letcontext_="DatasetDescription"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1000)>>=(fun()->check_patterni~pattern:"[\\s\\S]*"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DatasetDescription"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Description of a dataset"]moduleDatasetId=structtypenonrect=string[@@ocaml.doc"ID for a given Dataset"]letcontext_="DatasetId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:26)>>=(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:"DatasetId"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"ID for a given Dataset"]moduleDatasetKind=structtypenonrect=|TABULAR|NON_TABULAR|Non_static_idofstringletmakei=iletto_string=function|TABULAR->"TABULAR"|NON_TABULAR->"NON_TABULAR"|Non_static_ids->sletof_string=function|"TABULAR"->TABULAR|"NON_TABULAR"->NON_TABULAR|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 DatasetKind"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DatasetKind"j)letto_json=simple_to_jsonto_valueendmoduleDatasetOwnerInfo=structtypenonrect={name:OwnerName.toption[@ocaml.doc"The name of the Dataset owner."];phoneNumber:PhoneNumber.toption[@ocaml.doc"Phone number for the Dataset owner."];email:Email.toption[@ocaml.doc"Email address for the Dataset owner."]}letmake?name=fun?phoneNumber->fun?email->fun()->{name;phoneNumber;email}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:OwnerName.to_value));("phoneNumber",(Option.mapx.phoneNumber~f:PhoneNumber.to_value));("email",(Option.mapx.email~f:Email.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letemail=(Option.map~f:Email.of_xml)(Xml.childxml_arg0"email")inletphoneNumber=(Option.map~f:PhoneNumber.of_xml)(Xml.childxml_arg0"phoneNumber")inletname=(Option.map~f:OwnerName.of_xml)(Xml.childxml_arg0"name")inmake?email?phoneNumber?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letemail=field_mapjson__"email"Email.of_jsoninletphoneNumber=field_mapjson__"phoneNumber"PhoneNumber.of_jsoninletname=field_mapjson__"name"OwnerName.of_jsoninmake?email?phoneNumber?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure for Dataset owner info."]moduleDatasetTitle=structtypenonrect=string[@@ocaml.doc"Title for a given Dataset"]letcontext_="DatasetTitle"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:".*\\S.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DatasetTitle"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Title for a given Dataset"]moduleSchemaUnion=structtypenonrect={tabularSchemaConfig:SchemaDefinition.toption[@ocaml.doc"The configuration for a schema on a tabular Dataset."]}letmake?tabularSchemaConfig=fun()->{tabularSchemaConfig}letto_valuex=structure_to_value[("tabularSchemaConfig",(Option.mapx.tabularSchemaConfig~f:SchemaDefinition.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettabularSchemaConfig=(Option.map~f:SchemaDefinition.of_xml)(Xml.childxml_arg0"tabularSchemaConfig")inmake?tabularSchemaConfig()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettabularSchemaConfig=field_mapjson__"tabularSchemaConfig"SchemaDefinition.of_jsoninmake?tabularSchemaConfig()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A union of schema types."]moduleBoolean=structtypenonrect=bool[@@ocaml.doc"Common Boolean data type"]letmakei=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_valueend[@@ocaml.doc"Common Boolean data type"]moduleDataViewArn=structtypenonrect=string[@@ocaml.doc"Arn of a DataView"]letcontext_="DataViewArn"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:"DataViewArn"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Arn of a DataView"]moduleDataViewDestinationTypeParams=structtypenonrect={destinationType:DataViewDestinationType.t[@ocaml.doc"Destination type for a Dataview. GLUE_TABLE \226\128\147 Glue table destination type. S3 \226\128\147 S3 destination type."];s3DestinationExportFileFormat:ExportFileFormat.toption[@ocaml.doc"Dataview export file format. PARQUET \226\128\147 Parquet export file format. DELIMITED_TEXT \226\128\147 Delimited text export file format."];s3DestinationExportFileFormatOptions:S3DestinationFormatOptions.toption[@ocaml.doc"Format Options for S3 Destination type. Here is an example of how you could specify the s3DestinationExportFileFormatOptions \\{ \"header\": \"true\", \"delimiter\": \",\", \"compression\": \"gzip\" \\}"]}letcontext_="DataViewDestinationTypeParams"letmake?s3DestinationExportFileFormat=fun?s3DestinationExportFileFormatOptions->fun~destinationType->fun()->{s3DestinationExportFileFormat;s3DestinationExportFileFormatOptions;destinationType}letto_valuex=structure_to_value[("destinationType",(Some(DataViewDestinationType.to_valuex.destinationType)));("s3DestinationExportFileFormat",(Option.mapx.s3DestinationExportFileFormat~f:ExportFileFormat.to_value));("s3DestinationExportFileFormatOptions",(Option.mapx.s3DestinationExportFileFormatOptions~f:S3DestinationFormatOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3DestinationExportFileFormatOptions=(Option.map~f:S3DestinationFormatOptions.of_xml)(Xml.childxml_arg0"s3DestinationExportFileFormatOptions")inlets3DestinationExportFileFormat=(Option.map~f:ExportFileFormat.of_xml)(Xml.childxml_arg0"s3DestinationExportFileFormat")inletdestinationType=DataViewDestinationType.of_xml(Xml.child_exn~context:context_xml_arg0"destinationType")inmake?s3DestinationExportFileFormatOptions?s3DestinationExportFileFormat~destinationType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3DestinationExportFileFormatOptions=field_mapjson__"s3DestinationExportFileFormatOptions"S3DestinationFormatOptions.of_jsoninlets3DestinationExportFileFormat=field_mapjson__"s3DestinationExportFileFormat"ExportFileFormat.of_jsoninletdestinationType=field_map_exnjson__"destinationType"DataViewDestinationType.of_jsoninmake?s3DestinationExportFileFormatOptions?s3DestinationExportFileFormat~destinationType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Structure for the Dataview destination type parameters."]moduleDataViewErrorInfo=structtypenonrect={errorMessage__lc1:ErrorMessage.toption[@ocaml.doc"The text of the error message."];errorCategory:ErrorCategory.toption[@ocaml.doc"The category of the error. VALIDATION \226\128\147 The inputs to this request are invalid. SERVICE_QUOTA_EXCEEDED \226\128\147 Service quotas have been exceeded. Please contact AWS support to increase quotas. ACCESS_DENIED \226\128\147 Missing required permission to perform this request. RESOURCE_NOT_FOUND \226\128\147 One or more inputs to this request were not found. THROTTLING \226\128\147 The system temporarily lacks sufficient resources to process the request. INTERNAL_SERVICE_EXCEPTION \226\128\147 An internal service error has occurred. CANCELLED \226\128\147 Cancelled. USER_RECOVERABLE \226\128\147 A user recoverable error has occurred."]}letmake?errorMessage__lc1=fun?errorCategory->fun()->{errorMessage__lc1;errorCategory}letto_valuex=structure_to_value[("ErrorMessage__lc1",(Option.mapx.errorMessage__lc1~f:ErrorMessage.to_value));("errorCategory",(Option.mapx.errorCategory~f:ErrorCategory.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorCategory=(Option.map~f:ErrorCategory.of_xml)(Xml.childxml_arg0"errorCategory")inleterrorMessage__lc1=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"ErrorMessage__lc1")inmake?errorCategory?errorMessage__lc1()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorCategory=field_mapjson__"errorCategory"ErrorCategory.of_jsoninleterrorMessage__lc1=field_mapjson__"ErrorMessage__lc1"ErrorMessage.of_jsoninmake?errorCategory?errorMessage__lc1()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure with error messages."]moduleDataViewId=structtypenonrect=string[@@ocaml.doc"DataView ID"]letcontext_="DataViewId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:26)>>=(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:"DataViewId"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"DataView ID"]moduleDataViewStatus=structtypenonrect=|RUNNING|STARTING|FAILED|CANCELLED|TIMEOUT|SUCCESS|PENDING|FAILED_CLEANUP_FAILED|Non_static_idofstringletmakei=iletto_string=function|RUNNING->"RUNNING"|STARTING->"STARTING"|FAILED->"FAILED"|CANCELLED->"CANCELLED"|TIMEOUT->"TIMEOUT"|SUCCESS->"SUCCESS"|PENDING->"PENDING"|FAILED_CLEANUP_FAILED->"FAILED_CLEANUP_FAILED"|Non_static_ids->sletof_string=function|"RUNNING"->RUNNING|"STARTING"->STARTING|"FAILED"->FAILED|"CANCELLED"->CANCELLED|"TIMEOUT"->TIMEOUT|"SUCCESS"->SUCCESS|"PENDING"->PENDING|"FAILED_CLEANUP_FAILED"->FAILED_CLEANUP_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 DataViewStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DataViewStatus"j)letto_json=simple_to_jsonto_valueendmodulePartitionColumnList=structtypenonrect=StringValueLength1to255.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StringValueLength1to255.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:StringValueLength1to255.of_xml)letof_jsonj=list_of_json~kind:"PartitionColumnList"~of_json:StringValueLength1to255.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSortColumnList=structtypenonrect=StringValueLength1to255.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StringValueLength1to255.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:StringValueLength1to255.of_xml)letof_jsonj=list_of_json~kind:"SortColumnList"~of_json:StringValueLength1to255.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleChangeType=structtypenonrect=|REPLACE|APPEND|MODIFY|Non_static_idofstringletmakei=iletto_string=function|REPLACE->"REPLACE"|APPEND->"APPEND"|MODIFY->"MODIFY"|Non_static_ids->sletof_string=function|"REPLACE"->REPLACE|"APPEND"->APPEND|"MODIFY"->MODIFY|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 ChangeType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ChangeType"j)letto_json=simple_to_jsonto_valueendmoduleChangesetArn=structtypenonrect=string[@@ocaml.doc"Arn for a given Changeset"]letcontext_="ChangesetArn"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:"ChangesetArn"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Arn for a given Changeset"]moduleChangesetErrorInfo=structtypenonrect={errorMessage__lc1:ErrorMessage.toption[@ocaml.doc"The text of the error message."];errorCategory:ErrorCategory.toption[@ocaml.doc"The category of the error. VALIDATION \226\128\147 The inputs to this request are invalid. SERVICE_QUOTA_EXCEEDED \226\128\147 Service quotas have been exceeded. Please contact AWS support to increase quotas. ACCESS_DENIED \226\128\147 Missing required permission to perform this request. RESOURCE_NOT_FOUND \226\128\147 One or more inputs to this request were not found. THROTTLING \226\128\147 The system temporarily lacks sufficient resources to process the request. INTERNAL_SERVICE_EXCEPTION \226\128\147 An internal service error has occurred. CANCELLED \226\128\147 Cancelled. USER_RECOVERABLE \226\128\147 A user recoverable error has occurred."]}letmake?errorMessage__lc1=fun?errorCategory->fun()->{errorMessage__lc1;errorCategory}letto_valuex=structure_to_value[("ErrorMessage__lc1",(Option.mapx.errorMessage__lc1~f:ErrorMessage.to_value));("errorCategory",(Option.mapx.errorCategory~f:ErrorCategory.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorCategory=(Option.map~f:ErrorCategory.of_xml)(Xml.childxml_arg0"errorCategory")inleterrorMessage__lc1=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"ErrorMessage__lc1")inmake?errorCategory?errorMessage__lc1()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorCategory=field_mapjson__"errorCategory"ErrorCategory.of_jsoninleterrorMessage__lc1=field_mapjson__"ErrorMessage__lc1"ErrorMessage.of_jsoninmake?errorCategory?errorMessage__lc1()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure with error messages."]moduleChangesetId=structtypenonrect=string[@@ocaml.doc"ID used to identify a Changeset"]letcontext_="ChangesetId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:26)>>=(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:"ChangesetId"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"ID used to identify a Changeset"]moduleFormatParams=structtypenonrect=(StringMapKey.t*StringMapValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((StringMapKey.of_stringchopped),(StringMapValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(StringMapKey.to_valuex)|>(funx->(StringMapValue.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:StringMapKey.of_string~of_json:StringMapValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleIngestionStatus=structtypenonrect=|PENDING|FAILED|SUCCESS|RUNNING|STOP_REQUESTED|Non_static_idofstringletmakei=iletto_string=function|PENDING->"PENDING"|FAILED->"FAILED"|SUCCESS->"SUCCESS"|RUNNING->"RUNNING"|STOP_REQUESTED->"STOP_REQUESTED"|Non_static_ids->sletof_string=function|"PENDING"->PENDING|"FAILED"->FAILED|"SUCCESS"->SUCCESS|"RUNNING"->RUNNING|"STOP_REQUESTED"->STOP_REQUESTED|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 IngestionStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"IngestionStatus"j)letto_json=simple_to_jsonto_valueendmoduleSourceParams=structtypenonrect=(StringMapKey.t*StringMapValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((StringMapKey.of_stringchopped),(StringMapValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(StringMapKey.to_valuex)|>(funx->(StringMapValue.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:StringMapKey.of_string~of_json:StringMapValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResourcePermission=structtypenonrect={permission:StringValueLength1to250.toption[@ocaml.doc"Permission for a resource."]}letmake?permission=fun()->{permission}letto_valuex=structure_to_value[("permission",(Option.mapx.permission~f:StringValueLength1to250.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpermission=(Option.map~f:StringValueLength1to250.of_xml)(Xml.childxml_arg0"permission")inmake?permission()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpermission=field_mapjson__"permission"StringValueLength1to250.of_jsoninmake?permission()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Resource permission for a dataset. When you create a dataset, all the other members of the same user group inherit access to the dataset. You can only create a dataset if your user group has application permission for Create Datasets. The following is a list of valid dataset permissions that you can apply: ViewDatasetDetails ReadDatasetDetails AddDatasetData CreateDataView EditDatasetMetadata DeleteDataset For more information on the dataset permissions, see Supported Dataset Permissions in the FinSpace User Guide."]moduleErrorMessage__lc1=structtypenonrect=stringletcontext_="ErrorMessage__lc1"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:"ErrorMessage__lc1"jletto_json=simple_to_jsonto_valueendmoduleUser=structtypenonrect={userId:UserId.toption[@ocaml.doc"The unique identifier for the user."];status:UserStatus.toption[@ocaml.doc"The current status of the user. CREATING \226\128\147 The user creation is in progress. ENABLED \226\128\147 The user is created and is currently active. DISABLED \226\128\147 The user is currently inactive."];firstName:FirstName.toption[@ocaml.doc"The first name of the user."];lastName:LastName.toption[@ocaml.doc"The last name of the user."];emailAddress:Email.toption[@ocaml.doc"The email address of the user. The email address serves as a uniquer identifier for each user and cannot be changed after it's created."];type_:UserType.toption[@ocaml.doc"Indicates the type of user. SUPER_USER \226\128\147 A user with permission to all the functionality and data in FinSpace. APP_USER \226\128\147 A user with specific permissions in FinSpace. The users are assigned permissions by adding them to a permission group."];apiAccess:ApiAccess.toption[@ocaml.doc"Indicates whether the user can use the GetProgrammaticAccessCredentials API to obtain credentials that can then be used to access other FinSpace Data API operations. ENABLED \226\128\147 The user has permissions to use the APIs. DISABLED \226\128\147 The user does not have permissions to use any APIs."];apiAccessPrincipalArn:RoleArn.toption[@ocaml.doc"The ARN identifier of an AWS user or role that is allowed to call the GetProgrammaticAccessCredentials API to obtain a credentials token for a specific FinSpace user. This must be an IAM role within your FinSpace account."];createTime:TimestampEpoch.toption[@ocaml.doc"The timestamp at which the user was created in FinSpace. The value is determined as epoch time in milliseconds."];lastEnabledTime:TimestampEpoch.toption[@ocaml.doc"Describes the last time the user was activated. The value is determined as epoch time in milliseconds."];lastDisabledTime:TimestampEpoch.toption[@ocaml.doc"Describes the last time the user was deactivated. The value is determined as epoch time in milliseconds."];lastModifiedTime:TimestampEpoch.toption[@ocaml.doc"Describes the last time the user was updated. The value is determined as epoch time in milliseconds."];lastLoginTime:TimestampEpoch.toption[@ocaml.doc"Describes the last time that the user logged into their account. The value is determined as epoch time in milliseconds."]}letmake?userId=fun?status->fun?firstName->fun?lastName->fun?emailAddress->fun?type_->fun?apiAccess->fun?apiAccessPrincipalArn->fun?createTime->fun?lastEnabledTime->fun?lastDisabledTime->fun?lastModifiedTime->fun?lastLoginTime->fun()->{userId;status;firstName;lastName;emailAddress;type_;apiAccess;apiAccessPrincipalArn;createTime;lastEnabledTime;lastDisabledTime;lastModifiedTime;lastLoginTime}letto_valuex=structure_to_value[("userId",(Option.mapx.userId~f:UserId.to_value));("status",(Option.mapx.status~f:UserStatus.to_value));("firstName",(Option.mapx.firstName~f:FirstName.to_value));("lastName",(Option.mapx.lastName~f:LastName.to_value));("emailAddress",(Option.mapx.emailAddress~f:Email.to_value));("type",(Option.mapx.type_~f:UserType.to_value));("apiAccess",(Option.mapx.apiAccess~f:ApiAccess.to_value));("apiAccessPrincipalArn",(Option.mapx.apiAccessPrincipalArn~f:RoleArn.to_value));("createTime",(Option.mapx.createTime~f:TimestampEpoch.to_value));("lastEnabledTime",(Option.mapx.lastEnabledTime~f:TimestampEpoch.to_value));("lastDisabledTime",(Option.mapx.lastDisabledTime~f:TimestampEpoch.to_value));("lastModifiedTime",(Option.mapx.lastModifiedTime~f:TimestampEpoch.to_value));("lastLoginTime",(Option.mapx.lastLoginTime~f:TimestampEpoch.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastLoginTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"lastLoginTime")inletlastModifiedTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"lastModifiedTime")inletlastDisabledTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"lastDisabledTime")inletlastEnabledTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"lastEnabledTime")inletcreateTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"createTime")inletapiAccessPrincipalArn=(Option.map~f:RoleArn.of_xml)(Xml.childxml_arg0"apiAccessPrincipalArn")inletapiAccess=(Option.map~f:ApiAccess.of_xml)(Xml.childxml_arg0"apiAccess")inlettype_=(Option.map~f:UserType.of_xml)(Xml.childxml_arg0"type")inletemailAddress=(Option.map~f:Email.of_xml)(Xml.childxml_arg0"emailAddress")inletlastName=(Option.map~f:LastName.of_xml)(Xml.childxml_arg0"lastName")inletfirstName=(Option.map~f:FirstName.of_xml)(Xml.childxml_arg0"firstName")inletstatus=(Option.map~f:UserStatus.of_xml)(Xml.childxml_arg0"status")inletuserId=(Option.map~f:UserId.of_xml)(Xml.childxml_arg0"userId")inmake?lastLoginTime?lastModifiedTime?lastDisabledTime?lastEnabledTime?createTime?apiAccessPrincipalArn?apiAccess?type_?emailAddress?lastName?firstName?status?userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastLoginTime=field_mapjson__"lastLoginTime"TimestampEpoch.of_jsoninletlastModifiedTime=field_mapjson__"lastModifiedTime"TimestampEpoch.of_jsoninletlastDisabledTime=field_mapjson__"lastDisabledTime"TimestampEpoch.of_jsoninletlastEnabledTime=field_mapjson__"lastEnabledTime"TimestampEpoch.of_jsoninletcreateTime=field_mapjson__"createTime"TimestampEpoch.of_jsoninletapiAccessPrincipalArn=field_mapjson__"apiAccessPrincipalArn"RoleArn.of_jsoninletapiAccess=field_mapjson__"apiAccess"ApiAccess.of_jsoninlettype_=field_mapjson__"type"UserType.of_jsoninletemailAddress=field_mapjson__"emailAddress"Email.of_jsoninletlastName=field_mapjson__"lastName"LastName.of_jsoninletfirstName=field_mapjson__"firstName"FirstName.of_jsoninletstatus=field_mapjson__"status"UserStatus.of_jsoninletuserId=field_mapjson__"userId"UserId.of_jsoninmake?lastLoginTime?lastModifiedTime?lastDisabledTime?lastEnabledTime?createTime?apiAccessPrincipalArn?apiAccess?type_?emailAddress?lastName?firstName?status?userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details of the user."]moduleUserByPermissionGroup=structtypenonrect={userId:UserId.toption[@ocaml.doc"The unique identifier for the user."];status:UserStatus.toption[@ocaml.doc"The current status of the user. CREATING \226\128\147 The user creation is in progress. ENABLED \226\128\147 The user is created and is currently active. DISABLED \226\128\147 The user is currently inactive."];firstName:FirstName.toption[@ocaml.doc"The first name of the user."];lastName:LastName.toption[@ocaml.doc"The last name of the user."];emailAddress:Email.toption[@ocaml.doc"The email address of the user. The email address serves as a unique identifier for each user and cannot be changed after it's created."];type_:UserType.toption[@ocaml.doc"Indicates the type of user. SUPER_USER \226\128\147 A user with permission to all the functionality and data in FinSpace. APP_USER \226\128\147 A user with specific permissions in FinSpace. The users are assigned permissions by adding them to a permission group."];apiAccess:ApiAccess.toption[@ocaml.doc"Indicates whether the user can access FinSpace API operations. ENABLED \226\128\147 The user has permissions to use the API operations. DISABLED \226\128\147 The user does not have permissions to use any API operations."];apiAccessPrincipalArn:RoleArn.toption[@ocaml.doc"The IAM ARN identifier that is attached to FinSpace API calls."];membershipStatus:PermissionGroupMembershipStatus.toption[@ocaml.doc"Indicates the status of the user within a permission group. ADDITION_IN_PROGRESS \226\128\147 The user is currently being added to the permission group. ADDITION_SUCCESS \226\128\147 The user is successfully added to the permission group. REMOVAL_IN_PROGRESS \226\128\147 The user is currently being removed from the permission group."]}letmake?userId=fun?status->fun?firstName->fun?lastName->fun?emailAddress->fun?type_->fun?apiAccess->fun?apiAccessPrincipalArn->fun?membershipStatus->fun()->{userId;status;firstName;lastName;emailAddress;type_;apiAccess;apiAccessPrincipalArn;membershipStatus}letto_valuex=structure_to_value[("userId",(Option.mapx.userId~f:UserId.to_value));("status",(Option.mapx.status~f:UserStatus.to_value));("firstName",(Option.mapx.firstName~f:FirstName.to_value));("lastName",(Option.mapx.lastName~f:LastName.to_value));("emailAddress",(Option.mapx.emailAddress~f:Email.to_value));("type",(Option.mapx.type_~f:UserType.to_value));("apiAccess",(Option.mapx.apiAccess~f:ApiAccess.to_value));("apiAccessPrincipalArn",(Option.mapx.apiAccessPrincipalArn~f:RoleArn.to_value));("membershipStatus",(Option.mapx.membershipStatus~f:PermissionGroupMembershipStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmembershipStatus=(Option.map~f:PermissionGroupMembershipStatus.of_xml)(Xml.childxml_arg0"membershipStatus")inletapiAccessPrincipalArn=(Option.map~f:RoleArn.of_xml)(Xml.childxml_arg0"apiAccessPrincipalArn")inletapiAccess=(Option.map~f:ApiAccess.of_xml)(Xml.childxml_arg0"apiAccess")inlettype_=(Option.map~f:UserType.of_xml)(Xml.childxml_arg0"type")inletemailAddress=(Option.map~f:Email.of_xml)(Xml.childxml_arg0"emailAddress")inletlastName=(Option.map~f:LastName.of_xml)(Xml.childxml_arg0"lastName")inletfirstName=(Option.map~f:FirstName.of_xml)(Xml.childxml_arg0"firstName")inletstatus=(Option.map~f:UserStatus.of_xml)(Xml.childxml_arg0"status")inletuserId=(Option.map~f:UserId.of_xml)(Xml.childxml_arg0"userId")inmake?membershipStatus?apiAccessPrincipalArn?apiAccess?type_?emailAddress?lastName?firstName?status?userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmembershipStatus=field_mapjson__"membershipStatus"PermissionGroupMembershipStatus.of_jsoninletapiAccessPrincipalArn=field_mapjson__"apiAccessPrincipalArn"RoleArn.of_jsoninletapiAccess=field_mapjson__"apiAccess"ApiAccess.of_jsoninlettype_=field_mapjson__"type"UserType.of_jsoninletemailAddress=field_mapjson__"emailAddress"Email.of_jsoninletlastName=field_mapjson__"lastName"LastName.of_jsoninletfirstName=field_mapjson__"firstName"FirstName.of_jsoninletstatus=field_mapjson__"status"UserStatus.of_jsoninletuserId=field_mapjson__"userId"UserId.of_jsoninmake?membershipStatus?apiAccessPrincipalArn?apiAccess?type_?emailAddress?lastName?firstName?status?userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure of a user associated with a permission group."]modulePermissionGroup=structtypenonrect={permissionGroupId:PermissionGroupId.toption[@ocaml.doc"The unique identifier for the permission group."];name:PermissionGroupName.toption[@ocaml.doc"The name of the permission group."];description:PermissionGroupDescription.toption[@ocaml.doc"A brief description for the permission group."];applicationPermissions:ApplicationPermissionList.toption[@ocaml.doc"Indicates the permissions that are granted to a specific group for accessing the FinSpace application. When assigning application permissions, be aware that the permission ManageUsersAndGroups allows users to grant themselves or others access to any functionality in their FinSpace environment's application. It should only be granted to trusted users. CreateDataset \226\128\147 Group members can create new datasets. ManageClusters \226\128\147 Group members can manage Apache Spark clusters from FinSpace notebooks. ManageUsersAndGroups \226\128\147 Group members can manage users and permission groups. This is a privileged permission that allows users to grant themselves or others access to any functionality in the application. It should only be granted to trusted users. ManageAttributeSets \226\128\147 Group members can manage attribute sets. ViewAuditData \226\128\147 Group members can view audit data. AccessNotebooks \226\128\147 Group members will have access to FinSpace notebooks. GetTemporaryCredentials \226\128\147 Group members can get temporary API credentials."];createTime:TimestampEpoch.toption[@ocaml.doc"The timestamp at which the group was created in FinSpace. The value is determined as epoch time in milliseconds."];lastModifiedTime:TimestampEpoch.toption[@ocaml.doc"Describes the last time the permission group was updated. The value is determined as epoch time in milliseconds."];membershipStatus:PermissionGroupMembershipStatus.toption[@ocaml.doc"Indicates the status of the user within a permission group. ADDITION_IN_PROGRESS \226\128\147 The user is currently being added to the permission group. ADDITION_SUCCESS \226\128\147 The user is successfully added to the permission group. REMOVAL_IN_PROGRESS \226\128\147 The user is currently being removed from the permission group."]}letmake?permissionGroupId=fun?name->fun?description->fun?applicationPermissions->fun?createTime->fun?lastModifiedTime->fun?membershipStatus->fun()->{permissionGroupId;name;description;applicationPermissions;createTime;lastModifiedTime;membershipStatus}letto_valuex=structure_to_value[("permissionGroupId",(Option.mapx.permissionGroupId~f:PermissionGroupId.to_value));("name",(Option.mapx.name~f:PermissionGroupName.to_value));("description",(Option.mapx.description~f:PermissionGroupDescription.to_value));("applicationPermissions",(Option.mapx.applicationPermissions~f:ApplicationPermissionList.to_value));("createTime",(Option.mapx.createTime~f:TimestampEpoch.to_value));("lastModifiedTime",(Option.mapx.lastModifiedTime~f:TimestampEpoch.to_value));("membershipStatus",(Option.mapx.membershipStatus~f:PermissionGroupMembershipStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmembershipStatus=(Option.map~f:PermissionGroupMembershipStatus.of_xml)(Xml.childxml_arg0"membershipStatus")inletlastModifiedTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"lastModifiedTime")inletcreateTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"createTime")inletapplicationPermissions=(Option.map~f:ApplicationPermissionList.of_xml)(Xml.childxml_arg0"applicationPermissions")inletdescription=(Option.map~f:PermissionGroupDescription.of_xml)(Xml.childxml_arg0"description")inletname=(Option.map~f:PermissionGroupName.of_xml)(Xml.childxml_arg0"name")inletpermissionGroupId=(Option.map~f:PermissionGroupId.of_xml)(Xml.childxml_arg0"permissionGroupId")inmake?membershipStatus?lastModifiedTime?createTime?applicationPermissions?description?name?permissionGroupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmembershipStatus=field_mapjson__"membershipStatus"PermissionGroupMembershipStatus.of_jsoninletlastModifiedTime=field_mapjson__"lastModifiedTime"TimestampEpoch.of_jsoninletcreateTime=field_mapjson__"createTime"TimestampEpoch.of_jsoninletapplicationPermissions=field_mapjson__"applicationPermissions"ApplicationPermissionList.of_jsoninletdescription=field_mapjson__"description"PermissionGroupDescription.of_jsoninletname=field_mapjson__"name"PermissionGroupName.of_jsoninletpermissionGroupId=field_mapjson__"permissionGroupId"PermissionGroupId.of_jsoninmake?membershipStatus?lastModifiedTime?createTime?applicationPermissions?description?name?permissionGroupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure for a permission group."]modulePermissionGroupByUser=structtypenonrect={permissionGroupId:PermissionGroupId.toption[@ocaml.doc"The unique identifier for the permission group."];name:PermissionGroupName.toption[@ocaml.doc"The name of the permission group."];membershipStatus:PermissionGroupMembershipStatus.toption[@ocaml.doc"Indicates the status of the user within a permission group. ADDITION_IN_PROGRESS \226\128\147 The user is currently being added to the permission group. ADDITION_SUCCESS \226\128\147 The user is successfully added to the permission group. REMOVAL_IN_PROGRESS \226\128\147 The user is currently being removed from the permission group."]}letmake?permissionGroupId=fun?name->fun?membershipStatus->fun()->{permissionGroupId;name;membershipStatus}letto_valuex=structure_to_value[("permissionGroupId",(Option.mapx.permissionGroupId~f:PermissionGroupId.to_value));("name",(Option.mapx.name~f:PermissionGroupName.to_value));("membershipStatus",(Option.mapx.membershipStatus~f:PermissionGroupMembershipStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmembershipStatus=(Option.map~f:PermissionGroupMembershipStatus.of_xml)(Xml.childxml_arg0"membershipStatus")inletname=(Option.map~f:PermissionGroupName.of_xml)(Xml.childxml_arg0"name")inletpermissionGroupId=(Option.map~f:PermissionGroupId.of_xml)(Xml.childxml_arg0"permissionGroupId")inmake?membershipStatus?name?permissionGroupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmembershipStatus=field_mapjson__"membershipStatus"PermissionGroupMembershipStatus.of_jsoninletname=field_mapjson__"name"PermissionGroupName.of_jsoninletpermissionGroupId=field_mapjson__"permissionGroupId"PermissionGroupId.of_jsoninmake?membershipStatus?name?permissionGroupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure of a permission group associated with a user."]moduleDataset=structtypenonrect={datasetId:DatasetId.toption[@ocaml.doc"An identifier for a Dataset."];datasetArn:DatasetArn.toption[@ocaml.doc"The ARN identifier of the Dataset."];datasetTitle:DatasetTitle.toption[@ocaml.doc"Display title for a Dataset."];kind:DatasetKind.toption[@ocaml.doc"The format in which Dataset data is structured. TABULAR \226\128\147 Data is structured in a tabular format. NON_TABULAR \226\128\147 Data is structured in a non-tabular format."];datasetDescription:DatasetDescription.toption[@ocaml.doc"Description for a Dataset."];ownerInfo:DatasetOwnerInfo.toption[@ocaml.doc"Contact information for a Dataset owner."];createTime:TimestampEpoch.toption[@ocaml.doc"The timestamp at which the Dataset was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000."];lastModifiedTime:TimestampEpoch.toption[@ocaml.doc"The last time that the Dataset was modified. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000."];schemaDefinition:SchemaUnion.toption[@ocaml.doc"Definition for a schema on a tabular Dataset."];alias:AliasString.toption[@ocaml.doc"The unique resource identifier for a Dataset."]}letmake?datasetId=fun?datasetArn->fun?datasetTitle->fun?kind->fun?datasetDescription->fun?ownerInfo->fun?createTime->fun?lastModifiedTime->fun?schemaDefinition->fun?alias->fun()->{datasetId;datasetArn;datasetTitle;kind;datasetDescription;ownerInfo;createTime;lastModifiedTime;schemaDefinition;alias}letto_valuex=structure_to_value[("datasetId",(Option.mapx.datasetId~f:DatasetId.to_value));("datasetArn",(Option.mapx.datasetArn~f:DatasetArn.to_value));("datasetTitle",(Option.mapx.datasetTitle~f:DatasetTitle.to_value));("kind",(Option.mapx.kind~f:DatasetKind.to_value));("datasetDescription",(Option.mapx.datasetDescription~f:DatasetDescription.to_value));("ownerInfo",(Option.mapx.ownerInfo~f:DatasetOwnerInfo.to_value));("createTime",(Option.mapx.createTime~f:TimestampEpoch.to_value));("lastModifiedTime",(Option.mapx.lastModifiedTime~f:TimestampEpoch.to_value));("schemaDefinition",(Option.mapx.schemaDefinition~f:SchemaUnion.to_value));("alias",(Option.mapx.alias~f:AliasString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letalias=(Option.map~f:AliasString.of_xml)(Xml.childxml_arg0"alias")inletschemaDefinition=(Option.map~f:SchemaUnion.of_xml)(Xml.childxml_arg0"schemaDefinition")inletlastModifiedTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"lastModifiedTime")inletcreateTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"createTime")inletownerInfo=(Option.map~f:DatasetOwnerInfo.of_xml)(Xml.childxml_arg0"ownerInfo")inletdatasetDescription=(Option.map~f:DatasetDescription.of_xml)(Xml.childxml_arg0"datasetDescription")inletkind=(Option.map~f:DatasetKind.of_xml)(Xml.childxml_arg0"kind")inletdatasetTitle=(Option.map~f:DatasetTitle.of_xml)(Xml.childxml_arg0"datasetTitle")inletdatasetArn=(Option.map~f:DatasetArn.of_xml)(Xml.childxml_arg0"datasetArn")inletdatasetId=(Option.map~f:DatasetId.of_xml)(Xml.childxml_arg0"datasetId")inmake?alias?schemaDefinition?lastModifiedTime?createTime?ownerInfo?datasetDescription?kind?datasetTitle?datasetArn?datasetId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letalias=field_mapjson__"alias"AliasString.of_jsoninletschemaDefinition=field_mapjson__"schemaDefinition"SchemaUnion.of_jsoninletlastModifiedTime=field_mapjson__"lastModifiedTime"TimestampEpoch.of_jsoninletcreateTime=field_mapjson__"createTime"TimestampEpoch.of_jsoninletownerInfo=field_mapjson__"ownerInfo"DatasetOwnerInfo.of_jsoninletdatasetDescription=field_mapjson__"datasetDescription"DatasetDescription.of_jsoninletkind=field_mapjson__"kind"DatasetKind.of_jsoninletdatasetTitle=field_mapjson__"datasetTitle"DatasetTitle.of_jsoninletdatasetArn=field_mapjson__"datasetArn"DatasetArn.of_jsoninletdatasetId=field_mapjson__"datasetId"DatasetId.of_jsoninmake?alias?schemaDefinition?lastModifiedTime?createTime?ownerInfo?datasetDescription?kind?datasetTitle?datasetArn?datasetId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure for a Dataset."]moduleDataViewSummary=structtypenonrect={dataViewId:DataViewId.toption[@ocaml.doc"The unique identifier for the Dataview."];dataViewArn:DataViewArn.toption[@ocaml.doc"The ARN identifier of the Dataview."];datasetId:DatasetId.toption[@ocaml.doc"Th unique identifier for the Dataview Dataset."];asOfTimestamp:TimestampEpoch.toption[@ocaml.doc"Time range to use for the Dataview. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000."];partitionColumns:PartitionColumnList.toption[@ocaml.doc"Ordered set of column names used to partition data."];sortColumns:SortColumnList.toption[@ocaml.doc"Columns to be used for sorting the data."];status:DataViewStatus.toption[@ocaml.doc"The status of a Dataview creation. RUNNING \226\128\147 Dataview creation is running. STARTING \226\128\147 Dataview creation is starting. FAILED \226\128\147 Dataview creation has failed. CANCELLED \226\128\147 Dataview creation has been cancelled. TIMEOUT \226\128\147 Dataview creation has timed out. SUCCESS \226\128\147 Dataview creation has succeeded. PENDING \226\128\147 Dataview creation is pending. FAILED_CLEANUP_FAILED \226\128\147 Dataview creation failed and resource cleanup failed."];errorInfo:DataViewErrorInfo.toption[@ocaml.doc"The structure with error messages."];destinationTypeProperties:DataViewDestinationTypeParams.toption[@ocaml.doc"Information about the Dataview destination."];autoUpdate:Boolean.toption[@ocaml.doc"The flag to indicate Dataview should be updated automatically."];createTime:TimestampEpoch.toption[@ocaml.doc"The timestamp at which the Dataview was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000."];lastModifiedTime:TimestampEpoch.toption[@ocaml.doc"The last time that a Dataview was modified. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000."]}letmake?dataViewId=fun?dataViewArn->fun?datasetId->fun?asOfTimestamp->fun?partitionColumns->fun?sortColumns->fun?status->fun?errorInfo->fun?destinationTypeProperties->fun?autoUpdate->fun?createTime->fun?lastModifiedTime->fun()->{dataViewId;dataViewArn;datasetId;asOfTimestamp;partitionColumns;sortColumns;status;errorInfo;destinationTypeProperties;autoUpdate;createTime;lastModifiedTime}letto_valuex=structure_to_value[("dataViewId",(Option.mapx.dataViewId~f:DataViewId.to_value));("dataViewArn",(Option.mapx.dataViewArn~f:DataViewArn.to_value));("datasetId",(Option.mapx.datasetId~f:DatasetId.to_value));("asOfTimestamp",(Option.mapx.asOfTimestamp~f:TimestampEpoch.to_value));("partitionColumns",(Option.mapx.partitionColumns~f:PartitionColumnList.to_value));("sortColumns",(Option.mapx.sortColumns~f:SortColumnList.to_value));("status",(Option.mapx.status~f:DataViewStatus.to_value));("errorInfo",(Option.mapx.errorInfo~f:DataViewErrorInfo.to_value));("destinationTypeProperties",(Option.mapx.destinationTypeProperties~f:DataViewDestinationTypeParams.to_value));("autoUpdate",(Option.mapx.autoUpdate~f:Boolean.to_value));("createTime",(Option.mapx.createTime~f:TimestampEpoch.to_value));("lastModifiedTime",(Option.mapx.lastModifiedTime~f:TimestampEpoch.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastModifiedTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"lastModifiedTime")inletcreateTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"createTime")inletautoUpdate=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"autoUpdate")inletdestinationTypeProperties=(Option.map~f:DataViewDestinationTypeParams.of_xml)(Xml.childxml_arg0"destinationTypeProperties")inleterrorInfo=(Option.map~f:DataViewErrorInfo.of_xml)(Xml.childxml_arg0"errorInfo")inletstatus=(Option.map~f:DataViewStatus.of_xml)(Xml.childxml_arg0"status")inletsortColumns=(Option.map~f:SortColumnList.of_xml)(Xml.childxml_arg0"sortColumns")inletpartitionColumns=(Option.map~f:PartitionColumnList.of_xml)(Xml.childxml_arg0"partitionColumns")inletasOfTimestamp=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"asOfTimestamp")inletdatasetId=(Option.map~f:DatasetId.of_xml)(Xml.childxml_arg0"datasetId")inletdataViewArn=(Option.map~f:DataViewArn.of_xml)(Xml.childxml_arg0"dataViewArn")inletdataViewId=(Option.map~f:DataViewId.of_xml)(Xml.childxml_arg0"dataViewId")inmake?lastModifiedTime?createTime?autoUpdate?destinationTypeProperties?errorInfo?status?sortColumns?partitionColumns?asOfTimestamp?datasetId?dataViewArn?dataViewId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastModifiedTime=field_mapjson__"lastModifiedTime"TimestampEpoch.of_jsoninletcreateTime=field_mapjson__"createTime"TimestampEpoch.of_jsoninletautoUpdate=field_mapjson__"autoUpdate"Boolean.of_jsoninletdestinationTypeProperties=field_mapjson__"destinationTypeProperties"DataViewDestinationTypeParams.of_jsoninleterrorInfo=field_mapjson__"errorInfo"DataViewErrorInfo.of_jsoninletstatus=field_mapjson__"status"DataViewStatus.of_jsoninletsortColumns=field_mapjson__"sortColumns"SortColumnList.of_jsoninletpartitionColumns=field_mapjson__"partitionColumns"PartitionColumnList.of_jsoninletasOfTimestamp=field_mapjson__"asOfTimestamp"TimestampEpoch.of_jsoninletdatasetId=field_mapjson__"datasetId"DatasetId.of_jsoninletdataViewArn=field_mapjson__"dataViewArn"DataViewArn.of_jsoninletdataViewId=field_mapjson__"dataViewId"DataViewId.of_jsoninmake?lastModifiedTime?createTime?autoUpdate?destinationTypeProperties?errorInfo?status?sortColumns?partitionColumns?asOfTimestamp?datasetId?dataViewArn?dataViewId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Structure for the summary of a Dataview."]moduleChangesetSummary=structtypenonrect={changesetId:ChangesetId.toption[@ocaml.doc"The unique identifier for a Changeset."];changesetArn:ChangesetArn.toption[@ocaml.doc"The ARN identifier of the Changeset."];datasetId:DatasetId.toption[@ocaml.doc"The unique identifier for the FinSpace Dataset in which the Changeset is created."];changeType:ChangeType.toption[@ocaml.doc"Type that indicates how a Changeset is applied to a Dataset. REPLACE \226\128\147 Changeset is considered as a replacement to all prior loaded Changesets. APPEND \226\128\147 Changeset is considered as an addition to the end of all prior loaded Changesets. MODIFY \226\128\147 Changeset is considered as a replacement to a specific prior ingested Changeset."];sourceParams:SourceParams.toption[@ocaml.doc"Options that define the location of the data being ingested."];formatParams:FormatParams.toption[@ocaml.doc"Options that define the structure of the source file(s)."];createTime:TimestampEpoch.toption[@ocaml.doc"The timestamp at which the Changeset was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000."];status:IngestionStatus.toption[@ocaml.doc"Status of the Changeset ingestion. PENDING \226\128\147 Changeset is pending creation. FAILED \226\128\147 Changeset creation has failed. SUCCESS \226\128\147 Changeset creation has succeeded. RUNNING \226\128\147 Changeset creation is running. STOP_REQUESTED \226\128\147 User requested Changeset creation to stop."];errorInfo:ChangesetErrorInfo.toption[@ocaml.doc"The structure with error messages."];activeUntilTimestamp:TimestampEpoch.toption[@ocaml.doc"Time until which the Changeset is active. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000."];activeFromTimestamp:TimestampEpoch.toption[@ocaml.doc"Beginning time from which the Changeset is active. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000."];updatesChangesetId:ChangesetId.toption[@ocaml.doc"The unique identifier of the Changeset that is updated."];updatedByChangesetId:ChangesetId.toption[@ocaml.doc"The unique identifier of the updated Changeset."]}letmake?changesetId=fun?changesetArn->fun?datasetId->fun?changeType->fun?sourceParams->fun?formatParams->fun?createTime->fun?status->fun?errorInfo->fun?activeUntilTimestamp->fun?activeFromTimestamp->fun?updatesChangesetId->fun?updatedByChangesetId->fun()->{changesetId;changesetArn;datasetId;changeType;sourceParams;formatParams;createTime;status;errorInfo;activeUntilTimestamp;activeFromTimestamp;updatesChangesetId;updatedByChangesetId}letto_valuex=structure_to_value[("changesetId",(Option.mapx.changesetId~f:ChangesetId.to_value));("changesetArn",(Option.mapx.changesetArn~f:ChangesetArn.to_value));("datasetId",(Option.mapx.datasetId~f:DatasetId.to_value));("changeType",(Option.mapx.changeType~f:ChangeType.to_value));("sourceParams",(Option.mapx.sourceParams~f:SourceParams.to_value));("formatParams",(Option.mapx.formatParams~f:FormatParams.to_value));("createTime",(Option.mapx.createTime~f:TimestampEpoch.to_value));("status",(Option.mapx.status~f:IngestionStatus.to_value));("errorInfo",(Option.mapx.errorInfo~f:ChangesetErrorInfo.to_value));("activeUntilTimestamp",(Option.mapx.activeUntilTimestamp~f:TimestampEpoch.to_value));("activeFromTimestamp",(Option.mapx.activeFromTimestamp~f:TimestampEpoch.to_value));("updatesChangesetId",(Option.mapx.updatesChangesetId~f:ChangesetId.to_value));("updatedByChangesetId",(Option.mapx.updatedByChangesetId~f:ChangesetId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letupdatedByChangesetId=(Option.map~f:ChangesetId.of_xml)(Xml.childxml_arg0"updatedByChangesetId")inletupdatesChangesetId=(Option.map~f:ChangesetId.of_xml)(Xml.childxml_arg0"updatesChangesetId")inletactiveFromTimestamp=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"activeFromTimestamp")inletactiveUntilTimestamp=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"activeUntilTimestamp")inleterrorInfo=(Option.map~f:ChangesetErrorInfo.of_xml)(Xml.childxml_arg0"errorInfo")inletstatus=(Option.map~f:IngestionStatus.of_xml)(Xml.childxml_arg0"status")inletcreateTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"createTime")inletformatParams=(Option.map~f:FormatParams.of_xml)(Xml.childxml_arg0"formatParams")inletsourceParams=(Option.map~f:SourceParams.of_xml)(Xml.childxml_arg0"sourceParams")inletchangeType=(Option.map~f:ChangeType.of_xml)(Xml.childxml_arg0"changeType")inletdatasetId=(Option.map~f:DatasetId.of_xml)(Xml.childxml_arg0"datasetId")inletchangesetArn=(Option.map~f:ChangesetArn.of_xml)(Xml.childxml_arg0"changesetArn")inletchangesetId=(Option.map~f:ChangesetId.of_xml)(Xml.childxml_arg0"changesetId")inmake?updatedByChangesetId?updatesChangesetId?activeFromTimestamp?activeUntilTimestamp?errorInfo?status?createTime?formatParams?sourceParams?changeType?datasetId?changesetArn?changesetId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letupdatedByChangesetId=field_mapjson__"updatedByChangesetId"ChangesetId.of_jsoninletupdatesChangesetId=field_mapjson__"updatesChangesetId"ChangesetId.of_jsoninletactiveFromTimestamp=field_mapjson__"activeFromTimestamp"TimestampEpoch.of_jsoninletactiveUntilTimestamp=field_mapjson__"activeUntilTimestamp"TimestampEpoch.of_jsoninleterrorInfo=field_mapjson__"errorInfo"ChangesetErrorInfo.of_jsoninletstatus=field_mapjson__"status"IngestionStatus.of_jsoninletcreateTime=field_mapjson__"createTime"TimestampEpoch.of_jsoninletformatParams=field_mapjson__"formatParams"FormatParams.of_jsoninletsourceParams=field_mapjson__"sourceParams"SourceParams.of_jsoninletchangeType=field_mapjson__"changeType"ChangeType.of_jsoninletdatasetId=field_mapjson__"datasetId"DatasetId.of_jsoninletchangesetArn=field_mapjson__"changesetArn"ChangesetArn.of_jsoninletchangesetId=field_mapjson__"changesetId"ChangesetId.of_jsoninmake?updatedByChangesetId?updatesChangesetId?activeFromTimestamp?activeUntilTimestamp?errorInfo?status?createTime?formatParams?sourceParams?changeType?datasetId?changesetArn?changesetId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A Changeset is unit of data in a Dataset."]moduleStringValueLength1to255__lc1=structtypenonrect=stringletcontext_="StringValueLength1to255__lc1"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:"StringValueLength1to255__lc1"jletto_json=simple_to_jsonto_valueendmoduleStringValueMaxLength1000=structtypenonrect=stringletcontext_="stringValueMaxLength1000"letmakei=letopenResultinok_or_failwith(check_string_maxi~max:1000);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"stringValueMaxLength1000"jletto_json=simple_to_jsonto_valueendmoduleAccessKeyId=structtypenonrect=stringletcontext_="AccessKeyId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"[\\s\\S]*\\S[\\s\\S]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AccessKeyId"jletto_json=simple_to_jsonto_valueendmoduleSecretAccessKey=structtypenonrect=stringletcontext_="SecretAccessKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1000)>>=(fun()->check_patterni~pattern:"[\\s\\S]*\\S[\\s\\S]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SecretAccessKey"jletto_json=simple_to_jsonto_valueendmoduleSessionToken=structtypenonrect=stringletcontext_="SessionToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1000)>>=(fun()->check_patterni~pattern:"[\\s\\S]*\\S[\\s\\S]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SessionToken"jletto_json=simple_to_jsonto_valueendmoduleS3BucketName=structtypenonrect=stringletcontext_="S3BucketName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:63)>>=(fun()->check_patterni~pattern:"^.*\\S.*$")));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_valueendmoduleS3Key=structtypenonrect=stringletcontext_="S3Key"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:"^.*\\S.*$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"S3Key"jletto_json=simple_to_jsonto_valueendmoduleResourcePermissionsList=structtypenonrect=ResourcePermission.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ResourcePermission.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:ResourcePermission.of_xml)letof_jsonj=list_of_json~kind:"ResourcePermissionsList"~of_json:ResourcePermission.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccessDeniedException=structtypenonrect={message:ErrorMessage__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage__lc1.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You do not have sufficient access to perform this action."]moduleConflictException=structtypenonrect={message:ErrorMessage__lc1.toption;reason:ErrorMessage__lc1.toption}letmake?message=fun?reason->fun()->{message;reason}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage__lc1.to_value));("reason",(Option.mapx.reason~f:ErrorMessage__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreason=(Option.map~f:ErrorMessage__lc1.of_xml)(Xml.childxml_arg0"reason")inletmessage=(Option.map~f:ErrorMessage__lc1.of_xml)(Xml.childxml_arg0"message")inmake?reason?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreason=field_mapjson__"reason"ErrorMessage__lc1.of_jsoninletmessage=field_mapjson__"message"ErrorMessage__lc1.of_jsoninmake?reason?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request conflicts with an existing resource."]moduleInternalServerException=structtypenonrect={message:ErrorMessage__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage__lc1.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request processing has failed because of an unknown error, exception or failure."]moduleResourceNotFoundException=structtypenonrect={message:ErrorMessage__lc1.toption;reason:ErrorMessage__lc1.toption}letmake?message=fun?reason->fun()->{message;reason}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage__lc1.to_value));("reason",(Option.mapx.reason~f:ErrorMessage__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreason=(Option.map~f:ErrorMessage__lc1.of_xml)(Xml.childxml_arg0"reason")inletmessage=(Option.map~f:ErrorMessage__lc1.of_xml)(Xml.childxml_arg0"message")inmake?reason?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreason=field_mapjson__"reason"ErrorMessage__lc1.of_jsoninletmessage=field_mapjson__"message"ErrorMessage__lc1.of_jsoninmake?reason?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"One or more resources can't be found."]moduleThrottlingException=structtypenonrect=unitletmake()=()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 request was denied due to request throttling."]moduleValidationException=structtypenonrect={message:ErrorMessage__lc1.toption;reason:ErrorMessage__lc1.toption}letmake?message=fun?reason->fun()->{message;reason}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage__lc1.to_value));("reason",(Option.mapx.reason~f:ErrorMessage__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreason=(Option.map~f:ErrorMessage__lc1.of_xml)(Xml.childxml_arg0"reason")inletmessage=(Option.map~f:ErrorMessage__lc1.of_xml)(Xml.childxml_arg0"message")inmake?reason?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreason=field_mapjson__"reason"ErrorMessage__lc1.of_jsoninletmessage=field_mapjson__"message"ErrorMessage__lc1.of_jsoninmake?reason?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input fails to satisfy the constraints specified by an AWS service."]moduleClientToken=structtypenonrect=string[@@ocaml.doc"Idempotence Token for API operations"]letcontext_="ClientToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:".*\\S.*")));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"Idempotence Token for API operations"]modulePassword=structtypenonrect=stringletcontext_="Password"letmakei=letopenResultinok_or_failwith((check_string_mini~min:8)>>=(fun()->(check_string_maxi~max:20)>>=(fun()->check_patterni~pattern:".*\\S.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Password"jletto_json=simple_to_jsonto_valueendmodulePaginationToken=structtypenonrect=stringletcontext_="PaginationToken"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:"PaginationToken"jletto_json=simple_to_jsonto_valueendmoduleUserList=structtypenonrect=User.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:User.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:User.of_xml)letof_jsonj=list_of_json~kind:"UserList"~of_json:User.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResultLimit=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ResultLimit"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleUserByPermissionGroupList=structtypenonrect=UserByPermissionGroup.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:UserByPermissionGroup.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:UserByPermissionGroup.of_xml)letof_jsonj=list_of_json~kind:"UserByPermissionGroupList"~of_json:UserByPermissionGroup.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePermissionGroupList=structtypenonrect=PermissionGroup.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PermissionGroup.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:PermissionGroup.of_xml)letof_jsonj=list_of_json~kind:"PermissionGroupList"~of_json:PermissionGroup.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePermissionGroupByUserList=structtypenonrect=PermissionGroupByUser.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PermissionGroupByUser.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:PermissionGroupByUser.of_xml)letof_jsonj=list_of_json~kind:"PermissionGroupByUserList"~of_json:PermissionGroupByUser.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDatasetList=structtypenonrect=Dataset.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Dataset.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:Dataset.of_xml)letof_jsonj=list_of_json~kind:"DatasetList"~of_json:Dataset.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDataViewList=structtypenonrect=DataViewSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DataViewSummary.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:DataViewSummary.of_xml)letof_jsonj=list_of_json~kind:"DataViewList"~of_json:DataViewSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleChangesetList=structtypenonrect=ChangesetSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ChangesetSummary.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:ChangesetSummary.of_xml)letof_jsonj=list_of_json~kind:"ChangesetList"~of_json:ChangesetSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleStringValueLength1to1024=structtypenonrect=stringletcontext_="stringValueLength1to1024"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:".*\\S.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"stringValueLength1to1024"jletto_json=simple_to_jsonto_valueendmoduleStringValueLength1to63=structtypenonrect=stringletcontext_="stringValueLength1to63"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:63)>>=(fun()->check_patterni~pattern:".*\\S.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"stringValueLength1to63"jletto_json=simple_to_jsonto_valueendmoduleLocationType=structtypenonrect=|INGESTION|SAGEMAKER|Non_static_idofstringletmakei=iletto_string=function|INGESTION->"INGESTION"|SAGEMAKER->"SAGEMAKER"|Non_static_ids->sletof_string=function|"INGESTION"->INGESTION|"SAGEMAKER"->SAGEMAKER|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 locationType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"locationType"j)letto_json=simple_to_jsonto_valueendmoduleCredentials=structtypenonrect={accessKeyId:StringValueLength1to255__lc1.toption[@ocaml.doc"The access key identifier."];secretAccessKey:StringValueMaxLength1000.toption[@ocaml.doc"The access key."];sessionToken:StringValueMaxLength1000.toption[@ocaml.doc"The session token."]}letmake?accessKeyId=fun?secretAccessKey->fun?sessionToken->fun()->{accessKeyId;secretAccessKey;sessionToken}letto_valuex=structure_to_value[("accessKeyId",(Option.mapx.accessKeyId~f:StringValueLength1to255__lc1.to_value));("secretAccessKey",(Option.mapx.secretAccessKey~f:StringValueMaxLength1000.to_value));("sessionToken",(Option.mapx.sessionToken~f:StringValueMaxLength1000.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionToken=(Option.map~f:StringValueMaxLength1000.of_xml)(Xml.childxml_arg0"sessionToken")inletsecretAccessKey=(Option.map~f:StringValueMaxLength1000.of_xml)(Xml.childxml_arg0"secretAccessKey")inletaccessKeyId=(Option.map~f:StringValueLength1to255__lc1.of_xml)(Xml.childxml_arg0"accessKeyId")inmake?sessionToken?secretAccessKey?accessKeyId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionToken=field_mapjson__"sessionToken"StringValueMaxLength1000.of_jsoninletsecretAccessKey=field_mapjson__"secretAccessKey"StringValueMaxLength1000.of_jsoninletaccessKeyId=field_mapjson__"accessKeyId"StringValueLength1to255__lc1.of_jsoninmake?sessionToken?secretAccessKey?accessKeyId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Short term API credentials."]moduleSessionDuration=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith((check_int64_maxi~max:60L)>>=(fun()->check_int64_mini~min:1L));iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleIdType=structtypenonrect=stringletcontext_="IdType"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:26)>>=(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:"IdType"jletto_json=simple_to_jsonto_valueendmoduleAwsCredentials=structtypenonrect={accessKeyId:AccessKeyId.toption[@ocaml.doc"The unique identifier for the security credentials."];secretAccessKey:SecretAccessKey.toption[@ocaml.doc"The secret access key that can be used to sign requests."];sessionToken:SessionToken.toption[@ocaml.doc"The token that users must pass to use the credentials."];expiration:TimestampEpoch.toption[@ocaml.doc"The Epoch time when the current credentials expire."]}letmake?accessKeyId=fun?secretAccessKey->fun?sessionToken->fun?expiration->fun()->{accessKeyId;secretAccessKey;sessionToken;expiration}letto_valuex=structure_to_value[("accessKeyId",(Option.mapx.accessKeyId~f:AccessKeyId.to_value));("secretAccessKey",(Option.mapx.secretAccessKey~f:SecretAccessKey.to_value));("sessionToken",(Option.mapx.sessionToken~f:SessionToken.to_value));("expiration",(Option.mapx.expiration~f:TimestampEpoch.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexpiration=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"expiration")inletsessionToken=(Option.map~f:SessionToken.of_xml)(Xml.childxml_arg0"sessionToken")inletsecretAccessKey=(Option.map~f:SecretAccessKey.of_xml)(Xml.childxml_arg0"secretAccessKey")inletaccessKeyId=(Option.map~f:AccessKeyId.of_xml)(Xml.childxml_arg0"accessKeyId")inmake?expiration?sessionToken?secretAccessKey?accessKeyId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexpiration=field_mapjson__"expiration"TimestampEpoch.of_jsoninletsessionToken=field_mapjson__"sessionToken"SessionToken.of_jsoninletsecretAccessKey=field_mapjson__"secretAccessKey"SecretAccessKey.of_jsoninletaccessKeyId=field_mapjson__"accessKeyId"AccessKeyId.of_jsoninmake?expiration?sessionToken?secretAccessKey?accessKeyId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The credentials required to access the external Dataview from the S3 location."]moduleS3Location=structtypenonrect={bucket:S3BucketName.toption[@ocaml.doc"The name of the S3 bucket."];key:S3Key.toption[@ocaml.doc"The path of the folder, within the S3 bucket that contains the Dataset."]}letmake?bucket=fun?key->fun()->{bucket;key}letto_valuex=structure_to_value[("bucket",(Option.mapx.bucket~f:S3BucketName.to_value));("key",(Option.mapx.key~f:S3Key.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkey=(Option.map~f:S3Key.of_xml)(Xml.childxml_arg0"key")inletbucket=(Option.map~f:S3BucketName.of_xml)(Xml.childxml_arg0"bucket")inmake?key?bucket()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkey=field_mapjson__"key"S3Key.of_jsoninletbucket=field_mapjson__"bucket"S3BucketName.of_jsoninmake?key?bucket()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The location of an external Dataview in an S3 bucket."]moduleDatasetStatus=structtypenonrect=|PENDING|FAILED|SUCCESS|RUNNING|Non_static_idofstringletmakei=iletto_string=function|PENDING->"PENDING"|FAILED->"FAILED"|SUCCESS->"SUCCESS"|RUNNING->"RUNNING"|Non_static_ids->sletof_string=function|"PENDING"->PENDING|"FAILED"->FAILED|"SUCCESS"->SUCCESS|"RUNNING"->RUNNING|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 DatasetStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DatasetStatus"j)letto_json=simple_to_jsonto_valueendmoduleLimitExceededException=structtypenonrect={message:ErrorMessage__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage__lc1.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A limit has exceeded."]moduleStatusCode=structtypenonrect=intletmakei=iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for StatusCode"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmodulePermissionGroupParams=structtypenonrect={permissionGroupId:PermissionGroupId.toption[@ocaml.doc"The unique identifier for the PermissionGroup."];datasetPermissions:ResourcePermissionsList.toption[@ocaml.doc"List of resource permissions."]}letmake?permissionGroupId=fun?datasetPermissions->fun()->{permissionGroupId;datasetPermissions}letto_valuex=structure_to_value[("permissionGroupId",(Option.mapx.permissionGroupId~f:PermissionGroupId.to_value));("datasetPermissions",(Option.mapx.datasetPermissions~f:ResourcePermissionsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasetPermissions=(Option.map~f:ResourcePermissionsList.of_xml)(Xml.childxml_arg0"datasetPermissions")inletpermissionGroupId=(Option.map~f:PermissionGroupId.of_xml)(Xml.childxml_arg0"permissionGroupId")inmake?datasetPermissions?permissionGroupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasetPermissions=field_mapjson__"datasetPermissions"ResourcePermissionsList.of_jsoninletpermissionGroupId=field_mapjson__"permissionGroupId"PermissionGroupId.of_jsoninmake?datasetPermissions?permissionGroupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Permission group parameters for Dataset permissions. Here is an example of how you could specify the PermissionGroupParams: \\{ \"permissionGroupId\": \"0r6fCRtSTUk4XPfXQe3M0g\", \"datasetPermissions\": \\[ \\{\"permission\": \"ViewDatasetDetails\"\\}, \\{\"permission\": \"AddDatasetData\"\\}, \\{\"permission\": \"EditDatasetMetadata\"\\}, \\{\"permission\": \"DeleteDataset\"\\} \\] \\}"]moduleUpdateUserResponse=structtypenonrect={userId:UserId.toption[@ocaml.doc"The unique identifier of the updated user."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?userId=fun()->{userId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("userId",(Option.mapx.userId~f:UserId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserId=(Option.map~f:UserId.of_xml)(Xml.childxml_arg0"userId")inmake?userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserId=field_mapjson__"userId"UserId.of_jsoninmake?userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the details of the specified user. You cannot update the userId for a user."]moduleUpdateUserRequest=structtypenonrect={userId:UserId.t[@ocaml.doc"The unique identifier for the user that you want to update."];type_:UserType.toption[@ocaml.doc"The option to indicate the type of user. SUPER_USER\226\128\147 A user with permission to all the functionality and data in FinSpace. APP_USER \226\128\147 A user with specific permissions in FinSpace. The users are assigned permissions by adding them to a permission group."];firstName:FirstName.toption[@ocaml.doc"The first name of the user."];lastName:LastName.toption[@ocaml.doc"The last name of the user."];apiAccess:ApiAccess.toption[@ocaml.doc"The option to indicate whether the user can use the GetProgrammaticAccessCredentials API to obtain credentials that can then be used to access other FinSpace Data API operations. ENABLED \226\128\147 The user has permissions to use the APIs. DISABLED \226\128\147 The user does not have permissions to use any APIs."];apiAccessPrincipalArn:RoleArn.toption[@ocaml.doc"The ARN identifier of an AWS user or role that is allowed to call the GetProgrammaticAccessCredentials API to obtain a credentials token for a specific FinSpace user. This must be an IAM role within your FinSpace account."];clientToken:ClientToken.toption[@ocaml.doc"A token that ensures idempotency. This token expires in 10 minutes."]}letcontext_="UpdateUserRequest"letmake?type_=fun?firstName->fun?lastName->fun?apiAccess->fun?apiAccessPrincipalArn->fun?clientToken->fun~userId->fun()->{type_;firstName;lastName;apiAccess;apiAccessPrincipalArn;clientToken;userId}letto_valuex=structure_to_value[("userId",(Some(UserId.to_valuex.userId)));("type",(Option.mapx.type_~f:UserType.to_value));("firstName",(Option.mapx.firstName~f:FirstName.to_value));("lastName",(Option.mapx.lastName~f:LastName.to_value));("apiAccess",(Option.mapx.apiAccess~f:ApiAccess.to_value));("apiAccessPrincipalArn",(Option.mapx.apiAccessPrincipalArn~f:RoleArn.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")inletapiAccessPrincipalArn=(Option.map~f:RoleArn.of_xml)(Xml.childxml_arg0"apiAccessPrincipalArn")inletapiAccess=(Option.map~f:ApiAccess.of_xml)(Xml.childxml_arg0"apiAccess")inletlastName=(Option.map~f:LastName.of_xml)(Xml.childxml_arg0"lastName")inletfirstName=(Option.map~f:FirstName.of_xml)(Xml.childxml_arg0"firstName")inlettype_=(Option.map~f:UserType.of_xml)(Xml.childxml_arg0"type")inletuserId=UserId.of_xml(Xml.child_exn~context:context_xml_arg0"userId")inmake?clientToken?apiAccessPrincipalArn?apiAccess?lastName?firstName?type_~userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninletapiAccessPrincipalArn=field_mapjson__"apiAccessPrincipalArn"RoleArn.of_jsoninletapiAccess=field_mapjson__"apiAccess"ApiAccess.of_jsoninletlastName=field_mapjson__"lastName"LastName.of_jsoninletfirstName=field_mapjson__"firstName"FirstName.of_jsoninlettype_=field_mapjson__"type"UserType.of_jsoninletuserId=field_map_exnjson__"userId"UserId.of_jsoninmake?clientToken?apiAccessPrincipalArn?apiAccess?lastName?firstName?type_~userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the details of the specified user. You cannot update the userId for a user."]moduleUpdatePermissionGroupResponse=structtypenonrect={permissionGroupId:PermissionGroupId.toption[@ocaml.doc"The unique identifier for the updated permission group."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?permissionGroupId=fun()->{permissionGroupId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("permissionGroupId",(Option.mapx.permissionGroupId~f:PermissionGroupId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpermissionGroupId=(Option.map~f:PermissionGroupId.of_xml)(Xml.childxml_arg0"permissionGroupId")inmake?permissionGroupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpermissionGroupId=field_mapjson__"permissionGroupId"PermissionGroupId.of_jsoninmake?permissionGroupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the details of a permission group. You cannot modify a permissionGroupID."]moduleUpdatePermissionGroupRequest=structtypenonrect={permissionGroupId:PermissionGroupId.t[@ocaml.doc"The unique identifier for the permission group to update."];name:PermissionGroupName.toption[@ocaml.doc"The name of the permission group."];description:PermissionGroupDescription.toption[@ocaml.doc"A brief description for the permission group."];applicationPermissions:ApplicationPermissionList.toption[@ocaml.doc"The permissions that are granted to a specific group for accessing the FinSpace application. When assigning application permissions, be aware that the permission ManageUsersAndGroups allows users to grant themselves or others access to any functionality in their FinSpace environment's application. It should only be granted to trusted users. CreateDataset \226\128\147 Group members can create new datasets. ManageClusters \226\128\147 Group members can manage Apache Spark clusters from FinSpace notebooks. ManageUsersAndGroups \226\128\147 Group members can manage users and permission groups. This is a privileged permission that allows users to grant themselves or others access to any functionality in the application. It should only be granted to trusted users. ManageAttributeSets \226\128\147 Group members can manage attribute sets. ViewAuditData \226\128\147 Group members can view audit data. AccessNotebooks \226\128\147 Group members will have access to FinSpace notebooks. GetTemporaryCredentials \226\128\147 Group members can get temporary API credentials."];clientToken:ClientToken.toption[@ocaml.doc"A token that ensures idempotency. This token expires in 10 minutes."]}letcontext_="UpdatePermissionGroupRequest"letmake?name=fun?description->fun?applicationPermissions->fun?clientToken->fun~permissionGroupId->fun()->{name;description;applicationPermissions;clientToken;permissionGroupId}letto_valuex=structure_to_value[("permissionGroupId",(Some(PermissionGroupId.to_valuex.permissionGroupId)));("name",(Option.mapx.name~f:PermissionGroupName.to_value));("description",(Option.mapx.description~f:PermissionGroupDescription.to_value));("applicationPermissions",(Option.mapx.applicationPermissions~f:ApplicationPermissionList.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")inletapplicationPermissions=(Option.map~f:ApplicationPermissionList.of_xml)(Xml.childxml_arg0"applicationPermissions")inletdescription=(Option.map~f:PermissionGroupDescription.of_xml)(Xml.childxml_arg0"description")inletname=(Option.map~f:PermissionGroupName.of_xml)(Xml.childxml_arg0"name")inletpermissionGroupId=PermissionGroupId.of_xml(Xml.child_exn~context:context_xml_arg0"permissionGroupId")inmake?clientToken?applicationPermissions?description?name~permissionGroupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninletapplicationPermissions=field_mapjson__"applicationPermissions"ApplicationPermissionList.of_jsoninletdescription=field_mapjson__"description"PermissionGroupDescription.of_jsoninletname=field_mapjson__"name"PermissionGroupName.of_jsoninletpermissionGroupId=field_map_exnjson__"permissionGroupId"PermissionGroupId.of_jsoninmake?clientToken?applicationPermissions?description?name~permissionGroupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the details of a permission group. You cannot modify a permissionGroupID."]moduleUpdateDatasetResponse=structtypenonrect={datasetId:DatasetId.toption[@ocaml.doc"The unique identifier for updated Dataset."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?datasetId=fun()->{datasetId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("datasetId",(Option.mapx.datasetId~f:DatasetId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasetId=(Option.map~f:DatasetId.of_xml)(Xml.childxml_arg0"datasetId")inmake?datasetId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasetId=field_mapjson__"datasetId"DatasetId.of_jsoninmake?datasetId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response from an UpdateDataset operation"]moduleUpdateDatasetRequest=structtypenonrect={clientToken:ClientToken.toption[@ocaml.doc"A token that ensures idempotency. This token expires in 10 minutes."];datasetId:DatasetId.t[@ocaml.doc"The unique identifier for the Dataset to update."];datasetTitle:DatasetTitle.t[@ocaml.doc"A display title for the Dataset."];kind:DatasetKind.t[@ocaml.doc"The format in which the Dataset data is structured. TABULAR \226\128\147 Data is structured in a tabular format. NON_TABULAR \226\128\147 Data is structured in a non-tabular format."];datasetDescription:DatasetDescription.toption[@ocaml.doc"A description for the Dataset."];alias:AliasString.toption[@ocaml.doc"The unique resource identifier for a Dataset."];schemaDefinition:SchemaUnion.toption[@ocaml.doc"Definition for a schema on a tabular Dataset."]}letcontext_="UpdateDatasetRequest"letmake?clientToken=fun?datasetDescription->fun?alias->fun?schemaDefinition->fun~datasetId->fun~datasetTitle->fun~kind->fun()->{clientToken;datasetDescription;alias;schemaDefinition;datasetId;datasetTitle;kind}letto_valuex=structure_to_value[("clientToken",(Option.mapx.clientToken~f:ClientToken.to_value));("datasetId",(Some(DatasetId.to_valuex.datasetId)));("datasetTitle",(Some(DatasetTitle.to_valuex.datasetTitle)));("kind",(Some(DatasetKind.to_valuex.kind)));("datasetDescription",(Option.mapx.datasetDescription~f:DatasetDescription.to_value));("alias",(Option.mapx.alias~f:AliasString.to_value));("schemaDefinition",(Option.mapx.schemaDefinition~f:SchemaUnion.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letschemaDefinition=(Option.map~f:SchemaUnion.of_xml)(Xml.childxml_arg0"schemaDefinition")inletalias=(Option.map~f:AliasString.of_xml)(Xml.childxml_arg0"alias")inletdatasetDescription=(Option.map~f:DatasetDescription.of_xml)(Xml.childxml_arg0"datasetDescription")inletkind=DatasetKind.of_xml(Xml.child_exn~context:context_xml_arg0"kind")inletdatasetTitle=DatasetTitle.of_xml(Xml.child_exn~context:context_xml_arg0"datasetTitle")inletdatasetId=DatasetId.of_xml(Xml.child_exn~context:context_xml_arg0"datasetId")inletclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"clientToken")inmake?schemaDefinition?alias?datasetDescription~kind~datasetTitle~datasetId?clientToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letschemaDefinition=field_mapjson__"schemaDefinition"SchemaUnion.of_jsoninletalias=field_mapjson__"alias"AliasString.of_jsoninletdatasetDescription=field_mapjson__"datasetDescription"DatasetDescription.of_jsoninletkind=field_map_exnjson__"kind"DatasetKind.of_jsoninletdatasetTitle=field_map_exnjson__"datasetTitle"DatasetTitle.of_jsoninletdatasetId=field_map_exnjson__"datasetId"DatasetId.of_jsoninletclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninmake?schemaDefinition?alias?datasetDescription~kind~datasetTitle~datasetId?clientToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request for an UpdateDataset operation"]moduleUpdateChangesetResponse=structtypenonrect={changesetId:ChangesetId.toption[@ocaml.doc"The unique identifier for the Changeset to update."];datasetId:DatasetId.toption[@ocaml.doc"The unique identifier for the FinSpace Dataset in which the Changeset is created."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?changesetId=fun?datasetId->fun()->{changesetId;datasetId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("changesetId",(Option.mapx.changesetId~f:ChangesetId.to_value));("datasetId",(Option.mapx.datasetId~f:DatasetId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasetId=(Option.map~f:DatasetId.of_xml)(Xml.childxml_arg0"datasetId")inletchangesetId=(Option.map~f:ChangesetId.of_xml)(Xml.childxml_arg0"changesetId")inmake?datasetId?changesetId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasetId=field_mapjson__"datasetId"DatasetId.of_jsoninletchangesetId=field_mapjson__"changesetId"ChangesetId.of_jsoninmake?datasetId?changesetId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response from a update changeset operation."]moduleUpdateChangesetRequest=structtypenonrect={clientToken:ClientToken.toption[@ocaml.doc"A token that ensures idempotency. This token expires in 10 minutes."];datasetId:DatasetId.t[@ocaml.doc"The unique identifier for the FinSpace Dataset in which the Changeset is created."];changesetId:ChangesetId.t[@ocaml.doc"The unique identifier for the Changeset to update."];sourceParams:SourceParams.t[@ocaml.doc"Options that define the location of the data being ingested (s3SourcePath) and the source of the changeset (sourceType). Both s3SourcePath and sourceType are required attributes. Here is an example of how you could specify the sourceParams: \"sourceParams\": \\{ \"s3SourcePath\": \"s3://finspace-landing-us-east-2-bk7gcfvitndqa6ebnvys4d/scratch/wr5hh8pwkpqqkxa4sxrmcw/ingestion/equity.csv\", \"sourceType\": \"S3\" \\} The S3 path that you specify must allow the FinSpace role access. To do that, you first need to configure the IAM policy on S3 bucket. For more information, see Loading data from an Amazon S3 Bucket using the FinSpace APIsection."];formatParams:FormatParams.t[@ocaml.doc"Options that define the structure of the source file(s) including the format type (formatType), header row (withHeader), data separation character (separator) and the type of compression (compression). formatType is a required attribute and can have the following values: PARQUET \226\128\147 Parquet source file format. CSV \226\128\147 CSV source file format. JSON \226\128\147 JSON source file format. XML \226\128\147 XML source file format. Here is an example of how you could specify the formatParams: \"formatParams\": \\{ \"formatType\": \"CSV\", \"withHeader\": \"true\", \"separator\": \",\", \"compression\":\"None\" \\} Note that if you only provide formatType as CSV, the rest of the attributes will automatically default to CSV values as following: \\{ \"withHeader\": \"true\", \"separator\": \",\" \\} For more information about supported file formats, see Supported Data Types and File Formats in the FinSpace User Guide."]}letcontext_="UpdateChangesetRequest"letmake?clientToken=fun~datasetId->fun~changesetId->fun~sourceParams->fun~formatParams->fun()->{clientToken;datasetId;changesetId;sourceParams;formatParams}letto_valuex=structure_to_value[("clientToken",(Option.mapx.clientToken~f:ClientToken.to_value));("datasetId",(Some(DatasetId.to_valuex.datasetId)));("changesetId",(Some(ChangesetId.to_valuex.changesetId)));("sourceParams",(Some(SourceParams.to_valuex.sourceParams)));("formatParams",(Some(FormatParams.to_valuex.formatParams)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letformatParams=FormatParams.of_xml(Xml.child_exn~context:context_xml_arg0"formatParams")inletsourceParams=SourceParams.of_xml(Xml.child_exn~context:context_xml_arg0"sourceParams")inletchangesetId=ChangesetId.of_xml(Xml.child_exn~context:context_xml_arg0"changesetId")inletdatasetId=DatasetId.of_xml(Xml.child_exn~context:context_xml_arg0"datasetId")inletclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"clientToken")inmake~formatParams~sourceParams~changesetId~datasetId?clientToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letformatParams=field_map_exnjson__"formatParams"FormatParams.of_jsoninletsourceParams=field_map_exnjson__"sourceParams"SourceParams.of_jsoninletchangesetId=field_map_exnjson__"changesetId"ChangesetId.of_jsoninletdatasetId=field_map_exnjson__"datasetId"DatasetId.of_jsoninletclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninmake~formatParams~sourceParams~changesetId~datasetId?clientToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request to update an existing changeset."]moduleResetUserPasswordResponse=structtypenonrect={userId:UserId.toption[@ocaml.doc"The unique identifier of the user that a new password is generated for."];temporaryPassword:Password.toption[@ocaml.doc"A randomly generated temporary password for the requested user. This password expires in 7 days."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?userId=fun?temporaryPassword->fun()->{userId;temporaryPassword}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("userId",(Option.mapx.userId~f:UserId.to_value));("temporaryPassword",(Option.mapx.temporaryPassword~f:Password.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettemporaryPassword=(Option.map~f:Password.of_xml)(Xml.childxml_arg0"temporaryPassword")inletuserId=(Option.map~f:UserId.of_xml)(Xml.childxml_arg0"userId")inmake?temporaryPassword?userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettemporaryPassword=field_mapjson__"temporaryPassword"Password.of_jsoninletuserId=field_mapjson__"userId"UserId.of_jsoninmake?temporaryPassword?userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Resets the password for a specified user ID and generates a temporary one. Only a superuser can reset password for other users. Resetting the password immediately invalidates the previous password associated with the user."]moduleResetUserPasswordRequest=structtypenonrect={userId:UserId.t[@ocaml.doc"The unique identifier of the user that a temporary password is requested for."];clientToken:ClientToken.toption[@ocaml.doc"A token that ensures idempotency. This token expires in 10 minutes."]}letcontext_="ResetUserPasswordRequest"letmake?clientToken=fun~userId->fun()->{clientToken;userId}letto_valuex=structure_to_value[("userId",(Some(UserId.to_valuex.userId)));("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")inletuserId=UserId.of_xml(Xml.child_exn~context:context_xml_arg0"userId")inmake?clientToken~userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninletuserId=field_map_exnjson__"userId"UserId.of_jsoninmake?clientToken~userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Resets the password for a specified user ID and generates a temporary one. Only a superuser can reset password for other users. Resetting the password immediately invalidates the previous password associated with the user."]moduleListUsersResponse=structtypenonrect={users:UserList.toption[@ocaml.doc"A list of all the users."];nextToken:PaginationToken.toption[@ocaml.doc"A token that indicates where a results page should begin."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?users=fun?nextToken->fun()->{users;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("users",(Option.mapx.users~f:UserList.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletusers=(Option.map~f:UserList.of_xml)(Xml.childxml_arg0"users")inmake?nextToken?users()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletusers=field_mapjson__"users"UserList.of_jsoninmake?nextToken?users()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all available users in FinSpace."]moduleListUsersRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"A token that indicates where a results page should begin."];maxResults:ResultLimit.t[@ocaml.doc"The maximum number of results per page."]}letcontext_="ListUsersRequest"letmake?nextToken=fun~maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("maxResults",(Some(ResultLimit.to_valuex.maxResults)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=ResultLimit.of_xml(Xml.child_exn~context:context_xml_arg0"maxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inmake~maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_map_exnjson__"maxResults"ResultLimit.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninmake~maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all available users in FinSpace."]moduleListUsersByPermissionGroupResponse=structtypenonrect={users:UserByPermissionGroupList.toption[@ocaml.doc"Lists details of all users in a specific permission group."];nextToken:PaginationToken.toption[@ocaml.doc"A token that indicates where a results page should begin."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?users=fun?nextToken->fun()->{users;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("users",(Option.mapx.users~f:UserByPermissionGroupList.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletusers=(Option.map~f:UserByPermissionGroupList.of_xml)(Xml.childxml_arg0"users")inmake?nextToken?users()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletusers=field_mapjson__"users"UserByPermissionGroupList.of_jsoninmake?nextToken?users()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists details of all the users in a specific permission group."]moduleListUsersByPermissionGroupRequest=structtypenonrect={permissionGroupId:PermissionGroupId.t[@ocaml.doc"The unique identifier for the permission group."];nextToken:PaginationToken.toption[@ocaml.doc"A token that indicates where a results page should begin."];maxResults:ResultLimit.t[@ocaml.doc"The maximum number of results per page."]}letcontext_="ListUsersByPermissionGroupRequest"letmake?nextToken=fun~permissionGroupId->fun~maxResults->fun()->{nextToken;permissionGroupId;maxResults}letto_valuex=structure_to_value[("permissionGroupId",(Some(PermissionGroupId.to_valuex.permissionGroupId)));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("maxResults",(Some(ResultLimit.to_valuex.maxResults)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=ResultLimit.of_xml(Xml.child_exn~context:context_xml_arg0"maxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletpermissionGroupId=PermissionGroupId.of_xml(Xml.child_exn~context:context_xml_arg0"permissionGroupId")inmake~maxResults?nextToken~permissionGroupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_map_exnjson__"maxResults"ResultLimit.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletpermissionGroupId=field_map_exnjson__"permissionGroupId"PermissionGroupId.of_jsoninmake~maxResults?nextToken~permissionGroupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists details of all the users in a specific permission group."]moduleListPermissionGroupsResponse=structtypenonrect={permissionGroups:PermissionGroupList.toption[@ocaml.doc"A list of all the permission groups."];nextToken:PaginationToken.toption[@ocaml.doc"A token that indicates where a results page should begin."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?permissionGroups=fun?nextToken->fun()->{permissionGroups;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("permissionGroups",(Option.mapx.permissionGroups~f:PermissionGroupList.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletpermissionGroups=(Option.map~f:PermissionGroupList.of_xml)(Xml.childxml_arg0"permissionGroups")inmake?nextToken?permissionGroups()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletpermissionGroups=field_mapjson__"permissionGroups"PermissionGroupList.of_jsoninmake?nextToken?permissionGroups()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all available permission groups in FinSpace."]moduleListPermissionGroupsRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"A token that indicates where a results page should begin."];maxResults:ResultLimit.t[@ocaml.doc"The maximum number of results per page."]}letcontext_="ListPermissionGroupsRequest"letmake?nextToken=fun~maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("maxResults",(Some(ResultLimit.to_valuex.maxResults)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=ResultLimit.of_xml(Xml.child_exn~context:context_xml_arg0"maxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inmake~maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_map_exnjson__"maxResults"ResultLimit.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninmake~maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all available permission groups in FinSpace."]moduleListPermissionGroupsByUserResponse=structtypenonrect={permissionGroups:PermissionGroupByUserList.toption[@ocaml.doc"A list of returned permission groups."];nextToken:PaginationToken.toption[@ocaml.doc"A token that indicates where a results page should begin."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?permissionGroups=fun?nextToken->fun()->{permissionGroups;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("permissionGroups",(Option.mapx.permissionGroups~f:PermissionGroupByUserList.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletpermissionGroups=(Option.map~f:PermissionGroupByUserList.of_xml)(Xml.childxml_arg0"permissionGroups")inmake?nextToken?permissionGroups()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletpermissionGroups=field_mapjson__"permissionGroups"PermissionGroupByUserList.of_jsoninmake?nextToken?permissionGroups()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all the permission groups that are associated with a specific user."]moduleListPermissionGroupsByUserRequest=structtypenonrect={userId:UserId.t[@ocaml.doc"The unique identifier for the user."];nextToken:PaginationToken.toption[@ocaml.doc"A token that indicates where a results page should begin."];maxResults:ResultLimit.t[@ocaml.doc"The maximum number of results per page."]}letcontext_="ListPermissionGroupsByUserRequest"letmake?nextToken=fun~userId->fun~maxResults->fun()->{nextToken;userId;maxResults}letto_valuex=structure_to_value[("userId",(Some(UserId.to_valuex.userId)));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("maxResults",(Some(ResultLimit.to_valuex.maxResults)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=ResultLimit.of_xml(Xml.child_exn~context:context_xml_arg0"maxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletuserId=UserId.of_xml(Xml.child_exn~context:context_xml_arg0"userId")inmake~maxResults?nextToken~userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_map_exnjson__"maxResults"ResultLimit.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletuserId=field_map_exnjson__"userId"UserId.of_jsoninmake~maxResults?nextToken~userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all the permission groups that are associated with a specific user."]moduleListDatasetsResponse=structtypenonrect={datasets:DatasetList.toption[@ocaml.doc"List of Datasets."];nextToken:PaginationToken.toption[@ocaml.doc"A token that indicates where a results page should begin."]}typenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?datasets=fun?nextToken->fun()->{datasets;nextToken}leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("datasets",(Option.mapx.datasets~f:DatasetList.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletdatasets=(Option.map~f:DatasetList.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"PaginationToken.of_jsoninletdatasets=field_mapjson__"datasets"DatasetList.of_jsoninmake?nextToken?datasets()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response for the ListDatasets operation"]moduleListDatasetsRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"A token that indicates where a results page should begin."];maxResults:ResultLimit.toption[@ocaml.doc"The maximum number of results per page."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("maxResults",(Option.mapx.maxResults~f:ResultLimit.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:ResultLimit.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"ResultLimit.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request for the ListDatasets operation."]moduleListDataViewsResponse=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"A token that indicates where a results page should begin."];dataViews:DataViewList.toption[@ocaml.doc"A list of Dataviews."]}typenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?dataViews->fun()->{nextToken;dataViews}leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("dataViews",(Option.mapx.dataViews~f:DataViewList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataViews=(Option.map~f:DataViewList.of_xml)(Xml.childxml_arg0"dataViews")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?dataViews?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataViews=field_mapjson__"dataViews"DataViewList.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninmake?dataViews?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all available Dataviews for a Dataset."]moduleListDataViewsRequest=structtypenonrect={datasetId:DatasetId.t[@ocaml.doc"The unique identifier of the Dataset for which to retrieve Dataviews."];nextToken:PaginationToken.toption[@ocaml.doc"A token that indicates where a results page should begin."];maxResults:ResultLimit.toption[@ocaml.doc"The maximum number of results per page."]}letcontext_="ListDataViewsRequest"letmake?nextToken=fun?maxResults->fun~datasetId->fun()->{nextToken;maxResults;datasetId}letto_valuex=structure_to_value[("datasetId",(Some(DatasetId.to_valuex.datasetId)));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("maxResults",(Option.mapx.maxResults~f:ResultLimit.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:ResultLimit.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletdatasetId=DatasetId.of_xml(Xml.child_exn~context:context_xml_arg0"datasetId")inmake?maxResults?nextToken~datasetId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"ResultLimit.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletdatasetId=field_map_exnjson__"datasetId"DatasetId.of_jsoninmake?maxResults?nextToken~datasetId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request for a list data views."]moduleListChangesetsResponse=structtypenonrect={changesets:ChangesetList.toption[@ocaml.doc"List of Changesets found."];nextToken:PaginationToken.toption[@ocaml.doc"A token that indicates where a results page should begin."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?changesets=fun?nextToken->fun()->{changesets;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)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("changesets",(Option.mapx.changesets~f:ChangesetList.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletchangesets=(Option.map~f:ChangesetList.of_xml)(Xml.childxml_arg0"changesets")inmake?nextToken?changesets()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletchangesets=field_mapjson__"changesets"ChangesetList.of_jsoninmake?nextToken?changesets()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response to ListChangesetsResponse. This returns a list of dataset changesets that match the query criteria."]moduleListChangesetsRequest=structtypenonrect={datasetId:DatasetId.t[@ocaml.doc"The unique identifier for the FinSpace Dataset to which the Changeset belongs."];maxResults:ResultLimit.toption[@ocaml.doc"The maximum number of results per page."];nextToken:PaginationToken.toption[@ocaml.doc"A token that indicates where a results page should begin."]}letcontext_="ListChangesetsRequest"letmake?maxResults=fun?nextToken->fun~datasetId->fun()->{maxResults;nextToken;datasetId}letto_valuex=structure_to_value[("datasetId",(Some(DatasetId.to_valuex.datasetId)));("maxResults",(Option.mapx.maxResults~f:ResultLimit.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:ResultLimit.of_xml)(Xml.childxml_arg0"maxResults")inletdatasetId=DatasetId.of_xml(Xml.child_exn~context:context_xml_arg0"datasetId")inmake?nextToken?maxResults~datasetId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletmaxResults=field_mapjson__"maxResults"ResultLimit.of_jsoninletdatasetId=field_map_exnjson__"datasetId"DatasetId.of_jsoninmake?nextToken?maxResults~datasetId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request to ListChangesetsRequest. It exposes minimal query filters."]moduleGetWorkingLocationResponse=structtypenonrect={s3Uri:StringValueLength1to1024.toption[@ocaml.doc"Returns the Amazon S3 URI for the working location."];s3Path:StringValueLength1to1024.toption[@ocaml.doc"Returns the Amazon S3 Path for the working location."];s3Bucket:StringValueLength1to63.toption[@ocaml.doc"Returns the Amazon S3 bucket name for the working location."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?s3Uri=fun?s3Path->fun?s3Bucket->fun()->{s3Uri;s3Path;s3Bucket}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("s3Uri",(Option.mapx.s3Uri~f:StringValueLength1to1024.to_value));("s3Path",(Option.mapx.s3Path~f:StringValueLength1to1024.to_value));("s3Bucket",(Option.mapx.s3Bucket~f:StringValueLength1to63.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3Bucket=(Option.map~f:StringValueLength1to63.of_xml)(Xml.childxml_arg0"s3Bucket")inlets3Path=(Option.map~f:StringValueLength1to1024.of_xml)(Xml.childxml_arg0"s3Path")inlets3Uri=(Option.map~f:StringValueLength1to1024.of_xml)(Xml.childxml_arg0"s3Uri")inmake?s3Bucket?s3Path?s3Uri()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3Bucket=field_mapjson__"s3Bucket"StringValueLength1to63.of_jsoninlets3Path=field_mapjson__"s3Path"StringValueLength1to1024.of_jsoninlets3Uri=field_mapjson__"s3Uri"StringValueLength1to1024.of_jsoninmake?s3Bucket?s3Path?s3Uri()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A temporary Amazon S3 location, where you can copy your files from a source location to stage or use as a scratch space in FinSpace notebook."]moduleGetWorkingLocationRequest=structtypenonrect={locationType:LocationType.toption[@ocaml.doc"Specify the type of the working location. SAGEMAKER \226\128\147 Use the Amazon S3 location as a temporary location to store data content when working with FinSpace Notebooks that run on SageMaker studio. INGESTION \226\128\147 Use the Amazon S3 location as a staging location to copy your data content and then use the location with the Changeset creation operation."]}letmake?locationType=fun()->{locationType}letto_valuex=structure_to_value[("locationType",(Option.mapx.locationType~f:LocationType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationType=(Option.map~f:LocationType.of_xml)(Xml.childxml_arg0"locationType")inmake?locationType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationType=field_mapjson__"locationType"LocationType.of_jsoninmake?locationType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A temporary Amazon S3 location, where you can copy your files from a source location to stage or use as a scratch space in FinSpace notebook."]moduleGetUserResponse=structtypenonrect={userId:UserId.toption[@ocaml.doc"The unique identifier for the user that is retrieved."];status:UserStatus.toption[@ocaml.doc"The current status of the user. CREATING \226\128\147 The creation is in progress. ENABLED \226\128\147 The user is created and is currently active. DISABLED \226\128\147 The user is currently inactive."];firstName:FirstName.toption[@ocaml.doc"The first name of the user."];lastName:LastName.toption[@ocaml.doc"The last name of the user."];emailAddress:Email.toption[@ocaml.doc"The email address that is associated with the user."];type_:UserType.toption[@ocaml.doc"Indicates the type of user. SUPER_USER \226\128\147 A user with permission to all the functionality and data in FinSpace. APP_USER \226\128\147 A user with specific permissions in FinSpace. The users are assigned permissions by adding them to a permission group."];apiAccess:ApiAccess.toption[@ocaml.doc"Indicates whether the user can use the GetProgrammaticAccessCredentials API to obtain credentials that can then be used to access other FinSpace Data API operations. ENABLED \226\128\147 The user has permissions to use the APIs. DISABLED \226\128\147 The user does not have permissions to use any APIs."];apiAccessPrincipalArn:RoleArn.toption[@ocaml.doc"The ARN identifier of an AWS user or role that is allowed to call the GetProgrammaticAccessCredentials API to obtain a credentials token for a specific FinSpace user. This must be an IAM role within your FinSpace account."];createTime:TimestampEpoch.toption[@ocaml.doc"The timestamp at which the user was created in FinSpace. The value is determined as epoch time in milliseconds."];lastEnabledTime:TimestampEpoch.toption[@ocaml.doc"Describes the last time the user was activated. The value is determined as epoch time in milliseconds."];lastDisabledTime:TimestampEpoch.toption[@ocaml.doc"Describes the last time the user was deactivated. The value is determined as epoch time in milliseconds."];lastModifiedTime:TimestampEpoch.toption[@ocaml.doc"Describes the last time the user details were updated. The value is determined as epoch time in milliseconds."];lastLoginTime:TimestampEpoch.toption[@ocaml.doc"Describes the last time that the user logged into their account. The value is determined as epoch time in milliseconds."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?userId=fun?status->fun?firstName->fun?lastName->fun?emailAddress->fun?type_->fun?apiAccess->fun?apiAccessPrincipalArn->fun?createTime->fun?lastEnabledTime->fun?lastDisabledTime->fun?lastModifiedTime->fun?lastLoginTime->fun()->{userId;status;firstName;lastName;emailAddress;type_;apiAccess;apiAccessPrincipalArn;createTime;lastEnabledTime;lastDisabledTime;lastModifiedTime;lastLoginTime}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("userId",(Option.mapx.userId~f:UserId.to_value));("status",(Option.mapx.status~f:UserStatus.to_value));("firstName",(Option.mapx.firstName~f:FirstName.to_value));("lastName",(Option.mapx.lastName~f:LastName.to_value));("emailAddress",(Option.mapx.emailAddress~f:Email.to_value));("type",(Option.mapx.type_~f:UserType.to_value));("apiAccess",(Option.mapx.apiAccess~f:ApiAccess.to_value));("apiAccessPrincipalArn",(Option.mapx.apiAccessPrincipalArn~f:RoleArn.to_value));("createTime",(Option.mapx.createTime~f:TimestampEpoch.to_value));("lastEnabledTime",(Option.mapx.lastEnabledTime~f:TimestampEpoch.to_value));("lastDisabledTime",(Option.mapx.lastDisabledTime~f:TimestampEpoch.to_value));("lastModifiedTime",(Option.mapx.lastModifiedTime~f:TimestampEpoch.to_value));("lastLoginTime",(Option.mapx.lastLoginTime~f:TimestampEpoch.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastLoginTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"lastLoginTime")inletlastModifiedTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"lastModifiedTime")inletlastDisabledTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"lastDisabledTime")inletlastEnabledTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"lastEnabledTime")inletcreateTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"createTime")inletapiAccessPrincipalArn=(Option.map~f:RoleArn.of_xml)(Xml.childxml_arg0"apiAccessPrincipalArn")inletapiAccess=(Option.map~f:ApiAccess.of_xml)(Xml.childxml_arg0"apiAccess")inlettype_=(Option.map~f:UserType.of_xml)(Xml.childxml_arg0"type")inletemailAddress=(Option.map~f:Email.of_xml)(Xml.childxml_arg0"emailAddress")inletlastName=(Option.map~f:LastName.of_xml)(Xml.childxml_arg0"lastName")inletfirstName=(Option.map~f:FirstName.of_xml)(Xml.childxml_arg0"firstName")inletstatus=(Option.map~f:UserStatus.of_xml)(Xml.childxml_arg0"status")inletuserId=(Option.map~f:UserId.of_xml)(Xml.childxml_arg0"userId")inmake?lastLoginTime?lastModifiedTime?lastDisabledTime?lastEnabledTime?createTime?apiAccessPrincipalArn?apiAccess?type_?emailAddress?lastName?firstName?status?userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastLoginTime=field_mapjson__"lastLoginTime"TimestampEpoch.of_jsoninletlastModifiedTime=field_mapjson__"lastModifiedTime"TimestampEpoch.of_jsoninletlastDisabledTime=field_mapjson__"lastDisabledTime"TimestampEpoch.of_jsoninletlastEnabledTime=field_mapjson__"lastEnabledTime"TimestampEpoch.of_jsoninletcreateTime=field_mapjson__"createTime"TimestampEpoch.of_jsoninletapiAccessPrincipalArn=field_mapjson__"apiAccessPrincipalArn"RoleArn.of_jsoninletapiAccess=field_mapjson__"apiAccess"ApiAccess.of_jsoninlettype_=field_mapjson__"type"UserType.of_jsoninletemailAddress=field_mapjson__"emailAddress"Email.of_jsoninletlastName=field_mapjson__"lastName"LastName.of_jsoninletfirstName=field_mapjson__"firstName"FirstName.of_jsoninletstatus=field_mapjson__"status"UserStatus.of_jsoninletuserId=field_mapjson__"userId"UserId.of_jsoninmake?lastLoginTime?lastModifiedTime?lastDisabledTime?lastEnabledTime?createTime?apiAccessPrincipalArn?apiAccess?type_?emailAddress?lastName?firstName?status?userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details for a specific user."]moduleGetUserRequest=structtypenonrect={userId:UserId.t[@ocaml.doc"The unique identifier of the user to get data for."]}letcontext_="GetUserRequest"letmake~userId=fun()->{userId}letto_valuex=structure_to_value[("userId",(Some(UserId.to_valuex.userId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserId=UserId.of_xml(Xml.child_exn~context:context_xml_arg0"userId")inmake~userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserId=field_map_exnjson__"userId"UserId.of_jsoninmake~userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details for a specific user."]moduleGetProgrammaticAccessCredentialsResponse=structtypenonrect={credentials:Credentials.toption[@ocaml.doc"Returns the programmatic credentials."];durationInMinutes:SessionDuration.toption[@ocaml.doc"Returns the duration in which the credentials will remain valid."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?credentials=fun?durationInMinutes->fun()->{credentials;durationInMinutes}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("credentials",(Option.mapx.credentials~f:Credentials.to_value));("durationInMinutes",(Option.mapx.durationInMinutes~f:SessionDuration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdurationInMinutes=(Option.map~f:SessionDuration.of_xml)(Xml.childxml_arg0"durationInMinutes")inletcredentials=(Option.map~f:Credentials.of_xml)(Xml.childxml_arg0"credentials")inmake?durationInMinutes?credentials()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdurationInMinutes=field_mapjson__"durationInMinutes"SessionDuration.of_jsoninletcredentials=field_mapjson__"credentials"Credentials.of_jsoninmake?durationInMinutes?credentials()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response for GetProgrammaticAccessCredentials operation"]moduleGetProgrammaticAccessCredentialsRequest=structtypenonrect={durationInMinutes:SessionDuration.toption[@ocaml.doc"The time duration in which the credentials remain valid."];environmentId:IdType.t[@ocaml.doc"The FinSpace environment identifier."]}letcontext_="GetProgrammaticAccessCredentialsRequest"letmake?durationInMinutes=fun~environmentId->fun()->{durationInMinutes;environmentId}letto_valuex=structure_to_value[("durationInMinutes",(Option.mapx.durationInMinutes~f:SessionDuration.to_value));("environmentId",(Some(IdType.to_valuex.environmentId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letenvironmentId=IdType.of_xml(Xml.child_exn~context:context_xml_arg0"environmentId")inletdurationInMinutes=(Option.map~f:SessionDuration.of_xml)(Xml.childxml_arg0"durationInMinutes")inmake~environmentId?durationInMinutes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letenvironmentId=field_map_exnjson__"environmentId"IdType.of_jsoninletdurationInMinutes=field_mapjson__"durationInMinutes"SessionDuration.of_jsoninmake~environmentId?durationInMinutes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request for GetProgrammaticAccessCredentials operation"]moduleGetPermissionGroupResponse=structtypenonrect={permissionGroup:PermissionGroup.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?permissionGroup=fun()->{permissionGroup}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("permissionGroup",(Option.mapx.permissionGroup~f:PermissionGroup.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpermissionGroup=(Option.map~f:PermissionGroup.of_xml)(Xml.childxml_arg0"permissionGroup")inmake?permissionGroup()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpermissionGroup=field_mapjson__"permissionGroup"PermissionGroup.of_jsoninmake?permissionGroup()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the details of a specific permission group."]moduleGetPermissionGroupRequest=structtypenonrect={permissionGroupId:PermissionGroupId.t[@ocaml.doc"The unique identifier for the permission group."]}letcontext_="GetPermissionGroupRequest"letmake~permissionGroupId=fun()->{permissionGroupId}letto_valuex=structure_to_value[("permissionGroupId",(Some(PermissionGroupId.to_valuex.permissionGroupId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpermissionGroupId=PermissionGroupId.of_xml(Xml.child_exn~context:context_xml_arg0"permissionGroupId")inmake~permissionGroupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpermissionGroupId=field_map_exnjson__"permissionGroupId"PermissionGroupId.of_jsoninmake~permissionGroupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the details of a specific permission group."]moduleGetExternalDataViewAccessDetailsResponse=structtypenonrect={credentials:AwsCredentials.toption[@ocaml.doc"The credentials required to access the external Dataview from the S3 location."];s3Location:S3Location.toption[@ocaml.doc"The location where the external Dataview is stored."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?credentials=fun?s3Location->fun()->{credentials;s3Location}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("credentials",(Option.mapx.credentials~f:AwsCredentials.to_value));("s3Location",(Option.mapx.s3Location~f:S3Location.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3Location=(Option.map~f:S3Location.of_xml)(Xml.childxml_arg0"s3Location")inletcredentials=(Option.map~f:AwsCredentials.of_xml)(Xml.childxml_arg0"credentials")inmake?s3Location?credentials()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3Location=field_mapjson__"s3Location"S3Location.of_jsoninletcredentials=field_mapjson__"credentials"AwsCredentials.of_jsoninmake?s3Location?credentials()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the credentials to access the external Dataview from an S3 location. To call this API: You must retrieve the programmatic credentials. You must be a member of a FinSpace user group, where the dataset that you want to access has Read Dataset Data permissions."]moduleGetExternalDataViewAccessDetailsRequest=structtypenonrect={dataViewId:DataViewId.t[@ocaml.doc"The unique identifier for the Dataview that you want to access."];datasetId:DatasetId.t[@ocaml.doc"The unique identifier for the Dataset."]}letcontext_="GetExternalDataViewAccessDetailsRequest"letmake~dataViewId=fun~datasetId->fun()->{dataViewId;datasetId}letto_valuex=structure_to_value[("dataviewId",(Some(DataViewId.to_valuex.dataViewId)));("datasetId",(Some(DatasetId.to_valuex.datasetId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasetId=DatasetId.of_xml(Xml.child_exn~context:context_xml_arg0"datasetId")inletdataViewId=DataViewId.of_xml(Xml.child_exn~context:context_xml_arg0"dataviewId")inmake~datasetId~dataViewId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasetId=field_map_exnjson__"datasetId"DatasetId.of_jsoninletdataViewId=field_map_exnjson__"dataViewId"DataViewId.of_jsoninmake~datasetId~dataViewId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the credentials to access the external Dataview from an S3 location. To call this API: You must retrieve the programmatic credentials. You must be a member of a FinSpace user group, where the dataset that you want to access has Read Dataset Data permissions."]moduleGetDatasetResponse=structtypenonrect={datasetId:DatasetId.toption[@ocaml.doc"The unique identifier for a Dataset."];datasetArn:DatasetArn.toption[@ocaml.doc"The ARN identifier of the Dataset."];datasetTitle:DatasetTitle.toption[@ocaml.doc"Display title for a Dataset."];kind:DatasetKind.toption[@ocaml.doc"The format in which Dataset data is structured. TABULAR \226\128\147 Data is structured in a tabular format. NON_TABULAR \226\128\147 Data is structured in a non-tabular format."];datasetDescription:DatasetDescription.toption[@ocaml.doc"A description of the Dataset."];createTime:TimestampEpoch.toption[@ocaml.doc"The timestamp at which the Dataset was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000."];lastModifiedTime:TimestampEpoch.toption[@ocaml.doc"The last time that the Dataset was modified. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000."];schemaDefinition:SchemaUnion.toption[@ocaml.doc"Definition for a schema on a tabular Dataset."];alias:AliasString.toption[@ocaml.doc"The unique resource identifier for a Dataset."];status:DatasetStatus.toption[@ocaml.doc"Status of the Dataset creation. PENDING \226\128\147 Dataset is pending creation. FAILED \226\128\147 Dataset creation has failed. SUCCESS \226\128\147 Dataset creation has succeeded. RUNNING \226\128\147 Dataset creation is running."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?datasetId=fun?datasetArn->fun?datasetTitle->fun?kind->fun?datasetDescription->fun?createTime->fun?lastModifiedTime->fun?schemaDefinition->fun?alias->fun?status->fun()->{datasetId;datasetArn;datasetTitle;kind;datasetDescription;createTime;lastModifiedTime;schemaDefinition;alias;status}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("datasetId",(Option.mapx.datasetId~f:DatasetId.to_value));("datasetArn",(Option.mapx.datasetArn~f:DatasetArn.to_value));("datasetTitle",(Option.mapx.datasetTitle~f:DatasetTitle.to_value));("kind",(Option.mapx.kind~f:DatasetKind.to_value));("datasetDescription",(Option.mapx.datasetDescription~f:DatasetDescription.to_value));("createTime",(Option.mapx.createTime~f:TimestampEpoch.to_value));("lastModifiedTime",(Option.mapx.lastModifiedTime~f:TimestampEpoch.to_value));("schemaDefinition",(Option.mapx.schemaDefinition~f:SchemaUnion.to_value));("alias",(Option.mapx.alias~f:AliasString.to_value));("status",(Option.mapx.status~f:DatasetStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:DatasetStatus.of_xml)(Xml.childxml_arg0"status")inletalias=(Option.map~f:AliasString.of_xml)(Xml.childxml_arg0"alias")inletschemaDefinition=(Option.map~f:SchemaUnion.of_xml)(Xml.childxml_arg0"schemaDefinition")inletlastModifiedTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"lastModifiedTime")inletcreateTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"createTime")inletdatasetDescription=(Option.map~f:DatasetDescription.of_xml)(Xml.childxml_arg0"datasetDescription")inletkind=(Option.map~f:DatasetKind.of_xml)(Xml.childxml_arg0"kind")inletdatasetTitle=(Option.map~f:DatasetTitle.of_xml)(Xml.childxml_arg0"datasetTitle")inletdatasetArn=(Option.map~f:DatasetArn.of_xml)(Xml.childxml_arg0"datasetArn")inletdatasetId=(Option.map~f:DatasetId.of_xml)(Xml.childxml_arg0"datasetId")inmake?status?alias?schemaDefinition?lastModifiedTime?createTime?datasetDescription?kind?datasetTitle?datasetArn?datasetId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"status"DatasetStatus.of_jsoninletalias=field_mapjson__"alias"AliasString.of_jsoninletschemaDefinition=field_mapjson__"schemaDefinition"SchemaUnion.of_jsoninletlastModifiedTime=field_mapjson__"lastModifiedTime"TimestampEpoch.of_jsoninletcreateTime=field_mapjson__"createTime"TimestampEpoch.of_jsoninletdatasetDescription=field_mapjson__"datasetDescription"DatasetDescription.of_jsoninletkind=field_mapjson__"kind"DatasetKind.of_jsoninletdatasetTitle=field_mapjson__"datasetTitle"DatasetTitle.of_jsoninletdatasetArn=field_mapjson__"datasetArn"DatasetArn.of_jsoninletdatasetId=field_mapjson__"datasetId"DatasetId.of_jsoninmake?status?alias?schemaDefinition?lastModifiedTime?createTime?datasetDescription?kind?datasetTitle?datasetArn?datasetId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response for the GetDataset operation"]moduleGetDatasetRequest=structtypenonrect={datasetId:StringValueLength1to255.t[@ocaml.doc"The unique identifier for a Dataset."]}letcontext_="GetDatasetRequest"letmake~datasetId=fun()->{datasetId}letto_valuex=structure_to_value[("datasetId",(Some(StringValueLength1to255.to_valuex.datasetId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasetId=StringValueLength1to255.of_xml(Xml.child_exn~context:context_xml_arg0"datasetId")inmake~datasetId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasetId=field_map_exnjson__"datasetId"StringValueLength1to255.of_jsoninmake~datasetId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request for the GetDataset operation."]moduleGetDataViewResponse=structtypenonrect={autoUpdate:Boolean.toption[@ocaml.doc"Flag to indicate Dataview should be updated automatically."];partitionColumns:PartitionColumnList.toption[@ocaml.doc"Ordered set of column names used to partition data."];datasetId:DatasetId.toption[@ocaml.doc"The unique identifier for the Dataset used in the Dataview."];asOfTimestamp:TimestampEpoch.toption[@ocaml.doc"Time range to use for the Dataview. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000."];errorInfo:DataViewErrorInfo.toption[@ocaml.doc"Information about an error that occurred for the Dataview."];lastModifiedTime:TimestampEpoch.toption[@ocaml.doc"The last time that a Dataview was modified. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000."];createTime:TimestampEpoch.toption[@ocaml.doc"The timestamp at which the Dataview was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000."];sortColumns:SortColumnList.toption[@ocaml.doc"Columns to be used for sorting the data."];dataViewId:DataViewId.toption[@ocaml.doc"The unique identifier for the Dataview."];dataViewArn:DataViewArn.toption[@ocaml.doc"The ARN identifier of the Dataview."];destinationTypeParams:DataViewDestinationTypeParams.toption[@ocaml.doc"Options that define the destination type for the Dataview."];status:DataViewStatus.toption[@ocaml.doc"The status of a Dataview creation. RUNNING \226\128\147 Dataview creation is running. STARTING \226\128\147 Dataview creation is starting. FAILED \226\128\147 Dataview creation has failed. CANCELLED \226\128\147 Dataview creation has been cancelled. TIMEOUT \226\128\147 Dataview creation has timed out. SUCCESS \226\128\147 Dataview creation has succeeded. PENDING \226\128\147 Dataview creation is pending. FAILED_CLEANUP_FAILED \226\128\147 Dataview creation failed and resource cleanup failed."]}typenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?autoUpdate=fun?partitionColumns->fun?datasetId->fun?asOfTimestamp->fun?errorInfo->fun?lastModifiedTime->fun?createTime->fun?sortColumns->fun?dataViewId->fun?dataViewArn->fun?destinationTypeParams->fun?status->fun()->{autoUpdate;partitionColumns;datasetId;asOfTimestamp;errorInfo;lastModifiedTime;createTime;sortColumns;dataViewId;dataViewArn;destinationTypeParams;status}leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("autoUpdate",(Option.mapx.autoUpdate~f:Boolean.to_value));("partitionColumns",(Option.mapx.partitionColumns~f:PartitionColumnList.to_value));("datasetId",(Option.mapx.datasetId~f:DatasetId.to_value));("asOfTimestamp",(Option.mapx.asOfTimestamp~f:TimestampEpoch.to_value));("errorInfo",(Option.mapx.errorInfo~f:DataViewErrorInfo.to_value));("lastModifiedTime",(Option.mapx.lastModifiedTime~f:TimestampEpoch.to_value));("createTime",(Option.mapx.createTime~f:TimestampEpoch.to_value));("sortColumns",(Option.mapx.sortColumns~f:SortColumnList.to_value));("dataViewId",(Option.mapx.dataViewId~f:DataViewId.to_value));("dataViewArn",(Option.mapx.dataViewArn~f:DataViewArn.to_value));("destinationTypeParams",(Option.mapx.destinationTypeParams~f:DataViewDestinationTypeParams.to_value));("status",(Option.mapx.status~f:DataViewStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:DataViewStatus.of_xml)(Xml.childxml_arg0"status")inletdestinationTypeParams=(Option.map~f:DataViewDestinationTypeParams.of_xml)(Xml.childxml_arg0"destinationTypeParams")inletdataViewArn=(Option.map~f:DataViewArn.of_xml)(Xml.childxml_arg0"dataViewArn")inletdataViewId=(Option.map~f:DataViewId.of_xml)(Xml.childxml_arg0"dataViewId")inletsortColumns=(Option.map~f:SortColumnList.of_xml)(Xml.childxml_arg0"sortColumns")inletcreateTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"createTime")inletlastModifiedTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"lastModifiedTime")inleterrorInfo=(Option.map~f:DataViewErrorInfo.of_xml)(Xml.childxml_arg0"errorInfo")inletasOfTimestamp=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"asOfTimestamp")inletdatasetId=(Option.map~f:DatasetId.of_xml)(Xml.childxml_arg0"datasetId")inletpartitionColumns=(Option.map~f:PartitionColumnList.of_xml)(Xml.childxml_arg0"partitionColumns")inletautoUpdate=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"autoUpdate")inmake?status?destinationTypeParams?dataViewArn?dataViewId?sortColumns?createTime?lastModifiedTime?errorInfo?asOfTimestamp?datasetId?partitionColumns?autoUpdate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"status"DataViewStatus.of_jsoninletdestinationTypeParams=field_mapjson__"destinationTypeParams"DataViewDestinationTypeParams.of_jsoninletdataViewArn=field_mapjson__"dataViewArn"DataViewArn.of_jsoninletdataViewId=field_mapjson__"dataViewId"DataViewId.of_jsoninletsortColumns=field_mapjson__"sortColumns"SortColumnList.of_jsoninletcreateTime=field_mapjson__"createTime"TimestampEpoch.of_jsoninletlastModifiedTime=field_mapjson__"lastModifiedTime"TimestampEpoch.of_jsoninleterrorInfo=field_mapjson__"errorInfo"DataViewErrorInfo.of_jsoninletasOfTimestamp=field_mapjson__"asOfTimestamp"TimestampEpoch.of_jsoninletdatasetId=field_mapjson__"datasetId"DatasetId.of_jsoninletpartitionColumns=field_mapjson__"partitionColumns"PartitionColumnList.of_jsoninletautoUpdate=field_mapjson__"autoUpdate"Boolean.of_jsoninmake?status?destinationTypeParams?dataViewArn?dataViewId?sortColumns?createTime?lastModifiedTime?errorInfo?asOfTimestamp?datasetId?partitionColumns?autoUpdate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response from retrieving a dataview, which includes details on the target database and table name"]moduleGetDataViewRequest=structtypenonrect={dataViewId:DataViewId.t[@ocaml.doc"The unique identifier for the Dataview."];datasetId:DatasetId.t[@ocaml.doc"The unique identifier for the Dataset used in the Dataview."]}letcontext_="GetDataViewRequest"letmake~dataViewId=fun~datasetId->fun()->{dataViewId;datasetId}letto_valuex=structure_to_value[("dataviewId",(Some(DataViewId.to_valuex.dataViewId)));("datasetId",(Some(DatasetId.to_valuex.datasetId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasetId=DatasetId.of_xml(Xml.child_exn~context:context_xml_arg0"datasetId")inletdataViewId=DataViewId.of_xml(Xml.child_exn~context:context_xml_arg0"dataviewId")inmake~datasetId~dataViewId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasetId=field_map_exnjson__"datasetId"DatasetId.of_jsoninletdataViewId=field_map_exnjson__"dataViewId"DataViewId.of_jsoninmake~datasetId~dataViewId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request for retrieving a data view detail. Grouped / accessible within a dataset by its dataset id."]moduleGetChangesetResponse=structtypenonrect={changesetId:ChangesetId.toption[@ocaml.doc"The unique identifier for a Changeset."];changesetArn:ChangesetArn.toption[@ocaml.doc"The ARN identifier of the Changeset."];datasetId:DatasetId.toption[@ocaml.doc"The unique identifier for the FinSpace Dataset where the Changeset is created."];changeType:ChangeType.toption[@ocaml.doc"Type that indicates how a Changeset is applied to a Dataset. REPLACE \226\128\147 Changeset is considered as a replacement to all prior loaded Changesets. APPEND \226\128\147 Changeset is considered as an addition to the end of all prior loaded Changesets. MODIFY \226\128\147 Changeset is considered as a replacement to a specific prior ingested Changeset."];sourceParams:SourceParams.toption[@ocaml.doc"Options that define the location of the data being ingested."];formatParams:FormatParams.toption[@ocaml.doc"Structure of the source file(s)."];createTime:TimestampEpoch.toption[@ocaml.doc"The timestamp at which the Changeset was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000."];status:IngestionStatus.toption[@ocaml.doc"The status of Changeset creation operation."];errorInfo:ChangesetErrorInfo.toption[@ocaml.doc"The structure with error messages."];activeUntilTimestamp:TimestampEpoch.toption[@ocaml.doc"Time until which the Changeset is active. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000."];activeFromTimestamp:TimestampEpoch.toption[@ocaml.doc"Beginning time from which the Changeset is active. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000."];updatesChangesetId:ChangesetId.toption[@ocaml.doc"The unique identifier of the Changeset that is being updated."];updatedByChangesetId:ChangesetId.toption[@ocaml.doc"The unique identifier of the updated Changeset."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?changesetId=fun?changesetArn->fun?datasetId->fun?changeType->fun?sourceParams->fun?formatParams->fun?createTime->fun?status->fun?errorInfo->fun?activeUntilTimestamp->fun?activeFromTimestamp->fun?updatesChangesetId->fun?updatedByChangesetId->fun()->{changesetId;changesetArn;datasetId;changeType;sourceParams;formatParams;createTime;status;errorInfo;activeUntilTimestamp;activeFromTimestamp;updatesChangesetId;updatedByChangesetId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("changesetId",(Option.mapx.changesetId~f:ChangesetId.to_value));("changesetArn",(Option.mapx.changesetArn~f:ChangesetArn.to_value));("datasetId",(Option.mapx.datasetId~f:DatasetId.to_value));("changeType",(Option.mapx.changeType~f:ChangeType.to_value));("sourceParams",(Option.mapx.sourceParams~f:SourceParams.to_value));("formatParams",(Option.mapx.formatParams~f:FormatParams.to_value));("createTime",(Option.mapx.createTime~f:TimestampEpoch.to_value));("status",(Option.mapx.status~f:IngestionStatus.to_value));("errorInfo",(Option.mapx.errorInfo~f:ChangesetErrorInfo.to_value));("activeUntilTimestamp",(Option.mapx.activeUntilTimestamp~f:TimestampEpoch.to_value));("activeFromTimestamp",(Option.mapx.activeFromTimestamp~f:TimestampEpoch.to_value));("updatesChangesetId",(Option.mapx.updatesChangesetId~f:ChangesetId.to_value));("updatedByChangesetId",(Option.mapx.updatedByChangesetId~f:ChangesetId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letupdatedByChangesetId=(Option.map~f:ChangesetId.of_xml)(Xml.childxml_arg0"updatedByChangesetId")inletupdatesChangesetId=(Option.map~f:ChangesetId.of_xml)(Xml.childxml_arg0"updatesChangesetId")inletactiveFromTimestamp=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"activeFromTimestamp")inletactiveUntilTimestamp=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"activeUntilTimestamp")inleterrorInfo=(Option.map~f:ChangesetErrorInfo.of_xml)(Xml.childxml_arg0"errorInfo")inletstatus=(Option.map~f:IngestionStatus.of_xml)(Xml.childxml_arg0"status")inletcreateTime=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"createTime")inletformatParams=(Option.map~f:FormatParams.of_xml)(Xml.childxml_arg0"formatParams")inletsourceParams=(Option.map~f:SourceParams.of_xml)(Xml.childxml_arg0"sourceParams")inletchangeType=(Option.map~f:ChangeType.of_xml)(Xml.childxml_arg0"changeType")inletdatasetId=(Option.map~f:DatasetId.of_xml)(Xml.childxml_arg0"datasetId")inletchangesetArn=(Option.map~f:ChangesetArn.of_xml)(Xml.childxml_arg0"changesetArn")inletchangesetId=(Option.map~f:ChangesetId.of_xml)(Xml.childxml_arg0"changesetId")inmake?updatedByChangesetId?updatesChangesetId?activeFromTimestamp?activeUntilTimestamp?errorInfo?status?createTime?formatParams?sourceParams?changeType?datasetId?changesetArn?changesetId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letupdatedByChangesetId=field_mapjson__"updatedByChangesetId"ChangesetId.of_jsoninletupdatesChangesetId=field_mapjson__"updatesChangesetId"ChangesetId.of_jsoninletactiveFromTimestamp=field_mapjson__"activeFromTimestamp"TimestampEpoch.of_jsoninletactiveUntilTimestamp=field_mapjson__"activeUntilTimestamp"TimestampEpoch.of_jsoninleterrorInfo=field_mapjson__"errorInfo"ChangesetErrorInfo.of_jsoninletstatus=field_mapjson__"status"IngestionStatus.of_jsoninletcreateTime=field_mapjson__"createTime"TimestampEpoch.of_jsoninletformatParams=field_mapjson__"formatParams"FormatParams.of_jsoninletsourceParams=field_mapjson__"sourceParams"SourceParams.of_jsoninletchangeType=field_mapjson__"changeType"ChangeType.of_jsoninletdatasetId=field_mapjson__"datasetId"DatasetId.of_jsoninletchangesetArn=field_mapjson__"changesetArn"ChangesetArn.of_jsoninletchangesetId=field_mapjson__"changesetId"ChangesetId.of_jsoninmake?updatedByChangesetId?updatesChangesetId?activeFromTimestamp?activeUntilTimestamp?errorInfo?status?createTime?formatParams?sourceParams?changeType?datasetId?changesetArn?changesetId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response from a describe changeset operation"]moduleGetChangesetRequest=structtypenonrect={datasetId:DatasetId.t[@ocaml.doc"The unique identifier for the FinSpace Dataset where the Changeset is created."];changesetId:ChangesetId.t[@ocaml.doc"The unique identifier of the Changeset for which to get data."]}letcontext_="GetChangesetRequest"letmake~datasetId=fun~changesetId->fun()->{datasetId;changesetId}letto_valuex=structure_to_value[("datasetId",(Some(DatasetId.to_valuex.datasetId)));("changesetId",(Some(ChangesetId.to_valuex.changesetId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchangesetId=ChangesetId.of_xml(Xml.child_exn~context:context_xml_arg0"changesetId")inletdatasetId=DatasetId.of_xml(Xml.child_exn~context:context_xml_arg0"datasetId")inmake~changesetId~datasetId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchangesetId=field_map_exnjson__"changesetId"ChangesetId.of_jsoninletdatasetId=field_map_exnjson__"datasetId"DatasetId.of_jsoninmake~changesetId~datasetId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request to describe a changeset."]moduleEnableUserResponse=structtypenonrect={userId:UserId.toption[@ocaml.doc"The unique identifier for the active user."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?userId=fun()->{userId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("userId",(Option.mapx.userId~f:UserId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserId=(Option.map~f:UserId.of_xml)(Xml.childxml_arg0"userId")inmake?userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserId=field_mapjson__"userId"UserId.of_jsoninmake?userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Allows the specified user to access the FinSpace web application and API."]moduleEnableUserRequest=structtypenonrect={userId:UserId.t[@ocaml.doc"The unique identifier for the user that you want to activate."];clientToken:ClientToken.toption[@ocaml.doc"A token that ensures idempotency. This token expires in 10 minutes."]}letcontext_="EnableUserRequest"letmake?clientToken=fun~userId->fun()->{clientToken;userId}letto_valuex=structure_to_value[("userId",(Some(UserId.to_valuex.userId)));("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")inletuserId=UserId.of_xml(Xml.child_exn~context:context_xml_arg0"userId")inmake?clientToken~userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninletuserId=field_map_exnjson__"userId"UserId.of_jsoninmake?clientToken~userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Allows the specified user to access the FinSpace web application and API."]moduleDisassociateUserFromPermissionGroupResponse=structtypenonrect={statusCode:StatusCode.toption[@ocaml.doc"The returned status code of the response."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?statusCode=fun()->{statusCode}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("statusCode",(Option.mapx.statusCode~f:StatusCode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatusCode=(Option.map~f:StatusCode.of_xml)(Xml.childxml_arg0"statusCode")inmake?statusCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatusCode=field_mapjson__"statusCode"StatusCode.of_jsoninmake?statusCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes a user from a permission group."]moduleDisassociateUserFromPermissionGroupRequest=structtypenonrect={permissionGroupId:PermissionGroupId.t[@ocaml.doc"The unique identifier for the permission group."];userId:UserId.t[@ocaml.doc"The unique identifier for the user."];clientToken:ClientToken.toption[@ocaml.doc"A token that ensures idempotency. This token expires in 10 minutes."]}letcontext_="DisassociateUserFromPermissionGroupRequest"letmake?clientToken=fun~permissionGroupId->fun~userId->fun()->{clientToken;permissionGroupId;userId}letto_valuex=structure_to_value[("permissionGroupId",(Some(PermissionGroupId.to_valuex.permissionGroupId)));("userId",(Some(UserId.to_valuex.userId)));("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")inletuserId=UserId.of_xml(Xml.child_exn~context:context_xml_arg0"userId")inletpermissionGroupId=PermissionGroupId.of_xml(Xml.child_exn~context:context_xml_arg0"permissionGroupId")inmake?clientToken~userId~permissionGroupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninletuserId=field_map_exnjson__"userId"UserId.of_jsoninletpermissionGroupId=field_map_exnjson__"permissionGroupId"PermissionGroupId.of_jsoninmake?clientToken~userId~permissionGroupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes a user from a permission group."]moduleDisableUserResponse=structtypenonrect={userId:UserId.toption[@ocaml.doc"The unique identifier for the deactivated user."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?userId=fun()->{userId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("userId",(Option.mapx.userId~f:UserId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserId=(Option.map~f:UserId.of_xml)(Xml.childxml_arg0"userId")inmake?userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserId=field_mapjson__"userId"UserId.of_jsoninmake?userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Denies access to the FinSpace web application and API for the specified user."]moduleDisableUserRequest=structtypenonrect={userId:UserId.t[@ocaml.doc"The unique identifier for the user that you want to deactivate."];clientToken:ClientToken.toption[@ocaml.doc"A token that ensures idempotency. This token expires in 10 minutes."]}letcontext_="DisableUserRequest"letmake?clientToken=fun~userId->fun()->{clientToken;userId}letto_valuex=structure_to_value[("userId",(Some(UserId.to_valuex.userId)));("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")inletuserId=UserId.of_xml(Xml.child_exn~context:context_xml_arg0"userId")inmake?clientToken~userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninletuserId=field_map_exnjson__"userId"UserId.of_jsoninmake?clientToken~userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Denies access to the FinSpace web application and API for the specified user."]moduleDeletePermissionGroupResponse=structtypenonrect={permissionGroupId:PermissionGroupId.toption[@ocaml.doc"The unique identifier for the deleted permission group."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?permissionGroupId=fun()->{permissionGroupId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("permissionGroupId",(Option.mapx.permissionGroupId~f:PermissionGroupId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpermissionGroupId=(Option.map~f:PermissionGroupId.of_xml)(Xml.childxml_arg0"permissionGroupId")inmake?permissionGroupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpermissionGroupId=field_mapjson__"permissionGroupId"PermissionGroupId.of_jsoninmake?permissionGroupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a permission group. This action is irreversible."]moduleDeletePermissionGroupRequest=structtypenonrect={permissionGroupId:PermissionGroupId.t[@ocaml.doc"The unique identifier for the permission group that you want to delete."];clientToken:ClientToken.toption[@ocaml.doc"A token that ensures idempotency. This token expires in 10 minutes."]}letcontext_="DeletePermissionGroupRequest"letmake?clientToken=fun~permissionGroupId->fun()->{clientToken;permissionGroupId}letto_valuex=structure_to_value[("permissionGroupId",(Some(PermissionGroupId.to_valuex.permissionGroupId)));("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")inletpermissionGroupId=PermissionGroupId.of_xml(Xml.child_exn~context:context_xml_arg0"permissionGroupId")inmake?clientToken~permissionGroupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninletpermissionGroupId=field_map_exnjson__"permissionGroupId"PermissionGroupId.of_jsoninmake?clientToken~permissionGroupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a permission group. This action is irreversible."]moduleDeleteDatasetResponse=structtypenonrect={datasetId:DatasetId.toption[@ocaml.doc"The unique identifier for the deleted Dataset."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?datasetId=fun()->{datasetId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("datasetId",(Option.mapx.datasetId~f:DatasetId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasetId=(Option.map~f:DatasetId.of_xml)(Xml.childxml_arg0"datasetId")inmake?datasetId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasetId=field_mapjson__"datasetId"DatasetId.of_jsoninmake?datasetId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response from an DeleteDataset operation"]moduleDeleteDatasetRequest=structtypenonrect={clientToken:ClientToken.toption[@ocaml.doc"A token that ensures idempotency. This token expires in 10 minutes."];datasetId:DatasetId.t[@ocaml.doc"The unique identifier of the Dataset to be deleted."]}letcontext_="DeleteDatasetRequest"letmake?clientToken=fun~datasetId->fun()->{clientToken;datasetId}letto_valuex=structure_to_value[("clientToken",(Option.mapx.clientToken~f:ClientToken.to_value));("datasetId",(Some(DatasetId.to_valuex.datasetId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasetId=DatasetId.of_xml(Xml.child_exn~context:context_xml_arg0"datasetId")inletclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"clientToken")inmake~datasetId?clientToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasetId=field_map_exnjson__"datasetId"DatasetId.of_jsoninletclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninmake~datasetId?clientToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request for a DeleteDataset operation."]moduleCreateUserResponse=structtypenonrect={userId:UserId.toption[@ocaml.doc"The unique identifier for the user."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`LimitExceededExceptionofLimitExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?userId=fun()->{userId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.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)|"LimitExceededException"->`LimitExceededException(LimitExceededException.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))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.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[("userId",(Option.mapx.userId~f:UserId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserId=(Option.map~f:UserId.of_xml)(Xml.childxml_arg0"userId")inmake?userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserId=field_mapjson__"userId"UserId.of_jsoninmake?userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new user in FinSpace."]moduleCreateUserRequest=structtypenonrect={emailAddress:Email.t[@ocaml.doc"The email address of the user that you want to register. The email address serves as a uniquer identifier for each user and cannot be changed after it's created."];type_:UserType.t[@ocaml.doc"The option to indicate the type of user. Use one of the following options to specify this parameter: SUPER_USER \226\128\147 A user with permission to all the functionality and data in FinSpace. APP_USER \226\128\147 A user with specific permissions in FinSpace. The users are assigned permissions by adding them to a permission group."];firstName:FirstName.toption[@ocaml.doc"The first name of the user that you want to register."];lastName:LastName.toption[@ocaml.doc"The last name of the user that you want to register."];apiAccess:ApiAccess.toption[@ocaml.doc"The option to indicate whether the user can use the GetProgrammaticAccessCredentials API to obtain credentials that can then be used to access other FinSpace Data API operations. ENABLED \226\128\147 The user has permissions to use the APIs. DISABLED \226\128\147 The user does not have permissions to use any APIs."];apiAccessPrincipalArn:RoleArn.toption[@ocaml.doc"The ARN identifier of an AWS user or role that is allowed to call the GetProgrammaticAccessCredentials API to obtain a credentials token for a specific FinSpace user. This must be an IAM role within your FinSpace account."];clientToken:ClientToken.toption[@ocaml.doc"A token that ensures idempotency. This token expires in 10 minutes."]}letcontext_="CreateUserRequest"letmake?firstName=fun?lastName->fun?apiAccess->fun?apiAccessPrincipalArn->fun?clientToken->fun~emailAddress->fun~type_->fun()->{firstName;lastName;apiAccess;apiAccessPrincipalArn;clientToken;emailAddress;type_}letto_valuex=structure_to_value[("emailAddress",(Some(Email.to_valuex.emailAddress)));("type",(Some(UserType.to_valuex.type_)));("firstName",(Option.mapx.firstName~f:FirstName.to_value));("lastName",(Option.mapx.lastName~f:LastName.to_value));("apiAccess",(Option.mapx.apiAccess~f:ApiAccess.to_value));("apiAccessPrincipalArn",(Option.mapx.apiAccessPrincipalArn~f:RoleArn.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")inletapiAccessPrincipalArn=(Option.map~f:RoleArn.of_xml)(Xml.childxml_arg0"apiAccessPrincipalArn")inletapiAccess=(Option.map~f:ApiAccess.of_xml)(Xml.childxml_arg0"apiAccess")inletlastName=(Option.map~f:LastName.of_xml)(Xml.childxml_arg0"lastName")inletfirstName=(Option.map~f:FirstName.of_xml)(Xml.childxml_arg0"firstName")inlettype_=UserType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletemailAddress=Email.of_xml(Xml.child_exn~context:context_xml_arg0"emailAddress")inmake?clientToken?apiAccessPrincipalArn?apiAccess?lastName?firstName~type_~emailAddress()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninletapiAccessPrincipalArn=field_mapjson__"apiAccessPrincipalArn"RoleArn.of_jsoninletapiAccess=field_mapjson__"apiAccess"ApiAccess.of_jsoninletlastName=field_mapjson__"lastName"LastName.of_jsoninletfirstName=field_mapjson__"firstName"FirstName.of_jsoninlettype_=field_map_exnjson__"type"UserType.of_jsoninletemailAddress=field_map_exnjson__"emailAddress"Email.of_jsoninmake?clientToken?apiAccessPrincipalArn?apiAccess?lastName?firstName~type_~emailAddress()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new user in FinSpace."]moduleCreatePermissionGroupResponse=structtypenonrect={permissionGroupId:PermissionGroupId.toption[@ocaml.doc"The unique identifier for the permission group."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`LimitExceededExceptionofLimitExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?permissionGroupId=fun()->{permissionGroupId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.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)|"LimitExceededException"->`LimitExceededException(LimitExceededException.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))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.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[("permissionGroupId",(Option.mapx.permissionGroupId~f:PermissionGroupId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpermissionGroupId=(Option.map~f:PermissionGroupId.of_xml)(Xml.childxml_arg0"permissionGroupId")inmake?permissionGroupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpermissionGroupId=field_mapjson__"permissionGroupId"PermissionGroupId.of_jsoninmake?permissionGroupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a group of permissions for various actions that a user can perform in FinSpace."]moduleCreatePermissionGroupRequest=structtypenonrect={name:PermissionGroupName.t[@ocaml.doc"The name of the permission group."];description:PermissionGroupDescription.toption[@ocaml.doc"A brief description for the permission group."];applicationPermissions:ApplicationPermissionList.t[@ocaml.doc"The option to indicate FinSpace application permissions that are granted to a specific group. When assigning application permissions, be aware that the permission ManageUsersAndGroups allows users to grant themselves or others access to any functionality in their FinSpace environment's application. It should only be granted to trusted users. CreateDataset \226\128\147 Group members can create new datasets. ManageClusters \226\128\147 Group members can manage Apache Spark clusters from FinSpace notebooks. ManageUsersAndGroups \226\128\147 Group members can manage users and permission groups. This is a privileged permission that allows users to grant themselves or others access to any functionality in the application. It should only be granted to trusted users. ManageAttributeSets \226\128\147 Group members can manage attribute sets. ViewAuditData \226\128\147 Group members can view audit data. AccessNotebooks \226\128\147 Group members will have access to FinSpace notebooks. GetTemporaryCredentials \226\128\147 Group members can get temporary API credentials."];clientToken:ClientToken.toption[@ocaml.doc"A token that ensures idempotency. This token expires in 10 minutes."]}letcontext_="CreatePermissionGroupRequest"letmake?description=fun?clientToken->fun~name->fun~applicationPermissions->fun()->{description;clientToken;name;applicationPermissions}letto_valuex=structure_to_value[("name",(Some(PermissionGroupName.to_valuex.name)));("description",(Option.mapx.description~f:PermissionGroupDescription.to_value));("applicationPermissions",(Some(ApplicationPermissionList.to_valuex.applicationPermissions)));("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")inletapplicationPermissions=ApplicationPermissionList.of_xml(Xml.child_exn~context:context_xml_arg0"applicationPermissions")inletdescription=(Option.map~f:PermissionGroupDescription.of_xml)(Xml.childxml_arg0"description")inletname=PermissionGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake?clientToken~applicationPermissions?description~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninletapplicationPermissions=field_map_exnjson__"applicationPermissions"ApplicationPermissionList.of_jsoninletdescription=field_mapjson__"description"PermissionGroupDescription.of_jsoninletname=field_map_exnjson__"name"PermissionGroupName.of_jsoninmake?clientToken~applicationPermissions?description~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a group of permissions for various actions that a user can perform in FinSpace."]moduleCreateDatasetResponse=structtypenonrect={datasetId:DatasetId.toption[@ocaml.doc"The unique identifier for the created Dataset."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?datasetId=fun()->{datasetId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("datasetId",(Option.mapx.datasetId~f:DatasetId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasetId=(Option.map~f:DatasetId.of_xml)(Xml.childxml_arg0"datasetId")inmake?datasetId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasetId=field_mapjson__"datasetId"DatasetId.of_jsoninmake?datasetId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response from a CreateDataset operation"]moduleCreateDatasetRequest=structtypenonrect={clientToken:ClientToken.toption[@ocaml.doc"A token that ensures idempotency. This token expires in 10 minutes."];datasetTitle:DatasetTitle.t[@ocaml.doc"Display title for a FinSpace Dataset."];kind:DatasetKind.t[@ocaml.doc"The format in which Dataset data is structured. TABULAR \226\128\147 Data is structured in a tabular format. NON_TABULAR \226\128\147 Data is structured in a non-tabular format."];datasetDescription:DatasetDescription.toption[@ocaml.doc"Description of a Dataset."];ownerInfo:DatasetOwnerInfo.toption[@ocaml.doc"Contact information for a Dataset owner."];permissionGroupParams:PermissionGroupParams.t[@ocaml.doc"Permission group parameters for Dataset permissions."];alias:AliasString.toption[@ocaml.doc"The unique resource identifier for a Dataset."];schemaDefinition:SchemaUnion.toption[@ocaml.doc"Definition for a schema on a tabular Dataset."]}letcontext_="CreateDatasetRequest"letmake?clientToken=fun?datasetDescription->fun?ownerInfo->fun?alias->fun?schemaDefinition->fun~datasetTitle->fun~kind->fun~permissionGroupParams->fun()->{clientToken;datasetDescription;ownerInfo;alias;schemaDefinition;datasetTitle;kind;permissionGroupParams}letto_valuex=structure_to_value[("clientToken",(Option.mapx.clientToken~f:ClientToken.to_value));("datasetTitle",(Some(DatasetTitle.to_valuex.datasetTitle)));("kind",(Some(DatasetKind.to_valuex.kind)));("datasetDescription",(Option.mapx.datasetDescription~f:DatasetDescription.to_value));("ownerInfo",(Option.mapx.ownerInfo~f:DatasetOwnerInfo.to_value));("permissionGroupParams",(Some(PermissionGroupParams.to_valuex.permissionGroupParams)));("alias",(Option.mapx.alias~f:AliasString.to_value));("schemaDefinition",(Option.mapx.schemaDefinition~f:SchemaUnion.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letschemaDefinition=(Option.map~f:SchemaUnion.of_xml)(Xml.childxml_arg0"schemaDefinition")inletalias=(Option.map~f:AliasString.of_xml)(Xml.childxml_arg0"alias")inletpermissionGroupParams=PermissionGroupParams.of_xml(Xml.child_exn~context:context_xml_arg0"permissionGroupParams")inletownerInfo=(Option.map~f:DatasetOwnerInfo.of_xml)(Xml.childxml_arg0"ownerInfo")inletdatasetDescription=(Option.map~f:DatasetDescription.of_xml)(Xml.childxml_arg0"datasetDescription")inletkind=DatasetKind.of_xml(Xml.child_exn~context:context_xml_arg0"kind")inletdatasetTitle=DatasetTitle.of_xml(Xml.child_exn~context:context_xml_arg0"datasetTitle")inletclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"clientToken")inmake?schemaDefinition?alias~permissionGroupParams?ownerInfo?datasetDescription~kind~datasetTitle?clientToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letschemaDefinition=field_mapjson__"schemaDefinition"SchemaUnion.of_jsoninletalias=field_mapjson__"alias"AliasString.of_jsoninletpermissionGroupParams=field_map_exnjson__"permissionGroupParams"PermissionGroupParams.of_jsoninletownerInfo=field_mapjson__"ownerInfo"DatasetOwnerInfo.of_jsoninletdatasetDescription=field_mapjson__"datasetDescription"DatasetDescription.of_jsoninletkind=field_map_exnjson__"kind"DatasetKind.of_jsoninletdatasetTitle=field_map_exnjson__"datasetTitle"DatasetTitle.of_jsoninletclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninmake?schemaDefinition?alias~permissionGroupParams?ownerInfo?datasetDescription~kind~datasetTitle?clientToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request for a CreateDataset operation"]moduleCreateDataViewResponse=structtypenonrect={datasetId:DatasetId.toption[@ocaml.doc"The unique identifier of the Dataset used for the Dataview."];dataViewId:DataViewId.toption[@ocaml.doc"The unique identifier for the created Dataview."]}typenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?datasetId=fun?dataViewId->fun()->{datasetId;dataViewId}leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("datasetId",(Option.mapx.datasetId~f:DatasetId.to_value));("dataViewId",(Option.mapx.dataViewId~f:DataViewId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataViewId=(Option.map~f:DataViewId.of_xml)(Xml.childxml_arg0"dataViewId")inletdatasetId=(Option.map~f:DatasetId.of_xml)(Xml.childxml_arg0"datasetId")inmake?dataViewId?datasetId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataViewId=field_mapjson__"dataViewId"DataViewId.of_jsoninletdatasetId=field_mapjson__"datasetId"DatasetId.of_jsoninmake?dataViewId?datasetId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response for creating a data view."]moduleCreateDataViewRequest=structtypenonrect={clientToken:ClientToken.toption[@ocaml.doc"A token that ensures idempotency. This token expires in 10 minutes."];datasetId:DatasetId.t[@ocaml.doc"The unique Dataset identifier that is used to create a Dataview."];autoUpdate:Boolean.toption[@ocaml.doc"Flag to indicate Dataview should be updated automatically."];sortColumns:SortColumnList.toption[@ocaml.doc"Columns to be used for sorting the data."];partitionColumns:PartitionColumnList.toption[@ocaml.doc"Ordered set of column names used to partition data."];asOfTimestamp:TimestampEpoch.toption[@ocaml.doc"Beginning time to use for the Dataview. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000."];destinationTypeParams:DataViewDestinationTypeParams.t[@ocaml.doc"Options that define the destination type for the Dataview."]}letcontext_="CreateDataViewRequest"letmake?clientToken=fun?autoUpdate->fun?sortColumns->fun?partitionColumns->fun?asOfTimestamp->fun~datasetId->fun~destinationTypeParams->fun()->{clientToken;autoUpdate;sortColumns;partitionColumns;asOfTimestamp;datasetId;destinationTypeParams}letto_valuex=structure_to_value[("clientToken",(Option.mapx.clientToken~f:ClientToken.to_value));("datasetId",(Some(DatasetId.to_valuex.datasetId)));("autoUpdate",(Option.mapx.autoUpdate~f:Boolean.to_value));("sortColumns",(Option.mapx.sortColumns~f:SortColumnList.to_value));("partitionColumns",(Option.mapx.partitionColumns~f:PartitionColumnList.to_value));("asOfTimestamp",(Option.mapx.asOfTimestamp~f:TimestampEpoch.to_value));("destinationTypeParams",(Some(DataViewDestinationTypeParams.to_valuex.destinationTypeParams)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdestinationTypeParams=DataViewDestinationTypeParams.of_xml(Xml.child_exn~context:context_xml_arg0"destinationTypeParams")inletasOfTimestamp=(Option.map~f:TimestampEpoch.of_xml)(Xml.childxml_arg0"asOfTimestamp")inletpartitionColumns=(Option.map~f:PartitionColumnList.of_xml)(Xml.childxml_arg0"partitionColumns")inletsortColumns=(Option.map~f:SortColumnList.of_xml)(Xml.childxml_arg0"sortColumns")inletautoUpdate=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"autoUpdate")inletdatasetId=DatasetId.of_xml(Xml.child_exn~context:context_xml_arg0"datasetId")inletclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"clientToken")inmake~destinationTypeParams?asOfTimestamp?partitionColumns?sortColumns?autoUpdate~datasetId?clientToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdestinationTypeParams=field_map_exnjson__"destinationTypeParams"DataViewDestinationTypeParams.of_jsoninletasOfTimestamp=field_mapjson__"asOfTimestamp"TimestampEpoch.of_jsoninletpartitionColumns=field_mapjson__"partitionColumns"PartitionColumnList.of_jsoninletsortColumns=field_mapjson__"sortColumns"SortColumnList.of_jsoninletautoUpdate=field_mapjson__"autoUpdate"Boolean.of_jsoninletdatasetId=field_map_exnjson__"datasetId"DatasetId.of_jsoninletclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninmake~destinationTypeParams?asOfTimestamp?partitionColumns?sortColumns?autoUpdate~datasetId?clientToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request for creating a data view."]moduleCreateChangesetResponse=structtypenonrect={datasetId:DatasetId.toption[@ocaml.doc"The unique identifier for the FinSpace Dataset where the Changeset is created."];changesetId:ChangesetId.toption[@ocaml.doc"The unique identifier of the Changeset that is created."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?datasetId=fun?changesetId->fun()->{datasetId;changesetId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("datasetId",(Option.mapx.datasetId~f:DatasetId.to_value));("changesetId",(Option.mapx.changesetId~f:ChangesetId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchangesetId=(Option.map~f:ChangesetId.of_xml)(Xml.childxml_arg0"changesetId")inletdatasetId=(Option.map~f:DatasetId.of_xml)(Xml.childxml_arg0"datasetId")inmake?changesetId?datasetId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchangesetId=field_mapjson__"changesetId"ChangesetId.of_jsoninletdatasetId=field_mapjson__"datasetId"DatasetId.of_jsoninmake?changesetId?datasetId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response from a CreateChangeset operation."]moduleCreateChangesetRequest=structtypenonrect={clientToken:ClientToken.toption[@ocaml.doc"A token that ensures idempotency. This token expires in 10 minutes."];datasetId:DatasetId.t[@ocaml.doc"The unique identifier for the FinSpace Dataset where the Changeset will be created."];changeType:ChangeType.t[@ocaml.doc"The option to indicate how a Changeset will be applied to a Dataset. REPLACE \226\128\147 Changeset will be considered as a replacement to all prior loaded Changesets. APPEND \226\128\147 Changeset will be considered as an addition to the end of all prior loaded Changesets. MODIFY \226\128\147 Changeset is considered as a replacement to a specific prior ingested Changeset."];sourceParams:SourceParams.t[@ocaml.doc"Options that define the location of the data being ingested (s3SourcePath) and the source of the changeset (sourceType). Both s3SourcePath and sourceType are required attributes. Here is an example of how you could specify the sourceParams: \"sourceParams\": \\{ \"s3SourcePath\": \"s3://finspace-landing-us-east-2-bk7gcfvitndqa6ebnvys4d/scratch/wr5hh8pwkpqqkxa4sxrmcw/ingestion/equity.csv\", \"sourceType\": \"S3\" \\} The S3 path that you specify must allow the FinSpace role access. To do that, you first need to configure the IAM policy on S3 bucket. For more information, see Loading data from an Amazon S3 Bucket using the FinSpace API section."];formatParams:FormatParams.t[@ocaml.doc"Options that define the structure of the source file(s) including the format type (formatType), header row (withHeader), data separation character (separator) and the type of compression (compression). formatType is a required attribute and can have the following values: PARQUET \226\128\147 Parquet source file format. CSV \226\128\147 CSV source file format. JSON \226\128\147 JSON source file format. XML \226\128\147 XML source file format. Here is an example of how you could specify the formatParams: \"formatParams\": \\{ \"formatType\": \"CSV\", \"withHeader\": \"true\", \"separator\": \",\", \"compression\":\"None\" \\} Note that if you only provide formatType as CSV, the rest of the attributes will automatically default to CSV values as following: \\{ \"withHeader\": \"true\", \"separator\": \",\" \\} For more information about supported file formats, see Supported Data Types and File Formats in the FinSpace User Guide."]}letcontext_="CreateChangesetRequest"letmake?clientToken=fun~datasetId->fun~changeType->fun~sourceParams->fun~formatParams->fun()->{clientToken;datasetId;changeType;sourceParams;formatParams}letto_valuex=structure_to_value[("clientToken",(Option.mapx.clientToken~f:ClientToken.to_value));("datasetId",(Some(DatasetId.to_valuex.datasetId)));("changeType",(Some(ChangeType.to_valuex.changeType)));("sourceParams",(Some(SourceParams.to_valuex.sourceParams)));("formatParams",(Some(FormatParams.to_valuex.formatParams)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letformatParams=FormatParams.of_xml(Xml.child_exn~context:context_xml_arg0"formatParams")inletsourceParams=SourceParams.of_xml(Xml.child_exn~context:context_xml_arg0"sourceParams")inletchangeType=ChangeType.of_xml(Xml.child_exn~context:context_xml_arg0"changeType")inletdatasetId=DatasetId.of_xml(Xml.child_exn~context:context_xml_arg0"datasetId")inletclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"clientToken")inmake~formatParams~sourceParams~changeType~datasetId?clientToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letformatParams=field_map_exnjson__"formatParams"FormatParams.of_jsoninletsourceParams=field_map_exnjson__"sourceParams"SourceParams.of_jsoninletchangeType=field_map_exnjson__"changeType"ChangeType.of_jsoninletdatasetId=field_map_exnjson__"datasetId"DatasetId.of_jsoninletclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninmake~formatParams~sourceParams~changeType~datasetId?clientToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request for a CreateChangeset operation."]moduleAssociateUserToPermissionGroupResponse=structtypenonrect={statusCode:StatusCode.toption[@ocaml.doc"The returned status code of the response."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?statusCode=fun()->{statusCode}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("statusCode",(Option.mapx.statusCode~f:StatusCode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatusCode=(Option.map~f:StatusCode.of_xml)(Xml.childxml_arg0"statusCode")inmake?statusCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatusCode=field_mapjson__"statusCode"StatusCode.of_jsoninmake?statusCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds a user to a permission group to grant permissions for actions a user can perform in FinSpace."]moduleAssociateUserToPermissionGroupRequest=structtypenonrect={permissionGroupId:PermissionGroupId.t[@ocaml.doc"The unique identifier for the permission group."];userId:UserId.t[@ocaml.doc"The unique identifier for the user."];clientToken:ClientToken.toption[@ocaml.doc"A token that ensures idempotency. This token expires in 10 minutes."]}letcontext_="AssociateUserToPermissionGroupRequest"letmake?clientToken=fun~permissionGroupId->fun~userId->fun()->{clientToken;permissionGroupId;userId}letto_valuex=structure_to_value[("permissionGroupId",(Some(PermissionGroupId.to_valuex.permissionGroupId)));("userId",(Some(UserId.to_valuex.userId)));("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")inletuserId=UserId.of_xml(Xml.child_exn~context:context_xml_arg0"userId")inletpermissionGroupId=PermissionGroupId.of_xml(Xml.child_exn~context:context_xml_arg0"permissionGroupId")inmake?clientToken~userId~permissionGroupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninletuserId=field_map_exnjson__"userId"UserId.of_jsoninletpermissionGroupId=field_map_exnjson__"permissionGroupId"PermissionGroupId.of_jsoninmake?clientToken~userId~permissionGroupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds a user to a permission group to grant permissions for actions a user can perform in FinSpace."]