1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254(* 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.athenaletapiVersion="2017-05-18"letendpointPrefix="athena"letserviceFullName="Amazon Athena"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"lettargetPrefix="AmazonAthena"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[]))])moduleS3AclOption=structtypenonrect=|BUCKET_OWNER_FULL_CONTROL|Non_static_idofstringletmakei=iletto_string=function|BUCKET_OWNER_FULL_CONTROL->"BUCKET_OWNER_FULL_CONTROL"|Non_static_ids->sletof_string=function|"BUCKET_OWNER_FULL_CONTROL"->BUCKET_OWNER_FULL_CONTROL|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 S3AclOption"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"S3AclOption"j)letto_json=simple_to_jsonto_valueendmoduleAclConfiguration=structtypenonrect={s3AclOption:S3AclOption.t[@ocaml.doc"The Amazon S3 canned ACL that Athena should specify when storing query results, including data files inserted by Athena as the result of statements like CTAS or INSERT INTO. Currently the only supported canned ACL is BUCKET_OWNER_FULL_CONTROL. If a query runs in a workgroup and the workgroup overrides client-side settings, then the Amazon S3 canned ACL specified in the workgroup's settings is used for all queries that run in the workgroup. For more information about Amazon S3 canned ACLs, see Canned ACL in the Amazon S3 User Guide."]}letcontext_="AclConfiguration"letmake~s3AclOption=fun()->{s3AclOption}letto_valuex=structure_to_value[("S3AclOption",(Some(S3AclOption.to_valuex.s3AclOption)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3AclOption=S3AclOption.of_xml(Xml.child_exn~context:context_xml_arg0"S3AclOption")inmake~s3AclOption()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3AclOption=field_map_exnjson__"S3AclOption"S3AclOption.of_jsoninmake~s3AclOption()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates that an Amazon S3 canned ACL should be set to control ownership of stored query results, including data files inserted by Athena as the result of statements like CTAS or INSERT INTO. When Athena stores query results in Amazon S3, the canned ACL is set with the x-amz-acl request header. For more information about S3 Object Ownership, see Object Ownership settings in the Amazon S3 User Guide."]moduleAge=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:10080)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for Age"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleAllocatedDpusInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:0);iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for AllocatedDpusInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleAmazonResourceName=structtypenonrect=stringletcontext_="AmazonResourceName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1011)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AmazonResourceName"jletto_json=simple_to_jsonto_valueendmoduleInteger=structtypenonrect=intletmakei=iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for Integer"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleSupportedDPUSizeList=structtypenonrect=Integer.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Integer.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:Integer.of_xml)letof_jsonj=list_of_json~kind:"SupportedDPUSizeList"~of_json:Integer.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNameString=structtypenonrect=stringletcontext_="NameString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NameString"jletto_json=simple_to_jsonto_valueendmoduleApplicationDPUSizes=structtypenonrect={applicationRuntimeId:NameString.toption[@ocaml.doc"The name of the supported application runtime (for example, Athena notebook version 1)."];supportedDPUSizes:SupportedDPUSizeList.toption[@ocaml.doc"A list of the supported DPU sizes that the application runtime supports."]}letmake?applicationRuntimeId=fun?supportedDPUSizes->fun()->{applicationRuntimeId;supportedDPUSizes}letto_valuex=structure_to_value[("ApplicationRuntimeId",(Option.mapx.applicationRuntimeId~f:NameString.to_value));("SupportedDPUSizes",(Option.mapx.supportedDPUSizes~f:SupportedDPUSizeList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsupportedDPUSizes=(Option.map~f:SupportedDPUSizeList.of_xml)(Xml.childxml_arg0"SupportedDPUSizes")inletapplicationRuntimeId=(Option.map~f:NameString.of_xml)(Xml.childxml_arg0"ApplicationRuntimeId")inmake?supportedDPUSizes?applicationRuntimeId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsupportedDPUSizes=field_mapjson__"SupportedDPUSizes"SupportedDPUSizeList.of_jsoninletapplicationRuntimeId=field_mapjson__"ApplicationRuntimeId"NameString.of_jsoninmake?supportedDPUSizes?applicationRuntimeId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the application runtime IDs and their supported DPU sizes."]moduleApplicationDPUSizesList=structtypenonrect=ApplicationDPUSizes.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ApplicationDPUSizes.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:ApplicationDPUSizes.of_xml)letof_jsonj=list_of_json~kind:"ApplicationDPUSizesList"~of_json:ApplicationDPUSizes.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleErrorType=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:9999)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ErrorType"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleErrorCategory=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:3)>>=(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 ErrorCategory"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleBoolean=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleAthenaError=structtypenonrect={errorCategory:ErrorCategory.toption[@ocaml.doc"An integer value that specifies the category of a query failure error. The following list shows the category for each integer value. 1 - System 2 - User 3 - Other"];errorType:ErrorType.toption[@ocaml.doc"An integer value that provides specific information about an Athena query error. For the meaning of specific values, see the Error Type Reference in the Amazon Athena User Guide."];retryable:Boolean.toption[@ocaml.doc"True if the query might succeed if resubmitted."];errorMessage:String_.toption[@ocaml.doc"Contains a short description of the error that occurred."]}letmake?errorCategory=fun?errorType->fun?retryable->fun?errorMessage->fun()->{errorCategory;errorType;retryable;errorMessage}letto_valuex=structure_to_value[("ErrorCategory",(Option.mapx.errorCategory~f:ErrorCategory.to_value));("ErrorType",(Option.mapx.errorType~f:ErrorType.to_value));("Retryable",(Option.mapx.retryable~f:Boolean.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ErrorMessage")inletretryable=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"Retryable")inleterrorType=(Option.map~f:ErrorType.of_xml)(Xml.childxml_arg0"ErrorType")inleterrorCategory=(Option.map~f:ErrorCategory.of_xml)(Xml.childxml_arg0"ErrorCategory")inmake?errorMessage?retryable?errorType?errorCategory()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"String_.of_jsoninletretryable=field_mapjson__"Retryable"Boolean.of_jsoninleterrorType=field_mapjson__"ErrorType"ErrorType.of_jsoninleterrorCategory=field_mapjson__"ErrorCategory"ErrorCategory.of_jsoninmake?errorMessage?retryable?errorType?errorCategory()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides information about an Athena query error. The AthenaError feature provides standardized error information to help you understand failed queries and take steps after a query failure occurs. AthenaError includes an ErrorCategory field that specifies whether the cause of the failed query is due to system error, user error, or other error."]moduleAuthToken=structtypenonrect=stringletcontext_="AuthToken"letmakei=letopenResultinok_or_failwith(check_string_maxi~max:2048);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AuthToken"jletto_json=simple_to_jsonto_valueendmoduleAuthenticationType=structtypenonrect=|DIRECTORY_IDENTITY|Non_static_idofstringletmakei=iletto_string=function|DIRECTORY_IDENTITY->"DIRECTORY_IDENTITY"|Non_static_ids->sletof_string=function|"DIRECTORY_IDENTITY"->DIRECTORY_IDENTITY|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration AuthenticationType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AuthenticationType"j)letto_json=simple_to_jsonto_valueendmoduleAwsAccountId=structtypenonrect=stringletcontext_="AwsAccountId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:12)>>=(fun()->(check_string_maxi~max:12)>>=(fun()->check_patterni~pattern:"^[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:"AwsAccountId"jletto_json=simple_to_jsonto_valueendmoduleNamedQueryId=structtypenonrect=stringletcontext_="NamedQueryId"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:"NamedQueryId"jletto_json=simple_to_jsonto_valueendmoduleNamedQueryIdList=structtypenonrect=NamedQueryId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:NamedQueryId.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:NamedQueryId.of_xml)letof_jsonj=list_of_json~kind:"NamedQueryIdList"~of_json:NamedQueryId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchGetNamedQueryInput=structtypenonrect={namedQueryIds:NamedQueryIdList.t[@ocaml.doc"An array of query IDs."]}letcontext_="BatchGetNamedQueryInput"letmake~namedQueryIds=fun()->{namedQueryIds}letto_valuex=structure_to_value[("NamedQueryIds",(Some(NamedQueryIdList.to_valuex.namedQueryIds)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnamedQueryIds=NamedQueryIdList.of_xml(Xml.child_exn~context:context_xml_arg0"NamedQueryIds")inmake~namedQueryIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnamedQueryIds=field_map_exnjson__"NamedQueryIds"NamedQueryIdList.of_jsoninmake~namedQueryIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains an array of named query IDs."]moduleErrorMessage=structtypenonrect=stringletcontext_="ErrorMessage"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"jletto_json=simple_to_jsonto_valueendmoduleErrorCode=structtypenonrect=string[@@ocaml.doc"The error code returned when the query execution failed to process, or when the processing request for the named query failed."]letcontext_="ErrorCode"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(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:"ErrorCode"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"The error code returned when the query execution failed to process, or when the processing request for the named query failed."]moduleUnprocessedNamedQueryId=structtypenonrect={namedQueryId:NamedQueryId.toption[@ocaml.doc"The unique identifier of the named query."];errorCode:ErrorCode.toption[@ocaml.doc"The error code returned when the processing request for the named query failed, if applicable."];errorMessage:ErrorMessage.toption[@ocaml.doc"The error message returned when the processing request for the named query failed, if applicable."]}letmake?namedQueryId=fun?errorCode->fun?errorMessage->fun()->{namedQueryId;errorCode;errorMessage}letto_valuex=structure_to_value[("NamedQueryId",(Option.mapx.namedQueryId~f:NamedQueryId.to_value));("ErrorCode",(Option.mapx.errorCode~f:ErrorCode.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inletnamedQueryId=(Option.map~f:NamedQueryId.of_xml)(Xml.childxml_arg0"NamedQueryId")inmake?errorMessage?errorCode?namedQueryId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"ErrorMessage.of_jsoninleterrorCode=field_mapjson__"ErrorCode"ErrorCode.of_jsoninletnamedQueryId=field_mapjson__"NamedQueryId"NamedQueryId.of_jsoninmake?errorMessage?errorCode?namedQueryId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about a named query ID that could not be processed."]moduleUnprocessedNamedQueryIdList=structtypenonrect=UnprocessedNamedQueryId.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:UnprocessedNamedQueryId.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:UnprocessedNamedQueryId.of_xml)letof_jsonj=list_of_json~kind:"UnprocessedNamedQueryIdList"~of_json:UnprocessedNamedQueryId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWorkGroupName=structtypenonrect=stringletcontext_="WorkGroupName"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9._-]{1,128}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"WorkGroupName"jletto_json=simple_to_jsonto_valueendmoduleQueryString=structtypenonrect=stringletcontext_="QueryString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:262144)>>=(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:"QueryString"jletto_json=simple_to_jsonto_valueendmoduleDescriptionString=structtypenonrect=stringletcontext_="DescriptionString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DescriptionString"jletto_json=simple_to_jsonto_valueendmoduleDatabaseString=structtypenonrect=stringletcontext_="DatabaseString"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:"DatabaseString"jletto_json=simple_to_jsonto_valueendmoduleNamedQuery=structtypenonrect={name:NameString.toption[@ocaml.doc"The query name."];description:DescriptionString.toption[@ocaml.doc"The query description."];database:DatabaseString.toption[@ocaml.doc"The database to which the query belongs."];queryString:QueryString.toption[@ocaml.doc"The SQL statements that make up the query."];namedQueryId:NamedQueryId.toption[@ocaml.doc"The unique identifier of the query."];workGroup:WorkGroupName.toption[@ocaml.doc"The name of the workgroup that contains the named query."]}letmake?name=fun?description->fun?database->fun?queryString->fun?namedQueryId->fun?workGroup->fun()->{name;description;database;queryString;namedQueryId;workGroup}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:NameString.to_value));("Description",(Option.mapx.description~f:DescriptionString.to_value));("Database",(Option.mapx.database~f:DatabaseString.to_value));("QueryString",(Option.mapx.queryString~f:QueryString.to_value));("NamedQueryId",(Option.mapx.namedQueryId~f:NamedQueryId.to_value));("WorkGroup",(Option.mapx.workGroup~f:WorkGroupName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkGroup=(Option.map~f:WorkGroupName.of_xml)(Xml.childxml_arg0"WorkGroup")inletnamedQueryId=(Option.map~f:NamedQueryId.of_xml)(Xml.childxml_arg0"NamedQueryId")inletqueryString=(Option.map~f:QueryString.of_xml)(Xml.childxml_arg0"QueryString")inletdatabase=(Option.map~f:DatabaseString.of_xml)(Xml.childxml_arg0"Database")inletdescription=(Option.map~f:DescriptionString.of_xml)(Xml.childxml_arg0"Description")inletname=(Option.map~f:NameString.of_xml)(Xml.childxml_arg0"Name")inmake?workGroup?namedQueryId?queryString?database?description?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkGroup=field_mapjson__"WorkGroup"WorkGroupName.of_jsoninletnamedQueryId=field_mapjson__"NamedQueryId"NamedQueryId.of_jsoninletqueryString=field_mapjson__"QueryString"QueryString.of_jsoninletdatabase=field_mapjson__"Database"DatabaseString.of_jsoninletdescription=field_mapjson__"Description"DescriptionString.of_jsoninletname=field_mapjson__"Name"NameString.of_jsoninmake?workGroup?namedQueryId?queryString?database?description?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A query, where QueryString contains the SQL statements that make up the query."]moduleNamedQueryList=structtypenonrect=NamedQuery.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:NamedQuery.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:NamedQuery.of_xml)letof_jsonj=list_of_json~kind:"NamedQueryList"~of_json:NamedQuery.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInvalidRequestException=structtypenonrect={athenaErrorCode:ErrorCode.toption;message:ErrorMessage.toption}letmake?athenaErrorCode=fun?message->fun()->{athenaErrorCode;message}letto_valuex=structure_to_value[("AthenaErrorCode",(Option.mapx.athenaErrorCode~f:ErrorCode.to_value));("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inletathenaErrorCode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"AthenaErrorCode")inmake?message?athenaErrorCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninletathenaErrorCode=field_mapjson__"AthenaErrorCode"ErrorCode.of_jsoninmake?message?athenaErrorCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates that something is wrong with the input to the request. For example, a required parameter may be missing or out of range."]moduleInternalServerException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates a platform issue, which may be due to a transient condition or outage."]moduleBatchGetNamedQueryOutput=structtypenonrect={namedQueries:NamedQueryList.toption[@ocaml.doc"Information about the named query IDs submitted."];unprocessedNamedQueryIds:UnprocessedNamedQueryIdList.toption[@ocaml.doc"Information about provided query IDs."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?namedQueries=fun?unprocessedNamedQueryIds->fun()->{namedQueries;unprocessedNamedQueryIds}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NamedQueries",(Option.mapx.namedQueries~f:NamedQueryList.to_value));("UnprocessedNamedQueryIds",(Option.mapx.unprocessedNamedQueryIds~f:UnprocessedNamedQueryIdList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunprocessedNamedQueryIds=(Option.map~f:UnprocessedNamedQueryIdList.of_xml)(Xml.childxml_arg0"UnprocessedNamedQueryIds")inletnamedQueries=(Option.map~f:NamedQueryList.of_xml)(Xml.childxml_arg0"NamedQueries")inmake?unprocessedNamedQueryIds?namedQueries()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunprocessedNamedQueryIds=field_mapjson__"UnprocessedNamedQueryIds"UnprocessedNamedQueryIdList.of_jsoninletnamedQueries=field_mapjson__"NamedQueries"NamedQueryList.of_jsoninmake?unprocessedNamedQueryIds?namedQueries()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the details of a single named query or a list of up to 50 queries, which you provide as an array of query ID strings. Requires you to have access to the workgroup in which the queries were saved. Use ListNamedQueriesInput to get the list of named query IDs in the specified workgroup. If information could not be retrieved for a submitted query ID, information about the query ID submitted is listed under UnprocessedNamedQueryId. Named queries differ from executed queries. Use BatchGetQueryExecutionInput to get details about each unique query execution, and ListQueryExecutionsInput to get a list of query execution IDs."]moduleStatementName=structtypenonrect=stringletcontext_="StatementName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"[a-zA-Z_][a-zA-Z0-9_@:]{1,256}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"StatementName"jletto_json=simple_to_jsonto_valueendmodulePreparedStatementNameList=structtypenonrect=StatementName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StatementName.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:StatementName.of_xml)letof_jsonj=list_of_json~kind:"PreparedStatementNameList"~of_json:StatementName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchGetPreparedStatementInput=structtypenonrect={preparedStatementNames:PreparedStatementNameList.t[@ocaml.doc"A list of prepared statement names to return."];workGroup:WorkGroupName.t[@ocaml.doc"The name of the workgroup to which the prepared statements belong."]}letcontext_="BatchGetPreparedStatementInput"letmake~preparedStatementNames=fun~workGroup->fun()->{preparedStatementNames;workGroup}letto_valuex=structure_to_value[("PreparedStatementNames",(Some(PreparedStatementNameList.to_valuex.preparedStatementNames)));("WorkGroup",(Some(WorkGroupName.to_valuex.workGroup)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkGroup=WorkGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"WorkGroup")inletpreparedStatementNames=PreparedStatementNameList.of_xml(Xml.child_exn~context:context_xml_arg0"PreparedStatementNames")inmake~workGroup~preparedStatementNames()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkGroup=field_map_exnjson__"WorkGroup"WorkGroupName.of_jsoninletpreparedStatementNames=field_map_exnjson__"PreparedStatementNames"PreparedStatementNameList.of_jsoninmake~workGroup~preparedStatementNames()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the details of a single prepared statement or a list of up to 256 prepared statements for the array of prepared statement names that you provide. Requires you to have access to the workgroup to which the prepared statements belong. If a prepared statement cannot be retrieved for the name specified, the statement is listed in UnprocessedPreparedStatementNames."]moduleUnprocessedPreparedStatementName=structtypenonrect={statementName:StatementName.toption[@ocaml.doc"The name of a prepared statement that could not be returned due to an error."];errorCode:ErrorCode.toption[@ocaml.doc"The error code returned when the request for the prepared statement failed."];errorMessage:ErrorMessage.toption[@ocaml.doc"The error message containing the reason why the prepared statement could not be returned. The following error messages are possible: INVALID_INPUT - The name of the prepared statement that was provided is not valid (for example, the name is too long). STATEMENT_NOT_FOUND - A prepared statement with the name provided could not be found. UNAUTHORIZED - The requester does not have permission to access the workgroup that contains the prepared statement."]}letmake?statementName=fun?errorCode->fun?errorMessage->fun()->{statementName;errorCode;errorMessage}letto_valuex=structure_to_value[("StatementName",(Option.mapx.statementName~f:StatementName.to_value));("ErrorCode",(Option.mapx.errorCode~f:ErrorCode.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inletstatementName=(Option.map~f:StatementName.of_xml)(Xml.childxml_arg0"StatementName")inmake?errorMessage?errorCode?statementName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"ErrorMessage.of_jsoninleterrorCode=field_mapjson__"ErrorCode"ErrorCode.of_jsoninletstatementName=field_mapjson__"StatementName"StatementName.of_jsoninmake?errorMessage?errorCode?statementName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The name of a prepared statement that could not be returned."]moduleUnprocessedPreparedStatementNameList=structtypenonrect=UnprocessedPreparedStatementName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:UnprocessedPreparedStatementName.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:UnprocessedPreparedStatementName.of_xml)letof_jsonj=list_of_json~kind:"UnprocessedPreparedStatementNameList"~of_json:UnprocessedPreparedStatementName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDate=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmodulePreparedStatement=structtypenonrect={statementName:StatementName.toption[@ocaml.doc"The name of the prepared statement."];queryStatement:QueryString.toption[@ocaml.doc"The query string for the prepared statement."];workGroupName:WorkGroupName.toption[@ocaml.doc"The name of the workgroup to which the prepared statement belongs."];description:DescriptionString.toption[@ocaml.doc"The description of the prepared statement."];lastModifiedTime:Date.toption[@ocaml.doc"The last modified time of the prepared statement."]}letmake?statementName=fun?queryStatement->fun?workGroupName->fun?description->fun?lastModifiedTime->fun()->{statementName;queryStatement;workGroupName;description;lastModifiedTime}letto_valuex=structure_to_value[("StatementName",(Option.mapx.statementName~f:StatementName.to_value));("QueryStatement",(Option.mapx.queryStatement~f:QueryString.to_value));("WorkGroupName",(Option.mapx.workGroupName~f:WorkGroupName.to_value));("Description",(Option.mapx.description~f:DescriptionString.to_value));("LastModifiedTime",(Option.mapx.lastModifiedTime~f:Date.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastModifiedTime=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"LastModifiedTime")inletdescription=(Option.map~f:DescriptionString.of_xml)(Xml.childxml_arg0"Description")inletworkGroupName=(Option.map~f:WorkGroupName.of_xml)(Xml.childxml_arg0"WorkGroupName")inletqueryStatement=(Option.map~f:QueryString.of_xml)(Xml.childxml_arg0"QueryStatement")inletstatementName=(Option.map~f:StatementName.of_xml)(Xml.childxml_arg0"StatementName")inmake?lastModifiedTime?description?workGroupName?queryStatement?statementName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastModifiedTime=field_mapjson__"LastModifiedTime"Date.of_jsoninletdescription=field_mapjson__"Description"DescriptionString.of_jsoninletworkGroupName=field_mapjson__"WorkGroupName"WorkGroupName.of_jsoninletqueryStatement=field_mapjson__"QueryStatement"QueryString.of_jsoninletstatementName=field_mapjson__"StatementName"StatementName.of_jsoninmake?lastModifiedTime?description?workGroupName?queryStatement?statementName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A prepared SQL statement for use with Athena."]modulePreparedStatementDetailsList=structtypenonrect=PreparedStatement.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PreparedStatement.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:PreparedStatement.of_xml)letof_jsonj=list_of_json~kind:"PreparedStatementDetailsList"~of_json:PreparedStatement.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchGetPreparedStatementOutput=structtypenonrect={preparedStatements:PreparedStatementDetailsList.toption[@ocaml.doc"The list of prepared statements returned."];unprocessedPreparedStatementNames:UnprocessedPreparedStatementNameList.toption[@ocaml.doc"A list of one or more prepared statements that were requested but could not be returned."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?preparedStatements=fun?unprocessedPreparedStatementNames->fun()->{preparedStatements;unprocessedPreparedStatementNames}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("PreparedStatements",(Option.mapx.preparedStatements~f:PreparedStatementDetailsList.to_value));("UnprocessedPreparedStatementNames",(Option.mapx.unprocessedPreparedStatementNames~f:UnprocessedPreparedStatementNameList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunprocessedPreparedStatementNames=(Option.map~f:UnprocessedPreparedStatementNameList.of_xml)(Xml.childxml_arg0"UnprocessedPreparedStatementNames")inletpreparedStatements=(Option.map~f:PreparedStatementDetailsList.of_xml)(Xml.childxml_arg0"PreparedStatements")inmake?unprocessedPreparedStatementNames?preparedStatements()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunprocessedPreparedStatementNames=field_mapjson__"UnprocessedPreparedStatementNames"UnprocessedPreparedStatementNameList.of_jsoninletpreparedStatements=field_mapjson__"PreparedStatements"PreparedStatementDetailsList.of_jsoninmake?unprocessedPreparedStatementNames?preparedStatements()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the details of a single prepared statement or a list of up to 256 prepared statements for the array of prepared statement names that you provide. Requires you to have access to the workgroup to which the prepared statements belong. If a prepared statement cannot be retrieved for the name specified, the statement is listed in UnprocessedPreparedStatementNames."]moduleQueryExecutionId=structtypenonrect=stringletcontext_="QueryExecutionId"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:"QueryExecutionId"jletto_json=simple_to_jsonto_valueendmoduleQueryExecutionIdList=structtypenonrect=QueryExecutionId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:QueryExecutionId.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:QueryExecutionId.of_xml)letof_jsonj=list_of_json~kind:"QueryExecutionIdList"~of_json:QueryExecutionId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchGetQueryExecutionInput=structtypenonrect={queryExecutionIds:QueryExecutionIdList.t[@ocaml.doc"An array of query execution IDs."]}letcontext_="BatchGetQueryExecutionInput"letmake~queryExecutionIds=fun()->{queryExecutionIds}letto_valuex=structure_to_value[("QueryExecutionIds",(Some(QueryExecutionIdList.to_valuex.queryExecutionIds)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueryExecutionIds=QueryExecutionIdList.of_xml(Xml.child_exn~context:context_xml_arg0"QueryExecutionIds")inmake~queryExecutionIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueryExecutionIds=field_map_exnjson__"QueryExecutionIds"QueryExecutionIdList.of_jsoninmake~queryExecutionIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains an array of query execution IDs."]moduleUnprocessedQueryExecutionId=structtypenonrect={queryExecutionId:QueryExecutionId.toption[@ocaml.doc"The unique identifier of the query execution."];errorCode:ErrorCode.toption[@ocaml.doc"The error code returned when the query execution failed to process, if applicable."];errorMessage:ErrorMessage.toption[@ocaml.doc"The error message returned when the query execution failed to process, if applicable."]}letmake?queryExecutionId=fun?errorCode->fun?errorMessage->fun()->{queryExecutionId;errorCode;errorMessage}letto_valuex=structure_to_value[("QueryExecutionId",(Option.mapx.queryExecutionId~f:QueryExecutionId.to_value));("ErrorCode",(Option.mapx.errorCode~f:ErrorCode.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inletqueryExecutionId=(Option.map~f:QueryExecutionId.of_xml)(Xml.childxml_arg0"QueryExecutionId")inmake?errorMessage?errorCode?queryExecutionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"ErrorMessage.of_jsoninleterrorCode=field_mapjson__"ErrorCode"ErrorCode.of_jsoninletqueryExecutionId=field_mapjson__"QueryExecutionId"QueryExecutionId.of_jsoninmake?errorMessage?errorCode?queryExecutionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a query execution that failed to process."]moduleUnprocessedQueryExecutionIdList=structtypenonrect=UnprocessedQueryExecutionId.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:UnprocessedQueryExecutionId.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:UnprocessedQueryExecutionId.of_xml)letof_jsonj=list_of_json~kind:"UnprocessedQueryExecutionIdList"~of_json:UnprocessedQueryExecutionId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleStatementType=structtypenonrect=|DDL|DML|UTILITY|Non_static_idofstringletmakei=iletto_string=function|DDL->"DDL"|DML->"DML"|UTILITY->"UTILITY"|Non_static_ids->sletof_string=function|"DDL"->DDL|"DML"->DML|"UTILITY"->UTILITY|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 StatementType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"StatementType"j)letto_json=simple_to_jsonto_valueendmoduleResultReuseByAgeConfiguration=structtypenonrect={enabled:Boolean.t[@ocaml.doc"True if previous query results can be reused when the query is run; otherwise, false. The default is false."];maxAgeInMinutes:Age.toption[@ocaml.doc"Specifies, in minutes, the maximum age of a previous query result that Athena should consider for reuse. The default is 60."]}letcontext_="ResultReuseByAgeConfiguration"letmake?maxAgeInMinutes=fun~enabled->fun()->{maxAgeInMinutes;enabled}letto_valuex=structure_to_value[("Enabled",(Some(Boolean.to_valuex.enabled)));("MaxAgeInMinutes",(Option.mapx.maxAgeInMinutes~f:Age.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxAgeInMinutes=(Option.map~f:Age.of_xml)(Xml.childxml_arg0"MaxAgeInMinutes")inletenabled=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"Enabled")inmake?maxAgeInMinutes~enabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxAgeInMinutes=field_mapjson__"MaxAgeInMinutes"Age.of_jsoninletenabled=field_map_exnjson__"Enabled"Boolean.of_jsoninmake?maxAgeInMinutes~enabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies whether previous query results are reused, and if so, their maximum age."]moduleResultReuseConfiguration=structtypenonrect={resultReuseByAgeConfiguration:ResultReuseByAgeConfiguration.toption[@ocaml.doc"Specifies whether previous query results are reused, and if so, their maximum age."]}letmake?resultReuseByAgeConfiguration=fun()->{resultReuseByAgeConfiguration}letto_valuex=structure_to_value[("ResultReuseByAgeConfiguration",(Option.mapx.resultReuseByAgeConfiguration~f:ResultReuseByAgeConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresultReuseByAgeConfiguration=(Option.map~f:ResultReuseByAgeConfiguration.of_xml)(Xml.childxml_arg0"ResultReuseByAgeConfiguration")inmake?resultReuseByAgeConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresultReuseByAgeConfiguration=field_mapjson__"ResultReuseByAgeConfiguration"ResultReuseByAgeConfiguration.of_jsoninmake?resultReuseByAgeConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the query result reuse behavior for the query."]moduleResultOutputLocation=structtypenonrect=stringletcontext_="ResultOutputLocation"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:"ResultOutputLocation"jletto_json=simple_to_jsonto_valueendmoduleEncryptionOption=structtypenonrect=|SSE_S3|SSE_KMS|CSE_KMS|Non_static_idofstringletmakei=iletto_string=function|SSE_S3->"SSE_S3"|SSE_KMS->"SSE_KMS"|CSE_KMS->"CSE_KMS"|Non_static_ids->sletof_string=function|"SSE_S3"->SSE_S3|"SSE_KMS"->SSE_KMS|"CSE_KMS"->CSE_KMS|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 EncryptionOption"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EncryptionOption"j)letto_json=simple_to_jsonto_valueendmoduleEncryptionConfiguration=structtypenonrect={encryptionOption:EncryptionOption.t[@ocaml.doc"Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys (SSE_S3), server-side encryption with KMS-managed keys (SSE_KMS), or client-side encryption with KMS-managed keys (CSE_KMS) is used. If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup."];kmsKey:String_.toption[@ocaml.doc"For SSE_KMS and CSE_KMS, this is the KMS key ARN or ID."]}letcontext_="EncryptionConfiguration"letmake?kmsKey=fun~encryptionOption->fun()->{kmsKey;encryptionOption}letto_valuex=structure_to_value[("EncryptionOption",(Some(EncryptionOption.to_valuex.encryptionOption)));("KmsKey",(Option.mapx.kmsKey~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkmsKey=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"KmsKey")inletencryptionOption=EncryptionOption.of_xml(Xml.child_exn~context:context_xml_arg0"EncryptionOption")inmake?kmsKey~encryptionOption()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkmsKey=field_mapjson__"KmsKey"String_.of_jsoninletencryptionOption=field_map_exnjson__"EncryptionOption"EncryptionOption.of_jsoninmake?kmsKey~encryptionOption()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"If query and calculation results are encrypted in Amazon S3, indicates the encryption option used (for example, SSE_KMS or CSE_KMS) and key information."]moduleResultConfiguration=structtypenonrect={outputLocation:ResultOutputLocation.toption[@ocaml.doc"The location in Amazon S3 where your query and calculation results are stored, such as s3://path/to/query/bucket/. To run the query, you must specify the query results location using one of the ways: either for individual queries using either this setting (client-side), or in the workgroup, using WorkGroupConfiguration. If none of them is set, Athena issues an error that no output location is provided. If workgroup settings override client-side settings, then the query uses the settings specified for the workgroup. See WorkGroupConfiguration$EnforceWorkGroupConfiguration."];encryptionConfiguration:EncryptionConfiguration.toption[@ocaml.doc"If query and calculation results are encrypted in Amazon S3, indicates the encryption option used (for example, SSE_KMS or CSE_KMS) and key information. This is a client-side setting. If workgroup settings override client-side settings, then the query uses the encryption configuration that is specified for the workgroup, and also uses the location for storing query results specified in the workgroup. See WorkGroupConfiguration$EnforceWorkGroupConfiguration and Workgroup Settings Override Client-Side Settings."];expectedBucketOwner:AwsAccountId.toption[@ocaml.doc"The Amazon Web Services account ID that you expect to be the owner of the Amazon S3 bucket specified by ResultConfiguration$OutputLocation. If set, Athena uses the value for ExpectedBucketOwner when it makes Amazon S3 calls to your specified output location. If the ExpectedBucketOwner Amazon Web Services account ID does not match the actual owner of the Amazon S3 bucket, the call fails with a permissions error. This is a client-side setting. If workgroup settings override client-side settings, then the query uses the ExpectedBucketOwner setting that is specified for the workgroup, and also uses the location for storing query results specified in the workgroup. See WorkGroupConfiguration$EnforceWorkGroupConfiguration and Workgroup Settings Override Client-Side Settings."];aclConfiguration:AclConfiguration.toption[@ocaml.doc"Indicates that an Amazon S3 canned ACL should be set to control ownership of stored query results. Currently the only supported canned ACL is BUCKET_OWNER_FULL_CONTROL. This is a client-side setting. If workgroup settings override client-side settings, then the query uses the ACL configuration that is specified for the workgroup, and also uses the location for storing query results specified in the workgroup. For more information, see WorkGroupConfiguration$EnforceWorkGroupConfiguration and Workgroup Settings Override Client-Side Settings."]}letmake?outputLocation=fun?encryptionConfiguration->fun?expectedBucketOwner->fun?aclConfiguration->fun()->{outputLocation;encryptionConfiguration;expectedBucketOwner;aclConfiguration}letto_valuex=structure_to_value[("OutputLocation",(Option.mapx.outputLocation~f:ResultOutputLocation.to_value));("EncryptionConfiguration",(Option.mapx.encryptionConfiguration~f:EncryptionConfiguration.to_value));("ExpectedBucketOwner",(Option.mapx.expectedBucketOwner~f:AwsAccountId.to_value));("AclConfiguration",(Option.mapx.aclConfiguration~f:AclConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaclConfiguration=(Option.map~f:AclConfiguration.of_xml)(Xml.childxml_arg0"AclConfiguration")inletexpectedBucketOwner=(Option.map~f:AwsAccountId.of_xml)(Xml.childxml_arg0"ExpectedBucketOwner")inletencryptionConfiguration=(Option.map~f:EncryptionConfiguration.of_xml)(Xml.childxml_arg0"EncryptionConfiguration")inletoutputLocation=(Option.map~f:ResultOutputLocation.of_xml)(Xml.childxml_arg0"OutputLocation")inmake?aclConfiguration?expectedBucketOwner?encryptionConfiguration?outputLocation()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaclConfiguration=field_mapjson__"AclConfiguration"AclConfiguration.of_jsoninletexpectedBucketOwner=field_mapjson__"ExpectedBucketOwner"AwsAccountId.of_jsoninletencryptionConfiguration=field_mapjson__"EncryptionConfiguration"EncryptionConfiguration.of_jsoninletoutputLocation=field_mapjson__"OutputLocation"ResultOutputLocation.of_jsoninmake?aclConfiguration?expectedBucketOwner?encryptionConfiguration?outputLocation()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The location in Amazon S3 where query and calculation results are stored and the encryption option, if any, used for query and calculation results. These are known as \"client-side settings\". If workgroup settings override client-side settings, then the query uses the workgroup settings."]moduleBoxedBoolean=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleQueryResultsS3AccessGrantsConfiguration=structtypenonrect={enableS3AccessGrants:BoxedBoolean.t[@ocaml.doc"Specifies whether Amazon S3 access grants are enabled for query results."];createUserLevelPrefix:BoxedBoolean.toption[@ocaml.doc"When enabled, appends the user ID as an Amazon S3 path prefix to the query result output location."];authenticationType:AuthenticationType.t[@ocaml.doc"The authentication type used for Amazon S3 access grants. Currently, only DIRECTORY_IDENTITY is supported."]}letcontext_="QueryResultsS3AccessGrantsConfiguration"letmake?createUserLevelPrefix=fun~enableS3AccessGrants->fun~authenticationType->fun()->{createUserLevelPrefix;enableS3AccessGrants;authenticationType}letto_valuex=structure_to_value[("EnableS3AccessGrants",(Some(BoxedBoolean.to_valuex.enableS3AccessGrants)));("CreateUserLevelPrefix",(Option.mapx.createUserLevelPrefix~f:BoxedBoolean.to_value));("AuthenticationType",(Some(AuthenticationType.to_valuex.authenticationType)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthenticationType=AuthenticationType.of_xml(Xml.child_exn~context:context_xml_arg0"AuthenticationType")inletcreateUserLevelPrefix=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"CreateUserLevelPrefix")inletenableS3AccessGrants=BoxedBoolean.of_xml(Xml.child_exn~context:context_xml_arg0"EnableS3AccessGrants")inmake~authenticationType?createUserLevelPrefix~enableS3AccessGrants()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthenticationType=field_map_exnjson__"AuthenticationType"AuthenticationType.of_jsoninletcreateUserLevelPrefix=field_mapjson__"CreateUserLevelPrefix"BoxedBoolean.of_jsoninletenableS3AccessGrants=field_map_exnjson__"EnableS3AccessGrants"BoxedBoolean.of_jsoninmake~authenticationType?createUserLevelPrefix~enableS3AccessGrants()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies whether Amazon S3 access grants are enabled for query results."]moduleQueryExecutionState=structtypenonrect=|QUEUED|RUNNING|SUCCEEDED|FAILED|CANCELLED|Non_static_idofstringletmakei=iletto_string=function|QUEUED->"QUEUED"|RUNNING->"RUNNING"|SUCCEEDED->"SUCCEEDED"|FAILED->"FAILED"|CANCELLED->"CANCELLED"|Non_static_ids->sletof_string=function|"QUEUED"->QUEUED|"RUNNING"->RUNNING|"SUCCEEDED"->SUCCEEDED|"FAILED"->FAILED|"CANCELLED"->CANCELLED|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 QueryExecutionState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"QueryExecutionState"j)letto_json=simple_to_jsonto_valueendmoduleQueryExecutionStatus=structtypenonrect={state:QueryExecutionState.toption[@ocaml.doc"The state of query execution. QUEUED indicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available. RUNNING indicates that the query is in execution phase. SUCCEEDED indicates that the query completed without errors. FAILED indicates that the query experienced an error and did not complete processing. CANCELLED indicates that a user input interrupted query execution. For queries that experience certain transient errors, the state transitions from RUNNING back to QUEUED. The FAILED state is always terminal with no automatic retry."];stateChangeReason:String_.toption[@ocaml.doc"Further detail about the status of the query."];submissionDateTime:Date.toption[@ocaml.doc"The date and time that the query was submitted."];completionDateTime:Date.toption[@ocaml.doc"The date and time that the query completed."];athenaError:AthenaError.toption[@ocaml.doc"Provides information about an Athena query error."]}letmake?state=fun?stateChangeReason->fun?submissionDateTime->fun?completionDateTime->fun?athenaError->fun()->{state;stateChangeReason;submissionDateTime;completionDateTime;athenaError}letto_valuex=structure_to_value[("State",(Option.mapx.state~f:QueryExecutionState.to_value));("StateChangeReason",(Option.mapx.stateChangeReason~f:String_.to_value));("SubmissionDateTime",(Option.mapx.submissionDateTime~f:Date.to_value));("CompletionDateTime",(Option.mapx.completionDateTime~f:Date.to_value));("AthenaError",(Option.mapx.athenaError~f:AthenaError.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letathenaError=(Option.map~f:AthenaError.of_xml)(Xml.childxml_arg0"AthenaError")inletcompletionDateTime=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"CompletionDateTime")inletsubmissionDateTime=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"SubmissionDateTime")inletstateChangeReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"StateChangeReason")inletstate=(Option.map~f:QueryExecutionState.of_xml)(Xml.childxml_arg0"State")inmake?athenaError?completionDateTime?submissionDateTime?stateChangeReason?state()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letathenaError=field_mapjson__"AthenaError"AthenaError.of_jsoninletcompletionDateTime=field_mapjson__"CompletionDateTime"Date.of_jsoninletsubmissionDateTime=field_mapjson__"SubmissionDateTime"Date.of_jsoninletstateChangeReason=field_mapjson__"StateChangeReason"String_.of_jsoninletstate=field_mapjson__"State"QueryExecutionState.of_jsoninmake?athenaError?completionDateTime?submissionDateTime?stateChangeReason?state()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The completion date, current state, submission time, and state change reason (if applicable) for the query execution."]moduleResultReuseInformation=structtypenonrect={reusedPreviousResult:Boolean.toption[@ocaml.doc"True if a previous query result was reused; false if the result was generated from a new run of the query."]}letmake?reusedPreviousResult=fun()->{reusedPreviousResult}letto_valuex=structure_to_value[("ReusedPreviousResult",(Option.mapx.reusedPreviousResult~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreusedPreviousResult=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"ReusedPreviousResult")inmake?reusedPreviousResult()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreusedPreviousResult=field_mapjson__"ReusedPreviousResult"Boolean.of_jsoninmake?reusedPreviousResult()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about whether the result of a previous query was reused."]moduleLong=structtypenonrect=Int64.tletmakei=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_valueendmoduleDpuCount=structtypenonrect=floatletmakei=iletof_string=Float.of_stringletto_valuex=`Doublexletto_queryv=to_queryto_valuevletto_headerx=Stdlib.Float.to_stringxletof_xmlxml_arg0=Float.of_string(string_of_xml~kind:"a double"xml_arg0)letof_jsonj=float_of_json~kind:"a double"jletto_json=simple_to_jsonto_valueendmoduleQueryExecutionStatistics=structtypenonrect={engineExecutionTimeInMillis:Long.toption[@ocaml.doc"The number of milliseconds that the query took to execute."];dataScannedInBytes:Long.toption[@ocaml.doc"The number of bytes in the data that was queried."];dataManifestLocation:String_.toption[@ocaml.doc"The location and file name of a data manifest file. The manifest file is saved to the Athena query results location in Amazon S3. The manifest file tracks files that the query wrote to Amazon S3. If the query fails, the manifest file also tracks files that the query intended to write. The manifest is useful for identifying orphaned files resulting from a failed query. For more information, see Working with Query Results, Output Files, and Query History in the Amazon Athena User Guide."];totalExecutionTimeInMillis:Long.toption[@ocaml.doc"The number of milliseconds that Athena took to run the query."];queryQueueTimeInMillis:Long.toption[@ocaml.doc"The number of milliseconds that the query was in your query queue waiting for resources. Note that if transient errors occur, Athena might automatically add the query back to the queue."];servicePreProcessingTimeInMillis:Long.toption[@ocaml.doc"The number of milliseconds that Athena took to preprocess the query before submitting the query to the query engine."];queryPlanningTimeInMillis:Long.toption[@ocaml.doc"The number of milliseconds that Athena took to plan the query processing flow. This includes the time spent retrieving table partitions from the data source. Note that because the query engine performs the query planning, query planning time is a subset of engine processing time."];serviceProcessingTimeInMillis:Long.toption[@ocaml.doc"The number of milliseconds that Athena took to finalize and publish the query results after the query engine finished running the query."];resultReuseInformation:ResultReuseInformation.toption[@ocaml.doc"Contains information about whether previous query results were reused for the query."];dpuCount:DpuCount.toption[@ocaml.doc"The number of Data Processing Units (DPUs) that Athena used to run the query."]}letmake?engineExecutionTimeInMillis=fun?dataScannedInBytes->fun?dataManifestLocation->fun?totalExecutionTimeInMillis->fun?queryQueueTimeInMillis->fun?servicePreProcessingTimeInMillis->fun?queryPlanningTimeInMillis->fun?serviceProcessingTimeInMillis->fun?resultReuseInformation->fun?dpuCount->fun()->{engineExecutionTimeInMillis;dataScannedInBytes;dataManifestLocation;totalExecutionTimeInMillis;queryQueueTimeInMillis;servicePreProcessingTimeInMillis;queryPlanningTimeInMillis;serviceProcessingTimeInMillis;resultReuseInformation;dpuCount}letto_valuex=structure_to_value[("EngineExecutionTimeInMillis",(Option.mapx.engineExecutionTimeInMillis~f:Long.to_value));("DataScannedInBytes",(Option.mapx.dataScannedInBytes~f:Long.to_value));("DataManifestLocation",(Option.mapx.dataManifestLocation~f:String_.to_value));("TotalExecutionTimeInMillis",(Option.mapx.totalExecutionTimeInMillis~f:Long.to_value));("QueryQueueTimeInMillis",(Option.mapx.queryQueueTimeInMillis~f:Long.to_value));("ServicePreProcessingTimeInMillis",(Option.mapx.servicePreProcessingTimeInMillis~f:Long.to_value));("QueryPlanningTimeInMillis",(Option.mapx.queryPlanningTimeInMillis~f:Long.to_value));("ServiceProcessingTimeInMillis",(Option.mapx.serviceProcessingTimeInMillis~f:Long.to_value));("ResultReuseInformation",(Option.mapx.resultReuseInformation~f:ResultReuseInformation.to_value));("DpuCount",(Option.mapx.dpuCount~f:DpuCount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdpuCount=(Option.map~f:DpuCount.of_xml)(Xml.childxml_arg0"DpuCount")inletresultReuseInformation=(Option.map~f:ResultReuseInformation.of_xml)(Xml.childxml_arg0"ResultReuseInformation")inletserviceProcessingTimeInMillis=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"ServiceProcessingTimeInMillis")inletqueryPlanningTimeInMillis=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"QueryPlanningTimeInMillis")inletservicePreProcessingTimeInMillis=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"ServicePreProcessingTimeInMillis")inletqueryQueueTimeInMillis=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"QueryQueueTimeInMillis")inlettotalExecutionTimeInMillis=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"TotalExecutionTimeInMillis")inletdataManifestLocation=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"DataManifestLocation")inletdataScannedInBytes=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"DataScannedInBytes")inletengineExecutionTimeInMillis=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"EngineExecutionTimeInMillis")inmake?dpuCount?resultReuseInformation?serviceProcessingTimeInMillis?queryPlanningTimeInMillis?servicePreProcessingTimeInMillis?queryQueueTimeInMillis?totalExecutionTimeInMillis?dataManifestLocation?dataScannedInBytes?engineExecutionTimeInMillis()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdpuCount=field_mapjson__"DpuCount"DpuCount.of_jsoninletresultReuseInformation=field_mapjson__"ResultReuseInformation"ResultReuseInformation.of_jsoninletserviceProcessingTimeInMillis=field_mapjson__"ServiceProcessingTimeInMillis"Long.of_jsoninletqueryPlanningTimeInMillis=field_mapjson__"QueryPlanningTimeInMillis"Long.of_jsoninletservicePreProcessingTimeInMillis=field_mapjson__"ServicePreProcessingTimeInMillis"Long.of_jsoninletqueryQueueTimeInMillis=field_mapjson__"QueryQueueTimeInMillis"Long.of_jsoninlettotalExecutionTimeInMillis=field_mapjson__"TotalExecutionTimeInMillis"Long.of_jsoninletdataManifestLocation=field_mapjson__"DataManifestLocation"String_.of_jsoninletdataScannedInBytes=field_mapjson__"DataScannedInBytes"Long.of_jsoninletengineExecutionTimeInMillis=field_mapjson__"EngineExecutionTimeInMillis"Long.of_jsoninmake?dpuCount?resultReuseInformation?serviceProcessingTimeInMillis?queryPlanningTimeInMillis?servicePreProcessingTimeInMillis?queryQueueTimeInMillis?totalExecutionTimeInMillis?dataManifestLocation?dataScannedInBytes?engineExecutionTimeInMillis()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The amount of data scanned during the query execution and the amount of time that it took to execute, and the type of statement that was run."]moduleCatalogNameString=structtypenonrect=stringletcontext_="CatalogNameString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CatalogNameString"jletto_json=simple_to_jsonto_valueendmoduleQueryExecutionContext=structtypenonrect={database:DatabaseString.toption[@ocaml.doc"The name of the database used in the query execution. The database must exist in the catalog."];catalog:CatalogNameString.toption[@ocaml.doc"The name of the data catalog used in the query execution."]}letmake?database=fun?catalog->fun()->{database;catalog}letto_valuex=structure_to_value[("Database",(Option.mapx.database~f:DatabaseString.to_value));("Catalog",(Option.mapx.catalog~f:CatalogNameString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcatalog=(Option.map~f:CatalogNameString.of_xml)(Xml.childxml_arg0"Catalog")inletdatabase=(Option.map~f:DatabaseString.of_xml)(Xml.childxml_arg0"Database")inmake?catalog?database()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcatalog=field_mapjson__"Catalog"CatalogNameString.of_jsoninletdatabase=field_mapjson__"Database"DatabaseString.of_jsoninmake?catalog?database()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The database and data catalog context in which the query execution occurs."]moduleKmsKey=structtypenonrect=stringletcontext_="KmsKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^arn:aws[a-z\\-]*:kms:([a-z0-9\\-]+):\\d{12}:key/?[a-zA-Z_0-9+=,.@\\-_/]+$|^arn:aws[a-z\\-]*:kms:([a-z0-9\\-]+):\\d{12}:alias/?[a-zA-Z_0-9+=,.@\\-_/]+$|^alias/[a-zA-Z0-9/_-]+$|[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"KmsKey"jletto_json=simple_to_jsonto_valueendmoduleManagedQueryResultsEncryptionConfiguration=structtypenonrect={kmsKey:KmsKey.t[@ocaml.doc"The ARN of an KMS key for encrypting managed query results."]}letcontext_="ManagedQueryResultsEncryptionConfiguration"letmake~kmsKey=fun()->{kmsKey}letto_valuex=structure_to_value[("KmsKey",(Some(KmsKey.to_valuex.kmsKey)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkmsKey=KmsKey.of_xml(Xml.child_exn~context:context_xml_arg0"KmsKey")inmake~kmsKey()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkmsKey=field_map_exnjson__"KmsKey"KmsKey.of_jsoninmake~kmsKey()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"If you encrypt query and calculation results in Athena owned storage, this field indicates the encryption option (for example, SSE_KMS or CSE_KMS) and key information."]moduleManagedQueryResultsConfiguration=structtypenonrect={enabled:Boolean.t[@ocaml.doc"If set to true, allows you to store query results in Athena owned storage. If set to false, workgroup member stores query results in location specified under ResultConfiguration$OutputLocation. The default is false. A workgroup cannot have the ResultConfiguration$OutputLocation parameter when you set this field to true."];encryptionConfiguration:ManagedQueryResultsEncryptionConfiguration.toption[@ocaml.doc"If you encrypt query and calculation results in Athena owned storage, this field indicates the encryption option (for example, SSE_KMS or CSE_KMS) and key information."]}letcontext_="ManagedQueryResultsConfiguration"letmake?encryptionConfiguration=fun~enabled->fun()->{encryptionConfiguration;enabled}letto_valuex=structure_to_value[("Enabled",(Some(Boolean.to_valuex.enabled)));("EncryptionConfiguration",(Option.mapx.encryptionConfiguration~f:ManagedQueryResultsEncryptionConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letencryptionConfiguration=(Option.map~f:ManagedQueryResultsEncryptionConfiguration.of_xml)(Xml.childxml_arg0"EncryptionConfiguration")inletenabled=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"Enabled")inmake?encryptionConfiguration~enabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letencryptionConfiguration=field_mapjson__"EncryptionConfiguration"ManagedQueryResultsEncryptionConfiguration.of_jsoninletenabled=field_map_exnjson__"Enabled"Boolean.of_jsoninmake?encryptionConfiguration~enabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The configuration for storing results in Athena owned storage, which includes whether this feature is enabled; whether encryption configuration, if any, is used for encrypting query results."]moduleExecutionParameter=structtypenonrect=stringletcontext_="ExecutionParameter"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ExecutionParameter"jletto_json=simple_to_jsonto_valueendmoduleExecutionParameters=structtypenonrect=ExecutionParameter.tlistletmakei=letopenResultinok_or_failwith(check_list_mini~min:1);iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ExecutionParameter.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:ExecutionParameter.of_xml)letof_jsonj=list_of_json~kind:"ExecutionParameters"~of_json:ExecutionParameter.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEngineVersion=structtypenonrect={selectedEngineVersion:NameString.toption[@ocaml.doc"The engine version requested by the user. Possible values are determined by the output of ListEngineVersions, including AUTO. The default is AUTO."];effectiveEngineVersion:NameString.toption[@ocaml.doc"Read only. The engine version on which the query runs. If the user requests a valid engine version other than Auto, the effective engine version is the same as the engine version that the user requested. If the user requests Auto, the effective engine version is chosen by Athena. When a request to update the engine version is made by a CreateWorkGroup or UpdateWorkGroup operation, the EffectiveEngineVersion field is ignored."]}letmake?selectedEngineVersion=fun?effectiveEngineVersion->fun()->{selectedEngineVersion;effectiveEngineVersion}letto_valuex=structure_to_value[("SelectedEngineVersion",(Option.mapx.selectedEngineVersion~f:NameString.to_value));("EffectiveEngineVersion",(Option.mapx.effectiveEngineVersion~f:NameString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteffectiveEngineVersion=(Option.map~f:NameString.of_xml)(Xml.childxml_arg0"EffectiveEngineVersion")inletselectedEngineVersion=(Option.map~f:NameString.of_xml)(Xml.childxml_arg0"SelectedEngineVersion")inmake?effectiveEngineVersion?selectedEngineVersion()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteffectiveEngineVersion=field_mapjson__"EffectiveEngineVersion"NameString.of_jsoninletselectedEngineVersion=field_mapjson__"SelectedEngineVersion"NameString.of_jsoninmake?effectiveEngineVersion?selectedEngineVersion()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The Athena engine version for running queries, or the PySpark engine version for running sessions."]moduleQueryExecution=structtypenonrect={queryExecutionId:QueryExecutionId.toption[@ocaml.doc"The unique identifier for each query execution."];query:QueryString.toption[@ocaml.doc"The SQL query statements which the query execution ran."];statementType:StatementType.toption[@ocaml.doc"The type of query statement that was run. DDL indicates DDL query statements. DML indicates DML (Data Manipulation Language) query statements, such as CREATE TABLE AS SELECT. UTILITY indicates query statements other than DDL and DML, such as SHOW CREATE TABLE, EXPLAIN, DESCRIBE, or SHOW TABLES."];managedQueryResultsConfiguration:ManagedQueryResultsConfiguration.toption[@ocaml.doc"The configuration for storing results in Athena owned storage, which includes whether this feature is enabled; whether encryption configuration, if any, is used for encrypting query results."];resultConfiguration:ResultConfiguration.toption[@ocaml.doc"The location in Amazon S3 where query and calculation results are stored and the encryption option, if any, used for query results. These are known as \"client-side settings\". If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup."];resultReuseConfiguration:ResultReuseConfiguration.toption[@ocaml.doc"Specifies the query result reuse behavior that was used for the query."];queryExecutionContext:QueryExecutionContext.toption[@ocaml.doc"The database in which the query execution occurred."];status:QueryExecutionStatus.toption[@ocaml.doc"The completion date, current state, submission time, and state change reason (if applicable) for the query execution."];statistics:QueryExecutionStatistics.toption[@ocaml.doc"Query execution statistics, such as the amount of data scanned, the amount of time that the query took to process, and the type of statement that was run."];workGroup:WorkGroupName.toption[@ocaml.doc"The name of the workgroup in which the query ran."];engineVersion:EngineVersion.toption[@ocaml.doc"The engine version that executed the query."];executionParameters:ExecutionParameters.toption[@ocaml.doc"A list of values for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur. The list of parameters is not returned in the response."];substatementType:String_.toption[@ocaml.doc"The kind of query statement that was run."];queryResultsS3AccessGrantsConfiguration:QueryResultsS3AccessGrantsConfiguration.toption[@ocaml.doc"Specifies whether Amazon S3 access grants are enabled for query results."]}letmake?queryExecutionId=fun?query->fun?statementType->fun?managedQueryResultsConfiguration->fun?resultConfiguration->fun?resultReuseConfiguration->fun?queryExecutionContext->fun?status->fun?statistics->fun?workGroup->fun?engineVersion->fun?executionParameters->fun?substatementType->fun?queryResultsS3AccessGrantsConfiguration->fun()->{queryExecutionId;query;statementType;managedQueryResultsConfiguration;resultConfiguration;resultReuseConfiguration;queryExecutionContext;status;statistics;workGroup;engineVersion;executionParameters;substatementType;queryResultsS3AccessGrantsConfiguration}letto_valuex=structure_to_value[("QueryExecutionId",(Option.mapx.queryExecutionId~f:QueryExecutionId.to_value));("Query",(Option.mapx.query~f:QueryString.to_value));("StatementType",(Option.mapx.statementType~f:StatementType.to_value));("ManagedQueryResultsConfiguration",(Option.mapx.managedQueryResultsConfiguration~f:ManagedQueryResultsConfiguration.to_value));("ResultConfiguration",(Option.mapx.resultConfiguration~f:ResultConfiguration.to_value));("ResultReuseConfiguration",(Option.mapx.resultReuseConfiguration~f:ResultReuseConfiguration.to_value));("QueryExecutionContext",(Option.mapx.queryExecutionContext~f:QueryExecutionContext.to_value));("Status",(Option.mapx.status~f:QueryExecutionStatus.to_value));("Statistics",(Option.mapx.statistics~f:QueryExecutionStatistics.to_value));("WorkGroup",(Option.mapx.workGroup~f:WorkGroupName.to_value));("EngineVersion",(Option.mapx.engineVersion~f:EngineVersion.to_value));("ExecutionParameters",(Option.mapx.executionParameters~f:ExecutionParameters.to_value));("SubstatementType",(Option.mapx.substatementType~f:String_.to_value));("QueryResultsS3AccessGrantsConfiguration",(Option.mapx.queryResultsS3AccessGrantsConfiguration~f:QueryResultsS3AccessGrantsConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueryResultsS3AccessGrantsConfiguration=(Option.map~f:QueryResultsS3AccessGrantsConfiguration.of_xml)(Xml.childxml_arg0"QueryResultsS3AccessGrantsConfiguration")inletsubstatementType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"SubstatementType")inletexecutionParameters=(Option.map~f:ExecutionParameters.of_xml)(Xml.childxml_arg0"ExecutionParameters")inletengineVersion=(Option.map~f:EngineVersion.of_xml)(Xml.childxml_arg0"EngineVersion")inletworkGroup=(Option.map~f:WorkGroupName.of_xml)(Xml.childxml_arg0"WorkGroup")inletstatistics=(Option.map~f:QueryExecutionStatistics.of_xml)(Xml.childxml_arg0"Statistics")inletstatus=(Option.map~f:QueryExecutionStatus.of_xml)(Xml.childxml_arg0"Status")inletqueryExecutionContext=(Option.map~f:QueryExecutionContext.of_xml)(Xml.childxml_arg0"QueryExecutionContext")inletresultReuseConfiguration=(Option.map~f:ResultReuseConfiguration.of_xml)(Xml.childxml_arg0"ResultReuseConfiguration")inletresultConfiguration=(Option.map~f:ResultConfiguration.of_xml)(Xml.childxml_arg0"ResultConfiguration")inletmanagedQueryResultsConfiguration=(Option.map~f:ManagedQueryResultsConfiguration.of_xml)(Xml.childxml_arg0"ManagedQueryResultsConfiguration")inletstatementType=(Option.map~f:StatementType.of_xml)(Xml.childxml_arg0"StatementType")inletquery=(Option.map~f:QueryString.of_xml)(Xml.childxml_arg0"Query")inletqueryExecutionId=(Option.map~f:QueryExecutionId.of_xml)(Xml.childxml_arg0"QueryExecutionId")inmake?queryResultsS3AccessGrantsConfiguration?substatementType?executionParameters?engineVersion?workGroup?statistics?status?queryExecutionContext?resultReuseConfiguration?resultConfiguration?managedQueryResultsConfiguration?statementType?query?queryExecutionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueryResultsS3AccessGrantsConfiguration=field_mapjson__"QueryResultsS3AccessGrantsConfiguration"QueryResultsS3AccessGrantsConfiguration.of_jsoninletsubstatementType=field_mapjson__"SubstatementType"String_.of_jsoninletexecutionParameters=field_mapjson__"ExecutionParameters"ExecutionParameters.of_jsoninletengineVersion=field_mapjson__"EngineVersion"EngineVersion.of_jsoninletworkGroup=field_mapjson__"WorkGroup"WorkGroupName.of_jsoninletstatistics=field_mapjson__"Statistics"QueryExecutionStatistics.of_jsoninletstatus=field_mapjson__"Status"QueryExecutionStatus.of_jsoninletqueryExecutionContext=field_mapjson__"QueryExecutionContext"QueryExecutionContext.of_jsoninletresultReuseConfiguration=field_mapjson__"ResultReuseConfiguration"ResultReuseConfiguration.of_jsoninletresultConfiguration=field_mapjson__"ResultConfiguration"ResultConfiguration.of_jsoninletmanagedQueryResultsConfiguration=field_mapjson__"ManagedQueryResultsConfiguration"ManagedQueryResultsConfiguration.of_jsoninletstatementType=field_mapjson__"StatementType"StatementType.of_jsoninletquery=field_mapjson__"Query"QueryString.of_jsoninletqueryExecutionId=field_mapjson__"QueryExecutionId"QueryExecutionId.of_jsoninmake?queryResultsS3AccessGrantsConfiguration?substatementType?executionParameters?engineVersion?workGroup?statistics?status?queryExecutionContext?resultReuseConfiguration?resultConfiguration?managedQueryResultsConfiguration?statementType?query?queryExecutionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about a single instance of a query execution."]moduleQueryExecutionList=structtypenonrect=QueryExecution.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:QueryExecution.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:QueryExecution.of_xml)letof_jsonj=list_of_json~kind:"QueryExecutionList"~of_json:QueryExecution.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchGetQueryExecutionOutput=structtypenonrect={queryExecutions:QueryExecutionList.toption[@ocaml.doc"Information about a query execution."];unprocessedQueryExecutionIds:UnprocessedQueryExecutionIdList.toption[@ocaml.doc"Information about the query executions that failed to run."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?queryExecutions=fun?unprocessedQueryExecutionIds->fun()->{queryExecutions;unprocessedQueryExecutionIds}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("QueryExecutions",(Option.mapx.queryExecutions~f:QueryExecutionList.to_value));("UnprocessedQueryExecutionIds",(Option.mapx.unprocessedQueryExecutionIds~f:UnprocessedQueryExecutionIdList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunprocessedQueryExecutionIds=(Option.map~f:UnprocessedQueryExecutionIdList.of_xml)(Xml.childxml_arg0"UnprocessedQueryExecutionIds")inletqueryExecutions=(Option.map~f:QueryExecutionList.of_xml)(Xml.childxml_arg0"QueryExecutions")inmake?unprocessedQueryExecutionIds?queryExecutions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunprocessedQueryExecutionIds=field_mapjson__"UnprocessedQueryExecutionIds"UnprocessedQueryExecutionIdList.of_jsoninletqueryExecutions=field_mapjson__"QueryExecutions"QueryExecutionList.of_jsoninmake?unprocessedQueryExecutionIds?queryExecutions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the details of a single query execution or a list of up to 50 query executions, which you provide as an array of query execution ID strings. Requires you to have access to the workgroup in which the queries ran. To get a list of query execution IDs, use ListQueryExecutionsInput$WorkGroup. Query executions differ from named (saved) queries. Use BatchGetNamedQueryInput to get details about named queries."]moduleBytesScannedCutoffValue=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith(check_int64_mini~min:10000000L);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_valueendmoduleCodeBlock=structtypenonrect=stringletcontext_="CodeBlock"letmakei=letopenResultinok_or_failwith(check_string_maxi~max:68000);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CodeBlock"jletto_json=simple_to_jsonto_valueendmoduleCalculationConfiguration=structtypenonrect={codeBlock:CodeBlock.toption[@ocaml.doc"A string that contains the code for the calculation."]}letmake?codeBlock=fun()->{codeBlock}letto_valuex=structure_to_value[("CodeBlock",(Option.mapx.codeBlock~f:CodeBlock.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcodeBlock=(Option.map~f:CodeBlock.of_xml)(Xml.childxml_arg0"CodeBlock")inmake?codeBlock()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcodeBlock=field_mapjson__"CodeBlock"CodeBlock.of_jsoninmake?codeBlock()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains configuration information for the calculation."]moduleCalculationExecutionId=structtypenonrect=stringletcontext_="CalculationExecutionId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:36)>>=(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:"CalculationExecutionId"jletto_json=simple_to_jsonto_valueendmoduleCalculationExecutionState=structtypenonrect=|CREATING|CREATED|QUEUED|RUNNING|CANCELING|CANCELED|COMPLETED|FAILED|Non_static_idofstringletmakei=iletto_string=function|CREATING->"CREATING"|CREATED->"CREATED"|QUEUED->"QUEUED"|RUNNING->"RUNNING"|CANCELING->"CANCELING"|CANCELED->"CANCELED"|COMPLETED->"COMPLETED"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"CREATING"->CREATING|"CREATED"->CREATED|"QUEUED"->QUEUED|"RUNNING"->RUNNING|"CANCELING"->CANCELING|"CANCELED"->CANCELED|"COMPLETED"->COMPLETED|"FAILED"->FAILED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration CalculationExecutionState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CalculationExecutionState"j)letto_json=simple_to_jsonto_valueendmoduleS3Uri=structtypenonrect=stringletcontext_="S3Uri"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:"^(https|s3|S3)://([^/]+)/?(.*)$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"S3Uri"jletto_json=simple_to_jsonto_valueendmoduleCalculationResultType=structtypenonrect=stringletcontext_="CalculationResultType"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"\\w+\\/[-+.\\w]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CalculationResultType"jletto_json=simple_to_jsonto_valueendmoduleCalculationResult=structtypenonrect={stdOutS3Uri:S3Uri.toption[@ocaml.doc"The Amazon S3 location of the stdout file for the calculation."];stdErrorS3Uri:S3Uri.toption[@ocaml.doc"The Amazon S3 location of the stderr error messages file for the calculation."];resultS3Uri:S3Uri.toption[@ocaml.doc"The Amazon S3 location of the folder for the calculation results."];resultType:CalculationResultType.toption[@ocaml.doc"The data format of the calculation result."]}letmake?stdOutS3Uri=fun?stdErrorS3Uri->fun?resultS3Uri->fun?resultType->fun()->{stdOutS3Uri;stdErrorS3Uri;resultS3Uri;resultType}letto_valuex=structure_to_value[("StdOutS3Uri",(Option.mapx.stdOutS3Uri~f:S3Uri.to_value));("StdErrorS3Uri",(Option.mapx.stdErrorS3Uri~f:S3Uri.to_value));("ResultS3Uri",(Option.mapx.resultS3Uri~f:S3Uri.to_value));("ResultType",(Option.mapx.resultType~f:CalculationResultType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresultType=(Option.map~f:CalculationResultType.of_xml)(Xml.childxml_arg0"ResultType")inletresultS3Uri=(Option.map~f:S3Uri.of_xml)(Xml.childxml_arg0"ResultS3Uri")inletstdErrorS3Uri=(Option.map~f:S3Uri.of_xml)(Xml.childxml_arg0"StdErrorS3Uri")inletstdOutS3Uri=(Option.map~f:S3Uri.of_xml)(Xml.childxml_arg0"StdOutS3Uri")inmake?resultType?resultS3Uri?stdErrorS3Uri?stdOutS3Uri()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresultType=field_mapjson__"ResultType"CalculationResultType.of_jsoninletresultS3Uri=field_mapjson__"ResultS3Uri"S3Uri.of_jsoninletstdErrorS3Uri=field_mapjson__"StdErrorS3Uri"S3Uri.of_jsoninletstdOutS3Uri=field_mapjson__"StdOutS3Uri"S3Uri.of_jsoninmake?resultType?resultS3Uri?stdErrorS3Uri?stdOutS3Uri()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about an application-specific calculation result."]moduleCalculationStatistics=structtypenonrect={dpuExecutionInMillis:Long.toption[@ocaml.doc"The data processing unit execution time in milliseconds for the calculation."];progress:DescriptionString.toption[@ocaml.doc"The progress of the calculation."]}letmake?dpuExecutionInMillis=fun?progress->fun()->{dpuExecutionInMillis;progress}letto_valuex=structure_to_value[("DpuExecutionInMillis",(Option.mapx.dpuExecutionInMillis~f:Long.to_value));("Progress",(Option.mapx.progress~f:DescriptionString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprogress=(Option.map~f:DescriptionString.of_xml)(Xml.childxml_arg0"Progress")inletdpuExecutionInMillis=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"DpuExecutionInMillis")inmake?progress?dpuExecutionInMillis()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprogress=field_mapjson__"Progress"DescriptionString.of_jsoninletdpuExecutionInMillis=field_mapjson__"DpuExecutionInMillis"Long.of_jsoninmake?progress?dpuExecutionInMillis()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains statistics for a notebook calculation."]moduleCalculationStatus=structtypenonrect={submissionDateTime:Date.toption[@ocaml.doc"The date and time the calculation was submitted for processing."];completionDateTime:Date.toption[@ocaml.doc"The date and time the calculation completed processing."];state:CalculationExecutionState.toption[@ocaml.doc"The state of the calculation execution. A description of each state follows. CREATING - The calculation is in the process of being created. CREATED - The calculation has been created and is ready to run. QUEUED - The calculation has been queued for processing. RUNNING - The calculation is running. CANCELING - A request to cancel the calculation has been received and the system is working to stop it. CANCELED - The calculation is no longer running as the result of a cancel request. COMPLETED - The calculation has completed without error. FAILED - The calculation failed and is no longer running."];stateChangeReason:DescriptionString.toption[@ocaml.doc"The reason for the calculation state change (for example, the calculation was canceled because the session was terminated)."]}letmake?submissionDateTime=fun?completionDateTime->fun?state->fun?stateChangeReason->fun()->{submissionDateTime;completionDateTime;state;stateChangeReason}letto_valuex=structure_to_value[("SubmissionDateTime",(Option.mapx.submissionDateTime~f:Date.to_value));("CompletionDateTime",(Option.mapx.completionDateTime~f:Date.to_value));("State",(Option.mapx.state~f:CalculationExecutionState.to_value));("StateChangeReason",(Option.mapx.stateChangeReason~f:DescriptionString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstateChangeReason=(Option.map~f:DescriptionString.of_xml)(Xml.childxml_arg0"StateChangeReason")inletstate=(Option.map~f:CalculationExecutionState.of_xml)(Xml.childxml_arg0"State")inletcompletionDateTime=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"CompletionDateTime")inletsubmissionDateTime=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"SubmissionDateTime")inmake?stateChangeReason?state?completionDateTime?submissionDateTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstateChangeReason=field_mapjson__"StateChangeReason"DescriptionString.of_jsoninletstate=field_mapjson__"State"CalculationExecutionState.of_jsoninletcompletionDateTime=field_mapjson__"CompletionDateTime"Date.of_jsoninletsubmissionDateTime=field_mapjson__"SubmissionDateTime"Date.of_jsoninmake?stateChangeReason?state?completionDateTime?submissionDateTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about the status of a notebook calculation."]moduleCalculationSummary=structtypenonrect={calculationExecutionId:CalculationExecutionId.toption[@ocaml.doc"The calculation execution UUID."];description:DescriptionString.toption[@ocaml.doc"A description of the calculation."];status:CalculationStatus.toption[@ocaml.doc"Contains information about the status of the calculation."]}letmake?calculationExecutionId=fun?description->fun?status->fun()->{calculationExecutionId;description;status}letto_valuex=structure_to_value[("CalculationExecutionId",(Option.mapx.calculationExecutionId~f:CalculationExecutionId.to_value));("Description",(Option.mapx.description~f:DescriptionString.to_value));("Status",(Option.mapx.status~f:CalculationStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:CalculationStatus.of_xml)(Xml.childxml_arg0"Status")inletdescription=(Option.map~f:DescriptionString.of_xml)(Xml.childxml_arg0"Description")inletcalculationExecutionId=(Option.map~f:CalculationExecutionId.of_xml)(Xml.childxml_arg0"CalculationExecutionId")inmake?status?description?calculationExecutionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"CalculationStatus.of_jsoninletdescription=field_mapjson__"Description"DescriptionString.of_jsoninletcalculationExecutionId=field_mapjson__"CalculationExecutionId"CalculationExecutionId.of_jsoninmake?status?description?calculationExecutionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summary information for a notebook calculation."]moduleCalculationsList=structtypenonrect=CalculationSummary.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CalculationSummary.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:CalculationSummary.of_xml)letof_jsonj=list_of_json~kind:"CalculationsList"~of_json:CalculationSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCapacityReservationName=structtypenonrect=stringletcontext_="CapacityReservationName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9._-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CapacityReservationName"jletto_json=simple_to_jsonto_valueendmoduleCancelCapacityReservationInput=structtypenonrect={name:CapacityReservationName.t[@ocaml.doc"The name of the capacity reservation to cancel."]}letcontext_="CancelCapacityReservationInput"letmake~name=fun()->{name}letto_valuex=structure_to_value[("Name",(Some(CapacityReservationName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=CapacityReservationName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"Name"CapacityReservationName.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Cancels the capacity reservation with the specified name. Cancelled reservations remain in your account and will be deleted 45 days after cancellation. During the 45 days, you cannot re-purpose or reuse a reservation that has been cancelled, but you can refer to its tags and view it for historical reference."]moduleCancelCapacityReservationOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Cancels the capacity reservation with the specified name. Cancelled reservations remain in your account and will be deleted 45 days after cancellation. During the 45 days, you cannot re-purpose or reuse a reservation that has been cancelled, but you can refer to its tags and view it for historical reference."]moduleTimestamp=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleCapacityAllocationStatus=structtypenonrect=|PENDING|SUCCEEDED|FAILED|Non_static_idofstringletmakei=iletto_string=function|PENDING->"PENDING"|SUCCEEDED->"SUCCEEDED"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"PENDING"->PENDING|"SUCCEEDED"->SUCCEEDED|"FAILED"->FAILED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration CapacityAllocationStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CapacityAllocationStatus"j)letto_json=simple_to_jsonto_valueendmoduleCapacityAllocation=structtypenonrect={status:CapacityAllocationStatus.toption[@ocaml.doc"The status of the capacity allocation."];statusMessage:String_.toption[@ocaml.doc"The status message of the capacity allocation."];requestTime:Timestamp.toption[@ocaml.doc"The time when the capacity allocation was requested."];requestCompletionTime:Timestamp.toption[@ocaml.doc"The time when the capacity allocation request was completed."]}letmake?status=fun?statusMessage->fun?requestTime->fun?requestCompletionTime->fun()->{status;statusMessage;requestTime;requestCompletionTime}letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:CapacityAllocationStatus.to_value));("StatusMessage",(Option.mapx.statusMessage~f:String_.to_value));("RequestTime",(Option.mapx.requestTime~f:Timestamp.to_value));("RequestCompletionTime",(Option.mapx.requestCompletionTime~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrequestCompletionTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"RequestCompletionTime")inletrequestTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"RequestTime")inletstatusMessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"StatusMessage")inletstatus=(Option.map~f:CapacityAllocationStatus.of_xml)(Xml.childxml_arg0"Status")inmake?requestCompletionTime?requestTime?statusMessage?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrequestCompletionTime=field_mapjson__"RequestCompletionTime"Timestamp.of_jsoninletrequestTime=field_mapjson__"RequestTime"Timestamp.of_jsoninletstatusMessage=field_mapjson__"StatusMessage"String_.of_jsoninletstatus=field_mapjson__"Status"CapacityAllocationStatus.of_jsoninmake?requestCompletionTime?requestTime?statusMessage?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the submission time of a single allocation request for a capacity reservation and the most recent status of the attempted allocation."]moduleWorkGroupNamesList=structtypenonrect=WorkGroupName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WorkGroupName.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:WorkGroupName.of_xml)letof_jsonj=list_of_json~kind:"WorkGroupNamesList"~of_json:WorkGroupName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCapacityAssignment=structtypenonrect={workGroupNames:WorkGroupNamesList.toption[@ocaml.doc"The list of workgroup names for the capacity assignment."]}letmake?workGroupNames=fun()->{workGroupNames}letto_valuex=structure_to_value[("WorkGroupNames",(Option.mapx.workGroupNames~f:WorkGroupNamesList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkGroupNames=(Option.map~f:WorkGroupNamesList.of_xml)(Xml.childxml_arg0"WorkGroupNames")inmake?workGroupNames()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkGroupNames=field_mapjson__"WorkGroupNames"WorkGroupNamesList.of_jsoninmake?workGroupNames()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A mapping between one or more workgroups and a capacity reservation."]moduleCapacityAssignmentsList=structtypenonrect=CapacityAssignment.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CapacityAssignment.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:CapacityAssignment.of_xml)letof_jsonj=list_of_json~kind:"CapacityAssignmentsList"~of_json:CapacityAssignment.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCapacityAssignmentConfiguration=structtypenonrect={capacityReservationName:CapacityReservationName.toption[@ocaml.doc"The name of the reservation that the capacity assignment configuration is for."];capacityAssignments:CapacityAssignmentsList.toption[@ocaml.doc"The list of assignments that make up the capacity assignment configuration."]}letmake?capacityReservationName=fun?capacityAssignments->fun()->{capacityReservationName;capacityAssignments}letto_valuex=structure_to_value[("CapacityReservationName",(Option.mapx.capacityReservationName~f:CapacityReservationName.to_value));("CapacityAssignments",(Option.mapx.capacityAssignments~f:CapacityAssignmentsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcapacityAssignments=(Option.map~f:CapacityAssignmentsList.of_xml)(Xml.childxml_arg0"CapacityAssignments")inletcapacityReservationName=(Option.map~f:CapacityReservationName.of_xml)(Xml.childxml_arg0"CapacityReservationName")inmake?capacityAssignments?capacityReservationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcapacityAssignments=field_mapjson__"CapacityAssignments"CapacityAssignmentsList.of_jsoninletcapacityReservationName=field_mapjson__"CapacityReservationName"CapacityReservationName.of_jsoninmake?capacityAssignments?capacityReservationName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Assigns Athena workgroups (and hence their queries) to capacity reservations. A capacity reservation can have only one capacity assignment configuration, but the capacity assignment configuration can be made up of multiple individual assignments. Each assignment specifies how Athena queries can consume capacity from the capacity reservation that their workgroup is mapped to."]moduleTargetDpusInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:4);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 TargetDpusInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleCapacityReservationStatus=structtypenonrect=|PENDING|ACTIVE|CANCELLING|CANCELLED|FAILED|UPDATE_PENDING|Non_static_idofstringletmakei=iletto_string=function|PENDING->"PENDING"|ACTIVE->"ACTIVE"|CANCELLING->"CANCELLING"|CANCELLED->"CANCELLED"|FAILED->"FAILED"|UPDATE_PENDING->"UPDATE_PENDING"|Non_static_ids->sletof_string=function|"PENDING"->PENDING|"ACTIVE"->ACTIVE|"CANCELLING"->CANCELLING|"CANCELLED"->CANCELLED|"FAILED"->FAILED|"UPDATE_PENDING"->UPDATE_PENDING|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 CapacityReservationStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CapacityReservationStatus"j)letto_json=simple_to_jsonto_valueendmoduleCapacityReservation=structtypenonrect={name:CapacityReservationName.toption[@ocaml.doc"The name of the capacity reservation."];status:CapacityReservationStatus.toption[@ocaml.doc"The status of the capacity reservation."];targetDpus:TargetDpusInteger.toption[@ocaml.doc"The number of data processing units requested."];allocatedDpus:AllocatedDpusInteger.toption[@ocaml.doc"The number of data processing units currently allocated."];lastAllocation:CapacityAllocation.toption;lastSuccessfulAllocationTime:Timestamp.toption[@ocaml.doc"The time of the most recent capacity allocation that succeeded."];creationTime:Timestamp.toption[@ocaml.doc"The time in UTC epoch millis when the capacity reservation was created."]}letmake?name=fun?status->fun?targetDpus->fun?allocatedDpus->fun?lastAllocation->fun?lastSuccessfulAllocationTime->fun?creationTime->fun()->{name;status;targetDpus;allocatedDpus;lastAllocation;lastSuccessfulAllocationTime;creationTime}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:CapacityReservationName.to_value));("Status",(Option.mapx.status~f:CapacityReservationStatus.to_value));("TargetDpus",(Option.mapx.targetDpus~f:TargetDpusInteger.to_value));("AllocatedDpus",(Option.mapx.allocatedDpus~f:AllocatedDpusInteger.to_value));("LastAllocation",(Option.mapx.lastAllocation~f:CapacityAllocation.to_value));("LastSuccessfulAllocationTime",(Option.mapx.lastSuccessfulAllocationTime~f:Timestamp.to_value));("CreationTime",(Option.mapx.creationTime~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreationTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreationTime")inletlastSuccessfulAllocationTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastSuccessfulAllocationTime")inletlastAllocation=(Option.map~f:CapacityAllocation.of_xml)(Xml.childxml_arg0"LastAllocation")inletallocatedDpus=(Option.map~f:AllocatedDpusInteger.of_xml)(Xml.childxml_arg0"AllocatedDpus")inlettargetDpus=(Option.map~f:TargetDpusInteger.of_xml)(Xml.childxml_arg0"TargetDpus")inletstatus=(Option.map~f:CapacityReservationStatus.of_xml)(Xml.childxml_arg0"Status")inletname=(Option.map~f:CapacityReservationName.of_xml)(Xml.childxml_arg0"Name")inmake?creationTime?lastSuccessfulAllocationTime?lastAllocation?allocatedDpus?targetDpus?status?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreationTime=field_mapjson__"CreationTime"Timestamp.of_jsoninletlastSuccessfulAllocationTime=field_mapjson__"LastSuccessfulAllocationTime"Timestamp.of_jsoninletlastAllocation=field_mapjson__"LastAllocation"CapacityAllocation.of_jsoninletallocatedDpus=field_mapjson__"AllocatedDpus"AllocatedDpusInteger.of_jsoninlettargetDpus=field_mapjson__"TargetDpus"TargetDpusInteger.of_jsoninletstatus=field_mapjson__"Status"CapacityReservationStatus.of_jsoninletname=field_mapjson__"Name"CapacityReservationName.of_jsoninmake?creationTime?lastSuccessfulAllocationTime?lastAllocation?allocatedDpus?targetDpus?status?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A reservation for a specified number of data processing units (DPUs). When a reservation is initially created, it has no DPUs. Athena allocates DPUs until the allocated amount equals the requested amount."]moduleCapacityReservationsList=structtypenonrect=CapacityReservation.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CapacityReservation.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:CapacityReservation.of_xml)letof_jsonj=list_of_json~kind:"CapacityReservationsList"~of_json:CapacityReservation.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleParametersMapValue=structtypenonrect=stringletcontext_="ParametersMapValue"letmakei=letopenResultinok_or_failwith(check_string_maxi~max:51200);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ParametersMapValue"jletto_json=simple_to_jsonto_valueendmoduleKeyString=structtypenonrect=stringletcontext_="KeyString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"KeyString"jletto_json=simple_to_jsonto_valueendmoduleParametersMap=structtypenonrect=(KeyString.t*ParametersMapValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((KeyString.of_stringchopped),(ParametersMapValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(KeyString.to_valuex)|>(funx->(ParametersMapValue.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:KeyString.of_string~of_json:ParametersMapValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleClassification=structtypenonrect={name:NameString.toption[@ocaml.doc"The name of the configuration classification."];properties:ParametersMap.toption[@ocaml.doc"A set of properties specified within a configuration classification."]}letmake?name=fun?properties->fun()->{name;properties}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:NameString.to_value));("Properties",(Option.mapx.properties~f:ParametersMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letproperties=(Option.map~f:ParametersMap.of_xml)(Xml.childxml_arg0"Properties")inletname=(Option.map~f:NameString.of_xml)(Xml.childxml_arg0"Name")inmake?properties?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letproperties=field_mapjson__"Properties"ParametersMap.of_jsoninletname=field_mapjson__"Name"NameString.of_jsoninmake?properties?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A classification refers to a set of specific configurations."]moduleClassificationList=structtypenonrect=Classification.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Classification.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:Classification.of_xml)letof_jsonj=list_of_json~kind:"ClassificationList"~of_json:Classification.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleClientRequestToken=structtypenonrect=stringletcontext_="ClientRequestToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:36)>>=(fun()->check_patterni~pattern:"[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ClientRequestToken"jletto_json=simple_to_jsonto_valueendmoduleLogTypeValue=structtypenonrect=stringletcontext_="LogTypeValue"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:"LogTypeValue"jletto_json=simple_to_jsonto_valueendmoduleLogTypeValuesList=structtypenonrect=LogTypeValue.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:LogTypeValue.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:LogTypeValue.of_xml)letof_jsonj=list_of_json~kind:"LogTypeValuesList"~of_json:LogTypeValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLogTypeKey=structtypenonrect=stringletcontext_="LogTypeKey"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:"LogTypeKey"jletto_json=simple_to_jsonto_valueendmoduleLogTypesMap=structtypenonrect=(LogTypeKey.t*LogTypeValuesList.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types LogTypeKey LogTypeValuesList"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(LogTypeKey.to_valuex)|>(funx->(LogTypeValuesList.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:LogTypeKey.of_string~of_json:LogTypeValuesList.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLogStreamNamePrefix=structtypenonrect=stringletcontext_="LogStreamNamePrefix"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:512)>>=(fun()->check_patterni~pattern:"^[^:*]*$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LogStreamNamePrefix"jletto_json=simple_to_jsonto_valueendmoduleLogGroupName=structtypenonrect=stringletcontext_="LogGroupName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:512)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9._/-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LogGroupName"jletto_json=simple_to_jsonto_valueendmoduleCloudWatchLoggingConfiguration=structtypenonrect={enabled:BoxedBoolean.t[@ocaml.doc"Enables CloudWatch logging."];logGroup:LogGroupName.toption[@ocaml.doc"The name of the log group in Amazon CloudWatch Logs where you want to publish your logs."];logStreamNamePrefix:LogStreamNamePrefix.toption[@ocaml.doc"Prefix for the CloudWatch log stream name."];logTypes:LogTypesMap.toption[@ocaml.doc"The types of logs that you want to publish to CloudWatch."]}letcontext_="CloudWatchLoggingConfiguration"letmake?logGroup=fun?logStreamNamePrefix->fun?logTypes->fun~enabled->fun()->{logGroup;logStreamNamePrefix;logTypes;enabled}letto_valuex=structure_to_value[("Enabled",(Some(BoxedBoolean.to_valuex.enabled)));("LogGroup",(Option.mapx.logGroup~f:LogGroupName.to_value));("LogStreamNamePrefix",(Option.mapx.logStreamNamePrefix~f:LogStreamNamePrefix.to_value));("LogTypes",(Option.mapx.logTypes~f:LogTypesMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlogTypes=(Option.map~f:LogTypesMap.of_xml)(Xml.childxml_arg0"LogTypes")inletlogStreamNamePrefix=(Option.map~f:LogStreamNamePrefix.of_xml)(Xml.childxml_arg0"LogStreamNamePrefix")inletlogGroup=(Option.map~f:LogGroupName.of_xml)(Xml.childxml_arg0"LogGroup")inletenabled=BoxedBoolean.of_xml(Xml.child_exn~context:context_xml_arg0"Enabled")inmake?logTypes?logStreamNamePrefix?logGroup~enabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlogTypes=field_mapjson__"LogTypes"LogTypesMap.of_jsoninletlogStreamNamePrefix=field_mapjson__"LogStreamNamePrefix"LogStreamNamePrefix.of_jsoninletlogGroup=field_mapjson__"LogGroup"LogGroupName.of_jsoninletenabled=field_map_exnjson__"Enabled"BoxedBoolean.of_jsoninmake?logTypes?logStreamNamePrefix?logGroup~enabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration settings for delivering logs to Amazon CloudWatch log groups."]moduleTypeString=structtypenonrect=stringletcontext_="TypeString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:4096)>>=(fun()->check_patterni~pattern:"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TypeString"jletto_json=simple_to_jsonto_valueendmoduleCommentString=structtypenonrect=stringletcontext_="CommentString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CommentString"jletto_json=simple_to_jsonto_valueendmoduleColumn=structtypenonrect={name:NameString.toption[@ocaml.doc"The name of the column."];type_:TypeString.toption[@ocaml.doc"The data type of the column."];comment:CommentString.toption[@ocaml.doc"Optional information about the column."]}letmake?name=fun?type_->fun?comment->fun()->{name;type_;comment}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:NameString.to_value));("Type",(Option.mapx.type_~f:TypeString.to_value));("Comment",(Option.mapx.comment~f:CommentString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcomment=(Option.map~f:CommentString.of_xml)(Xml.childxml_arg0"Comment")inlettype_=(Option.map~f:TypeString.of_xml)(Xml.childxml_arg0"Type")inletname=(Option.map~f:NameString.of_xml)(Xml.childxml_arg0"Name")inmake?comment?type_?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcomment=field_mapjson__"Comment"CommentString.of_jsoninlettype_=field_mapjson__"Type"TypeString.of_jsoninletname=field_mapjson__"Name"NameString.of_jsoninmake?comment?type_?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains metadata for a column in a table."]moduleColumnNullable=structtypenonrect=|NOT_NULL|NULLABLE|UNKNOWN|Non_static_idofstringletmakei=iletto_string=function|NOT_NULL->"NOT_NULL"|NULLABLE->"NULLABLE"|UNKNOWN->"UNKNOWN"|Non_static_ids->sletof_string=function|"NOT_NULL"->NOT_NULL|"NULLABLE"->NULLABLE|"UNKNOWN"->UNKNOWN|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 ColumnNullable"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ColumnNullable"j)letto_json=simple_to_jsonto_valueendmoduleColumnInfo=structtypenonrect={catalogName:String_.toption[@ocaml.doc"The catalog to which the query results belong."];schemaName:String_.toption[@ocaml.doc"The schema name (database name) to which the query results belong."];tableName:String_.toption[@ocaml.doc"The table name for the query results."];name:String_.toption[@ocaml.doc"The name of the column."];label:String_.toption[@ocaml.doc"A column label."];type_:String_.toption[@ocaml.doc"The data type of the column."];precision:Integer.toption[@ocaml.doc"For DECIMAL data types, specifies the total number of digits, up to 38. For performance reasons, we recommend up to 18 digits."];scale:Integer.toption[@ocaml.doc"For DECIMAL data types, specifies the total number of digits in the fractional part of the value. Defaults to 0."];nullable:ColumnNullable.toption[@ocaml.doc"Unsupported constraint. This value always shows as UNKNOWN."];caseSensitive:Boolean.toption[@ocaml.doc"Indicates whether values in the column are case-sensitive."]}letmake?catalogName=fun?schemaName->fun?tableName->fun?name->fun?label->fun?type_->fun?precision->fun?scale->fun?nullable->fun?caseSensitive->fun()->{catalogName;schemaName;tableName;name;label;type_;precision;scale;nullable;caseSensitive}letto_valuex=structure_to_value[("CatalogName",(Option.mapx.catalogName~f:String_.to_value));("SchemaName",(Option.mapx.schemaName~f:String_.to_value));("TableName",(Option.mapx.tableName~f:String_.to_value));("Name",(Option.mapx.name~f:String_.to_value));("Label",(Option.mapx.label~f:String_.to_value));("Type",(Option.mapx.type_~f:String_.to_value));("Precision",(Option.mapx.precision~f:Integer.to_value));("Scale",(Option.mapx.scale~f:Integer.to_value));("Nullable",(Option.mapx.nullable~f:ColumnNullable.to_value));("CaseSensitive",(Option.mapx.caseSensitive~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcaseSensitive=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"CaseSensitive")inletnullable=(Option.map~f:ColumnNullable.of_xml)(Xml.childxml_arg0"Nullable")inletscale=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"Scale")inletprecision=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"Precision")inlettype_=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Type")inletlabel=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Label")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Name")inlettableName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"TableName")inletschemaName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"SchemaName")inletcatalogName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"CatalogName")inmake?caseSensitive?nullable?scale?precision?type_?label?name?tableName?schemaName?catalogName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcaseSensitive=field_mapjson__"CaseSensitive"Boolean.of_jsoninletnullable=field_mapjson__"Nullable"ColumnNullable.of_jsoninletscale=field_mapjson__"Scale"Integer.of_jsoninletprecision=field_mapjson__"Precision"Integer.of_jsoninlettype_=field_mapjson__"Type"String_.of_jsoninletlabel=field_mapjson__"Label"String_.of_jsoninletname=field_mapjson__"Name"String_.of_jsoninlettableName=field_mapjson__"TableName"String_.of_jsoninletschemaName=field_mapjson__"SchemaName"String_.of_jsoninletcatalogName=field_mapjson__"CatalogName"String_.of_jsoninmake?caseSensitive?nullable?scale?precision?type_?label?name?tableName?schemaName?catalogName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about the columns in a query execution result."]moduleColumnInfoList=structtypenonrect=ColumnInfo.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ColumnInfo.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:ColumnInfo.of_xml)letof_jsonj=list_of_json~kind:"ColumnInfoList"~of_json:ColumnInfo.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleColumnList=structtypenonrect=Column.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Column.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:Column.of_xml)letof_jsonj=list_of_json~kind:"ColumnList"~of_json:Column.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleConnectionType=structtypenonrect=|DYNAMODB|MYSQL|POSTGRESQL|REDSHIFT|ORACLE|SYNAPSE|SQLSERVER|DB2|OPENSEARCH|BIGQUERY|GOOGLECLOUDSTORAGE|HBASE|DOCUMENTDB|CMDB|TPCDS|TIMESTREAM|SAPHANA|SNOWFLAKE|DATALAKEGEN2|DB2AS400|Non_static_idofstringletmakei=iletto_string=function|DYNAMODB->"DYNAMODB"|MYSQL->"MYSQL"|POSTGRESQL->"POSTGRESQL"|REDSHIFT->"REDSHIFT"|ORACLE->"ORACLE"|SYNAPSE->"SYNAPSE"|SQLSERVER->"SQLSERVER"|DB2->"DB2"|OPENSEARCH->"OPENSEARCH"|BIGQUERY->"BIGQUERY"|GOOGLECLOUDSTORAGE->"GOOGLECLOUDSTORAGE"|HBASE->"HBASE"|DOCUMENTDB->"DOCUMENTDB"|CMDB->"CMDB"|TPCDS->"TPCDS"|TIMESTREAM->"TIMESTREAM"|SAPHANA->"SAPHANA"|SNOWFLAKE->"SNOWFLAKE"|DATALAKEGEN2->"DATALAKEGEN2"|DB2AS400->"DB2AS400"|Non_static_ids->sletof_string=function|"DYNAMODB"->DYNAMODB|"MYSQL"->MYSQL|"POSTGRESQL"->POSTGRESQL|"REDSHIFT"->REDSHIFT|"ORACLE"->ORACLE|"SYNAPSE"->SYNAPSE|"SQLSERVER"->SQLSERVER|"DB2"->DB2|"OPENSEARCH"->OPENSEARCH|"BIGQUERY"->BIGQUERY|"GOOGLECLOUDSTORAGE"->GOOGLECLOUDSTORAGE|"HBASE"->HBASE|"DOCUMENTDB"->DOCUMENTDB|"CMDB"->CMDB|"TPCDS"->TPCDS|"TIMESTREAM"->TIMESTREAM|"SAPHANA"->SAPHANA|"SNOWFLAKE"->SNOWFLAKE|"DATALAKEGEN2"->DATALAKEGEN2|"DB2AS400"->DB2AS400|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 ConnectionType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ConnectionType"j)letto_json=simple_to_jsonto_valueendmoduleCoordinatorDpuSize=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:1)>>=(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 CoordinatorDpuSize"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTag=structtypenonrect={key:TagKey.toption[@ocaml.doc"A tag key. The tag key length is from 1 to 128 Unicode characters in UTF-8. You can use letters and numbers representable in UTF-8, and the following characters: + - = . _ : / \\@. Tag keys are case-sensitive and must be unique per resource."];value:TagValue.toption[@ocaml.doc"A tag value. The tag value length is from 0 to 256 Unicode characters in UTF-8. You can use letters and numbers representable in UTF-8, and the following characters: + - = . _ : / \\@. Tag values are case-sensitive."]}letmake?key=fun?value->fun()->{key;value}letto_valuex=structure_to_value[("Key",(Option.mapx.key~f:TagKey.to_value));("Value",(Option.mapx.value~f:TagValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:TagValue.of_xml)(Xml.childxml_arg0"Value")inletkey=(Option.map~f:TagKey.of_xml)(Xml.childxml_arg0"Key")inmake?value?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"Value"TagValue.of_jsoninletkey=field_mapjson__"Key"TagKey.of_jsoninmake?value?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A label that you assign to a resource. Athena resources include workgroups, data catalogs, and capacity reservations. Each tag consists of a key and an optional value, both of which you define. For example, you can use tags to categorize Athena resources by purpose, owner, or environment. Use a consistent set of tag keys to make it easier to search and filter the resources in your account. For best practices, see Tagging Best Practices. Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag values can be from 0 to 256 UTF-8 Unicode characters. Tags can use letters and numbers representable in UTF-8, and the following characters: + - = . _ : / \\@. Tag keys and values are case-sensitive. Tag keys must be unique per resource. If you specify more than one tag, separate them by commas."]moduleTagList=structtypenonrect=Tag.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Tag.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Tag.of_xml)letof_jsonj=list_of_json~kind:"TagList"~of_json:Tag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCreateCapacityReservationInput=structtypenonrect={targetDpus:TargetDpusInteger.t[@ocaml.doc"The number of requested data processing units."];name:CapacityReservationName.t[@ocaml.doc"The name of the capacity reservation to create."];tags:TagList.toption[@ocaml.doc"The tags for the capacity reservation."]}letcontext_="CreateCapacityReservationInput"letmake?tags=fun~targetDpus->fun~name->fun()->{tags;targetDpus;name}letto_valuex=structure_to_value[("TargetDpus",(Some(TargetDpusInteger.to_valuex.targetDpus)));("Name",(Some(CapacityReservationName.to_valuex.name)));("Tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletname=CapacityReservationName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inlettargetDpus=TargetDpusInteger.of_xml(Xml.child_exn~context:context_xml_arg0"TargetDpus")inmake?tags~name~targetDpus()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninletname=field_map_exnjson__"Name"CapacityReservationName.of_jsoninlettargetDpus=field_map_exnjson__"TargetDpus"TargetDpusInteger.of_jsoninmake?tags~name~targetDpus()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a capacity reservation with the specified name and number of requested data processing units."]moduleCreateCapacityReservationOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a capacity reservation with the specified name and number of requested data processing units."]moduleDataCatalogType=structtypenonrect=|LAMBDA|GLUE|HIVE|FEDERATED|Non_static_idofstringletmakei=iletto_string=function|LAMBDA->"LAMBDA"|GLUE->"GLUE"|HIVE->"HIVE"|FEDERATED->"FEDERATED"|Non_static_ids->sletof_string=function|"LAMBDA"->LAMBDA|"GLUE"->GLUE|"HIVE"->HIVE|"FEDERATED"->FEDERATED|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 DataCatalogType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DataCatalogType"j)letto_json=simple_to_jsonto_valueendmoduleCreateDataCatalogInput=structtypenonrect={name:CatalogNameString.t[@ocaml.doc"The name of the data catalog to create. The catalog name must be unique for the Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of the length constraint of 256 is reserved for use by Athena. For FEDERATED type the catalog name has following considerations and limits: The catalog name allows special characters such as _ , \\@ , \\ , - . These characters are replaced with a hyphen (-) when creating the CFN Stack Name and with an underscore (_) when creating the Lambda Function and Glue Connection Name. The catalog name has a theoretical limit of 128 characters. However, since we use it to create other resources that allow less characters and we prepend a prefix to it, the actual catalog name limit for FEDERATED catalog is 64 - 23 = 41 characters."];type_:DataCatalogType.t[@ocaml.doc"The type of data catalog to create: LAMBDA for a federated catalog, GLUE for an Glue Data Catalog, and HIVE for an external Apache Hive metastore. FEDERATED is a federated catalog for which Athena creates the connection and the Lambda function for you based on the parameters that you pass. For FEDERATED type, we do not support IAM identity center."];description:DescriptionString.toption[@ocaml.doc"A description of the data catalog to be created."];parameters:ParametersMap.toption[@ocaml.doc"Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose values depend on the catalog type. For the HIVE data catalog type, use the following syntax. The metadata-function parameter is required. The sdk-version parameter is optional and defaults to the currently supported version. metadata-function=lambda_arn, sdk-version=version_number For the LAMBDA data catalog type, use one of the following sets of required parameters, but not both. If you have one Lambda function that processes metadata and another for reading the actual data, use the following syntax. Both parameters are required. metadata-function=lambda_arn, record-function=lambda_arn If you have a composite Lambda function that processes both metadata and data, use the following syntax to specify your Lambda function. function=lambda_arn The GLUE type takes a catalog ID parameter and is required. The catalog_id is the account ID of the Amazon Web Services account to which the Glue Data Catalog belongs. catalog-id=catalog_id The GLUE data catalog type also applies to the default AwsDataCatalog that already exists in your account, of which you can have only one and cannot modify. The FEDERATED data catalog type uses one of the following parameters, but not both. Use connection-arn for an existing Glue connection. Use connection-type and connection-properties to specify the configuration setting for a new connection. connection-arn:<glue_connection_arn_to_reuse> lambda-role-arn (optional): The execution role to use for the Lambda function. If not provided, one is created. connection-type:MYSQL|REDSHIFT|...., connection-properties:\"<json_string>\" For <json_string> , use escaped JSON text, as in the following example. \"\\{\\\"spill_bucket\\\":\\\"my_spill\\\",\\\"spill_prefix\\\":\\\"athena-spill\\\",\\\"host\\\":\\\"abc12345.snowflakecomputing.com\\\",\\\"port\\\":\\\"1234\\\",\\\"warehouse\\\":\\\"DEV_WH\\\",\\\"database\\\":\\\"TEST\\\",\\\"schema\\\":\\\"PUBLIC\\\",\\\"SecretArn\\\":\\\"arn:aws:secretsmanager:ap-south-1:111122223333:secret:snowflake-XHb67j\\\"\\}\""];tags:TagList.toption[@ocaml.doc"A list of comma separated tags to add to the data catalog that is created. All the resources that are created by the CreateDataCatalog API operation with FEDERATED type will have the tag federated_athena_datacatalog=\"true\". This includes the CFN Stack, Glue Connection, Athena DataCatalog, and all the resources created as part of the CFN Stack (Lambda Function, IAM policies/roles)."]}letcontext_="CreateDataCatalogInput"letmake?description=fun?parameters->fun?tags->fun~name->fun~type_->fun()->{description;parameters;tags;name;type_}letto_valuex=structure_to_value[("Name",(Some(CatalogNameString.to_valuex.name)));("Type",(Some(DataCatalogType.to_valuex.type_)));("Description",(Option.mapx.description~f:DescriptionString.to_value));("Parameters",(Option.mapx.parameters~f:ParametersMap.to_value));("Tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletparameters=(Option.map~f:ParametersMap.of_xml)(Xml.childxml_arg0"Parameters")inletdescription=(Option.map~f:DescriptionString.of_xml)(Xml.childxml_arg0"Description")inlettype_=DataCatalogType.of_xml(Xml.child_exn~context:context_xml_arg0"Type")inletname=CatalogNameString.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?tags?parameters?description~type_~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninletparameters=field_mapjson__"Parameters"ParametersMap.of_jsoninletdescription=field_mapjson__"Description"DescriptionString.of_jsoninlettype_=field_map_exnjson__"Type"DataCatalogType.of_jsoninletname=field_map_exnjson__"Name"CatalogNameString.of_jsoninmake?tags?parameters?description~type_~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates (registers) a data catalog with the specified name and properties. Catalogs created are visible to all users of the same Amazon Web Services account. For a FEDERATED catalog, this API operation creates the following resources. CFN Stack Name with a maximum length of 128 characters and prefix athenafederatedcatalog-CATALOG_NAME_SANITIZED with length 23 characters. Lambda Function Name with a maximum length of 64 characters and prefix athenafederatedcatalog_CATALOG_NAME_SANITIZED with length 23 characters. Glue Connection Name with a maximum length of 255 characters and a prefix athenafederatedcatalog_CATALOG_NAME_SANITIZED with length 23 characters."]moduleDataCatalogStatus=structtypenonrect=|CREATE_IN_PROGRESS|CREATE_COMPLETE|CREATE_FAILED|CREATE_FAILED_CLEANUP_IN_PROGRESS|CREATE_FAILED_CLEANUP_COMPLETE|CREATE_FAILED_CLEANUP_FAILED|DELETE_IN_PROGRESS|DELETE_COMPLETE|DELETE_FAILED|Non_static_idofstringletmakei=iletto_string=function|CREATE_IN_PROGRESS->"CREATE_IN_PROGRESS"|CREATE_COMPLETE->"CREATE_COMPLETE"|CREATE_FAILED->"CREATE_FAILED"|CREATE_FAILED_CLEANUP_IN_PROGRESS->"CREATE_FAILED_CLEANUP_IN_PROGRESS"|CREATE_FAILED_CLEANUP_COMPLETE->"CREATE_FAILED_CLEANUP_COMPLETE"|CREATE_FAILED_CLEANUP_FAILED->"CREATE_FAILED_CLEANUP_FAILED"|DELETE_IN_PROGRESS->"DELETE_IN_PROGRESS"|DELETE_COMPLETE->"DELETE_COMPLETE"|DELETE_FAILED->"DELETE_FAILED"|Non_static_ids->sletof_string=function|"CREATE_IN_PROGRESS"->CREATE_IN_PROGRESS|"CREATE_COMPLETE"->CREATE_COMPLETE|"CREATE_FAILED"->CREATE_FAILED|"CREATE_FAILED_CLEANUP_IN_PROGRESS"->CREATE_FAILED_CLEANUP_IN_PROGRESS|"CREATE_FAILED_CLEANUP_COMPLETE"->CREATE_FAILED_CLEANUP_COMPLETE|"CREATE_FAILED_CLEANUP_FAILED"->CREATE_FAILED_CLEANUP_FAILED|"DELETE_IN_PROGRESS"->DELETE_IN_PROGRESS|"DELETE_COMPLETE"->DELETE_COMPLETE|"DELETE_FAILED"->DELETE_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 DataCatalogStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DataCatalogStatus"j)letto_json=simple_to_jsonto_valueendmoduleDataCatalog=structtypenonrect={name:CatalogNameString.toption[@ocaml.doc"The name of the data catalog. The catalog name must be unique for the Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of the length constraint of 256 is reserved for use by Athena."];description:DescriptionString.toption[@ocaml.doc"An optional description of the data catalog."];type_:DataCatalogType.toption[@ocaml.doc"The type of data catalog to create: LAMBDA for a federated catalog, GLUE for an Glue Data Catalog, and HIVE for an external Apache Hive metastore. FEDERATED is a federated catalog for which Athena creates the connection and the Lambda function for you based on the parameters that you pass."];parameters:ParametersMap.toption[@ocaml.doc"Specifies the Lambda function or functions to use for the data catalog. This is a mapping whose values depend on the catalog type. For the HIVE data catalog type, use the following syntax. The metadata-function parameter is required. The sdk-version parameter is optional and defaults to the currently supported version. metadata-function=lambda_arn, sdk-version=version_number For the LAMBDA data catalog type, use one of the following sets of required parameters, but not both. If you have one Lambda function that processes metadata and another for reading the actual data, use the following syntax. Both parameters are required. metadata-function=lambda_arn, record-function=lambda_arn If you have a composite Lambda function that processes both metadata and data, use the following syntax to specify your Lambda function. function=lambda_arn The GLUE type takes a catalog ID parameter and is required. The catalog_id is the account ID of the Amazon Web Services account to which the Glue catalog belongs. catalog-id=catalog_id The GLUE data catalog type also applies to the default AwsDataCatalog that already exists in your account, of which you can have only one and cannot modify. The FEDERATED data catalog type uses one of the following parameters, but not both. Use connection-arn for an existing Glue connection. Use connection-type and connection-properties to specify the configuration setting for a new connection. connection-arn:<glue_connection_arn_to_reuse> connection-type:MYSQL|REDSHIFT|...., connection-properties:\"<json_string>\" For <json_string> , use escaped JSON text, as in the following example. \"\\{\\\"spill_bucket\\\":\\\"my_spill\\\",\\\"spill_prefix\\\":\\\"athena-spill\\\",\\\"host\\\":\\\"abc12345.snowflakecomputing.com\\\",\\\"port\\\":\\\"1234\\\",\\\"warehouse\\\":\\\"DEV_WH\\\",\\\"database\\\":\\\"TEST\\\",\\\"schema\\\":\\\"PUBLIC\\\",\\\"SecretArn\\\":\\\"arn:aws:secretsmanager:ap-south-1:111122223333:secret:snowflake-XHb67j\\\"\\}\""];status:DataCatalogStatus.toption[@ocaml.doc"The status of the creation or deletion of the data catalog. The LAMBDA, GLUE, and HIVE data catalog types are created synchronously. Their status is either CREATE_COMPLETE or CREATE_FAILED. The FEDERATED data catalog type is created asynchronously. Data catalog creation status: CREATE_IN_PROGRESS: Federated data catalog creation in progress. CREATE_COMPLETE: Data catalog creation complete. CREATE_FAILED: Data catalog could not be created. CREATE_FAILED_CLEANUP_IN_PROGRESS: Federated data catalog creation failed and is being removed. CREATE_FAILED_CLEANUP_COMPLETE: Federated data catalog creation failed and was removed. CREATE_FAILED_CLEANUP_FAILED: Federated data catalog creation failed but could not be removed. Data catalog deletion status: DELETE_IN_PROGRESS: Federated data catalog deletion in progress. DELETE_COMPLETE: Federated data catalog deleted. DELETE_FAILED: Federated data catalog could not be deleted."];connectionType:ConnectionType.toption[@ocaml.doc"The type of connection for a FEDERATED data catalog (for example, REDSHIFT, MYSQL, or SQLSERVER). For information about individual connectors, see Available data source connectors."];error:ErrorMessage.toption[@ocaml.doc"Text of the error that occurred during data catalog creation or deletion."]}letmake?name=fun?description->fun?type_->fun?parameters->fun?status->fun?connectionType->fun?error->fun()->{name;description;type_;parameters;status;connectionType;error}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:CatalogNameString.to_value));("Description",(Option.mapx.description~f:DescriptionString.to_value));("Type",(Option.mapx.type_~f:DataCatalogType.to_value));("Parameters",(Option.mapx.parameters~f:ParametersMap.to_value));("Status",(Option.mapx.status~f:DataCatalogStatus.to_value));("ConnectionType",(Option.mapx.connectionType~f:ConnectionType.to_value));("Error",(Option.mapx.error~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterror=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Error")inletconnectionType=(Option.map~f:ConnectionType.of_xml)(Xml.childxml_arg0"ConnectionType")inletstatus=(Option.map~f:DataCatalogStatus.of_xml)(Xml.childxml_arg0"Status")inletparameters=(Option.map~f:ParametersMap.of_xml)(Xml.childxml_arg0"Parameters")inlettype_=(Option.map~f:DataCatalogType.of_xml)(Xml.childxml_arg0"Type")inletdescription=(Option.map~f:DescriptionString.of_xml)(Xml.childxml_arg0"Description")inletname=(Option.map~f:CatalogNameString.of_xml)(Xml.childxml_arg0"Name")inmake?error?connectionType?status?parameters?type_?description?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterror=field_mapjson__"Error"ErrorMessage.of_jsoninletconnectionType=field_mapjson__"ConnectionType"ConnectionType.of_jsoninletstatus=field_mapjson__"Status"DataCatalogStatus.of_jsoninletparameters=field_mapjson__"Parameters"ParametersMap.of_jsoninlettype_=field_mapjson__"Type"DataCatalogType.of_jsoninletdescription=field_mapjson__"Description"DescriptionString.of_jsoninletname=field_mapjson__"Name"CatalogNameString.of_jsoninmake?error?connectionType?status?parameters?type_?description?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about a data catalog in an Amazon Web Services account. In the Athena console, data catalogs are listed as \"data sources\" on the Data sources page under the Data source name column."]moduleCreateDataCatalogOutput=structtypenonrect={dataCatalog:DataCatalog.toption}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?dataCatalog=fun()->{dataCatalog}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("DataCatalog",(Option.mapx.dataCatalog~f:DataCatalog.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataCatalog=(Option.map~f:DataCatalog.of_xml)(Xml.childxml_arg0"DataCatalog")inmake?dataCatalog()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataCatalog=field_mapjson__"DataCatalog"DataCatalog.of_jsoninmake?dataCatalog()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates (registers) a data catalog with the specified name and properties. Catalogs created are visible to all users of the same Amazon Web Services account. For a FEDERATED catalog, this API operation creates the following resources. CFN Stack Name with a maximum length of 128 characters and prefix athenafederatedcatalog-CATALOG_NAME_SANITIZED with length 23 characters. Lambda Function Name with a maximum length of 64 characters and prefix athenafederatedcatalog_CATALOG_NAME_SANITIZED with length 23 characters. Glue Connection Name with a maximum length of 255 characters and a prefix athenafederatedcatalog_CATALOG_NAME_SANITIZED with length 23 characters."]moduleIdempotencyToken=structtypenonrect=stringletcontext_="IdempotencyToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:32));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IdempotencyToken"jletto_json=simple_to_jsonto_valueendmoduleCreateNamedQueryInput=structtypenonrect={name:NameString.t[@ocaml.doc"The query name."];description:DescriptionString.toption[@ocaml.doc"The query description."];database:DatabaseString.t[@ocaml.doc"The database to which the query belongs."];queryString:QueryString.t[@ocaml.doc"The contents of the query with all query statements."];clientRequestToken:IdempotencyToken.toption[@ocaml.doc"A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If another CreateNamedQuery request is received, the same response is returned and another query is not created. If a parameter has changed, for example, the QueryString, an error is returned. This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail."];workGroup:WorkGroupName.toption[@ocaml.doc"The name of the workgroup in which the named query is being created."]}letcontext_="CreateNamedQueryInput"letmake?description=fun?clientRequestToken->fun?workGroup->fun~name->fun~database->fun~queryString->fun()->{description;clientRequestToken;workGroup;name;database;queryString}letto_valuex=structure_to_value[("Name",(Some(NameString.to_valuex.name)));("Description",(Option.mapx.description~f:DescriptionString.to_value));("Database",(Some(DatabaseString.to_valuex.database)));("QueryString",(Some(QueryString.to_valuex.queryString)));("ClientRequestToken",(Option.mapx.clientRequestToken~f:IdempotencyToken.to_value));("WorkGroup",(Option.mapx.workGroup~f:WorkGroupName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkGroup=(Option.map~f:WorkGroupName.of_xml)(Xml.childxml_arg0"WorkGroup")inletclientRequestToken=(Option.map~f:IdempotencyToken.of_xml)(Xml.childxml_arg0"ClientRequestToken")inletqueryString=QueryString.of_xml(Xml.child_exn~context:context_xml_arg0"QueryString")inletdatabase=DatabaseString.of_xml(Xml.child_exn~context:context_xml_arg0"Database")inletdescription=(Option.map~f:DescriptionString.of_xml)(Xml.childxml_arg0"Description")inletname=NameString.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?workGroup?clientRequestToken~queryString~database?description~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkGroup=field_mapjson__"WorkGroup"WorkGroupName.of_jsoninletclientRequestToken=field_mapjson__"ClientRequestToken"IdempotencyToken.of_jsoninletqueryString=field_map_exnjson__"QueryString"QueryString.of_jsoninletdatabase=field_map_exnjson__"Database"DatabaseString.of_jsoninletdescription=field_mapjson__"Description"DescriptionString.of_jsoninletname=field_map_exnjson__"Name"NameString.of_jsoninmake?workGroup?clientRequestToken~queryString~database?description~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a named query in the specified workgroup. Requires that you have access to the workgroup."]moduleCreateNamedQueryOutput=structtypenonrect={namedQueryId:NamedQueryId.toption[@ocaml.doc"The unique ID of the query."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?namedQueryId=fun()->{namedQueryId}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NamedQueryId",(Option.mapx.namedQueryId~f:NamedQueryId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnamedQueryId=(Option.map~f:NamedQueryId.of_xml)(Xml.childxml_arg0"NamedQueryId")inmake?namedQueryId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnamedQueryId=field_mapjson__"NamedQueryId"NamedQueryId.of_jsoninmake?namedQueryId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a named query in the specified workgroup. Requires that you have access to the workgroup."]moduleNotebookName=structtypenonrect=stringletcontext_="NotebookName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"(?!.*[/:\\\\])[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NotebookName"jletto_json=simple_to_jsonto_valueendmoduleCreateNotebookInput=structtypenonrect={workGroup:WorkGroupName.t[@ocaml.doc"The name of the Spark enabled workgroup in which the notebook will be created."];name:NotebookName.t[@ocaml.doc"The name of the ipynb file to be created in the Spark workgroup, without the .ipynb extension."];clientRequestToken:ClientRequestToken.toption[@ocaml.doc"A unique case-sensitive string used to ensure the request to create the notebook is idempotent (executes only once). This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for you. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail."]}letcontext_="CreateNotebookInput"letmake?clientRequestToken=fun~workGroup->fun~name->fun()->{clientRequestToken;workGroup;name}letto_valuex=structure_to_value[("WorkGroup",(Some(WorkGroupName.to_valuex.workGroup)));("Name",(Some(NotebookName.to_valuex.name)));("ClientRequestToken",(Option.mapx.clientRequestToken~f:ClientRequestToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientRequestToken=(Option.map~f:ClientRequestToken.of_xml)(Xml.childxml_arg0"ClientRequestToken")inletname=NotebookName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inletworkGroup=WorkGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"WorkGroup")inmake?clientRequestToken~name~workGroup()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientRequestToken=field_mapjson__"ClientRequestToken"ClientRequestToken.of_jsoninletname=field_map_exnjson__"Name"NotebookName.of_jsoninletworkGroup=field_map_exnjson__"WorkGroup"WorkGroupName.of_jsoninmake?clientRequestToken~name~workGroup()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an empty ipynb file in the specified Apache Spark enabled workgroup. Throws an error if a file in the workgroup with the same name already exists."]moduleThrottleReason=structtypenonrect=|CONCURRENT_QUERY_LIMIT_EXCEEDED|Non_static_idofstringletmakei=iletto_string=function|CONCURRENT_QUERY_LIMIT_EXCEEDED->"CONCURRENT_QUERY_LIMIT_EXCEEDED"|Non_static_ids->sletof_string=function|"CONCURRENT_QUERY_LIMIT_EXCEEDED"->CONCURRENT_QUERY_LIMIT_EXCEEDED|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 ThrottleReason"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ThrottleReason"j)letto_json=simple_to_jsonto_valueendmoduleTooManyRequestsException=structtypenonrect={message:ErrorMessage.toption;reason:ThrottleReason.toption}letmake?message=fun?reason->fun()->{message;reason}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value));("Reason",(Option.mapx.reason~f:ThrottleReason.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreason=(Option.map~f:ThrottleReason.of_xml)(Xml.childxml_arg0"Reason")inletmessage=(Option.map~f:ErrorMessage.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"ThrottleReason.of_jsoninletmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?reason?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates that the request was throttled."]moduleNotebookId=structtypenonrect=stringletcontext_="NotebookId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:36)>>=(fun()->check_patterni~pattern:"[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NotebookId"jletto_json=simple_to_jsonto_valueendmoduleCreateNotebookOutput=structtypenonrect={notebookId:NotebookId.toption[@ocaml.doc"A unique identifier for the notebook."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?notebookId=fun()->{notebookId}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NotebookId",(Option.mapx.notebookId~f:NotebookId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnotebookId=(Option.map~f:NotebookId.of_xml)(Xml.childxml_arg0"NotebookId")inmake?notebookId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnotebookId=field_mapjson__"NotebookId"NotebookId.of_jsoninmake?notebookId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an empty ipynb file in the specified Apache Spark enabled workgroup. Throws an error if a file in the workgroup with the same name already exists."]moduleCreatePreparedStatementInput=structtypenonrect={statementName:StatementName.t[@ocaml.doc"The name of the prepared statement."];workGroup:WorkGroupName.t[@ocaml.doc"The name of the workgroup to which the prepared statement belongs."];queryStatement:QueryString.t[@ocaml.doc"The query string for the prepared statement."];description:DescriptionString.toption[@ocaml.doc"The description of the prepared statement."]}letcontext_="CreatePreparedStatementInput"letmake?description=fun~statementName->fun~workGroup->fun~queryStatement->fun()->{description;statementName;workGroup;queryStatement}letto_valuex=structure_to_value[("StatementName",(Some(StatementName.to_valuex.statementName)));("WorkGroup",(Some(WorkGroupName.to_valuex.workGroup)));("QueryStatement",(Some(QueryString.to_valuex.queryStatement)));("Description",(Option.mapx.description~f:DescriptionString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdescription=(Option.map~f:DescriptionString.of_xml)(Xml.childxml_arg0"Description")inletqueryStatement=QueryString.of_xml(Xml.child_exn~context:context_xml_arg0"QueryStatement")inletworkGroup=WorkGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"WorkGroup")inletstatementName=StatementName.of_xml(Xml.child_exn~context:context_xml_arg0"StatementName")inmake?description~queryStatement~workGroup~statementName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdescription=field_mapjson__"Description"DescriptionString.of_jsoninletqueryStatement=field_map_exnjson__"QueryStatement"QueryString.of_jsoninletworkGroup=field_map_exnjson__"WorkGroup"WorkGroupName.of_jsoninletstatementName=field_map_exnjson__"StatementName"StatementName.of_jsoninmake?description~queryStatement~workGroup~statementName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a prepared statement for use with SQL queries in Athena."]moduleCreatePreparedStatementOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a prepared statement for use with SQL queries in Athena."]moduleSessionId=structtypenonrect=stringletcontext_="SessionId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(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:"SessionId"jletto_json=simple_to_jsonto_valueendmoduleCreatePresignedNotebookUrlRequest=structtypenonrect={sessionId:SessionId.t[@ocaml.doc"The session ID."]}letcontext_="CreatePresignedNotebookUrlRequest"letmake~sessionId=fun()->{sessionId}letto_valuex=structure_to_value[("SessionId",(Some(SessionId.to_valuex.sessionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionId=SessionId.of_xml(Xml.child_exn~context:context_xml_arg0"SessionId")inmake~sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionId=field_map_exnjson__"SessionId"SessionId.of_jsoninmake~sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets an authentication token and the URL at which the notebook can be accessed. During programmatic access, CreatePresignedNotebookUrl must be called every 10 minutes to refresh the authentication token. For information about granting programmatic access, see Grant programmatic access."]moduleResourceNotFoundException=structtypenonrect={message:ErrorMessage.toption;resourceName:AmazonResourceName.toption[@ocaml.doc"The name of the Amazon resource."]}letmake?message=fun?resourceName->fun()->{message;resourceName}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value));("ResourceName",(Option.mapx.resourceName~f:AmazonResourceName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceName=(Option.map~f:AmazonResourceName.of_xml)(Xml.childxml_arg0"ResourceName")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?resourceName?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceName=field_mapjson__"ResourceName"AmazonResourceName.of_jsoninletmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?resourceName?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A resource, such as a workgroup, was not found."]moduleCreatePresignedNotebookUrlResponse=structtypenonrect={notebookUrl:String_.toption[@ocaml.doc"The URL of the notebook. The URL includes the authentication token and notebook file name and points directly to the opened notebook."];authToken:AuthToken.toption[@ocaml.doc"The authentication token for the notebook."];authTokenExpirationTime:Long.toption[@ocaml.doc"The UTC epoch time when the authentication token expires."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?notebookUrl=fun?authToken->fun?authTokenExpirationTime->fun()->{notebookUrl;authToken;authTokenExpirationTime}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NotebookUrl",(Option.mapx.notebookUrl~f:String_.to_value));("AuthToken",(Option.mapx.authToken~f:AuthToken.to_value));("AuthTokenExpirationTime",(Option.mapx.authTokenExpirationTime~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthTokenExpirationTime=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"AuthTokenExpirationTime")inletauthToken=(Option.map~f:AuthToken.of_xml)(Xml.childxml_arg0"AuthToken")inletnotebookUrl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NotebookUrl")inmake?authTokenExpirationTime?authToken?notebookUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthTokenExpirationTime=field_mapjson__"AuthTokenExpirationTime"Long.of_jsoninletauthToken=field_mapjson__"AuthToken"AuthToken.of_jsoninletnotebookUrl=field_mapjson__"NotebookUrl"String_.of_jsoninmake?authTokenExpirationTime?authToken?notebookUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets an authentication token and the URL at which the notebook can be accessed. During programmatic access, CreatePresignedNotebookUrl must be called every 10 minutes to refresh the authentication token. For information about granting programmatic access, see Grant programmatic access."]moduleWorkGroupDescriptionString=structtypenonrect=stringletcontext_="WorkGroupDescriptionString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"WorkGroupDescriptionString"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_valueendmoduleS3OutputLocation=structtypenonrect=stringletcontext_="S3OutputLocation"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:"^s3://[a-z0-9][a-z0-9\\-]*[a-z0-9](/.*)?$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"S3OutputLocation"jletto_json=simple_to_jsonto_valueendmoduleS3LoggingConfiguration=structtypenonrect={enabled:BoxedBoolean.t[@ocaml.doc"Enables S3 log delivery."];kmsKey:KmsKey.toption[@ocaml.doc"The KMS key ARN to encrypt the logs published to the given Amazon S3 destination."];logLocation:S3OutputLocation.toption[@ocaml.doc"The Amazon S3 destination URI for log publishing."]}letcontext_="S3LoggingConfiguration"letmake?kmsKey=fun?logLocation->fun~enabled->fun()->{kmsKey;logLocation;enabled}letto_valuex=structure_to_value[("Enabled",(Some(BoxedBoolean.to_valuex.enabled)));("KmsKey",(Option.mapx.kmsKey~f:KmsKey.to_value));("LogLocation",(Option.mapx.logLocation~f:S3OutputLocation.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlogLocation=(Option.map~f:S3OutputLocation.of_xml)(Xml.childxml_arg0"LogLocation")inletkmsKey=(Option.map~f:KmsKey.of_xml)(Xml.childxml_arg0"KmsKey")inletenabled=BoxedBoolean.of_xml(Xml.child_exn~context:context_xml_arg0"Enabled")inmake?logLocation?kmsKey~enabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlogLocation=field_mapjson__"LogLocation"S3OutputLocation.of_jsoninletkmsKey=field_mapjson__"KmsKey"KmsKey.of_jsoninletenabled=field_map_exnjson__"Enabled"BoxedBoolean.of_jsoninmake?logLocation?kmsKey~enabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration settings for delivering logs to Amazon S3 buckets."]moduleManagedLoggingConfiguration=structtypenonrect={enabled:BoxedBoolean.t[@ocaml.doc"Enables mamanged log persistence."];kmsKey:KmsKey.toption[@ocaml.doc"The KMS key ARN to encrypt the logs stored in managed log persistence."]}letcontext_="ManagedLoggingConfiguration"letmake?kmsKey=fun~enabled->fun()->{kmsKey;enabled}letto_valuex=structure_to_value[("Enabled",(Some(BoxedBoolean.to_valuex.enabled)));("KmsKey",(Option.mapx.kmsKey~f:KmsKey.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkmsKey=(Option.map~f:KmsKey.of_xml)(Xml.childxml_arg0"KmsKey")inletenabled=BoxedBoolean.of_xml(Xml.child_exn~context:context_xml_arg0"Enabled")inmake?kmsKey~enabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkmsKey=field_mapjson__"KmsKey"KmsKey.of_jsoninletenabled=field_map_exnjson__"Enabled"BoxedBoolean.of_jsoninmake?kmsKey~enabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration settings for delivering logs to Amazon S3 buckets."]moduleMonitoringConfiguration=structtypenonrect={cloudWatchLoggingConfiguration:CloudWatchLoggingConfiguration.toption[@ocaml.doc"Configuration settings for delivering logs to Amazon CloudWatch log groups."];managedLoggingConfiguration:ManagedLoggingConfiguration.toption[@ocaml.doc"Configuration settings for managed log persistence."];s3LoggingConfiguration:S3LoggingConfiguration.toption[@ocaml.doc"Configuration settings for delivering logs to Amazon S3 buckets."]}letmake?cloudWatchLoggingConfiguration=fun?managedLoggingConfiguration->fun?s3LoggingConfiguration->fun()->{cloudWatchLoggingConfiguration;managedLoggingConfiguration;s3LoggingConfiguration}letto_valuex=structure_to_value[("CloudWatchLoggingConfiguration",(Option.mapx.cloudWatchLoggingConfiguration~f:CloudWatchLoggingConfiguration.to_value));("ManagedLoggingConfiguration",(Option.mapx.managedLoggingConfiguration~f:ManagedLoggingConfiguration.to_value));("S3LoggingConfiguration",(Option.mapx.s3LoggingConfiguration~f:S3LoggingConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3LoggingConfiguration=(Option.map~f:S3LoggingConfiguration.of_xml)(Xml.childxml_arg0"S3LoggingConfiguration")inletmanagedLoggingConfiguration=(Option.map~f:ManagedLoggingConfiguration.of_xml)(Xml.childxml_arg0"ManagedLoggingConfiguration")inletcloudWatchLoggingConfiguration=(Option.map~f:CloudWatchLoggingConfiguration.of_xml)(Xml.childxml_arg0"CloudWatchLoggingConfiguration")inmake?s3LoggingConfiguration?managedLoggingConfiguration?cloudWatchLoggingConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3LoggingConfiguration=field_mapjson__"S3LoggingConfiguration"S3LoggingConfiguration.of_jsoninletmanagedLoggingConfiguration=field_mapjson__"ManagedLoggingConfiguration"ManagedLoggingConfiguration.of_jsoninletcloudWatchLoggingConfiguration=field_mapjson__"CloudWatchLoggingConfiguration"CloudWatchLoggingConfiguration.of_jsoninmake?s3LoggingConfiguration?managedLoggingConfiguration?cloudWatchLoggingConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the configuration settings for managed log persistence, delivering logs to Amazon S3 buckets, Amazon CloudWatch log groups etc."]moduleIdentityCenterInstanceArn=structtypenonrect=stringletcontext_="IdentityCenterInstanceArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b):sso:::instance/(sso)?ins-[a-zA-Z0-9-.]{16}$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IdentityCenterInstanceArn"jletto_json=simple_to_jsonto_valueendmoduleIdentityCenterConfiguration=structtypenonrect={enableIdentityCenter:BoxedBoolean.toption[@ocaml.doc"Specifies whether the workgroup is IAM Identity Center supported."];identityCenterInstanceArn:IdentityCenterInstanceArn.toption[@ocaml.doc"The IAM Identity Center instance ARN that the workgroup associates to."]}letmake?enableIdentityCenter=fun?identityCenterInstanceArn->fun()->{enableIdentityCenter;identityCenterInstanceArn}letto_valuex=structure_to_value[("EnableIdentityCenter",(Option.mapx.enableIdentityCenter~f:BoxedBoolean.to_value));("IdentityCenterInstanceArn",(Option.mapx.identityCenterInstanceArn~f:IdentityCenterInstanceArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentityCenterInstanceArn=(Option.map~f:IdentityCenterInstanceArn.of_xml)(Xml.childxml_arg0"IdentityCenterInstanceArn")inletenableIdentityCenter=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"EnableIdentityCenter")inmake?identityCenterInstanceArn?enableIdentityCenter()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentityCenterInstanceArn=field_mapjson__"IdentityCenterInstanceArn"IdentityCenterInstanceArn.of_jsoninletenableIdentityCenter=field_mapjson__"EnableIdentityCenter"BoxedBoolean.of_jsoninmake?identityCenterInstanceArn?enableIdentityCenter()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies whether the workgroup is IAM Identity Center supported."]moduleMaxConcurrentDpus=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:5000)>>=(fun()->check_int_mini~min:2));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 MaxConcurrentDpus"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleDefaultExecutorDpuSize=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:1)>>=(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 DefaultExecutorDpuSize"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleEngineConfiguration=structtypenonrect={coordinatorDpuSize:CoordinatorDpuSize.toption[@ocaml.doc"The number of DPUs to use for the coordinator. A coordinator is a special executor that orchestrates processing work and manages other executors in a notebook session. The default is 1."];maxConcurrentDpus:MaxConcurrentDpus.toption[@ocaml.doc"The maximum number of DPUs that can run concurrently."];defaultExecutorDpuSize:DefaultExecutorDpuSize.toption[@ocaml.doc"The default number of DPUs to use for executors. An executor is the smallest unit of compute that a notebook session can request from Athena. The default is 1."];additionalConfigs:ParametersMap.toption[@ocaml.doc"Contains additional notebook engine MAP<string, string> parameter mappings in the form of key-value pairs. To specify an Athena notebook that the Jupyter server will download and serve, specify a value for the StartSessionRequest$NotebookVersion field, and then add a key named NotebookId to AdditionalConfigs that has the value of the Athena notebook ID."];sparkProperties:ParametersMap.toption[@ocaml.doc"Specifies custom jar files and Spark properties for use cases like cluster encryption, table formats, and general Spark tuning."];classifications:ClassificationList.toption[@ocaml.doc"The configuration classifications that can be specified for the engine."]}letmake?coordinatorDpuSize=fun?maxConcurrentDpus->fun?defaultExecutorDpuSize->fun?additionalConfigs->fun?sparkProperties->fun?classifications->fun()->{coordinatorDpuSize;maxConcurrentDpus;defaultExecutorDpuSize;additionalConfigs;sparkProperties;classifications}letto_valuex=structure_to_value[("CoordinatorDpuSize",(Option.mapx.coordinatorDpuSize~f:CoordinatorDpuSize.to_value));("MaxConcurrentDpus",(Option.mapx.maxConcurrentDpus~f:MaxConcurrentDpus.to_value));("DefaultExecutorDpuSize",(Option.mapx.defaultExecutorDpuSize~f:DefaultExecutorDpuSize.to_value));("AdditionalConfigs",(Option.mapx.additionalConfigs~f:ParametersMap.to_value));("SparkProperties",(Option.mapx.sparkProperties~f:ParametersMap.to_value));("Classifications",(Option.mapx.classifications~f:ClassificationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclassifications=(Option.map~f:ClassificationList.of_xml)(Xml.childxml_arg0"Classifications")inletsparkProperties=(Option.map~f:ParametersMap.of_xml)(Xml.childxml_arg0"SparkProperties")inletadditionalConfigs=(Option.map~f:ParametersMap.of_xml)(Xml.childxml_arg0"AdditionalConfigs")inletdefaultExecutorDpuSize=(Option.map~f:DefaultExecutorDpuSize.of_xml)(Xml.childxml_arg0"DefaultExecutorDpuSize")inletmaxConcurrentDpus=(Option.map~f:MaxConcurrentDpus.of_xml)(Xml.childxml_arg0"MaxConcurrentDpus")inletcoordinatorDpuSize=(Option.map~f:CoordinatorDpuSize.of_xml)(Xml.childxml_arg0"CoordinatorDpuSize")inmake?classifications?sparkProperties?additionalConfigs?defaultExecutorDpuSize?maxConcurrentDpus?coordinatorDpuSize()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclassifications=field_mapjson__"Classifications"ClassificationList.of_jsoninletsparkProperties=field_mapjson__"SparkProperties"ParametersMap.of_jsoninletadditionalConfigs=field_mapjson__"AdditionalConfigs"ParametersMap.of_jsoninletdefaultExecutorDpuSize=field_mapjson__"DefaultExecutorDpuSize"DefaultExecutorDpuSize.of_jsoninletmaxConcurrentDpus=field_mapjson__"MaxConcurrentDpus"MaxConcurrentDpus.of_jsoninletcoordinatorDpuSize=field_mapjson__"CoordinatorDpuSize"CoordinatorDpuSize.of_jsoninmake?classifications?sparkProperties?additionalConfigs?defaultExecutorDpuSize?maxConcurrentDpus?coordinatorDpuSize()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The engine configuration for the workgroup, which includes the minimum/maximum number of Data Processing Units (DPU) that queries should use when running in provisioned capacity. If not specified, Athena uses default values (Default value for min is 4 and for max is Minimum of 124 and allocated DPUs). To specify DPU values for PC queries the WG containing EngineConfiguration should have the following values: The name of the Classifications should be athena-query-engine-properties, with the only allowed properties as max-dpu-count and min-dpu-count."]moduleCustomerContentEncryptionConfiguration=structtypenonrect={kmsKey:KmsKey.t[@ocaml.doc"The customer managed KMS key that is used to encrypt the user's data stores in Athena."]}letcontext_="CustomerContentEncryptionConfiguration"letmake~kmsKey=fun()->{kmsKey}letto_valuex=structure_to_value[("KmsKey",(Some(KmsKey.to_valuex.kmsKey)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkmsKey=KmsKey.of_xml(Xml.child_exn~context:context_xml_arg0"KmsKey")inmake~kmsKey()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkmsKey=field_map_exnjson__"KmsKey"KmsKey.of_jsoninmake~kmsKey()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the customer managed KMS key that is used to encrypt the user's data stores in Athena. When an Amazon Web Services managed key is used, this value is null. This setting does not apply to Athena SQL workgroups."]moduleWorkGroupConfiguration=structtypenonrect={resultConfiguration:ResultConfiguration.toption[@ocaml.doc"The configuration for the workgroup, which includes the location in Amazon S3 where query and calculation results are stored and the encryption option, if any, used for query and calculation results. To run the query, you must specify the query results location using one of the ways: either in the workgroup using this setting, or for individual queries (client-side), using ResultConfiguration$OutputLocation. If none of them is set, Athena issues an error that no output location is provided."];managedQueryResultsConfiguration:ManagedQueryResultsConfiguration.toption[@ocaml.doc"The configuration for storing results in Athena owned storage, which includes whether this feature is enabled; whether encryption configuration, if any, is used for encrypting query results."];enforceWorkGroupConfiguration:BoxedBoolean.toption[@ocaml.doc"If set to \"true\", the settings for the workgroup override client-side settings. If set to \"false\", client-side settings are used. This property is not required for Apache Spark enabled workgroups. For more information, see Workgroup Settings Override Client-Side Settings."];publishCloudWatchMetricsEnabled:BoxedBoolean.toption[@ocaml.doc"Indicates that the Amazon CloudWatch metrics are enabled for the workgroup."];bytesScannedCutoffPerQuery:BytesScannedCutoffValue.toption[@ocaml.doc"The upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan."];requesterPaysEnabled:BoxedBoolean.toption[@ocaml.doc"If set to true, allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set to false, workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is false. For more information about Requester Pays buckets, see Requester Pays Buckets in the Amazon Simple Storage Service Developer Guide."];engineVersion:EngineVersion.toption[@ocaml.doc"The engine version that all queries running on the workgroup use. Queries on the AmazonAthenaPreviewFunctionality workgroup run on the preview engine regardless of this setting."];additionalConfiguration:NameString.toption[@ocaml.doc"Specifies a user defined JSON string that is passed to the notebook engine."];executionRole:RoleArn.toption[@ocaml.doc"The ARN of the execution role used to access user resources for Spark sessions and IAM Identity Center enabled workgroups. This property applies only to Spark enabled workgroups and IAM Identity Center enabled workgroups. The property is required for IAM Identity Center enabled workgroups."];monitoringConfiguration:MonitoringConfiguration.toption[@ocaml.doc"Contains the configuration settings for managed log persistence, delivering logs to Amazon S3 buckets, Amazon CloudWatch log groups etc."];engineConfiguration:EngineConfiguration.toption;customerContentEncryptionConfiguration:CustomerContentEncryptionConfiguration.toption[@ocaml.doc"Specifies the KMS key that is used to encrypt the user's data stores in Athena. This setting does not apply to Athena SQL workgroups."];enableMinimumEncryptionConfiguration:BoxedBoolean.toption[@ocaml.doc"Enforces a minimal level of encryption for the workgroup for query and calculation results that are written to Amazon S3. When enabled, workgroup users can set encryption only to the minimum level set by the administrator or higher when they submit queries. The EnforceWorkGroupConfiguration setting takes precedence over the EnableMinimumEncryptionConfiguration flag. This means that if EnforceWorkGroupConfiguration is true, the EnableMinimumEncryptionConfiguration flag is ignored, and the workgroup configuration for encryption is used."];identityCenterConfiguration:IdentityCenterConfiguration.toption[@ocaml.doc"Specifies whether the workgroup is IAM Identity Center supported."];queryResultsS3AccessGrantsConfiguration:QueryResultsS3AccessGrantsConfiguration.toption[@ocaml.doc"Specifies whether Amazon S3 access grants are enabled for query results."]}letmake?resultConfiguration=fun?managedQueryResultsConfiguration->fun?enforceWorkGroupConfiguration->fun?publishCloudWatchMetricsEnabled->fun?bytesScannedCutoffPerQuery->fun?requesterPaysEnabled->fun?engineVersion->fun?additionalConfiguration->fun?executionRole->fun?monitoringConfiguration->fun?engineConfiguration->fun?customerContentEncryptionConfiguration->fun?enableMinimumEncryptionConfiguration->fun?identityCenterConfiguration->fun?queryResultsS3AccessGrantsConfiguration->fun()->{resultConfiguration;managedQueryResultsConfiguration;enforceWorkGroupConfiguration;publishCloudWatchMetricsEnabled;bytesScannedCutoffPerQuery;requesterPaysEnabled;engineVersion;additionalConfiguration;executionRole;monitoringConfiguration;engineConfiguration;customerContentEncryptionConfiguration;enableMinimumEncryptionConfiguration;identityCenterConfiguration;queryResultsS3AccessGrantsConfiguration}letto_valuex=structure_to_value[("ResultConfiguration",(Option.mapx.resultConfiguration~f:ResultConfiguration.to_value));("ManagedQueryResultsConfiguration",(Option.mapx.managedQueryResultsConfiguration~f:ManagedQueryResultsConfiguration.to_value));("EnforceWorkGroupConfiguration",(Option.mapx.enforceWorkGroupConfiguration~f:BoxedBoolean.to_value));("PublishCloudWatchMetricsEnabled",(Option.mapx.publishCloudWatchMetricsEnabled~f:BoxedBoolean.to_value));("BytesScannedCutoffPerQuery",(Option.mapx.bytesScannedCutoffPerQuery~f:BytesScannedCutoffValue.to_value));("RequesterPaysEnabled",(Option.mapx.requesterPaysEnabled~f:BoxedBoolean.to_value));("EngineVersion",(Option.mapx.engineVersion~f:EngineVersion.to_value));("AdditionalConfiguration",(Option.mapx.additionalConfiguration~f:NameString.to_value));("ExecutionRole",(Option.mapx.executionRole~f:RoleArn.to_value));("MonitoringConfiguration",(Option.mapx.monitoringConfiguration~f:MonitoringConfiguration.to_value));("EngineConfiguration",(Option.mapx.engineConfiguration~f:EngineConfiguration.to_value));("CustomerContentEncryptionConfiguration",(Option.mapx.customerContentEncryptionConfiguration~f:CustomerContentEncryptionConfiguration.to_value));("EnableMinimumEncryptionConfiguration",(Option.mapx.enableMinimumEncryptionConfiguration~f:BoxedBoolean.to_value));("IdentityCenterConfiguration",(Option.mapx.identityCenterConfiguration~f:IdentityCenterConfiguration.to_value));("QueryResultsS3AccessGrantsConfiguration",(Option.mapx.queryResultsS3AccessGrantsConfiguration~f:QueryResultsS3AccessGrantsConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueryResultsS3AccessGrantsConfiguration=(Option.map~f:QueryResultsS3AccessGrantsConfiguration.of_xml)(Xml.childxml_arg0"QueryResultsS3AccessGrantsConfiguration")inletidentityCenterConfiguration=(Option.map~f:IdentityCenterConfiguration.of_xml)(Xml.childxml_arg0"IdentityCenterConfiguration")inletenableMinimumEncryptionConfiguration=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"EnableMinimumEncryptionConfiguration")inletcustomerContentEncryptionConfiguration=(Option.map~f:CustomerContentEncryptionConfiguration.of_xml)(Xml.childxml_arg0"CustomerContentEncryptionConfiguration")inletengineConfiguration=(Option.map~f:EngineConfiguration.of_xml)(Xml.childxml_arg0"EngineConfiguration")inletmonitoringConfiguration=(Option.map~f:MonitoringConfiguration.of_xml)(Xml.childxml_arg0"MonitoringConfiguration")inletexecutionRole=(Option.map~f:RoleArn.of_xml)(Xml.childxml_arg0"ExecutionRole")inletadditionalConfiguration=(Option.map~f:NameString.of_xml)(Xml.childxml_arg0"AdditionalConfiguration")inletengineVersion=(Option.map~f:EngineVersion.of_xml)(Xml.childxml_arg0"EngineVersion")inletrequesterPaysEnabled=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"RequesterPaysEnabled")inletbytesScannedCutoffPerQuery=(Option.map~f:BytesScannedCutoffValue.of_xml)(Xml.childxml_arg0"BytesScannedCutoffPerQuery")inletpublishCloudWatchMetricsEnabled=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"PublishCloudWatchMetricsEnabled")inletenforceWorkGroupConfiguration=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"EnforceWorkGroupConfiguration")inletmanagedQueryResultsConfiguration=(Option.map~f:ManagedQueryResultsConfiguration.of_xml)(Xml.childxml_arg0"ManagedQueryResultsConfiguration")inletresultConfiguration=(Option.map~f:ResultConfiguration.of_xml)(Xml.childxml_arg0"ResultConfiguration")inmake?queryResultsS3AccessGrantsConfiguration?identityCenterConfiguration?enableMinimumEncryptionConfiguration?customerContentEncryptionConfiguration?engineConfiguration?monitoringConfiguration?executionRole?additionalConfiguration?engineVersion?requesterPaysEnabled?bytesScannedCutoffPerQuery?publishCloudWatchMetricsEnabled?enforceWorkGroupConfiguration?managedQueryResultsConfiguration?resultConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueryResultsS3AccessGrantsConfiguration=field_mapjson__"QueryResultsS3AccessGrantsConfiguration"QueryResultsS3AccessGrantsConfiguration.of_jsoninletidentityCenterConfiguration=field_mapjson__"IdentityCenterConfiguration"IdentityCenterConfiguration.of_jsoninletenableMinimumEncryptionConfiguration=field_mapjson__"EnableMinimumEncryptionConfiguration"BoxedBoolean.of_jsoninletcustomerContentEncryptionConfiguration=field_mapjson__"CustomerContentEncryptionConfiguration"CustomerContentEncryptionConfiguration.of_jsoninletengineConfiguration=field_mapjson__"EngineConfiguration"EngineConfiguration.of_jsoninletmonitoringConfiguration=field_mapjson__"MonitoringConfiguration"MonitoringConfiguration.of_jsoninletexecutionRole=field_mapjson__"ExecutionRole"RoleArn.of_jsoninletadditionalConfiguration=field_mapjson__"AdditionalConfiguration"NameString.of_jsoninletengineVersion=field_mapjson__"EngineVersion"EngineVersion.of_jsoninletrequesterPaysEnabled=field_mapjson__"RequesterPaysEnabled"BoxedBoolean.of_jsoninletbytesScannedCutoffPerQuery=field_mapjson__"BytesScannedCutoffPerQuery"BytesScannedCutoffValue.of_jsoninletpublishCloudWatchMetricsEnabled=field_mapjson__"PublishCloudWatchMetricsEnabled"BoxedBoolean.of_jsoninletenforceWorkGroupConfiguration=field_mapjson__"EnforceWorkGroupConfiguration"BoxedBoolean.of_jsoninletmanagedQueryResultsConfiguration=field_mapjson__"ManagedQueryResultsConfiguration"ManagedQueryResultsConfiguration.of_jsoninletresultConfiguration=field_mapjson__"ResultConfiguration"ResultConfiguration.of_jsoninmake?queryResultsS3AccessGrantsConfiguration?identityCenterConfiguration?enableMinimumEncryptionConfiguration?customerContentEncryptionConfiguration?engineConfiguration?monitoringConfiguration?executionRole?additionalConfiguration?engineVersion?requesterPaysEnabled?bytesScannedCutoffPerQuery?publishCloudWatchMetricsEnabled?enforceWorkGroupConfiguration?managedQueryResultsConfiguration?resultConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The configuration of the workgroup, which includes the location in Amazon S3 where query and calculation results are stored, the encryption option, if any, used for query and calculation results, whether the Amazon CloudWatch Metrics are enabled for the workgroup and whether workgroup settings override query settings, and the data usage limits for the amount of data scanned per query or per workgroup. The workgroup settings override is specified in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See WorkGroupConfiguration$EnforceWorkGroupConfiguration."]moduleCreateWorkGroupInput=structtypenonrect={name:WorkGroupName.t[@ocaml.doc"The workgroup name."];configuration:WorkGroupConfiguration.toption[@ocaml.doc"Contains configuration information for creating an Athena SQL workgroup or Spark enabled Athena workgroup. Athena SQL workgroup configuration includes the location in Amazon S3 where query and calculation results are stored, the encryption configuration, if any, used for encrypting query results, whether the Amazon CloudWatch Metrics are enabled for the workgroup, the limit for the amount of bytes scanned (cutoff) per query, if it is specified, and whether workgroup's settings (specified with EnforceWorkGroupConfiguration) in the WorkGroupConfiguration override client-side settings. See WorkGroupConfiguration$EnforceWorkGroupConfiguration."];description:WorkGroupDescriptionString.toption[@ocaml.doc"The workgroup description."];tags:TagList.toption[@ocaml.doc"A list of comma separated tags to add to the workgroup that is created."]}letcontext_="CreateWorkGroupInput"letmake?configuration=fun?description->fun?tags->fun~name->fun()->{configuration;description;tags;name}letto_valuex=structure_to_value[("Name",(Some(WorkGroupName.to_valuex.name)));("Configuration",(Option.mapx.configuration~f:WorkGroupConfiguration.to_value));("Description",(Option.mapx.description~f:WorkGroupDescriptionString.to_value));("Tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletdescription=(Option.map~f:WorkGroupDescriptionString.of_xml)(Xml.childxml_arg0"Description")inletconfiguration=(Option.map~f:WorkGroupConfiguration.of_xml)(Xml.childxml_arg0"Configuration")inletname=WorkGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?tags?description?configuration~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninletdescription=field_mapjson__"Description"WorkGroupDescriptionString.of_jsoninletconfiguration=field_mapjson__"Configuration"WorkGroupConfiguration.of_jsoninletname=field_map_exnjson__"Name"WorkGroupName.of_jsoninmake?tags?description?configuration~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a workgroup with the specified name. A workgroup can be an Apache Spark enabled workgroup or an Athena SQL workgroup."]moduleCreateWorkGroupOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a workgroup with the specified name. A workgroup can be an Apache Spark enabled workgroup or an Athena SQL workgroup."]moduleDataCatalogSummary=structtypenonrect={catalogName:CatalogNameString.toption[@ocaml.doc"The name of the data catalog. The catalog name is unique for the Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of the length constraint of 256 is reserved for use by Athena."];type_:DataCatalogType.toption[@ocaml.doc"The data catalog type."];status:DataCatalogStatus.toption[@ocaml.doc"The status of the creation or deletion of the data catalog. The LAMBDA, GLUE, and HIVE data catalog types are created synchronously. Their status is either CREATE_COMPLETE or CREATE_FAILED. The FEDERATED data catalog type is created asynchronously. Data catalog creation status: CREATE_IN_PROGRESS: Federated data catalog creation in progress. CREATE_COMPLETE: Data catalog creation complete. CREATE_FAILED: Data catalog could not be created. CREATE_FAILED_CLEANUP_IN_PROGRESS: Federated data catalog creation failed and is being removed. CREATE_FAILED_CLEANUP_COMPLETE: Federated data catalog creation failed and was removed. CREATE_FAILED_CLEANUP_FAILED: Federated data catalog creation failed but could not be removed. Data catalog deletion status: DELETE_IN_PROGRESS: Federated data catalog deletion in progress. DELETE_COMPLETE: Federated data catalog deleted. DELETE_FAILED: Federated data catalog could not be deleted."];connectionType:ConnectionType.toption[@ocaml.doc"The type of connection for a FEDERATED data catalog (for example, REDSHIFT, MYSQL, or SQLSERVER). For information about individual connectors, see Available data source connectors."];error:ErrorMessage.toption[@ocaml.doc"Text of the error that occurred during data catalog creation or deletion."]}letmake?catalogName=fun?type_->fun?status->fun?connectionType->fun?error->fun()->{catalogName;type_;status;connectionType;error}letto_valuex=structure_to_value[("CatalogName",(Option.mapx.catalogName~f:CatalogNameString.to_value));("Type",(Option.mapx.type_~f:DataCatalogType.to_value));("Status",(Option.mapx.status~f:DataCatalogStatus.to_value));("ConnectionType",(Option.mapx.connectionType~f:ConnectionType.to_value));("Error",(Option.mapx.error~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterror=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Error")inletconnectionType=(Option.map~f:ConnectionType.of_xml)(Xml.childxml_arg0"ConnectionType")inletstatus=(Option.map~f:DataCatalogStatus.of_xml)(Xml.childxml_arg0"Status")inlettype_=(Option.map~f:DataCatalogType.of_xml)(Xml.childxml_arg0"Type")inletcatalogName=(Option.map~f:CatalogNameString.of_xml)(Xml.childxml_arg0"CatalogName")inmake?error?connectionType?status?type_?catalogName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterror=field_mapjson__"Error"ErrorMessage.of_jsoninletconnectionType=field_mapjson__"ConnectionType"ConnectionType.of_jsoninletstatus=field_mapjson__"Status"DataCatalogStatus.of_jsoninlettype_=field_mapjson__"Type"DataCatalogType.of_jsoninletcatalogName=field_mapjson__"CatalogName"CatalogNameString.of_jsoninmake?error?connectionType?status?type_?catalogName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The summary information for the data catalog, which includes its name and type."]moduleDataCatalogSummaryList=structtypenonrect=DataCatalogSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DataCatalogSummary.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:DataCatalogSummary.of_xml)letof_jsonj=list_of_json~kind:"DataCatalogSummaryList"~of_json:DataCatalogSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDatabase=structtypenonrect={name:NameString.toption[@ocaml.doc"The name of the database."];description:DescriptionString.toption[@ocaml.doc"An optional description of the database."];parameters:ParametersMap.toption[@ocaml.doc"A set of custom key/value pairs."]}letmake?name=fun?description->fun?parameters->fun()->{name;description;parameters}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:NameString.to_value));("Description",(Option.mapx.description~f:DescriptionString.to_value));("Parameters",(Option.mapx.parameters~f:ParametersMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letparameters=(Option.map~f:ParametersMap.of_xml)(Xml.childxml_arg0"Parameters")inletdescription=(Option.map~f:DescriptionString.of_xml)(Xml.childxml_arg0"Description")inletname=(Option.map~f:NameString.of_xml)(Xml.childxml_arg0"Name")inmake?parameters?description?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letparameters=field_mapjson__"Parameters"ParametersMap.of_jsoninletdescription=field_mapjson__"Description"DescriptionString.of_jsoninletname=field_mapjson__"Name"NameString.of_jsoninmake?parameters?description?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains metadata information for a database in a data catalog."]moduleDatabaseList=structtypenonrect=Database.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Database.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:Database.of_xml)letof_jsonj=list_of_json~kind:"DatabaseList"~of_json:Database.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDatumString=structtypenonrect=stringletcontext_="datumString"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:"datumString"jletto_json=simple_to_jsonto_valueendmoduleDatum=structtypenonrect={varCharValue:DatumString.toption[@ocaml.doc"The value of the datum."]}letmake?varCharValue=fun()->{varCharValue}letto_valuex=structure_to_value[("VarCharValue",(Option.mapx.varCharValue~f:DatumString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvarCharValue=(Option.map~f:DatumString.of_xml)(Xml.childxml_arg0"VarCharValue")inmake?varCharValue()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvarCharValue=field_mapjson__"VarCharValue"DatumString.of_jsoninmake?varCharValue()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A piece of data (a field in the table)."]moduleDeleteCapacityReservationInput=structtypenonrect={name:CapacityReservationName.t[@ocaml.doc"The name of the capacity reservation to delete."]}letcontext_="DeleteCapacityReservationInput"letmake~name=fun()->{name}letto_valuex=structure_to_value[("Name",(Some(CapacityReservationName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=CapacityReservationName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"Name"CapacityReservationName.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a cancelled capacity reservation. A reservation must be cancelled before it can be deleted. A deleted reservation is immediately removed from your account and can no longer be referenced, including by its ARN. A deleted reservation cannot be called by GetCapacityReservation, and deleted reservations do not appear in the output of ListCapacityReservations."]moduleDeleteCapacityReservationOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a cancelled capacity reservation. A reservation must be cancelled before it can be deleted. A deleted reservation is immediately removed from your account and can no longer be referenced, including by its ARN. A deleted reservation cannot be called by GetCapacityReservation, and deleted reservations do not appear in the output of ListCapacityReservations."]moduleDeleteDataCatalogInput=structtypenonrect={name:CatalogNameString.t[@ocaml.doc"The name of the data catalog to delete."];deleteCatalogOnly:Boolean.toption[@ocaml.doc"Deletes the Athena Data Catalog. You can only use this with the FEDERATED catalogs. You usually perform this before registering the connector with Glue Data Catalog. After deletion, you will have to manage the Glue Connection and Lambda function."]}letcontext_="DeleteDataCatalogInput"letmake?deleteCatalogOnly=fun~name->fun()->{deleteCatalogOnly;name}letto_valuex=structure_to_value[("Name",(Some(CatalogNameString.to_valuex.name)));("DeleteCatalogOnly",(Option.mapx.deleteCatalogOnly~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeleteCatalogOnly=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"DeleteCatalogOnly")inletname=CatalogNameString.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?deleteCatalogOnly~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeleteCatalogOnly=field_mapjson__"DeleteCatalogOnly"Boolean.of_jsoninletname=field_map_exnjson__"Name"CatalogNameString.of_jsoninmake?deleteCatalogOnly~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a data catalog."]moduleDeleteDataCatalogOutput=structtypenonrect={dataCatalog:DataCatalog.toption}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?dataCatalog=fun()->{dataCatalog}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("DataCatalog",(Option.mapx.dataCatalog~f:DataCatalog.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataCatalog=(Option.map~f:DataCatalog.of_xml)(Xml.childxml_arg0"DataCatalog")inmake?dataCatalog()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataCatalog=field_mapjson__"DataCatalog"DataCatalog.of_jsoninmake?dataCatalog()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a data catalog."]moduleDeleteNamedQueryInput=structtypenonrect={namedQueryId:NamedQueryId.t[@ocaml.doc"The unique ID of the query to delete."]}letcontext_="DeleteNamedQueryInput"letmake~namedQueryId=fun()->{namedQueryId}letto_valuex=structure_to_value[("NamedQueryId",(Some(NamedQueryId.to_valuex.namedQueryId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnamedQueryId=NamedQueryId.of_xml(Xml.child_exn~context:context_xml_arg0"NamedQueryId")inmake~namedQueryId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnamedQueryId=field_map_exnjson__"NamedQueryId"NamedQueryId.of_jsoninmake~namedQueryId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the named query if you have access to the workgroup in which the query was saved."]moduleDeleteNamedQueryOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the named query if you have access to the workgroup in which the query was saved."]moduleDeleteNotebookInput=structtypenonrect={notebookId:NotebookId.t[@ocaml.doc"The ID of the notebook to delete."]}letcontext_="DeleteNotebookInput"letmake~notebookId=fun()->{notebookId}letto_valuex=structure_to_value[("NotebookId",(Some(NotebookId.to_valuex.notebookId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnotebookId=NotebookId.of_xml(Xml.child_exn~context:context_xml_arg0"NotebookId")inmake~notebookId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnotebookId=field_map_exnjson__"NotebookId"NotebookId.of_jsoninmake~notebookId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified notebook."]moduleDeleteNotebookOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified notebook."]moduleDeletePreparedStatementInput=structtypenonrect={statementName:StatementName.t[@ocaml.doc"The name of the prepared statement to delete."];workGroup:WorkGroupName.t[@ocaml.doc"The workgroup to which the statement to be deleted belongs."]}letcontext_="DeletePreparedStatementInput"letmake~statementName=fun~workGroup->fun()->{statementName;workGroup}letto_valuex=structure_to_value[("StatementName",(Some(StatementName.to_valuex.statementName)));("WorkGroup",(Some(WorkGroupName.to_valuex.workGroup)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkGroup=WorkGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"WorkGroup")inletstatementName=StatementName.of_xml(Xml.child_exn~context:context_xml_arg0"StatementName")inmake~workGroup~statementName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkGroup=field_map_exnjson__"WorkGroup"WorkGroupName.of_jsoninletstatementName=field_map_exnjson__"StatementName"StatementName.of_jsoninmake~workGroup~statementName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the prepared statement with the specified name from the specified workgroup."]moduleDeletePreparedStatementOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the prepared statement with the specified name from the specified workgroup."]moduleDeleteWorkGroupInput=structtypenonrect={workGroup:WorkGroupName.t[@ocaml.doc"The unique name of the workgroup to delete."];recursiveDeleteOption:BoxedBoolean.toption[@ocaml.doc"The option to delete the workgroup and its contents even if the workgroup contains any named queries, query executions, or notebooks."]}letcontext_="DeleteWorkGroupInput"letmake?recursiveDeleteOption=fun~workGroup->fun()->{recursiveDeleteOption;workGroup}letto_valuex=structure_to_value[("WorkGroup",(Some(WorkGroupName.to_valuex.workGroup)));("RecursiveDeleteOption",(Option.mapx.recursiveDeleteOption~f:BoxedBoolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecursiveDeleteOption=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"RecursiveDeleteOption")inletworkGroup=WorkGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"WorkGroup")inmake?recursiveDeleteOption~workGroup()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecursiveDeleteOption=field_mapjson__"RecursiveDeleteOption"BoxedBoolean.of_jsoninletworkGroup=field_map_exnjson__"WorkGroup"WorkGroupName.of_jsoninmake?recursiveDeleteOption~workGroup()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the workgroup with the specified name. The primary workgroup cannot be deleted."]moduleDeleteWorkGroupOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the workgroup with the specified name. The primary workgroup cannot be deleted."]moduleEngineVersionsList=structtypenonrect=EngineVersion.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EngineVersion.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:EngineVersion.of_xml)letof_jsonj=list_of_json~kind:"EngineVersionsList"~of_json:EngineVersion.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleExecutorId=structtypenonrect=stringletcontext_="ExecutorId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100000)>>=(fun()->check_patterni~pattern:".*"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ExecutorId"jletto_json=simple_to_jsonto_valueendmoduleExecutorState=structtypenonrect=|CREATING|CREATED|REGISTERED|TERMINATING|TERMINATED|FAILED|Non_static_idofstringletmakei=iletto_string=function|CREATING->"CREATING"|CREATED->"CREATED"|REGISTERED->"REGISTERED"|TERMINATING->"TERMINATING"|TERMINATED->"TERMINATED"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"CREATING"->CREATING|"CREATED"->CREATED|"REGISTERED"->REGISTERED|"TERMINATING"->TERMINATING|"TERMINATED"->TERMINATED|"FAILED"->FAILED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ExecutorState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ExecutorState"j)letto_json=simple_to_jsonto_valueendmoduleExecutorType=structtypenonrect=|COORDINATOR|GATEWAY|WORKER|Non_static_idofstringletmakei=iletto_string=function|COORDINATOR->"COORDINATOR"|GATEWAY->"GATEWAY"|WORKER->"WORKER"|Non_static_ids->sletof_string=function|"COORDINATOR"->COORDINATOR|"GATEWAY"->GATEWAY|"WORKER"->WORKER|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 ExecutorType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ExecutorType"j)letto_json=simple_to_jsonto_valueendmoduleExecutorsSummary=structtypenonrect={executorId:ExecutorId.toption[@ocaml.doc"The UUID of the executor."];executorType:ExecutorType.toption[@ocaml.doc"The type of executor used for the application (COORDINATOR, GATEWAY, or WORKER)."];startDateTime:Long.toption[@ocaml.doc"The date and time that the executor started."];terminationDateTime:Long.toption[@ocaml.doc"The date and time that the executor was terminated."];executorState:ExecutorState.toption[@ocaml.doc"The processing state of the executor. A description of each state follows. CREATING - The executor is being started, including acquiring resources. CREATED - The executor has been started. REGISTERED - The executor has been registered. TERMINATING - The executor is in the process of shutting down. TERMINATED - The executor is no longer running. FAILED - Due to a failure, the executor is no longer running."];executorSize:Long.toption[@ocaml.doc"The smallest unit of compute that a session can request from Athena. Size is measured in data processing unit (DPU) values, a relative measure of processing power."]}letmake?executorId=fun?executorType->fun?startDateTime->fun?terminationDateTime->fun?executorState->fun?executorSize->fun()->{executorId;executorType;startDateTime;terminationDateTime;executorState;executorSize}letto_valuex=structure_to_value[("ExecutorId",(Option.mapx.executorId~f:ExecutorId.to_value));("ExecutorType",(Option.mapx.executorType~f:ExecutorType.to_value));("StartDateTime",(Option.mapx.startDateTime~f:Long.to_value));("TerminationDateTime",(Option.mapx.terminationDateTime~f:Long.to_value));("ExecutorState",(Option.mapx.executorState~f:ExecutorState.to_value));("ExecutorSize",(Option.mapx.executorSize~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexecutorSize=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"ExecutorSize")inletexecutorState=(Option.map~f:ExecutorState.of_xml)(Xml.childxml_arg0"ExecutorState")inletterminationDateTime=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"TerminationDateTime")inletstartDateTime=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"StartDateTime")inletexecutorType=(Option.map~f:ExecutorType.of_xml)(Xml.childxml_arg0"ExecutorType")inletexecutorId=(Option.map~f:ExecutorId.of_xml)(Xml.childxml_arg0"ExecutorId")inmake?executorSize?executorState?terminationDateTime?startDateTime?executorType?executorId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexecutorSize=field_mapjson__"ExecutorSize"Long.of_jsoninletexecutorState=field_mapjson__"ExecutorState"ExecutorState.of_jsoninletterminationDateTime=field_mapjson__"TerminationDateTime"Long.of_jsoninletstartDateTime=field_mapjson__"StartDateTime"Long.of_jsoninletexecutorType=field_mapjson__"ExecutorType"ExecutorType.of_jsoninletexecutorId=field_mapjson__"ExecutorId"ExecutorId.of_jsoninmake?executorSize?executorState?terminationDateTime?startDateTime?executorType?executorId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains summary information about an executor."]moduleExecutorsSummaryList=structtypenonrect=ExecutorsSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ExecutorsSummary.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:ExecutorsSummary.of_xml)letof_jsonj=list_of_json~kind:"ExecutorsSummaryList"~of_json:ExecutorsSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleExportNotebookInput=structtypenonrect={notebookId:NotebookId.t[@ocaml.doc"The ID of the notebook to export."]}letcontext_="ExportNotebookInput"letmake~notebookId=fun()->{notebookId}letto_valuex=structure_to_value[("NotebookId",(Some(NotebookId.to_valuex.notebookId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnotebookId=NotebookId.of_xml(Xml.child_exn~context:context_xml_arg0"NotebookId")inmake~notebookId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnotebookId=field_map_exnjson__"NotebookId"NotebookId.of_jsoninmake~notebookId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Exports the specified notebook and its metadata."]modulePayload=structtypenonrect=stringletcontext_="Payload"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:10485760)>>=(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:"Payload"jletto_json=simple_to_jsonto_valueendmoduleNotebookType=structtypenonrect=|IPYNB|Non_static_idofstringletmakei=iletto_string=function|IPYNB->"IPYNB"|Non_static_ids->sletof_string=function|"IPYNB"->IPYNB|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 NotebookType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"NotebookType"j)letto_json=simple_to_jsonto_valueendmoduleNotebookMetadata=structtypenonrect={notebookId:NotebookId.toption[@ocaml.doc"The notebook ID."];name:NotebookName.toption[@ocaml.doc"The name of the notebook."];workGroup:WorkGroupName.toption[@ocaml.doc"The name of the Spark enabled workgroup to which the notebook belongs."];creationTime:Date.toption[@ocaml.doc"The time when the notebook was created."];type_:NotebookType.toption[@ocaml.doc"The type of notebook. Currently, the only valid type is IPYNB."];lastModifiedTime:Date.toption[@ocaml.doc"The time when the notebook was last modified."]}letmake?notebookId=fun?name->fun?workGroup->fun?creationTime->fun?type_->fun?lastModifiedTime->fun()->{notebookId;name;workGroup;creationTime;type_;lastModifiedTime}letto_valuex=structure_to_value[("NotebookId",(Option.mapx.notebookId~f:NotebookId.to_value));("Name",(Option.mapx.name~f:NotebookName.to_value));("WorkGroup",(Option.mapx.workGroup~f:WorkGroupName.to_value));("CreationTime",(Option.mapx.creationTime~f:Date.to_value));("Type",(Option.mapx.type_~f:NotebookType.to_value));("LastModifiedTime",(Option.mapx.lastModifiedTime~f:Date.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastModifiedTime=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"LastModifiedTime")inlettype_=(Option.map~f:NotebookType.of_xml)(Xml.childxml_arg0"Type")inletcreationTime=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"CreationTime")inletworkGroup=(Option.map~f:WorkGroupName.of_xml)(Xml.childxml_arg0"WorkGroup")inletname=(Option.map~f:NotebookName.of_xml)(Xml.childxml_arg0"Name")inletnotebookId=(Option.map~f:NotebookId.of_xml)(Xml.childxml_arg0"NotebookId")inmake?lastModifiedTime?type_?creationTime?workGroup?name?notebookId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastModifiedTime=field_mapjson__"LastModifiedTime"Date.of_jsoninlettype_=field_mapjson__"Type"NotebookType.of_jsoninletcreationTime=field_mapjson__"CreationTime"Date.of_jsoninletworkGroup=field_mapjson__"WorkGroup"WorkGroupName.of_jsoninletname=field_mapjson__"Name"NotebookName.of_jsoninletnotebookId=field_mapjson__"NotebookId"NotebookId.of_jsoninmake?lastModifiedTime?type_?creationTime?workGroup?name?notebookId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains metadata for notebook, including the notebook name, ID, workgroup, and time created."]moduleExportNotebookOutput=structtypenonrect={notebookMetadata:NotebookMetadata.toption[@ocaml.doc"The notebook metadata, including notebook ID, notebook name, and workgroup name."];payload:Payload.toption[@ocaml.doc"The content of the exported notebook."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?notebookMetadata=fun?payload->fun()->{notebookMetadata;payload}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NotebookMetadata",(Option.mapx.notebookMetadata~f:NotebookMetadata.to_value));("Payload",(Option.mapx.payload~f:Payload.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpayload=(Option.map~f:Payload.of_xml)(Xml.childxml_arg0"Payload")inletnotebookMetadata=(Option.map~f:NotebookMetadata.of_xml)(Xml.childxml_arg0"NotebookMetadata")inmake?payload?notebookMetadata()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpayload=field_mapjson__"Payload"Payload.of_jsoninletnotebookMetadata=field_mapjson__"NotebookMetadata"NotebookMetadata.of_jsoninmake?payload?notebookMetadata()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Exports the specified notebook and its metadata."]moduleExpressionString=structtypenonrect=stringletcontext_="ExpressionString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ExpressionString"jletto_json=simple_to_jsonto_valueendmoduleFilterDefinition=structtypenonrect={name:NotebookName.toption[@ocaml.doc"The name of the notebook to search for."]}letmake?name=fun()->{name}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:NotebookName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=(Option.map~f:NotebookName.of_xml)(Xml.childxml_arg0"Name")inmake?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_mapjson__"Name"NotebookName.of_jsoninmake?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A string for searching notebook names."]moduleGetCalculationExecutionCodeRequest=structtypenonrect={calculationExecutionId:CalculationExecutionId.t[@ocaml.doc"The calculation execution UUID."]}letcontext_="GetCalculationExecutionCodeRequest"letmake~calculationExecutionId=fun()->{calculationExecutionId}letto_valuex=structure_to_value[("CalculationExecutionId",(Some(CalculationExecutionId.to_valuex.calculationExecutionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcalculationExecutionId=CalculationExecutionId.of_xml(Xml.child_exn~context:context_xml_arg0"CalculationExecutionId")inmake~calculationExecutionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcalculationExecutionId=field_map_exnjson__"CalculationExecutionId"CalculationExecutionId.of_jsoninmake~calculationExecutionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the unencrypted code that was executed for the calculation."]moduleGetCalculationExecutionCodeResponse=structtypenonrect={codeBlock:CodeBlock.toption[@ocaml.doc"The unencrypted code that was executed for the calculation."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?codeBlock=fun()->{codeBlock}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("CodeBlock",(Option.mapx.codeBlock~f:CodeBlock.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcodeBlock=(Option.map~f:CodeBlock.of_xml)(Xml.childxml_arg0"CodeBlock")inmake?codeBlock()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcodeBlock=field_mapjson__"CodeBlock"CodeBlock.of_jsoninmake?codeBlock()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the unencrypted code that was executed for the calculation."]moduleGetCalculationExecutionRequest=structtypenonrect={calculationExecutionId:CalculationExecutionId.t[@ocaml.doc"The calculation execution UUID."]}letcontext_="GetCalculationExecutionRequest"letmake~calculationExecutionId=fun()->{calculationExecutionId}letto_valuex=structure_to_value[("CalculationExecutionId",(Some(CalculationExecutionId.to_valuex.calculationExecutionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcalculationExecutionId=CalculationExecutionId.of_xml(Xml.child_exn~context:context_xml_arg0"CalculationExecutionId")inmake~calculationExecutionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcalculationExecutionId=field_map_exnjson__"CalculationExecutionId"CalculationExecutionId.of_jsoninmake~calculationExecutionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a previously submitted calculation execution."]moduleGetCalculationExecutionResponse=structtypenonrect={calculationExecutionId:CalculationExecutionId.toption[@ocaml.doc"The calculation execution UUID."];sessionId:SessionId.toption[@ocaml.doc"The session ID that the calculation ran in."];description:DescriptionString.toption[@ocaml.doc"The description of the calculation execution."];workingDirectory:S3Uri.toption[@ocaml.doc"The Amazon S3 location in which calculation results are stored."];status:CalculationStatus.toption[@ocaml.doc"Contains information about the status of the calculation."];statistics:CalculationStatistics.toption[@ocaml.doc"Contains information about the data processing unit (DPU) execution time and progress. This field is populated only when statistics are available."];result:CalculationResult.toption[@ocaml.doc"Contains result information. This field is populated only if the calculation is completed."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?calculationExecutionId=fun?sessionId->fun?description->fun?workingDirectory->fun?status->fun?statistics->fun?result->fun()->{calculationExecutionId;sessionId;description;workingDirectory;status;statistics;result}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("CalculationExecutionId",(Option.mapx.calculationExecutionId~f:CalculationExecutionId.to_value));("SessionId",(Option.mapx.sessionId~f:SessionId.to_value));("Description",(Option.mapx.description~f:DescriptionString.to_value));("WorkingDirectory",(Option.mapx.workingDirectory~f:S3Uri.to_value));("Status",(Option.mapx.status~f:CalculationStatus.to_value));("Statistics",(Option.mapx.statistics~f:CalculationStatistics.to_value));("Result",(Option.mapx.result~f:CalculationResult.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresult=(Option.map~f:CalculationResult.of_xml)(Xml.childxml_arg0"Result")inletstatistics=(Option.map~f:CalculationStatistics.of_xml)(Xml.childxml_arg0"Statistics")inletstatus=(Option.map~f:CalculationStatus.of_xml)(Xml.childxml_arg0"Status")inletworkingDirectory=(Option.map~f:S3Uri.of_xml)(Xml.childxml_arg0"WorkingDirectory")inletdescription=(Option.map~f:DescriptionString.of_xml)(Xml.childxml_arg0"Description")inletsessionId=(Option.map~f:SessionId.of_xml)(Xml.childxml_arg0"SessionId")inletcalculationExecutionId=(Option.map~f:CalculationExecutionId.of_xml)(Xml.childxml_arg0"CalculationExecutionId")inmake?result?statistics?status?workingDirectory?description?sessionId?calculationExecutionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresult=field_mapjson__"Result"CalculationResult.of_jsoninletstatistics=field_mapjson__"Statistics"CalculationStatistics.of_jsoninletstatus=field_mapjson__"Status"CalculationStatus.of_jsoninletworkingDirectory=field_mapjson__"WorkingDirectory"S3Uri.of_jsoninletdescription=field_mapjson__"Description"DescriptionString.of_jsoninletsessionId=field_mapjson__"SessionId"SessionId.of_jsoninletcalculationExecutionId=field_mapjson__"CalculationExecutionId"CalculationExecutionId.of_jsoninmake?result?statistics?status?workingDirectory?description?sessionId?calculationExecutionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a previously submitted calculation execution."]moduleGetCalculationExecutionStatusRequest=structtypenonrect={calculationExecutionId:CalculationExecutionId.t[@ocaml.doc"The calculation execution UUID."]}letcontext_="GetCalculationExecutionStatusRequest"letmake~calculationExecutionId=fun()->{calculationExecutionId}letto_valuex=structure_to_value[("CalculationExecutionId",(Some(CalculationExecutionId.to_valuex.calculationExecutionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcalculationExecutionId=CalculationExecutionId.of_xml(Xml.child_exn~context:context_xml_arg0"CalculationExecutionId")inmake~calculationExecutionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcalculationExecutionId=field_map_exnjson__"CalculationExecutionId"CalculationExecutionId.of_jsoninmake~calculationExecutionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the status of a current calculation."]moduleGetCalculationExecutionStatusResponse=structtypenonrect={status:CalculationStatus.toption[@ocaml.doc"Contains information about the calculation execution status."];statistics:CalculationStatistics.toption[@ocaml.doc"Contains information about the DPU execution time and progress."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?status=fun?statistics->fun()->{status;statistics}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:CalculationStatus.to_value));("Statistics",(Option.mapx.statistics~f:CalculationStatistics.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatistics=(Option.map~f:CalculationStatistics.of_xml)(Xml.childxml_arg0"Statistics")inletstatus=(Option.map~f:CalculationStatus.of_xml)(Xml.childxml_arg0"Status")inmake?statistics?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatistics=field_mapjson__"Statistics"CalculationStatistics.of_jsoninletstatus=field_mapjson__"Status"CalculationStatus.of_jsoninmake?statistics?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the status of a current calculation."]moduleGetCapacityAssignmentConfigurationInput=structtypenonrect={capacityReservationName:CapacityReservationName.t[@ocaml.doc"The name of the capacity reservation to retrieve the capacity assignment configuration for."]}letcontext_="GetCapacityAssignmentConfigurationInput"letmake~capacityReservationName=fun()->{capacityReservationName}letto_valuex=structure_to_value[("CapacityReservationName",(Some(CapacityReservationName.to_valuex.capacityReservationName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcapacityReservationName=CapacityReservationName.of_xml(Xml.child_exn~context:context_xml_arg0"CapacityReservationName")inmake~capacityReservationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcapacityReservationName=field_map_exnjson__"CapacityReservationName"CapacityReservationName.of_jsoninmake~capacityReservationName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the capacity assignment configuration for a capacity reservation, if one exists."]moduleGetCapacityAssignmentConfigurationOutput=structtypenonrect={capacityAssignmentConfiguration:CapacityAssignmentConfiguration.toption[@ocaml.doc"The requested capacity assignment configuration for the specified capacity reservation."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?capacityAssignmentConfiguration=fun()->{capacityAssignmentConfiguration}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("CapacityAssignmentConfiguration",(Option.mapx.capacityAssignmentConfiguration~f:CapacityAssignmentConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcapacityAssignmentConfiguration=(Option.map~f:CapacityAssignmentConfiguration.of_xml)(Xml.childxml_arg0"CapacityAssignmentConfiguration")inmake?capacityAssignmentConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcapacityAssignmentConfiguration=field_mapjson__"CapacityAssignmentConfiguration"CapacityAssignmentConfiguration.of_jsoninmake?capacityAssignmentConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the capacity assignment configuration for a capacity reservation, if one exists."]moduleGetCapacityReservationInput=structtypenonrect={name:CapacityReservationName.t[@ocaml.doc"The name of the capacity reservation."]}letcontext_="GetCapacityReservationInput"letmake~name=fun()->{name}letto_valuex=structure_to_value[("Name",(Some(CapacityReservationName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=CapacityReservationName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"Name"CapacityReservationName.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about the capacity reservation with the specified name."]moduleGetCapacityReservationOutput=structtypenonrect={capacityReservation:CapacityReservation.toption[@ocaml.doc"The requested capacity reservation structure."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?capacityReservation=fun()->{capacityReservation}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("CapacityReservation",(Option.mapx.capacityReservation~f:CapacityReservation.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcapacityReservation=(Option.map~f:CapacityReservation.of_xml)(Xml.childxml_arg0"CapacityReservation")inmake?capacityReservation()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcapacityReservation=field_mapjson__"CapacityReservation"CapacityReservation.of_jsoninmake?capacityReservation()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about the capacity reservation with the specified name."]moduleGetDataCatalogInput=structtypenonrect={name:CatalogNameString.t[@ocaml.doc"The name of the data catalog to return."];workGroup:WorkGroupName.toption[@ocaml.doc"The name of the workgroup. Required if making an IAM Identity Center request."]}letcontext_="GetDataCatalogInput"letmake?workGroup=fun~name->fun()->{workGroup;name}letto_valuex=structure_to_value[("Name",(Some(CatalogNameString.to_valuex.name)));("WorkGroup",(Option.mapx.workGroup~f:WorkGroupName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkGroup=(Option.map~f:WorkGroupName.of_xml)(Xml.childxml_arg0"WorkGroup")inletname=CatalogNameString.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?workGroup~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkGroup=field_mapjson__"WorkGroup"WorkGroupName.of_jsoninletname=field_map_exnjson__"Name"CatalogNameString.of_jsoninmake?workGroup~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the specified data catalog."]moduleGetDataCatalogOutput=structtypenonrect={dataCatalog:DataCatalog.toption[@ocaml.doc"The data catalog returned."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?dataCatalog=fun()->{dataCatalog}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("DataCatalog",(Option.mapx.dataCatalog~f:DataCatalog.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataCatalog=(Option.map~f:DataCatalog.of_xml)(Xml.childxml_arg0"DataCatalog")inmake?dataCatalog()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataCatalog=field_mapjson__"DataCatalog"DataCatalog.of_jsoninmake?dataCatalog()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the specified data catalog."]moduleGetDatabaseInput=structtypenonrect={catalogName:CatalogNameString.t[@ocaml.doc"The name of the data catalog that contains the database to return."];databaseName:NameString.t[@ocaml.doc"The name of the database to return."];workGroup:WorkGroupName.toption[@ocaml.doc"The name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center enabled Glue Data Catalog."]}letcontext_="GetDatabaseInput"letmake?workGroup=fun~catalogName->fun~databaseName->fun()->{workGroup;catalogName;databaseName}letto_valuex=structure_to_value[("CatalogName",(Some(CatalogNameString.to_valuex.catalogName)));("DatabaseName",(Some(NameString.to_valuex.databaseName)));("WorkGroup",(Option.mapx.workGroup~f:WorkGroupName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkGroup=(Option.map~f:WorkGroupName.of_xml)(Xml.childxml_arg0"WorkGroup")inletdatabaseName=NameString.of_xml(Xml.child_exn~context:context_xml_arg0"DatabaseName")inletcatalogName=CatalogNameString.of_xml(Xml.child_exn~context:context_xml_arg0"CatalogName")inmake?workGroup~databaseName~catalogName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkGroup=field_mapjson__"WorkGroup"WorkGroupName.of_jsoninletdatabaseName=field_map_exnjson__"DatabaseName"NameString.of_jsoninletcatalogName=field_map_exnjson__"CatalogName"CatalogNameString.of_jsoninmake?workGroup~databaseName~catalogName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a database object for the specified database and data catalog."]moduleMetadataException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An exception that Athena received when it called a custom metastore. Occurs if the error is not caused by user input (InvalidRequestException) or from the Athena platform (InternalServerException). For example, if a user-created Lambda function is missing permissions, the Lambda 4XX exception is returned in a MetadataException."]moduleGetDatabaseOutput=structtypenonrect={database:Database.toption[@ocaml.doc"The database returned."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`MetadataExceptionofMetadataException.t|`Unknown_operation_errorof(string*stringoption)]letmake?database=fun()->{database}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"MetadataException"->`MetadataException(MetadataException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"MetadataException"->`MetadataException(MetadataException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`MetadataExceptione->`Assoc[("error",(`String"MetadataException"));("details",(MetadataException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Database",(Option.mapx.database~f:Database.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatabase=(Option.map~f:Database.of_xml)(Xml.childxml_arg0"Database")inmake?database()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatabase=field_mapjson__"Database"Database.of_jsoninmake?database()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a database object for the specified database and data catalog."]moduleGetNamedQueryInput=structtypenonrect={namedQueryId:NamedQueryId.t[@ocaml.doc"The unique ID of the query. Use ListNamedQueries to get query IDs."]}letcontext_="GetNamedQueryInput"letmake~namedQueryId=fun()->{namedQueryId}letto_valuex=structure_to_value[("NamedQueryId",(Some(NamedQueryId.to_valuex.namedQueryId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnamedQueryId=NamedQueryId.of_xml(Xml.child_exn~context:context_xml_arg0"NamedQueryId")inmake~namedQueryId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnamedQueryId=field_map_exnjson__"NamedQueryId"NamedQueryId.of_jsoninmake~namedQueryId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about a single query. Requires that you have access to the workgroup in which the query was saved."]moduleGetNamedQueryOutput=structtypenonrect={namedQuery:NamedQuery.toption[@ocaml.doc"Information about the query."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?namedQuery=fun()->{namedQuery}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NamedQuery",(Option.mapx.namedQuery~f:NamedQuery.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnamedQuery=(Option.map~f:NamedQuery.of_xml)(Xml.childxml_arg0"NamedQuery")inmake?namedQuery()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnamedQuery=field_mapjson__"NamedQuery"NamedQuery.of_jsoninmake?namedQuery()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about a single query. Requires that you have access to the workgroup in which the query was saved."]moduleGetNotebookMetadataInput=structtypenonrect={notebookId:NotebookId.t[@ocaml.doc"The ID of the notebook whose metadata is to be retrieved."]}letcontext_="GetNotebookMetadataInput"letmake~notebookId=fun()->{notebookId}letto_valuex=structure_to_value[("NotebookId",(Some(NotebookId.to_valuex.notebookId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnotebookId=NotebookId.of_xml(Xml.child_exn~context:context_xml_arg0"NotebookId")inmake~notebookId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnotebookId=field_map_exnjson__"NotebookId"NotebookId.of_jsoninmake~notebookId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves notebook metadata for the specified notebook ID."]moduleGetNotebookMetadataOutput=structtypenonrect={notebookMetadata:NotebookMetadata.toption[@ocaml.doc"The metadata that is returned for the specified notebook ID."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?notebookMetadata=fun()->{notebookMetadata}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NotebookMetadata",(Option.mapx.notebookMetadata~f:NotebookMetadata.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnotebookMetadata=(Option.map~f:NotebookMetadata.of_xml)(Xml.childxml_arg0"NotebookMetadata")inmake?notebookMetadata()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnotebookMetadata=field_mapjson__"NotebookMetadata"NotebookMetadata.of_jsoninmake?notebookMetadata()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves notebook metadata for the specified notebook ID."]moduleGetPreparedStatementInput=structtypenonrect={statementName:StatementName.t[@ocaml.doc"The name of the prepared statement to retrieve."];workGroup:WorkGroupName.t[@ocaml.doc"The workgroup to which the statement to be retrieved belongs."]}letcontext_="GetPreparedStatementInput"letmake~statementName=fun~workGroup->fun()->{statementName;workGroup}letto_valuex=structure_to_value[("StatementName",(Some(StatementName.to_valuex.statementName)));("WorkGroup",(Some(WorkGroupName.to_valuex.workGroup)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkGroup=WorkGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"WorkGroup")inletstatementName=StatementName.of_xml(Xml.child_exn~context:context_xml_arg0"StatementName")inmake~workGroup~statementName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkGroup=field_map_exnjson__"WorkGroup"WorkGroupName.of_jsoninletstatementName=field_map_exnjson__"StatementName"StatementName.of_jsoninmake~workGroup~statementName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the prepared statement with the specified name from the specified workgroup."]moduleGetPreparedStatementOutput=structtypenonrect={preparedStatement:PreparedStatement.toption[@ocaml.doc"The name of the prepared statement that was retrieved."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?preparedStatement=fun()->{preparedStatement}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("PreparedStatement",(Option.mapx.preparedStatement~f:PreparedStatement.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpreparedStatement=(Option.map~f:PreparedStatement.of_xml)(Xml.childxml_arg0"PreparedStatement")inmake?preparedStatement()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpreparedStatement=field_mapjson__"PreparedStatement"PreparedStatement.of_jsoninmake?preparedStatement()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the prepared statement with the specified name from the specified workgroup."]moduleGetQueryExecutionInput=structtypenonrect={queryExecutionId:QueryExecutionId.t[@ocaml.doc"The unique ID of the query execution."]}letcontext_="GetQueryExecutionInput"letmake~queryExecutionId=fun()->{queryExecutionId}letto_valuex=structure_to_value[("QueryExecutionId",(Some(QueryExecutionId.to_valuex.queryExecutionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueryExecutionId=QueryExecutionId.of_xml(Xml.child_exn~context:context_xml_arg0"QueryExecutionId")inmake~queryExecutionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueryExecutionId=field_map_exnjson__"QueryExecutionId"QueryExecutionId.of_jsoninmake~queryExecutionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about a single execution of a query if you have access to the workgroup in which the query ran. Each time a query executes, information about the query execution is saved with a unique ID."]moduleGetQueryExecutionOutput=structtypenonrect={queryExecution:QueryExecution.toption[@ocaml.doc"Information about the query execution."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?queryExecution=fun()->{queryExecution}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("QueryExecution",(Option.mapx.queryExecution~f:QueryExecution.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueryExecution=(Option.map~f:QueryExecution.of_xml)(Xml.childxml_arg0"QueryExecution")inmake?queryExecution()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueryExecution=field_mapjson__"QueryExecution"QueryExecution.of_jsoninmake?queryExecution()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about a single execution of a query if you have access to the workgroup in which the query ran. Each time a query executes, information about the query execution is saved with a unique ID."]moduleToken=structtypenonrect=stringletcontext_="Token"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Token"jletto_json=simple_to_jsonto_valueendmoduleQueryResultType=structtypenonrect=|DATA_MANIFEST|DATA_ROWS|Non_static_idofstringletmakei=iletto_string=function|DATA_MANIFEST->"DATA_MANIFEST"|DATA_ROWS->"DATA_ROWS"|Non_static_ids->sletof_string=function|"DATA_MANIFEST"->DATA_MANIFEST|"DATA_ROWS"->DATA_ROWS|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 QueryResultType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"QueryResultType"j)letto_json=simple_to_jsonto_valueendmoduleMaxQueryResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:1000)>>=(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 MaxQueryResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleGetQueryResultsInput=structtypenonrect={queryExecutionId:QueryExecutionId.t[@ocaml.doc"The unique ID of the query execution."];nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."];maxResults:MaxQueryResults.toption[@ocaml.doc"The maximum number of results (rows) to return in this request."];queryResultType:QueryResultType.toption[@ocaml.doc"When you set this to DATA_ROWS or empty, GetQueryResults returns the query results in rows. If set to DATA_MANIFEST, it returns the manifest file in rows. Only the query types CREATE TABLE AS SELECT, UNLOAD, and INSERT can generate a manifest file. If you use DATA_MANIFEST for other query types, the query will fail."]}letcontext_="GetQueryResultsInput"letmake?nextToken=fun?maxResults->fun?queryResultType->fun~queryExecutionId->fun()->{nextToken;maxResults;queryResultType;queryExecutionId}letto_valuex=structure_to_value[("QueryExecutionId",(Some(QueryExecutionId.to_valuex.queryExecutionId)));("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxQueryResults.to_value));("QueryResultType",(Option.mapx.queryResultType~f:QueryResultType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueryResultType=(Option.map~f:QueryResultType.of_xml)(Xml.childxml_arg0"QueryResultType")inletmaxResults=(Option.map~f:MaxQueryResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletqueryExecutionId=QueryExecutionId.of_xml(Xml.child_exn~context:context_xml_arg0"QueryExecutionId")inmake?queryResultType?maxResults?nextToken~queryExecutionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueryResultType=field_mapjson__"QueryResultType"QueryResultType.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxQueryResults.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninletqueryExecutionId=field_map_exnjson__"QueryExecutionId"QueryExecutionId.of_jsoninmake?queryResultType?maxResults?nextToken~queryExecutionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Streams the results of a single query execution specified by QueryExecutionId from the Athena query results location in Amazon S3. For more information, see Working with query results, recent queries, and output files in the Amazon Athena User Guide. This request does not execute the query but returns results. Use StartQueryExecution to run a query. To stream query results successfully, the IAM principal with permission to call GetQueryResults also must have permissions to the Amazon S3 GetObject action for the Athena query results location. IAM principals with permission to the Amazon S3 GetObject action for the query results location are able to retrieve query results from Amazon S3 even if permission to the GetQueryResults action is denied. To restrict user or role access, ensure that Amazon S3 permissions to the Athena query location are denied."]moduleDatumList=structtypenonrect=Datum.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Datum.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:Datum.of_xml)letof_jsonj=list_of_json~kind:"datumList"~of_json:Datum.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRow=structtypenonrect={data:DatumList.toption[@ocaml.doc"The data that populates a row in a query result table."]}letmake?data=fun()->{data}letto_valuex=structure_to_value[("Data",(Option.mapx.data~f:DatumList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdata=(Option.map~f:DatumList.of_xml)(Xml.childxml_arg0"Data")inmake?data()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdata=field_mapjson__"Data"DatumList.of_jsoninmake?data()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The rows that make up a query result table."]moduleRowList=structtypenonrect=Row.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Row.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:Row.of_xml)letof_jsonj=list_of_json~kind:"RowList"~of_json:Row.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResultSetMetadata=structtypenonrect={columnInfo:ColumnInfoList.toption[@ocaml.doc"Information about the columns returned in a query result metadata."]}letmake?columnInfo=fun()->{columnInfo}letto_valuex=structure_to_value[("ColumnInfo",(Option.mapx.columnInfo~f:ColumnInfoList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcolumnInfo=(Option.map~f:ColumnInfoList.of_xml)(Xml.childxml_arg0"ColumnInfo")inmake?columnInfo()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcolumnInfo=field_mapjson__"ColumnInfo"ColumnInfoList.of_jsoninmake?columnInfo()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The metadata that describes the column structure and data types of a table of query results. To return a ResultSetMetadata object, use GetQueryResults."]moduleResultSet=structtypenonrect={rows:RowList.toption[@ocaml.doc"The rows in the table."];resultSetMetadata:ResultSetMetadata.toption[@ocaml.doc"The metadata that describes the column structure and data types of a table of query results."]}letmake?rows=fun?resultSetMetadata->fun()->{rows;resultSetMetadata}letto_valuex=structure_to_value[("Rows",(Option.mapx.rows~f:RowList.to_value));("ResultSetMetadata",(Option.mapx.resultSetMetadata~f:ResultSetMetadata.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresultSetMetadata=(Option.map~f:ResultSetMetadata.of_xml)(Xml.childxml_arg0"ResultSetMetadata")inletrows=(Option.map~f:RowList.of_xml)(Xml.childxml_arg0"Rows")inmake?resultSetMetadata?rows()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresultSetMetadata=field_mapjson__"ResultSetMetadata"ResultSetMetadata.of_jsoninletrows=field_mapjson__"Rows"RowList.of_jsoninmake?resultSetMetadata?rows()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The metadata and rows that make up a query result set. The metadata describes the column structure and data types. To return a ResultSet object, use GetQueryResults."]moduleGetQueryResultsOutput=structtypenonrect={updateCount:Long.toption[@ocaml.doc"The number of rows inserted with a CREATE TABLE AS SELECT, INSERT INTO, or UPDATE statement."];resultSet:ResultSet.toption[@ocaml.doc"The results of the query execution."];nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?updateCount=fun?resultSet->fun?nextToken->fun()->{updateCount;resultSet;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("UpdateCount",(Option.mapx.updateCount~f:Long.to_value));("ResultSet",(Option.mapx.resultSet~f:ResultSet.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletresultSet=(Option.map~f:ResultSet.of_xml)(Xml.childxml_arg0"ResultSet")inletupdateCount=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"UpdateCount")inmake?nextToken?resultSet?updateCount()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletresultSet=field_mapjson__"ResultSet"ResultSet.of_jsoninletupdateCount=field_mapjson__"UpdateCount"Long.of_jsoninmake?nextToken?resultSet?updateCount()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Streams the results of a single query execution specified by QueryExecutionId from the Athena query results location in Amazon S3. For more information, see Working with query results, recent queries, and output files in the Amazon Athena User Guide. This request does not execute the query but returns results. Use StartQueryExecution to run a query. To stream query results successfully, the IAM principal with permission to call GetQueryResults also must have permissions to the Amazon S3 GetObject action for the Athena query results location. IAM principals with permission to the Amazon S3 GetObject action for the query results location are able to retrieve query results from Amazon S3 even if permission to the GetQueryResults action is denied. To restrict user or role access, ensure that Amazon S3 permissions to the Athena query location are denied."]moduleGetQueryRuntimeStatisticsInput=structtypenonrect={queryExecutionId:QueryExecutionId.t[@ocaml.doc"The unique ID of the query execution."]}letcontext_="GetQueryRuntimeStatisticsInput"letmake~queryExecutionId=fun()->{queryExecutionId}letto_valuex=structure_to_value[("QueryExecutionId",(Some(QueryExecutionId.to_valuex.queryExecutionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueryExecutionId=QueryExecutionId.of_xml(Xml.child_exn~context:context_xml_arg0"QueryExecutionId")inmake~queryExecutionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueryExecutionId=field_map_exnjson__"QueryExecutionId"QueryExecutionId.of_jsoninmake~queryExecutionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns query execution runtime statistics related to a single execution of a query if you have access to the workgroup in which the query ran. Statistics from the Timeline section of the response object are available as soon as QueryExecutionStatus$State is in a SUCCEEDED or FAILED state. The remaining non-timeline statistics in the response (like stage-level input and output row count and data size) are updated asynchronously and may not be available immediately after a query completes or, in some cases, may not be returned. The non-timeline statistics are also not included when a query has row-level filters defined in Lake Formation."]moduleStringList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"StringList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulerecQueryStagePlanNode:sigtypenonrect={name:String_.toption[@ocaml.doc"Name of the query stage plan that describes the operation this stage is performing as part of query execution."];identifier:String_.toption[@ocaml.doc"Information about the operation this query stage plan node is performing."];children:QueryStagePlanNodes.toption[@ocaml.doc"Stage plan information such as name, identifier, sub plans, and remote sources of child plan nodes/"];remoteSources:StringList.toption[@ocaml.doc"Source plan node IDs."]}valmake:?name:String_.t->?identifier:String_.t->?children:QueryStagePlanNodes.t->?remoteSources:StringList.t->unit->tvalto_value:t->Botodata.valuevalto_query:t->Client.Query.tvalof_xml:Xml.t->tvalof_json:Yojson.Safe.t->tvalto_json:t->Yojson.Safe.tend=structtypenonrect={name:String_.toption[@ocaml.doc"Name of the query stage plan that describes the operation this stage is performing as part of query execution."];identifier:String_.toption[@ocaml.doc"Information about the operation this query stage plan node is performing."];children:QueryStagePlanNodes.toption[@ocaml.doc"Stage plan information such as name, identifier, sub plans, and remote sources of child plan nodes/"];remoteSources:StringList.toption[@ocaml.doc"Source plan node IDs."]}letmake?name=fun?identifier->fun?children->fun?remoteSources->fun()->{name;identifier;children;remoteSources}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:String_.to_value));("Identifier",(Option.mapx.identifier~f:String_.to_value));("Children",(Option.mapx.children~f:QueryStagePlanNodes.to_value));("RemoteSources",(Option.mapx.remoteSources~f:StringList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letremoteSources=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"RemoteSources")inletchildren=(Option.map~f:QueryStagePlanNodes.of_xml)(Xml.childxml_arg0"Children")inletidentifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Identifier")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Name")inmake?remoteSources?children?identifier?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letremoteSources=field_mapjson__"RemoteSources"StringList.of_jsoninletchildren=field_mapjson__"Children"QueryStagePlanNodes.of_jsoninletidentifier=field_mapjson__"Identifier"String_.of_jsoninletname=field_mapjson__"Name"String_.of_jsoninmake?remoteSources?children?identifier?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stage plan information such as name, identifier, sub plans, and remote sources."]andQueryStagePlanNodes:sigtypenonrect=QueryStagePlanNode.tlistvalmake:QueryStagePlanNode.tlist->tvalto_value:t->Botodata.valuevalto_query:t->Client.Query.tvalof_xml:Xml.t->QueryStagePlanNode.tlistvalof_json:Yojson.Safe.t->tvalto_json:t->Yojson.Safe.tvalto_header:t->stringend=structtypenonrect=QueryStagePlanNode.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:QueryStagePlanNode.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:QueryStagePlanNode.of_xml)letof_jsonj=list_of_json~kind:"QueryStagePlanNodes"~of_json:QueryStagePlanNode.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulerecQueryStage:sigtypenonrect={stageId:Long.toption[@ocaml.doc"The identifier for a stage."];state:String_.toption[@ocaml.doc"State of the stage after query execution."];outputBytes:Long.toption[@ocaml.doc"The number of bytes output from the stage after execution."];outputRows:Long.toption[@ocaml.doc"The number of rows output from the stage after execution."];inputBytes:Long.toption[@ocaml.doc"The number of bytes input into the stage for execution."];inputRows:Long.toption[@ocaml.doc"The number of rows input into the stage for execution."];executionTime:Long.toption[@ocaml.doc"Time taken to execute this stage."];queryStagePlan:QueryStagePlanNode.toption[@ocaml.doc"Stage plan information such as name, identifier, sub plans, and source stages."];subStages:QueryStages.toption[@ocaml.doc"List of sub query stages that form this stage execution plan."]}valmake:?stageId:Long.t->?state:String_.t->?outputBytes:Long.t->?outputRows:Long.t->?inputBytes:Long.t->?inputRows:Long.t->?executionTime:Long.t->?queryStagePlan:QueryStagePlanNode.t->?subStages:QueryStages.t->unit->tvalto_value:t->Botodata.valuevalto_query:t->Client.Query.tvalof_xml:Xml.t->tvalof_json:Yojson.Safe.t->tvalto_json:t->Yojson.Safe.tend=structtypenonrect={stageId:Long.toption[@ocaml.doc"The identifier for a stage."];state:String_.toption[@ocaml.doc"State of the stage after query execution."];outputBytes:Long.toption[@ocaml.doc"The number of bytes output from the stage after execution."];outputRows:Long.toption[@ocaml.doc"The number of rows output from the stage after execution."];inputBytes:Long.toption[@ocaml.doc"The number of bytes input into the stage for execution."];inputRows:Long.toption[@ocaml.doc"The number of rows input into the stage for execution."];executionTime:Long.toption[@ocaml.doc"Time taken to execute this stage."];queryStagePlan:QueryStagePlanNode.toption[@ocaml.doc"Stage plan information such as name, identifier, sub plans, and source stages."];subStages:QueryStages.toption[@ocaml.doc"List of sub query stages that form this stage execution plan."]}letmake?stageId=fun?state->fun?outputBytes->fun?outputRows->fun?inputBytes->fun?inputRows->fun?executionTime->fun?queryStagePlan->fun?subStages->fun()->{stageId;state;outputBytes;outputRows;inputBytes;inputRows;executionTime;queryStagePlan;subStages}letto_valuex=structure_to_value[("StageId",(Option.mapx.stageId~f:Long.to_value));("State",(Option.mapx.state~f:String_.to_value));("OutputBytes",(Option.mapx.outputBytes~f:Long.to_value));("OutputRows",(Option.mapx.outputRows~f:Long.to_value));("InputBytes",(Option.mapx.inputBytes~f:Long.to_value));("InputRows",(Option.mapx.inputRows~f:Long.to_value));("ExecutionTime",(Option.mapx.executionTime~f:Long.to_value));("QueryStagePlan",(Option.mapx.queryStagePlan~f:QueryStagePlanNode.to_value));("SubStages",(Option.mapx.subStages~f:QueryStages.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsubStages=(Option.map~f:QueryStages.of_xml)(Xml.childxml_arg0"SubStages")inletqueryStagePlan=(Option.map~f:QueryStagePlanNode.of_xml)(Xml.childxml_arg0"QueryStagePlan")inletexecutionTime=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"ExecutionTime")inletinputRows=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"InputRows")inletinputBytes=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"InputBytes")inletoutputRows=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"OutputRows")inletoutputBytes=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"OutputBytes")inletstate=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"State")inletstageId=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"StageId")inmake?subStages?queryStagePlan?executionTime?inputRows?inputBytes?outputRows?outputBytes?state?stageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubStages=field_mapjson__"SubStages"QueryStages.of_jsoninletqueryStagePlan=field_mapjson__"QueryStagePlan"QueryStagePlanNode.of_jsoninletexecutionTime=field_mapjson__"ExecutionTime"Long.of_jsoninletinputRows=field_mapjson__"InputRows"Long.of_jsoninletinputBytes=field_mapjson__"InputBytes"Long.of_jsoninletoutputRows=field_mapjson__"OutputRows"Long.of_jsoninletoutputBytes=field_mapjson__"OutputBytes"Long.of_jsoninletstate=field_mapjson__"State"String_.of_jsoninletstageId=field_mapjson__"StageId"Long.of_jsoninmake?subStages?queryStagePlan?executionTime?inputRows?inputBytes?outputRows?outputBytes?state?stageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stage statistics such as input and output rows and bytes, execution time and stage state. This information also includes substages and the query stage plan."]andQueryStages:sigtypenonrect=QueryStage.tlistvalmake:QueryStage.tlist->tvalto_value:t->Botodata.valuevalto_query:t->Client.Query.tvalof_xml:Xml.t->QueryStage.tlistvalof_json:Yojson.Safe.t->tvalto_json:t->Yojson.Safe.tvalto_header:t->stringend=structtypenonrect=QueryStage.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:QueryStage.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:QueryStage.of_xml)letof_jsonj=list_of_json~kind:"QueryStages"~of_json:QueryStage.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleQueryRuntimeStatisticsTimeline=structtypenonrect={queryQueueTimeInMillis:Long.toption[@ocaml.doc"The number of milliseconds that the query was in your query queue waiting for resources. Note that if transient errors occur, Athena might automatically add the query back to the queue."];servicePreProcessingTimeInMillis:Long.toption[@ocaml.doc"The number of milliseconds that Athena spends on preprocessing before it submits the query to the engine."];queryPlanningTimeInMillis:Long.toption[@ocaml.doc"The number of milliseconds that Athena took to plan the query processing flow. This includes the time spent retrieving table partitions from the data source. Note that because the query engine performs the query planning, query planning time is a subset of engine processing time."];engineExecutionTimeInMillis:Long.toption[@ocaml.doc"The number of milliseconds that the query took to execute."];serviceProcessingTimeInMillis:Long.toption[@ocaml.doc"The number of milliseconds that Athena took to finalize and publish the query results after the query engine finished running the query."];totalExecutionTimeInMillis:Long.toption[@ocaml.doc"The number of milliseconds that Athena took to run the query."]}letmake?queryQueueTimeInMillis=fun?servicePreProcessingTimeInMillis->fun?queryPlanningTimeInMillis->fun?engineExecutionTimeInMillis->fun?serviceProcessingTimeInMillis->fun?totalExecutionTimeInMillis->fun()->{queryQueueTimeInMillis;servicePreProcessingTimeInMillis;queryPlanningTimeInMillis;engineExecutionTimeInMillis;serviceProcessingTimeInMillis;totalExecutionTimeInMillis}letto_valuex=structure_to_value[("QueryQueueTimeInMillis",(Option.mapx.queryQueueTimeInMillis~f:Long.to_value));("ServicePreProcessingTimeInMillis",(Option.mapx.servicePreProcessingTimeInMillis~f:Long.to_value));("QueryPlanningTimeInMillis",(Option.mapx.queryPlanningTimeInMillis~f:Long.to_value));("EngineExecutionTimeInMillis",(Option.mapx.engineExecutionTimeInMillis~f:Long.to_value));("ServiceProcessingTimeInMillis",(Option.mapx.serviceProcessingTimeInMillis~f:Long.to_value));("TotalExecutionTimeInMillis",(Option.mapx.totalExecutionTimeInMillis~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettotalExecutionTimeInMillis=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"TotalExecutionTimeInMillis")inletserviceProcessingTimeInMillis=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"ServiceProcessingTimeInMillis")inletengineExecutionTimeInMillis=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"EngineExecutionTimeInMillis")inletqueryPlanningTimeInMillis=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"QueryPlanningTimeInMillis")inletservicePreProcessingTimeInMillis=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"ServicePreProcessingTimeInMillis")inletqueryQueueTimeInMillis=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"QueryQueueTimeInMillis")inmake?totalExecutionTimeInMillis?serviceProcessingTimeInMillis?engineExecutionTimeInMillis?queryPlanningTimeInMillis?servicePreProcessingTimeInMillis?queryQueueTimeInMillis()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettotalExecutionTimeInMillis=field_mapjson__"TotalExecutionTimeInMillis"Long.of_jsoninletserviceProcessingTimeInMillis=field_mapjson__"ServiceProcessingTimeInMillis"Long.of_jsoninletengineExecutionTimeInMillis=field_mapjson__"EngineExecutionTimeInMillis"Long.of_jsoninletqueryPlanningTimeInMillis=field_mapjson__"QueryPlanningTimeInMillis"Long.of_jsoninletservicePreProcessingTimeInMillis=field_mapjson__"ServicePreProcessingTimeInMillis"Long.of_jsoninletqueryQueueTimeInMillis=field_mapjson__"QueryQueueTimeInMillis"Long.of_jsoninmake?totalExecutionTimeInMillis?serviceProcessingTimeInMillis?engineExecutionTimeInMillis?queryPlanningTimeInMillis?servicePreProcessingTimeInMillis?queryQueueTimeInMillis()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Timeline statistics such as query queue time, planning time, execution time, service processing time, and total execution time."]moduleQueryRuntimeStatisticsRows=structtypenonrect={inputRows:Long.toption[@ocaml.doc"The number of rows read to execute the query."];inputBytes:Long.toption[@ocaml.doc"The number of bytes read to execute the query."];outputBytes:Long.toption[@ocaml.doc"The number of bytes returned by the query."];outputRows:Long.toption[@ocaml.doc"The number of rows returned by the query."]}letmake?inputRows=fun?inputBytes->fun?outputBytes->fun?outputRows->fun()->{inputRows;inputBytes;outputBytes;outputRows}letto_valuex=structure_to_value[("InputRows",(Option.mapx.inputRows~f:Long.to_value));("InputBytes",(Option.mapx.inputBytes~f:Long.to_value));("OutputBytes",(Option.mapx.outputBytes~f:Long.to_value));("OutputRows",(Option.mapx.outputRows~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoutputRows=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"OutputRows")inletoutputBytes=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"OutputBytes")inletinputBytes=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"InputBytes")inletinputRows=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"InputRows")inmake?outputRows?outputBytes?inputBytes?inputRows()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoutputRows=field_mapjson__"OutputRows"Long.of_jsoninletoutputBytes=field_mapjson__"OutputBytes"Long.of_jsoninletinputBytes=field_mapjson__"InputBytes"Long.of_jsoninletinputRows=field_mapjson__"InputRows"Long.of_jsoninmake?outputRows?outputBytes?inputBytes?inputRows()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Statistics such as input rows and bytes read by the query, rows and bytes output by the query, and the number of rows written by the query."]moduleQueryRuntimeStatistics=structtypenonrect={timeline:QueryRuntimeStatisticsTimeline.toption;rows:QueryRuntimeStatisticsRows.toption;outputStage:QueryStage.toption[@ocaml.doc"Stage statistics such as input and output rows and bytes, execution time, and stage state. This information also includes substages and the query stage plan."]}letmake?timeline=fun?rows->fun?outputStage->fun()->{timeline;rows;outputStage}letto_valuex=structure_to_value[("Timeline",(Option.mapx.timeline~f:QueryRuntimeStatisticsTimeline.to_value));("Rows",(Option.mapx.rows~f:QueryRuntimeStatisticsRows.to_value));("OutputStage",(Option.mapx.outputStage~f:QueryStage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoutputStage=(Option.map~f:QueryStage.of_xml)(Xml.childxml_arg0"OutputStage")inletrows=(Option.map~f:QueryRuntimeStatisticsRows.of_xml)(Xml.childxml_arg0"Rows")inlettimeline=(Option.map~f:QueryRuntimeStatisticsTimeline.of_xml)(Xml.childxml_arg0"Timeline")inmake?outputStage?rows?timeline()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoutputStage=field_mapjson__"OutputStage"QueryStage.of_jsoninletrows=field_mapjson__"Rows"QueryRuntimeStatisticsRows.of_jsoninlettimeline=field_mapjson__"Timeline"QueryRuntimeStatisticsTimeline.of_jsoninmake?outputStage?rows?timeline()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The query execution timeline, statistics on input and output rows and bytes, and the different query stages that form the query execution plan."]moduleGetQueryRuntimeStatisticsOutput=structtypenonrect={queryRuntimeStatistics:QueryRuntimeStatistics.toption[@ocaml.doc"Runtime statistics about the query execution."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?queryRuntimeStatistics=fun()->{queryRuntimeStatistics}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("QueryRuntimeStatistics",(Option.mapx.queryRuntimeStatistics~f:QueryRuntimeStatistics.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueryRuntimeStatistics=(Option.map~f:QueryRuntimeStatistics.of_xml)(Xml.childxml_arg0"QueryRuntimeStatistics")inmake?queryRuntimeStatistics()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueryRuntimeStatistics=field_mapjson__"QueryRuntimeStatistics"QueryRuntimeStatistics.of_jsoninmake?queryRuntimeStatistics()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns query execution runtime statistics related to a single execution of a query if you have access to the workgroup in which the query ran. Statistics from the Timeline section of the response object are available as soon as QueryExecutionStatus$State is in a SUCCEEDED or FAILED state. The remaining non-timeline statistics in the response (like stage-level input and output row count and data size) are updated asynchronously and may not be available immediately after a query completes or, in some cases, may not be returned. The non-timeline statistics are also not included when a query has row-level filters defined in Lake Formation."]moduleGetResourceDashboardRequest=structtypenonrect={resourceARN:AmazonResourceName.t[@ocaml.doc"The The Amazon Resource Name (ARN) for a session."]}letcontext_="GetResourceDashboardRequest"letmake~resourceARN=fun()->{resourceARN}letto_valuex=structure_to_value[("ResourceARN",(Some(AmazonResourceName.to_valuex.resourceARN)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceARN=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceARN=field_map_exnjson__"ResourceARN"AmazonResourceName.of_jsoninmake~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the Live UI/Persistence UI for a session."]moduleGetResourceDashboardResponse=structtypenonrect={url:String_.toption[@ocaml.doc"The Live UI/Persistence UI url for a session."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?url=fun()->{url}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Url",(Option.mapx.url~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leturl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Url")inmake?url()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leturl=field_mapjson__"Url"String_.of_jsoninmake?url()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the Live UI/Persistence UI for a session."]moduleGetSessionEndpointRequest=structtypenonrect={sessionId:SessionId.t[@ocaml.doc"The session ID."]}letcontext_="GetSessionEndpointRequest"letmake~sessionId=fun()->{sessionId}letto_valuex=structure_to_value[("SessionId",(Some(SessionId.to_valuex.sessionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionId=SessionId.of_xml(Xml.child_exn~context:context_xml_arg0"SessionId")inmake~sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionId=field_map_exnjson__"SessionId"SessionId.of_jsoninmake~sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets a connection endpoint and authentication token for a given session Id."]moduleGetSessionEndpointResponse=structtypenonrect={endpointUrl:String_.toption[@ocaml.doc"The endpoint for connecting to the session."];authToken:String_.toption[@ocaml.doc"Authentication token for the connection"];authTokenExpirationTime:Timestamp.toption[@ocaml.doc"Expiration time of the auth token."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?endpointUrl=fun?authToken->fun?authTokenExpirationTime->fun()->{endpointUrl;authToken;authTokenExpirationTime}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("EndpointUrl",(Option.mapx.endpointUrl~f:String_.to_value));("AuthToken",(Option.mapx.authToken~f:String_.to_value));("AuthTokenExpirationTime",(Option.mapx.authTokenExpirationTime~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthTokenExpirationTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"AuthTokenExpirationTime")inletauthToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"AuthToken")inletendpointUrl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"EndpointUrl")inmake?authTokenExpirationTime?authToken?endpointUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthTokenExpirationTime=field_mapjson__"AuthTokenExpirationTime"Timestamp.of_jsoninletauthToken=field_mapjson__"AuthToken"String_.of_jsoninletendpointUrl=field_mapjson__"EndpointUrl"String_.of_jsoninmake?authTokenExpirationTime?authToken?endpointUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets a connection endpoint and authentication token for a given session Id."]moduleGetSessionRequest=structtypenonrect={sessionId:SessionId.t[@ocaml.doc"The session ID."]}letcontext_="GetSessionRequest"letmake~sessionId=fun()->{sessionId}letto_valuex=structure_to_value[("SessionId",(Some(SessionId.to_valuex.sessionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionId=SessionId.of_xml(Xml.child_exn~context:context_xml_arg0"SessionId")inmake~sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionId=field_map_exnjson__"SessionId"SessionId.of_jsoninmake~sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the full details of a previously created session, including the session status and configuration."]moduleSessionState=structtypenonrect=|CREATING|CREATED|IDLE|BUSY|TERMINATING|TERMINATED|DEGRADED|FAILED|Non_static_idofstringletmakei=iletto_string=function|CREATING->"CREATING"|CREATED->"CREATED"|IDLE->"IDLE"|BUSY->"BUSY"|TERMINATING->"TERMINATING"|TERMINATED->"TERMINATED"|DEGRADED->"DEGRADED"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"CREATING"->CREATING|"CREATED"->CREATED|"IDLE"->IDLE|"BUSY"->BUSY|"TERMINATING"->TERMINATING|"TERMINATED"->TERMINATED|"DEGRADED"->DEGRADED|"FAILED"->FAILED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration SessionState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SessionState"j)letto_json=simple_to_jsonto_valueendmoduleSessionStatus=structtypenonrect={startDateTime:Date.toption[@ocaml.doc"The date and time that the session started."];lastModifiedDateTime:Date.toption[@ocaml.doc"The most recent date and time that the session was modified."];endDateTime:Date.toption[@ocaml.doc"The date and time that the session ended."];idleSinceDateTime:Date.toption[@ocaml.doc"The date and time starting at which the session became idle. Can be empty if the session is not currently idle."];state:SessionState.toption[@ocaml.doc"The state of the session. A description of each state follows. CREATING - The session is being started, including acquiring resources. CREATED - The session has been started. IDLE - The session is able to accept a calculation. BUSY - The session is processing another task and is unable to accept a calculation. TERMINATING - The session is in the process of shutting down. TERMINATED - The session and its resources are no longer running. DEGRADED - The session has no healthy coordinators. FAILED - Due to a failure, the session and its resources are no longer running."];stateChangeReason:DescriptionString.toption[@ocaml.doc"The reason for the session state change (for example, canceled because the session was terminated)."]}letmake?startDateTime=fun?lastModifiedDateTime->fun?endDateTime->fun?idleSinceDateTime->fun?state->fun?stateChangeReason->fun()->{startDateTime;lastModifiedDateTime;endDateTime;idleSinceDateTime;state;stateChangeReason}letto_valuex=structure_to_value[("StartDateTime",(Option.mapx.startDateTime~f:Date.to_value));("LastModifiedDateTime",(Option.mapx.lastModifiedDateTime~f:Date.to_value));("EndDateTime",(Option.mapx.endDateTime~f:Date.to_value));("IdleSinceDateTime",(Option.mapx.idleSinceDateTime~f:Date.to_value));("State",(Option.mapx.state~f:SessionState.to_value));("StateChangeReason",(Option.mapx.stateChangeReason~f:DescriptionString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstateChangeReason=(Option.map~f:DescriptionString.of_xml)(Xml.childxml_arg0"StateChangeReason")inletstate=(Option.map~f:SessionState.of_xml)(Xml.childxml_arg0"State")inletidleSinceDateTime=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"IdleSinceDateTime")inletendDateTime=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"EndDateTime")inletlastModifiedDateTime=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"LastModifiedDateTime")inletstartDateTime=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"StartDateTime")inmake?stateChangeReason?state?idleSinceDateTime?endDateTime?lastModifiedDateTime?startDateTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstateChangeReason=field_mapjson__"StateChangeReason"DescriptionString.of_jsoninletstate=field_mapjson__"State"SessionState.of_jsoninletidleSinceDateTime=field_mapjson__"IdleSinceDateTime"Date.of_jsoninletendDateTime=field_mapjson__"EndDateTime"Date.of_jsoninletlastModifiedDateTime=field_mapjson__"LastModifiedDateTime"Date.of_jsoninletstartDateTime=field_mapjson__"StartDateTime"Date.of_jsoninmake?stateChangeReason?state?idleSinceDateTime?endDateTime?lastModifiedDateTime?startDateTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about the status of a session."]moduleSessionStatistics=structtypenonrect={dpuExecutionInMillis:Long.toption[@ocaml.doc"The data processing unit execution time for a session in milliseconds."]}letmake?dpuExecutionInMillis=fun()->{dpuExecutionInMillis}letto_valuex=structure_to_value[("DpuExecutionInMillis",(Option.mapx.dpuExecutionInMillis~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdpuExecutionInMillis=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"DpuExecutionInMillis")inmake?dpuExecutionInMillis()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdpuExecutionInMillis=field_mapjson__"DpuExecutionInMillis"Long.of_jsoninmake?dpuExecutionInMillis()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains statistics for a session."]moduleSessionIdleTimeoutInMinutes=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:480)>>=(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 SessionIdleTimeoutInMinutes"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleSessionConfiguration=structtypenonrect={executionRole:RoleArn.toption[@ocaml.doc"The ARN of the execution role used to access user resources for Spark sessions and Identity Center enabled workgroups. This property applies only to Spark enabled workgroups and Identity Center enabled workgroups."];workingDirectory:ResultOutputLocation.toption[@ocaml.doc"The Amazon S3 location that stores information for the notebook."];idleTimeoutSeconds:Long.toption[@ocaml.doc"The idle timeout in seconds for the session."];sessionIdleTimeoutInMinutes:SessionIdleTimeoutInMinutes.toption[@ocaml.doc"The idle timeout in seconds for the session."];encryptionConfiguration:EncryptionConfiguration.toption}letmake?executionRole=fun?workingDirectory->fun?idleTimeoutSeconds->fun?sessionIdleTimeoutInMinutes->fun?encryptionConfiguration->fun()->{executionRole;workingDirectory;idleTimeoutSeconds;sessionIdleTimeoutInMinutes;encryptionConfiguration}letto_valuex=structure_to_value[("ExecutionRole",(Option.mapx.executionRole~f:RoleArn.to_value));("WorkingDirectory",(Option.mapx.workingDirectory~f:ResultOutputLocation.to_value));("IdleTimeoutSeconds",(Option.mapx.idleTimeoutSeconds~f:Long.to_value));("SessionIdleTimeoutInMinutes",(Option.mapx.sessionIdleTimeoutInMinutes~f:SessionIdleTimeoutInMinutes.to_value));("EncryptionConfiguration",(Option.mapx.encryptionConfiguration~f:EncryptionConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letencryptionConfiguration=(Option.map~f:EncryptionConfiguration.of_xml)(Xml.childxml_arg0"EncryptionConfiguration")inletsessionIdleTimeoutInMinutes=(Option.map~f:SessionIdleTimeoutInMinutes.of_xml)(Xml.childxml_arg0"SessionIdleTimeoutInMinutes")inletidleTimeoutSeconds=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"IdleTimeoutSeconds")inletworkingDirectory=(Option.map~f:ResultOutputLocation.of_xml)(Xml.childxml_arg0"WorkingDirectory")inletexecutionRole=(Option.map~f:RoleArn.of_xml)(Xml.childxml_arg0"ExecutionRole")inmake?encryptionConfiguration?sessionIdleTimeoutInMinutes?idleTimeoutSeconds?workingDirectory?executionRole()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letencryptionConfiguration=field_mapjson__"EncryptionConfiguration"EncryptionConfiguration.of_jsoninletsessionIdleTimeoutInMinutes=field_mapjson__"SessionIdleTimeoutInMinutes"SessionIdleTimeoutInMinutes.of_jsoninletidleTimeoutSeconds=field_mapjson__"IdleTimeoutSeconds"Long.of_jsoninletworkingDirectory=field_mapjson__"WorkingDirectory"ResultOutputLocation.of_jsoninletexecutionRole=field_mapjson__"ExecutionRole"RoleArn.of_jsoninmake?encryptionConfiguration?sessionIdleTimeoutInMinutes?idleTimeoutSeconds?workingDirectory?executionRole()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains session configuration information."]moduleGetSessionResponse=structtypenonrect={sessionId:SessionId.toption[@ocaml.doc"The session ID."];description:DescriptionString.toption[@ocaml.doc"The session description."];workGroup:WorkGroupName.toption[@ocaml.doc"The workgroup to which the session belongs."];engineVersion:NameString.toption[@ocaml.doc"The engine version used by the session (for example, PySpark engine version 3). You can get a list of engine versions by calling ListEngineVersions."];engineConfiguration:EngineConfiguration.toption[@ocaml.doc"Contains engine configuration information like DPU usage."];notebookVersion:NameString.toption[@ocaml.doc"The notebook version."];monitoringConfiguration:MonitoringConfiguration.toption;sessionConfiguration:SessionConfiguration.toption[@ocaml.doc"Contains the workgroup configuration information used by the session."];status:SessionStatus.toption[@ocaml.doc"Contains information about the status of the session."];statistics:SessionStatistics.toption[@ocaml.doc"Contains the DPU execution time."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?sessionId=fun?description->fun?workGroup->fun?engineVersion->fun?engineConfiguration->fun?notebookVersion->fun?monitoringConfiguration->fun?sessionConfiguration->fun?status->fun?statistics->fun()->{sessionId;description;workGroup;engineVersion;engineConfiguration;notebookVersion;monitoringConfiguration;sessionConfiguration;status;statistics}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("SessionId",(Option.mapx.sessionId~f:SessionId.to_value));("Description",(Option.mapx.description~f:DescriptionString.to_value));("WorkGroup",(Option.mapx.workGroup~f:WorkGroupName.to_value));("EngineVersion",(Option.mapx.engineVersion~f:NameString.to_value));("EngineConfiguration",(Option.mapx.engineConfiguration~f:EngineConfiguration.to_value));("NotebookVersion",(Option.mapx.notebookVersion~f:NameString.to_value));("MonitoringConfiguration",(Option.mapx.monitoringConfiguration~f:MonitoringConfiguration.to_value));("SessionConfiguration",(Option.mapx.sessionConfiguration~f:SessionConfiguration.to_value));("Status",(Option.mapx.status~f:SessionStatus.to_value));("Statistics",(Option.mapx.statistics~f:SessionStatistics.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatistics=(Option.map~f:SessionStatistics.of_xml)(Xml.childxml_arg0"Statistics")inletstatus=(Option.map~f:SessionStatus.of_xml)(Xml.childxml_arg0"Status")inletsessionConfiguration=(Option.map~f:SessionConfiguration.of_xml)(Xml.childxml_arg0"SessionConfiguration")inletmonitoringConfiguration=(Option.map~f:MonitoringConfiguration.of_xml)(Xml.childxml_arg0"MonitoringConfiguration")inletnotebookVersion=(Option.map~f:NameString.of_xml)(Xml.childxml_arg0"NotebookVersion")inletengineConfiguration=(Option.map~f:EngineConfiguration.of_xml)(Xml.childxml_arg0"EngineConfiguration")inletengineVersion=(Option.map~f:NameString.of_xml)(Xml.childxml_arg0"EngineVersion")inletworkGroup=(Option.map~f:WorkGroupName.of_xml)(Xml.childxml_arg0"WorkGroup")inletdescription=(Option.map~f:DescriptionString.of_xml)(Xml.childxml_arg0"Description")inletsessionId=(Option.map~f:SessionId.of_xml)(Xml.childxml_arg0"SessionId")inmake?statistics?status?sessionConfiguration?monitoringConfiguration?notebookVersion?engineConfiguration?engineVersion?workGroup?description?sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatistics=field_mapjson__"Statistics"SessionStatistics.of_jsoninletstatus=field_mapjson__"Status"SessionStatus.of_jsoninletsessionConfiguration=field_mapjson__"SessionConfiguration"SessionConfiguration.of_jsoninletmonitoringConfiguration=field_mapjson__"MonitoringConfiguration"MonitoringConfiguration.of_jsoninletnotebookVersion=field_mapjson__"NotebookVersion"NameString.of_jsoninletengineConfiguration=field_mapjson__"EngineConfiguration"EngineConfiguration.of_jsoninletengineVersion=field_mapjson__"EngineVersion"NameString.of_jsoninletworkGroup=field_mapjson__"WorkGroup"WorkGroupName.of_jsoninletdescription=field_mapjson__"Description"DescriptionString.of_jsoninletsessionId=field_mapjson__"SessionId"SessionId.of_jsoninmake?statistics?status?sessionConfiguration?monitoringConfiguration?notebookVersion?engineConfiguration?engineVersion?workGroup?description?sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the full details of a previously created session, including the session status and configuration."]moduleGetSessionStatusRequest=structtypenonrect={sessionId:SessionId.t[@ocaml.doc"The session ID."]}letcontext_="GetSessionStatusRequest"letmake~sessionId=fun()->{sessionId}letto_valuex=structure_to_value[("SessionId",(Some(SessionId.to_valuex.sessionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionId=SessionId.of_xml(Xml.child_exn~context:context_xml_arg0"SessionId")inmake~sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionId=field_map_exnjson__"SessionId"SessionId.of_jsoninmake~sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the current status of a session."]moduleGetSessionStatusResponse=structtypenonrect={sessionId:SessionId.toption[@ocaml.doc"The session ID."];status:SessionStatus.toption[@ocaml.doc"Contains information about the status of the session."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?sessionId=fun?status->fun()->{sessionId;status}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("SessionId",(Option.mapx.sessionId~f:SessionId.to_value));("Status",(Option.mapx.status~f:SessionStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:SessionStatus.of_xml)(Xml.childxml_arg0"Status")inletsessionId=(Option.map~f:SessionId.of_xml)(Xml.childxml_arg0"SessionId")inmake?status?sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"SessionStatus.of_jsoninletsessionId=field_mapjson__"SessionId"SessionId.of_jsoninmake?status?sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the current status of a session."]moduleGetTableMetadataInput=structtypenonrect={catalogName:CatalogNameString.t[@ocaml.doc"The name of the data catalog that contains the database and table metadata to return."];databaseName:NameString.t[@ocaml.doc"The name of the database that contains the table metadata to return."];tableName:NameString.t[@ocaml.doc"The name of the table for which metadata is returned."];workGroup:WorkGroupName.toption[@ocaml.doc"The name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center enabled Glue Data Catalog."]}letcontext_="GetTableMetadataInput"letmake?workGroup=fun~catalogName->fun~databaseName->fun~tableName->fun()->{workGroup;catalogName;databaseName;tableName}letto_valuex=structure_to_value[("CatalogName",(Some(CatalogNameString.to_valuex.catalogName)));("DatabaseName",(Some(NameString.to_valuex.databaseName)));("TableName",(Some(NameString.to_valuex.tableName)));("WorkGroup",(Option.mapx.workGroup~f:WorkGroupName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkGroup=(Option.map~f:WorkGroupName.of_xml)(Xml.childxml_arg0"WorkGroup")inlettableName=NameString.of_xml(Xml.child_exn~context:context_xml_arg0"TableName")inletdatabaseName=NameString.of_xml(Xml.child_exn~context:context_xml_arg0"DatabaseName")inletcatalogName=CatalogNameString.of_xml(Xml.child_exn~context:context_xml_arg0"CatalogName")inmake?workGroup~tableName~databaseName~catalogName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkGroup=field_mapjson__"WorkGroup"WorkGroupName.of_jsoninlettableName=field_map_exnjson__"TableName"NameString.of_jsoninletdatabaseName=field_map_exnjson__"DatabaseName"NameString.of_jsoninletcatalogName=field_map_exnjson__"CatalogName"CatalogNameString.of_jsoninmake?workGroup~tableName~databaseName~catalogName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns table metadata for the specified catalog, database, and table."]moduleTableTypeString=structtypenonrect=stringletcontext_="TableTypeString"letmakei=letopenResultinok_or_failwith(check_string_maxi~max:255);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TableTypeString"jletto_json=simple_to_jsonto_valueendmoduleTableMetadata=structtypenonrect={name:NameString.toption[@ocaml.doc"The name of the table."];createTime:Timestamp.toption[@ocaml.doc"The time that the table was created."];lastAccessTime:Timestamp.toption[@ocaml.doc"The last time the table was accessed."];tableType:TableTypeString.toption[@ocaml.doc"The type of table. In Athena, only EXTERNAL_TABLE is supported."];columns:ColumnList.toption[@ocaml.doc"A list of the columns in the table."];partitionKeys:ColumnList.toption[@ocaml.doc"A list of the partition keys in the table."];parameters:ParametersMap.toption[@ocaml.doc"A set of custom key/value pairs for table properties."]}letmake?name=fun?createTime->fun?lastAccessTime->fun?tableType->fun?columns->fun?partitionKeys->fun?parameters->fun()->{name;createTime;lastAccessTime;tableType;columns;partitionKeys;parameters}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:NameString.to_value));("CreateTime",(Option.mapx.createTime~f:Timestamp.to_value));("LastAccessTime",(Option.mapx.lastAccessTime~f:Timestamp.to_value));("TableType",(Option.mapx.tableType~f:TableTypeString.to_value));("Columns",(Option.mapx.columns~f:ColumnList.to_value));("PartitionKeys",(Option.mapx.partitionKeys~f:ColumnList.to_value));("Parameters",(Option.mapx.parameters~f:ParametersMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letparameters=(Option.map~f:ParametersMap.of_xml)(Xml.childxml_arg0"Parameters")inletpartitionKeys=(Option.map~f:ColumnList.of_xml)(Xml.childxml_arg0"PartitionKeys")inletcolumns=(Option.map~f:ColumnList.of_xml)(Xml.childxml_arg0"Columns")inlettableType=(Option.map~f:TableTypeString.of_xml)(Xml.childxml_arg0"TableType")inletlastAccessTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastAccessTime")inletcreateTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreateTime")inletname=(Option.map~f:NameString.of_xml)(Xml.childxml_arg0"Name")inmake?parameters?partitionKeys?columns?tableType?lastAccessTime?createTime?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letparameters=field_mapjson__"Parameters"ParametersMap.of_jsoninletpartitionKeys=field_mapjson__"PartitionKeys"ColumnList.of_jsoninletcolumns=field_mapjson__"Columns"ColumnList.of_jsoninlettableType=field_mapjson__"TableType"TableTypeString.of_jsoninletlastAccessTime=field_mapjson__"LastAccessTime"Timestamp.of_jsoninletcreateTime=field_mapjson__"CreateTime"Timestamp.of_jsoninletname=field_mapjson__"Name"NameString.of_jsoninmake?parameters?partitionKeys?columns?tableType?lastAccessTime?createTime?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains metadata for a table."]moduleGetTableMetadataOutput=structtypenonrect={tableMetadata:TableMetadata.toption[@ocaml.doc"An object that contains table metadata."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`MetadataExceptionofMetadataException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tableMetadata=fun()->{tableMetadata}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"MetadataException"->`MetadataException(MetadataException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"MetadataException"->`MetadataException(MetadataException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`MetadataExceptione->`Assoc[("error",(`String"MetadataException"));("details",(MetadataException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("TableMetadata",(Option.mapx.tableMetadata~f:TableMetadata.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettableMetadata=(Option.map~f:TableMetadata.of_xml)(Xml.childxml_arg0"TableMetadata")inmake?tableMetadata()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettableMetadata=field_mapjson__"TableMetadata"TableMetadata.of_jsoninmake?tableMetadata()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns table metadata for the specified catalog, database, and table."]moduleGetWorkGroupInput=structtypenonrect={workGroup:WorkGroupName.t[@ocaml.doc"The name of the workgroup."]}letcontext_="GetWorkGroupInput"letmake~workGroup=fun()->{workGroup}letto_valuex=structure_to_value[("WorkGroup",(Some(WorkGroupName.to_valuex.workGroup)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkGroup=WorkGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"WorkGroup")inmake~workGroup()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkGroup=field_map_exnjson__"WorkGroup"WorkGroupName.of_jsoninmake~workGroup()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about the workgroup with the specified name."]moduleWorkGroupState=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 WorkGroupState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WorkGroupState"j)letto_json=simple_to_jsonto_valueendmoduleIdentityCenterApplicationArn=structtypenonrect=stringletcontext_="IdentityCenterApplicationArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b):sso::\\d{12}:application/(sso)?ins-[a-zA-Z0-9-.]{16}/apl-[a-zA-Z0-9]{16}$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IdentityCenterApplicationArn"jletto_json=simple_to_jsonto_valueendmoduleWorkGroup=structtypenonrect={name:WorkGroupName.toption[@ocaml.doc"The workgroup name."];state:WorkGroupState.toption[@ocaml.doc"The state of the workgroup: ENABLED or DISABLED."];configuration:WorkGroupConfiguration.toption[@ocaml.doc"The configuration of the workgroup, which includes the location in Amazon S3 where query and calculation results are stored, the encryption configuration, if any, used for query and calculation results; whether the Amazon CloudWatch Metrics are enabled for the workgroup; whether workgroup settings override client-side settings; and the data usage limits for the amount of data scanned per query or per workgroup. The workgroup settings override is specified in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See WorkGroupConfiguration$EnforceWorkGroupConfiguration."];description:WorkGroupDescriptionString.toption[@ocaml.doc"The workgroup description."];creationTime:Date.toption[@ocaml.doc"The date and time the workgroup was created."];identityCenterApplicationArn:IdentityCenterApplicationArn.toption[@ocaml.doc"The ARN of the IAM Identity Center enabled application associated with the workgroup."]}letmake?name=fun?state->fun?configuration->fun?description->fun?creationTime->fun?identityCenterApplicationArn->fun()->{name;state;configuration;description;creationTime;identityCenterApplicationArn}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:WorkGroupName.to_value));("State",(Option.mapx.state~f:WorkGroupState.to_value));("Configuration",(Option.mapx.configuration~f:WorkGroupConfiguration.to_value));("Description",(Option.mapx.description~f:WorkGroupDescriptionString.to_value));("CreationTime",(Option.mapx.creationTime~f:Date.to_value));("IdentityCenterApplicationArn",(Option.mapx.identityCenterApplicationArn~f:IdentityCenterApplicationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentityCenterApplicationArn=(Option.map~f:IdentityCenterApplicationArn.of_xml)(Xml.childxml_arg0"IdentityCenterApplicationArn")inletcreationTime=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"CreationTime")inletdescription=(Option.map~f:WorkGroupDescriptionString.of_xml)(Xml.childxml_arg0"Description")inletconfiguration=(Option.map~f:WorkGroupConfiguration.of_xml)(Xml.childxml_arg0"Configuration")inletstate=(Option.map~f:WorkGroupState.of_xml)(Xml.childxml_arg0"State")inletname=(Option.map~f:WorkGroupName.of_xml)(Xml.childxml_arg0"Name")inmake?identityCenterApplicationArn?creationTime?description?configuration?state?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentityCenterApplicationArn=field_mapjson__"IdentityCenterApplicationArn"IdentityCenterApplicationArn.of_jsoninletcreationTime=field_mapjson__"CreationTime"Date.of_jsoninletdescription=field_mapjson__"Description"WorkGroupDescriptionString.of_jsoninletconfiguration=field_mapjson__"Configuration"WorkGroupConfiguration.of_jsoninletstate=field_mapjson__"State"WorkGroupState.of_jsoninletname=field_mapjson__"Name"WorkGroupName.of_jsoninmake?identityCenterApplicationArn?creationTime?description?configuration?state?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A workgroup, which contains a name, description, creation time, state, and other configuration, listed under WorkGroup$Configuration. Each workgroup enables you to isolate queries for you or your group of users from other queries in the same account, to configure the query results location and the encryption configuration (known as workgroup settings), to enable sending query metrics to Amazon CloudWatch, and to establish per-query data usage control limits for all queries in a workgroup. The workgroup settings override is specified in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See WorkGroupConfiguration$EnforceWorkGroupConfiguration."]moduleGetWorkGroupOutput=structtypenonrect={workGroup:WorkGroup.toption[@ocaml.doc"Information about the workgroup."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?workGroup=fun()->{workGroup}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("WorkGroup",(Option.mapx.workGroup~f:WorkGroup.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkGroup=(Option.map~f:WorkGroup.of_xml)(Xml.childxml_arg0"WorkGroup")inmake?workGroup()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkGroup=field_mapjson__"WorkGroup"WorkGroup.of_jsoninmake?workGroup()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about the workgroup with the specified name."]moduleImportNotebookInput=structtypenonrect={workGroup:WorkGroupName.t[@ocaml.doc"The name of the Spark enabled workgroup to import the notebook to."];name:NotebookName.t[@ocaml.doc"The name of the notebook to import."];payload:Payload.toption[@ocaml.doc"The notebook content to be imported. The payload must be in ipynb format."];type_:NotebookType.t[@ocaml.doc"The notebook content type. Currently, the only valid type is IPYNB."];notebookS3LocationUri:S3Uri.toption[@ocaml.doc"A URI that specifies the Amazon S3 location of a notebook file in ipynb format."];clientRequestToken:ClientRequestToken.toption[@ocaml.doc"A unique case-sensitive string used to ensure the request to import the notebook is idempotent (executes only once). This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for you. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail."]}letcontext_="ImportNotebookInput"letmake?payload=fun?notebookS3LocationUri->fun?clientRequestToken->fun~workGroup->fun~name->fun~type_->fun()->{payload;notebookS3LocationUri;clientRequestToken;workGroup;name;type_}letto_valuex=structure_to_value[("WorkGroup",(Some(WorkGroupName.to_valuex.workGroup)));("Name",(Some(NotebookName.to_valuex.name)));("Payload",(Option.mapx.payload~f:Payload.to_value));("Type",(Some(NotebookType.to_valuex.type_)));("NotebookS3LocationUri",(Option.mapx.notebookS3LocationUri~f:S3Uri.to_value));("ClientRequestToken",(Option.mapx.clientRequestToken~f:ClientRequestToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientRequestToken=(Option.map~f:ClientRequestToken.of_xml)(Xml.childxml_arg0"ClientRequestToken")inletnotebookS3LocationUri=(Option.map~f:S3Uri.of_xml)(Xml.childxml_arg0"NotebookS3LocationUri")inlettype_=NotebookType.of_xml(Xml.child_exn~context:context_xml_arg0"Type")inletpayload=(Option.map~f:Payload.of_xml)(Xml.childxml_arg0"Payload")inletname=NotebookName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inletworkGroup=WorkGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"WorkGroup")inmake?clientRequestToken?notebookS3LocationUri~type_?payload~name~workGroup()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientRequestToken=field_mapjson__"ClientRequestToken"ClientRequestToken.of_jsoninletnotebookS3LocationUri=field_mapjson__"NotebookS3LocationUri"S3Uri.of_jsoninlettype_=field_map_exnjson__"Type"NotebookType.of_jsoninletpayload=field_mapjson__"Payload"Payload.of_jsoninletname=field_map_exnjson__"Name"NotebookName.of_jsoninletworkGroup=field_map_exnjson__"WorkGroup"WorkGroupName.of_jsoninmake?clientRequestToken?notebookS3LocationUri~type_?payload~name~workGroup()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Imports a single ipynb file to a Spark enabled workgroup. To import the notebook, the request must specify a value for either Payload or NoteBookS3LocationUri. If neither is specified or both are specified, an InvalidRequestException occurs. The maximum file size that can be imported is 10 megabytes. If an ipynb file with the same name already exists in the workgroup, throws an error."]moduleImportNotebookOutput=structtypenonrect={notebookId:NotebookId.toption[@ocaml.doc"The ID assigned to the imported notebook."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?notebookId=fun()->{notebookId}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NotebookId",(Option.mapx.notebookId~f:NotebookId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnotebookId=(Option.map~f:NotebookId.of_xml)(Xml.childxml_arg0"NotebookId")inmake?notebookId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnotebookId=field_mapjson__"NotebookId"NotebookId.of_jsoninmake?notebookId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Imports a single ipynb file to a Spark enabled workgroup. To import the notebook, the request must specify a value for either Payload or NoteBookS3LocationUri. If neither is specified or both are specified, an InvalidRequestException occurs. The maximum file size that can be imported is 10 megabytes. If an ipynb file with the same name already exists in the workgroup, throws an error."]moduleMaxApplicationDPUSizesCount=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 MaxApplicationDPUSizesCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListApplicationDPUSizesInput=structtypenonrect={maxResults:MaxApplicationDPUSizesCount.toption[@ocaml.doc"Specifies the maximum number of results to return."];nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated."]}letmake?maxResults=fun?nextToken->fun()->{maxResults;nextToken}letto_valuex=structure_to_value[("MaxResults",(Option.mapx.maxResults~f:MaxApplicationDPUSizesCount.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxApplicationDPUSizesCount.of_xml)(Xml.childxml_arg0"MaxResults")inmake?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxApplicationDPUSizesCount.of_jsoninmake?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the supported DPU sizes for the supported application runtimes (for example, Athena notebook version 1)."]moduleListApplicationDPUSizesOutput=structtypenonrect={applicationDPUSizes:ApplicationDPUSizesList.toption[@ocaml.doc"A list of the supported DPU sizes that the application runtime supports."];nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?applicationDPUSizes=fun?nextToken->fun()->{applicationDPUSizes;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ApplicationDPUSizes",(Option.mapx.applicationDPUSizes~f:ApplicationDPUSizesList.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletapplicationDPUSizes=(Option.map~f:ApplicationDPUSizesList.of_xml)(Xml.childxml_arg0"ApplicationDPUSizes")inmake?nextToken?applicationDPUSizes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletapplicationDPUSizes=field_mapjson__"ApplicationDPUSizes"ApplicationDPUSizesList.of_jsoninmake?nextToken?applicationDPUSizes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the supported DPU sizes for the supported application runtimes (for example, Athena notebook version 1)."]moduleSessionManagerToken=structtypenonrect=stringletcontext_="SessionManagerToken"letmakei=letopenResultinok_or_failwith(check_string_maxi~max:2048);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SessionManagerToken"jletto_json=simple_to_jsonto_valueendmoduleMaxCalculationsCount=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 MaxCalculationsCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListCalculationExecutionsRequest=structtypenonrect={sessionId:SessionId.t[@ocaml.doc"The session ID."];stateFilter:CalculationExecutionState.toption[@ocaml.doc"A filter for a specific calculation execution state. A description of each state follows. CREATING - The calculation is in the process of being created. CREATED - The calculation has been created and is ready to run. QUEUED - The calculation has been queued for processing. RUNNING - The calculation is running. CANCELING - A request to cancel the calculation has been received and the system is working to stop it. CANCELED - The calculation is no longer running as the result of a cancel request. COMPLETED - The calculation has completed without error. FAILED - The calculation failed and is no longer running."];maxResults:MaxCalculationsCount.toption[@ocaml.doc"The maximum number of calculation executions to return."];nextToken:SessionManagerToken.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."]}letcontext_="ListCalculationExecutionsRequest"letmake?stateFilter=fun?maxResults->fun?nextToken->fun~sessionId->fun()->{stateFilter;maxResults;nextToken;sessionId}letto_valuex=structure_to_value[("SessionId",(Some(SessionId.to_valuex.sessionId)));("StateFilter",(Option.mapx.stateFilter~f:CalculationExecutionState.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxCalculationsCount.to_value));("NextToken",(Option.mapx.nextToken~f:SessionManagerToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:SessionManagerToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxCalculationsCount.of_xml)(Xml.childxml_arg0"MaxResults")inletstateFilter=(Option.map~f:CalculationExecutionState.of_xml)(Xml.childxml_arg0"StateFilter")inletsessionId=SessionId.of_xml(Xml.child_exn~context:context_xml_arg0"SessionId")inmake?nextToken?maxResults?stateFilter~sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"SessionManagerToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxCalculationsCount.of_jsoninletstateFilter=field_mapjson__"StateFilter"CalculationExecutionState.of_jsoninletsessionId=field_map_exnjson__"SessionId"SessionId.of_jsoninmake?nextToken?maxResults?stateFilter~sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the calculations that have been submitted to a session in descending order. Newer calculations are listed first; older calculations are listed later."]moduleListCalculationExecutionsResponse=structtypenonrect={nextToken:SessionManagerToken.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."];calculations:CalculationsList.toption[@ocaml.doc"A list of CalculationSummary objects."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?calculations->fun()->{nextToken;calculations}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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:SessionManagerToken.to_value));("Calculations",(Option.mapx.calculations~f:CalculationsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcalculations=(Option.map~f:CalculationsList.of_xml)(Xml.childxml_arg0"Calculations")inletnextToken=(Option.map~f:SessionManagerToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?calculations?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcalculations=field_mapjson__"Calculations"CalculationsList.of_jsoninletnextToken=field_mapjson__"NextToken"SessionManagerToken.of_jsoninmake?calculations?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the calculations that have been submitted to a session in descending order. Newer calculations are listed first; older calculations are listed later."]moduleMaxCapacityReservationsCount=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(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 MaxCapacityReservationsCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListCapacityReservationsInput=structtypenonrect={nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated."];maxResults:MaxCapacityReservationsCount.toption[@ocaml.doc"Specifies the maximum number of results to return."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxCapacityReservationsCount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxCapacityReservationsCount.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.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"MaxCapacityReservationsCount.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the capacity reservations for the current account."]moduleListCapacityReservationsOutput=structtypenonrect={nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."];capacityReservations:CapacityReservationsList.toption[@ocaml.doc"The capacity reservations for the current account."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?capacityReservations->fun()->{nextToken;capacityReservations}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.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:Token.to_value));("CapacityReservations",(Option.mapx.capacityReservations~f:CapacityReservationsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcapacityReservations=(Option.map~f:CapacityReservationsList.of_xml)(Xml.childxml_arg0"CapacityReservations")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inmake?capacityReservations?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcapacityReservations=field_mapjson__"CapacityReservations"CapacityReservationsList.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninmake?capacityReservations?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the capacity reservations for the current account."]moduleMaxDataCatalogsCount=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(fun()->check_int_mini~min:2));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 MaxDataCatalogsCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListDataCatalogsInput=structtypenonrect={nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."];maxResults:MaxDataCatalogsCount.toption[@ocaml.doc"Specifies the maximum number of data catalogs to return."];workGroup:WorkGroupName.toption[@ocaml.doc"The name of the workgroup. Required if making an IAM Identity Center request."]}letmake?nextToken=fun?maxResults->fun?workGroup->fun()->{nextToken;maxResults;workGroup}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxDataCatalogsCount.to_value));("WorkGroup",(Option.mapx.workGroup~f:WorkGroupName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkGroup=(Option.map~f:WorkGroupName.of_xml)(Xml.childxml_arg0"WorkGroup")inletmaxResults=(Option.map~f:MaxDataCatalogsCount.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inmake?workGroup?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkGroup=field_mapjson__"WorkGroup"WorkGroupName.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxDataCatalogsCount.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninmake?workGroup?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the data catalogs in the current Amazon Web Services account. In the Athena console, data catalogs are listed as \"data sources\" on the Data sources page under the Data source name column."]moduleListDataCatalogsOutput=structtypenonrect={dataCatalogsSummary:DataCatalogSummaryList.toption[@ocaml.doc"A summary list of data catalogs."];nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?dataCatalogsSummary=fun?nextToken->fun()->{dataCatalogsSummary;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("DataCatalogsSummary",(Option.mapx.dataCatalogsSummary~f:DataCatalogSummaryList.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletdataCatalogsSummary=(Option.map~f:DataCatalogSummaryList.of_xml)(Xml.childxml_arg0"DataCatalogsSummary")inmake?nextToken?dataCatalogsSummary()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletdataCatalogsSummary=field_mapjson__"DataCatalogsSummary"DataCatalogSummaryList.of_jsoninmake?nextToken?dataCatalogsSummary()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the data catalogs in the current Amazon Web Services account. In the Athena console, data catalogs are listed as \"data sources\" on the Data sources page under the Data source name column."]moduleMaxDatabasesCount=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(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 MaxDatabasesCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListDatabasesInput=structtypenonrect={catalogName:CatalogNameString.t[@ocaml.doc"The name of the data catalog that contains the databases to return."];nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."];maxResults:MaxDatabasesCount.toption[@ocaml.doc"Specifies the maximum number of results to return."];workGroup:WorkGroupName.toption[@ocaml.doc"The name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center enabled Glue Data Catalog."]}letcontext_="ListDatabasesInput"letmake?nextToken=fun?maxResults->fun?workGroup->fun~catalogName->fun()->{nextToken;maxResults;workGroup;catalogName}letto_valuex=structure_to_value[("CatalogName",(Some(CatalogNameString.to_valuex.catalogName)));("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxDatabasesCount.to_value));("WorkGroup",(Option.mapx.workGroup~f:WorkGroupName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkGroup=(Option.map~f:WorkGroupName.of_xml)(Xml.childxml_arg0"WorkGroup")inletmaxResults=(Option.map~f:MaxDatabasesCount.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletcatalogName=CatalogNameString.of_xml(Xml.child_exn~context:context_xml_arg0"CatalogName")inmake?workGroup?maxResults?nextToken~catalogName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkGroup=field_mapjson__"WorkGroup"WorkGroupName.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxDatabasesCount.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninletcatalogName=field_map_exnjson__"CatalogName"CatalogNameString.of_jsoninmake?workGroup?maxResults?nextToken~catalogName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the databases in the specified data catalog."]moduleListDatabasesOutput=structtypenonrect={databaseList:DatabaseList.toption[@ocaml.doc"A list of databases from a data catalog."];nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`MetadataExceptionofMetadataException.t|`Unknown_operation_errorof(string*stringoption)]letmake?databaseList=fun?nextToken->fun()->{databaseList;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"MetadataException"->`MetadataException(MetadataException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"MetadataException"->`MetadataException(MetadataException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`MetadataExceptione->`Assoc[("error",(`String"MetadataException"));("details",(MetadataException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("DatabaseList",(Option.mapx.databaseList~f:DatabaseList.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletdatabaseList=(Option.map~f:DatabaseList.of_xml)(Xml.childxml_arg0"DatabaseList")inmake?nextToken?databaseList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletdatabaseList=field_mapjson__"DatabaseList"DatabaseList.of_jsoninmake?nextToken?databaseList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the databases in the specified data catalog."]moduleMaxEngineVersionsCount=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:10)>>=(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 MaxEngineVersionsCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListEngineVersionsInput=structtypenonrect={nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."];maxResults:MaxEngineVersionsCount.toption[@ocaml.doc"The maximum number of engine versions to return in this request."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxEngineVersionsCount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxEngineVersionsCount.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.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"MaxEngineVersionsCount.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of engine versions that are available to choose from, including the Auto option."]moduleListEngineVersionsOutput=structtypenonrect={engineVersions:EngineVersionsList.toption[@ocaml.doc"A list of engine versions that are available to choose from."];nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?engineVersions=fun?nextToken->fun()->{engineVersions;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("EngineVersions",(Option.mapx.engineVersions~f:EngineVersionsList.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletengineVersions=(Option.map~f:EngineVersionsList.of_xml)(Xml.childxml_arg0"EngineVersions")inmake?nextToken?engineVersions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletengineVersions=field_mapjson__"EngineVersions"EngineVersionsList.of_jsoninmake?nextToken?engineVersions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of engine versions that are available to choose from, including the Auto option."]moduleMaxListExecutorsCount=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 MaxListExecutorsCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListExecutorsRequest=structtypenonrect={sessionId:SessionId.t[@ocaml.doc"The session ID."];executorStateFilter:ExecutorState.toption[@ocaml.doc"A filter for a specific executor state. A description of each state follows. CREATING - The executor is being started, including acquiring resources. CREATED - The executor has been started. REGISTERED - The executor has been registered. TERMINATING - The executor is in the process of shutting down. TERMINATED - The executor is no longer running. FAILED - Due to a failure, the executor is no longer running."];maxResults:MaxListExecutorsCount.toption[@ocaml.doc"The maximum number of executors to return."];nextToken:SessionManagerToken.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."]}letcontext_="ListExecutorsRequest"letmake?executorStateFilter=fun?maxResults->fun?nextToken->fun~sessionId->fun()->{executorStateFilter;maxResults;nextToken;sessionId}letto_valuex=structure_to_value[("SessionId",(Some(SessionId.to_valuex.sessionId)));("ExecutorStateFilter",(Option.mapx.executorStateFilter~f:ExecutorState.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxListExecutorsCount.to_value));("NextToken",(Option.mapx.nextToken~f:SessionManagerToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:SessionManagerToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxListExecutorsCount.of_xml)(Xml.childxml_arg0"MaxResults")inletexecutorStateFilter=(Option.map~f:ExecutorState.of_xml)(Xml.childxml_arg0"ExecutorStateFilter")inletsessionId=SessionId.of_xml(Xml.child_exn~context:context_xml_arg0"SessionId")inmake?nextToken?maxResults?executorStateFilter~sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"SessionManagerToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxListExecutorsCount.of_jsoninletexecutorStateFilter=field_mapjson__"ExecutorStateFilter"ExecutorState.of_jsoninletsessionId=field_map_exnjson__"SessionId"SessionId.of_jsoninmake?nextToken?maxResults?executorStateFilter~sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists, in descending order, the executors that joined a session. Newer executors are listed first; older executors are listed later. The result can be optionally filtered by state."]moduleListExecutorsResponse=structtypenonrect={sessionId:SessionId.toption[@ocaml.doc"The session ID."];nextToken:SessionManagerToken.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."];executorsSummary:ExecutorsSummaryList.toption[@ocaml.doc"Contains summary information about the executor."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?sessionId=fun?nextToken->fun?executorsSummary->fun()->{sessionId;nextToken;executorsSummary}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("SessionId",(Option.mapx.sessionId~f:SessionId.to_value));("NextToken",(Option.mapx.nextToken~f:SessionManagerToken.to_value));("ExecutorsSummary",(Option.mapx.executorsSummary~f:ExecutorsSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexecutorsSummary=(Option.map~f:ExecutorsSummaryList.of_xml)(Xml.childxml_arg0"ExecutorsSummary")inletnextToken=(Option.map~f:SessionManagerToken.of_xml)(Xml.childxml_arg0"NextToken")inletsessionId=(Option.map~f:SessionId.of_xml)(Xml.childxml_arg0"SessionId")inmake?executorsSummary?nextToken?sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexecutorsSummary=field_mapjson__"ExecutorsSummary"ExecutorsSummaryList.of_jsoninletnextToken=field_mapjson__"NextToken"SessionManagerToken.of_jsoninletsessionId=field_mapjson__"SessionId"SessionId.of_jsoninmake?executorsSummary?nextToken?sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists, in descending order, the executors that joined a session. Newer executors are listed first; older executors are listed later. The result can be optionally filtered by state."]moduleMaxNamedQueriesCount=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxNamedQueriesCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListNamedQueriesInput=structtypenonrect={nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."];maxResults:MaxNamedQueriesCount.toption[@ocaml.doc"The maximum number of queries to return in this request."];workGroup:WorkGroupName.toption[@ocaml.doc"The name of the workgroup from which the named queries are being returned. If a workgroup is not specified, the saved queries for the primary workgroup are returned."]}letmake?nextToken=fun?maxResults->fun?workGroup->fun()->{nextToken;maxResults;workGroup}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxNamedQueriesCount.to_value));("WorkGroup",(Option.mapx.workGroup~f:WorkGroupName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkGroup=(Option.map~f:WorkGroupName.of_xml)(Xml.childxml_arg0"WorkGroup")inletmaxResults=(Option.map~f:MaxNamedQueriesCount.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inmake?workGroup?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkGroup=field_mapjson__"WorkGroup"WorkGroupName.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxNamedQueriesCount.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninmake?workGroup?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides a list of available query IDs only for queries saved in the specified workgroup. Requires that you have access to the specified workgroup. If a workgroup is not specified, lists the saved queries for the primary workgroup."]moduleListNamedQueriesOutput=structtypenonrect={namedQueryIds:NamedQueryIdList.toption[@ocaml.doc"The list of unique query IDs."];nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?namedQueryIds=fun?nextToken->fun()->{namedQueryIds;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NamedQueryIds",(Option.mapx.namedQueryIds~f:NamedQueryIdList.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletnamedQueryIds=(Option.map~f:NamedQueryIdList.of_xml)(Xml.childxml_arg0"NamedQueryIds")inmake?nextToken?namedQueryIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletnamedQueryIds=field_mapjson__"NamedQueryIds"NamedQueryIdList.of_jsoninmake?nextToken?namedQueryIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides a list of available query IDs only for queries saved in the specified workgroup. Requires that you have access to the specified workgroup. If a workgroup is not specified, lists the saved queries for the primary workgroup."]moduleMaxNotebooksCount=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(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 MaxNotebooksCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListNotebookMetadataInput=structtypenonrect={filters:FilterDefinition.toption[@ocaml.doc"Search filter string."];nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated."];maxResults:MaxNotebooksCount.toption[@ocaml.doc"Specifies the maximum number of results to return."];workGroup:WorkGroupName.t[@ocaml.doc"The name of the Spark enabled workgroup to retrieve notebook metadata for."]}letcontext_="ListNotebookMetadataInput"letmake?filters=fun?nextToken->fun?maxResults->fun~workGroup->fun()->{filters;nextToken;maxResults;workGroup}letto_valuex=structure_to_value[("Filters",(Option.mapx.filters~f:FilterDefinition.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxNotebooksCount.to_value));("WorkGroup",(Some(WorkGroupName.to_valuex.workGroup)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkGroup=WorkGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"WorkGroup")inletmaxResults=(Option.map~f:MaxNotebooksCount.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletfilters=(Option.map~f:FilterDefinition.of_xml)(Xml.childxml_arg0"Filters")inmake~workGroup?maxResults?nextToken?filters()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkGroup=field_map_exnjson__"WorkGroup"WorkGroupName.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxNotebooksCount.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninletfilters=field_mapjson__"Filters"FilterDefinition.of_jsoninmake~workGroup?maxResults?nextToken?filters()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Displays the notebook files for the specified workgroup in paginated format."]moduleNotebookMetadataArray=structtypenonrect=NotebookMetadata.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:NotebookMetadata.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:NotebookMetadata.of_xml)letof_jsonj=list_of_json~kind:"NotebookMetadataArray"~of_json:NotebookMetadata.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListNotebookMetadataOutput=structtypenonrect={nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."];notebookMetadataList:NotebookMetadataArray.toption[@ocaml.doc"The list of notebook metadata for the specified workgroup."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?notebookMetadataList->fun()->{nextToken;notebookMetadataList}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.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:Token.to_value));("NotebookMetadataList",(Option.mapx.notebookMetadataList~f:NotebookMetadataArray.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnotebookMetadataList=(Option.map~f:NotebookMetadataArray.of_xml)(Xml.childxml_arg0"NotebookMetadataList")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inmake?notebookMetadataList?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnotebookMetadataList=field_mapjson__"NotebookMetadataList"NotebookMetadataArray.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninmake?notebookMetadataList?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Displays the notebook files for the specified workgroup in paginated format."]moduleMaxSessionsCount=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 MaxSessionsCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListNotebookSessionsRequest=structtypenonrect={notebookId:NotebookId.t[@ocaml.doc"The ID of the notebook to list sessions for."];maxResults:MaxSessionsCount.toption[@ocaml.doc"The maximum number of notebook sessions to return."];nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."]}letcontext_="ListNotebookSessionsRequest"letmake?maxResults=fun?nextToken->fun~notebookId->fun()->{maxResults;nextToken;notebookId}letto_valuex=structure_to_value[("NotebookId",(Some(NotebookId.to_valuex.notebookId)));("MaxResults",(Option.mapx.maxResults~f:MaxSessionsCount.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxSessionsCount.of_xml)(Xml.childxml_arg0"MaxResults")inletnotebookId=NotebookId.of_xml(Xml.child_exn~context:context_xml_arg0"NotebookId")inmake?nextToken?maxResults~notebookId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxSessionsCount.of_jsoninletnotebookId=field_map_exnjson__"NotebookId"NotebookId.of_jsoninmake?nextToken?maxResults~notebookId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists, in descending order, the sessions that have been created in a notebook that are in an active state like CREATING, CREATED, IDLE or BUSY. Newer sessions are listed first; older sessions are listed later."]moduleNotebookSessionSummary=structtypenonrect={sessionId:SessionId.toption[@ocaml.doc"The notebook session ID."];creationTime:Date.toption[@ocaml.doc"The time when the notebook session was created."]}letmake?sessionId=fun?creationTime->fun()->{sessionId;creationTime}letto_valuex=structure_to_value[("SessionId",(Option.mapx.sessionId~f:SessionId.to_value));("CreationTime",(Option.mapx.creationTime~f:Date.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreationTime=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"CreationTime")inletsessionId=(Option.map~f:SessionId.of_xml)(Xml.childxml_arg0"SessionId")inmake?creationTime?sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreationTime=field_mapjson__"CreationTime"Date.of_jsoninletsessionId=field_mapjson__"SessionId"SessionId.of_jsoninmake?creationTime?sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the notebook session ID and notebook session creation time."]moduleNotebookSessionsList=structtypenonrect=NotebookSessionSummary.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:NotebookSessionSummary.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:NotebookSessionSummary.of_xml)letof_jsonj=list_of_json~kind:"NotebookSessionsList"~of_json:NotebookSessionSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListNotebookSessionsResponse=structtypenonrect={notebookSessionsList:NotebookSessionsList.toption[@ocaml.doc"A list of the sessions belonging to the notebook."];nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?notebookSessionsList=fun?nextToken->fun()->{notebookSessionsList;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NotebookSessionsList",(Option.mapx.notebookSessionsList~f:NotebookSessionsList.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletnotebookSessionsList=(Option.map~f:NotebookSessionsList.of_xml)(Xml.childxml_arg0"NotebookSessionsList")inmake?nextToken?notebookSessionsList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletnotebookSessionsList=field_mapjson__"NotebookSessionsList"NotebookSessionsList.of_jsoninmake?nextToken?notebookSessionsList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists, in descending order, the sessions that have been created in a notebook that are in an active state like CREATING, CREATED, IDLE or BUSY. Newer sessions are listed first; older sessions are listed later."]moduleMaxPreparedStatementsCount=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(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 MaxPreparedStatementsCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListPreparedStatementsInput=structtypenonrect={workGroup:WorkGroupName.t[@ocaml.doc"The workgroup to list the prepared statements for."];nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."];maxResults:MaxPreparedStatementsCount.toption[@ocaml.doc"The maximum number of results to return in this request."]}letcontext_="ListPreparedStatementsInput"letmake?nextToken=fun?maxResults->fun~workGroup->fun()->{nextToken;maxResults;workGroup}letto_valuex=structure_to_value[("WorkGroup",(Some(WorkGroupName.to_valuex.workGroup)));("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxPreparedStatementsCount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxPreparedStatementsCount.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletworkGroup=WorkGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"WorkGroup")inmake?maxResults?nextToken~workGroup()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxPreparedStatementsCount.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninletworkGroup=field_map_exnjson__"WorkGroup"WorkGroupName.of_jsoninmake?maxResults?nextToken~workGroup()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the prepared statements in the specified workgroup."]modulePreparedStatementSummary=structtypenonrect={statementName:StatementName.toption[@ocaml.doc"The name of the prepared statement."];lastModifiedTime:Date.toption[@ocaml.doc"The last modified time of the prepared statement."]}letmake?statementName=fun?lastModifiedTime->fun()->{statementName;lastModifiedTime}letto_valuex=structure_to_value[("StatementName",(Option.mapx.statementName~f:StatementName.to_value));("LastModifiedTime",(Option.mapx.lastModifiedTime~f:Date.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastModifiedTime=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"LastModifiedTime")inletstatementName=(Option.map~f:StatementName.of_xml)(Xml.childxml_arg0"StatementName")inmake?lastModifiedTime?statementName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastModifiedTime=field_mapjson__"LastModifiedTime"Date.of_jsoninletstatementName=field_mapjson__"StatementName"StatementName.of_jsoninmake?lastModifiedTime?statementName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The name and last modified time of the prepared statement."]modulePreparedStatementsList=structtypenonrect=PreparedStatementSummary.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PreparedStatementSummary.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:PreparedStatementSummary.of_xml)letof_jsonj=list_of_json~kind:"PreparedStatementsList"~of_json:PreparedStatementSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListPreparedStatementsOutput=structtypenonrect={preparedStatements:PreparedStatementsList.toption[@ocaml.doc"The list of prepared statements for the workgroup."];nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?preparedStatements=fun?nextToken->fun()->{preparedStatements;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("PreparedStatements",(Option.mapx.preparedStatements~f:PreparedStatementsList.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletpreparedStatements=(Option.map~f:PreparedStatementsList.of_xml)(Xml.childxml_arg0"PreparedStatements")inmake?nextToken?preparedStatements()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletpreparedStatements=field_mapjson__"PreparedStatements"PreparedStatementsList.of_jsoninmake?nextToken?preparedStatements()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the prepared statements in the specified workgroup."]moduleMaxQueryExecutionsCount=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxQueryExecutionsCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListQueryExecutionsInput=structtypenonrect={nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."];maxResults:MaxQueryExecutionsCount.toption[@ocaml.doc"The maximum number of query executions to return in this request."];workGroup:WorkGroupName.toption[@ocaml.doc"The name of the workgroup from which queries are being returned. If a workgroup is not specified, a list of available query execution IDs for the queries in the primary workgroup is returned."]}letmake?nextToken=fun?maxResults->fun?workGroup->fun()->{nextToken;maxResults;workGroup}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxQueryExecutionsCount.to_value));("WorkGroup",(Option.mapx.workGroup~f:WorkGroupName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkGroup=(Option.map~f:WorkGroupName.of_xml)(Xml.childxml_arg0"WorkGroup")inletmaxResults=(Option.map~f:MaxQueryExecutionsCount.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inmake?workGroup?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkGroup=field_mapjson__"WorkGroup"WorkGroupName.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxQueryExecutionsCount.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninmake?workGroup?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides a list of available query execution IDs for the queries in the specified workgroup. Athena keeps a query history for 45 days. If a workgroup is not specified, returns a list of query execution IDs for the primary workgroup. Requires you to have access to the workgroup in which the queries ran."]moduleListQueryExecutionsOutput=structtypenonrect={queryExecutionIds:QueryExecutionIdList.toption[@ocaml.doc"The unique IDs of each query execution as an array of strings."];nextToken:Token.toption[@ocaml.doc"A token to be used by the next request if this request is truncated."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?queryExecutionIds=fun?nextToken->fun()->{queryExecutionIds;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("QueryExecutionIds",(Option.mapx.queryExecutionIds~f:QueryExecutionIdList.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletqueryExecutionIds=(Option.map~f:QueryExecutionIdList.of_xml)(Xml.childxml_arg0"QueryExecutionIds")inmake?nextToken?queryExecutionIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletqueryExecutionIds=field_mapjson__"QueryExecutionIds"QueryExecutionIdList.of_jsoninmake?nextToken?queryExecutionIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides a list of available query execution IDs for the queries in the specified workgroup. Athena keeps a query history for 45 days. If a workgroup is not specified, returns a list of query execution IDs for the primary workgroup. Requires you to have access to the workgroup in which the queries ran."]moduleListSessionsRequest=structtypenonrect={workGroup:WorkGroupName.t[@ocaml.doc"The workgroup to which the session belongs."];stateFilter:SessionState.toption[@ocaml.doc"A filter for a specific session state. A description of each state follows. CREATING - The session is being started, including acquiring resources. CREATED - The session has been started. IDLE - The session is able to accept a calculation. BUSY - The session is processing another task and is unable to accept a calculation. TERMINATING - The session is in the process of shutting down. TERMINATED - The session and its resources are no longer running. DEGRADED - The session has no healthy coordinators. FAILED - Due to a failure, the session and its resources are no longer running."];maxResults:MaxSessionsCount.toption[@ocaml.doc"The maximum number of sessions to return."];nextToken:SessionManagerToken.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."]}letcontext_="ListSessionsRequest"letmake?stateFilter=fun?maxResults->fun?nextToken->fun~workGroup->fun()->{stateFilter;maxResults;nextToken;workGroup}letto_valuex=structure_to_value[("WorkGroup",(Some(WorkGroupName.to_valuex.workGroup)));("StateFilter",(Option.mapx.stateFilter~f:SessionState.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxSessionsCount.to_value));("NextToken",(Option.mapx.nextToken~f:SessionManagerToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:SessionManagerToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxSessionsCount.of_xml)(Xml.childxml_arg0"MaxResults")inletstateFilter=(Option.map~f:SessionState.of_xml)(Xml.childxml_arg0"StateFilter")inletworkGroup=WorkGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"WorkGroup")inmake?nextToken?maxResults?stateFilter~workGroup()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"SessionManagerToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxSessionsCount.of_jsoninletstateFilter=field_mapjson__"StateFilter"SessionState.of_jsoninletworkGroup=field_map_exnjson__"WorkGroup"WorkGroupName.of_jsoninmake?nextToken?maxResults?stateFilter~workGroup()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the sessions in a workgroup that are in an active state like CREATING, CREATED, IDLE, or BUSY. Newer sessions are listed first; older sessions are listed later."]moduleSessionSummary=structtypenonrect={sessionId:SessionId.toption[@ocaml.doc"The session ID."];description:DescriptionString.toption[@ocaml.doc"The session description."];engineVersion:EngineVersion.toption[@ocaml.doc"The engine version used by the session (for example, PySpark engine version 3)."];notebookVersion:NameString.toption[@ocaml.doc"The notebook version."];status:SessionStatus.toption[@ocaml.doc"Contains information about the session status."]}letmake?sessionId=fun?description->fun?engineVersion->fun?notebookVersion->fun?status->fun()->{sessionId;description;engineVersion;notebookVersion;status}letto_valuex=structure_to_value[("SessionId",(Option.mapx.sessionId~f:SessionId.to_value));("Description",(Option.mapx.description~f:DescriptionString.to_value));("EngineVersion",(Option.mapx.engineVersion~f:EngineVersion.to_value));("NotebookVersion",(Option.mapx.notebookVersion~f:NameString.to_value));("Status",(Option.mapx.status~f:SessionStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:SessionStatus.of_xml)(Xml.childxml_arg0"Status")inletnotebookVersion=(Option.map~f:NameString.of_xml)(Xml.childxml_arg0"NotebookVersion")inletengineVersion=(Option.map~f:EngineVersion.of_xml)(Xml.childxml_arg0"EngineVersion")inletdescription=(Option.map~f:DescriptionString.of_xml)(Xml.childxml_arg0"Description")inletsessionId=(Option.map~f:SessionId.of_xml)(Xml.childxml_arg0"SessionId")inmake?status?notebookVersion?engineVersion?description?sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"SessionStatus.of_jsoninletnotebookVersion=field_mapjson__"NotebookVersion"NameString.of_jsoninletengineVersion=field_mapjson__"EngineVersion"EngineVersion.of_jsoninletdescription=field_mapjson__"Description"DescriptionString.of_jsoninletsessionId=field_mapjson__"SessionId"SessionId.of_jsoninmake?status?notebookVersion?engineVersion?description?sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains summary information about a session."]moduleSessionsList=structtypenonrect=SessionSummary.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SessionSummary.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:SessionSummary.of_xml)letof_jsonj=list_of_json~kind:"SessionsList"~of_json:SessionSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListSessionsResponse=structtypenonrect={nextToken:SessionManagerToken.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."];sessions:SessionsList.toption[@ocaml.doc"A list of sessions."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?sessions->fun()->{nextToken;sessions}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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:SessionManagerToken.to_value));("Sessions",(Option.mapx.sessions~f:SessionsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessions=(Option.map~f:SessionsList.of_xml)(Xml.childxml_arg0"Sessions")inletnextToken=(Option.map~f:SessionManagerToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?sessions?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessions=field_mapjson__"Sessions"SessionsList.of_jsoninletnextToken=field_mapjson__"NextToken"SessionManagerToken.of_jsoninmake?sessions?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the sessions in a workgroup that are in an active state like CREATING, CREATED, IDLE, or BUSY. Newer sessions are listed first; older sessions are listed later."]moduleMaxTableMetadataCount=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(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 MaxTableMetadataCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListTableMetadataInput=structtypenonrect={catalogName:CatalogNameString.t[@ocaml.doc"The name of the data catalog for which table metadata should be returned."];databaseName:NameString.t[@ocaml.doc"The name of the database for which table metadata should be returned."];expression:ExpressionString.toption[@ocaml.doc"A regex filter that pattern-matches table names. If no expression is supplied, metadata for all tables are listed."];nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."];maxResults:MaxTableMetadataCount.toption[@ocaml.doc"Specifies the maximum number of results to return."];workGroup:WorkGroupName.toption[@ocaml.doc"The name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center enabled Glue Data Catalog."]}letcontext_="ListTableMetadataInput"letmake?expression=fun?nextToken->fun?maxResults->fun?workGroup->fun~catalogName->fun~databaseName->fun()->{expression;nextToken;maxResults;workGroup;catalogName;databaseName}letto_valuex=structure_to_value[("CatalogName",(Some(CatalogNameString.to_valuex.catalogName)));("DatabaseName",(Some(NameString.to_valuex.databaseName)));("Expression",(Option.mapx.expression~f:ExpressionString.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxTableMetadataCount.to_value));("WorkGroup",(Option.mapx.workGroup~f:WorkGroupName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkGroup=(Option.map~f:WorkGroupName.of_xml)(Xml.childxml_arg0"WorkGroup")inletmaxResults=(Option.map~f:MaxTableMetadataCount.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletexpression=(Option.map~f:ExpressionString.of_xml)(Xml.childxml_arg0"Expression")inletdatabaseName=NameString.of_xml(Xml.child_exn~context:context_xml_arg0"DatabaseName")inletcatalogName=CatalogNameString.of_xml(Xml.child_exn~context:context_xml_arg0"CatalogName")inmake?workGroup?maxResults?nextToken?expression~databaseName~catalogName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkGroup=field_mapjson__"WorkGroup"WorkGroupName.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxTableMetadataCount.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninletexpression=field_mapjson__"Expression"ExpressionString.of_jsoninletdatabaseName=field_map_exnjson__"DatabaseName"NameString.of_jsoninletcatalogName=field_map_exnjson__"CatalogName"CatalogNameString.of_jsoninmake?workGroup?maxResults?nextToken?expression~databaseName~catalogName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the metadata for the tables in the specified data catalog database."]moduleTableMetadataList=structtypenonrect=TableMetadata.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TableMetadata.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:TableMetadata.of_xml)letof_jsonj=list_of_json~kind:"TableMetadataList"~of_json:TableMetadata.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListTableMetadataOutput=structtypenonrect={tableMetadataList:TableMetadataList.toption[@ocaml.doc"A list of table metadata."];nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`MetadataExceptionofMetadataException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tableMetadataList=fun?nextToken->fun()->{tableMetadataList;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"MetadataException"->`MetadataException(MetadataException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"MetadataException"->`MetadataException(MetadataException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`MetadataExceptione->`Assoc[("error",(`String"MetadataException"));("details",(MetadataException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("TableMetadataList",(Option.mapx.tableMetadataList~f:TableMetadataList.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inlettableMetadataList=(Option.map~f:TableMetadataList.of_xml)(Xml.childxml_arg0"TableMetadataList")inmake?nextToken?tableMetadataList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninlettableMetadataList=field_mapjson__"TableMetadataList"TableMetadataList.of_jsoninmake?nextToken?tableMetadataList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the metadata for the tables in the specified data catalog database."]moduleMaxTagsCount=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:75);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 MaxTagsCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListTagsForResourceInput=structtypenonrect={resourceARN:AmazonResourceName.t[@ocaml.doc"Lists the tags for the resource with the specified ARN."];nextToken:Token.toption[@ocaml.doc"The token for the next set of results, or null if there are no additional results for this request, where the request lists the tags for the resource with the specified ARN."];maxResults:MaxTagsCount.toption[@ocaml.doc"The maximum number of results to be returned per request that lists the tags for the resource."]}letcontext_="ListTagsForResourceInput"letmake?nextToken=fun?maxResults->fun~resourceARN->fun()->{nextToken;maxResults;resourceARN}letto_valuex=structure_to_value[("ResourceARN",(Some(AmazonResourceName.to_valuex.resourceARN)));("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxTagsCount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxTagsCount.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletresourceARN=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake?maxResults?nextToken~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxTagsCount.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"AmazonResourceName.of_jsoninmake?maxResults?nextToken~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the tags associated with an Athena resource."]moduleListTagsForResourceOutput=structtypenonrect={tags:TagList.toption[@ocaml.doc"The list of tags associated with the specified resource."];nextToken:Token.toption[@ocaml.doc"A token to be used by the next request if this request is truncated."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun?nextToken->fun()->{tags;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Tags",(Option.mapx.tags~f:TagList.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inmake?nextToken?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninlettags=field_mapjson__"Tags"TagList.of_jsoninmake?nextToken?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the tags associated with an Athena resource."]moduleMaxWorkGroupsCount=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(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 MaxWorkGroupsCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListWorkGroupsInput=structtypenonrect={nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."];maxResults:MaxWorkGroupsCount.toption[@ocaml.doc"The maximum number of workgroups to return in this request."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxWorkGroupsCount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxWorkGroupsCount.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.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"MaxWorkGroupsCount.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists available workgroups for the account."]moduleWorkGroupSummary=structtypenonrect={name:WorkGroupName.toption[@ocaml.doc"The name of the workgroup."];state:WorkGroupState.toption[@ocaml.doc"The state of the workgroup."];description:WorkGroupDescriptionString.toption[@ocaml.doc"The workgroup description."];creationTime:Date.toption[@ocaml.doc"The workgroup creation date and time."];engineVersion:EngineVersion.toption[@ocaml.doc"The engine version setting for all queries on the workgroup. Queries on the AmazonAthenaPreviewFunctionality workgroup run on the preview engine regardless of this setting."];identityCenterApplicationArn:IdentityCenterApplicationArn.toption[@ocaml.doc"The ARN of the IAM Identity Center enabled application associated with the workgroup."]}letmake?name=fun?state->fun?description->fun?creationTime->fun?engineVersion->fun?identityCenterApplicationArn->fun()->{name;state;description;creationTime;engineVersion;identityCenterApplicationArn}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:WorkGroupName.to_value));("State",(Option.mapx.state~f:WorkGroupState.to_value));("Description",(Option.mapx.description~f:WorkGroupDescriptionString.to_value));("CreationTime",(Option.mapx.creationTime~f:Date.to_value));("EngineVersion",(Option.mapx.engineVersion~f:EngineVersion.to_value));("IdentityCenterApplicationArn",(Option.mapx.identityCenterApplicationArn~f:IdentityCenterApplicationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentityCenterApplicationArn=(Option.map~f:IdentityCenterApplicationArn.of_xml)(Xml.childxml_arg0"IdentityCenterApplicationArn")inletengineVersion=(Option.map~f:EngineVersion.of_xml)(Xml.childxml_arg0"EngineVersion")inletcreationTime=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"CreationTime")inletdescription=(Option.map~f:WorkGroupDescriptionString.of_xml)(Xml.childxml_arg0"Description")inletstate=(Option.map~f:WorkGroupState.of_xml)(Xml.childxml_arg0"State")inletname=(Option.map~f:WorkGroupName.of_xml)(Xml.childxml_arg0"Name")inmake?identityCenterApplicationArn?engineVersion?creationTime?description?state?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentityCenterApplicationArn=field_mapjson__"IdentityCenterApplicationArn"IdentityCenterApplicationArn.of_jsoninletengineVersion=field_mapjson__"EngineVersion"EngineVersion.of_jsoninletcreationTime=field_mapjson__"CreationTime"Date.of_jsoninletdescription=field_mapjson__"Description"WorkGroupDescriptionString.of_jsoninletstate=field_mapjson__"State"WorkGroupState.of_jsoninletname=field_mapjson__"Name"WorkGroupName.of_jsoninmake?identityCenterApplicationArn?engineVersion?creationTime?description?state?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The summary information for the workgroup, which includes its name, state, description, and the date and time it was created."]moduleWorkGroupsList=structtypenonrect=WorkGroupSummary.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WorkGroupSummary.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:WorkGroupSummary.of_xml)letof_jsonj=list_of_json~kind:"WorkGroupsList"~of_json:WorkGroupSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListWorkGroupsOutput=structtypenonrect={workGroups:WorkGroupsList.toption[@ocaml.doc"A list of WorkGroupSummary objects that include the names, descriptions, creation times, and states for each workgroup."];nextToken:Token.toption[@ocaml.doc"A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?workGroups=fun?nextToken->fun()->{workGroups;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("WorkGroups",(Option.mapx.workGroups~f:WorkGroupsList.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletworkGroups=(Option.map~f:WorkGroupsList.of_xml)(Xml.childxml_arg0"WorkGroups")inmake?nextToken?workGroups()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletworkGroups=field_mapjson__"WorkGroups"WorkGroupsList.of_jsoninmake?nextToken?workGroups()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists available workgroups for the account."]moduleManagedQueryResultsConfigurationUpdates=structtypenonrect={enabled:BoxedBoolean.toption[@ocaml.doc"If set to true, specifies that Athena manages query results in Athena owned storage."];encryptionConfiguration:ManagedQueryResultsEncryptionConfiguration.toption[@ocaml.doc"If you encrypt query and calculation results in Athena owned storage, this field indicates the encryption option (for example, SSE_KMS or CSE_KMS) and key information."];removeEncryptionConfiguration:BoxedBoolean.toption[@ocaml.doc"If set to true, it removes workgroup from Athena owned storage. The existing query results are cleaned up after 24hrs. You must provide query results in location specified under ResultConfiguration$OutputLocation."]}letmake?enabled=fun?encryptionConfiguration->fun?removeEncryptionConfiguration->fun()->{enabled;encryptionConfiguration;removeEncryptionConfiguration}letto_valuex=structure_to_value[("Enabled",(Option.mapx.enabled~f:BoxedBoolean.to_value));("EncryptionConfiguration",(Option.mapx.encryptionConfiguration~f:ManagedQueryResultsEncryptionConfiguration.to_value));("RemoveEncryptionConfiguration",(Option.mapx.removeEncryptionConfiguration~f:BoxedBoolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letremoveEncryptionConfiguration=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"RemoveEncryptionConfiguration")inletencryptionConfiguration=(Option.map~f:ManagedQueryResultsEncryptionConfiguration.of_xml)(Xml.childxml_arg0"EncryptionConfiguration")inletenabled=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"Enabled")inmake?removeEncryptionConfiguration?encryptionConfiguration?enabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letremoveEncryptionConfiguration=field_mapjson__"RemoveEncryptionConfiguration"BoxedBoolean.of_jsoninletencryptionConfiguration=field_mapjson__"EncryptionConfiguration"ManagedQueryResultsEncryptionConfiguration.of_jsoninletenabled=field_mapjson__"Enabled"BoxedBoolean.of_jsoninmake?removeEncryptionConfiguration?encryptionConfiguration?enabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the configuration for managed query results."]moduleNamedQueryDescriptionString=structtypenonrect=stringletcontext_="NamedQueryDescriptionString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NamedQueryDescriptionString"jletto_json=simple_to_jsonto_valueendmodulePutCapacityAssignmentConfigurationInput=structtypenonrect={capacityReservationName:CapacityReservationName.t[@ocaml.doc"The name of the capacity reservation to put a capacity assignment configuration for."];capacityAssignments:CapacityAssignmentsList.t[@ocaml.doc"The list of assignments for the capacity assignment configuration."]}letcontext_="PutCapacityAssignmentConfigurationInput"letmake~capacityReservationName=fun~capacityAssignments->fun()->{capacityReservationName;capacityAssignments}letto_valuex=structure_to_value[("CapacityReservationName",(Some(CapacityReservationName.to_valuex.capacityReservationName)));("CapacityAssignments",(Some(CapacityAssignmentsList.to_valuex.capacityAssignments)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcapacityAssignments=CapacityAssignmentsList.of_xml(Xml.child_exn~context:context_xml_arg0"CapacityAssignments")inletcapacityReservationName=CapacityReservationName.of_xml(Xml.child_exn~context:context_xml_arg0"CapacityReservationName")inmake~capacityAssignments~capacityReservationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcapacityAssignments=field_map_exnjson__"CapacityAssignments"CapacityAssignmentsList.of_jsoninletcapacityReservationName=field_map_exnjson__"CapacityReservationName"CapacityReservationName.of_jsoninmake~capacityAssignments~capacityReservationName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Puts a new capacity assignment configuration for a specified capacity reservation. If a capacity assignment configuration already exists for the capacity reservation, replaces the existing capacity assignment configuration."]modulePutCapacityAssignmentConfigurationOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Puts a new capacity assignment configuration for a specified capacity reservation. If a capacity assignment configuration already exists for the capacity reservation, replaces the existing capacity assignment configuration."]moduleResultConfigurationUpdates=structtypenonrect={outputLocation:ResultOutputLocation.toption[@ocaml.doc"The location in Amazon S3 where your query and calculation results are stored, such as s3://path/to/query/bucket/. If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup. The \"workgroup settings override\" is specified in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See WorkGroupConfiguration$EnforceWorkGroupConfiguration."];removeOutputLocation:BoxedBoolean.toption[@ocaml.doc"If set to \"true\", indicates that the previously-specified query results location (also known as a client-side setting) for queries in this workgroup should be ignored and set to null. If set to \"false\" or not set, and a value is present in the OutputLocation in ResultConfigurationUpdates (the client-side setting), the OutputLocation in the workgroup's ResultConfiguration will be updated with the new value. For more information, see Workgroup Settings Override Client-Side Settings."];encryptionConfiguration:EncryptionConfiguration.toption[@ocaml.doc"The encryption configuration for query and calculation results."];removeEncryptionConfiguration:BoxedBoolean.toption[@ocaml.doc"If set to \"true\", indicates that the previously-specified encryption configuration (also known as the client-side setting) for queries in this workgroup should be ignored and set to null. If set to \"false\" or not set, and a value is present in the EncryptionConfiguration in ResultConfigurationUpdates (the client-side setting), the EncryptionConfiguration in the workgroup's ResultConfiguration will be updated with the new value. For more information, see Workgroup Settings Override Client-Side Settings."];expectedBucketOwner:AwsAccountId.toption[@ocaml.doc"The Amazon Web Services account ID that you expect to be the owner of the Amazon S3 bucket specified by ResultConfiguration$OutputLocation. If set, Athena uses the value for ExpectedBucketOwner when it makes Amazon S3 calls to your specified output location. If the ExpectedBucketOwner Amazon Web Services account ID does not match the actual owner of the Amazon S3 bucket, the call fails with a permissions error. If workgroup settings override client-side settings, then the query uses the ExpectedBucketOwner setting that is specified for the workgroup, and also uses the location for storing query results specified in the workgroup. See WorkGroupConfiguration$EnforceWorkGroupConfiguration and Workgroup Settings Override Client-Side Settings."];removeExpectedBucketOwner:BoxedBoolean.toption[@ocaml.doc"If set to \"true\", removes the Amazon Web Services account ID previously specified for ResultConfiguration$ExpectedBucketOwner. If set to \"false\" or not set, and a value is present in the ExpectedBucketOwner in ResultConfigurationUpdates (the client-side setting), the ExpectedBucketOwner in the workgroup's ResultConfiguration is updated with the new value. For more information, see Workgroup Settings Override Client-Side Settings."];aclConfiguration:AclConfiguration.toption[@ocaml.doc"The ACL configuration for the query results."];removeAclConfiguration:BoxedBoolean.toption[@ocaml.doc"If set to true, indicates that the previously-specified ACL configuration for queries in this workgroup should be ignored and set to null. If set to false or not set, and a value is present in the AclConfiguration of ResultConfigurationUpdates, the AclConfiguration in the workgroup's ResultConfiguration is updated with the new value. For more information, see Workgroup Settings Override Client-Side Settings."]}letmake?outputLocation=fun?removeOutputLocation->fun?encryptionConfiguration->fun?removeEncryptionConfiguration->fun?expectedBucketOwner->fun?removeExpectedBucketOwner->fun?aclConfiguration->fun?removeAclConfiguration->fun()->{outputLocation;removeOutputLocation;encryptionConfiguration;removeEncryptionConfiguration;expectedBucketOwner;removeExpectedBucketOwner;aclConfiguration;removeAclConfiguration}letto_valuex=structure_to_value[("OutputLocation",(Option.mapx.outputLocation~f:ResultOutputLocation.to_value));("RemoveOutputLocation",(Option.mapx.removeOutputLocation~f:BoxedBoolean.to_value));("EncryptionConfiguration",(Option.mapx.encryptionConfiguration~f:EncryptionConfiguration.to_value));("RemoveEncryptionConfiguration",(Option.mapx.removeEncryptionConfiguration~f:BoxedBoolean.to_value));("ExpectedBucketOwner",(Option.mapx.expectedBucketOwner~f:AwsAccountId.to_value));("RemoveExpectedBucketOwner",(Option.mapx.removeExpectedBucketOwner~f:BoxedBoolean.to_value));("AclConfiguration",(Option.mapx.aclConfiguration~f:AclConfiguration.to_value));("RemoveAclConfiguration",(Option.mapx.removeAclConfiguration~f:BoxedBoolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letremoveAclConfiguration=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"RemoveAclConfiguration")inletaclConfiguration=(Option.map~f:AclConfiguration.of_xml)(Xml.childxml_arg0"AclConfiguration")inletremoveExpectedBucketOwner=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"RemoveExpectedBucketOwner")inletexpectedBucketOwner=(Option.map~f:AwsAccountId.of_xml)(Xml.childxml_arg0"ExpectedBucketOwner")inletremoveEncryptionConfiguration=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"RemoveEncryptionConfiguration")inletencryptionConfiguration=(Option.map~f:EncryptionConfiguration.of_xml)(Xml.childxml_arg0"EncryptionConfiguration")inletremoveOutputLocation=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"RemoveOutputLocation")inletoutputLocation=(Option.map~f:ResultOutputLocation.of_xml)(Xml.childxml_arg0"OutputLocation")inmake?removeAclConfiguration?aclConfiguration?removeExpectedBucketOwner?expectedBucketOwner?removeEncryptionConfiguration?encryptionConfiguration?removeOutputLocation?outputLocation()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letremoveAclConfiguration=field_mapjson__"RemoveAclConfiguration"BoxedBoolean.of_jsoninletaclConfiguration=field_mapjson__"AclConfiguration"AclConfiguration.of_jsoninletremoveExpectedBucketOwner=field_mapjson__"RemoveExpectedBucketOwner"BoxedBoolean.of_jsoninletexpectedBucketOwner=field_mapjson__"ExpectedBucketOwner"AwsAccountId.of_jsoninletremoveEncryptionConfiguration=field_mapjson__"RemoveEncryptionConfiguration"BoxedBoolean.of_jsoninletencryptionConfiguration=field_mapjson__"EncryptionConfiguration"EncryptionConfiguration.of_jsoninletremoveOutputLocation=field_mapjson__"RemoveOutputLocation"BoxedBoolean.of_jsoninletoutputLocation=field_mapjson__"OutputLocation"ResultOutputLocation.of_jsoninmake?removeAclConfiguration?aclConfiguration?removeExpectedBucketOwner?expectedBucketOwner?removeEncryptionConfiguration?encryptionConfiguration?removeOutputLocation?outputLocation()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The information about the updates in the query results, such as output location and encryption configuration for the query results."]moduleSessionAlreadyExistsException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified session already exists."]moduleStartCalculationExecutionRequest=structtypenonrect={sessionId:SessionId.t[@ocaml.doc"The session ID."];description:DescriptionString.toption[@ocaml.doc"A description of the calculation."];calculationConfiguration:CalculationConfiguration.toption[@ocaml.doc"Contains configuration information for the calculation."];codeBlock:CodeBlock.toption[@ocaml.doc"A string that contains the code of the calculation. Use this parameter instead of CalculationConfiguration$CodeBlock, which is deprecated."];clientRequestToken:IdempotencyToken.toption[@ocaml.doc"A unique case-sensitive string used to ensure the request to create the calculation is idempotent (executes only once). If another StartCalculationExecutionRequest is received, the same response is returned and another calculation is not created. If a parameter has changed, an error is returned. This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail."]}letcontext_="StartCalculationExecutionRequest"letmake?description=fun?calculationConfiguration->fun?codeBlock->fun?clientRequestToken->fun~sessionId->fun()->{description;calculationConfiguration;codeBlock;clientRequestToken;sessionId}letto_valuex=structure_to_value[("SessionId",(Some(SessionId.to_valuex.sessionId)));("Description",(Option.mapx.description~f:DescriptionString.to_value));("CalculationConfiguration",(Option.mapx.calculationConfiguration~f:CalculationConfiguration.to_value));("CodeBlock",(Option.mapx.codeBlock~f:CodeBlock.to_value));("ClientRequestToken",(Option.mapx.clientRequestToken~f:IdempotencyToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientRequestToken=(Option.map~f:IdempotencyToken.of_xml)(Xml.childxml_arg0"ClientRequestToken")inletcodeBlock=(Option.map~f:CodeBlock.of_xml)(Xml.childxml_arg0"CodeBlock")inletcalculationConfiguration=(Option.map~f:CalculationConfiguration.of_xml)(Xml.childxml_arg0"CalculationConfiguration")inletdescription=(Option.map~f:DescriptionString.of_xml)(Xml.childxml_arg0"Description")inletsessionId=SessionId.of_xml(Xml.child_exn~context:context_xml_arg0"SessionId")inmake?clientRequestToken?codeBlock?calculationConfiguration?description~sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientRequestToken=field_mapjson__"ClientRequestToken"IdempotencyToken.of_jsoninletcodeBlock=field_mapjson__"CodeBlock"CodeBlock.of_jsoninletcalculationConfiguration=field_mapjson__"CalculationConfiguration"CalculationConfiguration.of_jsoninletdescription=field_mapjson__"Description"DescriptionString.of_jsoninletsessionId=field_map_exnjson__"SessionId"SessionId.of_jsoninmake?clientRequestToken?codeBlock?calculationConfiguration?description~sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Submits calculations for execution within a session. You can supply the code to run as an inline code block within the request. The request syntax requires the StartCalculationExecutionRequest$CodeBlock parameter or the CalculationConfiguration$CodeBlock parameter, but not both. Because CalculationConfiguration$CodeBlock is deprecated, use the StartCalculationExecutionRequest$CodeBlock parameter instead."]moduleStartCalculationExecutionResponse=structtypenonrect={calculationExecutionId:CalculationExecutionId.toption[@ocaml.doc"The calculation execution UUID."];state:CalculationExecutionState.toption[@ocaml.doc"CREATING - The calculation is in the process of being created. CREATED - The calculation has been created and is ready to run. QUEUED - The calculation has been queued for processing. RUNNING - The calculation is running. CANCELING - A request to cancel the calculation has been received and the system is working to stop it. CANCELED - The calculation is no longer running as the result of a cancel request. COMPLETED - The calculation has completed without error. FAILED - The calculation failed and is no longer running."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?calculationExecutionId=fun?state->fun()->{calculationExecutionId;state}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("CalculationExecutionId",(Option.mapx.calculationExecutionId~f:CalculationExecutionId.to_value));("State",(Option.mapx.state~f:CalculationExecutionState.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstate=(Option.map~f:CalculationExecutionState.of_xml)(Xml.childxml_arg0"State")inletcalculationExecutionId=(Option.map~f:CalculationExecutionId.of_xml)(Xml.childxml_arg0"CalculationExecutionId")inmake?state?calculationExecutionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstate=field_mapjson__"State"CalculationExecutionState.of_jsoninletcalculationExecutionId=field_mapjson__"CalculationExecutionId"CalculationExecutionId.of_jsoninmake?state?calculationExecutionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Submits calculations for execution within a session. You can supply the code to run as an inline code block within the request. The request syntax requires the StartCalculationExecutionRequest$CodeBlock parameter or the CalculationConfiguration$CodeBlock parameter, but not both. Because CalculationConfiguration$CodeBlock is deprecated, use the StartCalculationExecutionRequest$CodeBlock parameter instead."]moduleStartQueryExecutionInput=structtypenonrect={queryString:QueryString.t[@ocaml.doc"The SQL query statements to be executed."];clientRequestToken:IdempotencyToken.toption[@ocaml.doc"A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If another StartQueryExecution request is received, the same response is returned and another query is not created. An error is returned if a parameter, such as QueryString, has changed. A call to StartQueryExecution that uses a previous client request token returns the same QueryExecutionId even if the requester doesn't have permission on the tables specified in QueryString. This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail."];queryExecutionContext:QueryExecutionContext.toption[@ocaml.doc"The database within which the query executes."];resultConfiguration:ResultConfiguration.toption[@ocaml.doc"Specifies information about where and how to save the results of the query execution. If the query runs in a workgroup, then workgroup's settings may override query settings. This affects the query results location. The workgroup settings override is specified in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See WorkGroupConfiguration$EnforceWorkGroupConfiguration."];workGroup:WorkGroupName.toption[@ocaml.doc"The name of the workgroup in which the query is being started."];executionParameters:ExecutionParameters.toption[@ocaml.doc"A list of values for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur."];resultReuseConfiguration:ResultReuseConfiguration.toption[@ocaml.doc"Specifies the query result reuse behavior for the query."];engineConfiguration:EngineConfiguration.toption[@ocaml.doc"The engine configuration for the workgroup, which includes the minimum/maximum number of Data Processing Units (DPU) that queries should use when running in provisioned capacity. If not specified, Athena uses default values (Default value for min is 4 and for max is Minimum of 124 and allocated DPUs). To specify minimum and maximum DPU values for Capacity Reservations queries, the workgroup containing EngineConfiguration should have the following values: The name of the Classifications should be athena-query-engine-properties, with the only allowed properties as max-dpu-count and min-dpu-count."]}letcontext_="StartQueryExecutionInput"letmake?clientRequestToken=fun?queryExecutionContext->fun?resultConfiguration->fun?workGroup->fun?executionParameters->fun?resultReuseConfiguration->fun?engineConfiguration->fun~queryString->fun()->{clientRequestToken;queryExecutionContext;resultConfiguration;workGroup;executionParameters;resultReuseConfiguration;engineConfiguration;queryString}letto_valuex=structure_to_value[("QueryString",(Some(QueryString.to_valuex.queryString)));("ClientRequestToken",(Option.mapx.clientRequestToken~f:IdempotencyToken.to_value));("QueryExecutionContext",(Option.mapx.queryExecutionContext~f:QueryExecutionContext.to_value));("ResultConfiguration",(Option.mapx.resultConfiguration~f:ResultConfiguration.to_value));("WorkGroup",(Option.mapx.workGroup~f:WorkGroupName.to_value));("ExecutionParameters",(Option.mapx.executionParameters~f:ExecutionParameters.to_value));("ResultReuseConfiguration",(Option.mapx.resultReuseConfiguration~f:ResultReuseConfiguration.to_value));("EngineConfiguration",(Option.mapx.engineConfiguration~f:EngineConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letengineConfiguration=(Option.map~f:EngineConfiguration.of_xml)(Xml.childxml_arg0"EngineConfiguration")inletresultReuseConfiguration=(Option.map~f:ResultReuseConfiguration.of_xml)(Xml.childxml_arg0"ResultReuseConfiguration")inletexecutionParameters=(Option.map~f:ExecutionParameters.of_xml)(Xml.childxml_arg0"ExecutionParameters")inletworkGroup=(Option.map~f:WorkGroupName.of_xml)(Xml.childxml_arg0"WorkGroup")inletresultConfiguration=(Option.map~f:ResultConfiguration.of_xml)(Xml.childxml_arg0"ResultConfiguration")inletqueryExecutionContext=(Option.map~f:QueryExecutionContext.of_xml)(Xml.childxml_arg0"QueryExecutionContext")inletclientRequestToken=(Option.map~f:IdempotencyToken.of_xml)(Xml.childxml_arg0"ClientRequestToken")inletqueryString=QueryString.of_xml(Xml.child_exn~context:context_xml_arg0"QueryString")inmake?engineConfiguration?resultReuseConfiguration?executionParameters?workGroup?resultConfiguration?queryExecutionContext?clientRequestToken~queryString()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letengineConfiguration=field_mapjson__"EngineConfiguration"EngineConfiguration.of_jsoninletresultReuseConfiguration=field_mapjson__"ResultReuseConfiguration"ResultReuseConfiguration.of_jsoninletexecutionParameters=field_mapjson__"ExecutionParameters"ExecutionParameters.of_jsoninletworkGroup=field_mapjson__"WorkGroup"WorkGroupName.of_jsoninletresultConfiguration=field_mapjson__"ResultConfiguration"ResultConfiguration.of_jsoninletqueryExecutionContext=field_mapjson__"QueryExecutionContext"QueryExecutionContext.of_jsoninletclientRequestToken=field_mapjson__"ClientRequestToken"IdempotencyToken.of_jsoninletqueryString=field_map_exnjson__"QueryString"QueryString.of_jsoninmake?engineConfiguration?resultReuseConfiguration?executionParameters?workGroup?resultConfiguration?queryExecutionContext?clientRequestToken~queryString()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Runs the SQL query statements contained in the Query. Requires you to have access to the workgroup in which the query ran. Running queries against an external catalog requires GetDataCatalog permission to the catalog. For code samples using the Amazon Web Services SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide."]moduleStartQueryExecutionOutput=structtypenonrect={queryExecutionId:QueryExecutionId.toption[@ocaml.doc"The unique ID of the query that ran as a result of this request."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?queryExecutionId=fun()->{queryExecutionId}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("QueryExecutionId",(Option.mapx.queryExecutionId~f:QueryExecutionId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueryExecutionId=(Option.map~f:QueryExecutionId.of_xml)(Xml.childxml_arg0"QueryExecutionId")inmake?queryExecutionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueryExecutionId=field_mapjson__"QueryExecutionId"QueryExecutionId.of_jsoninmake?queryExecutionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Runs the SQL query statements contained in the Query. Requires you to have access to the workgroup in which the query ran. Running queries against an external catalog requires GetDataCatalog permission to the catalog. For code samples using the Amazon Web Services SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide."]moduleStartSessionRequest=structtypenonrect={description:DescriptionString.toption[@ocaml.doc"The session description."];workGroup:WorkGroupName.t[@ocaml.doc"The workgroup to which the session belongs."];engineConfiguration:EngineConfiguration.t[@ocaml.doc"Contains engine data processing unit (DPU) configuration settings and parameter mappings."];executionRole:RoleArn.toption[@ocaml.doc"The ARN of the execution role used to access user resources for Spark sessions and Identity Center enabled workgroups. This property applies only to Spark enabled workgroups and Identity Center enabled workgroups."];monitoringConfiguration:MonitoringConfiguration.toption[@ocaml.doc"Contains the configuration settings for managed log persistence, delivering logs to Amazon S3 buckets, Amazon CloudWatch log groups etc."];notebookVersion:NameString.toption[@ocaml.doc"The notebook version. This value is supplied automatically for notebook sessions in the Athena console and is not required for programmatic session access. The only valid notebook version is Athena notebook version 1. If you specify a value for NotebookVersion, you must also specify a value for NotebookId. See EngineConfiguration$AdditionalConfigs."];sessionIdleTimeoutInMinutes:SessionIdleTimeoutInMinutes.toption[@ocaml.doc"The idle timeout in minutes for the session."];clientRequestToken:IdempotencyToken.toption[@ocaml.doc"A unique case-sensitive string used to ensure the request to create the session is idempotent (executes only once). If another StartSessionRequest is received, the same response is returned and another session is not created. If a parameter has changed, an error is returned. This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail."];tags:TagList.toption[@ocaml.doc"A list of comma separated tags to add to the session that is created."];copyWorkGroupTags:BoxedBoolean.toption[@ocaml.doc"Copies the tags from the Workgroup to the Session when."]}letcontext_="StartSessionRequest"letmake?description=fun?executionRole->fun?monitoringConfiguration->fun?notebookVersion->fun?sessionIdleTimeoutInMinutes->fun?clientRequestToken->fun?tags->fun?copyWorkGroupTags->fun~workGroup->fun~engineConfiguration->fun()->{description;executionRole;monitoringConfiguration;notebookVersion;sessionIdleTimeoutInMinutes;clientRequestToken;tags;copyWorkGroupTags;workGroup;engineConfiguration}letto_valuex=structure_to_value[("Description",(Option.mapx.description~f:DescriptionString.to_value));("WorkGroup",(Some(WorkGroupName.to_valuex.workGroup)));("EngineConfiguration",(Some(EngineConfiguration.to_valuex.engineConfiguration)));("ExecutionRole",(Option.mapx.executionRole~f:RoleArn.to_value));("MonitoringConfiguration",(Option.mapx.monitoringConfiguration~f:MonitoringConfiguration.to_value));("NotebookVersion",(Option.mapx.notebookVersion~f:NameString.to_value));("SessionIdleTimeoutInMinutes",(Option.mapx.sessionIdleTimeoutInMinutes~f:SessionIdleTimeoutInMinutes.to_value));("ClientRequestToken",(Option.mapx.clientRequestToken~f:IdempotencyToken.to_value));("Tags",(Option.mapx.tags~f:TagList.to_value));("CopyWorkGroupTags",(Option.mapx.copyWorkGroupTags~f:BoxedBoolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcopyWorkGroupTags=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"CopyWorkGroupTags")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletclientRequestToken=(Option.map~f:IdempotencyToken.of_xml)(Xml.childxml_arg0"ClientRequestToken")inletsessionIdleTimeoutInMinutes=(Option.map~f:SessionIdleTimeoutInMinutes.of_xml)(Xml.childxml_arg0"SessionIdleTimeoutInMinutes")inletnotebookVersion=(Option.map~f:NameString.of_xml)(Xml.childxml_arg0"NotebookVersion")inletmonitoringConfiguration=(Option.map~f:MonitoringConfiguration.of_xml)(Xml.childxml_arg0"MonitoringConfiguration")inletexecutionRole=(Option.map~f:RoleArn.of_xml)(Xml.childxml_arg0"ExecutionRole")inletengineConfiguration=EngineConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"EngineConfiguration")inletworkGroup=WorkGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"WorkGroup")inletdescription=(Option.map~f:DescriptionString.of_xml)(Xml.childxml_arg0"Description")inmake?copyWorkGroupTags?tags?clientRequestToken?sessionIdleTimeoutInMinutes?notebookVersion?monitoringConfiguration?executionRole~engineConfiguration~workGroup?description()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcopyWorkGroupTags=field_mapjson__"CopyWorkGroupTags"BoxedBoolean.of_jsoninlettags=field_mapjson__"Tags"TagList.of_jsoninletclientRequestToken=field_mapjson__"ClientRequestToken"IdempotencyToken.of_jsoninletsessionIdleTimeoutInMinutes=field_mapjson__"SessionIdleTimeoutInMinutes"SessionIdleTimeoutInMinutes.of_jsoninletnotebookVersion=field_mapjson__"NotebookVersion"NameString.of_jsoninletmonitoringConfiguration=field_mapjson__"MonitoringConfiguration"MonitoringConfiguration.of_jsoninletexecutionRole=field_mapjson__"ExecutionRole"RoleArn.of_jsoninletengineConfiguration=field_map_exnjson__"EngineConfiguration"EngineConfiguration.of_jsoninletworkGroup=field_map_exnjson__"WorkGroup"WorkGroupName.of_jsoninletdescription=field_mapjson__"Description"DescriptionString.of_jsoninmake?copyWorkGroupTags?tags?clientRequestToken?sessionIdleTimeoutInMinutes?notebookVersion?monitoringConfiguration?executionRole~engineConfiguration~workGroup?description()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a session for running calculations within a workgroup. The session is ready when it reaches an IDLE state."]moduleStartSessionResponse=structtypenonrect={sessionId:SessionId.toption[@ocaml.doc"The session ID."];state:SessionState.toption[@ocaml.doc"The state of the session. A description of each state follows. CREATING - The session is being started, including acquiring resources. CREATED - The session has been started. IDLE - The session is able to accept a calculation. BUSY - The session is processing another task and is unable to accept a calculation. TERMINATING - The session is in the process of shutting down. TERMINATED - The session and its resources are no longer running. DEGRADED - The session has no healthy coordinators. FAILED - Due to a failure, the session and its resources are no longer running."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`SessionAlreadyExistsExceptionofSessionAlreadyExistsException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?sessionId=fun?state->fun()->{sessionId;state}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"SessionAlreadyExistsException"->`SessionAlreadyExistsException(SessionAlreadyExistsException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"SessionAlreadyExistsException"->`SessionAlreadyExistsException(SessionAlreadyExistsException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`SessionAlreadyExistsExceptione->`Assoc[("error",(`String"SessionAlreadyExistsException"));("details",(SessionAlreadyExistsException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("SessionId",(Option.mapx.sessionId~f:SessionId.to_value));("State",(Option.mapx.state~f:SessionState.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstate=(Option.map~f:SessionState.of_xml)(Xml.childxml_arg0"State")inletsessionId=(Option.map~f:SessionId.of_xml)(Xml.childxml_arg0"SessionId")inmake?state?sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstate=field_mapjson__"State"SessionState.of_jsoninletsessionId=field_mapjson__"SessionId"SessionId.of_jsoninmake?state?sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a session for running calculations within a workgroup. The session is ready when it reaches an IDLE state."]moduleStopCalculationExecutionRequest=structtypenonrect={calculationExecutionId:CalculationExecutionId.t[@ocaml.doc"The calculation execution UUID."]}letcontext_="StopCalculationExecutionRequest"letmake~calculationExecutionId=fun()->{calculationExecutionId}letto_valuex=structure_to_value[("CalculationExecutionId",(Some(CalculationExecutionId.to_valuex.calculationExecutionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcalculationExecutionId=CalculationExecutionId.of_xml(Xml.child_exn~context:context_xml_arg0"CalculationExecutionId")inmake~calculationExecutionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcalculationExecutionId=field_map_exnjson__"CalculationExecutionId"CalculationExecutionId.of_jsoninmake~calculationExecutionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Requests the cancellation of a calculation. A StopCalculationExecution call on a calculation that is already in a terminal state (for example, STOPPED, FAILED, or COMPLETED) succeeds but has no effect. Cancelling a calculation is done on a best effort basis. If a calculation cannot be cancelled, you can be charged for its completion. If you are concerned about being charged for a calculation that cannot be cancelled, consider terminating the session in which the calculation is running."]moduleStopCalculationExecutionResponse=structtypenonrect={state:CalculationExecutionState.toption[@ocaml.doc"CREATING - The calculation is in the process of being created. CREATED - The calculation has been created and is ready to run. QUEUED - The calculation has been queued for processing. RUNNING - The calculation is running. CANCELING - A request to cancel the calculation has been received and the system is working to stop it. CANCELED - The calculation is no longer running as the result of a cancel request. COMPLETED - The calculation has completed without error. FAILED - The calculation failed and is no longer running."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?state=fun()->{state}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("State",(Option.mapx.state~f:CalculationExecutionState.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstate=(Option.map~f:CalculationExecutionState.of_xml)(Xml.childxml_arg0"State")inmake?state()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstate=field_mapjson__"State"CalculationExecutionState.of_jsoninmake?state()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Requests the cancellation of a calculation. A StopCalculationExecution call on a calculation that is already in a terminal state (for example, STOPPED, FAILED, or COMPLETED) succeeds but has no effect. Cancelling a calculation is done on a best effort basis. If a calculation cannot be cancelled, you can be charged for its completion. If you are concerned about being charged for a calculation that cannot be cancelled, consider terminating the session in which the calculation is running."]moduleStopQueryExecutionInput=structtypenonrect={queryExecutionId:QueryExecutionId.t[@ocaml.doc"The unique ID of the query execution to stop."]}letcontext_="StopQueryExecutionInput"letmake~queryExecutionId=fun()->{queryExecutionId}letto_valuex=structure_to_value[("QueryExecutionId",(Some(QueryExecutionId.to_valuex.queryExecutionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueryExecutionId=QueryExecutionId.of_xml(Xml.child_exn~context:context_xml_arg0"QueryExecutionId")inmake~queryExecutionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueryExecutionId=field_map_exnjson__"QueryExecutionId"QueryExecutionId.of_jsoninmake~queryExecutionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops a query execution. Requires you to have access to the workgroup in which the query ran."]moduleStopQueryExecutionOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops a query execution. Requires you to have access to the workgroup in which the query ran."]moduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagResourceInput=structtypenonrect={resourceARN:AmazonResourceName.t[@ocaml.doc"Specifies the ARN of the Athena resource to which tags are to be added."];tags:TagList.t[@ocaml.doc"A collection of one or more tags, separated by commas, to be added to an Athena resource."]}letcontext_="TagResourceInput"letmake~resourceARN=fun~tags->fun()->{resourceARN;tags}letto_valuex=structure_to_value[("ResourceARN",(Some(AmazonResourceName.to_valuex.resourceARN)));("Tags",(Some(TagList.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagList.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inletresourceARN=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~tags~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"TagList.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"AmazonResourceName.of_jsoninmake~tags~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds one or more tags to an Athena resource. A tag is a label that you assign to a resource. Each tag consists of a key and an optional value, both of which you define. For example, you can use tags to categorize Athena workgroups, data catalogs, or capacity reservations by purpose, owner, or environment. Use a consistent set of tag keys to make it easier to search and filter the resources in your account. For best practices, see Tagging Best Practices. Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag values can be from 0 to 256 UTF-8 Unicode characters. Tags can use letters and numbers representable in UTF-8, and the following characters: + - = . _ : / \\@. Tag keys and values are case-sensitive. Tag keys must be unique per resource. If you specify more than one tag, separate them by commas."]moduleTagResourceOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds one or more tags to an Athena resource. A tag is a label that you assign to a resource. Each tag consists of a key and an optional value, both of which you define. For example, you can use tags to categorize Athena workgroups, data catalogs, or capacity reservations by purpose, owner, or environment. Use a consistent set of tag keys to make it easier to search and filter the resources in your account. For best practices, see Tagging Best Practices. Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag values can be from 0 to 256 UTF-8 Unicode characters. Tags can use letters and numbers representable in UTF-8, and the following characters: + - = . _ : / \\@. Tag keys and values are case-sensitive. Tag keys must be unique per resource. If you specify more than one tag, separate them by commas."]moduleTerminateSessionRequest=structtypenonrect={sessionId:SessionId.t[@ocaml.doc"The session ID."]}letcontext_="TerminateSessionRequest"letmake~sessionId=fun()->{sessionId}letto_valuex=structure_to_value[("SessionId",(Some(SessionId.to_valuex.sessionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionId=SessionId.of_xml(Xml.child_exn~context:context_xml_arg0"SessionId")inmake~sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionId=field_map_exnjson__"SessionId"SessionId.of_jsoninmake~sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Terminates an active session. A TerminateSession call on a session that is already inactive (for example, in a FAILED, TERMINATED or TERMINATING state) succeeds but has no effect. Calculations running in the session when TerminateSession is called are forcefully stopped, but may display as FAILED instead of STOPPED."]moduleTerminateSessionResponse=structtypenonrect={state:SessionState.toption[@ocaml.doc"The state of the session. A description of each state follows. CREATING - The session is being started, including acquiring resources. CREATED - The session has been started. IDLE - The session is able to accept a calculation. BUSY - The session is processing another task and is unable to accept a calculation. TERMINATING - The session is in the process of shutting down. TERMINATED - The session and its resources are no longer running. DEGRADED - The session has no healthy coordinators. FAILED - Due to a failure, the session and its resources are no longer running."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?state=fun()->{state}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("State",(Option.mapx.state~f:SessionState.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstate=(Option.map~f:SessionState.of_xml)(Xml.childxml_arg0"State")inmake?state()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstate=field_mapjson__"State"SessionState.of_jsoninmake?state()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Terminates an active session. A TerminateSession call on a session that is already inactive (for example, in a FAILED, TERMINATED or TERMINATING state) succeeds but has no effect. Calculations running in the session when TerminateSession is called are forcefully stopped, but may display as FAILED instead of STOPPED."]moduleUntagResourceInput=structtypenonrect={resourceARN:AmazonResourceName.t[@ocaml.doc"Specifies the ARN of the resource from which tags are to be removed."];tagKeys:TagKeyList.t[@ocaml.doc"A comma-separated list of one or more tag keys whose tags are to be removed from the specified resource."]}letcontext_="UntagResourceInput"letmake~resourceARN=fun~tagKeys->fun()->{resourceARN;tagKeys}letto_valuex=structure_to_value[("ResourceARN",(Some(AmazonResourceName.to_valuex.resourceARN)));("TagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"TagKeys")inletresourceARN=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~tagKeys~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"TagKeys"TagKeyList.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"AmazonResourceName.of_jsoninmake~tagKeys~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes one or more tags from an Athena resource."]moduleUntagResourceOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes one or more tags from an Athena resource."]moduleUpdateCapacityReservationInput=structtypenonrect={targetDpus:TargetDpusInteger.t[@ocaml.doc"The new number of requested data processing units."];name:CapacityReservationName.t[@ocaml.doc"The name of the capacity reservation."]}letcontext_="UpdateCapacityReservationInput"letmake~targetDpus=fun~name->fun()->{targetDpus;name}letto_valuex=structure_to_value[("TargetDpus",(Some(TargetDpusInteger.to_valuex.targetDpus)));("Name",(Some(CapacityReservationName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=CapacityReservationName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inlettargetDpus=TargetDpusInteger.of_xml(Xml.child_exn~context:context_xml_arg0"TargetDpus")inmake~name~targetDpus()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"Name"CapacityReservationName.of_jsoninlettargetDpus=field_map_exnjson__"TargetDpus"TargetDpusInteger.of_jsoninmake~name~targetDpus()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the number of requested data processing units for the capacity reservation with the specified name."]moduleUpdateCapacityReservationOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the number of requested data processing units for the capacity reservation with the specified name."]moduleUpdateDataCatalogInput=structtypenonrect={name:CatalogNameString.t[@ocaml.doc"The name of the data catalog to update. The catalog name must be unique for the Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of the length constraint of 256 is reserved for use by Athena."];type_:DataCatalogType.t[@ocaml.doc"Specifies the type of data catalog to update. Specify LAMBDA for a federated catalog, HIVE for an external hive metastore, or GLUE for an Glue Data Catalog."];description:DescriptionString.toption[@ocaml.doc"New or modified text that describes the data catalog."];parameters:ParametersMap.toption[@ocaml.doc"Specifies the Lambda function or functions to use for updating the data catalog. This is a mapping whose values depend on the catalog type. For the HIVE data catalog type, use the following syntax. The metadata-function parameter is required. The sdk-version parameter is optional and defaults to the currently supported version. metadata-function=lambda_arn, sdk-version=version_number For the LAMBDA data catalog type, use one of the following sets of required parameters, but not both. If you have one Lambda function that processes metadata and another for reading the actual data, use the following syntax. Both parameters are required. metadata-function=lambda_arn, record-function=lambda_arn If you have a composite Lambda function that processes both metadata and data, use the following syntax to specify your Lambda function. function=lambda_arn"]}letcontext_="UpdateDataCatalogInput"letmake?description=fun?parameters->fun~name->fun~type_->fun()->{description;parameters;name;type_}letto_valuex=structure_to_value[("Name",(Some(CatalogNameString.to_valuex.name)));("Type",(Some(DataCatalogType.to_valuex.type_)));("Description",(Option.mapx.description~f:DescriptionString.to_value));("Parameters",(Option.mapx.parameters~f:ParametersMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letparameters=(Option.map~f:ParametersMap.of_xml)(Xml.childxml_arg0"Parameters")inletdescription=(Option.map~f:DescriptionString.of_xml)(Xml.childxml_arg0"Description")inlettype_=DataCatalogType.of_xml(Xml.child_exn~context:context_xml_arg0"Type")inletname=CatalogNameString.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?parameters?description~type_~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letparameters=field_mapjson__"Parameters"ParametersMap.of_jsoninletdescription=field_mapjson__"Description"DescriptionString.of_jsoninlettype_=field_map_exnjson__"Type"DataCatalogType.of_jsoninletname=field_map_exnjson__"Name"CatalogNameString.of_jsoninmake?parameters?description~type_~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the data catalog that has the specified name."]moduleUpdateDataCatalogOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the data catalog that has the specified name."]moduleUpdateNamedQueryInput=structtypenonrect={namedQueryId:NamedQueryId.t[@ocaml.doc"The unique identifier (UUID) of the query."];name:NameString.t[@ocaml.doc"The name of the query."];description:NamedQueryDescriptionString.toption[@ocaml.doc"The query description."];queryString:QueryString.t[@ocaml.doc"The contents of the query with all query statements."]}letcontext_="UpdateNamedQueryInput"letmake?description=fun~namedQueryId->fun~name->fun~queryString->fun()->{description;namedQueryId;name;queryString}letto_valuex=structure_to_value[("NamedQueryId",(Some(NamedQueryId.to_valuex.namedQueryId)));("Name",(Some(NameString.to_valuex.name)));("Description",(Option.mapx.description~f:NamedQueryDescriptionString.to_value));("QueryString",(Some(QueryString.to_valuex.queryString)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueryString=QueryString.of_xml(Xml.child_exn~context:context_xml_arg0"QueryString")inletdescription=(Option.map~f:NamedQueryDescriptionString.of_xml)(Xml.childxml_arg0"Description")inletname=NameString.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inletnamedQueryId=NamedQueryId.of_xml(Xml.child_exn~context:context_xml_arg0"NamedQueryId")inmake~queryString?description~name~namedQueryId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueryString=field_map_exnjson__"QueryString"QueryString.of_jsoninletdescription=field_mapjson__"Description"NamedQueryDescriptionString.of_jsoninletname=field_map_exnjson__"Name"NameString.of_jsoninletnamedQueryId=field_map_exnjson__"NamedQueryId"NamedQueryId.of_jsoninmake~queryString?description~name~namedQueryId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a NamedQuery object. The database or workgroup cannot be updated."]moduleUpdateNamedQueryOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a NamedQuery object. The database or workgroup cannot be updated."]moduleUpdateNotebookInput=structtypenonrect={notebookId:NotebookId.t[@ocaml.doc"The ID of the notebook to update."];payload:Payload.t[@ocaml.doc"The updated content for the notebook."];type_:NotebookType.t[@ocaml.doc"The notebook content type. Currently, the only valid type is IPYNB."];sessionId:SessionId.toption[@ocaml.doc"The active notebook session ID. Required if the notebook has an active session."];clientRequestToken:ClientRequestToken.toption[@ocaml.doc"A unique case-sensitive string used to ensure the request to create the notebook is idempotent (executes only once). This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for you. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail."]}letcontext_="UpdateNotebookInput"letmake?sessionId=fun?clientRequestToken->fun~notebookId->fun~payload->fun~type_->fun()->{sessionId;clientRequestToken;notebookId;payload;type_}letto_valuex=structure_to_value[("NotebookId",(Some(NotebookId.to_valuex.notebookId)));("Payload",(Some(Payload.to_valuex.payload)));("Type",(Some(NotebookType.to_valuex.type_)));("SessionId",(Option.mapx.sessionId~f:SessionId.to_value));("ClientRequestToken",(Option.mapx.clientRequestToken~f:ClientRequestToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientRequestToken=(Option.map~f:ClientRequestToken.of_xml)(Xml.childxml_arg0"ClientRequestToken")inletsessionId=(Option.map~f:SessionId.of_xml)(Xml.childxml_arg0"SessionId")inlettype_=NotebookType.of_xml(Xml.child_exn~context:context_xml_arg0"Type")inletpayload=Payload.of_xml(Xml.child_exn~context:context_xml_arg0"Payload")inletnotebookId=NotebookId.of_xml(Xml.child_exn~context:context_xml_arg0"NotebookId")inmake?clientRequestToken?sessionId~type_~payload~notebookId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientRequestToken=field_mapjson__"ClientRequestToken"ClientRequestToken.of_jsoninletsessionId=field_mapjson__"SessionId"SessionId.of_jsoninlettype_=field_map_exnjson__"Type"NotebookType.of_jsoninletpayload=field_map_exnjson__"Payload"Payload.of_jsoninletnotebookId=field_map_exnjson__"NotebookId"NotebookId.of_jsoninmake?clientRequestToken?sessionId~type_~payload~notebookId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the contents of a Spark notebook."]moduleUpdateNotebookMetadataInput=structtypenonrect={notebookId:NotebookId.t[@ocaml.doc"The ID of the notebook to update the metadata for."];clientRequestToken:ClientRequestToken.toption[@ocaml.doc"A unique case-sensitive string used to ensure the request to create the notebook is idempotent (executes only once). This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for you. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail."];name:NotebookName.t[@ocaml.doc"The name to update the notebook to."]}letcontext_="UpdateNotebookMetadataInput"letmake?clientRequestToken=fun~notebookId->fun~name->fun()->{clientRequestToken;notebookId;name}letto_valuex=structure_to_value[("NotebookId",(Some(NotebookId.to_valuex.notebookId)));("ClientRequestToken",(Option.mapx.clientRequestToken~f:ClientRequestToken.to_value));("Name",(Some(NotebookName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=NotebookName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inletclientRequestToken=(Option.map~f:ClientRequestToken.of_xml)(Xml.childxml_arg0"ClientRequestToken")inletnotebookId=NotebookId.of_xml(Xml.child_exn~context:context_xml_arg0"NotebookId")inmake~name?clientRequestToken~notebookId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"Name"NotebookName.of_jsoninletclientRequestToken=field_mapjson__"ClientRequestToken"ClientRequestToken.of_jsoninletnotebookId=field_map_exnjson__"NotebookId"NotebookId.of_jsoninmake~name?clientRequestToken~notebookId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the metadata for a notebook."]moduleUpdateNotebookMetadataOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the metadata for a notebook."]moduleUpdateNotebookOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the contents of a Spark notebook."]moduleUpdatePreparedStatementInput=structtypenonrect={statementName:StatementName.t[@ocaml.doc"The name of the prepared statement."];workGroup:WorkGroupName.t[@ocaml.doc"The workgroup for the prepared statement."];queryStatement:QueryString.t[@ocaml.doc"The query string for the prepared statement."];description:DescriptionString.toption[@ocaml.doc"The description of the prepared statement."]}letcontext_="UpdatePreparedStatementInput"letmake?description=fun~statementName->fun~workGroup->fun~queryStatement->fun()->{description;statementName;workGroup;queryStatement}letto_valuex=structure_to_value[("StatementName",(Some(StatementName.to_valuex.statementName)));("WorkGroup",(Some(WorkGroupName.to_valuex.workGroup)));("QueryStatement",(Some(QueryString.to_valuex.queryStatement)));("Description",(Option.mapx.description~f:DescriptionString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdescription=(Option.map~f:DescriptionString.of_xml)(Xml.childxml_arg0"Description")inletqueryStatement=QueryString.of_xml(Xml.child_exn~context:context_xml_arg0"QueryStatement")inletworkGroup=WorkGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"WorkGroup")inletstatementName=StatementName.of_xml(Xml.child_exn~context:context_xml_arg0"StatementName")inmake?description~queryStatement~workGroup~statementName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdescription=field_mapjson__"Description"DescriptionString.of_jsoninletqueryStatement=field_map_exnjson__"QueryStatement"QueryString.of_jsoninletworkGroup=field_map_exnjson__"WorkGroup"WorkGroupName.of_jsoninletstatementName=field_map_exnjson__"StatementName"StatementName.of_jsoninmake?description~queryStatement~workGroup~statementName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a prepared statement."]moduleUpdatePreparedStatementOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a prepared statement."]moduleWorkGroupConfigurationUpdates=structtypenonrect={enforceWorkGroupConfiguration:BoxedBoolean.toption[@ocaml.doc"If set to \"true\", the settings for the workgroup override client-side settings. If set to \"false\" client-side settings are used. For more information, see Workgroup Settings Override Client-Side Settings."];resultConfigurationUpdates:ResultConfigurationUpdates.toption[@ocaml.doc"The result configuration information about the queries in this workgroup that will be updated. Includes the updated results location and an updated option for encrypting query results."];managedQueryResultsConfigurationUpdates:ManagedQueryResultsConfigurationUpdates.toption[@ocaml.doc"Updates configuration information for managed query results in the workgroup."];publishCloudWatchMetricsEnabled:BoxedBoolean.toption[@ocaml.doc"Indicates whether this workgroup enables publishing metrics to Amazon CloudWatch."];bytesScannedCutoffPerQuery:BytesScannedCutoffValue.toption[@ocaml.doc"The upper limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan."];removeBytesScannedCutoffPerQuery:BoxedBoolean.toption[@ocaml.doc"Indicates that the data usage control limit per query is removed. WorkGroupConfiguration$BytesScannedCutoffPerQuery"];requesterPaysEnabled:BoxedBoolean.toption[@ocaml.doc"If set to true, allows members assigned to a workgroup to specify Amazon S3 Requester Pays buckets in queries. If set to false, workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is false. For more information about Requester Pays buckets, see Requester Pays Buckets in the Amazon Simple Storage Service Developer Guide."];engineVersion:EngineVersion.toption[@ocaml.doc"The engine version requested when a workgroup is updated. After the update, all queries on the workgroup run on the requested engine version. If no value was previously set, the default is Auto. Queries on the AmazonAthenaPreviewFunctionality workgroup run on the preview engine regardless of this setting."];removeCustomerContentEncryptionConfiguration:BoxedBoolean.toption[@ocaml.doc"Removes content encryption configuration from an Apache Spark-enabled Athena workgroup."];additionalConfiguration:NameString.toption[@ocaml.doc"Contains a user defined string in JSON format for a Spark-enabled workgroup."];executionRole:RoleArn.toption[@ocaml.doc"The ARN of the execution role used to access user resources for Spark sessions and Identity Center enabled workgroups. This property applies only to Spark enabled workgroups and Identity Center enabled workgroups."];customerContentEncryptionConfiguration:CustomerContentEncryptionConfiguration.toption;enableMinimumEncryptionConfiguration:BoxedBoolean.toption[@ocaml.doc"Enforces a minimal level of encryption for the workgroup for query and calculation results that are written to Amazon S3. When enabled, workgroup users can set encryption only to the minimum level set by the administrator or higher when they submit queries. This setting does not apply to Spark-enabled workgroups. The EnforceWorkGroupConfiguration setting takes precedence over the EnableMinimumEncryptionConfiguration flag. This means that if EnforceWorkGroupConfiguration is true, the EnableMinimumEncryptionConfiguration flag is ignored, and the workgroup configuration for encryption is used."];queryResultsS3AccessGrantsConfiguration:QueryResultsS3AccessGrantsConfiguration.toption[@ocaml.doc"Specifies whether Amazon S3 access grants are enabled for query results."];monitoringConfiguration:MonitoringConfiguration.toption[@ocaml.doc"Contains the configuration settings for managed log persistence, delivering logs to Amazon S3 buckets, Amazon CloudWatch log groups etc."];engineConfiguration:EngineConfiguration.toption}letmake?enforceWorkGroupConfiguration=fun?resultConfigurationUpdates->fun?managedQueryResultsConfigurationUpdates->fun?publishCloudWatchMetricsEnabled->fun?bytesScannedCutoffPerQuery->fun?removeBytesScannedCutoffPerQuery->fun?requesterPaysEnabled->fun?engineVersion->fun?removeCustomerContentEncryptionConfiguration->fun?additionalConfiguration->fun?executionRole->fun?customerContentEncryptionConfiguration->fun?enableMinimumEncryptionConfiguration->fun?queryResultsS3AccessGrantsConfiguration->fun?monitoringConfiguration->fun?engineConfiguration->fun()->{enforceWorkGroupConfiguration;resultConfigurationUpdates;managedQueryResultsConfigurationUpdates;publishCloudWatchMetricsEnabled;bytesScannedCutoffPerQuery;removeBytesScannedCutoffPerQuery;requesterPaysEnabled;engineVersion;removeCustomerContentEncryptionConfiguration;additionalConfiguration;executionRole;customerContentEncryptionConfiguration;enableMinimumEncryptionConfiguration;queryResultsS3AccessGrantsConfiguration;monitoringConfiguration;engineConfiguration}letto_valuex=structure_to_value[("EnforceWorkGroupConfiguration",(Option.mapx.enforceWorkGroupConfiguration~f:BoxedBoolean.to_value));("ResultConfigurationUpdates",(Option.mapx.resultConfigurationUpdates~f:ResultConfigurationUpdates.to_value));("ManagedQueryResultsConfigurationUpdates",(Option.mapx.managedQueryResultsConfigurationUpdates~f:ManagedQueryResultsConfigurationUpdates.to_value));("PublishCloudWatchMetricsEnabled",(Option.mapx.publishCloudWatchMetricsEnabled~f:BoxedBoolean.to_value));("BytesScannedCutoffPerQuery",(Option.mapx.bytesScannedCutoffPerQuery~f:BytesScannedCutoffValue.to_value));("RemoveBytesScannedCutoffPerQuery",(Option.mapx.removeBytesScannedCutoffPerQuery~f:BoxedBoolean.to_value));("RequesterPaysEnabled",(Option.mapx.requesterPaysEnabled~f:BoxedBoolean.to_value));("EngineVersion",(Option.mapx.engineVersion~f:EngineVersion.to_value));("RemoveCustomerContentEncryptionConfiguration",(Option.mapx.removeCustomerContentEncryptionConfiguration~f:BoxedBoolean.to_value));("AdditionalConfiguration",(Option.mapx.additionalConfiguration~f:NameString.to_value));("ExecutionRole",(Option.mapx.executionRole~f:RoleArn.to_value));("CustomerContentEncryptionConfiguration",(Option.mapx.customerContentEncryptionConfiguration~f:CustomerContentEncryptionConfiguration.to_value));("EnableMinimumEncryptionConfiguration",(Option.mapx.enableMinimumEncryptionConfiguration~f:BoxedBoolean.to_value));("QueryResultsS3AccessGrantsConfiguration",(Option.mapx.queryResultsS3AccessGrantsConfiguration~f:QueryResultsS3AccessGrantsConfiguration.to_value));("MonitoringConfiguration",(Option.mapx.monitoringConfiguration~f:MonitoringConfiguration.to_value));("EngineConfiguration",(Option.mapx.engineConfiguration~f:EngineConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letengineConfiguration=(Option.map~f:EngineConfiguration.of_xml)(Xml.childxml_arg0"EngineConfiguration")inletmonitoringConfiguration=(Option.map~f:MonitoringConfiguration.of_xml)(Xml.childxml_arg0"MonitoringConfiguration")inletqueryResultsS3AccessGrantsConfiguration=(Option.map~f:QueryResultsS3AccessGrantsConfiguration.of_xml)(Xml.childxml_arg0"QueryResultsS3AccessGrantsConfiguration")inletenableMinimumEncryptionConfiguration=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"EnableMinimumEncryptionConfiguration")inletcustomerContentEncryptionConfiguration=(Option.map~f:CustomerContentEncryptionConfiguration.of_xml)(Xml.childxml_arg0"CustomerContentEncryptionConfiguration")inletexecutionRole=(Option.map~f:RoleArn.of_xml)(Xml.childxml_arg0"ExecutionRole")inletadditionalConfiguration=(Option.map~f:NameString.of_xml)(Xml.childxml_arg0"AdditionalConfiguration")inletremoveCustomerContentEncryptionConfiguration=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"RemoveCustomerContentEncryptionConfiguration")inletengineVersion=(Option.map~f:EngineVersion.of_xml)(Xml.childxml_arg0"EngineVersion")inletrequesterPaysEnabled=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"RequesterPaysEnabled")inletremoveBytesScannedCutoffPerQuery=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"RemoveBytesScannedCutoffPerQuery")inletbytesScannedCutoffPerQuery=(Option.map~f:BytesScannedCutoffValue.of_xml)(Xml.childxml_arg0"BytesScannedCutoffPerQuery")inletpublishCloudWatchMetricsEnabled=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"PublishCloudWatchMetricsEnabled")inletmanagedQueryResultsConfigurationUpdates=(Option.map~f:ManagedQueryResultsConfigurationUpdates.of_xml)(Xml.childxml_arg0"ManagedQueryResultsConfigurationUpdates")inletresultConfigurationUpdates=(Option.map~f:ResultConfigurationUpdates.of_xml)(Xml.childxml_arg0"ResultConfigurationUpdates")inletenforceWorkGroupConfiguration=(Option.map~f:BoxedBoolean.of_xml)(Xml.childxml_arg0"EnforceWorkGroupConfiguration")inmake?engineConfiguration?monitoringConfiguration?queryResultsS3AccessGrantsConfiguration?enableMinimumEncryptionConfiguration?customerContentEncryptionConfiguration?executionRole?additionalConfiguration?removeCustomerContentEncryptionConfiguration?engineVersion?requesterPaysEnabled?removeBytesScannedCutoffPerQuery?bytesScannedCutoffPerQuery?publishCloudWatchMetricsEnabled?managedQueryResultsConfigurationUpdates?resultConfigurationUpdates?enforceWorkGroupConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letengineConfiguration=field_mapjson__"EngineConfiguration"EngineConfiguration.of_jsoninletmonitoringConfiguration=field_mapjson__"MonitoringConfiguration"MonitoringConfiguration.of_jsoninletqueryResultsS3AccessGrantsConfiguration=field_mapjson__"QueryResultsS3AccessGrantsConfiguration"QueryResultsS3AccessGrantsConfiguration.of_jsoninletenableMinimumEncryptionConfiguration=field_mapjson__"EnableMinimumEncryptionConfiguration"BoxedBoolean.of_jsoninletcustomerContentEncryptionConfiguration=field_mapjson__"CustomerContentEncryptionConfiguration"CustomerContentEncryptionConfiguration.of_jsoninletexecutionRole=field_mapjson__"ExecutionRole"RoleArn.of_jsoninletadditionalConfiguration=field_mapjson__"AdditionalConfiguration"NameString.of_jsoninletremoveCustomerContentEncryptionConfiguration=field_mapjson__"RemoveCustomerContentEncryptionConfiguration"BoxedBoolean.of_jsoninletengineVersion=field_mapjson__"EngineVersion"EngineVersion.of_jsoninletrequesterPaysEnabled=field_mapjson__"RequesterPaysEnabled"BoxedBoolean.of_jsoninletremoveBytesScannedCutoffPerQuery=field_mapjson__"RemoveBytesScannedCutoffPerQuery"BoxedBoolean.of_jsoninletbytesScannedCutoffPerQuery=field_mapjson__"BytesScannedCutoffPerQuery"BytesScannedCutoffValue.of_jsoninletpublishCloudWatchMetricsEnabled=field_mapjson__"PublishCloudWatchMetricsEnabled"BoxedBoolean.of_jsoninletmanagedQueryResultsConfigurationUpdates=field_mapjson__"ManagedQueryResultsConfigurationUpdates"ManagedQueryResultsConfigurationUpdates.of_jsoninletresultConfigurationUpdates=field_mapjson__"ResultConfigurationUpdates"ResultConfigurationUpdates.of_jsoninletenforceWorkGroupConfiguration=field_mapjson__"EnforceWorkGroupConfiguration"BoxedBoolean.of_jsoninmake?engineConfiguration?monitoringConfiguration?queryResultsS3AccessGrantsConfiguration?enableMinimumEncryptionConfiguration?customerContentEncryptionConfiguration?executionRole?additionalConfiguration?removeCustomerContentEncryptionConfiguration?engineVersion?requesterPaysEnabled?removeBytesScannedCutoffPerQuery?bytesScannedCutoffPerQuery?publishCloudWatchMetricsEnabled?managedQueryResultsConfigurationUpdates?resultConfigurationUpdates?enforceWorkGroupConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The configuration information that will be updated for this workgroup, which includes the location in Amazon S3 where query and calculation results are stored, the encryption option, if any, used for query results, whether the Amazon CloudWatch Metrics are enabled for the workgroup, whether the workgroup settings override the client-side settings, and the data usage limit for the amount of bytes scanned per query, if it is specified."]moduleUpdateWorkGroupInput=structtypenonrect={workGroup:WorkGroupName.t[@ocaml.doc"The specified workgroup that will be updated."];description:WorkGroupDescriptionString.toption[@ocaml.doc"The workgroup description."];configurationUpdates:WorkGroupConfigurationUpdates.toption[@ocaml.doc"Contains configuration updates for an Athena SQL workgroup."];state:WorkGroupState.toption[@ocaml.doc"The workgroup state that will be updated for the given workgroup."]}letcontext_="UpdateWorkGroupInput"letmake?description=fun?configurationUpdates->fun?state->fun~workGroup->fun()->{description;configurationUpdates;state;workGroup}letto_valuex=structure_to_value[("WorkGroup",(Some(WorkGroupName.to_valuex.workGroup)));("Description",(Option.mapx.description~f:WorkGroupDescriptionString.to_value));("ConfigurationUpdates",(Option.mapx.configurationUpdates~f:WorkGroupConfigurationUpdates.to_value));("State",(Option.mapx.state~f:WorkGroupState.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstate=(Option.map~f:WorkGroupState.of_xml)(Xml.childxml_arg0"State")inletconfigurationUpdates=(Option.map~f:WorkGroupConfigurationUpdates.of_xml)(Xml.childxml_arg0"ConfigurationUpdates")inletdescription=(Option.map~f:WorkGroupDescriptionString.of_xml)(Xml.childxml_arg0"Description")inletworkGroup=WorkGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"WorkGroup")inmake?state?configurationUpdates?description~workGroup()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstate=field_mapjson__"State"WorkGroupState.of_jsoninletconfigurationUpdates=field_mapjson__"ConfigurationUpdates"WorkGroupConfigurationUpdates.of_jsoninletdescription=field_mapjson__"Description"WorkGroupDescriptionString.of_jsoninletworkGroup=field_map_exnjson__"WorkGroup"WorkGroupName.of_jsoninmake?state?configurationUpdates?description~workGroup()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the workgroup with the specified name. The workgroup's name cannot be changed. Only ConfigurationUpdates can be specified."]moduleUpdateWorkGroupOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the workgroup with the specified name. The workgroup's name cannot be changed. Only ConfigurationUpdates can be specified."]