123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835(* 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.keyspacesletapiVersion="2022-02-10"letendpointPrefix="cassandra"letserviceFullName="Amazon Keyspaces"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"lettargetPrefix="KeyspacesService"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[]))])moduleBooleanObject=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_valueendmoduleDoubleObject=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_valueendmoduleIntegerObject=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 IntegerObject"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleTargetTrackingScalingPolicyConfiguration=structtypenonrect={disableScaleIn:BooleanObject.toption[@ocaml.doc"Specifies if scale-in is enabled. When auto scaling automatically decreases capacity for a table, the table scales in. When scaling policies are set, they can't scale in the table lower than its minimum capacity."];scaleInCooldown:IntegerObject.toption[@ocaml.doc"Specifies a scale-in cool down period. A cooldown period in seconds between scaling activities that lets the table stabilize before another scaling activity starts."];scaleOutCooldown:IntegerObject.toption[@ocaml.doc"Specifies a scale out cool down period. A cooldown period in seconds between scaling activities that lets the table stabilize before another scaling activity starts."];targetValue:DoubleObject.t[@ocaml.doc"Specifies the target value for the target tracking auto scaling policy. Amazon Keyspaces auto scaling scales up capacity automatically when traffic exceeds this target utilization rate, and then back down when it falls below the target. This ensures that the ratio of consumed capacity to provisioned capacity stays at or near this value. You define targetValue as a percentage. A double between 20 and 90."]}letcontext_="TargetTrackingScalingPolicyConfiguration"letmake?disableScaleIn=fun?scaleInCooldown->fun?scaleOutCooldown->fun~targetValue->fun()->{disableScaleIn;scaleInCooldown;scaleOutCooldown;targetValue}letto_valuex=structure_to_value[("disableScaleIn",(Option.mapx.disableScaleIn~f:BooleanObject.to_value));("scaleInCooldown",(Option.mapx.scaleInCooldown~f:IntegerObject.to_value));("scaleOutCooldown",(Option.mapx.scaleOutCooldown~f:IntegerObject.to_value));("targetValue",(Some(DoubleObject.to_valuex.targetValue)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettargetValue=DoubleObject.of_xml(Xml.child_exn~context:context_xml_arg0"targetValue")inletscaleOutCooldown=(Option.map~f:IntegerObject.of_xml)(Xml.childxml_arg0"scaleOutCooldown")inletscaleInCooldown=(Option.map~f:IntegerObject.of_xml)(Xml.childxml_arg0"scaleInCooldown")inletdisableScaleIn=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"disableScaleIn")inmake~targetValue?scaleOutCooldown?scaleInCooldown?disableScaleIn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettargetValue=field_map_exnjson__"targetValue"DoubleObject.of_jsoninletscaleOutCooldown=field_mapjson__"scaleOutCooldown"IntegerObject.of_jsoninletscaleInCooldown=field_mapjson__"scaleInCooldown"IntegerObject.of_jsoninletdisableScaleIn=field_mapjson__"disableScaleIn"BooleanObject.of_jsoninmake~targetValue?scaleOutCooldown?scaleInCooldown?disableScaleIn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The auto scaling policy that scales a table based on the ratio of consumed to provisioned capacity."]moduleAutoScalingPolicy=structtypenonrect={targetTrackingScalingPolicyConfiguration:TargetTrackingScalingPolicyConfiguration.toption[@ocaml.doc"Auto scaling scales up capacity automatically when traffic exceeds this target utilization rate, and then back down when it falls below the target. A double between 20 and 90."]}letmake?targetTrackingScalingPolicyConfiguration=fun()->{targetTrackingScalingPolicyConfiguration}letto_valuex=structure_to_value[("targetTrackingScalingPolicyConfiguration",(Option.mapx.targetTrackingScalingPolicyConfiguration~f:TargetTrackingScalingPolicyConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettargetTrackingScalingPolicyConfiguration=(Option.map~f:TargetTrackingScalingPolicyConfiguration.of_xml)(Xml.childxml_arg0"targetTrackingScalingPolicyConfiguration")inmake?targetTrackingScalingPolicyConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettargetTrackingScalingPolicyConfiguration=field_mapjson__"targetTrackingScalingPolicyConfiguration"TargetTrackingScalingPolicyConfiguration.of_jsoninmake?targetTrackingScalingPolicyConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Amazon Keyspaces supports the target tracking auto scaling policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's ratio of consumed to provisioned capacity stays at or near the target value that you specify. You define the target value as a percentage between 20 and 90."]moduleCapacityUnits=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith(check_int64_mini~min:1L);iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min: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:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleRegion=structtypenonrect=stringletcontext_="region"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:25)>>=(fun()->check_string_mini~min:2));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"region"jletto_json=simple_to_jsonto_valueendmoduleThroughputMode=structtypenonrect=|PAY_PER_REQUEST|PROVISIONED|Non_static_idofstringletmakei=iletto_string=function|PAY_PER_REQUEST->"PAY_PER_REQUEST"|PROVISIONED->"PROVISIONED"|Non_static_ids->sletof_string=function|"PAY_PER_REQUEST"->PAY_PER_REQUEST|"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 ThroughputMode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ThroughputMode"j)letto_json=simple_to_jsonto_valueendmoduleTimestamp=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleLong=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_valueendmoduleWarmThroughputStatus=structtypenonrect=|AVAILABLE|UPDATING|Non_static_idofstringletmakei=iletto_string=function|AVAILABLE->"AVAILABLE"|UPDATING->"UPDATING"|Non_static_ids->sletof_string=function|"AVAILABLE"->AVAILABLE|"UPDATING"->UPDATING|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 WarmThroughputStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WarmThroughputStatus"j)letto_json=simple_to_jsonto_valueendmoduleGenericString=structtypenonrect=stringletcontext_="GenericString"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:"GenericString"jletto_json=simple_to_jsonto_valueendmoduleSortOrder=structtypenonrect=|ASC|DESC|Non_static_idofstringletmakei=iletto_string=function|ASC->"ASC"|DESC->"DESC"|Non_static_ids->sletof_string=function|"ASC"->ASC|"DESC"->DESC|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration SortOrder"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SortOrder"j)letto_json=simple_to_jsonto_valueendmoduleAutoScalingSettings=structtypenonrect={autoScalingDisabled:BooleanObject.toption[@ocaml.doc"This optional parameter enables auto scaling for the table if set to false."];minimumUnits:CapacityUnits.toption[@ocaml.doc"The minimum level of throughput the table should always be ready to support. The value must be between 1 and the max throughput per second quota for your account (40,000 by default)."];maximumUnits:CapacityUnits.toption[@ocaml.doc"Manage costs by specifying the maximum amount of throughput to provision. The value must be between 1 and the max throughput per second quota for your account (40,000 by default)."];scalingPolicy:AutoScalingPolicy.toption[@ocaml.doc"Amazon Keyspaces supports the target tracking auto scaling policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's ratio of consumed to provisioned capacity stays at or near the target value that you specify. You define the target value as a percentage between 20 and 90."]}letmake?autoScalingDisabled=fun?minimumUnits->fun?maximumUnits->fun?scalingPolicy->fun()->{autoScalingDisabled;minimumUnits;maximumUnits;scalingPolicy}letto_valuex=structure_to_value[("autoScalingDisabled",(Option.mapx.autoScalingDisabled~f:BooleanObject.to_value));("minimumUnits",(Option.mapx.minimumUnits~f:CapacityUnits.to_value));("maximumUnits",(Option.mapx.maximumUnits~f:CapacityUnits.to_value));("scalingPolicy",(Option.mapx.scalingPolicy~f:AutoScalingPolicy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letscalingPolicy=(Option.map~f:AutoScalingPolicy.of_xml)(Xml.childxml_arg0"scalingPolicy")inletmaximumUnits=(Option.map~f:CapacityUnits.of_xml)(Xml.childxml_arg0"maximumUnits")inletminimumUnits=(Option.map~f:CapacityUnits.of_xml)(Xml.childxml_arg0"minimumUnits")inletautoScalingDisabled=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"autoScalingDisabled")inmake?scalingPolicy?maximumUnits?minimumUnits?autoScalingDisabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letscalingPolicy=field_mapjson__"scalingPolicy"AutoScalingPolicy.of_jsoninletmaximumUnits=field_mapjson__"maximumUnits"CapacityUnits.of_jsoninletminimumUnits=field_mapjson__"minimumUnits"CapacityUnits.of_jsoninletautoScalingDisabled=field_mapjson__"autoScalingDisabled"BooleanObject.of_jsoninmake?scalingPolicy?maximumUnits?minimumUnits?autoScalingDisabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The optional auto scaling settings for a table with provisioned throughput capacity. To turn on auto scaling for a table in throughputMode:PROVISIONED, you must specify the following parameters. Configure the minimum and maximum capacity units. The auto scaling policy ensures that capacity never goes below the minimum or above the maximum range. minimumUnits: The minimum level of throughput the table should always be ready to support. The value must be between 1 and the max throughput per second quota for your account (40,000 by default). maximumUnits: The maximum level of throughput the table should always be ready to support. The value must be between 1 and the max throughput per second quota for your account (40,000 by default). scalingPolicy: Amazon Keyspaces supports the target tracking scaling policy. The auto scaling target is the provisioned capacity of the table. targetTrackingScalingPolicyConfiguration: To define the target tracking policy, you must define the target value. targetValue: The target utilization rate of the table. Amazon Keyspaces auto scaling ensures that the ratio of consumed capacity to provisioned capacity stays at or near this value. You define targetValue as a percentage. A double between 20 and 90. (Required) disableScaleIn: A boolean that specifies if scale-in is disabled or enabled for the table. This parameter is disabled by default. To turn on scale-in, set the boolean value to FALSE. This means that capacity for a table can be automatically scaled down on your behalf. (Optional) scaleInCooldown: A cooldown period in seconds between scaling activities that lets the table stabilize before another scale in activity starts. If no value is provided, the default is 0. (Optional) scaleOutCooldown: A cooldown period in seconds between scaling activities that lets the table stabilize before another scale out activity starts. If no value is provided, the default is 0. (Optional) For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide."]moduleTag=structtypenonrect={key:TagKey.t[@ocaml.doc"The key of the tag. Tag keys are case sensitive. Each Amazon Keyspaces resource can only have up to one tag with the same key. If you try to add an existing tag (same key), the existing tag value will be updated to the new value."];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"Describes a tag. A tag is a key-value pair. You can add up to 50 tags to a single Amazon Keyspaces resource. Amazon Web Services-assigned tag names and values are automatically assigned the aws: prefix, which the user cannot assign. Amazon Web Services-assigned tag names do not count towards the tag limit of 50. User-assigned tag names have the prefix user: in the Cost Allocation Report. You cannot backdate the application of a tag. For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide."]moduleARN=structtypenonrect=stringletcontext_="ARN"letmakei=letopenResultinok_or_failwith((check_string_mini~min:20)>>=(fun()->(check_string_maxi~max:1000)>>=(fun()->check_patterni~pattern:"arn:(aws[a-zA-Z0-9-]*):cassandra:.+.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ARN"jletto_json=simple_to_jsonto_valueendmoduleKeyspaceName=structtypenonrect=stringletcontext_="KeyspaceName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:48)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9][a-zA-Z0-9_]{0,47}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"KeyspaceName"jletto_json=simple_to_jsonto_valueendmoduleTableName=structtypenonrect=stringletcontext_="TableName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:48)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9][a-zA-Z0-9_]{0,47}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TableName"jletto_json=simple_to_jsonto_valueendmoduleRegionList=structtypenonrect=Region.tlistletmakei=letopenResultinok_or_failwith(check_list_mini~min:2);iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Region.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:Region.of_xml)letof_jsonj=list_of_json~kind:"RegionList"~of_json:Region.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRs=structtypenonrect=|SINGLE_REGION|MULTI_REGION|Non_static_idofstringletmakei=iletto_string=function|SINGLE_REGION->"SINGLE_REGION"|MULTI_REGION->"MULTI_REGION"|Non_static_ids->sletof_string=function|"SINGLE_REGION"->SINGLE_REGION|"MULTI_REGION"->MULTI_REGION|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 rs"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"rs"j)letto_json=simple_to_jsonto_valueendmoduleFieldDefinitionNameString=structtypenonrect=stringletcontext_="FieldDefinitionNameString"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:"FieldDefinitionNameString"jletto_json=simple_to_jsonto_valueendmoduleCapacitySpecificationSummary=structtypenonrect={throughputMode:ThroughputMode.toption[@ocaml.doc"The read/write throughput capacity mode for a table. The options are: throughputMode:PAY_PER_REQUEST and throughputMode:PROVISIONED - Provisioned capacity mode requires readCapacityUnits and writeCapacityUnits as input. The default is throughput_mode:PAY_PER_REQUEST. For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide."];readCapacityUnits:CapacityUnits.toption[@ocaml.doc"The throughput capacity specified for read operations defined in read capacity units (RCUs)."];writeCapacityUnits:CapacityUnits.toption[@ocaml.doc"The throughput capacity specified for write operations defined in write capacity units (WCUs)."];lastUpdateToPayPerRequestTimestamp:Timestamp.toption[@ocaml.doc"The timestamp of the last operation that changed the provisioned throughput capacity of a table."]}letmake?throughputMode=fun?readCapacityUnits->fun?writeCapacityUnits->fun?lastUpdateToPayPerRequestTimestamp->fun()->{throughputMode;readCapacityUnits;writeCapacityUnits;lastUpdateToPayPerRequestTimestamp}letto_valuex=structure_to_value[("throughputMode",(Option.mapx.throughputMode~f:ThroughputMode.to_value));("readCapacityUnits",(Option.mapx.readCapacityUnits~f:CapacityUnits.to_value));("writeCapacityUnits",(Option.mapx.writeCapacityUnits~f:CapacityUnits.to_value));("lastUpdateToPayPerRequestTimestamp",(Option.mapx.lastUpdateToPayPerRequestTimestamp~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastUpdateToPayPerRequestTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"lastUpdateToPayPerRequestTimestamp")inletwriteCapacityUnits=(Option.map~f:CapacityUnits.of_xml)(Xml.childxml_arg0"writeCapacityUnits")inletreadCapacityUnits=(Option.map~f:CapacityUnits.of_xml)(Xml.childxml_arg0"readCapacityUnits")inletthroughputMode=(Option.map~f:ThroughputMode.of_xml)(Xml.childxml_arg0"throughputMode")inmake?lastUpdateToPayPerRequestTimestamp?writeCapacityUnits?readCapacityUnits?throughputMode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastUpdateToPayPerRequestTimestamp=field_mapjson__"lastUpdateToPayPerRequestTimestamp"Timestamp.of_jsoninletwriteCapacityUnits=field_mapjson__"writeCapacityUnits"CapacityUnits.of_jsoninletreadCapacityUnits=field_mapjson__"readCapacityUnits"CapacityUnits.of_jsoninletthroughputMode=field_mapjson__"throughputMode"ThroughputMode.of_jsoninmake?lastUpdateToPayPerRequestTimestamp?writeCapacityUnits?readCapacityUnits?throughputMode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The read/write throughput capacity mode for a table. The options are: throughputMode:PAY_PER_REQUEST and throughputMode:PROVISIONED. For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide."]moduleTableStatus=structtypenonrect=|ACTIVE|CREATING|UPDATING|DELETING|DELETED|RESTORING|INACCESSIBLE_ENCRYPTION_CREDENTIALS|Non_static_idofstringletmakei=iletto_string=function|ACTIVE->"ACTIVE"|CREATING->"CREATING"|UPDATING->"UPDATING"|DELETING->"DELETING"|DELETED->"DELETED"|RESTORING->"RESTORING"|INACCESSIBLE_ENCRYPTION_CREDENTIALS->"INACCESSIBLE_ENCRYPTION_CREDENTIALS"|Non_static_ids->sletof_string=function|"ACTIVE"->ACTIVE|"CREATING"->CREATING|"UPDATING"->UPDATING|"DELETING"->DELETING|"DELETED"->DELETED|"RESTORING"->RESTORING|"INACCESSIBLE_ENCRYPTION_CREDENTIALS"->INACCESSIBLE_ENCRYPTION_CREDENTIALS|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 TableStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TableStatus"j)letto_json=simple_to_jsonto_valueendmoduleWarmThroughputSpecificationSummary=structtypenonrect={readUnitsPerSecond:Long.toption[@ocaml.doc"The number of read capacity units per second currently configured for warm throughput."];writeUnitsPerSecond:Long.toption[@ocaml.doc"The number of write capacity units per second currently configured for warm throughput."];status:WarmThroughputStatus.toption[@ocaml.doc"The current status of the warm throughput configuration. Valid values are AVAILABLE when the configuration is active, and UPDATING when changes are being applied."]}letmake?readUnitsPerSecond=fun?writeUnitsPerSecond->fun?status->fun()->{readUnitsPerSecond;writeUnitsPerSecond;status}letto_valuex=structure_to_value[("readUnitsPerSecond",(Option.mapx.readUnitsPerSecond~f:Long.to_value));("writeUnitsPerSecond",(Option.mapx.writeUnitsPerSecond~f:Long.to_value));("status",(Option.mapx.status~f:WarmThroughputStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:WarmThroughputStatus.of_xml)(Xml.childxml_arg0"status")inletwriteUnitsPerSecond=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"writeUnitsPerSecond")inletreadUnitsPerSecond=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"readUnitsPerSecond")inmake?status?writeUnitsPerSecond?readUnitsPerSecond()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"status"WarmThroughputStatus.of_jsoninletwriteUnitsPerSecond=field_mapjson__"writeUnitsPerSecond"Long.of_jsoninletreadUnitsPerSecond=field_mapjson__"readUnitsPerSecond"Long.of_jsoninmake?status?writeUnitsPerSecond?readUnitsPerSecond()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the current warm throughput settings for a table, including the configured capacity units and the current status of the warm throughput configuration."]moduleClusteringKey=structtypenonrect={name:GenericString.t[@ocaml.doc"The name(s) of the clustering column(s)."];orderBy:SortOrder.t[@ocaml.doc"Sets the ascendant (ASC) or descendant (DESC) order modifier."]}letcontext_="ClusteringKey"letmake~name=fun~orderBy->fun()->{name;orderBy}letto_valuex=structure_to_value[("name",(Some(GenericString.to_valuex.name)));("orderBy",(Some(SortOrder.to_valuex.orderBy)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letorderBy=SortOrder.of_xml(Xml.child_exn~context:context_xml_arg0"orderBy")inletname=GenericString.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~orderBy~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letorderBy=field_map_exnjson__"orderBy"SortOrder.of_jsoninletname=field_map_exnjson__"name"GenericString.of_jsoninmake~orderBy~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The optional clustering column portion of your primary key determines how the data is clustered and sorted within each partition."]moduleColumnDefinition=structtypenonrect={name:GenericString.t[@ocaml.doc"The name of the column."];type_:GenericString.t[@ocaml.doc"The data type of the column. For a list of available data types, see Data types in the Amazon Keyspaces Developer Guide."]}letcontext_="ColumnDefinition"letmake~name=fun~type_->fun()->{name;type_}letto_valuex=structure_to_value[("name",(Some(GenericString.to_valuex.name)));("type",(Some(GenericString.to_valuex.type_)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=GenericString.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletname=GenericString.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~type_~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_map_exnjson__"type"GenericString.of_jsoninletname=field_map_exnjson__"name"GenericString.of_jsoninmake~type_~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The names and data types of regular columns."]modulePartitionKey=structtypenonrect={name:GenericString.t[@ocaml.doc"The name(s) of the partition key column(s)."]}letcontext_="PartitionKey"letmake~name=fun()->{name}letto_valuex=structure_to_value[("name",(Some(GenericString.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=GenericString.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"name"GenericString.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The partition key portion of the primary key is required and determines how Amazon Keyspaces stores the data. The partition key can be a single column, or it can be a compound value composed of two or more columns."]moduleStaticColumn=structtypenonrect={name:GenericString.t[@ocaml.doc"The name of the static column."]}letcontext_="StaticColumn"letmake~name=fun()->{name}letto_valuex=structure_to_value[("name",(Some(GenericString.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=GenericString.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"name"GenericString.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The static columns of the table. Static columns store values that are shared by all rows in the same partition."]moduleAutoScalingSpecification=structtypenonrect={writeCapacityAutoScaling:AutoScalingSettings.toption[@ocaml.doc"The auto scaling settings for the table's write capacity."];readCapacityAutoScaling:AutoScalingSettings.toption[@ocaml.doc"The auto scaling settings for the table's read capacity."]}letmake?writeCapacityAutoScaling=fun?readCapacityAutoScaling->fun()->{writeCapacityAutoScaling;readCapacityAutoScaling}letto_valuex=structure_to_value[("writeCapacityAutoScaling",(Option.mapx.writeCapacityAutoScaling~f:AutoScalingSettings.to_value));("readCapacityAutoScaling",(Option.mapx.readCapacityAutoScaling~f:AutoScalingSettings.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreadCapacityAutoScaling=(Option.map~f:AutoScalingSettings.of_xml)(Xml.childxml_arg0"readCapacityAutoScaling")inletwriteCapacityAutoScaling=(Option.map~f:AutoScalingSettings.of_xml)(Xml.childxml_arg0"writeCapacityAutoScaling")inmake?readCapacityAutoScaling?writeCapacityAutoScaling()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreadCapacityAutoScaling=field_mapjson__"readCapacityAutoScaling"AutoScalingSettings.of_jsoninletwriteCapacityAutoScaling=field_mapjson__"writeCapacityAutoScaling"AutoScalingSettings.of_jsoninmake?readCapacityAutoScaling?writeCapacityAutoScaling()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The optional auto scaling capacity settings for a table in provisioned capacity mode."]moduleKeyspaceStatus=structtypenonrect=|ACTIVE|CREATING|UPDATING|DELETING|Non_static_idofstringletmakei=iletto_string=function|ACTIVE->"ACTIVE"|CREATING->"CREATING"|UPDATING->"UPDATING"|DELETING->"DELETING"|Non_static_ids->sletof_string=function|"ACTIVE"->ACTIVE|"CREATING"->CREATING|"UPDATING"->UPDATING|"DELETING"->DELETING|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 KeyspaceStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"KeyspaceStatus"j)letto_json=simple_to_jsonto_valueendmoduleTablesReplicationProgress=structtypenonrect=stringletcontext_="TablesReplicationProgress"letmakei=letopenResultinok_or_failwith((check_string_mini~min:2)>>=(fun()->(check_string_maxi~max:7)>>=(fun()->check_patterni~pattern:"[0-9]{1,3}(?:[.][0-9]{1,2})?%")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TablesReplicationProgress"jletto_json=simple_to_jsonto_valueendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleCdcPropagateTags=structtypenonrect=|TABLE|NONE|Non_static_idofstringletmakei=iletto_string=function|TABLE->"TABLE"|NONE->"NONE"|Non_static_ids->sletof_string=function|"TABLE"->TABLE|"NONE"->NONE|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration CdcPropagateTags"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CdcPropagateTags"j)letto_json=simple_to_jsonto_valueendmoduleCdcStatus=structtypenonrect=|ENABLED|ENABLING|DISABLED|DISABLING|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|ENABLING->"ENABLING"|DISABLED->"DISABLED"|DISABLING->"DISABLING"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"ENABLING"->ENABLING|"DISABLED"->DISABLED|"DISABLING"->DISABLING|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 CdcStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CdcStatus"j)letto_json=simple_to_jsonto_valueendmoduleTagList=structtypenonrect=Tag.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:60)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f: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_valuevendmoduleViewType=structtypenonrect=|NEW_IMAGE|OLD_IMAGE|KEYS_ONLY|NEW_AND_OLD_IMAGES|Non_static_idofstringletmakei=iletto_string=function|NEW_IMAGE->"NEW_IMAGE"|OLD_IMAGE->"OLD_IMAGE"|KEYS_ONLY->"KEYS_ONLY"|NEW_AND_OLD_IMAGES->"NEW_AND_OLD_IMAGES"|Non_static_ids->sletof_string=function|"NEW_IMAGE"->NEW_IMAGE|"OLD_IMAGE"->OLD_IMAGE|"KEYS_ONLY"->KEYS_ONLY|"NEW_AND_OLD_IMAGES"->NEW_AND_OLD_IMAGES|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 ViewType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ViewType"j)letto_json=simple_to_jsonto_valueendmoduleClientSideTimestampsStatus=structtypenonrect=|ENABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|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 ClientSideTimestampsStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ClientSideTimestampsStatus"j)letto_json=simple_to_jsonto_valueendmoduleEncryptionType=structtypenonrect=|CUSTOMER_MANAGED_KMS_KEY|AWS_OWNED_KMS_KEY|Non_static_idofstringletmakei=iletto_string=function|CUSTOMER_MANAGED_KMS_KEY->"CUSTOMER_MANAGED_KMS_KEY"|AWS_OWNED_KMS_KEY->"AWS_OWNED_KMS_KEY"|Non_static_ids->sletof_string=function|"CUSTOMER_MANAGED_KMS_KEY"->CUSTOMER_MANAGED_KMS_KEY|"AWS_OWNED_KMS_KEY"->AWS_OWNED_KMS_KEY|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 EncryptionType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EncryptionType"j)letto_json=simple_to_jsonto_valueendmoduleKmsKeyARN=structtypenonrect=stringletcontext_="kmsKeyARN"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:5096)>>=(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:"kmsKeyARN"jletto_json=simple_to_jsonto_valueendmodulePointInTimeRecoveryStatus=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 PointInTimeRecoveryStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PointInTimeRecoveryStatus"j)letto_json=simple_to_jsonto_valueendmoduleReplicaSpecification=structtypenonrect={region:Region.t[@ocaml.doc"The Amazon Web Services Region."];readCapacityUnits:CapacityUnits.toption[@ocaml.doc"The provisioned read capacity units for the multi-Region table in the specified Amazon Web Services Region."];readCapacityAutoScaling:AutoScalingSettings.toption[@ocaml.doc"The read capacity auto scaling settings for the multi-Region table in the specified Amazon Web Services Region."]}letcontext_="ReplicaSpecification"letmake?readCapacityUnits=fun?readCapacityAutoScaling->fun~region->fun()->{readCapacityUnits;readCapacityAutoScaling;region}letto_valuex=structure_to_value[("region",(Some(Region.to_valuex.region)));("readCapacityUnits",(Option.mapx.readCapacityUnits~f:CapacityUnits.to_value));("readCapacityAutoScaling",(Option.mapx.readCapacityAutoScaling~f:AutoScalingSettings.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreadCapacityAutoScaling=(Option.map~f:AutoScalingSettings.of_xml)(Xml.childxml_arg0"readCapacityAutoScaling")inletreadCapacityUnits=(Option.map~f:CapacityUnits.of_xml)(Xml.childxml_arg0"readCapacityUnits")inletregion=Region.of_xml(Xml.child_exn~context:context_xml_arg0"region")inmake?readCapacityAutoScaling?readCapacityUnits~region()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreadCapacityAutoScaling=field_mapjson__"readCapacityAutoScaling"AutoScalingSettings.of_jsoninletreadCapacityUnits=field_mapjson__"readCapacityUnits"CapacityUnits.of_jsoninletregion=field_map_exnjson__"region"Region.of_jsoninmake?readCapacityAutoScaling?readCapacityUnits~region()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The Amazon Web Services Region specific settings of a multi-Region table. For a multi-Region table, you can configure the table's read capacity differently per Amazon Web Services Region. You can do this by configuring the following parameters. region: The Region where these settings are applied. (Required) readCapacityUnits: The provisioned read capacity units. (Optional) readCapacityAutoScaling: The read capacity auto scaling settings for the table. (Optional)"]moduleTimeToLiveStatus=structtypenonrect=|ENABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|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 TimeToLiveStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TimeToLiveStatus"j)letto_json=simple_to_jsonto_valueendmoduleWarmThroughputSpecificationReadUnitsPerSecondLong=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith(check_int64_mini~min:1L);iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleWarmThroughputSpecificationWriteUnitsPerSecondLong=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith(check_int64_mini~min:1L);iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleTypeName=structtypenonrect=stringletcontext_="TypeName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:48)>>=(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:"TypeName"jletto_json=simple_to_jsonto_valueendmoduleTableSummary=structtypenonrect={keyspaceName:KeyspaceName.toption[@ocaml.doc"The name of the keyspace that the table is stored in."];tableName:TableName.toption[@ocaml.doc"The name of the table."];resourceArn:ARN.toption[@ocaml.doc"The unique identifier of the table in the format of an Amazon Resource Name (ARN)."]}letmake?keyspaceName=fun?tableName->fun?resourceArn->fun()->{keyspaceName;tableName;resourceArn}letto_valuex=structure_to_value[("keyspaceName",(Option.mapx.keyspaceName~f:KeyspaceName.to_value));("tableName",(Option.mapx.tableName~f:TableName.to_value));("resourceArn",(Option.mapx.resourceArn~f:ARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"resourceArn")inlettableName=(Option.map~f:TableName.of_xml)(Xml.childxml_arg0"tableName")inletkeyspaceName=(Option.map~f:KeyspaceName.of_xml)(Xml.childxml_arg0"keyspaceName")inmake?resourceArn?tableName?keyspaceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_mapjson__"resourceArn"ARN.of_jsoninlettableName=field_mapjson__"tableName"TableName.of_jsoninletkeyspaceName=field_mapjson__"keyspaceName"KeyspaceName.of_jsoninmake?resourceArn?tableName?keyspaceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the name of the specified table, the keyspace it is stored in, and the unique identifier in the format of an Amazon Resource Name (ARN)."]moduleKeyspaceSummary=structtypenonrect={keyspaceName:KeyspaceName.toption[@ocaml.doc"The name of the keyspace."];resourceArn:ARN.toption[@ocaml.doc"The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN)."];replicationStrategy:Rs.toption[@ocaml.doc"This property specifies if a keyspace is a single Region keyspace or a multi-Region keyspace. The available values are SINGLE_REGION or MULTI_REGION."];replicationRegions:RegionList.toption[@ocaml.doc"If the replicationStrategy of the keyspace is MULTI_REGION, a list of replication Regions is returned."]}letmake?keyspaceName=fun?resourceArn->fun?replicationStrategy->fun?replicationRegions->fun()->{keyspaceName;resourceArn;replicationStrategy;replicationRegions}letto_valuex=structure_to_value[("keyspaceName",(Option.mapx.keyspaceName~f:KeyspaceName.to_value));("resourceArn",(Option.mapx.resourceArn~f:ARN.to_value));("replicationStrategy",(Option.mapx.replicationStrategy~f:Rs.to_value));("replicationRegions",(Option.mapx.replicationRegions~f:RegionList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreplicationRegions=(Option.map~f:RegionList.of_xml)(Xml.childxml_arg0"replicationRegions")inletreplicationStrategy=(Option.map~f:Rs.of_xml)(Xml.childxml_arg0"replicationStrategy")inletresourceArn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"resourceArn")inletkeyspaceName=(Option.map~f:KeyspaceName.of_xml)(Xml.childxml_arg0"keyspaceName")inmake?replicationRegions?replicationStrategy?resourceArn?keyspaceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreplicationRegions=field_mapjson__"replicationRegions"RegionList.of_jsoninletreplicationStrategy=field_mapjson__"replicationStrategy"Rs.of_jsoninletresourceArn=field_mapjson__"resourceArn"ARN.of_jsoninletkeyspaceName=field_mapjson__"keyspaceName"KeyspaceName.of_jsoninmake?replicationRegions?replicationStrategy?resourceArn?keyspaceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the properties of a keyspace."]moduleFieldDefinition=structtypenonrect={name:FieldDefinitionNameString.t[@ocaml.doc"The identifier."];type_:GenericString.t[@ocaml.doc"Any supported Cassandra data type, including collections and other user-defined types that are contained in the same keyspace. For more information, see Cassandra data type support in the Amazon Keyspaces Developer Guide."]}letcontext_="FieldDefinition"letmake~name=fun~type_->fun()->{name;type_}letto_valuex=structure_to_value[("name",(Some(FieldDefinitionNameString.to_valuex.name)));("type",(Some(GenericString.to_valuex.type_)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=GenericString.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletname=FieldDefinitionNameString.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~type_~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_map_exnjson__"type"GenericString.of_jsoninletname=field_map_exnjson__"name"FieldDefinitionNameString.of_jsoninmake~type_~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A field definition consists out of a name and a type."]moduleReplicaSpecificationSummary=structtypenonrect={region:Region.toption[@ocaml.doc"The Amazon Web Services Region."];status:TableStatus.toption[@ocaml.doc"The status of the multi-Region table in the specified Amazon Web Services Region."];capacitySpecification:CapacitySpecificationSummary.toption;warmThroughputSpecification:WarmThroughputSpecificationSummary.toption[@ocaml.doc"The warm throughput settings for this replica, including the current status and configured read and write capacity units."]}letmake?region=fun?status->fun?capacitySpecification->fun?warmThroughputSpecification->fun()->{region;status;capacitySpecification;warmThroughputSpecification}letto_valuex=structure_to_value[("region",(Option.mapx.region~f:Region.to_value));("status",(Option.mapx.status~f:TableStatus.to_value));("capacitySpecification",(Option.mapx.capacitySpecification~f:CapacitySpecificationSummary.to_value));("warmThroughputSpecification",(Option.mapx.warmThroughputSpecification~f:WarmThroughputSpecificationSummary.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwarmThroughputSpecification=(Option.map~f:WarmThroughputSpecificationSummary.of_xml)(Xml.childxml_arg0"warmThroughputSpecification")inletcapacitySpecification=(Option.map~f:CapacitySpecificationSummary.of_xml)(Xml.childxml_arg0"capacitySpecification")inletstatus=(Option.map~f:TableStatus.of_xml)(Xml.childxml_arg0"status")inletregion=(Option.map~f:Region.of_xml)(Xml.childxml_arg0"region")inmake?warmThroughputSpecification?capacitySpecification?status?region()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwarmThroughputSpecification=field_mapjson__"warmThroughputSpecification"WarmThroughputSpecificationSummary.of_jsoninletcapacitySpecification=field_mapjson__"capacitySpecification"CapacitySpecificationSummary.of_jsoninletstatus=field_mapjson__"status"TableStatus.of_jsoninletregion=field_mapjson__"region"Region.of_jsoninmake?warmThroughputSpecification?capacitySpecification?status?region()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The Region-specific settings of a multi-Region table in the specified Amazon Web Services Region. If the multi-Region table is using provisioned capacity and has optional auto scaling policies configured, note that the Region specific summary returns both read and write capacity settings. But only Region specific read capacity settings can be configured for a multi-Region table. In a multi-Region table, your write capacity units will be synced across all Amazon Web Services Regions to ensure that there is enough capacity to replicate write events across Regions."]moduleClusteringKeyList=structtypenonrect=ClusteringKey.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ClusteringKey.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:ClusteringKey.of_xml)letof_jsonj=list_of_json~kind:"ClusteringKeyList"~of_json:ClusteringKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleColumnDefinitionList=structtypenonrect=ColumnDefinition.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:ColumnDefinition.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:ColumnDefinition.of_xml)letof_jsonj=list_of_json~kind:"ColumnDefinitionList"~of_json:ColumnDefinition.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePartitionKeyList=structtypenonrect=PartitionKey.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: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_valuevendmoduleStaticColumnList=structtypenonrect=StaticColumn.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StaticColumn.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:StaticColumn.of_xml)letof_jsonj=list_of_json~kind:"StaticColumnList"~of_json:StaticColumn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleReplicaAutoScalingSpecification=structtypenonrect={region:Region.toption[@ocaml.doc"The Amazon Web Services Region."];autoScalingSpecification:AutoScalingSpecification.toption[@ocaml.doc"The auto scaling settings for a multi-Region table in the specified Amazon Web Services Region."]}letmake?region=fun?autoScalingSpecification->fun()->{region;autoScalingSpecification}letto_valuex=structure_to_value[("region",(Option.mapx.region~f:Region.to_value));("autoScalingSpecification",(Option.mapx.autoScalingSpecification~f:AutoScalingSpecification.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letautoScalingSpecification=(Option.map~f:AutoScalingSpecification.of_xml)(Xml.childxml_arg0"autoScalingSpecification")inletregion=(Option.map~f:Region.of_xml)(Xml.childxml_arg0"region")inmake?autoScalingSpecification?region()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letautoScalingSpecification=field_mapjson__"autoScalingSpecification"AutoScalingSpecification.of_jsoninletregion=field_mapjson__"region"Region.of_jsoninmake?autoScalingSpecification?region()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The auto scaling settings of a multi-Region table in the specified Amazon Web Services Region."]moduleReplicationGroupStatus=structtypenonrect={region:Region.toption[@ocaml.doc"The name of the Region that was added to the keyspace."];keyspaceStatus:KeyspaceStatus.toption[@ocaml.doc"The status of the keyspace."];tablesReplicationProgress:TablesReplicationProgress.toption[@ocaml.doc"This shows the replication progress of tables in the keyspace. The value is expressed as a percentage of the newly replicated tables with status Active compared to the total number of tables in the keyspace."]}letmake?region=fun?keyspaceStatus->fun?tablesReplicationProgress->fun()->{region;keyspaceStatus;tablesReplicationProgress}letto_valuex=structure_to_value[("region",(Option.mapx.region~f:Region.to_value));("keyspaceStatus",(Option.mapx.keyspaceStatus~f:KeyspaceStatus.to_value));("tablesReplicationProgress",(Option.mapx.tablesReplicationProgress~f:TablesReplicationProgress.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettablesReplicationProgress=(Option.map~f:TablesReplicationProgress.of_xml)(Xml.childxml_arg0"tablesReplicationProgress")inletkeyspaceStatus=(Option.map~f:KeyspaceStatus.of_xml)(Xml.childxml_arg0"keyspaceStatus")inletregion=(Option.map~f:Region.of_xml)(Xml.childxml_arg0"region")inmake?tablesReplicationProgress?keyspaceStatus?region()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettablesReplicationProgress=field_mapjson__"tablesReplicationProgress"TablesReplicationProgress.of_jsoninletkeyspaceStatus=field_mapjson__"keyspaceStatus"KeyspaceStatus.of_jsoninletregion=field_mapjson__"region"Region.of_jsoninmake?tablesReplicationProgress?keyspaceStatus?region()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This shows the summary status of the keyspace after a new Amazon Web Services Region was added."]moduleAccessDeniedException=structtypenonrect={message:String_.toption[@ocaml.doc"You don't have the required permissions to perform this operation. Verify your IAM permissions and try again."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You don't have sufficient access permissions to perform this action."]moduleConflictException=structtypenonrect={message:String_.toption[@ocaml.doc"The requested operation conflicts with the current state of the resource or another concurrent operation."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Amazon Keyspaces couldn't complete the requested action. This error may occur if you try to perform an action and the same or a different action is already in progress, or if you try to create a resource that already exists."]moduleInternalServerException=structtypenonrect={message:String_.toption[@ocaml.doc"An internal service error occurred. Retry your request. If the problem persists, contact Amazon Web Services Support."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Amazon Keyspaces was unable to fully process this request because of an internal server error."]moduleResourceNotFoundException=structtypenonrect={message:String_.toption[@ocaml.doc"The specified resource was not found. Verify the resource identifier and ensure the resource exists and is in an ACTIVE state."];resourceArn:ARN.toption[@ocaml.doc"The unique identifier in the format of Amazon Resource Name (ARN) for the resource couldn't be found."]}letmake?message=fun?resourceArn->fun()->{message;resourceArn}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("resourceArn",(Option.mapx.resourceArn~f:ARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"resourceArn")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?resourceArn?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_mapjson__"resourceArn"ARN.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?resourceArn?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The operation tried to access a keyspace, table, or type that doesn't exist. The resource might not be specified correctly, or its status might not be ACTIVE."]moduleServiceQuotaExceededException=structtypenonrect={message:String_.toption[@ocaml.doc"The requested operation would exceed the service quota for this resource. Review the service quotas and adjust your request accordingly."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The operation exceeded the service quota for this resource. For more information on service quotas, see Quotas in the Amazon Keyspaces Developer Guide."]moduleValidationException=structtypenonrect={message:String_.toption[@ocaml.doc"The request parameters are invalid or malformed. Review the API documentation and correct the request format."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The operation failed due to an invalid or malformed request."]moduleCapacitySpecification=structtypenonrect={throughputMode:ThroughputMode.t[@ocaml.doc"The read/write throughput capacity mode for a table. The options are: throughputMode:PAY_PER_REQUEST and throughputMode:PROVISIONED - Provisioned capacity mode requires readCapacityUnits and writeCapacityUnits as input. The default is throughput_mode:PAY_PER_REQUEST. For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide."];readCapacityUnits:CapacityUnits.toption[@ocaml.doc"The throughput capacity specified for read operations defined in read capacity units (RCUs)."];writeCapacityUnits:CapacityUnits.toption[@ocaml.doc"The throughput capacity specified for write operations defined in write capacity units (WCUs)."]}letcontext_="CapacitySpecification"letmake?readCapacityUnits=fun?writeCapacityUnits->fun~throughputMode->fun()->{readCapacityUnits;writeCapacityUnits;throughputMode}letto_valuex=structure_to_value[("throughputMode",(Some(ThroughputMode.to_valuex.throughputMode)));("readCapacityUnits",(Option.mapx.readCapacityUnits~f:CapacityUnits.to_value));("writeCapacityUnits",(Option.mapx.writeCapacityUnits~f:CapacityUnits.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwriteCapacityUnits=(Option.map~f:CapacityUnits.of_xml)(Xml.childxml_arg0"writeCapacityUnits")inletreadCapacityUnits=(Option.map~f:CapacityUnits.of_xml)(Xml.childxml_arg0"readCapacityUnits")inletthroughputMode=ThroughputMode.of_xml(Xml.child_exn~context:context_xml_arg0"throughputMode")inmake?writeCapacityUnits?readCapacityUnits~throughputMode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwriteCapacityUnits=field_mapjson__"writeCapacityUnits"CapacityUnits.of_jsoninletreadCapacityUnits=field_mapjson__"readCapacityUnits"CapacityUnits.of_jsoninletthroughputMode=field_map_exnjson__"throughputMode"ThroughputMode.of_jsoninmake?writeCapacityUnits?readCapacityUnits~throughputMode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Amazon Keyspaces has two read/write capacity modes for processing reads and writes on your tables: On-demand (default) Provisioned The read/write capacity mode that you choose controls how you are charged for read and write throughput and how table throughput capacity is managed. For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide."]moduleCdcSpecification=structtypenonrect={status:CdcStatus.t[@ocaml.doc"The status of the CDC stream. You can enable or disable a stream for a table."];viewType:ViewType.toption[@ocaml.doc"The view type specifies the changes Amazon Keyspaces records for each changed row in the stream. After you create the stream, you can't make changes to this selection. The options are: NEW_AND_OLD_IMAGES - both versions of the row, before and after the change. This is the default. NEW_IMAGE - the version of the row after the change. OLD_IMAGE - the version of the row before the change. KEYS_ONLY - the partition and clustering keys of the row that was changed."];tags:TagList.toption[@ocaml.doc"The tags (key-value pairs) that you want to apply to the stream."];propagateTags:CdcPropagateTags.toption[@ocaml.doc"Specifies that the stream inherits the tags from the table."]}letcontext_="CdcSpecification"letmake?viewType=fun?tags->fun?propagateTags->fun~status->fun()->{viewType;tags;propagateTags;status}letto_valuex=structure_to_value[("status",(Some(CdcStatus.to_valuex.status)));("viewType",(Option.mapx.viewType~f:ViewType.to_value));("tags",(Option.mapx.tags~f:TagList.to_value));("propagateTags",(Option.mapx.propagateTags~f:CdcPropagateTags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpropagateTags=(Option.map~f:CdcPropagateTags.of_xml)(Xml.childxml_arg0"propagateTags")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"tags")inletviewType=(Option.map~f:ViewType.of_xml)(Xml.childxml_arg0"viewType")inletstatus=CdcStatus.of_xml(Xml.child_exn~context:context_xml_arg0"status")inmake?propagateTags?tags?viewType~status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpropagateTags=field_mapjson__"propagateTags"CdcPropagateTags.of_jsoninlettags=field_mapjson__"tags"TagList.of_jsoninletviewType=field_mapjson__"viewType"ViewType.of_jsoninletstatus=field_map_exnjson__"status"CdcStatus.of_jsoninmake?propagateTags?tags?viewType~status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The settings for the CDC stream of a table. For more information about CDC streams, see Working with change data capture (CDC) streams in Amazon Keyspaces in the Amazon Keyspaces Developer Guide."]moduleClientSideTimestamps=structtypenonrect={status:ClientSideTimestampsStatus.t[@ocaml.doc"Shows how to enable client-side timestamps settings for the specified table."]}letcontext_="ClientSideTimestamps"letmake~status=fun()->{status}letto_valuex=structure_to_value[("status",(Some(ClientSideTimestampsStatus.to_valuex.status)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=ClientSideTimestampsStatus.of_xml(Xml.child_exn~context:context_xml_arg0"status")inmake~status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_map_exnjson__"status"ClientSideTimestampsStatus.of_jsoninmake~status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The client-side timestamp setting of the table. For more information, see How it works: Amazon Keyspaces client-side timestamps in the Amazon Keyspaces Developer Guide."]moduleDefaultTimeToLive=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:630720000)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for DefaultTimeToLive"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleEncryptionSpecification=structtypenonrect={type_:EncryptionType.t[@ocaml.doc"The encryption option specified for the table. You can choose one of the following KMS keys (KMS keys): type:AWS_OWNED_KMS_KEY - This key is owned by Amazon Keyspaces. type:CUSTOMER_MANAGED_KMS_KEY - This key is stored in your account and is created, owned, and managed by you. This option requires the kms_key_identifier of the KMS key in Amazon Resource Name (ARN) format as input. The default is type:AWS_OWNED_KMS_KEY. For more information, see Encryption at rest in the Amazon Keyspaces Developer Guide."];kmsKeyIdentifier:KmsKeyARN.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the customer managed KMS key, for example kms_key_identifier:ARN."]}letcontext_="EncryptionSpecification"letmake?kmsKeyIdentifier=fun~type_->fun()->{kmsKeyIdentifier;type_}letto_valuex=structure_to_value[("type",(Some(EncryptionType.to_valuex.type_)));("kmsKeyIdentifier",(Option.mapx.kmsKeyIdentifier~f:KmsKeyARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkmsKeyIdentifier=(Option.map~f:KmsKeyARN.of_xml)(Xml.childxml_arg0"kmsKeyIdentifier")inlettype_=EncryptionType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inmake?kmsKeyIdentifier~type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkmsKeyIdentifier=field_mapjson__"kmsKeyIdentifier"KmsKeyARN.of_jsoninlettype_=field_map_exnjson__"type"EncryptionType.of_jsoninmake?kmsKeyIdentifier~type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Amazon Keyspaces encrypts and decrypts the table data at rest transparently and integrates with Key Management Service for storing and managing the encryption key. You can choose one of the following KMS keys (KMS keys): Amazon Web Services owned key - This is the default encryption type. The key is owned by Amazon Keyspaces (no additional charge). Customer managed key - This key is stored in your account and is created, owned, and managed by you. You have full control over the customer managed key (KMS charges apply). For more information about encryption at rest in Amazon Keyspaces, see Encryption at rest in the Amazon Keyspaces Developer Guide. For more information about KMS, see KMS management service concepts in the Key Management Service Developer Guide."]modulePointInTimeRecovery=structtypenonrect={status:PointInTimeRecoveryStatus.t[@ocaml.doc"The options are: status=ENABLED status=DISABLED"]}letcontext_="PointInTimeRecovery"letmake~status=fun()->{status}letto_valuex=structure_to_value[("status",(Some(PointInTimeRecoveryStatus.to_valuex.status)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=PointInTimeRecoveryStatus.of_xml(Xml.child_exn~context:context_xml_arg0"status")inmake~status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_map_exnjson__"status"PointInTimeRecoveryStatus.of_jsoninmake~status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Point-in-time recovery (PITR) helps protect your Amazon Keyspaces tables from accidental write or delete operations by providing you continuous backups of your table data. For more information, see Point-in-time recovery in the Amazon Keyspaces Developer Guide."]moduleReplicaSpecificationList=structtypenonrect=ReplicaSpecification.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:ReplicaSpecification.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:ReplicaSpecification.of_xml)letof_jsonj=list_of_json~kind:"ReplicaSpecificationList"~of_json:ReplicaSpecification.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTimeToLive=structtypenonrect={status:TimeToLiveStatus.t[@ocaml.doc"Shows how to enable custom Time to Live (TTL) settings for the specified table."]}letcontext_="TimeToLive"letmake~status=fun()->{status}letto_valuex=structure_to_value[("status",(Some(TimeToLiveStatus.to_valuex.status)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=TimeToLiveStatus.of_xml(Xml.child_exn~context:context_xml_arg0"status")inmake~status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_map_exnjson__"status"TimeToLiveStatus.of_jsoninmake~status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Enable custom Time to Live (TTL) settings for rows and columns without setting a TTL default for the specified table. For more information, see Enabling TTL on tables in the Amazon Keyspaces Developer Guide."]moduleWarmThroughputSpecification=structtypenonrect={readUnitsPerSecond:WarmThroughputSpecificationReadUnitsPerSecondLong.toption[@ocaml.doc"The number of read capacity units per second to pre-warm the table for read capacity throughput. The minimum value is 1."];writeUnitsPerSecond:WarmThroughputSpecificationWriteUnitsPerSecondLong.toption[@ocaml.doc"The number of write capacity units per second to pre-warm the table for write capacity throughput. The minimum value is 1."]}letmake?readUnitsPerSecond=fun?writeUnitsPerSecond->fun()->{readUnitsPerSecond;writeUnitsPerSecond}letto_valuex=structure_to_value[("readUnitsPerSecond",(Option.mapx.readUnitsPerSecond~f:WarmThroughputSpecificationReadUnitsPerSecondLong.to_value));("writeUnitsPerSecond",(Option.mapx.writeUnitsPerSecond~f:WarmThroughputSpecificationWriteUnitsPerSecondLong.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwriteUnitsPerSecond=(Option.map~f:WarmThroughputSpecificationWriteUnitsPerSecondLong.of_xml)(Xml.childxml_arg0"writeUnitsPerSecond")inletreadUnitsPerSecond=(Option.map~f:WarmThroughputSpecificationReadUnitsPerSecondLong.of_xml)(Xml.childxml_arg0"readUnitsPerSecond")inmake?writeUnitsPerSecond?readUnitsPerSecond()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwriteUnitsPerSecond=field_mapjson__"writeUnitsPerSecond"WarmThroughputSpecificationWriteUnitsPerSecondLong.of_jsoninletreadUnitsPerSecond=field_mapjson__"readUnitsPerSecond"WarmThroughputSpecificationReadUnitsPerSecondLong.of_jsoninmake?writeUnitsPerSecond?readUnitsPerSecond()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the warm throughput settings for a table. Pre-warming a table by specifying warm throughput pre-provisions read and write capacity units to help avoid capacity exceeded exceptions and reduce latency when your table starts receiving traffic. For more information about pre-warming in Amazon Keyspaces, see Pre-warm a table in Amazon Keyspaces in the Amazon Keyspaces Developer Guide."]moduleReplicationSpecification=structtypenonrect={replicationStrategy:Rs.t[@ocaml.doc"The replicationStrategy of a keyspace, the required value is SINGLE_REGION or MULTI_REGION."];regionList:RegionList.toption[@ocaml.doc"The regionList contains the Amazon Web Services Regions where the keyspace is replicated in."]}letcontext_="ReplicationSpecification"letmake?regionList=fun~replicationStrategy->fun()->{regionList;replicationStrategy}letto_valuex=structure_to_value[("replicationStrategy",(Some(Rs.to_valuex.replicationStrategy)));("regionList",(Option.mapx.regionList~f:RegionList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letregionList=(Option.map~f:RegionList.of_xml)(Xml.childxml_arg0"regionList")inletreplicationStrategy=Rs.of_xml(Xml.child_exn~context:context_xml_arg0"replicationStrategy")inmake?regionList~replicationStrategy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letregionList=field_mapjson__"regionList"RegionList.of_jsoninletreplicationStrategy=field_map_exnjson__"replicationStrategy"Rs.of_jsoninmake?regionList~replicationStrategy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The replication specification of the keyspace includes: regionList - the Amazon Web Services Regions where the keyspace is replicated in. replicationStrategy - the required value is SINGLE_REGION or MULTI_REGION."]moduleNextToken=structtypenonrect=stringletcontext_="NextToken"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:"NextToken"jletto_json=simple_to_jsonto_valueendmoduleTypeNameList=structtypenonrect=TypeName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TypeName.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:TypeName.of_xml)letof_jsonj=list_of_json~kind:"TypeNameList"~of_json:TypeName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxResults=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 MaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleTableSummaryList=structtypenonrect=TableSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TableSummary.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:TableSummary.of_xml)letof_jsonj=list_of_json~kind:"TableSummaryList"~of_json:TableSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleKeyspaceSummaryList=structtypenonrect=KeyspaceSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:KeyspaceSummary.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:KeyspaceSummary.of_xml)letof_jsonj=list_of_json~kind:"KeyspaceSummaryList"~of_json:KeyspaceSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDepth=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 Depth"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleFieldList=structtypenonrect=FieldDefinition.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:FieldDefinition.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:FieldDefinition.of_xml)letof_jsonj=list_of_json~kind:"FieldList"~of_json:FieldDefinition.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTableNameList=structtypenonrect=TableName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TableName.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:TableName.of_xml)letof_jsonj=list_of_json~kind:"TableNameList"~of_json:TableName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTypeStatus=structtypenonrect=|ACTIVE|CREATING|DELETING|RESTORING|Non_static_idofstringletmakei=iletto_string=function|ACTIVE->"ACTIVE"|CREATING->"CREATING"|DELETING->"DELETING"|RESTORING->"RESTORING"|Non_static_ids->sletof_string=function|"ACTIVE"->ACTIVE|"CREATING"->CREATING|"DELETING"->DELETING|"RESTORING"->RESTORING|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 TypeStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TypeStatus"j)letto_json=simple_to_jsonto_valueendmoduleCdcSpecificationSummary=structtypenonrect={status:CdcStatus.toption[@ocaml.doc"The status of the CDC stream. Specifies if the table has a CDC stream."];viewType:ViewType.toption[@ocaml.doc"The view type specifies the changes Amazon Keyspaces records for each changed row in the stream. This setting can't be changed, after the stream has been created. The options are: NEW_AND_OLD_IMAGES - both versions of the row, before and after the change. This is the default. NEW_IMAGE - the version of the row after the change. OLD_IMAGE - the version of the row before the change. KEYS_ONLY - the partition and clustering keys of the row that was changed."]}letmake?status=fun?viewType->fun()->{status;viewType}letto_valuex=structure_to_value[("status",(Option.mapx.status~f:CdcStatus.to_value));("viewType",(Option.mapx.viewType~f:ViewType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letviewType=(Option.map~f:ViewType.of_xml)(Xml.childxml_arg0"viewType")inletstatus=(Option.map~f:CdcStatus.of_xml)(Xml.childxml_arg0"status")inmake?viewType?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letviewType=field_mapjson__"viewType"ViewType.of_jsoninletstatus=field_mapjson__"status"CdcStatus.of_jsoninmake?viewType?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The settings of the CDC stream of the table. For more information about CDC streams, see Working with change data capture (CDC) streams in Amazon Keyspaces in the Amazon Keyspaces Developer Guide."]moduleComment=structtypenonrect={message:String_.t[@ocaml.doc"An optional description of the table."]}letcontext_="Comment"letmake~message=fun()->{message}letto_valuex=structure_to_value[("message",(Some(String_.to_valuex.message)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=String_.of_xml(Xml.child_exn~context:context_xml_arg0"message")inmake~message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_map_exnjson__"message"String_.of_jsoninmake~message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An optional comment that describes the table."]modulePointInTimeRecoverySummary=structtypenonrect={status:PointInTimeRecoveryStatus.toption[@ocaml.doc"Shows if point-in-time recovery is enabled or disabled for the specified table."];earliestRestorableTimestamp:Timestamp.toption[@ocaml.doc"Specifies the earliest possible restore point of the table in ISO 8601 format."]}letmake?status=fun?earliestRestorableTimestamp->fun()->{status;earliestRestorableTimestamp}letto_valuex=structure_to_value[("status",(Option.mapx.status~f:PointInTimeRecoveryStatus.to_value));("earliestRestorableTimestamp",(Option.mapx.earliestRestorableTimestamp~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letearliestRestorableTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"earliestRestorableTimestamp")inletstatus=(Option.map~f:PointInTimeRecoveryStatus.of_xml)(Xml.childxml_arg0"status")inmake?earliestRestorableTimestamp?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letearliestRestorableTimestamp=field_mapjson__"earliestRestorableTimestamp"Timestamp.of_jsoninletstatus=field_mapjson__"status"PointInTimeRecoveryStatus.of_jsoninmake?earliestRestorableTimestamp?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The point-in-time recovery status of the specified table."]moduleReplicaSpecificationSummaryList=structtypenonrect=ReplicaSpecificationSummary.tlistletmakei=letopenResultinok_or_failwith(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:ReplicaSpecificationSummary.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:ReplicaSpecificationSummary.of_xml)letof_jsonj=list_of_json~kind:"ReplicaSpecificationSummaryList"~of_json:ReplicaSpecificationSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSchemaDefinition=structtypenonrect={allColumns:ColumnDefinitionList.t[@ocaml.doc"The regular columns of the table."];partitionKeys:PartitionKeyList.t[@ocaml.doc"The columns that are part of the partition key of the table ."];clusteringKeys:ClusteringKeyList.toption[@ocaml.doc"The columns that are part of the clustering key of the table."];staticColumns:StaticColumnList.toption[@ocaml.doc"The columns that have been defined as STATIC. Static columns store values that are shared by all rows in the same partition."]}letcontext_="SchemaDefinition"letmake?clusteringKeys=fun?staticColumns->fun~allColumns->fun~partitionKeys->fun()->{clusteringKeys;staticColumns;allColumns;partitionKeys}letto_valuex=structure_to_value[("allColumns",(Some(ColumnDefinitionList.to_valuex.allColumns)));("partitionKeys",(Some(PartitionKeyList.to_valuex.partitionKeys)));("clusteringKeys",(Option.mapx.clusteringKeys~f:ClusteringKeyList.to_value));("staticColumns",(Option.mapx.staticColumns~f:StaticColumnList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstaticColumns=(Option.map~f:StaticColumnList.of_xml)(Xml.childxml_arg0"staticColumns")inletclusteringKeys=(Option.map~f:ClusteringKeyList.of_xml)(Xml.childxml_arg0"clusteringKeys")inletpartitionKeys=PartitionKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"partitionKeys")inletallColumns=ColumnDefinitionList.of_xml(Xml.child_exn~context:context_xml_arg0"allColumns")inmake?staticColumns?clusteringKeys~partitionKeys~allColumns()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstaticColumns=field_mapjson__"staticColumns"StaticColumnList.of_jsoninletclusteringKeys=field_mapjson__"clusteringKeys"ClusteringKeyList.of_jsoninletpartitionKeys=field_map_exnjson__"partitionKeys"PartitionKeyList.of_jsoninletallColumns=field_map_exnjson__"allColumns"ColumnDefinitionList.of_jsoninmake?staticColumns?clusteringKeys~partitionKeys~allColumns()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the schema of the table."]moduleStreamArn=structtypenonrect=stringletcontext_="StreamArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:"arn:(aws[a-zA-Z0-9-]*):cassandra:.+.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"StreamArn"jletto_json=simple_to_jsonto_valueendmoduleReplicaAutoScalingSpecificationList=structtypenonrect=ReplicaAutoScalingSpecification.tlistletmakei=letopenResultinok_or_failwith(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:ReplicaAutoScalingSpecification.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:ReplicaAutoScalingSpecification.of_xml)letof_jsonj=list_of_json~kind:"ReplicaAutoScalingSpecificationList"~of_json:ReplicaAutoScalingSpecification.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleReplicationGroupStatusList=structtypenonrect=ReplicationGroupStatus.tlistletmakei=letopenResultinok_or_failwith(check_list_mini~min:2);iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ReplicationGroupStatus.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:ReplicationGroupStatus.of_xml)letof_jsonj=list_of_json~kind:"ReplicationGroupStatusList"~of_json:ReplicationGroupStatus.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUpdateTableResponse=structtypenonrect={resourceArn:ARN.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the modified table."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?resourceArn=fun()->{resourceArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`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[("resourceArn",(Option.mapx.resourceArn~f:ARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"resourceArn")inmake?resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_mapjson__"resourceArn"ARN.of_jsoninmake?resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds new columns to the table or updates one of the table's settings, for example capacity mode, auto scaling, encryption, point-in-time recovery, or ttl settings. Note that you can only update one specific table setting per update operation."]moduleUpdateTableRequest=structtypenonrect={keyspaceName:KeyspaceName.t[@ocaml.doc"The name of the keyspace the specified table is stored in."];tableName:TableName.t[@ocaml.doc"The name of the table."];addColumns:ColumnDefinitionList.toption[@ocaml.doc"For each column to be added to the specified table: name - The name of the column. type - An Amazon Keyspaces data type. For more information, see Data types in the Amazon Keyspaces Developer Guide."];capacitySpecification:CapacitySpecification.toption[@ocaml.doc"Modifies the read/write throughput capacity mode for the table. The options are: throughputMode:PAY_PER_REQUEST and throughputMode:PROVISIONED - Provisioned capacity mode requires readCapacityUnits and writeCapacityUnits as input. The default is throughput_mode:PAY_PER_REQUEST. For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide."];encryptionSpecification:EncryptionSpecification.toption[@ocaml.doc"Modifies the encryption settings of the table. You can choose one of the following KMS key (KMS key): type:AWS_OWNED_KMS_KEY - This key is owned by Amazon Keyspaces. type:CUSTOMER_MANAGED_KMS_KEY - This key is stored in your account and is created, owned, and managed by you. This option requires the kms_key_identifier of the KMS key in Amazon Resource Name (ARN) format as input. The default is AWS_OWNED_KMS_KEY. For more information, see Encryption at rest in the Amazon Keyspaces Developer Guide."];pointInTimeRecovery:PointInTimeRecovery.toption[@ocaml.doc"Modifies the pointInTimeRecovery settings of the table. The options are: status=ENABLED status=DISABLED If it's not specified, the default is status=DISABLED. For more information, see Point-in-time recovery in the Amazon Keyspaces Developer Guide."];ttl:TimeToLive.toption[@ocaml.doc"Modifies Time to Live custom settings for the table. The options are: status:enabled status:disabled The default is status:disabled. After ttl is enabled, you can't disable it for the table. For more information, see Expiring data by using Amazon Keyspaces Time to Live (TTL) in the Amazon Keyspaces Developer Guide."];defaultTimeToLive:DefaultTimeToLive.toption[@ocaml.doc"The default Time to Live setting in seconds for the table. For more information, see Setting the default TTL value for a table in the Amazon Keyspaces Developer Guide."];clientSideTimestamps:ClientSideTimestamps.toption[@ocaml.doc"Enables client-side timestamps for the table. By default, the setting is disabled. You can enable client-side timestamps with the following option: status: \"enabled\" Once client-side timestamps are enabled for a table, this setting cannot be disabled."];autoScalingSpecification:AutoScalingSpecification.toption[@ocaml.doc"The optional auto scaling settings to update for a table in provisioned capacity mode. Specifies if the service can manage throughput capacity of a provisioned table automatically on your behalf. Amazon Keyspaces auto scaling helps you provision throughput capacity for variable workloads efficiently by increasing and decreasing your table's read and write capacity automatically in response to application traffic. If auto scaling is already enabled for the table, you can use UpdateTable to update the minimum and maximum values or the auto scaling policy settings independently. For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide."];replicaSpecifications:ReplicaSpecificationList.toption[@ocaml.doc"The Region specific settings of a multi-Regional table."];cdcSpecification:CdcSpecification.toption[@ocaml.doc"The CDC stream settings of the table."];warmThroughputSpecification:WarmThroughputSpecification.toption[@ocaml.doc"Modifies the warm throughput settings for the table. You can update the read and write capacity units to adjust the pre-provisioned throughput."]}letcontext_="UpdateTableRequest"letmake?addColumns=fun?capacitySpecification->fun?encryptionSpecification->fun?pointInTimeRecovery->fun?ttl->fun?defaultTimeToLive->fun?clientSideTimestamps->fun?autoScalingSpecification->fun?replicaSpecifications->fun?cdcSpecification->fun?warmThroughputSpecification->fun~keyspaceName->fun~tableName->fun()->{addColumns;capacitySpecification;encryptionSpecification;pointInTimeRecovery;ttl;defaultTimeToLive;clientSideTimestamps;autoScalingSpecification;replicaSpecifications;cdcSpecification;warmThroughputSpecification;keyspaceName;tableName}letto_valuex=structure_to_value[("keyspaceName",(Some(KeyspaceName.to_valuex.keyspaceName)));("tableName",(Some(TableName.to_valuex.tableName)));("addColumns",(Option.mapx.addColumns~f:ColumnDefinitionList.to_value));("capacitySpecification",(Option.mapx.capacitySpecification~f:CapacitySpecification.to_value));("encryptionSpecification",(Option.mapx.encryptionSpecification~f:EncryptionSpecification.to_value));("pointInTimeRecovery",(Option.mapx.pointInTimeRecovery~f:PointInTimeRecovery.to_value));("ttl",(Option.mapx.ttl~f:TimeToLive.to_value));("defaultTimeToLive",(Option.mapx.defaultTimeToLive~f:DefaultTimeToLive.to_value));("clientSideTimestamps",(Option.mapx.clientSideTimestamps~f:ClientSideTimestamps.to_value));("autoScalingSpecification",(Option.mapx.autoScalingSpecification~f:AutoScalingSpecification.to_value));("replicaSpecifications",(Option.mapx.replicaSpecifications~f:ReplicaSpecificationList.to_value));("cdcSpecification",(Option.mapx.cdcSpecification~f:CdcSpecification.to_value));("warmThroughputSpecification",(Option.mapx.warmThroughputSpecification~f:WarmThroughputSpecification.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwarmThroughputSpecification=(Option.map~f:WarmThroughputSpecification.of_xml)(Xml.childxml_arg0"warmThroughputSpecification")inletcdcSpecification=(Option.map~f:CdcSpecification.of_xml)(Xml.childxml_arg0"cdcSpecification")inletreplicaSpecifications=(Option.map~f:ReplicaSpecificationList.of_xml)(Xml.childxml_arg0"replicaSpecifications")inletautoScalingSpecification=(Option.map~f:AutoScalingSpecification.of_xml)(Xml.childxml_arg0"autoScalingSpecification")inletclientSideTimestamps=(Option.map~f:ClientSideTimestamps.of_xml)(Xml.childxml_arg0"clientSideTimestamps")inletdefaultTimeToLive=(Option.map~f:DefaultTimeToLive.of_xml)(Xml.childxml_arg0"defaultTimeToLive")inletttl=(Option.map~f:TimeToLive.of_xml)(Xml.childxml_arg0"ttl")inletpointInTimeRecovery=(Option.map~f:PointInTimeRecovery.of_xml)(Xml.childxml_arg0"pointInTimeRecovery")inletencryptionSpecification=(Option.map~f:EncryptionSpecification.of_xml)(Xml.childxml_arg0"encryptionSpecification")inletcapacitySpecification=(Option.map~f:CapacitySpecification.of_xml)(Xml.childxml_arg0"capacitySpecification")inletaddColumns=(Option.map~f:ColumnDefinitionList.of_xml)(Xml.childxml_arg0"addColumns")inlettableName=TableName.of_xml(Xml.child_exn~context:context_xml_arg0"tableName")inletkeyspaceName=KeyspaceName.of_xml(Xml.child_exn~context:context_xml_arg0"keyspaceName")inmake?warmThroughputSpecification?cdcSpecification?replicaSpecifications?autoScalingSpecification?clientSideTimestamps?defaultTimeToLive?ttl?pointInTimeRecovery?encryptionSpecification?capacitySpecification?addColumns~tableName~keyspaceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwarmThroughputSpecification=field_mapjson__"warmThroughputSpecification"WarmThroughputSpecification.of_jsoninletcdcSpecification=field_mapjson__"cdcSpecification"CdcSpecification.of_jsoninletreplicaSpecifications=field_mapjson__"replicaSpecifications"ReplicaSpecificationList.of_jsoninletautoScalingSpecification=field_mapjson__"autoScalingSpecification"AutoScalingSpecification.of_jsoninletclientSideTimestamps=field_mapjson__"clientSideTimestamps"ClientSideTimestamps.of_jsoninletdefaultTimeToLive=field_mapjson__"defaultTimeToLive"DefaultTimeToLive.of_jsoninletttl=field_mapjson__"ttl"TimeToLive.of_jsoninletpointInTimeRecovery=field_mapjson__"pointInTimeRecovery"PointInTimeRecovery.of_jsoninletencryptionSpecification=field_mapjson__"encryptionSpecification"EncryptionSpecification.of_jsoninletcapacitySpecification=field_mapjson__"capacitySpecification"CapacitySpecification.of_jsoninletaddColumns=field_mapjson__"addColumns"ColumnDefinitionList.of_jsoninlettableName=field_map_exnjson__"tableName"TableName.of_jsoninletkeyspaceName=field_map_exnjson__"keyspaceName"KeyspaceName.of_jsoninmake?warmThroughputSpecification?cdcSpecification?replicaSpecifications?autoScalingSpecification?clientSideTimestamps?defaultTimeToLive?ttl?pointInTimeRecovery?encryptionSpecification?capacitySpecification?addColumns~tableName~keyspaceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds new columns to the table or updates one of the table's settings, for example capacity mode, auto scaling, encryption, point-in-time recovery, or ttl settings. Note that you can only update one specific table setting per update operation."]moduleUpdateKeyspaceResponse=structtypenonrect={resourceArn:ARN.toption[@ocaml.doc"The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN)."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?resourceArn=fun()->{resourceArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`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[("resourceArn",(Option.mapx.resourceArn~f:ARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"resourceArn")inmake?resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_mapjson__"resourceArn"ARN.of_jsoninmake?resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds a new Amazon Web Services Region to the keyspace. You can add a new Region to a keyspace that is either a single or a multi-Region keyspace. Amazon Keyspaces is going to replicate all tables in the keyspace to the new Region. To successfully replicate all tables to the new Region, they must use client-side timestamps for conflict resolution. To enable client-side timestamps, specify clientSideTimestamps.status = enabled when invoking the API. For more information about client-side timestamps, see Client-side timestamps in Amazon Keyspaces in the Amazon Keyspaces Developer Guide. To add a Region to a keyspace using the UpdateKeyspace API, the IAM principal needs permissions for the following IAM actions: cassandra:Alter cassandra:AlterMultiRegionResource cassandra:Create cassandra:CreateMultiRegionResource cassandra:Select cassandra:SelectMultiRegionResource cassandra:Modify cassandra:ModifyMultiRegionResource If the keyspace contains a table that is configured in provisioned mode with auto scaling enabled, the following additional IAM actions need to be allowed. application-autoscaling:RegisterScalableTarget application-autoscaling:DeregisterScalableTarget application-autoscaling:DescribeScalableTargets application-autoscaling:PutScalingPolicy application-autoscaling:DescribeScalingPolicies To use the UpdateKeyspace API, the IAM principal also needs permissions to create a service-linked role with the following elements: iam:CreateServiceLinkedRole - The action the principal can perform. arn:aws:iam::*:role/aws-service-role/replication.cassandra.amazonaws.com/AWSServiceRoleForKeyspacesReplication - The resource that the action can be performed on. iam:AWSServiceName: replication.cassandra.amazonaws.com - The only Amazon Web Services service that this role can be attached to is Amazon Keyspaces. For more information, see Configure the IAM permissions required to add an Amazon Web Services Region to a keyspace in the Amazon Keyspaces Developer Guide."]moduleUpdateKeyspaceRequest=structtypenonrect={keyspaceName:KeyspaceName.t[@ocaml.doc"The name of the keyspace."];replicationSpecification:ReplicationSpecification.t;clientSideTimestamps:ClientSideTimestamps.toption}letcontext_="UpdateKeyspaceRequest"letmake?clientSideTimestamps=fun~keyspaceName->fun~replicationSpecification->fun()->{clientSideTimestamps;keyspaceName;replicationSpecification}letto_valuex=structure_to_value[("keyspaceName",(Some(KeyspaceName.to_valuex.keyspaceName)));("replicationSpecification",(Some(ReplicationSpecification.to_valuex.replicationSpecification)));("clientSideTimestamps",(Option.mapx.clientSideTimestamps~f:ClientSideTimestamps.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientSideTimestamps=(Option.map~f:ClientSideTimestamps.of_xml)(Xml.childxml_arg0"clientSideTimestamps")inletreplicationSpecification=ReplicationSpecification.of_xml(Xml.child_exn~context:context_xml_arg0"replicationSpecification")inletkeyspaceName=KeyspaceName.of_xml(Xml.child_exn~context:context_xml_arg0"keyspaceName")inmake?clientSideTimestamps~replicationSpecification~keyspaceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientSideTimestamps=field_mapjson__"clientSideTimestamps"ClientSideTimestamps.of_jsoninletreplicationSpecification=field_map_exnjson__"replicationSpecification"ReplicationSpecification.of_jsoninletkeyspaceName=field_map_exnjson__"keyspaceName"KeyspaceName.of_jsoninmake?clientSideTimestamps~replicationSpecification~keyspaceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds a new Amazon Web Services Region to the keyspace. You can add a new Region to a keyspace that is either a single or a multi-Region keyspace. Amazon Keyspaces is going to replicate all tables in the keyspace to the new Region. To successfully replicate all tables to the new Region, they must use client-side timestamps for conflict resolution. To enable client-side timestamps, specify clientSideTimestamps.status = enabled when invoking the API. For more information about client-side timestamps, see Client-side timestamps in Amazon Keyspaces in the Amazon Keyspaces Developer Guide. To add a Region to a keyspace using the UpdateKeyspace API, the IAM principal needs permissions for the following IAM actions: cassandra:Alter cassandra:AlterMultiRegionResource cassandra:Create cassandra:CreateMultiRegionResource cassandra:Select cassandra:SelectMultiRegionResource cassandra:Modify cassandra:ModifyMultiRegionResource If the keyspace contains a table that is configured in provisioned mode with auto scaling enabled, the following additional IAM actions need to be allowed. application-autoscaling:RegisterScalableTarget application-autoscaling:DeregisterScalableTarget application-autoscaling:DescribeScalableTargets application-autoscaling:PutScalingPolicy application-autoscaling:DescribeScalingPolicies To use the UpdateKeyspace API, the IAM principal also needs permissions to create a service-linked role with the following elements: iam:CreateServiceLinkedRole - The action the principal can perform. arn:aws:iam::*:role/aws-service-role/replication.cassandra.amazonaws.com/AWSServiceRoleForKeyspacesReplication - The resource that the action can be performed on. iam:AWSServiceName: replication.cassandra.amazonaws.com - The only Amazon Web Services service that this role can be attached to is Amazon Keyspaces. For more information, see Configure the IAM permissions required to add an Amazon Web Services Region to a keyspace in the Amazon Keyspaces Developer Guide."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`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 Amazon Keyspaces resource."]moduleUntagResourceRequest=structtypenonrect={resourceArn:ARN.t[@ocaml.doc"The Amazon Keyspaces resource that the tags will be removed from. This value is an Amazon Resource Name (ARN)."];tags:TagList.t[@ocaml.doc"A list of existing tags to be removed from the Amazon Keyspaces resource."]}letcontext_="UntagResourceRequest"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("resourceArn",(Some(ARN.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=ARN.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"ARN.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the association of tags from a Amazon Keyspaces resource."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`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"Associates a set of tags with a Amazon Keyspaces resource. You can then activate these user-defined tags so that they appear on the Cost Management Console for cost allocation tracking. For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide. For IAM policy examples that show how to control access to Amazon Keyspaces resources based on tags, see Amazon Keyspaces resource access based on tags in the Amazon Keyspaces Developer Guide."]moduleTagResourceRequest=structtypenonrect={resourceArn:ARN.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon Keyspaces resource to which to add tags."];tags:TagList.t[@ocaml.doc"The tags to be assigned to the Amazon Keyspaces resource."]}letcontext_="TagResourceRequest"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("resourceArn",(Some(ARN.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=ARN.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"ARN.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates a set of tags with a Amazon Keyspaces resource. You can then activate these user-defined tags so that they appear on the Cost Management Console for cost allocation tracking. For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide. For IAM policy examples that show how to control access to Amazon Keyspaces resources based on tags, see Amazon Keyspaces resource access based on tags in the Amazon Keyspaces Developer Guide."]moduleRestoreTableResponse=structtypenonrect={restoredTableARN:ARN.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the restored table."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?restoredTableARN=fun()->{restoredTableARN}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`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[("restoredTableARN",(Option.mapx.restoredTableARN~f:ARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrestoredTableARN=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"restoredTableARN")inmake?restoredTableARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrestoredTableARN=field_mapjson__"restoredTableARN"ARN.of_jsoninmake?restoredTableARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Restores the table to the specified point in time within the earliest_restorable_timestamp and the current time. For more information about restore points, see Time window for PITR continuous backups in the Amazon Keyspaces Developer Guide. Any number of users can execute up to 4 concurrent restores (any type of restore) in a given account. When you restore using point in time recovery, Amazon Keyspaces restores your source table's schema and data to the state based on the selected timestamp (day:hour:minute:second) to a new table. The Time to Live (TTL) settings are also restored to the state based on the selected timestamp. In addition to the table's schema, data, and TTL settings, RestoreTable restores the capacity mode, auto scaling settings, encryption settings, and point-in-time recovery settings from the source table. Unlike the table's schema data and TTL settings, which are restored based on the selected timestamp, these settings are always restored based on the table's settings as of the current time or when the table was deleted. You can also overwrite these settings during restore: Read/write capacity mode Provisioned throughput capacity units Auto scaling settings Point-in-time (PITR) settings Tags For more information, see PITR restore settings in the Amazon Keyspaces Developer Guide. Note that the following settings are not restored, and you must configure them manually for the new table: Identity and Access Management (IAM) policies Amazon CloudWatch metrics and alarms"]moduleRestoreTableRequest=structtypenonrect={sourceKeyspaceName:KeyspaceName.t[@ocaml.doc"The keyspace name of the source table."];sourceTableName:TableName.t[@ocaml.doc"The name of the source table."];targetKeyspaceName:KeyspaceName.t[@ocaml.doc"The name of the target keyspace."];targetTableName:TableName.t[@ocaml.doc"The name of the target table."];restoreTimestamp:Timestamp.toption[@ocaml.doc"The restore timestamp in ISO 8601 format."];capacitySpecificationOverride:CapacitySpecification.toption[@ocaml.doc"Specifies the read/write throughput capacity mode for the target table. The options are: throughputMode:PAY_PER_REQUEST throughputMode:PROVISIONED - Provisioned capacity mode requires readCapacityUnits and writeCapacityUnits as input. The default is throughput_mode:PAY_PER_REQUEST. For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide."];encryptionSpecificationOverride:EncryptionSpecification.toption[@ocaml.doc"Specifies the encryption settings for the target table. You can choose one of the following KMS key (KMS key): type:AWS_OWNED_KMS_KEY - This key is owned by Amazon Keyspaces. type:CUSTOMER_MANAGED_KMS_KEY - This key is stored in your account and is created, owned, and managed by you. This option requires the kms_key_identifier of the KMS key in Amazon Resource Name (ARN) format as input. The default is type:AWS_OWNED_KMS_KEY. For more information, see Encryption at rest in the Amazon Keyspaces Developer Guide."];pointInTimeRecoveryOverride:PointInTimeRecovery.toption[@ocaml.doc"Specifies the pointInTimeRecovery settings for the target table. The options are: status=ENABLED status=DISABLED If it's not specified, the default is status=DISABLED. For more information, see Point-in-time recovery in the Amazon Keyspaces Developer Guide."];tagsOverride:TagList.toption[@ocaml.doc"A list of key-value pair tags to be attached to the restored table. For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide."];autoScalingSpecification:AutoScalingSpecification.toption[@ocaml.doc"The optional auto scaling settings for the restored table in provisioned capacity mode. Specifies if the service can manage throughput capacity of a provisioned table automatically on your behalf. Amazon Keyspaces auto scaling helps you provision throughput capacity for variable workloads efficiently by increasing and decreasing your table's read and write capacity automatically in response to application traffic. For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide."];replicaSpecifications:ReplicaSpecificationList.toption[@ocaml.doc"The optional Region specific settings of a multi-Regional table."]}letcontext_="RestoreTableRequest"letmake?restoreTimestamp=fun?capacitySpecificationOverride->fun?encryptionSpecificationOverride->fun?pointInTimeRecoveryOverride->fun?tagsOverride->fun?autoScalingSpecification->fun?replicaSpecifications->fun~sourceKeyspaceName->fun~sourceTableName->fun~targetKeyspaceName->fun~targetTableName->fun()->{restoreTimestamp;capacitySpecificationOverride;encryptionSpecificationOverride;pointInTimeRecoveryOverride;tagsOverride;autoScalingSpecification;replicaSpecifications;sourceKeyspaceName;sourceTableName;targetKeyspaceName;targetTableName}letto_valuex=structure_to_value[("sourceKeyspaceName",(Some(KeyspaceName.to_valuex.sourceKeyspaceName)));("sourceTableName",(Some(TableName.to_valuex.sourceTableName)));("targetKeyspaceName",(Some(KeyspaceName.to_valuex.targetKeyspaceName)));("targetTableName",(Some(TableName.to_valuex.targetTableName)));("restoreTimestamp",(Option.mapx.restoreTimestamp~f:Timestamp.to_value));("capacitySpecificationOverride",(Option.mapx.capacitySpecificationOverride~f:CapacitySpecification.to_value));("encryptionSpecificationOverride",(Option.mapx.encryptionSpecificationOverride~f:EncryptionSpecification.to_value));("pointInTimeRecoveryOverride",(Option.mapx.pointInTimeRecoveryOverride~f:PointInTimeRecovery.to_value));("tagsOverride",(Option.mapx.tagsOverride~f:TagList.to_value));("autoScalingSpecification",(Option.mapx.autoScalingSpecification~f:AutoScalingSpecification.to_value));("replicaSpecifications",(Option.mapx.replicaSpecifications~f:ReplicaSpecificationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreplicaSpecifications=(Option.map~f:ReplicaSpecificationList.of_xml)(Xml.childxml_arg0"replicaSpecifications")inletautoScalingSpecification=(Option.map~f:AutoScalingSpecification.of_xml)(Xml.childxml_arg0"autoScalingSpecification")inlettagsOverride=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"tagsOverride")inletpointInTimeRecoveryOverride=(Option.map~f:PointInTimeRecovery.of_xml)(Xml.childxml_arg0"pointInTimeRecoveryOverride")inletencryptionSpecificationOverride=(Option.map~f:EncryptionSpecification.of_xml)(Xml.childxml_arg0"encryptionSpecificationOverride")inletcapacitySpecificationOverride=(Option.map~f:CapacitySpecification.of_xml)(Xml.childxml_arg0"capacitySpecificationOverride")inletrestoreTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"restoreTimestamp")inlettargetTableName=TableName.of_xml(Xml.child_exn~context:context_xml_arg0"targetTableName")inlettargetKeyspaceName=KeyspaceName.of_xml(Xml.child_exn~context:context_xml_arg0"targetKeyspaceName")inletsourceTableName=TableName.of_xml(Xml.child_exn~context:context_xml_arg0"sourceTableName")inletsourceKeyspaceName=KeyspaceName.of_xml(Xml.child_exn~context:context_xml_arg0"sourceKeyspaceName")inmake?replicaSpecifications?autoScalingSpecification?tagsOverride?pointInTimeRecoveryOverride?encryptionSpecificationOverride?capacitySpecificationOverride?restoreTimestamp~targetTableName~targetKeyspaceName~sourceTableName~sourceKeyspaceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreplicaSpecifications=field_mapjson__"replicaSpecifications"ReplicaSpecificationList.of_jsoninletautoScalingSpecification=field_mapjson__"autoScalingSpecification"AutoScalingSpecification.of_jsoninlettagsOverride=field_mapjson__"tagsOverride"TagList.of_jsoninletpointInTimeRecoveryOverride=field_mapjson__"pointInTimeRecoveryOverride"PointInTimeRecovery.of_jsoninletencryptionSpecificationOverride=field_mapjson__"encryptionSpecificationOverride"EncryptionSpecification.of_jsoninletcapacitySpecificationOverride=field_mapjson__"capacitySpecificationOverride"CapacitySpecification.of_jsoninletrestoreTimestamp=field_mapjson__"restoreTimestamp"Timestamp.of_jsoninlettargetTableName=field_map_exnjson__"targetTableName"TableName.of_jsoninlettargetKeyspaceName=field_map_exnjson__"targetKeyspaceName"KeyspaceName.of_jsoninletsourceTableName=field_map_exnjson__"sourceTableName"TableName.of_jsoninletsourceKeyspaceName=field_map_exnjson__"sourceKeyspaceName"KeyspaceName.of_jsoninmake?replicaSpecifications?autoScalingSpecification?tagsOverride?pointInTimeRecoveryOverride?encryptionSpecificationOverride?capacitySpecificationOverride?restoreTimestamp~targetTableName~targetKeyspaceName~sourceTableName~sourceKeyspaceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Restores the table to the specified point in time within the earliest_restorable_timestamp and the current time. For more information about restore points, see Time window for PITR continuous backups in the Amazon Keyspaces Developer Guide. Any number of users can execute up to 4 concurrent restores (any type of restore) in a given account. When you restore using point in time recovery, Amazon Keyspaces restores your source table's schema and data to the state based on the selected timestamp (day:hour:minute:second) to a new table. The Time to Live (TTL) settings are also restored to the state based on the selected timestamp. In addition to the table's schema, data, and TTL settings, RestoreTable restores the capacity mode, auto scaling settings, encryption settings, and point-in-time recovery settings from the source table. Unlike the table's schema data and TTL settings, which are restored based on the selected timestamp, these settings are always restored based on the table's settings as of the current time or when the table was deleted. You can also overwrite these settings during restore: Read/write capacity mode Provisioned throughput capacity units Auto scaling settings Point-in-time (PITR) settings Tags For more information, see PITR restore settings in the Amazon Keyspaces Developer Guide. Note that the following settings are not restored, and you must configure them manually for the new table: Identity and Access Management (IAM) policies Amazon CloudWatch metrics and alarms"]moduleListTypesResponse=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"The pagination token. To resume pagination, provide the NextToken value as an argument of a subsequent API invocation."];types:TypeNameList.toption[@ocaml.doc"The list of types contained in the specified keyspace."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?types->fun()->{nextToken;types}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("types",(Option.mapx.types~f:TypeNameList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettypes=(Option.map~f:TypeNameList.of_xml)(Xml.childxml_arg0"types")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?types?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettypes=field_mapjson__"types"TypeNameList.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninmake?types?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The ListTypes operation returns a list of types for a specified keyspace. To read keyspace metadata using ListTypes, the IAM principal needs Select action permissions for the system keyspace. To configure the required permissions, see Permissions to view a UDT in the Amazon Keyspaces Developer Guide."]moduleListTypesRequest=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"The pagination token. To resume pagination, provide the NextToken value as an argument of a subsequent API invocation."];maxResults:MaxResults.toption[@ocaml.doc"The total number of types to return in the output. If the total number of types available is more than the value specified, a NextToken is provided in the output. To resume pagination, provide the NextToken value as an argument of a subsequent API invocation."];keyspaceName:KeyspaceName.t[@ocaml.doc"The name of the keyspace that contains the listed types."]}letcontext_="ListTypesRequest"letmake?nextToken=fun?maxResults->fun~keyspaceName->fun()->{nextToken;maxResults;keyspaceName}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("keyspaceName",(Some(KeyspaceName.to_valuex.keyspaceName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyspaceName=KeyspaceName.of_xml(Xml.child_exn~context:context_xml_arg0"keyspaceName")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake~keyspaceName?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyspaceName=field_map_exnjson__"keyspaceName"KeyspaceName.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninmake~keyspaceName?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The ListTypes operation returns a list of types for a specified keyspace. To read keyspace metadata using ListTypes, the IAM principal needs Select action permissions for the system keyspace. To configure the required permissions, see Permissions to view a UDT in the Amazon Keyspaces Developer Guide."]moduleListTagsForResourceResponse=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"A token to specify where to start paginating. This is the NextToken from a previously truncated response."];tags:TagList.toption[@ocaml.doc"A list of tags."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?tags->fun()->{nextToken;tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"tags")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?tags?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagList.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninmake?tags?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of all tags associated with the specified Amazon Keyspaces resource. To read keyspace metadata using ListTagsForResource, the IAM principal needs Select action permissions for the specified resource and the system keyspace."]moduleListTagsForResourceRequest=structtypenonrect={resourceArn:ARN.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon Keyspaces resource."];nextToken:NextToken.toption[@ocaml.doc"The pagination token. To resume pagination, provide the NextToken value as argument of a subsequent API invocation."];maxResults:MaxResults.toption[@ocaml.doc"The total number of tags to return in the output. If the total number of tags available is more than the value specified, a NextToken is provided in the output. To resume pagination, provide the NextToken value as an argument of a subsequent API invocation."]}letcontext_="ListTagsForResourceRequest"letmake?nextToken=fun?maxResults->fun~resourceArn->fun()->{nextToken;maxResults;resourceArn}letto_valuex=structure_to_value[("resourceArn",(Some(ARN.to_valuex.resourceArn)));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletresourceArn=ARN.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake?maxResults?nextToken~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"ARN.of_jsoninmake?maxResults?nextToken~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of all tags associated with the specified Amazon Keyspaces resource. To read keyspace metadata using ListTagsForResource, the IAM principal needs Select action permissions for the specified resource and the system keyspace."]moduleListTablesResponse=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"A token to specify where to start paginating. This is the NextToken from a previously truncated response."];tables:TableSummaryList.toption[@ocaml.doc"A list of tables."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?tables->fun()->{nextToken;tables}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("tables",(Option.mapx.tables~f:TableSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettables=(Option.map~f:TableSummaryList.of_xml)(Xml.childxml_arg0"tables")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?tables?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettables=field_mapjson__"tables"TableSummaryList.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninmake?tables?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The ListTables operation returns a list of tables for a specified keyspace. To read keyspace metadata using ListTables, the IAM principal needs Select action permissions for the system keyspace."]moduleListTablesRequest=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"The pagination token. To resume pagination, provide the NextToken value as an argument of a subsequent API invocation."];maxResults:MaxResults.toption[@ocaml.doc"The total number of tables to return in the output. If the total number of tables available is more than the value specified, a NextToken is provided in the output. To resume pagination, provide the NextToken value as an argument of a subsequent API invocation."];keyspaceName:KeyspaceName.t[@ocaml.doc"The name of the keyspace."]}letcontext_="ListTablesRequest"letmake?nextToken=fun?maxResults->fun~keyspaceName->fun()->{nextToken;maxResults;keyspaceName}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("keyspaceName",(Some(KeyspaceName.to_valuex.keyspaceName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyspaceName=KeyspaceName.of_xml(Xml.child_exn~context:context_xml_arg0"keyspaceName")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake~keyspaceName?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyspaceName=field_map_exnjson__"keyspaceName"KeyspaceName.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninmake~keyspaceName?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The ListTables operation returns a list of tables for a specified keyspace. To read keyspace metadata using ListTables, the IAM principal needs Select action permissions for the system keyspace."]moduleListKeyspacesResponse=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"A token to specify where to start paginating. This is the NextToken from a previously truncated response."];keyspaces:KeyspaceSummaryList.toption[@ocaml.doc"A list of keyspaces."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?keyspaces->fun()->{nextToken;keyspaces}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("keyspaces",(Option.mapx.keyspaces~f:KeyspaceSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyspaces=(Option.map~f:KeyspaceSummaryList.of_xml)(Xml.childxml_arg0"keyspaces")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?keyspaces?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyspaces=field_mapjson__"keyspaces"KeyspaceSummaryList.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninmake?keyspaces?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The ListKeyspaces operation returns a list of keyspaces."]moduleListKeyspacesRequest=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"The pagination token. To resume pagination, provide the NextToken value as argument of a subsequent API invocation."];maxResults:MaxResults.toption[@ocaml.doc"The total number of keyspaces to return in the output. If the total number of keyspaces available is more than the value specified, a NextToken is provided in the output. To resume pagination, provide the NextToken value as an argument of a subsequent API invocation."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The ListKeyspaces operation returns a list of keyspaces."]moduleGetTypeResponse=structtypenonrect={keyspaceName:KeyspaceName.toption[@ocaml.doc"The name of the keyspace that contains this type."];typeName:TypeName.toption[@ocaml.doc"The name of the type."];fieldDefinitions:FieldList.toption[@ocaml.doc"The names and types that define this type."];lastModifiedTimestamp:Timestamp.toption[@ocaml.doc"The timestamp that shows when this type was last modified."];status:TypeStatus.toption[@ocaml.doc"The status of this type."];directReferringTables:TableNameList.toption[@ocaml.doc"The tables that use this type."];directParentTypes:TypeNameList.toption[@ocaml.doc"The types that use this type."];maxNestingDepth:Depth.toption[@ocaml.doc"The level of nesting implemented for this type."];keyspaceArn:ARN.toption[@ocaml.doc"The unique identifier of the keyspace that contains this type in the format of an Amazon Resource Name (ARN)."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?keyspaceName=fun?typeName->fun?fieldDefinitions->fun?lastModifiedTimestamp->fun?status->fun?directReferringTables->fun?directParentTypes->fun?maxNestingDepth->fun?keyspaceArn->fun()->{keyspaceName;typeName;fieldDefinitions;lastModifiedTimestamp;status;directReferringTables;directParentTypes;maxNestingDepth;keyspaceArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.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[("keyspaceName",(Option.mapx.keyspaceName~f:KeyspaceName.to_value));("typeName",(Option.mapx.typeName~f:TypeName.to_value));("fieldDefinitions",(Option.mapx.fieldDefinitions~f:FieldList.to_value));("lastModifiedTimestamp",(Option.mapx.lastModifiedTimestamp~f:Timestamp.to_value));("status",(Option.mapx.status~f:TypeStatus.to_value));("directReferringTables",(Option.mapx.directReferringTables~f:TableNameList.to_value));("directParentTypes",(Option.mapx.directParentTypes~f:TypeNameList.to_value));("maxNestingDepth",(Option.mapx.maxNestingDepth~f:Depth.to_value));("keyspaceArn",(Option.mapx.keyspaceArn~f:ARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyspaceArn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"keyspaceArn")inletmaxNestingDepth=(Option.map~f:Depth.of_xml)(Xml.childxml_arg0"maxNestingDepth")inletdirectParentTypes=(Option.map~f:TypeNameList.of_xml)(Xml.childxml_arg0"directParentTypes")inletdirectReferringTables=(Option.map~f:TableNameList.of_xml)(Xml.childxml_arg0"directReferringTables")inletstatus=(Option.map~f:TypeStatus.of_xml)(Xml.childxml_arg0"status")inletlastModifiedTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"lastModifiedTimestamp")inletfieldDefinitions=(Option.map~f:FieldList.of_xml)(Xml.childxml_arg0"fieldDefinitions")inlettypeName=(Option.map~f:TypeName.of_xml)(Xml.childxml_arg0"typeName")inletkeyspaceName=(Option.map~f:KeyspaceName.of_xml)(Xml.childxml_arg0"keyspaceName")inmake?keyspaceArn?maxNestingDepth?directParentTypes?directReferringTables?status?lastModifiedTimestamp?fieldDefinitions?typeName?keyspaceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyspaceArn=field_mapjson__"keyspaceArn"ARN.of_jsoninletmaxNestingDepth=field_mapjson__"maxNestingDepth"Depth.of_jsoninletdirectParentTypes=field_mapjson__"directParentTypes"TypeNameList.of_jsoninletdirectReferringTables=field_mapjson__"directReferringTables"TableNameList.of_jsoninletstatus=field_mapjson__"status"TypeStatus.of_jsoninletlastModifiedTimestamp=field_mapjson__"lastModifiedTimestamp"Timestamp.of_jsoninletfieldDefinitions=field_mapjson__"fieldDefinitions"FieldList.of_jsoninlettypeName=field_mapjson__"typeName"TypeName.of_jsoninletkeyspaceName=field_mapjson__"keyspaceName"KeyspaceName.of_jsoninmake?keyspaceArn?maxNestingDepth?directParentTypes?directReferringTables?status?lastModifiedTimestamp?fieldDefinitions?typeName?keyspaceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The GetType operation returns information about the type, for example the field definitions, the timestamp when the type was last modified, the level of nesting, the status, and details about if the type is used in other types and tables. To read keyspace metadata using GetType, the IAM principal needs Select action permissions for the system keyspace. To configure the required permissions, see Permissions to view a UDT in the Amazon Keyspaces Developer Guide."]moduleGetTypeRequest=structtypenonrect={keyspaceName:KeyspaceName.t[@ocaml.doc"The name of the keyspace that contains this type."];typeName:TypeName.t[@ocaml.doc"The formatted name of the type. For example, if the name of the type was created without double quotes, Amazon Keyspaces saved the name in lower-case characters. If the name was created in double quotes, you must use double quotes to specify the type name."]}letcontext_="GetTypeRequest"letmake~keyspaceName=fun~typeName->fun()->{keyspaceName;typeName}letto_valuex=structure_to_value[("keyspaceName",(Some(KeyspaceName.to_valuex.keyspaceName)));("typeName",(Some(TypeName.to_valuex.typeName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettypeName=TypeName.of_xml(Xml.child_exn~context:context_xml_arg0"typeName")inletkeyspaceName=KeyspaceName.of_xml(Xml.child_exn~context:context_xml_arg0"keyspaceName")inmake~typeName~keyspaceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettypeName=field_map_exnjson__"typeName"TypeName.of_jsoninletkeyspaceName=field_map_exnjson__"keyspaceName"KeyspaceName.of_jsoninmake~typeName~keyspaceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The GetType operation returns information about the type, for example the field definitions, the timestamp when the type was last modified, the level of nesting, the status, and details about if the type is used in other types and tables. To read keyspace metadata using GetType, the IAM principal needs Select action permissions for the system keyspace. To configure the required permissions, see Permissions to view a UDT in the Amazon Keyspaces Developer Guide."]moduleGetTableResponse=structtypenonrect={keyspaceName:KeyspaceName.toption[@ocaml.doc"The name of the keyspace that the specified table is stored in."];tableName:TableName.toption[@ocaml.doc"The name of the specified table."];resourceArn:ARN.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the specified table."];creationTimestamp:Timestamp.toption[@ocaml.doc"The creation timestamp of the specified table."];status:TableStatus.toption[@ocaml.doc"The current status of the specified table."];schemaDefinition:SchemaDefinition.toption[@ocaml.doc"The schema definition of the specified table."];capacitySpecification:CapacitySpecificationSummary.toption[@ocaml.doc"The read/write throughput capacity mode for a table. The options are: throughputMode:PAY_PER_REQUEST throughputMode:PROVISIONED"];encryptionSpecification:EncryptionSpecification.toption[@ocaml.doc"The encryption settings of the specified table."];pointInTimeRecovery:PointInTimeRecoverySummary.toption[@ocaml.doc"The point-in-time recovery status of the specified table."];ttl:TimeToLive.toption[@ocaml.doc"The custom Time to Live settings of the specified table."];defaultTimeToLive:DefaultTimeToLive.toption[@ocaml.doc"The default Time to Live settings in seconds of the specified table."];comment:Comment.toption[@ocaml.doc"The the description of the specified table."];clientSideTimestamps:ClientSideTimestamps.toption[@ocaml.doc"The client-side timestamps setting of the table."];replicaSpecifications:ReplicaSpecificationSummaryList.toption[@ocaml.doc"Returns the Amazon Web Services Region specific settings of all Regions a multi-Region table is replicated in."];latestStreamArn:StreamArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the stream."];cdcSpecification:CdcSpecificationSummary.toption[@ocaml.doc"The CDC stream settings of the table."];warmThroughputSpecification:WarmThroughputSpecificationSummary.toption[@ocaml.doc"The warm throughput settings for the table, including the current status and configured read and write capacity units."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?keyspaceName=fun?tableName->fun?resourceArn->fun?creationTimestamp->fun?status->fun?schemaDefinition->fun?capacitySpecification->fun?encryptionSpecification->fun?pointInTimeRecovery->fun?ttl->fun?defaultTimeToLive->fun?comment->fun?clientSideTimestamps->fun?replicaSpecifications->fun?latestStreamArn->fun?cdcSpecification->fun?warmThroughputSpecification->fun()->{keyspaceName;tableName;resourceArn;creationTimestamp;status;schemaDefinition;capacitySpecification;encryptionSpecification;pointInTimeRecovery;ttl;defaultTimeToLive;comment;clientSideTimestamps;replicaSpecifications;latestStreamArn;cdcSpecification;warmThroughputSpecification}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.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[("keyspaceName",(Option.mapx.keyspaceName~f:KeyspaceName.to_value));("tableName",(Option.mapx.tableName~f:TableName.to_value));("resourceArn",(Option.mapx.resourceArn~f:ARN.to_value));("creationTimestamp",(Option.mapx.creationTimestamp~f:Timestamp.to_value));("status",(Option.mapx.status~f:TableStatus.to_value));("schemaDefinition",(Option.mapx.schemaDefinition~f:SchemaDefinition.to_value));("capacitySpecification",(Option.mapx.capacitySpecification~f:CapacitySpecificationSummary.to_value));("encryptionSpecification",(Option.mapx.encryptionSpecification~f:EncryptionSpecification.to_value));("pointInTimeRecovery",(Option.mapx.pointInTimeRecovery~f:PointInTimeRecoverySummary.to_value));("ttl",(Option.mapx.ttl~f:TimeToLive.to_value));("defaultTimeToLive",(Option.mapx.defaultTimeToLive~f:DefaultTimeToLive.to_value));("comment",(Option.mapx.comment~f:Comment.to_value));("clientSideTimestamps",(Option.mapx.clientSideTimestamps~f:ClientSideTimestamps.to_value));("replicaSpecifications",(Option.mapx.replicaSpecifications~f:ReplicaSpecificationSummaryList.to_value));("latestStreamArn",(Option.mapx.latestStreamArn~f:StreamArn.to_value));("cdcSpecification",(Option.mapx.cdcSpecification~f:CdcSpecificationSummary.to_value));("warmThroughputSpecification",(Option.mapx.warmThroughputSpecification~f:WarmThroughputSpecificationSummary.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwarmThroughputSpecification=(Option.map~f:WarmThroughputSpecificationSummary.of_xml)(Xml.childxml_arg0"warmThroughputSpecification")inletcdcSpecification=(Option.map~f:CdcSpecificationSummary.of_xml)(Xml.childxml_arg0"cdcSpecification")inletlatestStreamArn=(Option.map~f:StreamArn.of_xml)(Xml.childxml_arg0"latestStreamArn")inletreplicaSpecifications=(Option.map~f:ReplicaSpecificationSummaryList.of_xml)(Xml.childxml_arg0"replicaSpecifications")inletclientSideTimestamps=(Option.map~f:ClientSideTimestamps.of_xml)(Xml.childxml_arg0"clientSideTimestamps")inletcomment=(Option.map~f:Comment.of_xml)(Xml.childxml_arg0"comment")inletdefaultTimeToLive=(Option.map~f:DefaultTimeToLive.of_xml)(Xml.childxml_arg0"defaultTimeToLive")inletttl=(Option.map~f:TimeToLive.of_xml)(Xml.childxml_arg0"ttl")inletpointInTimeRecovery=(Option.map~f:PointInTimeRecoverySummary.of_xml)(Xml.childxml_arg0"pointInTimeRecovery")inletencryptionSpecification=(Option.map~f:EncryptionSpecification.of_xml)(Xml.childxml_arg0"encryptionSpecification")inletcapacitySpecification=(Option.map~f:CapacitySpecificationSummary.of_xml)(Xml.childxml_arg0"capacitySpecification")inletschemaDefinition=(Option.map~f:SchemaDefinition.of_xml)(Xml.childxml_arg0"schemaDefinition")inletstatus=(Option.map~f:TableStatus.of_xml)(Xml.childxml_arg0"status")inletcreationTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"creationTimestamp")inletresourceArn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"resourceArn")inlettableName=(Option.map~f:TableName.of_xml)(Xml.childxml_arg0"tableName")inletkeyspaceName=(Option.map~f:KeyspaceName.of_xml)(Xml.childxml_arg0"keyspaceName")inmake?warmThroughputSpecification?cdcSpecification?latestStreamArn?replicaSpecifications?clientSideTimestamps?comment?defaultTimeToLive?ttl?pointInTimeRecovery?encryptionSpecification?capacitySpecification?schemaDefinition?status?creationTimestamp?resourceArn?tableName?keyspaceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwarmThroughputSpecification=field_mapjson__"warmThroughputSpecification"WarmThroughputSpecificationSummary.of_jsoninletcdcSpecification=field_mapjson__"cdcSpecification"CdcSpecificationSummary.of_jsoninletlatestStreamArn=field_mapjson__"latestStreamArn"StreamArn.of_jsoninletreplicaSpecifications=field_mapjson__"replicaSpecifications"ReplicaSpecificationSummaryList.of_jsoninletclientSideTimestamps=field_mapjson__"clientSideTimestamps"ClientSideTimestamps.of_jsoninletcomment=field_mapjson__"comment"Comment.of_jsoninletdefaultTimeToLive=field_mapjson__"defaultTimeToLive"DefaultTimeToLive.of_jsoninletttl=field_mapjson__"ttl"TimeToLive.of_jsoninletpointInTimeRecovery=field_mapjson__"pointInTimeRecovery"PointInTimeRecoverySummary.of_jsoninletencryptionSpecification=field_mapjson__"encryptionSpecification"EncryptionSpecification.of_jsoninletcapacitySpecification=field_mapjson__"capacitySpecification"CapacitySpecificationSummary.of_jsoninletschemaDefinition=field_mapjson__"schemaDefinition"SchemaDefinition.of_jsoninletstatus=field_mapjson__"status"TableStatus.of_jsoninletcreationTimestamp=field_mapjson__"creationTimestamp"Timestamp.of_jsoninletresourceArn=field_mapjson__"resourceArn"ARN.of_jsoninlettableName=field_mapjson__"tableName"TableName.of_jsoninletkeyspaceName=field_mapjson__"keyspaceName"KeyspaceName.of_jsoninmake?warmThroughputSpecification?cdcSpecification?latestStreamArn?replicaSpecifications?clientSideTimestamps?comment?defaultTimeToLive?ttl?pointInTimeRecovery?encryptionSpecification?capacitySpecification?schemaDefinition?status?creationTimestamp?resourceArn?tableName?keyspaceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about the table, including the table's name and current status, the keyspace name, configuration settings, and metadata. To read table metadata using GetTable, the IAM principal needs Select action permissions for the table and the system keyspace."]moduleGetTableRequest=structtypenonrect={keyspaceName:KeyspaceName.t[@ocaml.doc"The name of the keyspace that the table is stored in."];tableName:TableName.t[@ocaml.doc"The name of the table."]}letcontext_="GetTableRequest"letmake~keyspaceName=fun~tableName->fun()->{keyspaceName;tableName}letto_valuex=structure_to_value[("keyspaceName",(Some(KeyspaceName.to_valuex.keyspaceName)));("tableName",(Some(TableName.to_valuex.tableName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettableName=TableName.of_xml(Xml.child_exn~context:context_xml_arg0"tableName")inletkeyspaceName=KeyspaceName.of_xml(Xml.child_exn~context:context_xml_arg0"keyspaceName")inmake~tableName~keyspaceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettableName=field_map_exnjson__"tableName"TableName.of_jsoninletkeyspaceName=field_map_exnjson__"keyspaceName"KeyspaceName.of_jsoninmake~tableName~keyspaceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about the table, including the table's name and current status, the keyspace name, configuration settings, and metadata. To read table metadata using GetTable, the IAM principal needs Select action permissions for the table and the system keyspace."]moduleGetTableAutoScalingSettingsResponse=structtypenonrect={keyspaceName:KeyspaceName.toption[@ocaml.doc"The name of the keyspace."];tableName:TableName.toption[@ocaml.doc"The name of the table."];resourceArn:ARN.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the table."];autoScalingSpecification:AutoScalingSpecification.toption[@ocaml.doc"The auto scaling settings of the table."];replicaSpecifications:ReplicaAutoScalingSpecificationList.toption[@ocaml.doc"The Amazon Web Services Region specific settings of a multi-Region table. Returns the settings for all Regions the table is replicated in."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?keyspaceName=fun?tableName->fun?resourceArn->fun?autoScalingSpecification->fun?replicaSpecifications->fun()->{keyspaceName;tableName;resourceArn;autoScalingSpecification;replicaSpecifications}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.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[("keyspaceName",(Option.mapx.keyspaceName~f:KeyspaceName.to_value));("tableName",(Option.mapx.tableName~f:TableName.to_value));("resourceArn",(Option.mapx.resourceArn~f:ARN.to_value));("autoScalingSpecification",(Option.mapx.autoScalingSpecification~f:AutoScalingSpecification.to_value));("replicaSpecifications",(Option.mapx.replicaSpecifications~f:ReplicaAutoScalingSpecificationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreplicaSpecifications=(Option.map~f:ReplicaAutoScalingSpecificationList.of_xml)(Xml.childxml_arg0"replicaSpecifications")inletautoScalingSpecification=(Option.map~f:AutoScalingSpecification.of_xml)(Xml.childxml_arg0"autoScalingSpecification")inletresourceArn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"resourceArn")inlettableName=(Option.map~f:TableName.of_xml)(Xml.childxml_arg0"tableName")inletkeyspaceName=(Option.map~f:KeyspaceName.of_xml)(Xml.childxml_arg0"keyspaceName")inmake?replicaSpecifications?autoScalingSpecification?resourceArn?tableName?keyspaceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreplicaSpecifications=field_mapjson__"replicaSpecifications"ReplicaAutoScalingSpecificationList.of_jsoninletautoScalingSpecification=field_mapjson__"autoScalingSpecification"AutoScalingSpecification.of_jsoninletresourceArn=field_mapjson__"resourceArn"ARN.of_jsoninlettableName=field_mapjson__"tableName"TableName.of_jsoninletkeyspaceName=field_mapjson__"keyspaceName"KeyspaceName.of_jsoninmake?replicaSpecifications?autoScalingSpecification?resourceArn?tableName?keyspaceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns auto scaling related settings of the specified table in JSON format. If the table is a multi-Region table, the Amazon Web Services Region specific auto scaling settings of the table are included. Amazon Keyspaces auto scaling helps you provision throughput capacity for variable workloads efficiently by increasing and decreasing your table's read and write capacity automatically in response to application traffic. For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide. GetTableAutoScalingSettings can't be used as an action in an IAM policy. To define permissions for GetTableAutoScalingSettings, you must allow the following two actions in the IAM policy statement's Action element: application-autoscaling:DescribeScalableTargets application-autoscaling:DescribeScalingPolicies"]moduleGetTableAutoScalingSettingsRequest=structtypenonrect={keyspaceName:KeyspaceName.t[@ocaml.doc"The name of the keyspace."];tableName:TableName.t[@ocaml.doc"The name of the table."]}letcontext_="GetTableAutoScalingSettingsRequest"letmake~keyspaceName=fun~tableName->fun()->{keyspaceName;tableName}letto_valuex=structure_to_value[("keyspaceName",(Some(KeyspaceName.to_valuex.keyspaceName)));("tableName",(Some(TableName.to_valuex.tableName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettableName=TableName.of_xml(Xml.child_exn~context:context_xml_arg0"tableName")inletkeyspaceName=KeyspaceName.of_xml(Xml.child_exn~context:context_xml_arg0"keyspaceName")inmake~tableName~keyspaceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettableName=field_map_exnjson__"tableName"TableName.of_jsoninletkeyspaceName=field_map_exnjson__"keyspaceName"KeyspaceName.of_jsoninmake~tableName~keyspaceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns auto scaling related settings of the specified table in JSON format. If the table is a multi-Region table, the Amazon Web Services Region specific auto scaling settings of the table are included. Amazon Keyspaces auto scaling helps you provision throughput capacity for variable workloads efficiently by increasing and decreasing your table's read and write capacity automatically in response to application traffic. For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide. GetTableAutoScalingSettings can't be used as an action in an IAM policy. To define permissions for GetTableAutoScalingSettings, you must allow the following two actions in the IAM policy statement's Action element: application-autoscaling:DescribeScalableTargets application-autoscaling:DescribeScalingPolicies"]moduleGetKeyspaceResponse=structtypenonrect={keyspaceName:KeyspaceName.toption[@ocaml.doc"The name of the keyspace."];resourceArn:ARN.toption[@ocaml.doc"Returns the ARN of the keyspace."];replicationStrategy:Rs.toption[@ocaml.doc"Returns the replication strategy of the keyspace. The options are SINGLE_REGION or MULTI_REGION."];replicationRegions:RegionList.toption[@ocaml.doc"If the replicationStrategy of the keyspace is MULTI_REGION, a list of replication Regions is returned."];replicationGroupStatuses:ReplicationGroupStatusList.toption[@ocaml.doc"A list of all Regions the keyspace is replicated in after the update keyspace operation and their status."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?keyspaceName=fun?resourceArn->fun?replicationStrategy->fun?replicationRegions->fun?replicationGroupStatuses->fun()->{keyspaceName;resourceArn;replicationStrategy;replicationRegions;replicationGroupStatuses}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.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[("keyspaceName",(Option.mapx.keyspaceName~f:KeyspaceName.to_value));("resourceArn",(Option.mapx.resourceArn~f:ARN.to_value));("replicationStrategy",(Option.mapx.replicationStrategy~f:Rs.to_value));("replicationRegions",(Option.mapx.replicationRegions~f:RegionList.to_value));("replicationGroupStatuses",(Option.mapx.replicationGroupStatuses~f:ReplicationGroupStatusList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreplicationGroupStatuses=(Option.map~f:ReplicationGroupStatusList.of_xml)(Xml.childxml_arg0"replicationGroupStatuses")inletreplicationRegions=(Option.map~f:RegionList.of_xml)(Xml.childxml_arg0"replicationRegions")inletreplicationStrategy=(Option.map~f:Rs.of_xml)(Xml.childxml_arg0"replicationStrategy")inletresourceArn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"resourceArn")inletkeyspaceName=(Option.map~f:KeyspaceName.of_xml)(Xml.childxml_arg0"keyspaceName")inmake?replicationGroupStatuses?replicationRegions?replicationStrategy?resourceArn?keyspaceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreplicationGroupStatuses=field_mapjson__"replicationGroupStatuses"ReplicationGroupStatusList.of_jsoninletreplicationRegions=field_mapjson__"replicationRegions"RegionList.of_jsoninletreplicationStrategy=field_mapjson__"replicationStrategy"Rs.of_jsoninletresourceArn=field_mapjson__"resourceArn"ARN.of_jsoninletkeyspaceName=field_mapjson__"keyspaceName"KeyspaceName.of_jsoninmake?replicationGroupStatuses?replicationRegions?replicationStrategy?resourceArn?keyspaceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the name of the specified keyspace, the Amazon Resource Name (ARN), the replication strategy, the Amazon Web Services Regions of a multi-Region keyspace, and the status of newly added Regions after an UpdateKeyspace operation."]moduleGetKeyspaceRequest=structtypenonrect={keyspaceName:KeyspaceName.t[@ocaml.doc"The name of the keyspace."]}letcontext_="GetKeyspaceRequest"letmake~keyspaceName=fun()->{keyspaceName}letto_valuex=structure_to_value[("keyspaceName",(Some(KeyspaceName.to_valuex.keyspaceName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyspaceName=KeyspaceName.of_xml(Xml.child_exn~context:context_xml_arg0"keyspaceName")inmake~keyspaceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyspaceName=field_map_exnjson__"keyspaceName"KeyspaceName.of_jsoninmake~keyspaceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the name of the specified keyspace, the Amazon Resource Name (ARN), the replication strategy, the Amazon Web Services Regions of a multi-Region keyspace, and the status of newly added Regions after an UpdateKeyspace operation."]moduleDeleteTypeResponse=structtypenonrect={keyspaceArn:ARN.toption[@ocaml.doc"The unique identifier of the keyspace from which the type was deleted in the format of an Amazon Resource Name (ARN)."];typeName:TypeName.toption[@ocaml.doc"The name of the type that was deleted."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?keyspaceArn=fun?typeName->fun()->{keyspaceArn;typeName}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`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[("keyspaceArn",(Option.mapx.keyspaceArn~f:ARN.to_value));("typeName",(Option.mapx.typeName~f:TypeName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettypeName=(Option.map~f:TypeName.of_xml)(Xml.childxml_arg0"typeName")inletkeyspaceArn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"keyspaceArn")inmake?typeName?keyspaceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettypeName=field_mapjson__"typeName"TypeName.of_jsoninletkeyspaceArn=field_mapjson__"keyspaceArn"ARN.of_jsoninmake?typeName?keyspaceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The DeleteType operation deletes a user-defined type (UDT). You can only delete a type that is not used in a table or another UDT. To configure the required permissions, see Permissions to delete a UDT in the Amazon Keyspaces Developer Guide."]moduleDeleteTypeRequest=structtypenonrect={keyspaceName:KeyspaceName.t[@ocaml.doc"The name of the keyspace of the to be deleted type."];typeName:TypeName.t[@ocaml.doc"The name of the type to be deleted."]}letcontext_="DeleteTypeRequest"letmake~keyspaceName=fun~typeName->fun()->{keyspaceName;typeName}letto_valuex=structure_to_value[("keyspaceName",(Some(KeyspaceName.to_valuex.keyspaceName)));("typeName",(Some(TypeName.to_valuex.typeName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettypeName=TypeName.of_xml(Xml.child_exn~context:context_xml_arg0"typeName")inletkeyspaceName=KeyspaceName.of_xml(Xml.child_exn~context:context_xml_arg0"keyspaceName")inmake~typeName~keyspaceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettypeName=field_map_exnjson__"typeName"TypeName.of_jsoninletkeyspaceName=field_map_exnjson__"keyspaceName"KeyspaceName.of_jsoninmake~typeName~keyspaceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The DeleteType operation deletes a user-defined type (UDT). You can only delete a type that is not used in a table or another UDT. To configure the required permissions, see Permissions to delete a UDT in the Amazon Keyspaces Developer Guide."]moduleDeleteTableResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The DeleteTable operation deletes a table and all of its data. After a DeleteTable request is received, the specified table is in the DELETING state until Amazon Keyspaces completes the deletion. If the table is in the ACTIVE state, you can delete it. If a table is either in the CREATING or UPDATING states, then Amazon Keyspaces returns a ResourceInUseException. If the specified table does not exist, Amazon Keyspaces returns a ResourceNotFoundException. If the table is already in the DELETING state, no error is returned."]moduleDeleteTableRequest=structtypenonrect={keyspaceName:KeyspaceName.t[@ocaml.doc"The name of the keyspace of the to be deleted table."];tableName:TableName.t[@ocaml.doc"The name of the table to be deleted."]}letcontext_="DeleteTableRequest"letmake~keyspaceName=fun~tableName->fun()->{keyspaceName;tableName}letto_valuex=structure_to_value[("keyspaceName",(Some(KeyspaceName.to_valuex.keyspaceName)));("tableName",(Some(TableName.to_valuex.tableName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettableName=TableName.of_xml(Xml.child_exn~context:context_xml_arg0"tableName")inletkeyspaceName=KeyspaceName.of_xml(Xml.child_exn~context:context_xml_arg0"keyspaceName")inmake~tableName~keyspaceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettableName=field_map_exnjson__"tableName"TableName.of_jsoninletkeyspaceName=field_map_exnjson__"keyspaceName"KeyspaceName.of_jsoninmake~tableName~keyspaceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The DeleteTable operation deletes a table and all of its data. After a DeleteTable request is received, the specified table is in the DELETING state until Amazon Keyspaces completes the deletion. If the table is in the ACTIVE state, you can delete it. If a table is either in the CREATING or UPDATING states, then Amazon Keyspaces returns a ResourceInUseException. If the specified table does not exist, Amazon Keyspaces returns a ResourceNotFoundException. If the table is already in the DELETING state, no error is returned."]moduleDeleteKeyspaceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The DeleteKeyspace operation deletes a keyspace and all of its tables."]moduleDeleteKeyspaceRequest=structtypenonrect={keyspaceName:KeyspaceName.t[@ocaml.doc"The name of the keyspace to be deleted."]}letcontext_="DeleteKeyspaceRequest"letmake~keyspaceName=fun()->{keyspaceName}letto_valuex=structure_to_value[("keyspaceName",(Some(KeyspaceName.to_valuex.keyspaceName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyspaceName=KeyspaceName.of_xml(Xml.child_exn~context:context_xml_arg0"keyspaceName")inmake~keyspaceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyspaceName=field_map_exnjson__"keyspaceName"KeyspaceName.of_jsoninmake~keyspaceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The DeleteKeyspace operation deletes a keyspace and all of its tables."]moduleCreateTypeResponse=structtypenonrect={keyspaceArn:ARN.toption[@ocaml.doc"The unique identifier of the keyspace that contains the new type in the format of an Amazon Resource Name (ARN)."];typeName:TypeName.toption[@ocaml.doc"The formatted name of the user-defined type that was created. Note that Amazon Keyspaces requires the formatted name of the type for other operations, for example GetType."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?keyspaceArn=fun?typeName->fun()->{keyspaceArn;typeName}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`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[("keyspaceArn",(Option.mapx.keyspaceArn~f:ARN.to_value));("typeName",(Option.mapx.typeName~f:TypeName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettypeName=(Option.map~f:TypeName.of_xml)(Xml.childxml_arg0"typeName")inletkeyspaceArn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"keyspaceArn")inmake?typeName?keyspaceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettypeName=field_mapjson__"typeName"TypeName.of_jsoninletkeyspaceArn=field_mapjson__"keyspaceArn"ARN.of_jsoninmake?typeName?keyspaceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The CreateType operation creates a new user-defined type in the specified keyspace. To configure the required permissions, see Permissions to create a UDT in the Amazon Keyspaces Developer Guide. For more information, see User-defined types (UDTs) in the Amazon Keyspaces Developer Guide."]moduleCreateTypeRequest=structtypenonrect={keyspaceName:KeyspaceName.t[@ocaml.doc"The name of the keyspace."];typeName:TypeName.t[@ocaml.doc"The name of the user-defined type. UDT names must contain 48 characters or less, must begin with an alphabetic character, and can only contain alpha-numeric characters and underscores. Amazon Keyspaces converts upper case characters automatically into lower case characters. Alternatively, you can declare a UDT name in double quotes. When declaring a UDT name inside double quotes, Amazon Keyspaces preserves upper casing and allows special characters. You can also use double quotes as part of the name when you create the UDT, but you must escape each double quote character with an additional double quote character."];fieldDefinitions:FieldList.t[@ocaml.doc"The field definitions, consisting of names and types, that define this type."]}letcontext_="CreateTypeRequest"letmake~keyspaceName=fun~typeName->fun~fieldDefinitions->fun()->{keyspaceName;typeName;fieldDefinitions}letto_valuex=structure_to_value[("keyspaceName",(Some(KeyspaceName.to_valuex.keyspaceName)));("typeName",(Some(TypeName.to_valuex.typeName)));("fieldDefinitions",(Some(FieldList.to_valuex.fieldDefinitions)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfieldDefinitions=FieldList.of_xml(Xml.child_exn~context:context_xml_arg0"fieldDefinitions")inlettypeName=TypeName.of_xml(Xml.child_exn~context:context_xml_arg0"typeName")inletkeyspaceName=KeyspaceName.of_xml(Xml.child_exn~context:context_xml_arg0"keyspaceName")inmake~fieldDefinitions~typeName~keyspaceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfieldDefinitions=field_map_exnjson__"fieldDefinitions"FieldList.of_jsoninlettypeName=field_map_exnjson__"typeName"TypeName.of_jsoninletkeyspaceName=field_map_exnjson__"keyspaceName"KeyspaceName.of_jsoninmake~fieldDefinitions~typeName~keyspaceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The CreateType operation creates a new user-defined type in the specified keyspace. To configure the required permissions, see Permissions to create a UDT in the Amazon Keyspaces Developer Guide. For more information, see User-defined types (UDTs) in the Amazon Keyspaces Developer Guide."]moduleCreateTableResponse=structtypenonrect={resourceArn:ARN.toption[@ocaml.doc"The unique identifier of the table in the format of an Amazon Resource Name (ARN)."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?resourceArn=fun()->{resourceArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`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[("resourceArn",(Option.mapx.resourceArn~f:ARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"resourceArn")inmake?resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_mapjson__"resourceArn"ARN.of_jsoninmake?resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The CreateTable operation adds a new table to the specified keyspace. Within a keyspace, table names must be unique. CreateTable is an asynchronous operation. When the request is received, the status of the table is set to CREATING. You can monitor the creation status of the new table by using the GetTable operation, which returns the current status of the table. You can start using a table when the status is ACTIVE. For more information, see Create a table in the Amazon Keyspaces Developer Guide."]moduleCreateTableRequest=structtypenonrect={keyspaceName:KeyspaceName.t[@ocaml.doc"The name of the keyspace that the table is going to be created in."];tableName:TableName.t[@ocaml.doc"The name of the table."];schemaDefinition:SchemaDefinition.t[@ocaml.doc"The schemaDefinition consists of the following parameters. For each column to be created: name - The name of the column. type - An Amazon Keyspaces data type. For more information, see Data types in the Amazon Keyspaces Developer Guide. The primary key of the table consists of the following columns: partitionKeys - The partition key can be a single column, or it can be a compound value composed of two or more columns. The partition key portion of the primary key is required and determines how Amazon Keyspaces stores your data. name - The name of each partition key column. clusteringKeys - The optional clustering column portion of your primary key determines how the data is clustered and sorted within each partition. name - The name of the clustering column. orderBy - Sets the ascendant (ASC) or descendant (DESC) order modifier. To define a column as static use staticColumns - Static columns store values that are shared by all rows in the same partition: name - The name of the column. type - An Amazon Keyspaces data type."];comment:Comment.toption[@ocaml.doc"This parameter allows to enter a description of the table."];capacitySpecification:CapacitySpecification.toption[@ocaml.doc"Specifies the read/write throughput capacity mode for the table. The options are: throughputMode:PAY_PER_REQUEST and throughputMode:PROVISIONED - Provisioned capacity mode requires readCapacityUnits and writeCapacityUnits as input. The default is throughput_mode:PAY_PER_REQUEST. For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide."];encryptionSpecification:EncryptionSpecification.toption[@ocaml.doc"Specifies how the encryption key for encryption at rest is managed for the table. You can choose one of the following KMS key (KMS key): type:AWS_OWNED_KMS_KEY - This key is owned by Amazon Keyspaces. type:CUSTOMER_MANAGED_KMS_KEY - This key is stored in your account and is created, owned, and managed by you. This option requires the kms_key_identifier of the KMS key in Amazon Resource Name (ARN) format as input. The default is type:AWS_OWNED_KMS_KEY. For more information, see Encryption at rest in the Amazon Keyspaces Developer Guide."];pointInTimeRecovery:PointInTimeRecovery.toption[@ocaml.doc"Specifies if pointInTimeRecovery is enabled or disabled for the table. The options are: status=ENABLED status=DISABLED If it's not specified, the default is status=DISABLED. For more information, see Point-in-time recovery in the Amazon Keyspaces Developer Guide."];ttl:TimeToLive.toption[@ocaml.doc"Enables Time to Live custom settings for the table. The options are: status:enabled status:disabled The default is status:disabled. After ttl is enabled, you can't disable it for the table. For more information, see Expiring data by using Amazon Keyspaces Time to Live (TTL) in the Amazon Keyspaces Developer Guide."];defaultTimeToLive:DefaultTimeToLive.toption[@ocaml.doc"The default Time to Live setting in seconds for the table. For more information, see Setting the default TTL value for a table in the Amazon Keyspaces Developer Guide."];tags:TagList.toption[@ocaml.doc"A list of key-value pair tags to be attached to the resource. For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide."];clientSideTimestamps:ClientSideTimestamps.toption[@ocaml.doc"Enables client-side timestamps for the table. By default, the setting is disabled. You can enable client-side timestamps with the following option: status: \"enabled\" Once client-side timestamps are enabled for a table, this setting cannot be disabled."];autoScalingSpecification:AutoScalingSpecification.toption[@ocaml.doc"The optional auto scaling settings for a table in provisioned capacity mode. Specifies if the service can manage throughput capacity automatically on your behalf. Auto scaling helps you provision throughput capacity for variable workloads efficiently by increasing and decreasing your table's read and write capacity automatically in response to application traffic. For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide. By default, auto scaling is disabled for a table."];replicaSpecifications:ReplicaSpecificationList.toption[@ocaml.doc"The optional Amazon Web Services Region specific settings of a multi-Region table. These settings overwrite the general settings of the table for the specified Region. For a multi-Region table in provisioned capacity mode, you can configure the table's read capacity differently for each Region's replica. The write capacity, however, remains synchronized between all replicas to ensure that there's enough capacity to replicate writes across all Regions. To define the read capacity for a table replica in a specific Region, you can do so by configuring the following parameters. region: The Region where these settings are applied. (Required) readCapacityUnits: The provisioned read capacity units. (Optional) readCapacityAutoScaling: The read capacity auto scaling settings for the table. (Optional)"];cdcSpecification:CdcSpecification.toption[@ocaml.doc"The CDC stream settings of the table."];warmThroughputSpecification:WarmThroughputSpecification.toption[@ocaml.doc"Specifies the warm throughput settings for the table. Pre-warming a table helps you avoid capacity exceeded exceptions by pre-provisioning read and write capacity units to reduce cold start latency when your table receives traffic. For more information about pre-warming in Amazon Keyspaces, see Pre-warm a table in Amazon Keyspaces in the Amazon Keyspaces Developer Guide."]}letcontext_="CreateTableRequest"letmake?comment=fun?capacitySpecification->fun?encryptionSpecification->fun?pointInTimeRecovery->fun?ttl->fun?defaultTimeToLive->fun?tags->fun?clientSideTimestamps->fun?autoScalingSpecification->fun?replicaSpecifications->fun?cdcSpecification->fun?warmThroughputSpecification->fun~keyspaceName->fun~tableName->fun~schemaDefinition->fun()->{comment;capacitySpecification;encryptionSpecification;pointInTimeRecovery;ttl;defaultTimeToLive;tags;clientSideTimestamps;autoScalingSpecification;replicaSpecifications;cdcSpecification;warmThroughputSpecification;keyspaceName;tableName;schemaDefinition}letto_valuex=structure_to_value[("keyspaceName",(Some(KeyspaceName.to_valuex.keyspaceName)));("tableName",(Some(TableName.to_valuex.tableName)));("schemaDefinition",(Some(SchemaDefinition.to_valuex.schemaDefinition)));("comment",(Option.mapx.comment~f:Comment.to_value));("capacitySpecification",(Option.mapx.capacitySpecification~f:CapacitySpecification.to_value));("encryptionSpecification",(Option.mapx.encryptionSpecification~f:EncryptionSpecification.to_value));("pointInTimeRecovery",(Option.mapx.pointInTimeRecovery~f:PointInTimeRecovery.to_value));("ttl",(Option.mapx.ttl~f:TimeToLive.to_value));("defaultTimeToLive",(Option.mapx.defaultTimeToLive~f:DefaultTimeToLive.to_value));("tags",(Option.mapx.tags~f:TagList.to_value));("clientSideTimestamps",(Option.mapx.clientSideTimestamps~f:ClientSideTimestamps.to_value));("autoScalingSpecification",(Option.mapx.autoScalingSpecification~f:AutoScalingSpecification.to_value));("replicaSpecifications",(Option.mapx.replicaSpecifications~f:ReplicaSpecificationList.to_value));("cdcSpecification",(Option.mapx.cdcSpecification~f:CdcSpecification.to_value));("warmThroughputSpecification",(Option.mapx.warmThroughputSpecification~f:WarmThroughputSpecification.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwarmThroughputSpecification=(Option.map~f:WarmThroughputSpecification.of_xml)(Xml.childxml_arg0"warmThroughputSpecification")inletcdcSpecification=(Option.map~f:CdcSpecification.of_xml)(Xml.childxml_arg0"cdcSpecification")inletreplicaSpecifications=(Option.map~f:ReplicaSpecificationList.of_xml)(Xml.childxml_arg0"replicaSpecifications")inletautoScalingSpecification=(Option.map~f:AutoScalingSpecification.of_xml)(Xml.childxml_arg0"autoScalingSpecification")inletclientSideTimestamps=(Option.map~f:ClientSideTimestamps.of_xml)(Xml.childxml_arg0"clientSideTimestamps")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"tags")inletdefaultTimeToLive=(Option.map~f:DefaultTimeToLive.of_xml)(Xml.childxml_arg0"defaultTimeToLive")inletttl=(Option.map~f:TimeToLive.of_xml)(Xml.childxml_arg0"ttl")inletpointInTimeRecovery=(Option.map~f:PointInTimeRecovery.of_xml)(Xml.childxml_arg0"pointInTimeRecovery")inletencryptionSpecification=(Option.map~f:EncryptionSpecification.of_xml)(Xml.childxml_arg0"encryptionSpecification")inletcapacitySpecification=(Option.map~f:CapacitySpecification.of_xml)(Xml.childxml_arg0"capacitySpecification")inletcomment=(Option.map~f:Comment.of_xml)(Xml.childxml_arg0"comment")inletschemaDefinition=SchemaDefinition.of_xml(Xml.child_exn~context:context_xml_arg0"schemaDefinition")inlettableName=TableName.of_xml(Xml.child_exn~context:context_xml_arg0"tableName")inletkeyspaceName=KeyspaceName.of_xml(Xml.child_exn~context:context_xml_arg0"keyspaceName")inmake?warmThroughputSpecification?cdcSpecification?replicaSpecifications?autoScalingSpecification?clientSideTimestamps?tags?defaultTimeToLive?ttl?pointInTimeRecovery?encryptionSpecification?capacitySpecification?comment~schemaDefinition~tableName~keyspaceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwarmThroughputSpecification=field_mapjson__"warmThroughputSpecification"WarmThroughputSpecification.of_jsoninletcdcSpecification=field_mapjson__"cdcSpecification"CdcSpecification.of_jsoninletreplicaSpecifications=field_mapjson__"replicaSpecifications"ReplicaSpecificationList.of_jsoninletautoScalingSpecification=field_mapjson__"autoScalingSpecification"AutoScalingSpecification.of_jsoninletclientSideTimestamps=field_mapjson__"clientSideTimestamps"ClientSideTimestamps.of_jsoninlettags=field_mapjson__"tags"TagList.of_jsoninletdefaultTimeToLive=field_mapjson__"defaultTimeToLive"DefaultTimeToLive.of_jsoninletttl=field_mapjson__"ttl"TimeToLive.of_jsoninletpointInTimeRecovery=field_mapjson__"pointInTimeRecovery"PointInTimeRecovery.of_jsoninletencryptionSpecification=field_mapjson__"encryptionSpecification"EncryptionSpecification.of_jsoninletcapacitySpecification=field_mapjson__"capacitySpecification"CapacitySpecification.of_jsoninletcomment=field_mapjson__"comment"Comment.of_jsoninletschemaDefinition=field_map_exnjson__"schemaDefinition"SchemaDefinition.of_jsoninlettableName=field_map_exnjson__"tableName"TableName.of_jsoninletkeyspaceName=field_map_exnjson__"keyspaceName"KeyspaceName.of_jsoninmake?warmThroughputSpecification?cdcSpecification?replicaSpecifications?autoScalingSpecification?clientSideTimestamps?tags?defaultTimeToLive?ttl?pointInTimeRecovery?encryptionSpecification?capacitySpecification?comment~schemaDefinition~tableName~keyspaceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The CreateTable operation adds a new table to the specified keyspace. Within a keyspace, table names must be unique. CreateTable is an asynchronous operation. When the request is received, the status of the table is set to CREATING. You can monitor the creation status of the new table by using the GetTable operation, which returns the current status of the table. You can start using a table when the status is ACTIVE. For more information, see Create a table in the Amazon Keyspaces Developer Guide."]moduleCreateKeyspaceResponse=structtypenonrect={resourceArn:ARN.toption[@ocaml.doc"The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN)."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?resourceArn=fun()->{resourceArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.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)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.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))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.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[("resourceArn",(Option.mapx.resourceArn~f:ARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"resourceArn")inmake?resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_mapjson__"resourceArn"ARN.of_jsoninmake?resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The CreateKeyspace operation adds a new keyspace to your account. In an Amazon Web Services account, keyspace names must be unique within each Region. CreateKeyspace is an asynchronous operation. You can monitor the creation status of the new keyspace by using the GetKeyspace operation. For more information, see Create a keyspace in the Amazon Keyspaces Developer Guide."]moduleCreateKeyspaceRequest=structtypenonrect={keyspaceName:KeyspaceName.t[@ocaml.doc"The name of the keyspace to be created."];tags:TagList.toption[@ocaml.doc"A list of key-value pair tags to be attached to the keyspace. For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide."];replicationSpecification:ReplicationSpecification.toption[@ocaml.doc"The replication specification of the keyspace includes: replicationStrategy - the required value is SINGLE_REGION or MULTI_REGION. regionList - if the replicationStrategy is MULTI_REGION, the regionList requires the current Region and at least one additional Amazon Web Services Region where the keyspace is going to be replicated in."]}letcontext_="CreateKeyspaceRequest"letmake?tags=fun?replicationSpecification->fun~keyspaceName->fun()->{tags;replicationSpecification;keyspaceName}letto_valuex=structure_to_value[("keyspaceName",(Some(KeyspaceName.to_valuex.keyspaceName)));("tags",(Option.mapx.tags~f:TagList.to_value));("replicationSpecification",(Option.mapx.replicationSpecification~f:ReplicationSpecification.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreplicationSpecification=(Option.map~f:ReplicationSpecification.of_xml)(Xml.childxml_arg0"replicationSpecification")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"tags")inletkeyspaceName=KeyspaceName.of_xml(Xml.child_exn~context:context_xml_arg0"keyspaceName")inmake?replicationSpecification?tags~keyspaceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreplicationSpecification=field_mapjson__"replicationSpecification"ReplicationSpecification.of_jsoninlettags=field_mapjson__"tags"TagList.of_jsoninletkeyspaceName=field_map_exnjson__"keyspaceName"KeyspaceName.of_jsoninmake?replicationSpecification?tags~keyspaceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The CreateKeyspace operation adds a new keyspace to your account. In an Amazon Web Services account, keyspace names must be unique within each Region. CreateKeyspace is an asynchronous operation. You can monitor the creation status of the new keyspace by using the GetKeyspace operation. For more information, see Create a keyspace in the Amazon Keyspaces Developer Guide."]