12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477(* 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.timestream_queryletapiVersion="2018-11-01"letendpointPrefix="query.timestream"letserviceFullName="Amazon Timestream Query"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="Timestream Query"lettargetPrefix="Timestream_20181101"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[]))])moduleServiceErrorMessage=structtypenonrect=stringletcontext_="ServiceErrorMessage"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:"ServiceErrorMessage"jletto_json=simple_to_jsonto_valueendmoduleAccessDeniedException=structtypenonrect={message:ServiceErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ServiceErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ServiceErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ServiceErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You do not have the necessary permissions to access the account settings."]moduleAmazonResourceName=structtypenonrect=stringletcontext_="AmazonResourceName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AmazonResourceName"jletto_json=simple_to_jsonto_valueendmoduleSnsConfiguration=structtypenonrect={topicArn:AmazonResourceName.t[@ocaml.doc"SNS topic ARN that the scheduled query status notifications will be sent to."]}letcontext_="SnsConfiguration"letmake~topicArn=fun()->{topicArn}letto_valuex=structure_to_value[("TopicArn",(Some(AmazonResourceName.to_valuex.topicArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettopicArn=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"TopicArn")inmake~topicArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettopicArn=field_map_exnjson__"TopicArn"AmazonResourceName.of_jsoninmake~topicArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details on SNS that are required to send the notification."]moduleAccountSettingsNotificationConfiguration=structtypenonrect={snsConfiguration:SnsConfiguration.toption;roleArn:AmazonResourceName.t[@ocaml.doc"An Amazon Resource Name (ARN) that grants Timestream permission to publish notifications. This field is only visible if SNS Topic is provided when updating the account settings."]}letcontext_="AccountSettingsNotificationConfiguration"letmake?snsConfiguration=fun~roleArn->fun()->{snsConfiguration;roleArn}letto_valuex=structure_to_value[("SnsConfiguration",(Option.mapx.snsConfiguration~f:SnsConfiguration.to_value));("RoleArn",(Some(AmazonResourceName.to_valuex.roleArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleArn=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"RoleArn")inletsnsConfiguration=(Option.map~f:SnsConfiguration.of_xml)(Xml.childxml_arg0"SnsConfiguration")inmake~roleArn?snsConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleArn=field_map_exnjson__"RoleArn"AmazonResourceName.of_jsoninletsnsConfiguration=field_mapjson__"SnsConfiguration"SnsConfiguration.of_jsoninmake~roleArn?snsConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration settings for notifications related to account settings."]moduleQueryId=structtypenonrect=stringletcontext_="QueryId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"QueryId"jletto_json=simple_to_jsonto_valueendmoduleCancelQueryRequest=structtypenonrect={queryId:QueryId.t[@ocaml.doc"The ID of the query that needs to be cancelled. QueryID is returned as part of the query result."]}letcontext_="CancelQueryRequest"letmake~queryId=fun()->{queryId}letto_valuex=structure_to_value[("QueryId",(Some(QueryId.to_valuex.queryId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueryId=QueryId.of_xml(Xml.child_exn~context:context_xml_arg0"QueryId")inmake~queryId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueryId=field_map_exnjson__"QueryId"QueryId.of_jsoninmake~queryId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Cancels a query that has been issued. Cancellation is provided only if the query has not completed running before the cancellation request was issued. Because cancellation is an idempotent operation, subsequent cancellation requests will return a CancellationMessage, indicating that the query has already been canceled. See code sample for details."]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_valueendmoduleValidationException=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"Invalid or malformed request."]moduleThrottlingException=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 request was throttled due to excessive requests."]moduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleInvalidEndpointException=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 requested endpoint is invalid."]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"An internal server error occurred while processing the request."]moduleCancelQueryResponse=structtypenonrect={cancellationMessage:String_.toption[@ocaml.doc"A CancellationMessage is returned when a CancelQuery request for the query specified by QueryId has already been issued."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`InvalidEndpointExceptionofInvalidEndpointException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?cancellationMessage=fun()->{cancellationMessage}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidEndpointExceptione->`Assoc[("error",(`String"InvalidEndpointException"));("details",(InvalidEndpointException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("CancellationMessage",(Option.mapx.cancellationMessage~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcancellationMessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"CancellationMessage")inmake?cancellationMessage()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcancellationMessage=field_mapjson__"CancellationMessage"String_.of_jsoninmake?cancellationMessage()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Cancels a query that has been issued. Cancellation is provided only if the query has not completed running before the cancellation request was issued. Because cancellation is an idempotent operation, subsequent cancellation requests will return a CancellationMessage, indicating that the query has already been canceled. See code sample for details."]moduleClientRequestToken=structtypenonrect=stringletcontext_="ClientRequestToken"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:"ClientRequestToken"jletto_json=simple_to_jsonto_valueendmoduleClientToken=structtypenonrect=stringletcontext_="ClientToken"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:"ClientToken"jletto_json=simple_to_jsonto_valueendmoduleScalarType=structtypenonrect=|VARCHAR|BOOLEAN|BIGINT|DOUBLE|TIMESTAMP|DATE|TIME|INTERVAL_DAY_TO_SECOND|INTERVAL_YEAR_TO_MONTH|UNKNOWN|INTEGER|Non_static_idofstringletmakei=iletto_string=function|VARCHAR->"VARCHAR"|BOOLEAN->"BOOLEAN"|BIGINT->"BIGINT"|DOUBLE->"DOUBLE"|TIMESTAMP->"TIMESTAMP"|DATE->"DATE"|TIME->"TIME"|INTERVAL_DAY_TO_SECOND->"INTERVAL_DAY_TO_SECOND"|INTERVAL_YEAR_TO_MONTH->"INTERVAL_YEAR_TO_MONTH"|UNKNOWN->"UNKNOWN"|INTEGER->"INTEGER"|Non_static_ids->sletof_string=function|"VARCHAR"->VARCHAR|"BOOLEAN"->BOOLEAN|"BIGINT"->BIGINT|"DOUBLE"->DOUBLE|"TIMESTAMP"->TIMESTAMP|"DATE"->DATE|"TIME"->TIME|"INTERVAL_DAY_TO_SECOND"->INTERVAL_DAY_TO_SECOND|"INTERVAL_YEAR_TO_MONTH"->INTERVAL_YEAR_TO_MONTH|"UNKNOWN"->UNKNOWN|"INTEGER"->INTEGER|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 ScalarType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ScalarType"j)letto_json=simple_to_jsonto_valueendmodulerecColumnInfo:sigtypenonrect={name:String_.toption[@ocaml.doc"The name of the result set column. The name of the result set is available for columns of all data types except for arrays."];type_:Type.toption[@ocaml.doc"The data type of the result set column. The data type can be a scalar or complex. Scalar data types are integers, strings, doubles, Booleans, and others. Complex data types are types such as arrays, rows, and others."]}valmake:?name:String_.t->?type_:Type.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"The name of the result set column. The name of the result set is available for columns of all data types except for arrays."];type_:Type.toption[@ocaml.doc"The data type of the result set column. The data type can be a scalar or complex. Scalar data types are integers, strings, doubles, Booleans, and others. Complex data types are types such as arrays, rows, and others."]}letmake?name=fun?type_->fun()->{name;type_}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:String_.to_value));("Type",(Option.mapx.type_~f:Type.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=(Option.map~f:Type.of_xml)(Xml.childxml_arg0"Type")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Name")inmake?type_?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_mapjson__"Type"Type.of_jsoninletname=field_mapjson__"Name"String_.of_jsoninmake?type_?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the metadata for query results such as the column names, data types, and other attributes."]andColumnInfoList:sigtypenonrect=ColumnInfo.tlistvalmake:ColumnInfo.tlist->tvalto_value:t->Botodata.valuevalto_query:t->Client.Query.tvalof_xml:Xml.t->ColumnInfo.tlistvalof_json:Yojson.Safe.t->tvalto_json:t->Yojson.Safe.tvalto_header:t->stringend=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_valuevendandType:sigtypenonrect={scalarType:ScalarType.toption[@ocaml.doc"Indicates if the column is of type string, integer, Boolean, double, timestamp, date, time. For more information, see Supported data types."];arrayColumnInfo:ColumnInfo.toption[@ocaml.doc"Indicates if the column is an array."];timeSeriesMeasureValueColumnInfo:ColumnInfo.toption[@ocaml.doc"Indicates if the column is a timeseries data type."];rowColumnInfo:ColumnInfoList.toption[@ocaml.doc"Indicates if the column is a row."]}valmake:?scalarType:ScalarType.t->?arrayColumnInfo:ColumnInfo.t->?timeSeriesMeasureValueColumnInfo:ColumnInfo.t->?rowColumnInfo:ColumnInfoList.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={scalarType:ScalarType.toption[@ocaml.doc"Indicates if the column is of type string, integer, Boolean, double, timestamp, date, time. For more information, see Supported data types."];arrayColumnInfo:ColumnInfo.toption[@ocaml.doc"Indicates if the column is an array."];timeSeriesMeasureValueColumnInfo:ColumnInfo.toption[@ocaml.doc"Indicates if the column is a timeseries data type."];rowColumnInfo:ColumnInfoList.toption[@ocaml.doc"Indicates if the column is a row."]}letmake?scalarType=fun?arrayColumnInfo->fun?timeSeriesMeasureValueColumnInfo->fun?rowColumnInfo->fun()->{scalarType;arrayColumnInfo;timeSeriesMeasureValueColumnInfo;rowColumnInfo}letto_valuex=structure_to_value[("ScalarType",(Option.mapx.scalarType~f:ScalarType.to_value));("ArrayColumnInfo",(Option.mapx.arrayColumnInfo~f:ColumnInfo.to_value));("TimeSeriesMeasureValueColumnInfo",(Option.mapx.timeSeriesMeasureValueColumnInfo~f:ColumnInfo.to_value));("RowColumnInfo",(Option.mapx.rowColumnInfo~f:ColumnInfoList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrowColumnInfo=(Option.map~f:ColumnInfoList.of_xml)(Xml.childxml_arg0"RowColumnInfo")inlettimeSeriesMeasureValueColumnInfo=(Option.map~f:ColumnInfo.of_xml)(Xml.childxml_arg0"TimeSeriesMeasureValueColumnInfo")inletarrayColumnInfo=(Option.map~f:ColumnInfo.of_xml)(Xml.childxml_arg0"ArrayColumnInfo")inletscalarType=(Option.map~f:ScalarType.of_xml)(Xml.childxml_arg0"ScalarType")inmake?rowColumnInfo?timeSeriesMeasureValueColumnInfo?arrayColumnInfo?scalarType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrowColumnInfo=field_mapjson__"RowColumnInfo"ColumnInfoList.of_jsoninlettimeSeriesMeasureValueColumnInfo=field_mapjson__"TimeSeriesMeasureValueColumnInfo"ColumnInfo.of_jsoninletarrayColumnInfo=field_mapjson__"ArrayColumnInfo"ColumnInfo.of_jsoninletscalarType=field_mapjson__"ScalarType"ScalarType.of_jsoninmake?rowColumnInfo?timeSeriesMeasureValueColumnInfo?arrayColumnInfo?scalarType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the data type of a column in a query result set. The data type can be scalar or complex. The supported scalar data types are integers, Boolean, string, double, timestamp, date, time, and intervals. The supported complex data types are arrays, rows, and timeseries."]moduleComputeMode=structtypenonrect=|ON_DEMAND|PROVISIONED|Non_static_idofstringletmakei=iletto_string=function|ON_DEMAND->"ON_DEMAND"|PROVISIONED->"PROVISIONED"|Non_static_ids->sletof_string=function|"ON_DEMAND"->ON_DEMAND|"PROVISIONED"->PROVISIONED|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 ComputeMode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ComputeMode"j)letto_json=simple_to_jsonto_valueendmoduleConflictException=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"Unable to poll results for a cancelled query."]moduleSchemaName=structtypenonrect=stringletcontext_="SchemaName"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:"SchemaName"jletto_json=simple_to_jsonto_valueendmoduleResourceName=structtypenonrect=stringletcontext_="ResourceName"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:"ResourceName"jletto_json=simple_to_jsonto_valueendmoduleScalarMeasureValueType=structtypenonrect=|BIGINT|BOOLEAN|DOUBLE|VARCHAR|TIMESTAMP|Non_static_idofstringletmakei=iletto_string=function|BIGINT->"BIGINT"|BOOLEAN->"BOOLEAN"|DOUBLE->"DOUBLE"|VARCHAR->"VARCHAR"|TIMESTAMP->"TIMESTAMP"|Non_static_ids->sletof_string=function|"BIGINT"->BIGINT|"BOOLEAN"->BOOLEAN|"DOUBLE"->DOUBLE|"VARCHAR"->VARCHAR|"TIMESTAMP"->TIMESTAMP|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 ScalarMeasureValueType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ScalarMeasureValueType"j)letto_json=simple_to_jsonto_valueendmoduleMultiMeasureAttributeMapping=structtypenonrect={sourceColumn:SchemaName.t[@ocaml.doc"Source column from where the attribute value is to be read."];targetMultiMeasureAttributeName:SchemaName.toption[@ocaml.doc"Custom name to be used for attribute name in derived table. If not provided, source column name would be used."];measureValueType:ScalarMeasureValueType.t[@ocaml.doc"Type of the attribute to be read from the source column."]}letcontext_="MultiMeasureAttributeMapping"letmake?targetMultiMeasureAttributeName=fun~sourceColumn->fun~measureValueType->fun()->{targetMultiMeasureAttributeName;sourceColumn;measureValueType}letto_valuex=structure_to_value[("SourceColumn",(Some(SchemaName.to_valuex.sourceColumn)));("TargetMultiMeasureAttributeName",(Option.mapx.targetMultiMeasureAttributeName~f:SchemaName.to_value));("MeasureValueType",(Some(ScalarMeasureValueType.to_valuex.measureValueType)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmeasureValueType=ScalarMeasureValueType.of_xml(Xml.child_exn~context:context_xml_arg0"MeasureValueType")inlettargetMultiMeasureAttributeName=(Option.map~f:SchemaName.of_xml)(Xml.childxml_arg0"TargetMultiMeasureAttributeName")inletsourceColumn=SchemaName.of_xml(Xml.child_exn~context:context_xml_arg0"SourceColumn")inmake~measureValueType?targetMultiMeasureAttributeName~sourceColumn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmeasureValueType=field_map_exnjson__"MeasureValueType"ScalarMeasureValueType.of_jsoninlettargetMultiMeasureAttributeName=field_mapjson__"TargetMultiMeasureAttributeName"SchemaName.of_jsoninletsourceColumn=field_map_exnjson__"SourceColumn"SchemaName.of_jsoninmake~measureValueType?targetMultiMeasureAttributeName~sourceColumn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Attribute mapping for MULTI value measures."]moduleMultiMeasureAttributeMappingList=structtypenonrect=MultiMeasureAttributeMapping.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:MultiMeasureAttributeMapping.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:MultiMeasureAttributeMapping.of_xml)letof_jsonj=list_of_json~kind:"MultiMeasureAttributeMappingList"~of_json:MultiMeasureAttributeMapping.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMultiMeasureMappings=structtypenonrect={targetMultiMeasureName:SchemaName.toption[@ocaml.doc"The name of the target multi-measure name in the derived table. This input is required when measureNameColumn is not provided. If MeasureNameColumn is provided, then value from that column will be used as multi-measure name."];multiMeasureAttributeMappings:MultiMeasureAttributeMappingList.t[@ocaml.doc"Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes."]}letcontext_="MultiMeasureMappings"letmake?targetMultiMeasureName=fun~multiMeasureAttributeMappings->fun()->{targetMultiMeasureName;multiMeasureAttributeMappings}letto_valuex=structure_to_value[("TargetMultiMeasureName",(Option.mapx.targetMultiMeasureName~f:SchemaName.to_value));("MultiMeasureAttributeMappings",(Some(MultiMeasureAttributeMappingList.to_valuex.multiMeasureAttributeMappings)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmultiMeasureAttributeMappings=MultiMeasureAttributeMappingList.of_xml(Xml.child_exn~context:context_xml_arg0"MultiMeasureAttributeMappings")inlettargetMultiMeasureName=(Option.map~f:SchemaName.of_xml)(Xml.childxml_arg0"TargetMultiMeasureName")inmake~multiMeasureAttributeMappings?targetMultiMeasureName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmultiMeasureAttributeMappings=field_map_exnjson__"MultiMeasureAttributeMappings"MultiMeasureAttributeMappingList.of_jsoninlettargetMultiMeasureName=field_mapjson__"TargetMultiMeasureName"SchemaName.of_jsoninmake~multiMeasureAttributeMappings?targetMultiMeasureName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Only one of MixedMeasureMappings or MultiMeasureMappings is to be provided. MultiMeasureMappings can be used to ingest data as multi measures in the derived table."]moduleMeasureValueType=structtypenonrect=|BIGINT|BOOLEAN|DOUBLE|VARCHAR|MULTI|Non_static_idofstringletmakei=iletto_string=function|BIGINT->"BIGINT"|BOOLEAN->"BOOLEAN"|DOUBLE->"DOUBLE"|VARCHAR->"VARCHAR"|MULTI->"MULTI"|Non_static_ids->sletof_string=function|"BIGINT"->BIGINT|"BOOLEAN"->BOOLEAN|"DOUBLE"->DOUBLE|"VARCHAR"->VARCHAR|"MULTI"->MULTI|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 MeasureValueType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MeasureValueType"j)letto_json=simple_to_jsonto_valueendmoduleMixedMeasureMapping=structtypenonrect={measureName:SchemaName.toption[@ocaml.doc"Refers to the value of measure_name in a result row. This field is required if MeasureNameColumn is provided."];sourceColumn:SchemaName.toption[@ocaml.doc"This field refers to the source column from which measure-value is to be read for result materialization."];targetMeasureName:SchemaName.toption[@ocaml.doc"Target measure name to be used. If not provided, the target measure name by default would be measure-name if provided, or sourceColumn otherwise."];measureValueType:MeasureValueType.t[@ocaml.doc"Type of the value that is to be read from sourceColumn. If the mapping is for MULTI, use MeasureValueType.MULTI."];multiMeasureAttributeMappings:MultiMeasureAttributeMappingList.toption[@ocaml.doc"Required when measureValueType is MULTI. Attribute mappings for MULTI value measures."]}letcontext_="MixedMeasureMapping"letmake?measureName=fun?sourceColumn->fun?targetMeasureName->fun?multiMeasureAttributeMappings->fun~measureValueType->fun()->{measureName;sourceColumn;targetMeasureName;multiMeasureAttributeMappings;measureValueType}letto_valuex=structure_to_value[("MeasureName",(Option.mapx.measureName~f:SchemaName.to_value));("SourceColumn",(Option.mapx.sourceColumn~f:SchemaName.to_value));("TargetMeasureName",(Option.mapx.targetMeasureName~f:SchemaName.to_value));("MeasureValueType",(Some(MeasureValueType.to_valuex.measureValueType)));("MultiMeasureAttributeMappings",(Option.mapx.multiMeasureAttributeMappings~f:MultiMeasureAttributeMappingList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmultiMeasureAttributeMappings=(Option.map~f:MultiMeasureAttributeMappingList.of_xml)(Xml.childxml_arg0"MultiMeasureAttributeMappings")inletmeasureValueType=MeasureValueType.of_xml(Xml.child_exn~context:context_xml_arg0"MeasureValueType")inlettargetMeasureName=(Option.map~f:SchemaName.of_xml)(Xml.childxml_arg0"TargetMeasureName")inletsourceColumn=(Option.map~f:SchemaName.of_xml)(Xml.childxml_arg0"SourceColumn")inletmeasureName=(Option.map~f:SchemaName.of_xml)(Xml.childxml_arg0"MeasureName")inmake?multiMeasureAttributeMappings~measureValueType?targetMeasureName?sourceColumn?measureName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmultiMeasureAttributeMappings=field_mapjson__"MultiMeasureAttributeMappings"MultiMeasureAttributeMappingList.of_jsoninletmeasureValueType=field_map_exnjson__"MeasureValueType"MeasureValueType.of_jsoninlettargetMeasureName=field_mapjson__"TargetMeasureName"SchemaName.of_jsoninletsourceColumn=field_mapjson__"SourceColumn"SchemaName.of_jsoninletmeasureName=field_mapjson__"MeasureName"SchemaName.of_jsoninmake?multiMeasureAttributeMappings~measureValueType?targetMeasureName?sourceColumn?measureName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"MixedMeasureMappings are mappings that can be used to ingest data into a mixture of narrow and multi measures in the derived table."]moduleMixedMeasureMappingList=structtypenonrect=MixedMeasureMapping.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:MixedMeasureMapping.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:MixedMeasureMapping.of_xml)letof_jsonj=list_of_json~kind:"MixedMeasureMappingList"~of_json:MixedMeasureMapping.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDimensionValueType=structtypenonrect=|VARCHAR|Non_static_idofstringletmakei=iletto_string=function|VARCHAR->"VARCHAR"|Non_static_ids->sletof_string=function|"VARCHAR"->VARCHAR|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 DimensionValueType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DimensionValueType"j)letto_json=simple_to_jsonto_valueendmoduleDimensionMapping=structtypenonrect={name:SchemaName.t[@ocaml.doc"Column name from query result."];dimensionValueType:DimensionValueType.t[@ocaml.doc"Type for the dimension."]}letcontext_="DimensionMapping"letmake~name=fun~dimensionValueType->fun()->{name;dimensionValueType}letto_valuex=structure_to_value[("Name",(Some(SchemaName.to_valuex.name)));("DimensionValueType",(Some(DimensionValueType.to_valuex.dimensionValueType)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdimensionValueType=DimensionValueType.of_xml(Xml.child_exn~context:context_xml_arg0"DimensionValueType")inletname=SchemaName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~dimensionValueType~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdimensionValueType=field_map_exnjson__"DimensionValueType"DimensionValueType.of_jsoninletname=field_map_exnjson__"Name"SchemaName.of_jsoninmake~dimensionValueType~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This type is used to map column(s) from the query result to a dimension in the destination table."]moduleDimensionMappingList=structtypenonrect=DimensionMapping.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DimensionMapping.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:DimensionMapping.of_xml)letof_jsonj=list_of_json~kind:"DimensionMappingList"~of_json:DimensionMapping.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTimestreamConfiguration=structtypenonrect={databaseName:ResourceName.t[@ocaml.doc"Name of Timestream database to which the query result will be written."];tableName:ResourceName.t[@ocaml.doc"Name of Timestream table that the query result will be written to. The table should be within the same database that is provided in Timestream configuration."];timeColumn:SchemaName.t[@ocaml.doc"Column from query result that should be used as the time column in destination table. Column type for this should be TIMESTAMP."];dimensionMappings:DimensionMappingList.t[@ocaml.doc"This is to allow mapping column(s) from the query result to the dimension in the destination table."];multiMeasureMappings:MultiMeasureMappings.toption[@ocaml.doc"Multi-measure mappings."];mixedMeasureMappings:MixedMeasureMappingList.toption[@ocaml.doc"Specifies how to map measures to multi-measure records."];measureNameColumn:SchemaName.toption[@ocaml.doc"Name of the measure column."]}letcontext_="TimestreamConfiguration"letmake?multiMeasureMappings=fun?mixedMeasureMappings->fun?measureNameColumn->fun~databaseName->fun~tableName->fun~timeColumn->fun~dimensionMappings->fun()->{multiMeasureMappings;mixedMeasureMappings;measureNameColumn;databaseName;tableName;timeColumn;dimensionMappings}letto_valuex=structure_to_value[("DatabaseName",(Some(ResourceName.to_valuex.databaseName)));("TableName",(Some(ResourceName.to_valuex.tableName)));("TimeColumn",(Some(SchemaName.to_valuex.timeColumn)));("DimensionMappings",(Some(DimensionMappingList.to_valuex.dimensionMappings)));("MultiMeasureMappings",(Option.mapx.multiMeasureMappings~f:MultiMeasureMappings.to_value));("MixedMeasureMappings",(Option.mapx.mixedMeasureMappings~f:MixedMeasureMappingList.to_value));("MeasureNameColumn",(Option.mapx.measureNameColumn~f:SchemaName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmeasureNameColumn=(Option.map~f:SchemaName.of_xml)(Xml.childxml_arg0"MeasureNameColumn")inletmixedMeasureMappings=(Option.map~f:MixedMeasureMappingList.of_xml)(Xml.childxml_arg0"MixedMeasureMappings")inletmultiMeasureMappings=(Option.map~f:MultiMeasureMappings.of_xml)(Xml.childxml_arg0"MultiMeasureMappings")inletdimensionMappings=DimensionMappingList.of_xml(Xml.child_exn~context:context_xml_arg0"DimensionMappings")inlettimeColumn=SchemaName.of_xml(Xml.child_exn~context:context_xml_arg0"TimeColumn")inlettableName=ResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"TableName")inletdatabaseName=ResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"DatabaseName")inmake?measureNameColumn?mixedMeasureMappings?multiMeasureMappings~dimensionMappings~timeColumn~tableName~databaseName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmeasureNameColumn=field_mapjson__"MeasureNameColumn"SchemaName.of_jsoninletmixedMeasureMappings=field_mapjson__"MixedMeasureMappings"MixedMeasureMappingList.of_jsoninletmultiMeasureMappings=field_mapjson__"MultiMeasureMappings"MultiMeasureMappings.of_jsoninletdimensionMappings=field_map_exnjson__"DimensionMappings"DimensionMappingList.of_jsoninlettimeColumn=field_map_exnjson__"TimeColumn"SchemaName.of_jsoninlettableName=field_map_exnjson__"TableName"ResourceName.of_jsoninletdatabaseName=field_map_exnjson__"DatabaseName"ResourceName.of_jsoninmake?measureNameColumn?mixedMeasureMappings?multiMeasureMappings~dimensionMappings~timeColumn~tableName~databaseName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration to write data into Timestream database and table. This configuration allows the user to map the query result select columns into the destination table columns."]moduleTargetConfiguration=structtypenonrect={timestreamConfiguration:TimestreamConfiguration.t[@ocaml.doc"Configuration needed to write data into the Timestream database and table."]}letcontext_="TargetConfiguration"letmake~timestreamConfiguration=fun()->{timestreamConfiguration}letto_valuex=structure_to_value[("TimestreamConfiguration",(Some(TimestreamConfiguration.to_valuex.timestreamConfiguration)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettimestreamConfiguration=TimestreamConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"TimestreamConfiguration")inmake~timestreamConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettimestreamConfiguration=field_map_exnjson__"TimestreamConfiguration"TimestreamConfiguration.of_jsoninmake~timestreamConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration used for writing the output of a query."]moduleTagValue=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.t[@ocaml.doc"The key of the tag. Tag keys are case sensitive."];value:TagValue.t[@ocaml.doc"The value of the tag. Tag values are case sensitive and can be null."]}letcontext_="Tag"letmake~key=fun~value->fun()->{key;value}letto_valuex=structure_to_value[("Key",(Some(TagKey.to_valuex.key)));("Value",(Some(TagValue.to_valuex.value)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=TagValue.of_xml(Xml.child_exn~context:context_xml_arg0"Value")inletkey=TagKey.of_xml(Xml.child_exn~context:context_xml_arg0"Key")inmake~value~key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_map_exnjson__"Value"TagValue.of_jsoninletkey=field_map_exnjson__"Key"TagKey.of_jsoninmake~value~key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A tag is a label that you assign to a Timestream database and/or table. Each tag consists of a key and an optional value, both of which you define. Tags enable you to categorize databases and/or tables, for example, by purpose, owner, or environment."]moduleTagList=structtypenonrect=Tag.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Tag.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Tag.of_xml)letof_jsonj=list_of_json~kind:"TagList"~of_json:Tag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleStringValue2048=structtypenonrect=stringletcontext_="StringValue2048"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"StringValue2048"jletto_json=simple_to_jsonto_valueendmoduleScheduledQueryName=structtypenonrect=stringletcontext_="ScheduledQueryName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9|!\\-_*'\\(\\)]([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:"ScheduledQueryName"jletto_json=simple_to_jsonto_valueendmoduleScheduleExpression=structtypenonrect=stringletcontext_="ScheduleExpression"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:"ScheduleExpression"jletto_json=simple_to_jsonto_valueendmoduleScheduleConfiguration=structtypenonrect={scheduleExpression:ScheduleExpression.t[@ocaml.doc"An expression that denotes when to trigger the scheduled query run. This can be a cron expression or a rate expression."]}letcontext_="ScheduleConfiguration"letmake~scheduleExpression=fun()->{scheduleExpression}letto_valuex=structure_to_value[("ScheduleExpression",(Some(ScheduleExpression.to_valuex.scheduleExpression)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letscheduleExpression=ScheduleExpression.of_xml(Xml.child_exn~context:context_xml_arg0"ScheduleExpression")inmake~scheduleExpression()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letscheduleExpression=field_map_exnjson__"ScheduleExpression"ScheduleExpression.of_jsoninmake~scheduleExpression()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration of the schedule of the query."]moduleQueryString=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_valueendmoduleNotificationConfiguration=structtypenonrect={snsConfiguration:SnsConfiguration.t[@ocaml.doc"Details about the Amazon Simple Notification Service (SNS) configuration. This field is visible only when SNS Topic is provided when updating the account settings."]}letcontext_="NotificationConfiguration"letmake~snsConfiguration=fun()->{snsConfiguration}letto_valuex=structure_to_value[("SnsConfiguration",(Some(SnsConfiguration.to_valuex.snsConfiguration)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsnsConfiguration=SnsConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"SnsConfiguration")inmake~snsConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsnsConfiguration=field_map_exnjson__"SnsConfiguration"SnsConfiguration.of_jsoninmake~snsConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Notification configuration for a scheduled query. A notification is sent by Timestream when a scheduled query is created, its state is updated or when it is deleted."]moduleS3ObjectKeyPrefix=structtypenonrect=stringletcontext_="S3ObjectKeyPrefix"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:896)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9|!\\-_*'\\(\\)]([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:"S3ObjectKeyPrefix"jletto_json=simple_to_jsonto_valueendmoduleS3EncryptionOption=structtypenonrect=|SSE_S3|SSE_KMS|Non_static_idofstringletmakei=iletto_string=function|SSE_S3->"SSE_S3"|SSE_KMS->"SSE_KMS"|Non_static_ids->sletof_string=function|"SSE_S3"->SSE_S3|"SSE_KMS"->SSE_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 S3EncryptionOption"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"S3EncryptionOption"j)letto_json=simple_to_jsonto_valueendmoduleS3BucketName=structtypenonrect=stringletcontext_="S3BucketName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:3)>>=(fun()->(check_string_maxi~max:63)>>=(fun()->check_patterni~pattern:"[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"S3BucketName"jletto_json=simple_to_jsonto_valueendmoduleS3Configuration=structtypenonrect={bucketName:S3BucketName.t[@ocaml.doc"Name of the S3 bucket under which error reports will be created."];objectKeyPrefix:S3ObjectKeyPrefix.toption[@ocaml.doc"Prefix for the error report key. Timestream by default adds the following prefix to the error report path."];encryptionOption:S3EncryptionOption.toption[@ocaml.doc"Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default."]}letcontext_="S3Configuration"letmake?objectKeyPrefix=fun?encryptionOption->fun~bucketName->fun()->{objectKeyPrefix;encryptionOption;bucketName}letto_valuex=structure_to_value[("BucketName",(Some(S3BucketName.to_valuex.bucketName)));("ObjectKeyPrefix",(Option.mapx.objectKeyPrefix~f:S3ObjectKeyPrefix.to_value));("EncryptionOption",(Option.mapx.encryptionOption~f:S3EncryptionOption.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letencryptionOption=(Option.map~f:S3EncryptionOption.of_xml)(Xml.childxml_arg0"EncryptionOption")inletobjectKeyPrefix=(Option.map~f:S3ObjectKeyPrefix.of_xml)(Xml.childxml_arg0"ObjectKeyPrefix")inletbucketName=S3BucketName.of_xml(Xml.child_exn~context:context_xml_arg0"BucketName")inmake?encryptionOption?objectKeyPrefix~bucketName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letencryptionOption=field_mapjson__"EncryptionOption"S3EncryptionOption.of_jsoninletobjectKeyPrefix=field_mapjson__"ObjectKeyPrefix"S3ObjectKeyPrefix.of_jsoninletbucketName=field_map_exnjson__"BucketName"S3BucketName.of_jsoninmake?encryptionOption?objectKeyPrefix~bucketName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details on S3 location for error reports that result from running a query."]moduleErrorReportConfiguration=structtypenonrect={s3Configuration:S3Configuration.t[@ocaml.doc"The S3 configuration for the error reports."]}letcontext_="ErrorReportConfiguration"letmake~s3Configuration=fun()->{s3Configuration}letto_valuex=structure_to_value[("S3Configuration",(Some(S3Configuration.to_valuex.s3Configuration)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3Configuration=S3Configuration.of_xml(Xml.child_exn~context:context_xml_arg0"S3Configuration")inmake~s3Configuration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3Configuration=field_map_exnjson__"S3Configuration"S3Configuration.of_jsoninmake~s3Configuration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration required for error reporting."]moduleCreateScheduledQueryRequest=structtypenonrect={name:ScheduledQueryName.t[@ocaml.doc"Name of the scheduled query."];queryString:QueryString.t[@ocaml.doc"The query string to run. Parameter names can be specified in the query string \\@ character followed by an identifier. The named Parameter \\@scheduled_runtime is reserved and can be used in the query to get the time at which the query is scheduled to run. The timestamp calculated according to the ScheduleConfiguration parameter, will be the value of \\@scheduled_runtime paramater for each query run. For example, consider an instance of a scheduled query executing on 2021-12-01 00:00:00. For this instance, the \\@scheduled_runtime parameter is initialized to the timestamp 2021-12-01 00:00:00 when invoking the query."];scheduleConfiguration:ScheduleConfiguration.t[@ocaml.doc"The schedule configuration for the query."];notificationConfiguration:NotificationConfiguration.t[@ocaml.doc"Notification configuration for the scheduled query. A notification is sent by Timestream when a query run finishes, when the state is updated or when you delete it."];targetConfiguration:TargetConfiguration.toption[@ocaml.doc"Configuration used for writing the result of a query."];clientToken:ClientToken.toption[@ocaml.doc"Using a ClientToken makes the call to CreateScheduledQuery idempotent, in other words, making the same request repeatedly will produce the same result. Making multiple identical CreateScheduledQuery requests has the same effect as making a single request. If CreateScheduledQuery is called without a ClientToken, the Query SDK generates a ClientToken on your behalf. After 8 hours, any request with the same ClientToken is treated as a new request."];scheduledQueryExecutionRoleArn:AmazonResourceName.t[@ocaml.doc"The ARN for the IAM role that Timestream will assume when running the scheduled query."];tags:TagList.toption[@ocaml.doc"A list of key-value pairs to label the scheduled query."];kmsKeyId:StringValue2048.toption[@ocaml.doc"The Amazon KMS key used to encrypt the scheduled query resource, at-rest. If the Amazon KMS key is not specified, the scheduled query resource will be encrypted with a Timestream owned Amazon KMS key. To specify a KMS key, use the key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix the name with alias/ If ErrorReportConfiguration uses SSE_KMS as encryption type, the same KmsKeyId is used to encrypt the error report at rest."];errorReportConfiguration:ErrorReportConfiguration.t[@ocaml.doc"Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results."]}letcontext_="CreateScheduledQueryRequest"letmake?targetConfiguration=fun?clientToken->fun?tags->fun?kmsKeyId->fun~name->fun~queryString->fun~scheduleConfiguration->fun~notificationConfiguration->fun~scheduledQueryExecutionRoleArn->fun~errorReportConfiguration->fun()->{targetConfiguration;clientToken;tags;kmsKeyId;name;queryString;scheduleConfiguration;notificationConfiguration;scheduledQueryExecutionRoleArn;errorReportConfiguration}letto_valuex=structure_to_value[("Name",(Some(ScheduledQueryName.to_valuex.name)));("QueryString",(Some(QueryString.to_valuex.queryString)));("ScheduleConfiguration",(Some(ScheduleConfiguration.to_valuex.scheduleConfiguration)));("NotificationConfiguration",(Some(NotificationConfiguration.to_valuex.notificationConfiguration)));("TargetConfiguration",(Option.mapx.targetConfiguration~f:TargetConfiguration.to_value));("ClientToken",(Option.mapx.clientToken~f:ClientToken.to_value));("ScheduledQueryExecutionRoleArn",(Some(AmazonResourceName.to_valuex.scheduledQueryExecutionRoleArn)));("Tags",(Option.mapx.tags~f:TagList.to_value));("KmsKeyId",(Option.mapx.kmsKeyId~f:StringValue2048.to_value));("ErrorReportConfiguration",(Some(ErrorReportConfiguration.to_valuex.errorReportConfiguration)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorReportConfiguration=ErrorReportConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"ErrorReportConfiguration")inletkmsKeyId=(Option.map~f:StringValue2048.of_xml)(Xml.childxml_arg0"KmsKeyId")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletscheduledQueryExecutionRoleArn=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ScheduledQueryExecutionRoleArn")inletclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"ClientToken")inlettargetConfiguration=(Option.map~f:TargetConfiguration.of_xml)(Xml.childxml_arg0"TargetConfiguration")inletnotificationConfiguration=NotificationConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"NotificationConfiguration")inletscheduleConfiguration=ScheduleConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"ScheduleConfiguration")inletqueryString=QueryString.of_xml(Xml.child_exn~context:context_xml_arg0"QueryString")inletname=ScheduledQueryName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~errorReportConfiguration?kmsKeyId?tags~scheduledQueryExecutionRoleArn?clientToken?targetConfiguration~notificationConfiguration~scheduleConfiguration~queryString~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorReportConfiguration=field_map_exnjson__"ErrorReportConfiguration"ErrorReportConfiguration.of_jsoninletkmsKeyId=field_mapjson__"KmsKeyId"StringValue2048.of_jsoninlettags=field_mapjson__"Tags"TagList.of_jsoninletscheduledQueryExecutionRoleArn=field_map_exnjson__"ScheduledQueryExecutionRoleArn"AmazonResourceName.of_jsoninletclientToken=field_mapjson__"ClientToken"ClientToken.of_jsoninlettargetConfiguration=field_mapjson__"TargetConfiguration"TargetConfiguration.of_jsoninletnotificationConfiguration=field_map_exnjson__"NotificationConfiguration"NotificationConfiguration.of_jsoninletscheduleConfiguration=field_map_exnjson__"ScheduleConfiguration"ScheduleConfiguration.of_jsoninletqueryString=field_map_exnjson__"QueryString"QueryString.of_jsoninletname=field_map_exnjson__"Name"ScheduledQueryName.of_jsoninmake~errorReportConfiguration?kmsKeyId?tags~scheduledQueryExecutionRoleArn?clientToken?targetConfiguration~notificationConfiguration~scheduleConfiguration~queryString~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Create a scheduled query that will be run on your behalf at the configured schedule. Timestream assumes the execution role provided as part of the ScheduledQueryExecutionRoleArn parameter to run the query. You can use the NotificationConfiguration parameter to configure notification for your scheduled query operations."]moduleServiceQuotaExceededException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You have exceeded the service quota."]moduleCreateScheduledQueryResponse=structtypenonrect={arn:AmazonResourceName.toption[@ocaml.doc"ARN for the created scheduled query."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`InvalidEndpointExceptionofInvalidEndpointException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun()->{arn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidEndpointExceptione->`Assoc[("error",(`String"InvalidEndpointException"));("details",(InvalidEndpointException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:AmazonResourceName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=(Option.map~f:AmazonResourceName.of_xml)(Xml.childxml_arg0"Arn")inmake?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_mapjson__"Arn"AmazonResourceName.of_jsoninmake?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Create a scheduled query that will be run on your behalf at the configured schedule. Timestream assumes the execution role provided as part of the ScheduledQueryExecutionRoleArn parameter to run the query. You can use the NotificationConfiguration parameter to configure notification for your scheduled query operations."]moduleTimestamp=structtypenonrect=stringletcontext_="Timestamp"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:"Timestamp"jletto_json=simple_to_jsonto_valueendmoduleScalarValue=structtypenonrect=stringletcontext_="ScalarValue"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:"ScalarValue"jletto_json=simple_to_jsonto_valueendmoduleNullableBoolean=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_valueendmodulerecDatum:sigtypenonrect={scalarValue:ScalarValue.toption[@ocaml.doc"Indicates if the data point is a scalar value such as integer, string, double, or Boolean."];timeSeriesValue:TimeSeriesDataPointList.toption[@ocaml.doc"Indicates if the data point is a timeseries data type."];arrayValue:DatumList.toption[@ocaml.doc"Indicates if the data point is an array."];rowValue:Row.toption[@ocaml.doc"Indicates if the data point is a row."];nullValue:NullableBoolean.toption[@ocaml.doc"Indicates if the data point is null."]}valmake:?scalarValue:ScalarValue.t->?timeSeriesValue:TimeSeriesDataPointList.t->?arrayValue:DatumList.t->?rowValue:Row.t->?nullValue:NullableBoolean.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={scalarValue:ScalarValue.toption[@ocaml.doc"Indicates if the data point is a scalar value such as integer, string, double, or Boolean."];timeSeriesValue:TimeSeriesDataPointList.toption[@ocaml.doc"Indicates if the data point is a timeseries data type."];arrayValue:DatumList.toption[@ocaml.doc"Indicates if the data point is an array."];rowValue:Row.toption[@ocaml.doc"Indicates if the data point is a row."];nullValue:NullableBoolean.toption[@ocaml.doc"Indicates if the data point is null."]}letmake?scalarValue=fun?timeSeriesValue->fun?arrayValue->fun?rowValue->fun?nullValue->fun()->{scalarValue;timeSeriesValue;arrayValue;rowValue;nullValue}letto_valuex=structure_to_value[("ScalarValue",(Option.mapx.scalarValue~f:ScalarValue.to_value));("TimeSeriesValue",(Option.mapx.timeSeriesValue~f:TimeSeriesDataPointList.to_value));("ArrayValue",(Option.mapx.arrayValue~f:DatumList.to_value));("RowValue",(Option.mapx.rowValue~f:Row.to_value));("NullValue",(Option.mapx.nullValue~f:NullableBoolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnullValue=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"NullValue")inletrowValue=(Option.map~f:Row.of_xml)(Xml.childxml_arg0"RowValue")inletarrayValue=(Option.map~f:DatumList.of_xml)(Xml.childxml_arg0"ArrayValue")inlettimeSeriesValue=(Option.map~f:TimeSeriesDataPointList.of_xml)(Xml.childxml_arg0"TimeSeriesValue")inletscalarValue=(Option.map~f:ScalarValue.of_xml)(Xml.childxml_arg0"ScalarValue")inmake?nullValue?rowValue?arrayValue?timeSeriesValue?scalarValue()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnullValue=field_mapjson__"NullValue"NullableBoolean.of_jsoninletrowValue=field_mapjson__"RowValue"Row.of_jsoninletarrayValue=field_mapjson__"ArrayValue"DatumList.of_jsoninlettimeSeriesValue=field_mapjson__"TimeSeriesValue"TimeSeriesDataPointList.of_jsoninletscalarValue=field_mapjson__"ScalarValue"ScalarValue.of_jsoninmake?nullValue?rowValue?arrayValue?timeSeriesValue?scalarValue()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Datum represents a single data point in a query result."]andDatumList:sigtypenonrect=Datum.tlistvalmake:Datum.tlist->tvalto_value:t->Botodata.valuevalto_query:t->Client.Query.tvalof_xml:Xml.t->Datum.tlistvalof_json:Yojson.Safe.t->tvalto_json:t->Yojson.Safe.tvalto_header:t->stringend=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_valuevendandRow:sigtypenonrect={data:DatumList.toption[@ocaml.doc"List of data points in a single row of the result set."]}valmake:?data:DatumList.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={data:DatumList.toption[@ocaml.doc"List of data points in a single row of the result set."]}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"Represents a single row in the query results."]andTimeSeriesDataPoint:sigtypenonrect={time:Timestamp.toption[@ocaml.doc"The timestamp when the measure value was collected."];value:Datum.toption[@ocaml.doc"The measure value for the data point."]}valmake:?time:Timestamp.t->?value:Datum.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={time:Timestamp.toption[@ocaml.doc"The timestamp when the measure value was collected."];value:Datum.toption[@ocaml.doc"The measure value for the data point."]}letmake?time=fun?value->fun()->{time;value}letto_valuex=structure_to_value[("Time",(Option.mapx.time~f:Timestamp.to_value));("Value",(Option.mapx.value~f:Datum.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:Datum.of_xml)(Xml.childxml_arg0"Value")inlettime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"Time")inmake?value?time()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"Value"Datum.of_jsoninlettime=field_mapjson__"Time"Timestamp.of_jsoninmake?value?time()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The timeseries data type represents the values of a measure over time. A time series is an array of rows of timestamps and measure values, with rows sorted in ascending order of time. A TimeSeriesDataPoint is a single data point in the time series. It represents a tuple of (time, measure value) in a time series."]andTimeSeriesDataPointList:sigtypenonrect=TimeSeriesDataPoint.tlistvalmake:TimeSeriesDataPoint.tlist->tvalto_value:t->Botodata.valuevalto_query:t->Client.Query.tvalof_xml:Xml.t->TimeSeriesDataPoint.tlistvalof_json:Yojson.Safe.t->tvalto_json:t->Yojson.Safe.tvalto_header:t->stringend=structtypenonrect=TimeSeriesDataPoint.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TimeSeriesDataPoint.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:TimeSeriesDataPoint.of_xml)letof_jsonj=list_of_json~kind:"TimeSeriesDataPointList"~of_json:TimeSeriesDataPoint.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDeleteScheduledQueryRequest=structtypenonrect={scheduledQueryArn:AmazonResourceName.t[@ocaml.doc"The ARN of the scheduled query."]}letcontext_="DeleteScheduledQueryRequest"letmake~scheduledQueryArn=fun()->{scheduledQueryArn}letto_valuex=structure_to_value[("ScheduledQueryArn",(Some(AmazonResourceName.to_valuex.scheduledQueryArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letscheduledQueryArn=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ScheduledQueryArn")inmake~scheduledQueryArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letscheduledQueryArn=field_map_exnjson__"ScheduledQueryArn"AmazonResourceName.of_jsoninmake~scheduledQueryArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a given scheduled query. This is an irreversible operation."]moduleDescribeAccountSettingsRequest=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the settings for your account that include the query pricing model and the configured maximum TCUs the service can use for your query workload. You're charged only for the duration of compute units used for your workloads."]moduleQueryPricingModel=structtypenonrect=|BYTES_SCANNED|COMPUTE_UNITS|Non_static_idofstringletmakei=iletto_string=function|BYTES_SCANNED->"BYTES_SCANNED"|COMPUTE_UNITS->"COMPUTE_UNITS"|Non_static_ids->sletof_string=function|"BYTES_SCANNED"->BYTES_SCANNED|"COMPUTE_UNITS"->COMPUTE_UNITS|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 QueryPricingModel"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"QueryPricingModel"j)letto_json=simple_to_jsonto_valueendmoduleQueryTCU=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 QueryTCU"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleLastUpdateStatus=structtypenonrect=|PENDING|FAILED|SUCCEEDED|Non_static_idofstringletmakei=iletto_string=function|PENDING->"PENDING"|FAILED->"FAILED"|SUCCEEDED->"SUCCEEDED"|Non_static_ids->sletof_string=function|"PENDING"->PENDING|"FAILED"->FAILED|"SUCCEEDED"->SUCCEEDED|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 LastUpdateStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"LastUpdateStatus"j)letto_json=simple_to_jsonto_valueendmoduleLastUpdate=structtypenonrect={targetQueryTCU:QueryTCU.toption[@ocaml.doc"The number of TimeStream Compute Units (TCUs) requested in the last account settings update."];status:LastUpdateStatus.toption[@ocaml.doc"The status of the last update. Can be either PENDING, FAILED, or SUCCEEDED."];statusMessage:String_.toption[@ocaml.doc"Error message describing the last account settings update status, visible only if an error occurred."]}letmake?targetQueryTCU=fun?status->fun?statusMessage->fun()->{targetQueryTCU;status;statusMessage}letto_valuex=structure_to_value[("TargetQueryTCU",(Option.mapx.targetQueryTCU~f:QueryTCU.to_value));("Status",(Option.mapx.status~f:LastUpdateStatus.to_value));("StatusMessage",(Option.mapx.statusMessage~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatusMessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"StatusMessage")inletstatus=(Option.map~f:LastUpdateStatus.of_xml)(Xml.childxml_arg0"Status")inlettargetQueryTCU=(Option.map~f:QueryTCU.of_xml)(Xml.childxml_arg0"TargetQueryTCU")inmake?statusMessage?status?targetQueryTCU()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatusMessage=field_mapjson__"StatusMessage"String_.of_jsoninletstatus=field_mapjson__"Status"LastUpdateStatus.of_jsoninlettargetQueryTCU=field_mapjson__"TargetQueryTCU"QueryTCU.of_jsoninmake?statusMessage?status?targetQueryTCU()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration object that contains the most recent account settings update, visible only if settings have been updated previously."]moduleProvisionedCapacityResponse=structtypenonrect={activeQueryTCU:QueryTCU.toption[@ocaml.doc"The number of Timestream Compute Units (TCUs) provisioned in the account. This field is only visible when the compute mode is PROVISIONED."];notificationConfiguration:AccountSettingsNotificationConfiguration.toption[@ocaml.doc"An object that contains settings for notifications that are sent whenever the provisioned capacity settings are modified. This field is only visible when the compute mode is PROVISIONED."];lastUpdate:LastUpdate.toption[@ocaml.doc"Information about the last update to the provisioned capacity settings."]}letmake?activeQueryTCU=fun?notificationConfiguration->fun?lastUpdate->fun()->{activeQueryTCU;notificationConfiguration;lastUpdate}letto_valuex=structure_to_value[("ActiveQueryTCU",(Option.mapx.activeQueryTCU~f:QueryTCU.to_value));("NotificationConfiguration",(Option.mapx.notificationConfiguration~f:AccountSettingsNotificationConfiguration.to_value));("LastUpdate",(Option.mapx.lastUpdate~f:LastUpdate.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastUpdate=(Option.map~f:LastUpdate.of_xml)(Xml.childxml_arg0"LastUpdate")inletnotificationConfiguration=(Option.map~f:AccountSettingsNotificationConfiguration.of_xml)(Xml.childxml_arg0"NotificationConfiguration")inletactiveQueryTCU=(Option.map~f:QueryTCU.of_xml)(Xml.childxml_arg0"ActiveQueryTCU")inmake?lastUpdate?notificationConfiguration?activeQueryTCU()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastUpdate=field_mapjson__"LastUpdate"LastUpdate.of_jsoninletnotificationConfiguration=field_mapjson__"NotificationConfiguration"AccountSettingsNotificationConfiguration.of_jsoninletactiveQueryTCU=field_mapjson__"ActiveQueryTCU"QueryTCU.of_jsoninmake?lastUpdate?notificationConfiguration?activeQueryTCU()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response to a request to update the provisioned capacity settings for querying data."]moduleQueryComputeResponse=structtypenonrect={computeMode:ComputeMode.toption[@ocaml.doc"The mode in which Timestream Compute Units (TCUs) are allocated and utilized within an account. Note that in the Asia Pacific (Mumbai) region, the API operation only recognizes the value PROVISIONED."];provisionedCapacity:ProvisionedCapacityResponse.toption[@ocaml.doc"Configuration object that contains settings for provisioned Timestream Compute Units (TCUs) in your account."]}letmake?computeMode=fun?provisionedCapacity->fun()->{computeMode;provisionedCapacity}letto_valuex=structure_to_value[("ComputeMode",(Option.mapx.computeMode~f:ComputeMode.to_value));("ProvisionedCapacity",(Option.mapx.provisionedCapacity~f:ProvisionedCapacityResponse.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprovisionedCapacity=(Option.map~f:ProvisionedCapacityResponse.of_xml)(Xml.childxml_arg0"ProvisionedCapacity")inletcomputeMode=(Option.map~f:ComputeMode.of_xml)(Xml.childxml_arg0"ComputeMode")inmake?provisionedCapacity?computeMode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprovisionedCapacity=field_mapjson__"ProvisionedCapacity"ProvisionedCapacityResponse.of_jsoninletcomputeMode=field_mapjson__"ComputeMode"ComputeMode.of_jsoninmake?provisionedCapacity?computeMode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response to a request to retrieve or update the compute capacity settings for querying data."]moduleMaxQueryCapacity=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 MaxQueryCapacity"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleDescribeAccountSettingsResponse=structtypenonrect={maxQueryTCU:MaxQueryCapacity.toption[@ocaml.doc"The maximum number of Timestream compute units (TCUs) the service will use at any point in time to serve your queries. To run queries, you must set a minimum capacity of 4 TCU. You can set the maximum number of TCU in multiples of 4, for example, 4, 8, 16, 32, and so on. This configuration is applicable only for on-demand usage of (TCUs)."];queryPricingModel:QueryPricingModel.toption[@ocaml.doc"The pricing model for queries in your account. The QueryPricingModel parameter is used by several Timestream operations; however, the UpdateAccountSettings API operation doesn't recognize any values other than COMPUTE_UNITS."];queryCompute:QueryComputeResponse.toption[@ocaml.doc"An object that contains the usage settings for Timestream Compute Units (TCUs) in your account for the query workload."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`InvalidEndpointExceptionofInvalidEndpointException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?maxQueryTCU=fun?queryPricingModel->fun?queryCompute->fun()->{maxQueryTCU;queryPricingModel;queryCompute}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidEndpointExceptione->`Assoc[("error",(`String"InvalidEndpointException"));("details",(InvalidEndpointException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("MaxQueryTCU",(Option.mapx.maxQueryTCU~f:MaxQueryCapacity.to_value));("QueryPricingModel",(Option.mapx.queryPricingModel~f:QueryPricingModel.to_value));("QueryCompute",(Option.mapx.queryCompute~f:QueryComputeResponse.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueryCompute=(Option.map~f:QueryComputeResponse.of_xml)(Xml.childxml_arg0"QueryCompute")inletqueryPricingModel=(Option.map~f:QueryPricingModel.of_xml)(Xml.childxml_arg0"QueryPricingModel")inletmaxQueryTCU=(Option.map~f:MaxQueryCapacity.of_xml)(Xml.childxml_arg0"MaxQueryTCU")inmake?queryCompute?queryPricingModel?maxQueryTCU()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueryCompute=field_mapjson__"QueryCompute"QueryComputeResponse.of_jsoninletqueryPricingModel=field_mapjson__"QueryPricingModel"QueryPricingModel.of_jsoninletmaxQueryTCU=field_mapjson__"MaxQueryTCU"MaxQueryCapacity.of_jsoninmake?queryCompute?queryPricingModel?maxQueryTCU()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the settings for your account that include the query pricing model and the configured maximum TCUs the service can use for your query workload. You're charged only for the duration of compute units used for your workloads."]moduleDescribeEndpointsRequest=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DescribeEndpoints returns a list of available endpoints to make Timestream API calls against. This API is available through both Write and Query. Because the Timestream SDKs are designed to transparently work with the service\226\128\153s architecture, including the management and mapping of the service endpoints, it is not recommended that you use this API unless: You are using VPC endpoints (Amazon Web Services PrivateLink) with Timestream Your application uses a programming language that does not yet have SDK support You require better control over the client-side implementation For detailed information on how and when to use and implement DescribeEndpoints, see The Endpoint Discovery Pattern."]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_valueendmoduleEndpoint=structtypenonrect={address:String_.toption[@ocaml.doc"An endpoint address."];cachePeriodInMinutes:Long.toption[@ocaml.doc"The TTL for the endpoint, in minutes."]}letmake?address=fun?cachePeriodInMinutes->fun()->{address;cachePeriodInMinutes}letto_valuex=structure_to_value[("Address",(Option.mapx.address~f:String_.to_value));("CachePeriodInMinutes",(Option.mapx.cachePeriodInMinutes~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcachePeriodInMinutes=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"CachePeriodInMinutes")inletaddress=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Address")inmake?cachePeriodInMinutes?address()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcachePeriodInMinutes=field_mapjson__"CachePeriodInMinutes"Long.of_jsoninletaddress=field_mapjson__"Address"String_.of_jsoninmake?cachePeriodInMinutes?address()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents an available endpoint against which to make API calls against, as well as the TTL for that endpoint."]moduleEndpoints=structtypenonrect=Endpoint.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Endpoint.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:Endpoint.of_xml)letof_jsonj=list_of_json~kind:"Endpoints"~of_json:Endpoint.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDescribeEndpointsResponse=structtypenonrect={endpoints:Endpoints.toption[@ocaml.doc"An Endpoints object is returned when a DescribeEndpoints request is made."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?endpoints=fun()->{endpoints}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Endpoints",(Option.mapx.endpoints~f:Endpoints.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendpoints=(Option.map~f:Endpoints.of_xml)(Xml.childxml_arg0"Endpoints")inmake?endpoints()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendpoints=field_mapjson__"Endpoints"Endpoints.of_jsoninmake?endpoints()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DescribeEndpoints returns a list of available endpoints to make Timestream API calls against. This API is available through both Write and Query. Because the Timestream SDKs are designed to transparently work with the service\226\128\153s architecture, including the management and mapping of the service endpoints, it is not recommended that you use this API unless: You are using VPC endpoints (Amazon Web Services PrivateLink) with Timestream Your application uses a programming language that does not yet have SDK support You require better control over the client-side implementation For detailed information on how and when to use and implement DescribeEndpoints, see The Endpoint Discovery Pattern."]moduleDescribeScheduledQueryRequest=structtypenonrect={scheduledQueryArn:AmazonResourceName.t[@ocaml.doc"The ARN of the scheduled query."]}letcontext_="DescribeScheduledQueryRequest"letmake~scheduledQueryArn=fun()->{scheduledQueryArn}letto_valuex=structure_to_value[("ScheduledQueryArn",(Some(AmazonResourceName.to_valuex.scheduledQueryArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letscheduledQueryArn=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ScheduledQueryArn")inmake~scheduledQueryArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letscheduledQueryArn=field_map_exnjson__"ScheduledQueryArn"AmazonResourceName.of_jsoninmake~scheduledQueryArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides detailed information about a scheduled query."]moduleTime=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_valueendmoduleScheduledQueryState=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 ScheduledQueryState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ScheduledQueryState"j)letto_json=simple_to_jsonto_valueendmoduleScheduledQueryRunStatus=structtypenonrect=|AUTO_TRIGGER_SUCCESS|AUTO_TRIGGER_FAILURE|MANUAL_TRIGGER_SUCCESS|MANUAL_TRIGGER_FAILURE|Non_static_idofstringletmakei=iletto_string=function|AUTO_TRIGGER_SUCCESS->"AUTO_TRIGGER_SUCCESS"|AUTO_TRIGGER_FAILURE->"AUTO_TRIGGER_FAILURE"|MANUAL_TRIGGER_SUCCESS->"MANUAL_TRIGGER_SUCCESS"|MANUAL_TRIGGER_FAILURE->"MANUAL_TRIGGER_FAILURE"|Non_static_ids->sletof_string=function|"AUTO_TRIGGER_SUCCESS"->AUTO_TRIGGER_SUCCESS|"AUTO_TRIGGER_FAILURE"->AUTO_TRIGGER_FAILURE|"MANUAL_TRIGGER_SUCCESS"->MANUAL_TRIGGER_SUCCESS|"MANUAL_TRIGGER_FAILURE"->MANUAL_TRIGGER_FAILURE|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 ScheduledQueryRunStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ScheduledQueryRunStatus"j)letto_json=simple_to_jsonto_valueendmoduleQueryTemporalRangeMax=structtypenonrect={value:Long.toption[@ocaml.doc"The maximum duration in nanoseconds between the start and end of the query."];tableArn:AmazonResourceName.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the table which is queried with the largest time range."]}letmake?value=fun?tableArn->fun()->{value;tableArn}letto_valuex=structure_to_value[("Value",(Option.mapx.value~f:Long.to_value));("TableArn",(Option.mapx.tableArn~f:AmazonResourceName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettableArn=(Option.map~f:AmazonResourceName.of_xml)(Xml.childxml_arg0"TableArn")inletvalue=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"Value")inmake?tableArn?value()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettableArn=field_mapjson__"TableArn"AmazonResourceName.of_jsoninletvalue=field_mapjson__"Value"Long.of_jsoninmake?tableArn?value()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides insights into the table with the most sub-optimal temporal pruning scanned by your query."]moduleQueryTemporalRange=structtypenonrect={max:QueryTemporalRangeMax.toption[@ocaml.doc"Encapsulates the following properties that provide insights into the most sub-optimal performing table on the temporal axis: Value \226\128\147 The maximum duration in nanoseconds between the start and end of the query. TableArn \226\128\147 The Amazon Resource Name (ARN) of the table which is queried with the largest time range."]}letmake?max=fun()->{max}letto_valuex=structure_to_value[("Max",(Option.mapx.max~f:QueryTemporalRangeMax.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmax=(Option.map~f:QueryTemporalRangeMax.of_xml)(Xml.childxml_arg0"Max")inmake?max()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmax=field_mapjson__"Max"QueryTemporalRangeMax.of_jsoninmake?max()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides insights into the temporal range of the query, including the table with the largest (max) time range."]modulePartitionKey=structtypenonrect=stringletcontext_="PartitionKey"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:"PartitionKey"jletto_json=simple_to_jsonto_valueendmodulePartitionKeyList=structtypenonrect=PartitionKey.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PartitionKey.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:PartitionKey.of_xml)letof_jsonj=list_of_json~kind:"PartitionKeyList"~of_json:PartitionKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDouble=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_valueendmoduleQuerySpatialCoverageMax=structtypenonrect={value:Double.toption[@ocaml.doc"The maximum ratio of spatial coverage."];tableArn:AmazonResourceName.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the table with the most sub-optimal spatial pruning."];partitionKey:PartitionKeyList.toption[@ocaml.doc"The partition key used for partitioning, which can be a default measure_name or a customer defined partition key."]}letmake?value=fun?tableArn->fun?partitionKey->fun()->{value;tableArn;partitionKey}letto_valuex=structure_to_value[("Value",(Option.mapx.value~f:Double.to_value));("TableArn",(Option.mapx.tableArn~f:AmazonResourceName.to_value));("PartitionKey",(Option.mapx.partitionKey~f:PartitionKeyList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpartitionKey=(Option.map~f:PartitionKeyList.of_xml)(Xml.childxml_arg0"PartitionKey")inlettableArn=(Option.map~f:AmazonResourceName.of_xml)(Xml.childxml_arg0"TableArn")inletvalue=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"Value")inmake?partitionKey?tableArn?value()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpartitionKey=field_mapjson__"PartitionKey"PartitionKeyList.of_jsoninlettableArn=field_mapjson__"TableArn"AmazonResourceName.of_jsoninletvalue=field_mapjson__"Value"Double.of_jsoninmake?partitionKey?tableArn?value()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides insights into the table with the most sub-optimal spatial range scanned by your query."]moduleQuerySpatialCoverage=structtypenonrect={max:QuerySpatialCoverageMax.toption[@ocaml.doc"Provides insights into the spatial coverage of the executed query and the table with the most inefficient spatial pruning. Value \226\128\147 The maximum ratio of spatial coverage. TableArn \226\128\147 The Amazon Resource Name (ARN) of the table with sub-optimal spatial pruning. PartitionKey \226\128\147 The partition key used for partitioning, which can be a default measure_name or a CDPK."]}letmake?max=fun()->{max}letto_valuex=structure_to_value[("Max",(Option.mapx.max~f:QuerySpatialCoverageMax.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmax=(Option.map~f:QuerySpatialCoverageMax.of_xml)(Xml.childxml_arg0"Max")inmake?max()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmax=field_mapjson__"Max"QuerySpatialCoverageMax.of_jsoninmake?max()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides insights into the spatial coverage of the query, including the table with sub-optimal (max) spatial pruning. This information can help you identify areas for improvement in your partitioning strategy to enhance spatial pruning For example, you can do the following with the QuerySpatialCoverage information: Add measure_name or use customer-defined partition key (CDPK) predicates. If you've already done the preceding action, remove functions around them or clauses, such as LIKE."]moduleScheduledQueryInsightsResponse=structtypenonrect={querySpatialCoverage:QuerySpatialCoverage.toption[@ocaml.doc"Provides insights into the spatial coverage of the query, including the table with sub-optimal (max) spatial pruning. This information can help you identify areas for improvement in your partitioning strategy to enhance spatial pruning."];queryTemporalRange:QueryTemporalRange.toption[@ocaml.doc"Provides insights into the temporal range of the query, including the table with the largest (max) time range. Following are some of the potential options for optimizing time-based pruning: Add missing time-predicates. Remove functions around the time predicates. Add time predicates to all the sub-queries."];queryTableCount:Long.toption[@ocaml.doc"Indicates the number of tables in the query."];outputRows:Long.toption[@ocaml.doc"Indicates the total number of rows returned as part of the query result set. You can use this data to validate if the number of rows in the result set have changed as part of the query tuning exercise."];outputBytes:Long.toption[@ocaml.doc"Indicates the size of query result set in bytes. You can use this data to validate if the result set has changed as part of the query tuning exercise."]}letmake?querySpatialCoverage=fun?queryTemporalRange->fun?queryTableCount->fun?outputRows->fun?outputBytes->fun()->{querySpatialCoverage;queryTemporalRange;queryTableCount;outputRows;outputBytes}letto_valuex=structure_to_value[("QuerySpatialCoverage",(Option.mapx.querySpatialCoverage~f:QuerySpatialCoverage.to_value));("QueryTemporalRange",(Option.mapx.queryTemporalRange~f:QueryTemporalRange.to_value));("QueryTableCount",(Option.mapx.queryTableCount~f:Long.to_value));("OutputRows",(Option.mapx.outputRows~f:Long.to_value));("OutputBytes",(Option.mapx.outputBytes~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoutputBytes=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"OutputBytes")inletoutputRows=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"OutputRows")inletqueryTableCount=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"QueryTableCount")inletqueryTemporalRange=(Option.map~f:QueryTemporalRange.of_xml)(Xml.childxml_arg0"QueryTemporalRange")inletquerySpatialCoverage=(Option.map~f:QuerySpatialCoverage.of_xml)(Xml.childxml_arg0"QuerySpatialCoverage")inmake?outputBytes?outputRows?queryTableCount?queryTemporalRange?querySpatialCoverage()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoutputBytes=field_mapjson__"OutputBytes"Long.of_jsoninletoutputRows=field_mapjson__"OutputRows"Long.of_jsoninletqueryTableCount=field_mapjson__"QueryTableCount"Long.of_jsoninletqueryTemporalRange=field_mapjson__"QueryTemporalRange"QueryTemporalRange.of_jsoninletquerySpatialCoverage=field_mapjson__"QuerySpatialCoverage"QuerySpatialCoverage.of_jsoninmake?outputBytes?outputRows?queryTableCount?queryTemporalRange?querySpatialCoverage()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides various insights and metrics related to the ExecuteScheduledQueryRequest that was executed."]moduleExecutionStats=structtypenonrect={executionTimeInMillis:Long.toption[@ocaml.doc"Total time, measured in milliseconds, that was needed for the scheduled query run to complete."];dataWrites:Long.toption[@ocaml.doc"Data writes metered for records ingested in a single scheduled query run."];bytesMetered:Long.toption[@ocaml.doc"Bytes metered for a single scheduled query run."];cumulativeBytesScanned:Long.toption[@ocaml.doc"Bytes scanned for a single scheduled query run."];recordsIngested:Long.toption[@ocaml.doc"The number of records ingested for a single scheduled query run."];queryResultRows:Long.toption[@ocaml.doc"Number of rows present in the output from running a query before ingestion to destination data source."]}letmake?executionTimeInMillis=fun?dataWrites->fun?bytesMetered->fun?cumulativeBytesScanned->fun?recordsIngested->fun?queryResultRows->fun()->{executionTimeInMillis;dataWrites;bytesMetered;cumulativeBytesScanned;recordsIngested;queryResultRows}letto_valuex=structure_to_value[("ExecutionTimeInMillis",(Option.mapx.executionTimeInMillis~f:Long.to_value));("DataWrites",(Option.mapx.dataWrites~f:Long.to_value));("BytesMetered",(Option.mapx.bytesMetered~f:Long.to_value));("CumulativeBytesScanned",(Option.mapx.cumulativeBytesScanned~f:Long.to_value));("RecordsIngested",(Option.mapx.recordsIngested~f:Long.to_value));("QueryResultRows",(Option.mapx.queryResultRows~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueryResultRows=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"QueryResultRows")inletrecordsIngested=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"RecordsIngested")inletcumulativeBytesScanned=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"CumulativeBytesScanned")inletbytesMetered=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"BytesMetered")inletdataWrites=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"DataWrites")inletexecutionTimeInMillis=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"ExecutionTimeInMillis")inmake?queryResultRows?recordsIngested?cumulativeBytesScanned?bytesMetered?dataWrites?executionTimeInMillis()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueryResultRows=field_mapjson__"QueryResultRows"Long.of_jsoninletrecordsIngested=field_mapjson__"RecordsIngested"Long.of_jsoninletcumulativeBytesScanned=field_mapjson__"CumulativeBytesScanned"Long.of_jsoninletbytesMetered=field_mapjson__"BytesMetered"Long.of_jsoninletdataWrites=field_mapjson__"DataWrites"Long.of_jsoninletexecutionTimeInMillis=field_mapjson__"ExecutionTimeInMillis"Long.of_jsoninmake?queryResultRows?recordsIngested?cumulativeBytesScanned?bytesMetered?dataWrites?executionTimeInMillis()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Statistics for a single scheduled query run."]moduleS3ObjectKey=structtypenonrect=stringletcontext_="S3ObjectKey"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:"S3ObjectKey"jletto_json=simple_to_jsonto_valueendmoduleS3ReportLocation=structtypenonrect={bucketName:S3BucketName.toption[@ocaml.doc"S3 bucket name."];objectKey:S3ObjectKey.toption[@ocaml.doc"S3 key."]}letmake?bucketName=fun?objectKey->fun()->{bucketName;objectKey}letto_valuex=structure_to_value[("BucketName",(Option.mapx.bucketName~f:S3BucketName.to_value));("ObjectKey",(Option.mapx.objectKey~f:S3ObjectKey.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letobjectKey=(Option.map~f:S3ObjectKey.of_xml)(Xml.childxml_arg0"ObjectKey")inletbucketName=(Option.map~f:S3BucketName.of_xml)(Xml.childxml_arg0"BucketName")inmake?objectKey?bucketName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letobjectKey=field_mapjson__"ObjectKey"S3ObjectKey.of_jsoninletbucketName=field_mapjson__"BucketName"S3BucketName.of_jsoninmake?objectKey?bucketName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"S3 report location for the scheduled query run."]moduleErrorReportLocation=structtypenonrect={s3ReportLocation:S3ReportLocation.toption[@ocaml.doc"The S3 location where error reports are written."]}letmake?s3ReportLocation=fun()->{s3ReportLocation}letto_valuex=structure_to_value[("S3ReportLocation",(Option.mapx.s3ReportLocation~f:S3ReportLocation.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3ReportLocation=(Option.map~f:S3ReportLocation.of_xml)(Xml.childxml_arg0"S3ReportLocation")inmake?s3ReportLocation()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3ReportLocation=field_mapjson__"S3ReportLocation"S3ReportLocation.of_jsoninmake?s3ReportLocation()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This contains the location of the error report for a single scheduled query call."]moduleScheduledQueryRunSummary=structtypenonrect={invocationTime:Time.toption[@ocaml.doc"InvocationTime for this run. This is the time at which the query is scheduled to run. Parameter \\@scheduled_runtime can be used in the query to get the value."];triggerTime:Time.toption[@ocaml.doc"The actual time when the query was run."];runStatus:ScheduledQueryRunStatus.toption[@ocaml.doc"The status of a scheduled query run."];executionStats:ExecutionStats.toption[@ocaml.doc"Runtime statistics for a scheduled run."];queryInsightsResponse:ScheduledQueryInsightsResponse.toption[@ocaml.doc"Provides various insights and metrics related to the run summary of the scheduled query."];errorReportLocation:ErrorReportLocation.toption[@ocaml.doc"S3 location for error report."];failureReason:ErrorMessage.toption[@ocaml.doc"Error message for the scheduled query in case of failure. You might have to look at the error report to get more detailed error reasons."]}letmake?invocationTime=fun?triggerTime->fun?runStatus->fun?executionStats->fun?queryInsightsResponse->fun?errorReportLocation->fun?failureReason->fun()->{invocationTime;triggerTime;runStatus;executionStats;queryInsightsResponse;errorReportLocation;failureReason}letto_valuex=structure_to_value[("InvocationTime",(Option.mapx.invocationTime~f:Time.to_value));("TriggerTime",(Option.mapx.triggerTime~f:Time.to_value));("RunStatus",(Option.mapx.runStatus~f:ScheduledQueryRunStatus.to_value));("ExecutionStats",(Option.mapx.executionStats~f:ExecutionStats.to_value));("QueryInsightsResponse",(Option.mapx.queryInsightsResponse~f:ScheduledQueryInsightsResponse.to_value));("ErrorReportLocation",(Option.mapx.errorReportLocation~f:ErrorReportLocation.to_value));("FailureReason",(Option.mapx.failureReason~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfailureReason=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"FailureReason")inleterrorReportLocation=(Option.map~f:ErrorReportLocation.of_xml)(Xml.childxml_arg0"ErrorReportLocation")inletqueryInsightsResponse=(Option.map~f:ScheduledQueryInsightsResponse.of_xml)(Xml.childxml_arg0"QueryInsightsResponse")inletexecutionStats=(Option.map~f:ExecutionStats.of_xml)(Xml.childxml_arg0"ExecutionStats")inletrunStatus=(Option.map~f:ScheduledQueryRunStatus.of_xml)(Xml.childxml_arg0"RunStatus")inlettriggerTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"TriggerTime")inletinvocationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"InvocationTime")inmake?failureReason?errorReportLocation?queryInsightsResponse?executionStats?runStatus?triggerTime?invocationTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfailureReason=field_mapjson__"FailureReason"ErrorMessage.of_jsoninleterrorReportLocation=field_mapjson__"ErrorReportLocation"ErrorReportLocation.of_jsoninletqueryInsightsResponse=field_mapjson__"QueryInsightsResponse"ScheduledQueryInsightsResponse.of_jsoninletexecutionStats=field_mapjson__"ExecutionStats"ExecutionStats.of_jsoninletrunStatus=field_mapjson__"RunStatus"ScheduledQueryRunStatus.of_jsoninlettriggerTime=field_mapjson__"TriggerTime"Time.of_jsoninletinvocationTime=field_mapjson__"InvocationTime"Time.of_jsoninmake?failureReason?errorReportLocation?queryInsightsResponse?executionStats?runStatus?triggerTime?invocationTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Run summary for the scheduled query"]moduleScheduledQueryRunSummaryList=structtypenonrect=ScheduledQueryRunSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ScheduledQueryRunSummary.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:ScheduledQueryRunSummary.of_xml)letof_jsonj=list_of_json~kind:"ScheduledQueryRunSummaryList"~of_json:ScheduledQueryRunSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleScheduledQueryDescription=structtypenonrect={arn:AmazonResourceName.toption[@ocaml.doc"Scheduled query ARN."];name:ScheduledQueryName.toption[@ocaml.doc"Name of the scheduled query."];queryString:QueryString.toption[@ocaml.doc"The query to be run."];creationTime:Time.toption[@ocaml.doc"Creation time of the scheduled query."];state:ScheduledQueryState.toption[@ocaml.doc"State of the scheduled query."];previousInvocationTime:Time.toption[@ocaml.doc"Last time the query was run."];nextInvocationTime:Time.toption[@ocaml.doc"The next time the scheduled query is scheduled to run."];scheduleConfiguration:ScheduleConfiguration.toption[@ocaml.doc"Schedule configuration."];notificationConfiguration:NotificationConfiguration.toption[@ocaml.doc"Notification configuration."];targetConfiguration:TargetConfiguration.toption[@ocaml.doc"Scheduled query target store configuration."];scheduledQueryExecutionRoleArn:AmazonResourceName.toption[@ocaml.doc"IAM role that Timestream uses to run the schedule query."];kmsKeyId:StringValue2048.toption[@ocaml.doc"A customer provided KMS key used to encrypt the scheduled query resource."];errorReportConfiguration:ErrorReportConfiguration.toption[@ocaml.doc"Error-reporting configuration for the scheduled query."];lastRunSummary:ScheduledQueryRunSummary.toption[@ocaml.doc"Runtime summary for the last scheduled query run."];recentlyFailedRuns:ScheduledQueryRunSummaryList.toption[@ocaml.doc"Runtime summary for the last five failed scheduled query runs."]}letmake?arn=fun?name->fun?queryString->fun?creationTime->fun?state->fun?previousInvocationTime->fun?nextInvocationTime->fun?scheduleConfiguration->fun?notificationConfiguration->fun?targetConfiguration->fun?scheduledQueryExecutionRoleArn->fun?kmsKeyId->fun?errorReportConfiguration->fun?lastRunSummary->fun?recentlyFailedRuns->fun()->{arn;name;queryString;creationTime;state;previousInvocationTime;nextInvocationTime;scheduleConfiguration;notificationConfiguration;targetConfiguration;scheduledQueryExecutionRoleArn;kmsKeyId;errorReportConfiguration;lastRunSummary;recentlyFailedRuns}letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:AmazonResourceName.to_value));("Name",(Option.mapx.name~f:ScheduledQueryName.to_value));("QueryString",(Option.mapx.queryString~f:QueryString.to_value));("CreationTime",(Option.mapx.creationTime~f:Time.to_value));("State",(Option.mapx.state~f:ScheduledQueryState.to_value));("PreviousInvocationTime",(Option.mapx.previousInvocationTime~f:Time.to_value));("NextInvocationTime",(Option.mapx.nextInvocationTime~f:Time.to_value));("ScheduleConfiguration",(Option.mapx.scheduleConfiguration~f:ScheduleConfiguration.to_value));("NotificationConfiguration",(Option.mapx.notificationConfiguration~f:NotificationConfiguration.to_value));("TargetConfiguration",(Option.mapx.targetConfiguration~f:TargetConfiguration.to_value));("ScheduledQueryExecutionRoleArn",(Option.mapx.scheduledQueryExecutionRoleArn~f:AmazonResourceName.to_value));("KmsKeyId",(Option.mapx.kmsKeyId~f:StringValue2048.to_value));("ErrorReportConfiguration",(Option.mapx.errorReportConfiguration~f:ErrorReportConfiguration.to_value));("LastRunSummary",(Option.mapx.lastRunSummary~f:ScheduledQueryRunSummary.to_value));("RecentlyFailedRuns",(Option.mapx.recentlyFailedRuns~f:ScheduledQueryRunSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecentlyFailedRuns=(Option.map~f:ScheduledQueryRunSummaryList.of_xml)(Xml.childxml_arg0"RecentlyFailedRuns")inletlastRunSummary=(Option.map~f:ScheduledQueryRunSummary.of_xml)(Xml.childxml_arg0"LastRunSummary")inleterrorReportConfiguration=(Option.map~f:ErrorReportConfiguration.of_xml)(Xml.childxml_arg0"ErrorReportConfiguration")inletkmsKeyId=(Option.map~f:StringValue2048.of_xml)(Xml.childxml_arg0"KmsKeyId")inletscheduledQueryExecutionRoleArn=(Option.map~f:AmazonResourceName.of_xml)(Xml.childxml_arg0"ScheduledQueryExecutionRoleArn")inlettargetConfiguration=(Option.map~f:TargetConfiguration.of_xml)(Xml.childxml_arg0"TargetConfiguration")inletnotificationConfiguration=(Option.map~f:NotificationConfiguration.of_xml)(Xml.childxml_arg0"NotificationConfiguration")inletscheduleConfiguration=(Option.map~f:ScheduleConfiguration.of_xml)(Xml.childxml_arg0"ScheduleConfiguration")inletnextInvocationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"NextInvocationTime")inletpreviousInvocationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"PreviousInvocationTime")inletstate=(Option.map~f:ScheduledQueryState.of_xml)(Xml.childxml_arg0"State")inletcreationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"CreationTime")inletqueryString=(Option.map~f:QueryString.of_xml)(Xml.childxml_arg0"QueryString")inletname=(Option.map~f:ScheduledQueryName.of_xml)(Xml.childxml_arg0"Name")inletarn=(Option.map~f:AmazonResourceName.of_xml)(Xml.childxml_arg0"Arn")inmake?recentlyFailedRuns?lastRunSummary?errorReportConfiguration?kmsKeyId?scheduledQueryExecutionRoleArn?targetConfiguration?notificationConfiguration?scheduleConfiguration?nextInvocationTime?previousInvocationTime?state?creationTime?queryString?name?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecentlyFailedRuns=field_mapjson__"RecentlyFailedRuns"ScheduledQueryRunSummaryList.of_jsoninletlastRunSummary=field_mapjson__"LastRunSummary"ScheduledQueryRunSummary.of_jsoninleterrorReportConfiguration=field_mapjson__"ErrorReportConfiguration"ErrorReportConfiguration.of_jsoninletkmsKeyId=field_mapjson__"KmsKeyId"StringValue2048.of_jsoninletscheduledQueryExecutionRoleArn=field_mapjson__"ScheduledQueryExecutionRoleArn"AmazonResourceName.of_jsoninlettargetConfiguration=field_mapjson__"TargetConfiguration"TargetConfiguration.of_jsoninletnotificationConfiguration=field_mapjson__"NotificationConfiguration"NotificationConfiguration.of_jsoninletscheduleConfiguration=field_mapjson__"ScheduleConfiguration"ScheduleConfiguration.of_jsoninletnextInvocationTime=field_mapjson__"NextInvocationTime"Time.of_jsoninletpreviousInvocationTime=field_mapjson__"PreviousInvocationTime"Time.of_jsoninletstate=field_mapjson__"State"ScheduledQueryState.of_jsoninletcreationTime=field_mapjson__"CreationTime"Time.of_jsoninletqueryString=field_mapjson__"QueryString"QueryString.of_jsoninletname=field_mapjson__"Name"ScheduledQueryName.of_jsoninletarn=field_mapjson__"Arn"AmazonResourceName.of_jsoninmake?recentlyFailedRuns?lastRunSummary?errorReportConfiguration?kmsKeyId?scheduledQueryExecutionRoleArn?targetConfiguration?notificationConfiguration?scheduleConfiguration?nextInvocationTime?previousInvocationTime?state?creationTime?queryString?name?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Structure that describes scheduled query."]moduleResourceNotFoundException=structtypenonrect={message:ErrorMessage.toption;scheduledQueryArn:AmazonResourceName.toption[@ocaml.doc"The ARN of the scheduled query."]}letmake?message=fun?scheduledQueryArn->fun()->{message;scheduledQueryArn}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value));("ScheduledQueryArn",(Option.mapx.scheduledQueryArn~f:AmazonResourceName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letscheduledQueryArn=(Option.map~f:AmazonResourceName.of_xml)(Xml.childxml_arg0"ScheduledQueryArn")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?scheduledQueryArn?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letscheduledQueryArn=field_mapjson__"ScheduledQueryArn"AmazonResourceName.of_jsoninletmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?scheduledQueryArn?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The requested resource could not be found."]moduleDescribeScheduledQueryResponse=structtypenonrect={scheduledQuery:ScheduledQueryDescription.toption[@ocaml.doc"The scheduled query."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`InvalidEndpointExceptionofInvalidEndpointException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?scheduledQuery=fun()->{scheduledQuery}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidEndpointExceptione->`Assoc[("error",(`String"InvalidEndpointException"));("details",(InvalidEndpointException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ScheduledQuery",(Option.mapx.scheduledQuery~f:ScheduledQueryDescription.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letscheduledQuery=(Option.map~f:ScheduledQueryDescription.of_xml)(Xml.childxml_arg0"ScheduledQuery")inmake?scheduledQuery()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letscheduledQuery=field_mapjson__"ScheduledQuery"ScheduledQueryDescription.of_jsoninmake?scheduledQuery()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides detailed information about a scheduled query."]moduleScheduledQueryInsightsMode=structtypenonrect=|ENABLED_WITH_RATE_CONTROL|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED_WITH_RATE_CONTROL->"ENABLED_WITH_RATE_CONTROL"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED_WITH_RATE_CONTROL"->ENABLED_WITH_RATE_CONTROL|"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 ScheduledQueryInsightsMode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ScheduledQueryInsightsMode"j)letto_json=simple_to_jsonto_valueendmoduleScheduledQueryInsights=structtypenonrect={mode:ScheduledQueryInsightsMode.t[@ocaml.doc"Provides the following modes to enable ScheduledQueryInsights: ENABLED_WITH_RATE_CONTROL \226\128\147 Enables ScheduledQueryInsights for the queries being processed. This mode also includes a rate control mechanism, which limits the QueryInsights feature to 1 query per second (QPS). DISABLED \226\128\147 Disables ScheduledQueryInsights."]}letcontext_="ScheduledQueryInsights"letmake~mode=fun()->{mode}letto_valuex=structure_to_value[("Mode",(Some(ScheduledQueryInsightsMode.to_valuex.mode)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmode=ScheduledQueryInsightsMode.of_xml(Xml.child_exn~context:context_xml_arg0"Mode")inmake~mode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmode=field_map_exnjson__"Mode"ScheduledQueryInsightsMode.of_jsoninmake~mode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Encapsulates settings for enabling QueryInsights on an ExecuteScheduledQueryRequest."]moduleExecuteScheduledQueryRequest=structtypenonrect={scheduledQueryArn:AmazonResourceName.t[@ocaml.doc"ARN of the scheduled query."];invocationTime:Time.t[@ocaml.doc"The timestamp in UTC. Query will be run as if it was invoked at this timestamp."];clientToken:ClientToken.toption[@ocaml.doc"Not used."];queryInsights:ScheduledQueryInsights.toption[@ocaml.doc"Encapsulates settings for enabling QueryInsights. Enabling QueryInsights returns insights and metrics as a part of the Amazon SNS notification for the query that you executed. You can use QueryInsights to tune your query performance and cost."]}letcontext_="ExecuteScheduledQueryRequest"letmake?clientToken=fun?queryInsights->fun~scheduledQueryArn->fun~invocationTime->fun()->{clientToken;queryInsights;scheduledQueryArn;invocationTime}letto_valuex=structure_to_value[("ScheduledQueryArn",(Some(AmazonResourceName.to_valuex.scheduledQueryArn)));("InvocationTime",(Some(Time.to_valuex.invocationTime)));("ClientToken",(Option.mapx.clientToken~f:ClientToken.to_value));("QueryInsights",(Option.mapx.queryInsights~f:ScheduledQueryInsights.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueryInsights=(Option.map~f:ScheduledQueryInsights.of_xml)(Xml.childxml_arg0"QueryInsights")inletclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"ClientToken")inletinvocationTime=Time.of_xml(Xml.child_exn~context:context_xml_arg0"InvocationTime")inletscheduledQueryArn=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ScheduledQueryArn")inmake?queryInsights?clientToken~invocationTime~scheduledQueryArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueryInsights=field_mapjson__"QueryInsights"ScheduledQueryInsights.of_jsoninletclientToken=field_mapjson__"ClientToken"ClientToken.of_jsoninletinvocationTime=field_map_exnjson__"InvocationTime"Time.of_jsoninletscheduledQueryArn=field_map_exnjson__"ScheduledQueryArn"AmazonResourceName.of_jsoninmake?queryInsights?clientToken~invocationTime~scheduledQueryArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You can use this API to run a scheduled query manually. If you enabled QueryInsights, this API also returns insights and metrics related to the query that you executed as part of an Amazon SNS notification. QueryInsights helps with performance tuning of your query. For more information about QueryInsights, see Using query insights to optimize queries in Amazon Timestream."]moduleNextScheduledQueriesResultsToken=structtypenonrect=stringletcontext_="NextScheduledQueriesResultsToken"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:"NextScheduledQueriesResultsToken"jletto_json=simple_to_jsonto_valueendmoduleMaxScheduledQueriesResults=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 MaxScheduledQueriesResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListScheduledQueriesRequest=structtypenonrect={maxResults:MaxScheduledQueriesResults.toption[@ocaml.doc"The maximum number of items to return in the output. If the total number of items available is more than the value specified, a NextToken is provided in the output. To resume pagination, provide the NextToken value as the argument to the subsequent call to ListScheduledQueriesRequest."];nextToken:NextScheduledQueriesResultsToken.toption[@ocaml.doc"A pagination token to resume pagination."]}letmake?maxResults=fun?nextToken->fun()->{maxResults;nextToken}letto_valuex=structure_to_value[("MaxResults",(Option.mapx.maxResults~f:MaxScheduledQueriesResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextScheduledQueriesResultsToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextScheduledQueriesResultsToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxScheduledQueriesResults.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"NextScheduledQueriesResultsToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxScheduledQueriesResults.of_jsoninmake?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets a list of all scheduled queries in the caller's Amazon account and Region. ListScheduledQueries is eventually consistent."]moduleTimestreamDestination=structtypenonrect={databaseName:ResourceName.toption[@ocaml.doc"Timestream database name."];tableName:ResourceName.toption[@ocaml.doc"Timestream table name."]}letmake?databaseName=fun?tableName->fun()->{databaseName;tableName}letto_valuex=structure_to_value[("DatabaseName",(Option.mapx.databaseName~f:ResourceName.to_value));("TableName",(Option.mapx.tableName~f:ResourceName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettableName=(Option.map~f:ResourceName.of_xml)(Xml.childxml_arg0"TableName")inletdatabaseName=(Option.map~f:ResourceName.of_xml)(Xml.childxml_arg0"DatabaseName")inmake?tableName?databaseName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettableName=field_mapjson__"TableName"ResourceName.of_jsoninletdatabaseName=field_mapjson__"DatabaseName"ResourceName.of_jsoninmake?tableName?databaseName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Destination for scheduled query."]moduleTargetDestination=structtypenonrect={timestreamDestination:TimestreamDestination.toption[@ocaml.doc"Query result destination details for Timestream data source."]}letmake?timestreamDestination=fun()->{timestreamDestination}letto_valuex=structure_to_value[("TimestreamDestination",(Option.mapx.timestreamDestination~f:TimestreamDestination.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettimestreamDestination=(Option.map~f:TimestreamDestination.of_xml)(Xml.childxml_arg0"TimestreamDestination")inmake?timestreamDestination()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettimestreamDestination=field_mapjson__"TimestreamDestination"TimestreamDestination.of_jsoninmake?timestreamDestination()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Destination details to write data for a target data source. Current supported data source is Timestream."]moduleScheduledQuery=structtypenonrect={arn:AmazonResourceName.toption[@ocaml.doc"The Amazon Resource Name."];name:ScheduledQueryName.toption[@ocaml.doc"The name of the scheduled query."];creationTime:Time.toption[@ocaml.doc"The creation time of the scheduled query."];state:ScheduledQueryState.toption[@ocaml.doc"State of scheduled query."];previousInvocationTime:Time.toption[@ocaml.doc"The last time the scheduled query was run."];nextInvocationTime:Time.toption[@ocaml.doc"The next time the scheduled query is to be run."];errorReportConfiguration:ErrorReportConfiguration.toption[@ocaml.doc"Configuration for scheduled query error reporting."];targetDestination:TargetDestination.toption[@ocaml.doc"Target data source where final scheduled query result will be written."];lastRunStatus:ScheduledQueryRunStatus.toption[@ocaml.doc"Status of the last scheduled query run."]}letmake?arn=fun?name->fun?creationTime->fun?state->fun?previousInvocationTime->fun?nextInvocationTime->fun?errorReportConfiguration->fun?targetDestination->fun?lastRunStatus->fun()->{arn;name;creationTime;state;previousInvocationTime;nextInvocationTime;errorReportConfiguration;targetDestination;lastRunStatus}letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:AmazonResourceName.to_value));("Name",(Option.mapx.name~f:ScheduledQueryName.to_value));("CreationTime",(Option.mapx.creationTime~f:Time.to_value));("State",(Option.mapx.state~f:ScheduledQueryState.to_value));("PreviousInvocationTime",(Option.mapx.previousInvocationTime~f:Time.to_value));("NextInvocationTime",(Option.mapx.nextInvocationTime~f:Time.to_value));("ErrorReportConfiguration",(Option.mapx.errorReportConfiguration~f:ErrorReportConfiguration.to_value));("TargetDestination",(Option.mapx.targetDestination~f:TargetDestination.to_value));("LastRunStatus",(Option.mapx.lastRunStatus~f:ScheduledQueryRunStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastRunStatus=(Option.map~f:ScheduledQueryRunStatus.of_xml)(Xml.childxml_arg0"LastRunStatus")inlettargetDestination=(Option.map~f:TargetDestination.of_xml)(Xml.childxml_arg0"TargetDestination")inleterrorReportConfiguration=(Option.map~f:ErrorReportConfiguration.of_xml)(Xml.childxml_arg0"ErrorReportConfiguration")inletnextInvocationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"NextInvocationTime")inletpreviousInvocationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"PreviousInvocationTime")inletstate=(Option.map~f:ScheduledQueryState.of_xml)(Xml.childxml_arg0"State")inletcreationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"CreationTime")inletname=(Option.map~f:ScheduledQueryName.of_xml)(Xml.childxml_arg0"Name")inletarn=(Option.map~f:AmazonResourceName.of_xml)(Xml.childxml_arg0"Arn")inmake?lastRunStatus?targetDestination?errorReportConfiguration?nextInvocationTime?previousInvocationTime?state?creationTime?name?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastRunStatus=field_mapjson__"LastRunStatus"ScheduledQueryRunStatus.of_jsoninlettargetDestination=field_mapjson__"TargetDestination"TargetDestination.of_jsoninleterrorReportConfiguration=field_mapjson__"ErrorReportConfiguration"ErrorReportConfiguration.of_jsoninletnextInvocationTime=field_mapjson__"NextInvocationTime"Time.of_jsoninletpreviousInvocationTime=field_mapjson__"PreviousInvocationTime"Time.of_jsoninletstate=field_mapjson__"State"ScheduledQueryState.of_jsoninletcreationTime=field_mapjson__"CreationTime"Time.of_jsoninletname=field_mapjson__"Name"ScheduledQueryName.of_jsoninletarn=field_mapjson__"Arn"AmazonResourceName.of_jsoninmake?lastRunStatus?targetDestination?errorReportConfiguration?nextInvocationTime?previousInvocationTime?state?creationTime?name?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Scheduled Query"]moduleScheduledQueryList=structtypenonrect=ScheduledQuery.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ScheduledQuery.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:ScheduledQuery.of_xml)letof_jsonj=list_of_json~kind:"ScheduledQueryList"~of_json:ScheduledQuery.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListScheduledQueriesResponse=structtypenonrect={scheduledQueries:ScheduledQueryList.toption[@ocaml.doc"A list of scheduled queries."];nextToken:NextScheduledQueriesResultsToken.toption[@ocaml.doc"A token to specify where to start paginating. This is the NextToken from a previously truncated response."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`InvalidEndpointExceptionofInvalidEndpointException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?scheduledQueries=fun?nextToken->fun()->{scheduledQueries;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidEndpointExceptione->`Assoc[("error",(`String"InvalidEndpointException"));("details",(InvalidEndpointException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ScheduledQueries",(Option.mapx.scheduledQueries~f:ScheduledQueryList.to_value));("NextToken",(Option.mapx.nextToken~f:NextScheduledQueriesResultsToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextScheduledQueriesResultsToken.of_xml)(Xml.childxml_arg0"NextToken")inletscheduledQueries=(Option.map~f:ScheduledQueryList.of_xml)(Xml.childxml_arg0"ScheduledQueries")inmake?nextToken?scheduledQueries()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextScheduledQueriesResultsToken.of_jsoninletscheduledQueries=field_mapjson__"ScheduledQueries"ScheduledQueryList.of_jsoninmake?nextToken?scheduledQueries()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets a list of all scheduled queries in the caller's Amazon account and Region. ListScheduledQueries is eventually consistent."]moduleNextTagsForResourceResultsToken=structtypenonrect=stringletcontext_="NextTagsForResourceResultsToken"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:"NextTagsForResourceResultsToken"jletto_json=simple_to_jsonto_valueendmoduleMaxTagsForResourceResult=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:200)>>=(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 MaxTagsForResourceResult"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListTagsForResourceRequest=structtypenonrect={resourceARN:AmazonResourceName.t[@ocaml.doc"The Timestream resource with tags to be listed. This value is an Amazon Resource Name (ARN)."];maxResults:MaxTagsForResourceResult.toption[@ocaml.doc"The maximum number of tags to return."];nextToken:NextTagsForResourceResultsToken.toption[@ocaml.doc"A pagination token to resume pagination."]}letcontext_="ListTagsForResourceRequest"letmake?maxResults=fun?nextToken->fun~resourceARN->fun()->{maxResults;nextToken;resourceARN}letto_valuex=structure_to_value[("ResourceARN",(Some(AmazonResourceName.to_valuex.resourceARN)));("MaxResults",(Option.mapx.maxResults~f:MaxTagsForResourceResult.to_value));("NextToken",(Option.mapx.nextToken~f:NextTagsForResourceResultsToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextTagsForResourceResultsToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxTagsForResourceResult.of_xml)(Xml.childxml_arg0"MaxResults")inletresourceARN=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake?nextToken?maxResults~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextTagsForResourceResultsToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxTagsForResourceResult.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"AmazonResourceName.of_jsoninmake?nextToken?maxResults~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List all tags on a Timestream query resource."]moduleListTagsForResourceResponse=structtypenonrect={tags:TagList.toption[@ocaml.doc"The tags currently associated with the Timestream resource."];nextToken:NextTagsForResourceResultsToken.toption[@ocaml.doc"A pagination token to resume pagination with a subsequent call to ListTagsForResourceResponse."]}typenonrecerror=[`InvalidEndpointExceptionofInvalidEndpointException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun?nextToken->fun()->{tags;nextToken}leterror_of_jsonnamejson=matchnamewith|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidEndpointExceptione->`Assoc[("error",(`String"InvalidEndpointException"));("details",(InvalidEndpointException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Tags",(Option.mapx.tags~f:TagList.to_value));("NextToken",(Option.mapx.nextToken~f:NextTagsForResourceResultsToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextTagsForResourceResultsToken.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"NextTagsForResourceResultsToken.of_jsoninlettags=field_mapjson__"Tags"TagList.of_jsoninmake?nextToken?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List all tags on a Timestream query resource."]moduleMaxQueryResults=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_valueendmodulePaginationToken=structtypenonrect=stringletcontext_="PaginationToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PaginationToken"jletto_json=simple_to_jsonto_valueendmoduleParameterMapping=structtypenonrect={name:String_.toption[@ocaml.doc"Parameter name."];type_:Type.toption}letmake?name=fun?type_->fun()->{name;type_}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:String_.to_value));("Type",(Option.mapx.type_~f:Type.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=(Option.map~f:Type.of_xml)(Xml.childxml_arg0"Type")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Name")inmake?type_?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_mapjson__"Type"Type.of_jsoninletname=field_mapjson__"Name"String_.of_jsoninmake?type_?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Mapping for named parameters."]moduleParameterMappingList=structtypenonrect=ParameterMapping.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ParameterMapping.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:ParameterMapping.of_xml)letof_jsonj=list_of_json~kind:"ParameterMappingList"~of_json:ParameterMapping.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePrepareQueryRequest=structtypenonrect={queryString:QueryString.t[@ocaml.doc"The Timestream query string that you want to use as a prepared statement. Parameter names can be specified in the query string \\@ character followed by an identifier."];validateOnly:NullableBoolean.toption[@ocaml.doc"By setting this value to true, Timestream will only validate that the query string is a valid Timestream query, and not store the prepared query for later use."]}letcontext_="PrepareQueryRequest"letmake?validateOnly=fun~queryString->fun()->{validateOnly;queryString}letto_valuex=structure_to_value[("QueryString",(Some(QueryString.to_valuex.queryString)));("ValidateOnly",(Option.mapx.validateOnly~f:NullableBoolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalidateOnly=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"ValidateOnly")inletqueryString=QueryString.of_xml(Xml.child_exn~context:context_xml_arg0"QueryString")inmake?validateOnly~queryString()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalidateOnly=field_mapjson__"ValidateOnly"NullableBoolean.of_jsoninletqueryString=field_map_exnjson__"QueryString"QueryString.of_jsoninmake?validateOnly~queryString()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A synchronous operation that allows you to submit a query with parameters to be stored by Timestream for later running. Timestream only supports using this operation with ValidateOnly set to true."]moduleSelectColumn=structtypenonrect={name:String_.toption[@ocaml.doc"Name of the column."];type_:Type.toption;databaseName:ResourceName.toption[@ocaml.doc"Database that has this column."];tableName:ResourceName.toption[@ocaml.doc"Table within the database that has this column."];aliased:NullableBoolean.toption[@ocaml.doc"True, if the column name was aliased by the query. False otherwise."]}letmake?name=fun?type_->fun?databaseName->fun?tableName->fun?aliased->fun()->{name;type_;databaseName;tableName;aliased}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:String_.to_value));("Type",(Option.mapx.type_~f:Type.to_value));("DatabaseName",(Option.mapx.databaseName~f:ResourceName.to_value));("TableName",(Option.mapx.tableName~f:ResourceName.to_value));("Aliased",(Option.mapx.aliased~f:NullableBoolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaliased=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"Aliased")inlettableName=(Option.map~f:ResourceName.of_xml)(Xml.childxml_arg0"TableName")inletdatabaseName=(Option.map~f:ResourceName.of_xml)(Xml.childxml_arg0"DatabaseName")inlettype_=(Option.map~f:Type.of_xml)(Xml.childxml_arg0"Type")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Name")inmake?aliased?tableName?databaseName?type_?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaliased=field_mapjson__"Aliased"NullableBoolean.of_jsoninlettableName=field_mapjson__"TableName"ResourceName.of_jsoninletdatabaseName=field_mapjson__"DatabaseName"ResourceName.of_jsoninlettype_=field_mapjson__"Type"Type.of_jsoninletname=field_mapjson__"Name"String_.of_jsoninmake?aliased?tableName?databaseName?type_?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details of the column that is returned by the query."]moduleSelectColumnList=structtypenonrect=SelectColumn.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SelectColumn.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:SelectColumn.of_xml)letof_jsonj=list_of_json~kind:"SelectColumnList"~of_json:SelectColumn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePrepareQueryResponse=structtypenonrect={queryString:QueryString.toption[@ocaml.doc"The query string that you want prepare."];columns:SelectColumnList.toption[@ocaml.doc"A list of SELECT clause columns of the submitted query string."];parameters:ParameterMappingList.toption[@ocaml.doc"A list of parameters used in the submitted query string."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`InvalidEndpointExceptionofInvalidEndpointException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?queryString=fun?columns->fun?parameters->fun()->{queryString;columns;parameters}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidEndpointExceptione->`Assoc[("error",(`String"InvalidEndpointException"));("details",(InvalidEndpointException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("QueryString",(Option.mapx.queryString~f:QueryString.to_value));("Columns",(Option.mapx.columns~f:SelectColumnList.to_value));("Parameters",(Option.mapx.parameters~f:ParameterMappingList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letparameters=(Option.map~f:ParameterMappingList.of_xml)(Xml.childxml_arg0"Parameters")inletcolumns=(Option.map~f:SelectColumnList.of_xml)(Xml.childxml_arg0"Columns")inletqueryString=(Option.map~f:QueryString.of_xml)(Xml.childxml_arg0"QueryString")inmake?parameters?columns?queryString()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letparameters=field_mapjson__"Parameters"ParameterMappingList.of_jsoninletcolumns=field_mapjson__"Columns"SelectColumnList.of_jsoninletqueryString=field_mapjson__"QueryString"QueryString.of_jsoninmake?parameters?columns?queryString()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A synchronous operation that allows you to submit a query with parameters to be stored by Timestream for later running. Timestream only supports using this operation with ValidateOnly set to true."]moduleProvisionedCapacityRequest=structtypenonrect={targetQueryTCU:QueryTCU.t[@ocaml.doc"The target compute capacity for querying data, specified in Timestream Compute Units (TCUs)."];notificationConfiguration:AccountSettingsNotificationConfiguration.toption[@ocaml.doc"Configuration settings for notifications related to the provisioned capacity update."]}letcontext_="ProvisionedCapacityRequest"letmake?notificationConfiguration=fun~targetQueryTCU->fun()->{notificationConfiguration;targetQueryTCU}letto_valuex=structure_to_value[("TargetQueryTCU",(Some(QueryTCU.to_valuex.targetQueryTCU)));("NotificationConfiguration",(Option.mapx.notificationConfiguration~f:AccountSettingsNotificationConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnotificationConfiguration=(Option.map~f:AccountSettingsNotificationConfiguration.of_xml)(Xml.childxml_arg0"NotificationConfiguration")inlettargetQueryTCU=QueryTCU.of_xml(Xml.child_exn~context:context_xml_arg0"TargetQueryTCU")inmake?notificationConfiguration~targetQueryTCU()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnotificationConfiguration=field_mapjson__"NotificationConfiguration"AccountSettingsNotificationConfiguration.of_jsoninlettargetQueryTCU=field_map_exnjson__"TargetQueryTCU"QueryTCU.of_jsoninmake?notificationConfiguration~targetQueryTCU()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A request to update the provisioned capacity settings for querying data."]moduleQueryComputeRequest=structtypenonrect={computeMode:ComputeMode.toption[@ocaml.doc"The mode in which Timestream Compute Units (TCUs) are allocated and utilized within an account. Note that in the Asia Pacific (Mumbai) region, the API operation only recognizes the value PROVISIONED."];provisionedCapacity:ProvisionedCapacityRequest.toption[@ocaml.doc"Configuration object that contains settings for provisioned Timestream Compute Units (TCUs) in your account."]}letmake?computeMode=fun?provisionedCapacity->fun()->{computeMode;provisionedCapacity}letto_valuex=structure_to_value[("ComputeMode",(Option.mapx.computeMode~f:ComputeMode.to_value));("ProvisionedCapacity",(Option.mapx.provisionedCapacity~f:ProvisionedCapacityRequest.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprovisionedCapacity=(Option.map~f:ProvisionedCapacityRequest.of_xml)(Xml.childxml_arg0"ProvisionedCapacity")inletcomputeMode=(Option.map~f:ComputeMode.of_xml)(Xml.childxml_arg0"ComputeMode")inmake?provisionedCapacity?computeMode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprovisionedCapacity=field_mapjson__"ProvisionedCapacity"ProvisionedCapacityRequest.of_jsoninletcomputeMode=field_mapjson__"ComputeMode"ComputeMode.of_jsoninmake?provisionedCapacity?computeMode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A request to retrieve or update the compute capacity settings for querying data."]moduleQueryExecutionException=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"Timestream was unable to run the query successfully."]moduleQueryInsightsMode=structtypenonrect=|ENABLED_WITH_RATE_CONTROL|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED_WITH_RATE_CONTROL->"ENABLED_WITH_RATE_CONTROL"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED_WITH_RATE_CONTROL"->ENABLED_WITH_RATE_CONTROL|"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 QueryInsightsMode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"QueryInsightsMode"j)letto_json=simple_to_jsonto_valueendmoduleQueryInsights=structtypenonrect={mode:QueryInsightsMode.t[@ocaml.doc"Provides the following modes to enable QueryInsights: ENABLED_WITH_RATE_CONTROL \226\128\147 Enables QueryInsights for the queries being processed. This mode also includes a rate control mechanism, which limits the QueryInsights feature to 1 query per second (QPS). DISABLED \226\128\147 Disables QueryInsights."]}letcontext_="QueryInsights"letmake~mode=fun()->{mode}letto_valuex=structure_to_value[("Mode",(Some(QueryInsightsMode.to_valuex.mode)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmode=QueryInsightsMode.of_xml(Xml.child_exn~context:context_xml_arg0"Mode")inmake~mode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmode=field_map_exnjson__"Mode"QueryInsightsMode.of_jsoninmake~mode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"QueryInsights is a performance tuning feature that helps you optimize your queries, reducing costs and improving performance. With QueryInsights, you can assess the pruning efficiency of your queries and identify areas for improvement to enhance query performance. With QueryInsights, you can also analyze the effectiveness of your queries in terms of temporal and spatial pruning, and identify opportunities to improve performance. Specifically, you can evaluate how well your queries use time-based and partition key-based indexing strategies to optimize data retrieval. To optimize query performance, it's essential that you fine-tune both the temporal and spatial parameters that govern query execution. The key metrics provided by QueryInsights are QuerySpatialCoverage and QueryTemporalRange. QuerySpatialCoverage indicates how much of the spatial axis the query scans, with lower values being more efficient. QueryTemporalRange shows the time range scanned, with narrower ranges being more performant. Benefits of QueryInsights The following are the key benefits of using QueryInsights: Identifying inefficient queries \226\128\147 QueryInsights provides information on the time-based and attribute-based pruning of the tables accessed by the query. This information helps you identify the tables that are sub-optimally accessed. Optimizing your data model and partitioning \226\128\147 You can use the QueryInsights information to access and fine-tune your data model and partitioning strategy. Tuning queries \226\128\147 QueryInsights highlights opportunities to use indexes more effectively. The maximum number of Query API requests you're allowed to make with QueryInsights enabled is 1 query per second (QPS). If you exceed this query rate, it might result in throttling."]moduleQueryInsightsResponse=structtypenonrect={querySpatialCoverage:QuerySpatialCoverage.toption[@ocaml.doc"Provides insights into the spatial coverage of the query, including the table with sub-optimal (max) spatial pruning. This information can help you identify areas for improvement in your partitioning strategy to enhance spatial pruning."];queryTemporalRange:QueryTemporalRange.toption[@ocaml.doc"Provides insights into the temporal range of the query, including the table with the largest (max) time range. Following are some of the potential options for optimizing time-based pruning: Add missing time-predicates. Remove functions around the time predicates. Add time predicates to all the sub-queries."];queryTableCount:Long.toption[@ocaml.doc"Indicates the number of tables in the query."];outputRows:Long.toption[@ocaml.doc"Indicates the total number of rows returned as part of the query result set. You can use this data to validate if the number of rows in the result set have changed as part of the query tuning exercise."];outputBytes:Long.toption[@ocaml.doc"Indicates the size of query result set in bytes. You can use this data to validate if the result set has changed as part of the query tuning exercise."];unloadPartitionCount:Long.toption[@ocaml.doc"Indicates the partitions created by the Unload operation."];unloadWrittenRows:Long.toption[@ocaml.doc"Indicates the rows written by the Unload query."];unloadWrittenBytes:Long.toption[@ocaml.doc"Indicates the size, in bytes, written by the Unload operation."]}letmake?querySpatialCoverage=fun?queryTemporalRange->fun?queryTableCount->fun?outputRows->fun?outputBytes->fun?unloadPartitionCount->fun?unloadWrittenRows->fun?unloadWrittenBytes->fun()->{querySpatialCoverage;queryTemporalRange;queryTableCount;outputRows;outputBytes;unloadPartitionCount;unloadWrittenRows;unloadWrittenBytes}letto_valuex=structure_to_value[("QuerySpatialCoverage",(Option.mapx.querySpatialCoverage~f:QuerySpatialCoverage.to_value));("QueryTemporalRange",(Option.mapx.queryTemporalRange~f:QueryTemporalRange.to_value));("QueryTableCount",(Option.mapx.queryTableCount~f:Long.to_value));("OutputRows",(Option.mapx.outputRows~f:Long.to_value));("OutputBytes",(Option.mapx.outputBytes~f:Long.to_value));("UnloadPartitionCount",(Option.mapx.unloadPartitionCount~f:Long.to_value));("UnloadWrittenRows",(Option.mapx.unloadWrittenRows~f:Long.to_value));("UnloadWrittenBytes",(Option.mapx.unloadWrittenBytes~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunloadWrittenBytes=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"UnloadWrittenBytes")inletunloadWrittenRows=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"UnloadWrittenRows")inletunloadPartitionCount=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"UnloadPartitionCount")inletoutputBytes=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"OutputBytes")inletoutputRows=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"OutputRows")inletqueryTableCount=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"QueryTableCount")inletqueryTemporalRange=(Option.map~f:QueryTemporalRange.of_xml)(Xml.childxml_arg0"QueryTemporalRange")inletquerySpatialCoverage=(Option.map~f:QuerySpatialCoverage.of_xml)(Xml.childxml_arg0"QuerySpatialCoverage")inmake?unloadWrittenBytes?unloadWrittenRows?unloadPartitionCount?outputBytes?outputRows?queryTableCount?queryTemporalRange?querySpatialCoverage()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunloadWrittenBytes=field_mapjson__"UnloadWrittenBytes"Long.of_jsoninletunloadWrittenRows=field_mapjson__"UnloadWrittenRows"Long.of_jsoninletunloadPartitionCount=field_mapjson__"UnloadPartitionCount"Long.of_jsoninletoutputBytes=field_mapjson__"OutputBytes"Long.of_jsoninletoutputRows=field_mapjson__"OutputRows"Long.of_jsoninletqueryTableCount=field_mapjson__"QueryTableCount"Long.of_jsoninletqueryTemporalRange=field_mapjson__"QueryTemporalRange"QueryTemporalRange.of_jsoninletquerySpatialCoverage=field_mapjson__"QuerySpatialCoverage"QuerySpatialCoverage.of_jsoninmake?unloadWrittenBytes?unloadWrittenRows?unloadPartitionCount?outputBytes?outputRows?queryTableCount?queryTemporalRange?querySpatialCoverage()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides various insights and metrics related to the query that you executed."]moduleQueryRequest=structtypenonrect={queryString:QueryString.t[@ocaml.doc"The query to be run by Timestream."];clientToken:ClientRequestToken.toption[@ocaml.doc"Unique, case-sensitive string of up to 64 ASCII characters specified when a Query request is made. Providing a ClientToken makes the call to Query idempotent. This means that running the same query repeatedly will produce the same result. In other words, making multiple identical Query requests has the same effect as making a single request. When using ClientToken in a query, note the following: If the Query API is instantiated without a ClientToken, the Query SDK generates a ClientToken on your behalf. If the Query invocation only contains the ClientToken but does not include a NextToken, that invocation of Query is assumed to be a new query run. If the invocation contains NextToken, that particular invocation is assumed to be a subsequent invocation of a prior call to the Query API, and a result set is returned. After 4 hours, any request with the same ClientToken is treated as a new request."];nextToken:PaginationToken.toption[@ocaml.doc"A pagination token used to return a set of results. When the Query API is invoked using NextToken, that particular invocation is assumed to be a subsequent invocation of a prior call to Query, and a result set is returned. However, if the Query invocation only contains the ClientToken, that invocation of Query is assumed to be a new query run. Note the following when using NextToken in a query: A pagination token can be used for up to five Query invocations, OR for a duration of up to 1 hour \226\128\147 whichever comes first. Using the same NextToken will return the same set of records. To keep paginating through the result set, you must to use the most recent nextToken. Suppose a Query invocation returns two NextToken values, TokenA and TokenB. If TokenB is used in a subsequent Query invocation, then TokenA is invalidated and cannot be reused. To request a previous result set from a query after pagination has begun, you must re-invoke the Query API. The latest NextToken should be used to paginate until null is returned, at which point a new NextToken should be used. If the IAM principal of the query initiator and the result reader are not the same and/or the query initiator and the result reader do not have the same query string in the query requests, the query will fail with an Invalid pagination token error."];maxRows:MaxQueryResults.toption[@ocaml.doc"The total number of rows to be returned in the Query output. The initial run of Query with a MaxRows value specified will return the result set of the query in two cases: The size of the result is less than 1MB. The number of rows in the result set is less than the value of maxRows. Otherwise, the initial invocation of Query only returns a NextToken, which can then be used in subsequent calls to fetch the result set. To resume pagination, provide the NextToken value in the subsequent command. If the row size is large (e.g. a row has many columns), Timestream may return fewer rows to keep the response size from exceeding the 1 MB limit. If MaxRows is not provided, Timestream will send the necessary number of rows to meet the 1 MB limit."];queryInsights:QueryInsights.toption[@ocaml.doc"Encapsulates settings for enabling QueryInsights. Enabling QueryInsights returns insights and metrics in addition to query results for the query that you executed. You can use QueryInsights to tune your query performance."]}letcontext_="QueryRequest"letmake?clientToken=fun?nextToken->fun?maxRows->fun?queryInsights->fun~queryString->fun()->{clientToken;nextToken;maxRows;queryInsights;queryString}letto_valuex=structure_to_value[("QueryString",(Some(QueryString.to_valuex.queryString)));("ClientToken",(Option.mapx.clientToken~f:ClientRequestToken.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxRows",(Option.mapx.maxRows~f:MaxQueryResults.to_value));("QueryInsights",(Option.mapx.queryInsights~f:QueryInsights.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueryInsights=(Option.map~f:QueryInsights.of_xml)(Xml.childxml_arg0"QueryInsights")inletmaxRows=(Option.map~f:MaxQueryResults.of_xml)(Xml.childxml_arg0"MaxRows")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletclientToken=(Option.map~f:ClientRequestToken.of_xml)(Xml.childxml_arg0"ClientToken")inletqueryString=QueryString.of_xml(Xml.child_exn~context:context_xml_arg0"QueryString")inmake?queryInsights?maxRows?nextToken?clientToken~queryString()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueryInsights=field_mapjson__"QueryInsights"QueryInsights.of_jsoninletmaxRows=field_mapjson__"MaxRows"MaxQueryResults.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletclientToken=field_mapjson__"ClientToken"ClientRequestToken.of_jsoninletqueryString=field_map_exnjson__"QueryString"QueryString.of_jsoninmake?queryInsights?maxRows?nextToken?clientToken~queryString()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Query is a synchronous operation that enables you to run a query against your Amazon Timestream data. If you enabled QueryInsights, this API also returns insights and metrics related to the query that you executed. QueryInsights helps with performance tuning of your query. For more information about QueryInsights, see Using query insights to optimize queries in Amazon Timestream. The maximum number of Query API requests you're allowed to make with QueryInsights enabled is 1 query per second (QPS). If you exceed this query rate, it might result in throttling. Query will time out after 60 seconds. You must update the default timeout in the SDK to support a timeout of 60 seconds. See the code sample for details. Your query request will fail in the following cases: If you submit a Query request with the same client token outside of the 5-minute idempotency window. If you submit a Query request with the same client token, but change other parameters, within the 5-minute idempotency window. If the size of the row (including the query metadata) exceeds 1 MB, then the query will fail with the following error message: Query aborted as max page response size has been exceeded by the output result row If the IAM principal of the query initiator and the result reader are not the same and/or the query initiator and the result reader do not have the same query string in the query requests, the query will fail with an Invalid pagination token error."]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_valuevendmoduleQueryStatus=structtypenonrect={progressPercentage:Double.toption[@ocaml.doc"The progress of the query, expressed as a percentage."];cumulativeBytesScanned:Long.toption[@ocaml.doc"The amount of data scanned by the query in bytes. This is a cumulative sum and represents the total amount of bytes scanned since the query was started."];cumulativeBytesMetered:Long.toption[@ocaml.doc"The amount of data scanned by the query in bytes that you will be charged for. This is a cumulative sum and represents the total amount of data that you will be charged for since the query was started. The charge is applied only once and is either applied when the query completes running or when the query is cancelled."]}letmake?progressPercentage=fun?cumulativeBytesScanned->fun?cumulativeBytesMetered->fun()->{progressPercentage;cumulativeBytesScanned;cumulativeBytesMetered}letto_valuex=structure_to_value[("ProgressPercentage",(Option.mapx.progressPercentage~f:Double.to_value));("CumulativeBytesScanned",(Option.mapx.cumulativeBytesScanned~f:Long.to_value));("CumulativeBytesMetered",(Option.mapx.cumulativeBytesMetered~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcumulativeBytesMetered=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"CumulativeBytesMetered")inletcumulativeBytesScanned=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"CumulativeBytesScanned")inletprogressPercentage=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"ProgressPercentage")inmake?cumulativeBytesMetered?cumulativeBytesScanned?progressPercentage()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcumulativeBytesMetered=field_mapjson__"CumulativeBytesMetered"Long.of_jsoninletcumulativeBytesScanned=field_mapjson__"CumulativeBytesScanned"Long.of_jsoninletprogressPercentage=field_mapjson__"ProgressPercentage"Double.of_jsoninmake?cumulativeBytesMetered?cumulativeBytesScanned?progressPercentage()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about the status of the query, including progress and bytes scanned."]moduleQueryResponse=structtypenonrect={queryId:QueryId.toption[@ocaml.doc"A unique ID for the given query."];nextToken:PaginationToken.toption[@ocaml.doc"A pagination token that can be used again on a Query call to get the next set of results."];rows:RowList.toption[@ocaml.doc"The result set rows returned by the query."];columnInfo:ColumnInfoList.toption[@ocaml.doc"The column data types of the returned result set."];queryStatus:QueryStatus.toption[@ocaml.doc"Information about the status of the query, including progress and bytes scanned."];queryInsightsResponse:QueryInsightsResponse.toption[@ocaml.doc"Encapsulates QueryInsights containing insights and metrics related to the query that you executed."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`InvalidEndpointExceptionofInvalidEndpointException.t|`QueryExecutionExceptionofQueryExecutionException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?queryId=fun?nextToken->fun?rows->fun?columnInfo->fun?queryStatus->fun?queryInsightsResponse->fun()->{queryId;nextToken;rows;columnInfo;queryStatus;queryInsightsResponse}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_jsonjson)|"QueryExecutionException"->`QueryExecutionException(QueryExecutionException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_xmlxml)|"QueryExecutionException"->`QueryExecutionException(QueryExecutionException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidEndpointExceptione->`Assoc[("error",(`String"InvalidEndpointException"));("details",(InvalidEndpointException.to_jsone))]|`QueryExecutionExceptione->`Assoc[("error",(`String"QueryExecutionException"));("details",(QueryExecutionException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("QueryId",(Option.mapx.queryId~f:QueryId.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("Rows",(Option.mapx.rows~f:RowList.to_value));("ColumnInfo",(Option.mapx.columnInfo~f:ColumnInfoList.to_value));("QueryStatus",(Option.mapx.queryStatus~f:QueryStatus.to_value));("QueryInsightsResponse",(Option.mapx.queryInsightsResponse~f:QueryInsightsResponse.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueryInsightsResponse=(Option.map~f:QueryInsightsResponse.of_xml)(Xml.childxml_arg0"QueryInsightsResponse")inletqueryStatus=(Option.map~f:QueryStatus.of_xml)(Xml.childxml_arg0"QueryStatus")inletcolumnInfo=(Option.map~f:ColumnInfoList.of_xml)(Xml.childxml_arg0"ColumnInfo")inletrows=(Option.map~f:RowList.of_xml)(Xml.childxml_arg0"Rows")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletqueryId=(Option.map~f:QueryId.of_xml)(Xml.childxml_arg0"QueryId")inmake?queryInsightsResponse?queryStatus?columnInfo?rows?nextToken?queryId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueryInsightsResponse=field_mapjson__"QueryInsightsResponse"QueryInsightsResponse.of_jsoninletqueryStatus=field_mapjson__"QueryStatus"QueryStatus.of_jsoninletcolumnInfo=field_mapjson__"ColumnInfo"ColumnInfoList.of_jsoninletrows=field_mapjson__"Rows"RowList.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletqueryId=field_mapjson__"QueryId"QueryId.of_jsoninmake?queryInsightsResponse?queryStatus?columnInfo?rows?nextToken?queryId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Query is a synchronous operation that enables you to run a query against your Amazon Timestream data. If you enabled QueryInsights, this API also returns insights and metrics related to the query that you executed. QueryInsights helps with performance tuning of your query. For more information about QueryInsights, see Using query insights to optimize queries in Amazon Timestream. The maximum number of Query API requests you're allowed to make with QueryInsights enabled is 1 query per second (QPS). If you exceed this query rate, it might result in throttling. Query will time out after 60 seconds. You must update the default timeout in the SDK to support a timeout of 60 seconds. See the code sample for details. Your query request will fail in the following cases: If you submit a Query request with the same client token outside of the 5-minute idempotency window. If you submit a Query request with the same client token, but change other parameters, within the 5-minute idempotency window. If the size of the row (including the query metadata) exceeds 1 MB, then the query will fail with the following error message: Query aborted as max page response size has been exceeded by the output result row If the IAM principal of the query initiator and the result reader are not the same and/or the query initiator and the result reader do not have the same query string in the query requests, the query will fail with an Invalid pagination token error."]moduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagResourceRequest=structtypenonrect={resourceARN:AmazonResourceName.t[@ocaml.doc"Identifies the Timestream resource to which tags should be added. This value is an Amazon Resource Name (ARN)."];tags:TagList.t[@ocaml.doc"The tags to be assigned to the Timestream resource."]}letcontext_="TagResourceRequest"letmake~resourceARN=fun~tags->fun()->{resourceARN;tags}letto_valuex=structure_to_value[("ResourceARN",(Some(AmazonResourceName.to_valuex.resourceARN)));("Tags",(Some(TagList.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagList.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inletresourceARN=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~tags~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"TagList.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"AmazonResourceName.of_jsoninmake~tags~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associate a set of tags with a Timestream resource. You can then activate these user-defined tags so that they appear on the Billing and Cost Management console for cost allocation tracking."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`InvalidEndpointExceptionofInvalidEndpointException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidEndpointExceptione->`Assoc[("error",(`String"InvalidEndpointException"));("details",(InvalidEndpointException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associate a set of tags with a Timestream resource. You can then activate these user-defined tags so that they appear on the Billing and Cost Management console for cost allocation tracking."]moduleUntagResourceRequest=structtypenonrect={resourceARN:AmazonResourceName.t[@ocaml.doc"The Timestream resource that the tags will be removed from. This value is an Amazon Resource Name (ARN)."];tagKeys:TagKeyList.t[@ocaml.doc"A list of tags keys. Existing tags of the resource whose keys are members of this list will be removed from the Timestream resource."]}letcontext_="UntagResourceRequest"letmake~resourceARN=fun~tagKeys->fun()->{resourceARN;tagKeys}letto_valuex=structure_to_value[("ResourceARN",(Some(AmazonResourceName.to_valuex.resourceARN)));("TagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"TagKeys")inletresourceARN=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~tagKeys~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"TagKeys"TagKeyList.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"AmazonResourceName.of_jsoninmake~tagKeys~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the association of tags from a Timestream query resource."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`InvalidEndpointExceptionofInvalidEndpointException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidEndpointExceptione->`Assoc[("error",(`String"InvalidEndpointException"));("details",(InvalidEndpointException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))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 the association of tags from a Timestream query resource."]moduleUpdateAccountSettingsRequest=structtypenonrect={maxQueryTCU:MaxQueryCapacity.toption[@ocaml.doc"The maximum number of compute units the service will use at any point in time to serve your queries. To run queries, you must set a minimum capacity of 4 TCU. You can set the maximum number of TCU in multiples of 4, for example, 4, 8, 16, 32, and so on. The maximum value supported for MaxQueryTCU is 1000. To request an increase to this soft limit, contact Amazon Web Services Support. For information about the default quota for maxQueryTCU, see Default quotas. This configuration is applicable only for on-demand usage of Timestream Compute Units (TCUs). The maximum value supported for MaxQueryTCU is 1000. To request an increase to this soft limit, contact Amazon Web Services Support. For information about the default quota for maxQueryTCU, see Default quotas."];queryPricingModel:QueryPricingModel.toption[@ocaml.doc"The pricing model for queries in an account. The QueryPricingModel parameter is used by several Timestream operations; however, the UpdateAccountSettings API operation doesn't recognize any values other than COMPUTE_UNITS."];queryCompute:QueryComputeRequest.toption[@ocaml.doc"Modifies the query compute settings configured in your account, including the query pricing model and provisioned Timestream Compute Units (TCUs) in your account. This API is idempotent, meaning that making the same request multiple times will have the same effect as making the request once."]}letmake?maxQueryTCU=fun?queryPricingModel->fun?queryCompute->fun()->{maxQueryTCU;queryPricingModel;queryCompute}letto_valuex=structure_to_value[("MaxQueryTCU",(Option.mapx.maxQueryTCU~f:MaxQueryCapacity.to_value));("QueryPricingModel",(Option.mapx.queryPricingModel~f:QueryPricingModel.to_value));("QueryCompute",(Option.mapx.queryCompute~f:QueryComputeRequest.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueryCompute=(Option.map~f:QueryComputeRequest.of_xml)(Xml.childxml_arg0"QueryCompute")inletqueryPricingModel=(Option.map~f:QueryPricingModel.of_xml)(Xml.childxml_arg0"QueryPricingModel")inletmaxQueryTCU=(Option.map~f:MaxQueryCapacity.of_xml)(Xml.childxml_arg0"MaxQueryTCU")inmake?queryCompute?queryPricingModel?maxQueryTCU()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueryCompute=field_mapjson__"QueryCompute"QueryComputeRequest.of_jsoninletqueryPricingModel=field_mapjson__"QueryPricingModel"QueryPricingModel.of_jsoninletmaxQueryTCU=field_mapjson__"MaxQueryTCU"MaxQueryCapacity.of_jsoninmake?queryCompute?queryPricingModel?maxQueryTCU()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Transitions your account to use TCUs for query pricing and modifies the maximum query compute units that you've configured. If you reduce the value of MaxQueryTCU to a desired configuration, the new value can take up to 24 hours to be effective. After you've transitioned your account to use TCUs for query pricing, you can't transition to using bytes scanned for query pricing."]moduleUpdateAccountSettingsResponse=structtypenonrect={maxQueryTCU:MaxQueryCapacity.toption[@ocaml.doc"The configured maximum number of compute units the service will use at any point in time to serve your queries."];queryPricingModel:QueryPricingModel.toption[@ocaml.doc"The pricing model for an account."];queryCompute:QueryComputeResponse.toption[@ocaml.doc"Confirms the updated account settings for querying data in your account."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`InvalidEndpointExceptionofInvalidEndpointException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?maxQueryTCU=fun?queryPricingModel->fun?queryCompute->fun()->{maxQueryTCU;queryPricingModel;queryCompute}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidEndpointException"->`InvalidEndpointException(InvalidEndpointException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidEndpointExceptione->`Assoc[("error",(`String"InvalidEndpointException"));("details",(InvalidEndpointException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("MaxQueryTCU",(Option.mapx.maxQueryTCU~f:MaxQueryCapacity.to_value));("QueryPricingModel",(Option.mapx.queryPricingModel~f:QueryPricingModel.to_value));("QueryCompute",(Option.mapx.queryCompute~f:QueryComputeResponse.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueryCompute=(Option.map~f:QueryComputeResponse.of_xml)(Xml.childxml_arg0"QueryCompute")inletqueryPricingModel=(Option.map~f:QueryPricingModel.of_xml)(Xml.childxml_arg0"QueryPricingModel")inletmaxQueryTCU=(Option.map~f:MaxQueryCapacity.of_xml)(Xml.childxml_arg0"MaxQueryTCU")inmake?queryCompute?queryPricingModel?maxQueryTCU()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueryCompute=field_mapjson__"QueryCompute"QueryComputeResponse.of_jsoninletqueryPricingModel=field_mapjson__"QueryPricingModel"QueryPricingModel.of_jsoninletmaxQueryTCU=field_mapjson__"MaxQueryTCU"MaxQueryCapacity.of_jsoninmake?queryCompute?queryPricingModel?maxQueryTCU()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Transitions your account to use TCUs for query pricing and modifies the maximum query compute units that you've configured. If you reduce the value of MaxQueryTCU to a desired configuration, the new value can take up to 24 hours to be effective. After you've transitioned your account to use TCUs for query pricing, you can't transition to using bytes scanned for query pricing."]moduleUpdateScheduledQueryRequest=structtypenonrect={scheduledQueryArn:AmazonResourceName.t[@ocaml.doc"ARN of the scheuled query."];state:ScheduledQueryState.t[@ocaml.doc"State of the scheduled query."]}letcontext_="UpdateScheduledQueryRequest"letmake~scheduledQueryArn=fun~state->fun()->{scheduledQueryArn;state}letto_valuex=structure_to_value[("ScheduledQueryArn",(Some(AmazonResourceName.to_valuex.scheduledQueryArn)));("State",(Some(ScheduledQueryState.to_valuex.state)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstate=ScheduledQueryState.of_xml(Xml.child_exn~context:context_xml_arg0"State")inletscheduledQueryArn=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ScheduledQueryArn")inmake~state~scheduledQueryArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstate=field_map_exnjson__"State"ScheduledQueryState.of_jsoninletscheduledQueryArn=field_map_exnjson__"ScheduledQueryArn"AmazonResourceName.of_jsoninmake~state~scheduledQueryArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Update a scheduled query."]