12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622(* 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.budgetsletapiVersion="2016-10-20"letendpointPrefix="budgets"letserviceFullName="AWS Budgets"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="AWSBudgets"lettargetPrefix="AWSBudgetServiceGateway"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[]))])moduleErrorMessage=structtypenonrect=string[@@ocaml.doc"The error message the exception carries."]letcontext_="errorMessage"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"errorMessage"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"The error message the exception carries."]moduleAccessDeniedException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You are not authorized to use this operation with the given parameters."]moduleAccountId=structtypenonrect=string[@@ocaml.doc"The account ID of the user. It's a 12-digit number."]letcontext_="AccountId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:12)>>=(fun()->(check_string_maxi~max:12)>>=(fun()->check_patterni~pattern:"\\d{12}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AccountId"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"The account ID of the user. It's a 12-digit number."]moduleSubscriptionType=structtypenonrect=|SNS|EMAIL|Non_static_idofstringletmakei=iletto_string=function|SNS->"SNS"|EMAIL->"EMAIL"|Non_static_ids->sletof_string=function|"SNS"->SNS|"EMAIL"->EMAIL|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 SubscriptionType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SubscriptionType"j)letto_json=simple_to_jsonto_valueendmoduleSubscriberAddress=structtypenonrect=string[@@ocaml.doc"A string that contains an email address or SNS topic for the subscriber's address."]letcontext_="SubscriberAddress"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2147483647)>>=(fun()->check_patterni~pattern:"(.*[\\n\\r\\t\\f\\ ]?)*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SubscriberAddress"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"A string that contains an email address or SNS topic for the subscriber's address."]moduleSubscriber=structtypenonrect={subscriptionType:SubscriptionType.t[@ocaml.doc"The type of notification that Amazon Web Services sends to a subscriber."];address:SubscriberAddress.t[@ocaml.doc"The address that Amazon Web Services sends budget notifications to, either an SNS topic or an email. When you create a subscriber, the value of Address can't contain line breaks."]}letcontext_="Subscriber"letmake~subscriptionType=fun~address->fun()->{subscriptionType;address}letto_valuex=structure_to_value[("SubscriptionType",(Some(SubscriptionType.to_valuex.subscriptionType)));("Address",(Some(SubscriberAddress.to_valuex.address)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaddress=SubscriberAddress.of_xml(Xml.child_exn~context:context_xml_arg0"Address")inletsubscriptionType=SubscriptionType.of_xml(Xml.child_exn~context:context_xml_arg0"SubscriptionType")inmake~address~subscriptionType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaddress=field_map_exnjson__"Address"SubscriberAddress.of_jsoninletsubscriptionType=field_map_exnjson__"SubscriptionType"SubscriptionType.of_jsoninmake~address~subscriptionType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The subscriber to a budget notification. The subscriber consists of a subscription type and either an Amazon SNS topic or an email address. For example, an email subscriber has the following parameters: A subscriptionType of EMAIL An address of example\\@example.com"]moduleSubscribers=structtypenonrect=Subscriber.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:11)>>=(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:Subscriber.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:Subscriber.of_xml)letof_jsonj=list_of_json~kind:"Subscribers"~of_json:Subscriber.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRoleArn=structtypenonrect=stringletcontext_="RoleArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:32)>>=(fun()->(check_string_maxi~max:618)>>=(fun()->check_patterni~pattern:"^arn:aws(-eusc|-cn|-us-gov|-iso|-iso-[a-z]{1})?:iam::\\d{12}:role(\\u002F[\\u0021-\\u007F]+\\u002F|\\u002F)[\\w+=,.@-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RoleArn"jletto_json=simple_to_jsonto_valueendmoduleNotificationType=structtypenonrect=|ACTUAL|FORECASTED|Non_static_idofstringletmakei=iletto_string=function|ACTUAL->"ACTUAL"|FORECASTED->"FORECASTED"|Non_static_ids->sletof_string=function|"ACTUAL"->ACTUAL|"FORECASTED"->FORECASTED|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 NotificationType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"NotificationType"j)letto_json=simple_to_jsonto_valueendmoduleRegion=structtypenonrect=stringletcontext_="Region"letmakei=letopenResultinok_or_failwith((check_string_mini~min:9)>>=(fun()->(check_string_maxi~max:20)>>=(fun()->check_patterni~pattern:"^\\w{2,4}-\\w+(-\\w+)?-\\d$")));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_valueendmoduleInstanceId=structtypenonrect=stringletcontext_="InstanceId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:63)>>=(fun()->check_patterni~pattern:"^i-(\\w{8}|\\w{17})$|^[a-zA-Z]([\\w-]{0,61}\\w)?$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"InstanceId"jletto_json=simple_to_jsonto_valueendmoduleInstanceIds=structtypenonrect=InstanceId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(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:InstanceId.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:InstanceId.of_xml)letof_jsonj=list_of_json~kind:"InstanceIds"~of_json:InstanceId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleActionSubType=structtypenonrect=|STOP_EC2_INSTANCES|STOP_RDS_INSTANCES|Non_static_idofstringletmakei=iletto_string=function|STOP_EC2_INSTANCES->"STOP_EC2_INSTANCES"|STOP_RDS_INSTANCES->"STOP_RDS_INSTANCES"|Non_static_ids->sletof_string=function|"STOP_EC2_INSTANCES"->STOP_EC2_INSTANCES|"STOP_RDS_INSTANCES"->STOP_RDS_INSTANCES|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 ActionSubType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ActionSubType"j)letto_json=simple_to_jsonto_valueendmoduleSsmActionDefinition=structtypenonrect={actionSubType:ActionSubType.t[@ocaml.doc"The action subType."];region:Region.t[@ocaml.doc"The Region to run the SSM document."];instanceIds:InstanceIds.t[@ocaml.doc"The EC2 and RDS instance IDs."]}letcontext_="SsmActionDefinition"letmake~actionSubType=fun~region->fun~instanceIds->fun()->{actionSubType;region;instanceIds}letto_valuex=structure_to_value[("ActionSubType",(Some(ActionSubType.to_valuex.actionSubType)));("Region",(Some(Region.to_valuex.region)));("InstanceIds",(Some(InstanceIds.to_valuex.instanceIds)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinstanceIds=InstanceIds.of_xml(Xml.child_exn~context:context_xml_arg0"InstanceIds")inletregion=Region.of_xml(Xml.child_exn~context:context_xml_arg0"Region")inletactionSubType=ActionSubType.of_xml(Xml.child_exn~context:context_xml_arg0"ActionSubType")inmake~instanceIds~region~actionSubType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinstanceIds=field_map_exnjson__"InstanceIds"InstanceIds.of_jsoninletregion=field_map_exnjson__"Region"Region.of_jsoninletactionSubType=field_map_exnjson__"ActionSubType"ActionSubType.of_jsoninmake~instanceIds~region~actionSubType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The Amazon Web Services Systems Manager (SSM) action definition details."]moduleTargetId=structtypenonrect=stringletcontext_="TargetId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:12)>>=(fun()->(check_string_maxi~max:68)>>=(fun()->check_patterni~pattern:"^(ou-[0-9a-z]{4,32}-[a-z0-9]{8,32}$)|(\\d{12})")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TargetId"jletto_json=simple_to_jsonto_valueendmoduleTargetIds=structtypenonrect=TargetId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(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:TargetId.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:TargetId.of_xml)letof_jsonj=list_of_json~kind:"TargetIds"~of_json:TargetId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePolicyId=structtypenonrect=stringletcontext_="PolicyId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:10)>>=(fun()->(check_string_maxi~max:130)>>=(fun()->check_patterni~pattern:"^p-[0-9a-zA-Z_]{8,128}$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PolicyId"jletto_json=simple_to_jsonto_valueendmoduleScpActionDefinition=structtypenonrect={policyId:PolicyId.t[@ocaml.doc"The policy ID attached."];targetIds:TargetIds.t[@ocaml.doc"A list of target IDs."]}letcontext_="ScpActionDefinition"letmake~policyId=fun~targetIds->fun()->{policyId;targetIds}letto_valuex=structure_to_value[("PolicyId",(Some(PolicyId.to_valuex.policyId)));("TargetIds",(Some(TargetIds.to_valuex.targetIds)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettargetIds=TargetIds.of_xml(Xml.child_exn~context:context_xml_arg0"TargetIds")inletpolicyId=PolicyId.of_xml(Xml.child_exn~context:context_xml_arg0"PolicyId")inmake~targetIds~policyId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettargetIds=field_map_exnjson__"TargetIds"TargetIds.of_jsoninletpolicyId=field_map_exnjson__"PolicyId"PolicyId.of_jsoninmake~targetIds~policyId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The service control policies (SCP) action definition details."]moduleUser=structtypenonrect=stringletcontext_="User"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:576)>>=(fun()->check_patterni~pattern:"^([\\u0021-\\u007F]+\\u002F)?[\\w+=,.@-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"User"jletto_json=simple_to_jsonto_valueendmoduleUsers=structtypenonrect=User.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(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:User.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:User.of_xml)letof_jsonj=list_of_json~kind:"Users"~of_json:User.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRole=structtypenonrect=stringletcontext_="Role"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:576)>>=(fun()->check_patterni~pattern:"^([\\u0021-\\u007F]+\\u002F)?[\\w+=,.@-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Role"jletto_json=simple_to_jsonto_valueendmoduleRoles=structtypenonrect=Role.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(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:Role.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:Role.of_xml)letof_jsonj=list_of_json~kind:"Roles"~of_json:Role.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePolicyArn=structtypenonrect=stringletcontext_="PolicyArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:25)>>=(fun()->(check_string_maxi~max:684)>>=(fun()->check_patterni~pattern:"^arn:aws(-eusc|-cn|-us-gov|-iso|-iso-[a-z]{1})?:iam::(\\d{12}|aws):policy(\\u002F[\\u0021-\\u007F]+\\u002F|\\u002F)[\\w+=,.@-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PolicyArn"jletto_json=simple_to_jsonto_valueendmoduleGroup=structtypenonrect=stringletcontext_="Group"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:640)>>=(fun()->check_patterni~pattern:"^([\\u0021-\\u007F]+\\u002F)?[\\w+=,.@-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Group"jletto_json=simple_to_jsonto_valueendmoduleGroups=structtypenonrect=Group.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(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:Group.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:Group.of_xml)letof_jsonj=list_of_json~kind:"Groups"~of_json:Group.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleIamActionDefinition=structtypenonrect={policyArn:PolicyArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the policy to be attached."];roles:Roles.toption[@ocaml.doc"A list of roles to be attached. There must be at least one role."];groups:Groups.toption[@ocaml.doc"A list of groups to be attached. There must be at least one group."];users:Users.toption[@ocaml.doc"A list of users to be attached. There must be at least one user."]}letcontext_="IamActionDefinition"letmake?roles=fun?groups->fun?users->fun~policyArn->fun()->{roles;groups;users;policyArn}letto_valuex=structure_to_value[("PolicyArn",(Some(PolicyArn.to_valuex.policyArn)));("Roles",(Option.mapx.roles~f:Roles.to_value));("Groups",(Option.mapx.groups~f:Groups.to_value));("Users",(Option.mapx.users~f:Users.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letusers=(Option.map~f:Users.of_xml)(Xml.childxml_arg0"Users")inletgroups=(Option.map~f:Groups.of_xml)(Xml.childxml_arg0"Groups")inletroles=(Option.map~f:Roles.of_xml)(Xml.childxml_arg0"Roles")inletpolicyArn=PolicyArn.of_xml(Xml.child_exn~context:context_xml_arg0"PolicyArn")inmake?users?groups?roles~policyArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letusers=field_mapjson__"Users"Users.of_jsoninletgroups=field_mapjson__"Groups"Groups.of_jsoninletroles=field_mapjson__"Roles"Roles.of_jsoninletpolicyArn=field_map_exnjson__"PolicyArn"PolicyArn.of_jsoninmake?users?groups?roles~policyArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The Identity and Access Management (IAM) action definition details."]moduleDefinition=structtypenonrect={iamActionDefinition:IamActionDefinition.toption[@ocaml.doc"The Identity and Access Management (IAM) action definition details."];scpActionDefinition:ScpActionDefinition.toption[@ocaml.doc"The service control policies (SCPs) action definition details."];ssmActionDefinition:SsmActionDefinition.toption[@ocaml.doc"The Amazon Web Services Systems Manager (SSM) action definition details."]}letmake?iamActionDefinition=fun?scpActionDefinition->fun?ssmActionDefinition->fun()->{iamActionDefinition;scpActionDefinition;ssmActionDefinition}letto_valuex=structure_to_value[("IamActionDefinition",(Option.mapx.iamActionDefinition~f:IamActionDefinition.to_value));("ScpActionDefinition",(Option.mapx.scpActionDefinition~f:ScpActionDefinition.to_value));("SsmActionDefinition",(Option.mapx.ssmActionDefinition~f:SsmActionDefinition.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letssmActionDefinition=(Option.map~f:SsmActionDefinition.of_xml)(Xml.childxml_arg0"SsmActionDefinition")inletscpActionDefinition=(Option.map~f:ScpActionDefinition.of_xml)(Xml.childxml_arg0"ScpActionDefinition")inletiamActionDefinition=(Option.map~f:IamActionDefinition.of_xml)(Xml.childxml_arg0"IamActionDefinition")inmake?ssmActionDefinition?scpActionDefinition?iamActionDefinition()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letssmActionDefinition=field_mapjson__"SsmActionDefinition"SsmActionDefinition.of_jsoninletscpActionDefinition=field_mapjson__"ScpActionDefinition"ScpActionDefinition.of_jsoninletiamActionDefinition=field_mapjson__"IamActionDefinition"IamActionDefinition.of_jsoninmake?ssmActionDefinition?scpActionDefinition?iamActionDefinition()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies all of the type-specific parameters."]moduleBudgetName=structtypenonrect=string[@@ocaml.doc"A string that represents the budget name. The \":\" and \"\\\" characters, and the \"/action/\" substring, aren't allowed."]letcontext_="BudgetName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(fun()->check_patterni~pattern:"^(?![^:\\\\]*/action/|(?i).*<script>.*</script>.*)[^:\\\\]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"BudgetName"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"A string that represents the budget name. The \":\" and \"\\\" characters, and the \"/action/\" substring, aren't allowed."]moduleApprovalModel=structtypenonrect=|AUTOMATIC|MANUAL|Non_static_idofstringletmakei=iletto_string=function|AUTOMATIC->"AUTOMATIC"|MANUAL->"MANUAL"|Non_static_ids->sletof_string=function|"AUTOMATIC"->AUTOMATIC|"MANUAL"->MANUAL|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 ApprovalModel"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ApprovalModel"j)letto_json=simple_to_jsonto_valueendmoduleActionType=structtypenonrect=|APPLY_IAM_POLICY|APPLY_SCP_POLICY|RUN_SSM_DOCUMENTS|Non_static_idofstringletmakei=iletto_string=function|APPLY_IAM_POLICY->"APPLY_IAM_POLICY"|APPLY_SCP_POLICY->"APPLY_SCP_POLICY"|RUN_SSM_DOCUMENTS->"RUN_SSM_DOCUMENTS"|Non_static_ids->sletof_string=function|"APPLY_IAM_POLICY"->APPLY_IAM_POLICY|"APPLY_SCP_POLICY"->APPLY_SCP_POLICY|"RUN_SSM_DOCUMENTS"->RUN_SSM_DOCUMENTS|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 ActionType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ActionType"j)letto_json=simple_to_jsonto_valueendmoduleThresholdType=structtypenonrect=|PERCENTAGE|ABSOLUTE_VALUE|Non_static_idofstringletmakei=iletto_string=function|PERCENTAGE->"PERCENTAGE"|ABSOLUTE_VALUE->"ABSOLUTE_VALUE"|Non_static_ids->sletof_string=function|"PERCENTAGE"->PERCENTAGE|"ABSOLUTE_VALUE"->ABSOLUTE_VALUE|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 ThresholdType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ThresholdType"j)letto_json=simple_to_jsonto_valueendmoduleNotificationThreshold=structtypenonrect=float[@@ocaml.doc"The threshold of a notification."]letmakei=letopenResultinok_or_failwith((check_float_mini~min:1.5e+13)>>=(fun()->check_float_mini~min:0.));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_valueend[@@ocaml.doc"The threshold of a notification."]moduleActionThreshold=structtypenonrect={actionThresholdValue:NotificationThreshold.t;actionThresholdType:ThresholdType.t}letcontext_="ActionThreshold"letmake~actionThresholdValue=fun~actionThresholdType->fun()->{actionThresholdValue;actionThresholdType}letto_valuex=structure_to_value[("ActionThresholdValue",(Some(NotificationThreshold.to_valuex.actionThresholdValue)));("ActionThresholdType",(Some(ThresholdType.to_valuex.actionThresholdType)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letactionThresholdType=ThresholdType.of_xml(Xml.child_exn~context:context_xml_arg0"ActionThresholdType")inletactionThresholdValue=NotificationThreshold.of_xml(Xml.child_exn~context:context_xml_arg0"ActionThresholdValue")inmake~actionThresholdType~actionThresholdValue()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letactionThresholdType=field_map_exnjson__"ActionThresholdType"ThresholdType.of_jsoninletactionThresholdValue=field_map_exnjson__"ActionThresholdValue"NotificationThreshold.of_jsoninmake~actionThresholdType~actionThresholdValue()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The trigger threshold of the action."]moduleActionStatus=structtypenonrect=|STANDBY|PENDING|EXECUTION_IN_PROGRESS|EXECUTION_SUCCESS|EXECUTION_FAILURE|REVERSE_IN_PROGRESS|REVERSE_SUCCESS|REVERSE_FAILURE|RESET_IN_PROGRESS|RESET_FAILURE|Non_static_idofstringletmakei=iletto_string=function|STANDBY->"STANDBY"|PENDING->"PENDING"|EXECUTION_IN_PROGRESS->"EXECUTION_IN_PROGRESS"|EXECUTION_SUCCESS->"EXECUTION_SUCCESS"|EXECUTION_FAILURE->"EXECUTION_FAILURE"|REVERSE_IN_PROGRESS->"REVERSE_IN_PROGRESS"|REVERSE_SUCCESS->"REVERSE_SUCCESS"|REVERSE_FAILURE->"REVERSE_FAILURE"|RESET_IN_PROGRESS->"RESET_IN_PROGRESS"|RESET_FAILURE->"RESET_FAILURE"|Non_static_ids->sletof_string=function|"STANDBY"->STANDBY|"PENDING"->PENDING|"EXECUTION_IN_PROGRESS"->EXECUTION_IN_PROGRESS|"EXECUTION_SUCCESS"->EXECUTION_SUCCESS|"EXECUTION_FAILURE"->EXECUTION_FAILURE|"REVERSE_IN_PROGRESS"->REVERSE_IN_PROGRESS|"REVERSE_SUCCESS"->REVERSE_SUCCESS|"REVERSE_FAILURE"->REVERSE_FAILURE|"RESET_IN_PROGRESS"->RESET_IN_PROGRESS|"RESET_FAILURE"->RESET_FAILURE|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ActionStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ActionStatus"j)letto_json=simple_to_jsonto_valueendmoduleActionId=structtypenonrect=stringletcontext_="ActionId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:36)>>=(fun()->(check_string_maxi~max:36)>>=(fun()->check_patterni~pattern:"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ActionId"jletto_json=simple_to_jsonto_valueendmoduleAction=structtypenonrect={actionId:ActionId.toption[@ocaml.doc"A system-generated universally unique identifier (UUID) for the action."];budgetName:BudgetName.toption;notificationType:NotificationType.toption;actionType:ActionType.toption[@ocaml.doc"The type of action. This defines the type of tasks that can be carried out by this action. This field also determines the format for definition."];actionThreshold:ActionThreshold.toption[@ocaml.doc"The trigger threshold of the action."];definition:Definition.toption[@ocaml.doc"Where you specify all of the type-specific parameters."];executionRoleArn:RoleArn.toption[@ocaml.doc"The role passed for action execution and reversion. Roles and actions must be in the same account."];approvalModel:ApprovalModel.toption[@ocaml.doc"This specifies if the action needs manual or automatic approval."];status:ActionStatus.toption[@ocaml.doc"The status of the action."];subscribers:Subscribers.toption}letmake?actionId=fun?budgetName->fun?notificationType->fun?actionType->fun?actionThreshold->fun?definition->fun?executionRoleArn->fun?approvalModel->fun?status->fun?subscribers->fun()->{actionId;budgetName;notificationType;actionType;actionThreshold;definition;executionRoleArn;approvalModel;status;subscribers}letto_valuex=structure_to_value[("ActionId",(Option.mapx.actionId~f:ActionId.to_value));("BudgetName",(Option.mapx.budgetName~f:BudgetName.to_value));("NotificationType",(Option.mapx.notificationType~f:NotificationType.to_value));("ActionType",(Option.mapx.actionType~f:ActionType.to_value));("ActionThreshold",(Option.mapx.actionThreshold~f:ActionThreshold.to_value));("Definition",(Option.mapx.definition~f:Definition.to_value));("ExecutionRoleArn",(Option.mapx.executionRoleArn~f:RoleArn.to_value));("ApprovalModel",(Option.mapx.approvalModel~f:ApprovalModel.to_value));("Status",(Option.mapx.status~f:ActionStatus.to_value));("Subscribers",(Option.mapx.subscribers~f:Subscribers.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsubscribers=(Option.map~f:Subscribers.of_xml)(Xml.childxml_arg0"Subscribers")inletstatus=(Option.map~f:ActionStatus.of_xml)(Xml.childxml_arg0"Status")inletapprovalModel=(Option.map~f:ApprovalModel.of_xml)(Xml.childxml_arg0"ApprovalModel")inletexecutionRoleArn=(Option.map~f:RoleArn.of_xml)(Xml.childxml_arg0"ExecutionRoleArn")inletdefinition=(Option.map~f:Definition.of_xml)(Xml.childxml_arg0"Definition")inletactionThreshold=(Option.map~f:ActionThreshold.of_xml)(Xml.childxml_arg0"ActionThreshold")inletactionType=(Option.map~f:ActionType.of_xml)(Xml.childxml_arg0"ActionType")inletnotificationType=(Option.map~f:NotificationType.of_xml)(Xml.childxml_arg0"NotificationType")inletbudgetName=(Option.map~f:BudgetName.of_xml)(Xml.childxml_arg0"BudgetName")inletactionId=(Option.map~f:ActionId.of_xml)(Xml.childxml_arg0"ActionId")inmake?subscribers?status?approvalModel?executionRoleArn?definition?actionThreshold?actionType?notificationType?budgetName?actionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubscribers=field_mapjson__"Subscribers"Subscribers.of_jsoninletstatus=field_mapjson__"Status"ActionStatus.of_jsoninletapprovalModel=field_mapjson__"ApprovalModel"ApprovalModel.of_jsoninletexecutionRoleArn=field_mapjson__"ExecutionRoleArn"RoleArn.of_jsoninletdefinition=field_mapjson__"Definition"Definition.of_jsoninletactionThreshold=field_mapjson__"ActionThreshold"ActionThreshold.of_jsoninletactionType=field_mapjson__"ActionType"ActionType.of_jsoninletnotificationType=field_mapjson__"NotificationType"NotificationType.of_jsoninletbudgetName=field_mapjson__"BudgetName"BudgetName.of_jsoninletactionId=field_mapjson__"ActionId"ActionId.of_jsoninmake?subscribers?status?approvalModel?executionRoleArn?definition?actionThreshold?actionType?notificationType?budgetName?actionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A budget action resource."]moduleGenericTimestamp=structtypenonrect=string[@@ocaml.doc"A generic time stamp. In Java, it's transformed to a Date object."]letmakei=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_valueend[@@ocaml.doc"A generic time stamp. In Java, it's transformed to a Date object."]moduleEventType=structtypenonrect=|SYSTEM|CREATE_ACTION|DELETE_ACTION|UPDATE_ACTION|EXECUTE_ACTION|Non_static_idofstringletmakei=iletto_string=function|SYSTEM->"SYSTEM"|CREATE_ACTION->"CREATE_ACTION"|DELETE_ACTION->"DELETE_ACTION"|UPDATE_ACTION->"UPDATE_ACTION"|EXECUTE_ACTION->"EXECUTE_ACTION"|Non_static_ids->sletof_string=function|"SYSTEM"->SYSTEM|"CREATE_ACTION"->CREATE_ACTION|"DELETE_ACTION"->DELETE_ACTION|"UPDATE_ACTION"->UPDATE_ACTION|"EXECUTE_ACTION"->EXECUTE_ACTION|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 EventType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EventType"j)letto_json=simple_to_jsonto_valueendmoduleGenericString=structtypenonrect=string[@@ocaml.doc"A generic string."]letcontext_="GenericString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:2147483647)>>=(fun()->check_patterni~pattern:".*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"GenericString"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"A generic string."]moduleActionHistoryDetails=structtypenonrect={message:GenericString.toption;action:Action.toption[@ocaml.doc"The budget action resource."]}letmake?message=fun?action->fun()->{message;action}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:GenericString.to_value));("Action",(Option.mapx.action~f:Action.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaction=(Option.map~f:Action.of_xml)(Xml.childxml_arg0"Action")inletmessage=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"Message")inmake?action?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaction=field_mapjson__"Action"Action.of_jsoninletmessage=field_mapjson__"Message"GenericString.of_jsoninmake?action?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The description of the details for the event."]moduleActionHistory=structtypenonrect={timestamp:GenericTimestamp.toption;status:ActionStatus.toption[@ocaml.doc"The status of action at the time of the event."];eventType:EventType.toption[@ocaml.doc"This distinguishes between whether the events are triggered by the user or are generated by the system."];actionHistoryDetails:ActionHistoryDetails.toption[@ocaml.doc"The description of the details for the event."]}letmake?timestamp=fun?status->fun?eventType->fun?actionHistoryDetails->fun()->{timestamp;status;eventType;actionHistoryDetails}letto_valuex=structure_to_value[("Timestamp",(Option.mapx.timestamp~f:GenericTimestamp.to_value));("Status",(Option.mapx.status~f:ActionStatus.to_value));("EventType",(Option.mapx.eventType~f:EventType.to_value));("ActionHistoryDetails",(Option.mapx.actionHistoryDetails~f:ActionHistoryDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letactionHistoryDetails=(Option.map~f:ActionHistoryDetails.of_xml)(Xml.childxml_arg0"ActionHistoryDetails")inleteventType=(Option.map~f:EventType.of_xml)(Xml.childxml_arg0"EventType")inletstatus=(Option.map~f:ActionStatus.of_xml)(Xml.childxml_arg0"Status")inlettimestamp=(Option.map~f:GenericTimestamp.of_xml)(Xml.childxml_arg0"Timestamp")inmake?actionHistoryDetails?eventType?status?timestamp()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letactionHistoryDetails=field_mapjson__"ActionHistoryDetails"ActionHistoryDetails.of_jsoninleteventType=field_mapjson__"EventType"EventType.of_jsoninletstatus=field_mapjson__"Status"ActionStatus.of_jsoninlettimestamp=field_mapjson__"Timestamp"GenericTimestamp.of_jsoninmake?actionHistoryDetails?eventType?status?timestamp()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The historical records for a budget action."]moduleActionHistories=structtypenonrect=ActionHistory.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ActionHistory.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:ActionHistory.of_xml)letof_jsonj=list_of_json~kind:"ActionHistories"~of_json:ActionHistory.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleActions=structtypenonrect=Action.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Action.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:Action.of_xml)letof_jsonj=list_of_json~kind:"Actions"~of_json:Action.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAdjustmentPeriod=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:60)>>=(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 AdjustmentPeriod"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleAmazonResourceName=structtypenonrect=stringletcontext_="AmazonResourceName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1011)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AmazonResourceName"jletto_json=simple_to_jsonto_valueendmoduleHistoricalOptions=structtypenonrect={budgetAdjustmentPeriod:AdjustmentPeriod.t[@ocaml.doc"The number of budget periods included in the moving-average calculation that determines your auto-adjusted budget amount. The maximum value depends on the TimeUnit granularity of the budget: For the DAILY granularity, the maximum value is 60. For the MONTHLY granularity, the maximum value is 12. For the QUARTERLY granularity, the maximum value is 4. For the ANNUALLY granularity, the maximum value is 1."];lookBackAvailablePeriods:AdjustmentPeriod.toption[@ocaml.doc"The integer that describes how many budget periods in your BudgetAdjustmentPeriod are included in the calculation of your current BudgetLimit. If the first budget period in your BudgetAdjustmentPeriod has no cost data, then that budget period isn\226\128\153t included in the average that determines your budget limit. For example, if you set BudgetAdjustmentPeriod as 4 quarters, but your account had no cost data in the first quarter, then only the last three quarters are included in the calculation. In this scenario, LookBackAvailablePeriods returns 3. You can\226\128\153t set your own LookBackAvailablePeriods. The value is automatically calculated from the BudgetAdjustmentPeriod and your historical cost data."]}letcontext_="HistoricalOptions"letmake?lookBackAvailablePeriods=fun~budgetAdjustmentPeriod->fun()->{lookBackAvailablePeriods;budgetAdjustmentPeriod}letto_valuex=structure_to_value[("BudgetAdjustmentPeriod",(Some(AdjustmentPeriod.to_valuex.budgetAdjustmentPeriod)));("LookBackAvailablePeriods",(Option.mapx.lookBackAvailablePeriods~f:AdjustmentPeriod.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlookBackAvailablePeriods=(Option.map~f:AdjustmentPeriod.of_xml)(Xml.childxml_arg0"LookBackAvailablePeriods")inletbudgetAdjustmentPeriod=AdjustmentPeriod.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetAdjustmentPeriod")inmake?lookBackAvailablePeriods~budgetAdjustmentPeriod()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlookBackAvailablePeriods=field_mapjson__"LookBackAvailablePeriods"AdjustmentPeriod.of_jsoninletbudgetAdjustmentPeriod=field_map_exnjson__"BudgetAdjustmentPeriod"AdjustmentPeriod.of_jsoninmake?lookBackAvailablePeriods~budgetAdjustmentPeriod()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The parameters that define or describe the historical data that your auto-adjusting budget is based on."]moduleAutoAdjustType=structtypenonrect=|HISTORICAL|FORECAST|Non_static_idofstringletmakei=iletto_string=function|HISTORICAL->"HISTORICAL"|FORECAST->"FORECAST"|Non_static_ids->sletof_string=function|"HISTORICAL"->HISTORICAL|"FORECAST"->FORECAST|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 AutoAdjustType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AutoAdjustType"j)letto_json=simple_to_jsonto_valueendmoduleAutoAdjustData=structtypenonrect={autoAdjustType:AutoAdjustType.t[@ocaml.doc"The string that defines whether your budget auto-adjusts based on historical or forecasted data."];historicalOptions:HistoricalOptions.toption[@ocaml.doc"The parameters that define or describe the historical data that your auto-adjusting budget is based on."];lastAutoAdjustTime:GenericTimestamp.toption[@ocaml.doc"The last time that your budget was auto-adjusted."]}letcontext_="AutoAdjustData"letmake?historicalOptions=fun?lastAutoAdjustTime->fun~autoAdjustType->fun()->{historicalOptions;lastAutoAdjustTime;autoAdjustType}letto_valuex=structure_to_value[("AutoAdjustType",(Some(AutoAdjustType.to_valuex.autoAdjustType)));("HistoricalOptions",(Option.mapx.historicalOptions~f:HistoricalOptions.to_value));("LastAutoAdjustTime",(Option.mapx.lastAutoAdjustTime~f:GenericTimestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastAutoAdjustTime=(Option.map~f:GenericTimestamp.of_xml)(Xml.childxml_arg0"LastAutoAdjustTime")inlethistoricalOptions=(Option.map~f:HistoricalOptions.of_xml)(Xml.childxml_arg0"HistoricalOptions")inletautoAdjustType=AutoAdjustType.of_xml(Xml.child_exn~context:context_xml_arg0"AutoAdjustType")inmake?lastAutoAdjustTime?historicalOptions~autoAdjustType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastAutoAdjustTime=field_mapjson__"LastAutoAdjustTime"GenericTimestamp.of_jsoninlethistoricalOptions=field_mapjson__"HistoricalOptions"HistoricalOptions.of_jsoninletautoAdjustType=field_map_exnjson__"AutoAdjustType"AutoAdjustType.of_jsoninmake?lastAutoAdjustTime?historicalOptions~autoAdjustType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The parameters that determine the budget amount for an auto-adjusting budget."]moduleBillingViewArn=structtypenonrect=stringletcontext_="BillingViewArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:20)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\\+=\\.\\-@]{0,75}[a-zA-Z0-9]$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"BillingViewArn"jletto_json=simple_to_jsonto_valueendmoduleBillingViewHealthStatusException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The billing view status must be HEALTHY to perform this action. Try again when the status is HEALTHY."]moduleTimeUnit=structtypenonrect=|DAILY|MONTHLY|QUARTERLY|ANNUALLY|CUSTOM|Non_static_idofstringletmakei=iletto_string=function|DAILY->"DAILY"|MONTHLY->"MONTHLY"|QUARTERLY->"QUARTERLY"|ANNUALLY->"ANNUALLY"|CUSTOM->"CUSTOM"|Non_static_ids->sletof_string=function|"DAILY"->DAILY|"MONTHLY"->MONTHLY|"QUARTERLY"->QUARTERLY|"ANNUALLY"->ANNUALLY|"CUSTOM"->CUSTOM|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 TimeUnit"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TimeUnit"j)letto_json=simple_to_jsonto_valueendmoduleTimePeriod=structtypenonrect={start:GenericTimestamp.toption[@ocaml.doc"The start date for a budget. If you created your budget and didn't specify a start date, Amazon Web Services defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, ANNUALLY, or CUSTOM). For example, if you created your budget on January 24, 2018, chose DAILY, and didn't set a start date, Amazon Web Services set your start date to 01/24/18 00:00 UTC. If you chose MONTHLY, Amazon Web Services set your start date to 01/01/18 00:00 UTC. The defaults are the same for the Billing and Cost Management console and the API. You can change your start date with the UpdateBudget operation."];end_:GenericTimestamp.toption[@ocaml.doc"The end date for a budget. If you didn't specify an end date, Amazon Web Services set your end date to 06/15/87 00:00 UTC. The defaults are the same for the Billing and Cost Management console and the API. After the end date, Amazon Web Services deletes the budget and all the associated notifications and subscribers. You can change your end date with the UpdateBudget operation."]}letmake?start=fun?end_->fun()->{start;end_}letto_valuex=structure_to_value[("Start",(Option.mapx.start~f:GenericTimestamp.to_value));("End",(Option.mapx.end_~f:GenericTimestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letend_=(Option.map~f:GenericTimestamp.of_xml)(Xml.childxml_arg0"End")inletstart=(Option.map~f:GenericTimestamp.of_xml)(Xml.childxml_arg0"Start")inmake?end_?start()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letend_=field_mapjson__"End"GenericTimestamp.of_jsoninletstart=field_mapjson__"Start"GenericTimestamp.of_jsoninmake?end_?start()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The period of time that's covered by a budget. The period has a start date and an end date. The start date must come before the end date. There are no restrictions on the end date."]moduleUnitValue=structtypenonrect=string[@@ocaml.doc"A string that represents the spend unit of a budget. It can't be null or empty."]letcontext_="UnitValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2147483647)>>=(fun()->check_patterni~pattern:".*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"UnitValue"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"A string that represents the spend unit of a budget. It can't be null or empty."]moduleNumericValue=structtypenonrect=string[@@ocaml.doc"A string that represents a numeric value."]letcontext_="NumericValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2147483647)>>=(fun()->check_patterni~pattern:"([0-9]*\\.)?[0-9]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NumericValue"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"A string that represents a numeric value."]moduleSpend=structtypenonrect={amount:NumericValue.t[@ocaml.doc"The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold."];unit:UnitValue.t[@ocaml.doc"The unit of measurement that's used for the budget forecast, actual spend, or budget threshold."]}letcontext_="Spend"letmake~amount=fun~unit->fun()->{amount;unit}letto_valuex=structure_to_value[("Amount",(Some(NumericValue.to_valuex.amount)));("Unit",(Some(UnitValue.to_valuex.unit)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunit=UnitValue.of_xml(Xml.child_exn~context:context_xml_arg0"Unit")inletamount=NumericValue.of_xml(Xml.child_exn~context:context_xml_arg0"Amount")inmake~unit~amount()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunit=field_map_exnjson__"Unit"UnitValue.of_jsoninletamount=field_map_exnjson__"Amount"NumericValue.of_jsoninmake~unit~amount()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The amount of cost or usage that's measured for a budget. Cost example: A Spend for 3 USD of costs has the following parameters: An Amount of 3 A Unit of USD Usage example: A Spend for 3 GB of S3 usage has the following parameters: An Amount of 3 A Unit of GB"]modulePlannedBudgetLimits=structtypenonrect=(GenericString.t*Spend.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types GenericString Spend"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(GenericString.to_valuex)|>(funx->(Spend.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:GenericString.of_string~of_json:Spend.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMetric=structtypenonrect=|BlendedCost|UnblendedCost|AmortizedCost|NetUnblendedCost|NetAmortizedCost|UsageQuantity|NormalizedUsageAmount|Hours|Non_static_idofstringletmakei=iletto_string=function|BlendedCost->"BlendedCost"|UnblendedCost->"UnblendedCost"|AmortizedCost->"AmortizedCost"|NetUnblendedCost->"NetUnblendedCost"|NetAmortizedCost->"NetAmortizedCost"|UsageQuantity->"UsageQuantity"|NormalizedUsageAmount->"NormalizedUsageAmount"|Hours->"Hours"|Non_static_ids->sletof_string=function|"BlendedCost"->BlendedCost|"UnblendedCost"->UnblendedCost|"AmortizedCost"->AmortizedCost|"NetUnblendedCost"->NetUnblendedCost|"NetAmortizedCost"->NetAmortizedCost|"UsageQuantity"->UsageQuantity|"NormalizedUsageAmount"->NormalizedUsageAmount|"Hours"->Hours|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 Metric"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Metric"j)letto_json=simple_to_jsonto_valueendmoduleMetrics=structtypenonrect=Metric.tlistletmakei=letopenResultinok_or_failwith(check_list_maxi~max:1);iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Metric.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:Metric.of_xml)letof_jsonj=list_of_json~kind:"Metrics"~of_json:Metric.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleHealthStatusValue=structtypenonrect=|HEALTHY|UNHEALTHY|Non_static_idofstringletmakei=iletto_string=function|HEALTHY->"HEALTHY"|UNHEALTHY->"UNHEALTHY"|Non_static_ids->sletof_string=function|"HEALTHY"->HEALTHY|"UNHEALTHY"->UNHEALTHY|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 HealthStatusValue"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"HealthStatusValue"j)letto_json=simple_to_jsonto_valueendmoduleHealthStatusReason=structtypenonrect=|BILLING_VIEW_NO_ACCESS|BILLING_VIEW_UNHEALTHY|FILTER_INVALID|MULTI_YEAR_HISTORICAL_DATA_DISABLED|Non_static_idofstringletmakei=iletto_string=function|BILLING_VIEW_NO_ACCESS->"BILLING_VIEW_NO_ACCESS"|BILLING_VIEW_UNHEALTHY->"BILLING_VIEW_UNHEALTHY"|FILTER_INVALID->"FILTER_INVALID"|MULTI_YEAR_HISTORICAL_DATA_DISABLED->"MULTI_YEAR_HISTORICAL_DATA_DISABLED"|Non_static_ids->sletof_string=function|"BILLING_VIEW_NO_ACCESS"->BILLING_VIEW_NO_ACCESS|"BILLING_VIEW_UNHEALTHY"->BILLING_VIEW_UNHEALTHY|"FILTER_INVALID"->FILTER_INVALID|"MULTI_YEAR_HISTORICAL_DATA_DISABLED"->MULTI_YEAR_HISTORICAL_DATA_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 HealthStatusReason"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"HealthStatusReason"j)letto_json=simple_to_jsonto_valueendmoduleHealthStatus=structtypenonrect={status:HealthStatusValue.toption[@ocaml.doc"The current status of the billing view resource."];statusReason:HealthStatusReason.toption[@ocaml.doc"The reason for the current status. BILLING_VIEW_NO_ACCESS: The billing view resource does not grant billing:GetBillingViewData permission to this account. BILLING_VIEW_UNHEALTHY: The billing view associated with the budget is unhealthy. FILTER_INVALID: The filter contains reference to an account you do not have access to. MULTI_YEAR_HISTORICAL_DATA_DISABLED: The budget is not being updated. Enable multi-year historical data in your Cost Management preferences."];lastUpdatedTime:GenericTimestamp.toption}letmake?status=fun?statusReason->fun?lastUpdatedTime->fun()->{status;statusReason;lastUpdatedTime}letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:HealthStatusValue.to_value));("StatusReason",(Option.mapx.statusReason~f:HealthStatusReason.to_value));("LastUpdatedTime",(Option.mapx.lastUpdatedTime~f:GenericTimestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastUpdatedTime=(Option.map~f:GenericTimestamp.of_xml)(Xml.childxml_arg0"LastUpdatedTime")inletstatusReason=(Option.map~f:HealthStatusReason.of_xml)(Xml.childxml_arg0"StatusReason")inletstatus=(Option.map~f:HealthStatusValue.of_xml)(Xml.childxml_arg0"Status")inmake?lastUpdatedTime?statusReason?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastUpdatedTime=field_mapjson__"LastUpdatedTime"GenericTimestamp.of_jsoninletstatusReason=field_mapjson__"StatusReason"HealthStatusReason.of_jsoninletstatus=field_mapjson__"Status"HealthStatusValue.of_jsoninmake?lastUpdatedTime?statusReason?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides information about the current operational state of a billing view resource, including its ability to access and update based on its associated billing view."]moduleValue=structtypenonrect=stringletcontext_="Value"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:"[\\S\\s]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Value"jletto_json=simple_to_jsonto_valueendmoduleValues=structtypenonrect=Value.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:Value.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:Value.of_xml)letof_jsonj=list_of_json~kind:"Values"~of_json:Value.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:"[\\S\\s]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleMatchOption=structtypenonrect=|EQUALS|ABSENT|STARTS_WITH|ENDS_WITH|CONTAINS|GREATER_THAN_OR_EQUAL|CASE_SENSITIVE|CASE_INSENSITIVE|Non_static_idofstringletmakei=iletto_string=function|EQUALS->"EQUALS"|ABSENT->"ABSENT"|STARTS_WITH->"STARTS_WITH"|ENDS_WITH->"ENDS_WITH"|CONTAINS->"CONTAINS"|GREATER_THAN_OR_EQUAL->"GREATER_THAN_OR_EQUAL"|CASE_SENSITIVE->"CASE_SENSITIVE"|CASE_INSENSITIVE->"CASE_INSENSITIVE"|Non_static_ids->sletof_string=function|"EQUALS"->EQUALS|"ABSENT"->ABSENT|"STARTS_WITH"->STARTS_WITH|"ENDS_WITH"->ENDS_WITH|"CONTAINS"->CONTAINS|"GREATER_THAN_OR_EQUAL"->GREATER_THAN_OR_EQUAL|"CASE_SENSITIVE"->CASE_SENSITIVE|"CASE_INSENSITIVE"->CASE_INSENSITIVE|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 MatchOption"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MatchOption"j)letto_json=simple_to_jsonto_valueendmoduleMatchOptions=structtypenonrect=MatchOption.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MatchOption.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:MatchOption.of_xml)letof_jsonj=list_of_json~kind:"MatchOptions"~of_json:MatchOption.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagValues=structtypenonrect={key:TagKey.toption[@ocaml.doc"The key for the tag."];values:Values.toption[@ocaml.doc"The specific value of the tag."];matchOptions:MatchOptions.toption[@ocaml.doc"The match options that you can use to filter your results."]}letmake?key=fun?values->fun?matchOptions->fun()->{key;values;matchOptions}letto_valuex=structure_to_value[("Key",(Option.mapx.key~f:TagKey.to_value));("Values",(Option.mapx.values~f:Values.to_value));("MatchOptions",(Option.mapx.matchOptions~f:MatchOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmatchOptions=(Option.map~f:MatchOptions.of_xml)(Xml.childxml_arg0"MatchOptions")inletvalues=(Option.map~f:Values.of_xml)(Xml.childxml_arg0"Values")inletkey=(Option.map~f:TagKey.of_xml)(Xml.childxml_arg0"Key")inmake?matchOptions?values?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmatchOptions=field_mapjson__"MatchOptions"MatchOptions.of_jsoninletvalues=field_mapjson__"Values"Values.of_jsoninletkey=field_mapjson__"Key"TagKey.of_jsoninmake?matchOptions?values?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The values that are available for a tag."]moduleDimension=structtypenonrect=|AZ|INSTANCE_TYPE|LINKED_ACCOUNT|LINKED_ACCOUNT_NAME|OPERATION|PURCHASE_TYPE|REGION|SERVICE|SERVICE_CODE|USAGE_TYPE|USAGE_TYPE_GROUP|RECORD_TYPE|OPERATING_SYSTEM|TENANCY|SCOPE|PLATFORM|SUBSCRIPTION_ID|LEGAL_ENTITY_NAME|INVOICING_ENTITY|DEPLOYMENT_OPTION|DATABASE_ENGINE|CACHE_ENGINE|INSTANCE_TYPE_FAMILY|BILLING_ENTITY|RESERVATION_ID|RESOURCE_ID|RIGHTSIZING_TYPE|SAVINGS_PLANS_TYPE|SAVINGS_PLAN_ARN|PAYMENT_OPTION|RESERVATION_MODIFIED|TAG_KEY|COST_CATEGORY_NAME|Non_static_idofstringletmakei=iletto_string=function|AZ->"AZ"|INSTANCE_TYPE->"INSTANCE_TYPE"|LINKED_ACCOUNT->"LINKED_ACCOUNT"|LINKED_ACCOUNT_NAME->"LINKED_ACCOUNT_NAME"|OPERATION->"OPERATION"|PURCHASE_TYPE->"PURCHASE_TYPE"|REGION->"REGION"|SERVICE->"SERVICE"|SERVICE_CODE->"SERVICE_CODE"|USAGE_TYPE->"USAGE_TYPE"|USAGE_TYPE_GROUP->"USAGE_TYPE_GROUP"|RECORD_TYPE->"RECORD_TYPE"|OPERATING_SYSTEM->"OPERATING_SYSTEM"|TENANCY->"TENANCY"|SCOPE->"SCOPE"|PLATFORM->"PLATFORM"|SUBSCRIPTION_ID->"SUBSCRIPTION_ID"|LEGAL_ENTITY_NAME->"LEGAL_ENTITY_NAME"|INVOICING_ENTITY->"INVOICING_ENTITY"|DEPLOYMENT_OPTION->"DEPLOYMENT_OPTION"|DATABASE_ENGINE->"DATABASE_ENGINE"|CACHE_ENGINE->"CACHE_ENGINE"|INSTANCE_TYPE_FAMILY->"INSTANCE_TYPE_FAMILY"|BILLING_ENTITY->"BILLING_ENTITY"|RESERVATION_ID->"RESERVATION_ID"|RESOURCE_ID->"RESOURCE_ID"|RIGHTSIZING_TYPE->"RIGHTSIZING_TYPE"|SAVINGS_PLANS_TYPE->"SAVINGS_PLANS_TYPE"|SAVINGS_PLAN_ARN->"SAVINGS_PLAN_ARN"|PAYMENT_OPTION->"PAYMENT_OPTION"|RESERVATION_MODIFIED->"RESERVATION_MODIFIED"|TAG_KEY->"TAG_KEY"|COST_CATEGORY_NAME->"COST_CATEGORY_NAME"|Non_static_ids->sletof_string=function|"AZ"->AZ|"INSTANCE_TYPE"->INSTANCE_TYPE|"LINKED_ACCOUNT"->LINKED_ACCOUNT|"LINKED_ACCOUNT_NAME"->LINKED_ACCOUNT_NAME|"OPERATION"->OPERATION|"PURCHASE_TYPE"->PURCHASE_TYPE|"REGION"->REGION|"SERVICE"->SERVICE|"SERVICE_CODE"->SERVICE_CODE|"USAGE_TYPE"->USAGE_TYPE|"USAGE_TYPE_GROUP"->USAGE_TYPE_GROUP|"RECORD_TYPE"->RECORD_TYPE|"OPERATING_SYSTEM"->OPERATING_SYSTEM|"TENANCY"->TENANCY|"SCOPE"->SCOPE|"PLATFORM"->PLATFORM|"SUBSCRIPTION_ID"->SUBSCRIPTION_ID|"LEGAL_ENTITY_NAME"->LEGAL_ENTITY_NAME|"INVOICING_ENTITY"->INVOICING_ENTITY|"DEPLOYMENT_OPTION"->DEPLOYMENT_OPTION|"DATABASE_ENGINE"->DATABASE_ENGINE|"CACHE_ENGINE"->CACHE_ENGINE|"INSTANCE_TYPE_FAMILY"->INSTANCE_TYPE_FAMILY|"BILLING_ENTITY"->BILLING_ENTITY|"RESERVATION_ID"->RESERVATION_ID|"RESOURCE_ID"->RESOURCE_ID|"RIGHTSIZING_TYPE"->RIGHTSIZING_TYPE|"SAVINGS_PLANS_TYPE"->SAVINGS_PLANS_TYPE|"SAVINGS_PLAN_ARN"->SAVINGS_PLAN_ARN|"PAYMENT_OPTION"->PAYMENT_OPTION|"RESERVATION_MODIFIED"->RESERVATION_MODIFIED|"TAG_KEY"->TAG_KEY|"COST_CATEGORY_NAME"->COST_CATEGORY_NAME|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 Dimension"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Dimension"j)letto_json=simple_to_jsonto_valueendmoduleExpressionDimensionValues=structtypenonrect={key:Dimension.t[@ocaml.doc"The name of the dimension that you want to filter on."];values:Values.t[@ocaml.doc"The metadata values you can specify to filter upon, so that the results all match at least one of the specified values."];matchOptions:MatchOptions.toption[@ocaml.doc"The match options that you can use to filter your results. You can specify only one of these values in the array."]}letcontext_="ExpressionDimensionValues"letmake?matchOptions=fun~key->fun~values->fun()->{matchOptions;key;values}letto_valuex=structure_to_value[("Key",(Some(Dimension.to_valuex.key)));("Values",(Some(Values.to_valuex.values)));("MatchOptions",(Option.mapx.matchOptions~f:MatchOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmatchOptions=(Option.map~f:MatchOptions.of_xml)(Xml.childxml_arg0"MatchOptions")inletvalues=Values.of_xml(Xml.child_exn~context:context_xml_arg0"Values")inletkey=Dimension.of_xml(Xml.child_exn~context:context_xml_arg0"Key")inmake?matchOptions~values~key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmatchOptions=field_mapjson__"MatchOptions"MatchOptions.of_jsoninletvalues=field_map_exnjson__"Values"Values.of_jsoninletkey=field_map_exnjson__"Key"Dimension.of_jsoninmake?matchOptions~values~key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the specifications for the filters to use for your request."]moduleCostCategoryName=structtypenonrect=stringletcontext_="CostCategoryName"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:"CostCategoryName"jletto_json=simple_to_jsonto_valueendmoduleCostCategoryValues=structtypenonrect={key:CostCategoryName.toption[@ocaml.doc"The unique name of the cost category."];values:Values.toption[@ocaml.doc"The specific value of the cost category."];matchOptions:MatchOptions.toption[@ocaml.doc"The match options that you can use to filter your results."]}letmake?key=fun?values->fun?matchOptions->fun()->{key;values;matchOptions}letto_valuex=structure_to_value[("Key",(Option.mapx.key~f:CostCategoryName.to_value));("Values",(Option.mapx.values~f:Values.to_value));("MatchOptions",(Option.mapx.matchOptions~f:MatchOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmatchOptions=(Option.map~f:MatchOptions.of_xml)(Xml.childxml_arg0"MatchOptions")inletvalues=(Option.map~f:Values.of_xml)(Xml.childxml_arg0"Values")inletkey=(Option.map~f:CostCategoryName.of_xml)(Xml.childxml_arg0"Key")inmake?matchOptions?values?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmatchOptions=field_mapjson__"MatchOptions"MatchOptions.of_jsoninletvalues=field_mapjson__"Values"Values.of_jsoninletkey=field_mapjson__"Key"CostCategoryName.of_jsoninmake?matchOptions?values?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The cost category values used for filtering the costs."]modulerecExpression:sigtypenonrect={or_:Expressions.toption[@ocaml.doc"Return results that match either Dimension object."];and_:Expressions.toption[@ocaml.doc"Return results that match both Dimension objects."];not:Expression.toption[@ocaml.doc"Return results that don't match a Dimension object."];dimensions:ExpressionDimensionValues.toption[@ocaml.doc"The specific Dimension to use for Expression."];tags:TagValues.toption[@ocaml.doc"The specific Tag to use for Expression."];costCategories:CostCategoryValues.toption[@ocaml.doc"The filter that's based on CostCategoryValues."]}valmake:?or_:Expressions.t->?and_:Expressions.t->?not:Expression.t->?dimensions:ExpressionDimensionValues.t->?tags:TagValues.t->?costCategories:CostCategoryValues.t->unit->tvalto_value:t->Botodata.valuevalto_query:t->Client.Query.tvalof_xml:Xml.t->tvalof_json:Yojson.Safe.t->tvalto_json:t->Yojson.Safe.tend=structtypenonrect={or_:Expressions.toption[@ocaml.doc"Return results that match either Dimension object."];and_:Expressions.toption[@ocaml.doc"Return results that match both Dimension objects."];not:Expression.toption[@ocaml.doc"Return results that don't match a Dimension object."];dimensions:ExpressionDimensionValues.toption[@ocaml.doc"The specific Dimension to use for Expression."];tags:TagValues.toption[@ocaml.doc"The specific Tag to use for Expression."];costCategories:CostCategoryValues.toption[@ocaml.doc"The filter that's based on CostCategoryValues."]}letmake?or_=fun?and_->fun?not->fun?dimensions->fun?tags->fun?costCategories->fun()->{or_;and_;not;dimensions;tags;costCategories}letto_valuex=structure_to_value[("Or",(Option.mapx.or_~f:Expressions.to_value));("And",(Option.mapx.and_~f:Expressions.to_value));("Not",(Option.mapx.not~f:Expression.to_value));("Dimensions",(Option.mapx.dimensions~f:ExpressionDimensionValues.to_value));("Tags",(Option.mapx.tags~f:TagValues.to_value));("CostCategories",(Option.mapx.costCategories~f:CostCategoryValues.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcostCategories=(Option.map~f:CostCategoryValues.of_xml)(Xml.childxml_arg0"CostCategories")inlettags=(Option.map~f:TagValues.of_xml)(Xml.childxml_arg0"Tags")inletdimensions=(Option.map~f:ExpressionDimensionValues.of_xml)(Xml.childxml_arg0"Dimensions")inletnot=(Option.map~f:Expression.of_xml)(Xml.childxml_arg0"Not")inletand_=(Option.map~f:Expressions.of_xml)(Xml.childxml_arg0"And")inletor_=(Option.map~f:Expressions.of_xml)(Xml.childxml_arg0"Or")inmake?costCategories?tags?dimensions?not?and_?or_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcostCategories=field_mapjson__"CostCategories"CostCategoryValues.of_jsoninlettags=field_mapjson__"Tags"TagValues.of_jsoninletdimensions=field_mapjson__"Dimensions"ExpressionDimensionValues.of_jsoninletnot=field_mapjson__"Not"Expression.of_jsoninletand_=field_mapjson__"And"Expressions.of_jsoninletor_=field_mapjson__"Or"Expressions.of_jsoninmake?costCategories?tags?dimensions?not?and_?or_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use Expression to filter in various Budgets APIs."]andExpressions:sigtypenonrect=Expression.tlistvalmake:Expression.tlist->tvalto_value:t->Botodata.valuevalto_query:t->Client.Query.tvalof_xml:Xml.t->Expression.tlistvalof_json:Yojson.Safe.t->tvalto_json:t->Yojson.Safe.tvalto_header:t->stringend=structtypenonrect=Expression.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Expression.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:Expression.of_xml)letof_jsonj=list_of_json~kind:"Expressions"~of_json:Expression.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNullableBoolean=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_valueendmoduleCostTypes=structtypenonrect={includeTax:NullableBoolean.toption[@ocaml.doc"Specifies whether a budget includes taxes. The default value is true."];includeSubscription:NullableBoolean.toption[@ocaml.doc"Specifies whether a budget includes subscriptions. The default value is true."];useBlended:NullableBoolean.toption[@ocaml.doc"Specifies whether a budget uses a blended rate. The default value is false."];includeRefund:NullableBoolean.toption[@ocaml.doc"Specifies whether a budget includes refunds. The default value is true."];includeCredit:NullableBoolean.toption[@ocaml.doc"Specifies whether a budget includes credits. The default value is true."];includeUpfront:NullableBoolean.toption[@ocaml.doc"Specifies whether a budget includes upfront RI costs. The default value is true."];includeRecurring:NullableBoolean.toption[@ocaml.doc"Specifies whether a budget includes recurring fees such as monthly RI fees. The default value is true."];includeOtherSubscription:NullableBoolean.toption[@ocaml.doc"Specifies whether a budget includes non-RI subscription costs. The default value is true."];includeSupport:NullableBoolean.toption[@ocaml.doc"Specifies whether a budget includes support subscription fees. The default value is true."];includeDiscount:NullableBoolean.toption[@ocaml.doc"Specifies whether a budget includes discounts. The default value is true."];useAmortized:NullableBoolean.toption[@ocaml.doc"Specifies whether a budget uses the amortized rate. The default value is false."]}letmake?includeTax=fun?includeSubscription->fun?useBlended->fun?includeRefund->fun?includeCredit->fun?includeUpfront->fun?includeRecurring->fun?includeOtherSubscription->fun?includeSupport->fun?includeDiscount->fun?useAmortized->fun()->{includeTax;includeSubscription;useBlended;includeRefund;includeCredit;includeUpfront;includeRecurring;includeOtherSubscription;includeSupport;includeDiscount;useAmortized}letto_valuex=structure_to_value[("IncludeTax",(Option.mapx.includeTax~f:NullableBoolean.to_value));("IncludeSubscription",(Option.mapx.includeSubscription~f:NullableBoolean.to_value));("UseBlended",(Option.mapx.useBlended~f:NullableBoolean.to_value));("IncludeRefund",(Option.mapx.includeRefund~f:NullableBoolean.to_value));("IncludeCredit",(Option.mapx.includeCredit~f:NullableBoolean.to_value));("IncludeUpfront",(Option.mapx.includeUpfront~f:NullableBoolean.to_value));("IncludeRecurring",(Option.mapx.includeRecurring~f:NullableBoolean.to_value));("IncludeOtherSubscription",(Option.mapx.includeOtherSubscription~f:NullableBoolean.to_value));("IncludeSupport",(Option.mapx.includeSupport~f:NullableBoolean.to_value));("IncludeDiscount",(Option.mapx.includeDiscount~f:NullableBoolean.to_value));("UseAmortized",(Option.mapx.useAmortized~f:NullableBoolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuseAmortized=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"UseAmortized")inletincludeDiscount=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"IncludeDiscount")inletincludeSupport=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"IncludeSupport")inletincludeOtherSubscription=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"IncludeOtherSubscription")inletincludeRecurring=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"IncludeRecurring")inletincludeUpfront=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"IncludeUpfront")inletincludeCredit=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"IncludeCredit")inletincludeRefund=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"IncludeRefund")inletuseBlended=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"UseBlended")inletincludeSubscription=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"IncludeSubscription")inletincludeTax=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"IncludeTax")inmake?useAmortized?includeDiscount?includeSupport?includeOtherSubscription?includeRecurring?includeUpfront?includeCredit?includeRefund?useBlended?includeSubscription?includeTax()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuseAmortized=field_mapjson__"UseAmortized"NullableBoolean.of_jsoninletincludeDiscount=field_mapjson__"IncludeDiscount"NullableBoolean.of_jsoninletincludeSupport=field_mapjson__"IncludeSupport"NullableBoolean.of_jsoninletincludeOtherSubscription=field_mapjson__"IncludeOtherSubscription"NullableBoolean.of_jsoninletincludeRecurring=field_mapjson__"IncludeRecurring"NullableBoolean.of_jsoninletincludeUpfront=field_mapjson__"IncludeUpfront"NullableBoolean.of_jsoninletincludeCredit=field_mapjson__"IncludeCredit"NullableBoolean.of_jsoninletincludeRefund=field_mapjson__"IncludeRefund"NullableBoolean.of_jsoninletuseBlended=field_mapjson__"UseBlended"NullableBoolean.of_jsoninletincludeSubscription=field_mapjson__"IncludeSubscription"NullableBoolean.of_jsoninletincludeTax=field_mapjson__"IncludeTax"NullableBoolean.of_jsoninmake?useAmortized?includeDiscount?includeSupport?includeOtherSubscription?includeRecurring?includeUpfront?includeCredit?includeRefund?useBlended?includeSubscription?includeTax()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The types of cost that are included in a COST budget, such as tax and subscriptions. USAGE, RI_UTILIZATION, RI_COVERAGE, SAVINGS_PLANS_UTILIZATION, and SAVINGS_PLANS_COVERAGE budgets don't have CostTypes."]moduleDimensionValue=structtypenonrect=stringletcontext_="DimensionValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:2147483647)>>=(fun()->check_patterni~pattern:"[\\S\\s]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DimensionValue"jletto_json=simple_to_jsonto_valueendmoduleDimensionValues=structtypenonrect=DimensionValue.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DimensionValue.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:DimensionValue.of_xml)letof_jsonj=list_of_json~kind:"DimensionValues"~of_json:DimensionValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCostFilters=structtypenonrect=(GenericString.t*DimensionValues.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types GenericString DimensionValues"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(GenericString.to_valuex)|>(funx->(DimensionValues.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:GenericString.of_string~of_json:DimensionValues.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCalculatedSpend=structtypenonrect={actualSpend:Spend.t[@ocaml.doc"The amount of cost, usage, RI units, or Savings Plans units that you used."];forecastedSpend:Spend.toption[@ocaml.doc"The amount of cost, usage, RI units, or Savings Plans units that you're forecasted to use."]}letcontext_="CalculatedSpend"letmake?forecastedSpend=fun~actualSpend->fun()->{forecastedSpend;actualSpend}letto_valuex=structure_to_value[("ActualSpend",(Some(Spend.to_valuex.actualSpend)));("ForecastedSpend",(Option.mapx.forecastedSpend~f:Spend.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letforecastedSpend=(Option.map~f:Spend.of_xml)(Xml.childxml_arg0"ForecastedSpend")inletactualSpend=Spend.of_xml(Xml.child_exn~context:context_xml_arg0"ActualSpend")inmake?forecastedSpend~actualSpend()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letforecastedSpend=field_mapjson__"ForecastedSpend"Spend.of_jsoninletactualSpend=field_map_exnjson__"ActualSpend"Spend.of_jsoninmake?forecastedSpend~actualSpend()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The spend objects that are associated with this budget. The actualSpend tracks how much you've used, cost, usage, RI units, or Savings Plans units and the forecastedSpend tracks how much that you're predicted to spend based on your historical usage profile. For example, if it's the 20th of the month and you have spent 50 dollars on Amazon EC2, your actualSpend is 50 USD, and your forecastedSpend is 75 USD."]moduleBudgetType=structtypenonrect=|USAGE|COST|RI_UTILIZATION|RI_COVERAGE|SAVINGS_PLANS_UTILIZATION|SAVINGS_PLANS_COVERAGE|Non_static_idofstringletmakei=iletto_string=function|USAGE->"USAGE"|COST->"COST"|RI_UTILIZATION->"RI_UTILIZATION"|RI_COVERAGE->"RI_COVERAGE"|SAVINGS_PLANS_UTILIZATION->"SAVINGS_PLANS_UTILIZATION"|SAVINGS_PLANS_COVERAGE->"SAVINGS_PLANS_COVERAGE"|Non_static_ids->sletof_string=function|"USAGE"->USAGE|"COST"->COST|"RI_UTILIZATION"->RI_UTILIZATION|"RI_COVERAGE"->RI_COVERAGE|"SAVINGS_PLANS_UTILIZATION"->SAVINGS_PLANS_UTILIZATION|"SAVINGS_PLANS_COVERAGE"->SAVINGS_PLANS_COVERAGE|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 BudgetType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"BudgetType"j)letto_json=simple_to_jsonto_valueendmoduleBudget=structtypenonrect={budgetName:BudgetName.t[@ocaml.doc"The name of a budget. The name must be unique within an account. The : and \\ characters, and the \"/action/\" substring, aren't allowed in BudgetName."];budgetLimit:Spend.toption[@ocaml.doc"The total amount of cost, usage, RI utilization, RI coverage, Savings Plans utilization, or Savings Plans coverage that you want to track with your budget. BudgetLimit is required for cost or usage budgets, but optional for RI or Savings Plans utilization or coverage budgets. RI and Savings Plans utilization or coverage budgets default to 100. This is the only valid value for RI or Savings Plans utilization or coverage budgets. You can't use BudgetLimit with PlannedBudgetLimits for CreateBudget and UpdateBudget actions."];plannedBudgetLimits:PlannedBudgetLimits.toption[@ocaml.doc"A map containing multiple BudgetLimit, including current or future limits. PlannedBudgetLimits is available for cost or usage budget and supports both monthly and quarterly TimeUnit. For monthly budgets, provide 12 months of PlannedBudgetLimits values. This must start from the current month and include the next 11 months. The key is the start of the month, UTC in epoch seconds. For quarterly budgets, provide four quarters of PlannedBudgetLimits value entries in standard calendar quarter increments. This must start from the current quarter and include the next three quarters. The key is the start of the quarter, UTC in epoch seconds. If the planned budget expires before 12 months for monthly or four quarters for quarterly, provide the PlannedBudgetLimits values only for the remaining periods. If the budget begins at a date in the future, provide PlannedBudgetLimits values from the start date of the budget. After all of the BudgetLimit values in PlannedBudgetLimits are used, the budget continues to use the last limit as the BudgetLimit. At that point, the planned budget provides the same experience as a fixed budget. DescribeBudget and DescribeBudgets response along with PlannedBudgetLimits also contain BudgetLimit representing the current month or quarter limit present in PlannedBudgetLimits. This only applies to budgets that are created with PlannedBudgetLimits. Budgets that are created without PlannedBudgetLimits only contain BudgetLimit. They don't contain PlannedBudgetLimits."];costFilters:CostFilters.toption[@ocaml.doc"The cost filters, such as Region, Service, LinkedAccount, Tag, or CostCategory, that are applied to a budget. Amazon Web Services Budgets supports the following services as a Service filter for RI budgets: Amazon EC2 Amazon Redshift Amazon Relational Database Service Amazon ElastiCache Amazon OpenSearch Service"];costTypes:CostTypes.toption[@ocaml.doc"The types of costs that are included in this COST budget. USAGE, RI_UTILIZATION, RI_COVERAGE, SAVINGS_PLANS_UTILIZATION, and SAVINGS_PLANS_COVERAGE budgets do not have CostTypes."];timeUnit:TimeUnit.t[@ocaml.doc"The length of time until a budget resets the actual and forecasted spend."];timePeriod:TimePeriod.toption[@ocaml.doc"The period of time that's covered by a budget. You set the start date and end date. The start date must come before the end date. The end date must come before 06/15/87 00:00 UTC. If you create your budget and don't specify a start date, Amazon Web Services defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, ANNUALLY, or CUSTOM). For example, if you created your budget on January 24, 2018, chose DAILY, and didn't set a start date, Amazon Web Services set your start date to 01/24/18 00:00 UTC. If you chose MONTHLY, Amazon Web Services set your start date to 01/01/18 00:00 UTC. If you didn't specify an end date, Amazon Web Services set your end date to 06/15/87 00:00 UTC. The defaults are the same for the Billing and Cost Management console and the API. You can change either date with the UpdateBudget operation. After the end date, Amazon Web Services deletes the budget and all the associated notifications and subscribers."];calculatedSpend:CalculatedSpend.toption[@ocaml.doc"The actual and forecasted cost or usage that the budget tracks."];budgetType:BudgetType.t[@ocaml.doc"Specifies whether this budget tracks costs, usage, RI utilization, RI coverage, Savings Plans utilization, or Savings Plans coverage."];lastUpdatedTime:GenericTimestamp.toption[@ocaml.doc"The last time that you updated this budget."];autoAdjustData:AutoAdjustData.toption[@ocaml.doc"The parameters that determine the budget amount for an auto-adjusting budget."];filterExpression:Expression.toption[@ocaml.doc"The filtering dimensions for the budget and their corresponding values."];metrics:Metrics.toption[@ocaml.doc"The definition for how the budget data is aggregated."];billingViewArn:BillingViewArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that uniquely identifies a specific billing view. The ARN is used to specify which particular billing view you want to interact with or retrieve information from when making API calls related to Amazon Web Services Billing and Cost Management features. The BillingViewArn can be retrieved by calling the ListBillingViews API."];healthStatus:HealthStatus.toption[@ocaml.doc"The current operational state of a Billing View derived resource."]}letcontext_="Budget"letmake?budgetLimit=fun?plannedBudgetLimits->fun?costFilters->fun?costTypes->fun?timePeriod->fun?calculatedSpend->fun?lastUpdatedTime->fun?autoAdjustData->fun?filterExpression->fun?metrics->fun?billingViewArn->fun?healthStatus->fun~budgetName->fun~timeUnit->fun~budgetType->fun()->{budgetLimit;plannedBudgetLimits;costFilters;costTypes;timePeriod;calculatedSpend;lastUpdatedTime;autoAdjustData;filterExpression;metrics;billingViewArn;healthStatus;budgetName;timeUnit;budgetType}letto_valuex=structure_to_value[("BudgetName",(Some(BudgetName.to_valuex.budgetName)));("BudgetLimit",(Option.mapx.budgetLimit~f:Spend.to_value));("PlannedBudgetLimits",(Option.mapx.plannedBudgetLimits~f:PlannedBudgetLimits.to_value));("CostFilters",(Option.mapx.costFilters~f:CostFilters.to_value));("CostTypes",(Option.mapx.costTypes~f:CostTypes.to_value));("TimeUnit",(Some(TimeUnit.to_valuex.timeUnit)));("TimePeriod",(Option.mapx.timePeriod~f:TimePeriod.to_value));("CalculatedSpend",(Option.mapx.calculatedSpend~f:CalculatedSpend.to_value));("BudgetType",(Some(BudgetType.to_valuex.budgetType)));("LastUpdatedTime",(Option.mapx.lastUpdatedTime~f:GenericTimestamp.to_value));("AutoAdjustData",(Option.mapx.autoAdjustData~f:AutoAdjustData.to_value));("FilterExpression",(Option.mapx.filterExpression~f:Expression.to_value));("Metrics",(Option.mapx.metrics~f:Metrics.to_value));("BillingViewArn",(Option.mapx.billingViewArn~f:BillingViewArn.to_value));("HealthStatus",(Option.mapx.healthStatus~f:HealthStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethealthStatus=(Option.map~f:HealthStatus.of_xml)(Xml.childxml_arg0"HealthStatus")inletbillingViewArn=(Option.map~f:BillingViewArn.of_xml)(Xml.childxml_arg0"BillingViewArn")inletmetrics=(Option.map~f:Metrics.of_xml)(Xml.childxml_arg0"Metrics")inletfilterExpression=(Option.map~f:Expression.of_xml)(Xml.childxml_arg0"FilterExpression")inletautoAdjustData=(Option.map~f:AutoAdjustData.of_xml)(Xml.childxml_arg0"AutoAdjustData")inletlastUpdatedTime=(Option.map~f:GenericTimestamp.of_xml)(Xml.childxml_arg0"LastUpdatedTime")inletbudgetType=BudgetType.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetType")inletcalculatedSpend=(Option.map~f:CalculatedSpend.of_xml)(Xml.childxml_arg0"CalculatedSpend")inlettimePeriod=(Option.map~f:TimePeriod.of_xml)(Xml.childxml_arg0"TimePeriod")inlettimeUnit=TimeUnit.of_xml(Xml.child_exn~context:context_xml_arg0"TimeUnit")inletcostTypes=(Option.map~f:CostTypes.of_xml)(Xml.childxml_arg0"CostTypes")inletcostFilters=(Option.map~f:CostFilters.of_xml)(Xml.childxml_arg0"CostFilters")inletplannedBudgetLimits=(Option.map~f:PlannedBudgetLimits.of_xml)(Xml.childxml_arg0"PlannedBudgetLimits")inletbudgetLimit=(Option.map~f:Spend.of_xml)(Xml.childxml_arg0"BudgetLimit")inletbudgetName=BudgetName.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetName")inmake?healthStatus?billingViewArn?metrics?filterExpression?autoAdjustData?lastUpdatedTime~budgetType?calculatedSpend?timePeriod~timeUnit?costTypes?costFilters?plannedBudgetLimits?budgetLimit~budgetName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethealthStatus=field_mapjson__"HealthStatus"HealthStatus.of_jsoninletbillingViewArn=field_mapjson__"BillingViewArn"BillingViewArn.of_jsoninletmetrics=field_mapjson__"Metrics"Metrics.of_jsoninletfilterExpression=field_mapjson__"FilterExpression"Expression.of_jsoninletautoAdjustData=field_mapjson__"AutoAdjustData"AutoAdjustData.of_jsoninletlastUpdatedTime=field_mapjson__"LastUpdatedTime"GenericTimestamp.of_jsoninletbudgetType=field_map_exnjson__"BudgetType"BudgetType.of_jsoninletcalculatedSpend=field_mapjson__"CalculatedSpend"CalculatedSpend.of_jsoninlettimePeriod=field_mapjson__"TimePeriod"TimePeriod.of_jsoninlettimeUnit=field_map_exnjson__"TimeUnit"TimeUnit.of_jsoninletcostTypes=field_mapjson__"CostTypes"CostTypes.of_jsoninletcostFilters=field_mapjson__"CostFilters"CostFilters.of_jsoninletplannedBudgetLimits=field_mapjson__"PlannedBudgetLimits"PlannedBudgetLimits.of_jsoninletbudgetLimit=field_mapjson__"BudgetLimit"Spend.of_jsoninletbudgetName=field_map_exnjson__"BudgetName"BudgetName.of_jsoninmake?healthStatus?billingViewArn?metrics?filterExpression?autoAdjustData?lastUpdatedTime~budgetType?calculatedSpend?timePeriod~timeUnit?costTypes?costFilters?plannedBudgetLimits?budgetLimit~budgetName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the output of the CreateBudget operation. The content consists of the detailed metadata and data file information, and the current status of the budget object. This is the Amazon Resource Name (ARN) pattern for a budget: arn:aws:budgets::AccountId:budget/budgetName"]moduleNotificationState=structtypenonrect=|OK|ALARM|Non_static_idofstringletmakei=iletto_string=function|OK->"OK"|ALARM->"ALARM"|Non_static_ids->sletof_string=function|"OK"->OK|"ALARM"->ALARM|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 NotificationState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"NotificationState"j)letto_json=simple_to_jsonto_valueendmoduleComparisonOperator=structtypenonrect=|GREATER_THAN|LESS_THAN|EQUAL_TO|Non_static_idofstringletmakei=iletto_string=function|GREATER_THAN->"GREATER_THAN"|LESS_THAN->"LESS_THAN"|EQUAL_TO->"EQUAL_TO"|Non_static_ids->sletof_string=function|"GREATER_THAN"->GREATER_THAN|"LESS_THAN"->LESS_THAN|"EQUAL_TO"->EQUAL_TO|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 ComparisonOperator"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ComparisonOperator"j)letto_json=simple_to_jsonto_valueendmoduleNotification=structtypenonrect={notificationType:NotificationType.t[@ocaml.doc"Specifies whether the notification is for how much you have spent (ACTUAL) or for how much that you're forecasted to spend (FORECASTED)."];comparisonOperator:ComparisonOperator.t[@ocaml.doc"The comparison that's used for this notification."];threshold:NotificationThreshold.t[@ocaml.doc"The threshold that's associated with a notification. Thresholds are always a percentage, and many customers find value being alerted between 50% - 200% of the budgeted amount. The maximum limit for your threshold is 1,000,000% above the budgeted amount."];thresholdType:ThresholdType.toption[@ocaml.doc"The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, Amazon Web Services notifies you when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE thresholds, Amazon Web Services notifies you when you go over or are forecasted to go over a certain percentage of your forecasted spend. For example, if you have a budget for 200 dollars and you have a PERCENTAGE threshold of 80%, Amazon Web Services notifies you when you go over 160 dollars."];notificationState:NotificationState.toption[@ocaml.doc"Specifies whether this notification is in alarm. If a budget notification is in the ALARM state, you passed the set threshold for the budget."]}letcontext_="Notification"letmake?thresholdType=fun?notificationState->fun~notificationType->fun~comparisonOperator->fun~threshold->fun()->{thresholdType;notificationState;notificationType;comparisonOperator;threshold}letto_valuex=structure_to_value[("NotificationType",(Some(NotificationType.to_valuex.notificationType)));("ComparisonOperator",(Some(ComparisonOperator.to_valuex.comparisonOperator)));("Threshold",(Some(NotificationThreshold.to_valuex.threshold)));("ThresholdType",(Option.mapx.thresholdType~f:ThresholdType.to_value));("NotificationState",(Option.mapx.notificationState~f:NotificationState.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnotificationState=(Option.map~f:NotificationState.of_xml)(Xml.childxml_arg0"NotificationState")inletthresholdType=(Option.map~f:ThresholdType.of_xml)(Xml.childxml_arg0"ThresholdType")inletthreshold=NotificationThreshold.of_xml(Xml.child_exn~context:context_xml_arg0"Threshold")inletcomparisonOperator=ComparisonOperator.of_xml(Xml.child_exn~context:context_xml_arg0"ComparisonOperator")inletnotificationType=NotificationType.of_xml(Xml.child_exn~context:context_xml_arg0"NotificationType")inmake?notificationState?thresholdType~threshold~comparisonOperator~notificationType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnotificationState=field_mapjson__"NotificationState"NotificationState.of_jsoninletthresholdType=field_mapjson__"ThresholdType"ThresholdType.of_jsoninletthreshold=field_map_exnjson__"Threshold"NotificationThreshold.of_jsoninletcomparisonOperator=field_map_exnjson__"ComparisonOperator"ComparisonOperator.of_jsoninletnotificationType=field_map_exnjson__"NotificationType"NotificationType.of_jsoninmake?notificationState?thresholdType~threshold~comparisonOperator~notificationType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A notification that's associated with a budget. A budget can have up to ten notifications. Each notification must have at least one subscriber. A notification can have one SNS subscriber and up to 10 email subscribers, for a total of 11 subscribers. For example, if you have a budget for 200 dollars and you want to be notified when you go over 160 dollars, create a notification with the following parameters: A notificationType of ACTUAL A thresholdType of PERCENTAGE A comparisonOperator of GREATER_THAN A notification threshold of 80"]moduleNotifications=structtypenonrect=Notification.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Notification.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:Notification.of_xml)letof_jsonj=list_of_json~kind:"Notifications"~of_json:Notification.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBudgetNotificationsForAccount=structtypenonrect={notifications:Notifications.toption;budgetName:BudgetName.toption}letmake?notifications=fun?budgetName->fun()->{notifications;budgetName}letto_valuex=structure_to_value[("Notifications",(Option.mapx.notifications~f:Notifications.to_value));("BudgetName",(Option.mapx.budgetName~f:BudgetName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbudgetName=(Option.map~f:BudgetName.of_xml)(Xml.childxml_arg0"BudgetName")inletnotifications=(Option.map~f:Notifications.of_xml)(Xml.childxml_arg0"Notifications")inmake?budgetName?notifications()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbudgetName=field_mapjson__"BudgetName"BudgetName.of_jsoninletnotifications=field_mapjson__"Notifications"Notifications.of_jsoninmake?budgetName?notifications()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The budget name and associated notifications for an account."]moduleBudgetNotificationsForAccountList=structtypenonrect=BudgetNotificationsForAccount.tlistletmakei=letopenResultinok_or_failwith(check_list_maxi~max:1000);iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:BudgetNotificationsForAccount.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:BudgetNotificationsForAccount.of_xml)letof_jsonj=list_of_json~kind:"BudgetNotificationsForAccountList"~of_json:BudgetNotificationsForAccount.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBudgetedAndActualAmounts=structtypenonrect={budgetedAmount:Spend.toption[@ocaml.doc"The amount of cost or usage that you created the budget for."];actualAmount:Spend.toption[@ocaml.doc"Your actual costs or usage for a budget period."];timePeriod:TimePeriod.toption[@ocaml.doc"The time period that's covered by this budget comparison."]}letmake?budgetedAmount=fun?actualAmount->fun?timePeriod->fun()->{budgetedAmount;actualAmount;timePeriod}letto_valuex=structure_to_value[("BudgetedAmount",(Option.mapx.budgetedAmount~f:Spend.to_value));("ActualAmount",(Option.mapx.actualAmount~f:Spend.to_value));("TimePeriod",(Option.mapx.timePeriod~f:TimePeriod.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettimePeriod=(Option.map~f:TimePeriod.of_xml)(Xml.childxml_arg0"TimePeriod")inletactualAmount=(Option.map~f:Spend.of_xml)(Xml.childxml_arg0"ActualAmount")inletbudgetedAmount=(Option.map~f:Spend.of_xml)(Xml.childxml_arg0"BudgetedAmount")inmake?timePeriod?actualAmount?budgetedAmount()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettimePeriod=field_mapjson__"TimePeriod"TimePeriod.of_jsoninletactualAmount=field_mapjson__"ActualAmount"Spend.of_jsoninletbudgetedAmount=field_mapjson__"BudgetedAmount"Spend.of_jsoninmake?timePeriod?actualAmount?budgetedAmount()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The amount of cost or usage that you created the budget for, compared to your actual costs or usage."]moduleBudgetedAndActualAmountsList=structtypenonrect=BudgetedAndActualAmounts.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:BudgetedAndActualAmounts.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:BudgetedAndActualAmounts.of_xml)letof_jsonj=list_of_json~kind:"BudgetedAndActualAmountsList"~of_json:BudgetedAndActualAmounts.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBudgetPerformanceHistory=structtypenonrect={budgetName:BudgetName.toption;budgetType:BudgetType.toption;costFilters:CostFilters.toption[@ocaml.doc"The history of the cost filters for a budget during the specified time period."];costTypes:CostTypes.toption[@ocaml.doc"The history of the cost types for a budget during the specified time period."];timeUnit:TimeUnit.toption;billingViewArn:BillingViewArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that uniquely identifies a specific billing view. The ARN is used to specify which particular billing view you want to interact with or retrieve information from when making API calls related to Amazon Web Services Billing and Cost Management features. The BillingViewArn can be retrieved by calling the ListBillingViews API."];budgetedAndActualAmountsList:BudgetedAndActualAmountsList.toption[@ocaml.doc"A list of amounts of cost or usage that you created budgets for, which are compared to your actual costs or usage."];filterExpression:Expression.toption[@ocaml.doc"The filtering dimensions for the budget and their corresponding values."];metrics:Metrics.toption[@ocaml.doc"The definition for how the budget data is aggregated."]}letmake?budgetName=fun?budgetType->fun?costFilters->fun?costTypes->fun?timeUnit->fun?billingViewArn->fun?budgetedAndActualAmountsList->fun?filterExpression->fun?metrics->fun()->{budgetName;budgetType;costFilters;costTypes;timeUnit;billingViewArn;budgetedAndActualAmountsList;filterExpression;metrics}letto_valuex=structure_to_value[("BudgetName",(Option.mapx.budgetName~f:BudgetName.to_value));("BudgetType",(Option.mapx.budgetType~f:BudgetType.to_value));("CostFilters",(Option.mapx.costFilters~f:CostFilters.to_value));("CostTypes",(Option.mapx.costTypes~f:CostTypes.to_value));("TimeUnit",(Option.mapx.timeUnit~f:TimeUnit.to_value));("BillingViewArn",(Option.mapx.billingViewArn~f:BillingViewArn.to_value));("BudgetedAndActualAmountsList",(Option.mapx.budgetedAndActualAmountsList~f:BudgetedAndActualAmountsList.to_value));("FilterExpression",(Option.mapx.filterExpression~f:Expression.to_value));("Metrics",(Option.mapx.metrics~f:Metrics.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetrics=(Option.map~f:Metrics.of_xml)(Xml.childxml_arg0"Metrics")inletfilterExpression=(Option.map~f:Expression.of_xml)(Xml.childxml_arg0"FilterExpression")inletbudgetedAndActualAmountsList=(Option.map~f:BudgetedAndActualAmountsList.of_xml)(Xml.childxml_arg0"BudgetedAndActualAmountsList")inletbillingViewArn=(Option.map~f:BillingViewArn.of_xml)(Xml.childxml_arg0"BillingViewArn")inlettimeUnit=(Option.map~f:TimeUnit.of_xml)(Xml.childxml_arg0"TimeUnit")inletcostTypes=(Option.map~f:CostTypes.of_xml)(Xml.childxml_arg0"CostTypes")inletcostFilters=(Option.map~f:CostFilters.of_xml)(Xml.childxml_arg0"CostFilters")inletbudgetType=(Option.map~f:BudgetType.of_xml)(Xml.childxml_arg0"BudgetType")inletbudgetName=(Option.map~f:BudgetName.of_xml)(Xml.childxml_arg0"BudgetName")inmake?metrics?filterExpression?budgetedAndActualAmountsList?billingViewArn?timeUnit?costTypes?costFilters?budgetType?budgetName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetrics=field_mapjson__"Metrics"Metrics.of_jsoninletfilterExpression=field_mapjson__"FilterExpression"Expression.of_jsoninletbudgetedAndActualAmountsList=field_mapjson__"BudgetedAndActualAmountsList"BudgetedAndActualAmountsList.of_jsoninletbillingViewArn=field_mapjson__"BillingViewArn"BillingViewArn.of_jsoninlettimeUnit=field_mapjson__"TimeUnit"TimeUnit.of_jsoninletcostTypes=field_mapjson__"CostTypes"CostTypes.of_jsoninletcostFilters=field_mapjson__"CostFilters"CostFilters.of_jsoninletbudgetType=field_mapjson__"BudgetType"BudgetType.of_jsoninletbudgetName=field_mapjson__"BudgetName"BudgetName.of_jsoninmake?metrics?filterExpression?budgetedAndActualAmountsList?billingViewArn?timeUnit?costTypes?costFilters?budgetType?budgetName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A history of the state of a budget at the end of the budget's specified time period."]moduleBudgets=structtypenonrect=Budget.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Budget.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:Budget.of_xml)letof_jsonj=list_of_json~kind:"Budgets"~of_json:Budget.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResourceTagValue=structtypenonrect=stringletcontext_="ResourceTagValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ResourceTagValue"jletto_json=simple_to_jsonto_valueendmoduleResourceTagKey=structtypenonrect=stringletcontext_="ResourceTagKey"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:"ResourceTagKey"jletto_json=simple_to_jsonto_valueendmoduleResourceTag=structtypenonrect={key:ResourceTagKey.t[@ocaml.doc"The key that's associated with the tag."];value:ResourceTagValue.t[@ocaml.doc"The value that's associated with the tag."]}letcontext_="ResourceTag"letmake~key=fun~value->fun()->{key;value}letto_valuex=structure_to_value[("Key",(Some(ResourceTagKey.to_valuex.key)));("Value",(Some(ResourceTagValue.to_valuex.value)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=ResourceTagValue.of_xml(Xml.child_exn~context:context_xml_arg0"Value")inletkey=ResourceTagKey.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"ResourceTagValue.of_jsoninletkey=field_map_exnjson__"Key"ResourceTagKey.of_jsoninmake~value~key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The tag structure that contains a tag key and value."]moduleResourceTagList=structtypenonrect=ResourceTag.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ResourceTag.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:ResourceTag.of_xml)letof_jsonj=list_of_json~kind:"ResourceTagList"~of_json:ResourceTag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCreateBudgetActionRequest=structtypenonrect={accountId:AccountId.t;budgetName:BudgetName.t;notificationType:NotificationType.t;actionType:ActionType.t[@ocaml.doc"The type of action. This defines the type of tasks that can be carried out by this action. This field also determines the format for definition."];actionThreshold:ActionThreshold.t;definition:Definition.t;executionRoleArn:RoleArn.t[@ocaml.doc"The role passed for action execution and reversion. Roles and actions must be in the same account."];approvalModel:ApprovalModel.t[@ocaml.doc"This specifies if the action needs manual or automatic approval."];subscribers:Subscribers.t;resourceTags:ResourceTagList.toption[@ocaml.doc"An optional list of tags to associate with the specified budget action. Each tag consists of a key and a value, and each key must be unique for the resource."]}letcontext_="CreateBudgetActionRequest"letmake?resourceTags=fun~accountId->fun~budgetName->fun~notificationType->fun~actionType->fun~actionThreshold->fun~definition->fun~executionRoleArn->fun~approvalModel->fun~subscribers->fun()->{resourceTags;accountId;budgetName;notificationType;actionType;actionThreshold;definition;executionRoleArn;approvalModel;subscribers}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("BudgetName",(Some(BudgetName.to_valuex.budgetName)));("NotificationType",(Some(NotificationType.to_valuex.notificationType)));("ActionType",(Some(ActionType.to_valuex.actionType)));("ActionThreshold",(Some(ActionThreshold.to_valuex.actionThreshold)));("Definition",(Some(Definition.to_valuex.definition)));("ExecutionRoleArn",(Some(RoleArn.to_valuex.executionRoleArn)));("ApprovalModel",(Some(ApprovalModel.to_valuex.approvalModel)));("Subscribers",(Some(Subscribers.to_valuex.subscribers)));("ResourceTags",(Option.mapx.resourceTags~f:ResourceTagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceTags=(Option.map~f:ResourceTagList.of_xml)(Xml.childxml_arg0"ResourceTags")inletsubscribers=Subscribers.of_xml(Xml.child_exn~context:context_xml_arg0"Subscribers")inletapprovalModel=ApprovalModel.of_xml(Xml.child_exn~context:context_xml_arg0"ApprovalModel")inletexecutionRoleArn=RoleArn.of_xml(Xml.child_exn~context:context_xml_arg0"ExecutionRoleArn")inletdefinition=Definition.of_xml(Xml.child_exn~context:context_xml_arg0"Definition")inletactionThreshold=ActionThreshold.of_xml(Xml.child_exn~context:context_xml_arg0"ActionThreshold")inletactionType=ActionType.of_xml(Xml.child_exn~context:context_xml_arg0"ActionType")inletnotificationType=NotificationType.of_xml(Xml.child_exn~context:context_xml_arg0"NotificationType")inletbudgetName=BudgetName.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetName")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake?resourceTags~subscribers~approvalModel~executionRoleArn~definition~actionThreshold~actionType~notificationType~budgetName~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceTags=field_mapjson__"ResourceTags"ResourceTagList.of_jsoninletsubscribers=field_map_exnjson__"Subscribers"Subscribers.of_jsoninletapprovalModel=field_map_exnjson__"ApprovalModel"ApprovalModel.of_jsoninletexecutionRoleArn=field_map_exnjson__"ExecutionRoleArn"RoleArn.of_jsoninletdefinition=field_map_exnjson__"Definition"Definition.of_jsoninletactionThreshold=field_map_exnjson__"ActionThreshold"ActionThreshold.of_jsoninletactionType=field_map_exnjson__"ActionType"ActionType.of_jsoninletnotificationType=field_map_exnjson__"NotificationType"NotificationType.of_jsoninletbudgetName=field_map_exnjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake?resourceTags~subscribers~approvalModel~executionRoleArn~definition~actionThreshold~actionType~notificationType~budgetName~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a budget action."]moduleThrottlingException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The number of API requests has exceeded the maximum allowed API request throttling limit for the account."]moduleServiceQuotaExceededException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You've reached a Service Quota limit on this resource."]moduleNotFoundException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"We can\226\128\153t locate the resource that you specified."]moduleInvalidParameterException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An error on the client occurred. Typically, the cause is an invalid input value."]moduleInternalErrorException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An error on the server occurred during the processing of your request. Try again later."]moduleDuplicateRecordException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The budget name already exists. Budget names must be unique within an account."]moduleCreationLimitExceededException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You've exceeded the notification or subscriber limit."]moduleCreateBudgetActionResponse=structtypenonrect={accountId:AccountId.toption;budgetName:BudgetName.toption;actionId:ActionId.toption[@ocaml.doc"A system-generated universally unique identifier (UUID) for the action."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`CreationLimitExceededExceptionofCreationLimitExceededException.t|`DuplicateRecordExceptionofDuplicateRecordException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accountId=fun?budgetName->fun?actionId->fun()->{accountId;budgetName;actionId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"CreationLimitExceededException"->`CreationLimitExceededException(CreationLimitExceededException.of_jsonjson)|"DuplicateRecordException"->`DuplicateRecordException(DuplicateRecordException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"CreationLimitExceededException"->`CreationLimitExceededException(CreationLimitExceededException.of_xmlxml)|"DuplicateRecordException"->`DuplicateRecordException(DuplicateRecordException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`CreationLimitExceededExceptione->`Assoc[("error",(`String"CreationLimitExceededException"));("details",(CreationLimitExceededException.to_jsone))]|`DuplicateRecordExceptione->`Assoc[("error",(`String"DuplicateRecordException"));("details",(DuplicateRecordException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AccountId",(Option.mapx.accountId~f:AccountId.to_value));("BudgetName",(Option.mapx.budgetName~f:BudgetName.to_value));("ActionId",(Option.mapx.actionId~f:ActionId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letactionId=(Option.map~f:ActionId.of_xml)(Xml.childxml_arg0"ActionId")inletbudgetName=(Option.map~f:BudgetName.of_xml)(Xml.childxml_arg0"BudgetName")inletaccountId=(Option.map~f:AccountId.of_xml)(Xml.childxml_arg0"AccountId")inmake?actionId?budgetName?accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letactionId=field_mapjson__"ActionId"ActionId.of_jsoninletbudgetName=field_mapjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_mapjson__"AccountId"AccountId.of_jsoninmake?actionId?budgetName?accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a budget action."]moduleNotificationWithSubscribers=structtypenonrect={notification:Notification.t[@ocaml.doc"The notification that's associated with a budget."];subscribers:Subscribers.t[@ocaml.doc"A list of subscribers who are subscribed to this notification."]}letcontext_="NotificationWithSubscribers"letmake~notification=fun~subscribers->fun()->{notification;subscribers}letto_valuex=structure_to_value[("Notification",(Some(Notification.to_valuex.notification)));("Subscribers",(Some(Subscribers.to_valuex.subscribers)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsubscribers=Subscribers.of_xml(Xml.child_exn~context:context_xml_arg0"Subscribers")inletnotification=Notification.of_xml(Xml.child_exn~context:context_xml_arg0"Notification")inmake~subscribers~notification()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubscribers=field_map_exnjson__"Subscribers"Subscribers.of_jsoninletnotification=field_map_exnjson__"Notification"Notification.of_jsoninmake~subscribers~notification()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A notification with subscribers. A notification can have one SNS subscriber and up to 10 email subscribers, for a total of 11 subscribers."]moduleNotificationWithSubscribersList=structtypenonrect=NotificationWithSubscribers.tlistletmakei=letopenResultinok_or_failwith(check_list_maxi~max:10);iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:NotificationWithSubscribers.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:NotificationWithSubscribers.of_xml)letof_jsonj=list_of_json~kind:"NotificationWithSubscribersList"~of_json:NotificationWithSubscribers.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCreateBudgetRequest=structtypenonrect={accountId:AccountId.t[@ocaml.doc"The accountId that is associated with the budget."];budget:Budget.t[@ocaml.doc"The budget object that you want to create."];notificationsWithSubscribers:NotificationWithSubscribersList.toption[@ocaml.doc"A notification that you want to associate with a budget. A budget can have up to five notifications, and each notification can have one SNS subscriber and up to 10 email subscribers. If you include notifications and subscribers in your CreateBudget call, Amazon Web Services creates the notifications and subscribers for you."];resourceTags:ResourceTagList.toption[@ocaml.doc"An optional list of tags to associate with the specified budget. Each tag consists of a key and a value, and each key must be unique for the resource."]}letcontext_="CreateBudgetRequest"letmake?notificationsWithSubscribers=fun?resourceTags->fun~accountId->fun~budget->fun()->{notificationsWithSubscribers;resourceTags;accountId;budget}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("Budget",(Some(Budget.to_valuex.budget)));("NotificationsWithSubscribers",(Option.mapx.notificationsWithSubscribers~f:NotificationWithSubscribersList.to_value));("ResourceTags",(Option.mapx.resourceTags~f:ResourceTagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceTags=(Option.map~f:ResourceTagList.of_xml)(Xml.childxml_arg0"ResourceTags")inletnotificationsWithSubscribers=(Option.map~f:NotificationWithSubscribersList.of_xml)(Xml.childxml_arg0"NotificationsWithSubscribers")inletbudget=Budget.of_xml(Xml.child_exn~context:context_xml_arg0"Budget")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake?resourceTags?notificationsWithSubscribers~budget~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceTags=field_mapjson__"ResourceTags"ResourceTagList.of_jsoninletnotificationsWithSubscribers=field_mapjson__"NotificationsWithSubscribers"NotificationWithSubscribersList.of_jsoninletbudget=field_map_exnjson__"Budget"Budget.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake?resourceTags?notificationsWithSubscribers~budget~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request of CreateBudget"]moduleCreateBudgetResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`BillingViewHealthStatusExceptionofBillingViewHealthStatusException.t|`CreationLimitExceededExceptionofCreationLimitExceededException.t|`DuplicateRecordExceptionofDuplicateRecordException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"BillingViewHealthStatusException"->`BillingViewHealthStatusException(BillingViewHealthStatusException.of_jsonjson)|"CreationLimitExceededException"->`CreationLimitExceededException(CreationLimitExceededException.of_jsonjson)|"DuplicateRecordException"->`DuplicateRecordException(DuplicateRecordException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"BillingViewHealthStatusException"->`BillingViewHealthStatusException(BillingViewHealthStatusException.of_xmlxml)|"CreationLimitExceededException"->`CreationLimitExceededException(CreationLimitExceededException.of_xmlxml)|"DuplicateRecordException"->`DuplicateRecordException(DuplicateRecordException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`BillingViewHealthStatusExceptione->`Assoc[("error",(`String"BillingViewHealthStatusException"));("details",(BillingViewHealthStatusException.to_jsone))]|`CreationLimitExceededExceptione->`Assoc[("error",(`String"CreationLimitExceededException"));("details",(CreationLimitExceededException.to_jsone))]|`DuplicateRecordExceptione->`Assoc[("error",(`String"DuplicateRecordException"));("details",(DuplicateRecordException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.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"Response of CreateBudget"]moduleCreateNotificationRequest=structtypenonrect={accountId:AccountId.t[@ocaml.doc"The accountId that is associated with the budget that you want to create a notification for."];budgetName:BudgetName.t[@ocaml.doc"The name of the budget that you want Amazon Web Services to notify you about. Budget names must be unique within an account."];notification:Notification.t[@ocaml.doc"The notification that you want to create."];subscribers:Subscribers.t[@ocaml.doc"A list of subscribers that you want to associate with the notification. Each notification can have one SNS subscriber and up to 10 email subscribers."]}letcontext_="CreateNotificationRequest"letmake~accountId=fun~budgetName->fun~notification->fun~subscribers->fun()->{accountId;budgetName;notification;subscribers}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("BudgetName",(Some(BudgetName.to_valuex.budgetName)));("Notification",(Some(Notification.to_valuex.notification)));("Subscribers",(Some(Subscribers.to_valuex.subscribers)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsubscribers=Subscribers.of_xml(Xml.child_exn~context:context_xml_arg0"Subscribers")inletnotification=Notification.of_xml(Xml.child_exn~context:context_xml_arg0"Notification")inletbudgetName=BudgetName.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetName")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake~subscribers~notification~budgetName~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubscribers=field_map_exnjson__"Subscribers"Subscribers.of_jsoninletnotification=field_map_exnjson__"Notification"Notification.of_jsoninletbudgetName=field_map_exnjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake~subscribers~notification~budgetName~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request of CreateNotification"]moduleCreateNotificationResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`CreationLimitExceededExceptionofCreationLimitExceededException.t|`DuplicateRecordExceptionofDuplicateRecordException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"CreationLimitExceededException"->`CreationLimitExceededException(CreationLimitExceededException.of_jsonjson)|"DuplicateRecordException"->`DuplicateRecordException(DuplicateRecordException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"CreationLimitExceededException"->`CreationLimitExceededException(CreationLimitExceededException.of_xmlxml)|"DuplicateRecordException"->`DuplicateRecordException(DuplicateRecordException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`CreationLimitExceededExceptione->`Assoc[("error",(`String"CreationLimitExceededException"));("details",(CreationLimitExceededException.to_jsone))]|`DuplicateRecordExceptione->`Assoc[("error",(`String"DuplicateRecordException"));("details",(DuplicateRecordException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.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"Response of CreateNotification"]moduleCreateSubscriberRequest=structtypenonrect={accountId:AccountId.t[@ocaml.doc"The accountId that is associated with the budget that you want to create a subscriber for."];budgetName:BudgetName.t[@ocaml.doc"The name of the budget that you want to subscribe to. Budget names must be unique within an account."];notification:Notification.t[@ocaml.doc"The notification that you want to create a subscriber for."];subscriber:Subscriber.t[@ocaml.doc"The subscriber that you want to associate with a budget notification."]}letcontext_="CreateSubscriberRequest"letmake~accountId=fun~budgetName->fun~notification->fun~subscriber->fun()->{accountId;budgetName;notification;subscriber}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("BudgetName",(Some(BudgetName.to_valuex.budgetName)));("Notification",(Some(Notification.to_valuex.notification)));("Subscriber",(Some(Subscriber.to_valuex.subscriber)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsubscriber=Subscriber.of_xml(Xml.child_exn~context:context_xml_arg0"Subscriber")inletnotification=Notification.of_xml(Xml.child_exn~context:context_xml_arg0"Notification")inletbudgetName=BudgetName.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetName")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake~subscriber~notification~budgetName~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubscriber=field_map_exnjson__"Subscriber"Subscriber.of_jsoninletnotification=field_map_exnjson__"Notification"Notification.of_jsoninletbudgetName=field_map_exnjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake~subscriber~notification~budgetName~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request of CreateSubscriber"]moduleCreateSubscriberResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`CreationLimitExceededExceptionofCreationLimitExceededException.t|`DuplicateRecordExceptionofDuplicateRecordException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"CreationLimitExceededException"->`CreationLimitExceededException(CreationLimitExceededException.of_jsonjson)|"DuplicateRecordException"->`DuplicateRecordException(DuplicateRecordException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"CreationLimitExceededException"->`CreationLimitExceededException(CreationLimitExceededException.of_xmlxml)|"DuplicateRecordException"->`DuplicateRecordException(DuplicateRecordException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`CreationLimitExceededExceptione->`Assoc[("error",(`String"CreationLimitExceededException"));("details",(CreationLimitExceededException.to_jsone))]|`DuplicateRecordExceptione->`Assoc[("error",(`String"DuplicateRecordException"));("details",(DuplicateRecordException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.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"Response of CreateSubscriber"]moduleDeleteBudgetActionRequest=structtypenonrect={accountId:AccountId.t;budgetName:BudgetName.t;actionId:ActionId.t[@ocaml.doc"A system-generated universally unique identifier (UUID) for the action."]}letcontext_="DeleteBudgetActionRequest"letmake~accountId=fun~budgetName->fun~actionId->fun()->{accountId;budgetName;actionId}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("BudgetName",(Some(BudgetName.to_valuex.budgetName)));("ActionId",(Some(ActionId.to_valuex.actionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letactionId=ActionId.of_xml(Xml.child_exn~context:context_xml_arg0"ActionId")inletbudgetName=BudgetName.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetName")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake~actionId~budgetName~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letactionId=field_map_exnjson__"ActionId"ActionId.of_jsoninletbudgetName=field_map_exnjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake~actionId~budgetName~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a budget action."]moduleResourceLockedException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was received and recognized by the server, but the server rejected that particular method for the requested resource."]moduleDeleteBudgetActionResponse=structtypenonrect={accountId:AccountId.toption;budgetName:BudgetName.toption;action:Action.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ResourceLockedExceptionofResourceLockedException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accountId=fun?budgetName->fun?action->fun()->{accountId;budgetName;action}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ResourceLockedException"->`ResourceLockedException(ResourceLockedException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ResourceLockedException"->`ResourceLockedException(ResourceLockedException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ResourceLockedExceptione->`Assoc[("error",(`String"ResourceLockedException"));("details",(ResourceLockedException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AccountId",(Option.mapx.accountId~f:AccountId.to_value));("BudgetName",(Option.mapx.budgetName~f:BudgetName.to_value));("Action",(Option.mapx.action~f:Action.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaction=(Option.map~f:Action.of_xml)(Xml.childxml_arg0"Action")inletbudgetName=(Option.map~f:BudgetName.of_xml)(Xml.childxml_arg0"BudgetName")inletaccountId=(Option.map~f:AccountId.of_xml)(Xml.childxml_arg0"AccountId")inmake?action?budgetName?accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaction=field_mapjson__"Action"Action.of_jsoninletbudgetName=field_mapjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_mapjson__"AccountId"AccountId.of_jsoninmake?action?budgetName?accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a budget action."]moduleDeleteBudgetRequest=structtypenonrect={accountId:AccountId.t[@ocaml.doc"The accountId that is associated with the budget that you want to delete."];budgetName:BudgetName.t[@ocaml.doc"The name of the budget that you want to delete."]}letcontext_="DeleteBudgetRequest"letmake~accountId=fun~budgetName->fun()->{accountId;budgetName}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("BudgetName",(Some(BudgetName.to_valuex.budgetName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbudgetName=BudgetName.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetName")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake~budgetName~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbudgetName=field_map_exnjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake~budgetName~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request of DeleteBudget"]moduleDeleteBudgetResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.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"Response of DeleteBudget"]moduleDeleteNotificationRequest=structtypenonrect={accountId:AccountId.t[@ocaml.doc"The accountId that is associated with the budget whose notification you want to delete."];budgetName:BudgetName.t[@ocaml.doc"The name of the budget whose notification you want to delete."];notification:Notification.t[@ocaml.doc"The notification that you want to delete."]}letcontext_="DeleteNotificationRequest"letmake~accountId=fun~budgetName->fun~notification->fun()->{accountId;budgetName;notification}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("BudgetName",(Some(BudgetName.to_valuex.budgetName)));("Notification",(Some(Notification.to_valuex.notification)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnotification=Notification.of_xml(Xml.child_exn~context:context_xml_arg0"Notification")inletbudgetName=BudgetName.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetName")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake~notification~budgetName~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnotification=field_map_exnjson__"Notification"Notification.of_jsoninletbudgetName=field_map_exnjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake~notification~budgetName~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request of DeleteNotification"]moduleDeleteNotificationResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.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"Response of DeleteNotification"]moduleDeleteSubscriberRequest=structtypenonrect={accountId:AccountId.t[@ocaml.doc"The accountId that is associated with the budget whose subscriber you want to delete."];budgetName:BudgetName.t[@ocaml.doc"The name of the budget whose subscriber you want to delete."];notification:Notification.t[@ocaml.doc"The notification whose subscriber you want to delete."];subscriber:Subscriber.t[@ocaml.doc"The subscriber that you want to delete."]}letcontext_="DeleteSubscriberRequest"letmake~accountId=fun~budgetName->fun~notification->fun~subscriber->fun()->{accountId;budgetName;notification;subscriber}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("BudgetName",(Some(BudgetName.to_valuex.budgetName)));("Notification",(Some(Notification.to_valuex.notification)));("Subscriber",(Some(Subscriber.to_valuex.subscriber)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsubscriber=Subscriber.of_xml(Xml.child_exn~context:context_xml_arg0"Subscriber")inletnotification=Notification.of_xml(Xml.child_exn~context:context_xml_arg0"Notification")inletbudgetName=BudgetName.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetName")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake~subscriber~notification~budgetName~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubscriber=field_map_exnjson__"Subscriber"Subscriber.of_jsoninletnotification=field_map_exnjson__"Notification"Notification.of_jsoninletbudgetName=field_map_exnjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake~subscriber~notification~budgetName~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request of DeleteSubscriber"]moduleDeleteSubscriberResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.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"Response of DeleteSubscriber"]moduleMaxResults=structtypenonrect=int[@@ocaml.doc"An integer that represents how many entries a paginated response contains. The maximum is 100."]letmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueend[@@ocaml.doc"An integer that represents how many entries a paginated response contains. The maximum is 100."]moduleDescribeBudgetActionHistoriesRequest=structtypenonrect={accountId:AccountId.t;budgetName:BudgetName.t;actionId:ActionId.t[@ocaml.doc"A system-generated universally unique identifier (UUID) for the action."];timePeriod:TimePeriod.toption;maxResults:MaxResults.toption;nextToken:GenericString.toption}letcontext_="DescribeBudgetActionHistoriesRequest"letmake?timePeriod=fun?maxResults->fun?nextToken->fun~accountId->fun~budgetName->fun~actionId->fun()->{timePeriod;maxResults;nextToken;accountId;budgetName;actionId}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("BudgetName",(Some(BudgetName.to_valuex.budgetName)));("ActionId",(Some(ActionId.to_valuex.actionId)));("TimePeriod",(Option.mapx.timePeriod~f:TimePeriod.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inlettimePeriod=(Option.map~f:TimePeriod.of_xml)(Xml.childxml_arg0"TimePeriod")inletactionId=ActionId.of_xml(Xml.child_exn~context:context_xml_arg0"ActionId")inletbudgetName=BudgetName.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetName")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake?nextToken?maxResults?timePeriod~actionId~budgetName~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"GenericString.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninlettimePeriod=field_mapjson__"TimePeriod"TimePeriod.of_jsoninletactionId=field_map_exnjson__"ActionId"ActionId.of_jsoninletbudgetName=field_map_exnjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake?nextToken?maxResults?timePeriod~actionId~budgetName~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a budget action history detail."]moduleInvalidNextTokenException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The pagination token is invalid."]moduleDescribeBudgetActionHistoriesResponse=structtypenonrect={actionHistories:ActionHistories.toption[@ocaml.doc"The historical record of the budget action resource."];nextToken:GenericString.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidNextTokenExceptionofInvalidNextTokenException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?actionHistories=fun?nextToken->fun()->{actionHistories;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidNextTokenExceptione->`Assoc[("error",(`String"InvalidNextTokenException"));("details",(InvalidNextTokenException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ActionHistories",(Option.mapx.actionHistories~f:ActionHistories.to_value));("NextToken",(Option.mapx.nextToken~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"NextToken")inletactionHistories=(Option.map~f:ActionHistories.of_xml)(Xml.childxml_arg0"ActionHistories")inmake?nextToken?actionHistories()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"GenericString.of_jsoninletactionHistories=field_mapjson__"ActionHistories"ActionHistories.of_jsoninmake?nextToken?actionHistories()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a budget action history detail."]moduleDescribeBudgetActionRequest=structtypenonrect={accountId:AccountId.t;budgetName:BudgetName.t;actionId:ActionId.t[@ocaml.doc"A system-generated universally unique identifier (UUID) for the action."]}letcontext_="DescribeBudgetActionRequest"letmake~accountId=fun~budgetName->fun~actionId->fun()->{accountId;budgetName;actionId}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("BudgetName",(Some(BudgetName.to_valuex.budgetName)));("ActionId",(Some(ActionId.to_valuex.actionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letactionId=ActionId.of_xml(Xml.child_exn~context:context_xml_arg0"ActionId")inletbudgetName=BudgetName.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetName")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake~actionId~budgetName~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letactionId=field_map_exnjson__"ActionId"ActionId.of_jsoninletbudgetName=field_map_exnjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake~actionId~budgetName~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a budget action detail."]moduleDescribeBudgetActionResponse=structtypenonrect={accountId:AccountId.toption;budgetName:BudgetName.toption;action:Action.toption[@ocaml.doc"A budget action resource."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accountId=fun?budgetName->fun?action->fun()->{accountId;budgetName;action}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AccountId",(Option.mapx.accountId~f:AccountId.to_value));("BudgetName",(Option.mapx.budgetName~f:BudgetName.to_value));("Action",(Option.mapx.action~f:Action.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaction=(Option.map~f:Action.of_xml)(Xml.childxml_arg0"Action")inletbudgetName=(Option.map~f:BudgetName.of_xml)(Xml.childxml_arg0"BudgetName")inletaccountId=(Option.map~f:AccountId.of_xml)(Xml.childxml_arg0"AccountId")inmake?action?budgetName?accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaction=field_mapjson__"Action"Action.of_jsoninletbudgetName=field_mapjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_mapjson__"AccountId"AccountId.of_jsoninmake?action?budgetName?accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a budget action detail."]moduleDescribeBudgetActionsForAccountRequest=structtypenonrect={accountId:AccountId.t;maxResults:MaxResults.toption;nextToken:GenericString.toption}letcontext_="DescribeBudgetActionsForAccountRequest"letmake?maxResults=fun?nextToken->fun~accountId->fun()->{maxResults;nextToken;accountId}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake?nextToken?maxResults~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"GenericString.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake?nextToken?maxResults~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes all of the budget actions for an account."]moduleDescribeBudgetActionsForAccountResponse=structtypenonrect={actions:Actions.toption[@ocaml.doc"A list of the budget action resources information."];nextToken:GenericString.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidNextTokenExceptionofInvalidNextTokenException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?actions=fun?nextToken->fun()->{actions;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidNextTokenExceptione->`Assoc[("error",(`String"InvalidNextTokenException"));("details",(InvalidNextTokenException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Actions",(Option.mapx.actions~f:Actions.to_value));("NextToken",(Option.mapx.nextToken~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"NextToken")inletactions=(Option.map~f:Actions.of_xml)(Xml.childxml_arg0"Actions")inmake?nextToken?actions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"GenericString.of_jsoninletactions=field_mapjson__"Actions"Actions.of_jsoninmake?nextToken?actions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes all of the budget actions for an account."]moduleDescribeBudgetActionsForBudgetRequest=structtypenonrect={accountId:AccountId.t;budgetName:BudgetName.t;maxResults:MaxResults.toption;nextToken:GenericString.toption}letcontext_="DescribeBudgetActionsForBudgetRequest"letmake?maxResults=fun?nextToken->fun~accountId->fun~budgetName->fun()->{maxResults;nextToken;accountId;budgetName}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("BudgetName",(Some(BudgetName.to_valuex.budgetName)));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletbudgetName=BudgetName.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetName")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake?nextToken?maxResults~budgetName~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"GenericString.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletbudgetName=field_map_exnjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake?nextToken?maxResults~budgetName~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes all of the budget actions for a budget."]moduleDescribeBudgetActionsForBudgetResponse=structtypenonrect={actions:Actions.toption[@ocaml.doc"A list of the budget action resources information."];nextToken:GenericString.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidNextTokenExceptionofInvalidNextTokenException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?actions=fun?nextToken->fun()->{actions;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidNextTokenExceptione->`Assoc[("error",(`String"InvalidNextTokenException"));("details",(InvalidNextTokenException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Actions",(Option.mapx.actions~f:Actions.to_value));("NextToken",(Option.mapx.nextToken~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"NextToken")inletactions=(Option.map~f:Actions.of_xml)(Xml.childxml_arg0"Actions")inmake?nextToken?actions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"GenericString.of_jsoninletactions=field_mapjson__"Actions"Actions.of_jsoninmake?nextToken?actions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes all of the budget actions for a budget."]moduleMaxResultsBudgetNotifications=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 MaxResultsBudgetNotifications"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleDescribeBudgetNotificationsForAccountRequest=structtypenonrect={accountId:AccountId.t;maxResults:MaxResultsBudgetNotifications.toption[@ocaml.doc"An integer that represents how many budgets a paginated response contains. The default is 50."];nextToken:GenericString.toption}letcontext_="DescribeBudgetNotificationsForAccountRequest"letmake?maxResults=fun?nextToken->fun~accountId->fun()->{maxResults;nextToken;accountId}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("MaxResults",(Option.mapx.maxResults~f:MaxResultsBudgetNotifications.to_value));("NextToken",(Option.mapx.nextToken~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResultsBudgetNotifications.of_xml)(Xml.childxml_arg0"MaxResults")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake?nextToken?maxResults~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"GenericString.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResultsBudgetNotifications.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake?nextToken?maxResults~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the budget names and notifications that are associated with an account."]moduleExpiredNextTokenException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The pagination token expired."]moduleDescribeBudgetNotificationsForAccountResponse=structtypenonrect={budgetNotificationsForAccount:BudgetNotificationsForAccountList.toption[@ocaml.doc"A list of budget names and associated notifications for an account."];nextToken:GenericString.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ExpiredNextTokenExceptionofExpiredNextTokenException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidNextTokenExceptionofInvalidNextTokenException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?budgetNotificationsForAccount=fun?nextToken->fun()->{budgetNotificationsForAccount;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ExpiredNextTokenExceptione->`Assoc[("error",(`String"ExpiredNextTokenException"));("details",(ExpiredNextTokenException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidNextTokenExceptione->`Assoc[("error",(`String"InvalidNextTokenException"));("details",(InvalidNextTokenException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("BudgetNotificationsForAccount",(Option.mapx.budgetNotificationsForAccount~f:BudgetNotificationsForAccountList.to_value));("NextToken",(Option.mapx.nextToken~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"NextToken")inletbudgetNotificationsForAccount=(Option.map~f:BudgetNotificationsForAccountList.of_xml)(Xml.childxml_arg0"BudgetNotificationsForAccount")inmake?nextToken?budgetNotificationsForAccount()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"GenericString.of_jsoninletbudgetNotificationsForAccount=field_mapjson__"BudgetNotificationsForAccount"BudgetNotificationsForAccountList.of_jsoninmake?nextToken?budgetNotificationsForAccount()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the budget names and notifications that are associated with an account."]moduleDescribeBudgetPerformanceHistoryRequest=structtypenonrect={accountId:AccountId.t;budgetName:BudgetName.t;timePeriod:TimePeriod.toption[@ocaml.doc"Retrieves how often the budget went into an ALARM state for the specified time period."];maxResults:MaxResults.toption;nextToken:GenericString.toption}letcontext_="DescribeBudgetPerformanceHistoryRequest"letmake?timePeriod=fun?maxResults->fun?nextToken->fun~accountId->fun~budgetName->fun()->{timePeriod;maxResults;nextToken;accountId;budgetName}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("BudgetName",(Some(BudgetName.to_valuex.budgetName)));("TimePeriod",(Option.mapx.timePeriod~f:TimePeriod.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inlettimePeriod=(Option.map~f:TimePeriod.of_xml)(Xml.childxml_arg0"TimePeriod")inletbudgetName=BudgetName.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetName")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake?nextToken?maxResults?timePeriod~budgetName~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"GenericString.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninlettimePeriod=field_mapjson__"TimePeriod"TimePeriod.of_jsoninletbudgetName=field_map_exnjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake?nextToken?maxResults?timePeriod~budgetName~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the history for DAILY, MONTHLY, and QUARTERLY budgets. Budget history isn't available for ANNUAL budgets."]moduleDescribeBudgetPerformanceHistoryResponse=structtypenonrect={budgetPerformanceHistory:BudgetPerformanceHistory.toption[@ocaml.doc"The history of how often the budget has gone into an ALARM state. For DAILY budgets, the history saves the state of the budget for the last 60 days. For MONTHLY budgets, the history saves the state of the budget for the current month plus the last 12 months. For QUARTERLY budgets, the history saves the state of the budget for the last four quarters."];nextToken:GenericString.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`BillingViewHealthStatusExceptionofBillingViewHealthStatusException.t|`ExpiredNextTokenExceptionofExpiredNextTokenException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidNextTokenExceptionofInvalidNextTokenException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?budgetPerformanceHistory=fun?nextToken->fun()->{budgetPerformanceHistory;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"BillingViewHealthStatusException"->`BillingViewHealthStatusException(BillingViewHealthStatusException.of_jsonjson)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"BillingViewHealthStatusException"->`BillingViewHealthStatusException(BillingViewHealthStatusException.of_xmlxml)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`BillingViewHealthStatusExceptione->`Assoc[("error",(`String"BillingViewHealthStatusException"));("details",(BillingViewHealthStatusException.to_jsone))]|`ExpiredNextTokenExceptione->`Assoc[("error",(`String"ExpiredNextTokenException"));("details",(ExpiredNextTokenException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidNextTokenExceptione->`Assoc[("error",(`String"InvalidNextTokenException"));("details",(InvalidNextTokenException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("BudgetPerformanceHistory",(Option.mapx.budgetPerformanceHistory~f:BudgetPerformanceHistory.to_value));("NextToken",(Option.mapx.nextToken~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"NextToken")inletbudgetPerformanceHistory=(Option.map~f:BudgetPerformanceHistory.of_xml)(Xml.childxml_arg0"BudgetPerformanceHistory")inmake?nextToken?budgetPerformanceHistory()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"GenericString.of_jsoninletbudgetPerformanceHistory=field_mapjson__"BudgetPerformanceHistory"BudgetPerformanceHistory.of_jsoninmake?nextToken?budgetPerformanceHistory()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the history for DAILY, MONTHLY, and QUARTERLY budgets. Budget history isn't available for ANNUAL budgets."]moduleDescribeBudgetRequest=structtypenonrect={accountId:AccountId.t[@ocaml.doc"The accountId that is associated with the budget that you want a description of."];budgetName:BudgetName.t[@ocaml.doc"The name of the budget that you want a description of."];showFilterExpression:NullableBoolean.toption[@ocaml.doc"Specifies whether the response includes the filter expression associated with the budget. By showing the filter expression, you can see detailed filtering logic applied to the budget, such as Amazon Web Services services or tags that are being tracked."]}letcontext_="DescribeBudgetRequest"letmake?showFilterExpression=fun~accountId->fun~budgetName->fun()->{showFilterExpression;accountId;budgetName}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("BudgetName",(Some(BudgetName.to_valuex.budgetName)));("ShowFilterExpression",(Option.mapx.showFilterExpression~f:NullableBoolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letshowFilterExpression=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"ShowFilterExpression")inletbudgetName=BudgetName.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetName")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake?showFilterExpression~budgetName~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letshowFilterExpression=field_mapjson__"ShowFilterExpression"NullableBoolean.of_jsoninletbudgetName=field_map_exnjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake?showFilterExpression~budgetName~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request of DescribeBudget"]moduleDescribeBudgetResponse=structtypenonrect={budget:Budget.toption[@ocaml.doc"The description of the budget."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?budget=fun()->{budget}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Budget",(Option.mapx.budget~f:Budget.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbudget=(Option.map~f:Budget.of_xml)(Xml.childxml_arg0"Budget")inmake?budget()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbudget=field_mapjson__"Budget"Budget.of_jsoninmake?budget()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response of DescribeBudget"]moduleMaxResultsDescribeBudgets=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 MaxResultsDescribeBudgets"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleDescribeBudgetsRequest=structtypenonrect={accountId:AccountId.t[@ocaml.doc"The accountId that is associated with the budgets that you want to describe."];maxResults:MaxResultsDescribeBudgets.toption[@ocaml.doc"An integer that represents how many budgets a paginated response contains. The default is 100."];nextToken:GenericString.toption[@ocaml.doc"The pagination token that you include in your request to indicate the next set of results that you want to retrieve."];showFilterExpression:NullableBoolean.toption[@ocaml.doc"Specifies whether the response includes the filter expression associated with the budgets. By showing the filter expression, you can see detailed filtering logic applied to the budgets, such as Amazon Web Services services or tags that are being tracked."]}letcontext_="DescribeBudgetsRequest"letmake?maxResults=fun?nextToken->fun?showFilterExpression->fun~accountId->fun()->{maxResults;nextToken;showFilterExpression;accountId}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("MaxResults",(Option.mapx.maxResults~f:MaxResultsDescribeBudgets.to_value));("NextToken",(Option.mapx.nextToken~f:GenericString.to_value));("ShowFilterExpression",(Option.mapx.showFilterExpression~f:NullableBoolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letshowFilterExpression=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"ShowFilterExpression")inletnextToken=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResultsDescribeBudgets.of_xml)(Xml.childxml_arg0"MaxResults")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake?showFilterExpression?nextToken?maxResults~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letshowFilterExpression=field_mapjson__"ShowFilterExpression"NullableBoolean.of_jsoninletnextToken=field_mapjson__"NextToken"GenericString.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResultsDescribeBudgets.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake?showFilterExpression?nextToken?maxResults~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request of DescribeBudgets"]moduleDescribeBudgetsResponse=structtypenonrect={budgets:Budgets.toption[@ocaml.doc"A list of budgets."];nextToken:GenericString.toption[@ocaml.doc"The pagination token in the service response that indicates the next set of results that you can retrieve."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ExpiredNextTokenExceptionofExpiredNextTokenException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidNextTokenExceptionofInvalidNextTokenException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?budgets=fun?nextToken->fun()->{budgets;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ExpiredNextTokenExceptione->`Assoc[("error",(`String"ExpiredNextTokenException"));("details",(ExpiredNextTokenException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidNextTokenExceptione->`Assoc[("error",(`String"InvalidNextTokenException"));("details",(InvalidNextTokenException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Budgets",(Option.mapx.budgets~f:Budgets.to_value));("NextToken",(Option.mapx.nextToken~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"NextToken")inletbudgets=(Option.map~f:Budgets.of_xml)(Xml.childxml_arg0"Budgets")inmake?nextToken?budgets()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"GenericString.of_jsoninletbudgets=field_mapjson__"Budgets"Budgets.of_jsoninmake?nextToken?budgets()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response of DescribeBudgets"]moduleDescribeNotificationsForBudgetRequest=structtypenonrect={accountId:AccountId.t[@ocaml.doc"The accountId that is associated with the budget whose notifications you want descriptions of."];budgetName:BudgetName.t[@ocaml.doc"The name of the budget whose notifications you want descriptions of."];maxResults:MaxResults.toption[@ocaml.doc"An optional integer that represents how many entries a paginated response contains."];nextToken:GenericString.toption[@ocaml.doc"The pagination token that you include in your request to indicate the next set of results that you want to retrieve."]}letcontext_="DescribeNotificationsForBudgetRequest"letmake?maxResults=fun?nextToken->fun~accountId->fun~budgetName->fun()->{maxResults;nextToken;accountId;budgetName}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("BudgetName",(Some(BudgetName.to_valuex.budgetName)));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletbudgetName=BudgetName.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetName")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake?nextToken?maxResults~budgetName~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"GenericString.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletbudgetName=field_map_exnjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake?nextToken?maxResults~budgetName~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request of DescribeNotificationsForBudget"]moduleDescribeNotificationsForBudgetResponse=structtypenonrect={notifications:Notifications.toption[@ocaml.doc"A list of notifications that are associated with a budget."];nextToken:GenericString.toption[@ocaml.doc"The pagination token in the service response that indicates the next set of results that you can retrieve."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ExpiredNextTokenExceptionofExpiredNextTokenException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidNextTokenExceptionofInvalidNextTokenException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?notifications=fun?nextToken->fun()->{notifications;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ExpiredNextTokenExceptione->`Assoc[("error",(`String"ExpiredNextTokenException"));("details",(ExpiredNextTokenException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidNextTokenExceptione->`Assoc[("error",(`String"InvalidNextTokenException"));("details",(InvalidNextTokenException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Notifications",(Option.mapx.notifications~f:Notifications.to_value));("NextToken",(Option.mapx.nextToken~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"NextToken")inletnotifications=(Option.map~f:Notifications.of_xml)(Xml.childxml_arg0"Notifications")inmake?nextToken?notifications()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"GenericString.of_jsoninletnotifications=field_mapjson__"Notifications"Notifications.of_jsoninmake?nextToken?notifications()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response of GetNotificationsForBudget"]moduleDescribeSubscribersForNotificationRequest=structtypenonrect={accountId:AccountId.t[@ocaml.doc"The accountId that is associated with the budget whose subscribers you want descriptions of."];budgetName:BudgetName.t[@ocaml.doc"The name of the budget whose subscribers you want descriptions of."];notification:Notification.t[@ocaml.doc"The notification whose subscribers you want to list."];maxResults:MaxResults.toption[@ocaml.doc"An optional integer that represents how many entries a paginated response contains."];nextToken:GenericString.toption[@ocaml.doc"The pagination token that you include in your request to indicate the next set of results that you want to retrieve."]}letcontext_="DescribeSubscribersForNotificationRequest"letmake?maxResults=fun?nextToken->fun~accountId->fun~budgetName->fun~notification->fun()->{maxResults;nextToken;accountId;budgetName;notification}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("BudgetName",(Some(BudgetName.to_valuex.budgetName)));("Notification",(Some(Notification.to_valuex.notification)));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnotification=Notification.of_xml(Xml.child_exn~context:context_xml_arg0"Notification")inletbudgetName=BudgetName.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetName")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake?nextToken?maxResults~notification~budgetName~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"GenericString.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnotification=field_map_exnjson__"Notification"Notification.of_jsoninletbudgetName=field_map_exnjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake?nextToken?maxResults~notification~budgetName~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request of DescribeSubscribersForNotification"]moduleDescribeSubscribersForNotificationResponse=structtypenonrect={subscribers:Subscribers.toption[@ocaml.doc"A list of subscribers that are associated with a notification."];nextToken:GenericString.toption[@ocaml.doc"The pagination token in the service response that indicates the next set of results that you can retrieve."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ExpiredNextTokenExceptionofExpiredNextTokenException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidNextTokenExceptionofInvalidNextTokenException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?subscribers=fun?nextToken->fun()->{subscribers;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ExpiredNextTokenExceptione->`Assoc[("error",(`String"ExpiredNextTokenException"));("details",(ExpiredNextTokenException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidNextTokenExceptione->`Assoc[("error",(`String"InvalidNextTokenException"));("details",(InvalidNextTokenException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Subscribers",(Option.mapx.subscribers~f:Subscribers.to_value));("NextToken",(Option.mapx.nextToken~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"NextToken")inletsubscribers=(Option.map~f:Subscribers.of_xml)(Xml.childxml_arg0"Subscribers")inmake?nextToken?subscribers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"GenericString.of_jsoninletsubscribers=field_mapjson__"Subscribers"Subscribers.of_jsoninmake?nextToken?subscribers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response of DescribeSubscribersForNotification"]moduleExecutionType=structtypenonrect=|APPROVE_BUDGET_ACTION|RETRY_BUDGET_ACTION|REVERSE_BUDGET_ACTION|RESET_BUDGET_ACTION|Non_static_idofstringletmakei=iletto_string=function|APPROVE_BUDGET_ACTION->"APPROVE_BUDGET_ACTION"|RETRY_BUDGET_ACTION->"RETRY_BUDGET_ACTION"|REVERSE_BUDGET_ACTION->"REVERSE_BUDGET_ACTION"|RESET_BUDGET_ACTION->"RESET_BUDGET_ACTION"|Non_static_ids->sletof_string=function|"APPROVE_BUDGET_ACTION"->APPROVE_BUDGET_ACTION|"RETRY_BUDGET_ACTION"->RETRY_BUDGET_ACTION|"REVERSE_BUDGET_ACTION"->REVERSE_BUDGET_ACTION|"RESET_BUDGET_ACTION"->RESET_BUDGET_ACTION|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 ExecutionType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ExecutionType"j)letto_json=simple_to_jsonto_valueendmoduleExecuteBudgetActionRequest=structtypenonrect={accountId:AccountId.t;budgetName:BudgetName.t;actionId:ActionId.t[@ocaml.doc"A system-generated universally unique identifier (UUID) for the action."];executionType:ExecutionType.t[@ocaml.doc"The type of execution."]}letcontext_="ExecuteBudgetActionRequest"letmake~accountId=fun~budgetName->fun~actionId->fun~executionType->fun()->{accountId;budgetName;actionId;executionType}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("BudgetName",(Some(BudgetName.to_valuex.budgetName)));("ActionId",(Some(ActionId.to_valuex.actionId)));("ExecutionType",(Some(ExecutionType.to_valuex.executionType)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexecutionType=ExecutionType.of_xml(Xml.child_exn~context:context_xml_arg0"ExecutionType")inletactionId=ActionId.of_xml(Xml.child_exn~context:context_xml_arg0"ActionId")inletbudgetName=BudgetName.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetName")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake~executionType~actionId~budgetName~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexecutionType=field_map_exnjson__"ExecutionType"ExecutionType.of_jsoninletactionId=field_map_exnjson__"ActionId"ActionId.of_jsoninletbudgetName=field_map_exnjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake~executionType~actionId~budgetName~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Executes a budget action."]moduleExecuteBudgetActionResponse=structtypenonrect={accountId:AccountId.toption;budgetName:BudgetName.toption;actionId:ActionId.toption[@ocaml.doc"A system-generated universally unique identifier (UUID) for the action."];executionType:ExecutionType.toption[@ocaml.doc"The type of execution."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ResourceLockedExceptionofResourceLockedException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accountId=fun?budgetName->fun?actionId->fun?executionType->fun()->{accountId;budgetName;actionId;executionType}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ResourceLockedException"->`ResourceLockedException(ResourceLockedException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ResourceLockedException"->`ResourceLockedException(ResourceLockedException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ResourceLockedExceptione->`Assoc[("error",(`String"ResourceLockedException"));("details",(ResourceLockedException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AccountId",(Option.mapx.accountId~f:AccountId.to_value));("BudgetName",(Option.mapx.budgetName~f:BudgetName.to_value));("ActionId",(Option.mapx.actionId~f:ActionId.to_value));("ExecutionType",(Option.mapx.executionType~f:ExecutionType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexecutionType=(Option.map~f:ExecutionType.of_xml)(Xml.childxml_arg0"ExecutionType")inletactionId=(Option.map~f:ActionId.of_xml)(Xml.childxml_arg0"ActionId")inletbudgetName=(Option.map~f:BudgetName.of_xml)(Xml.childxml_arg0"BudgetName")inletaccountId=(Option.map~f:AccountId.of_xml)(Xml.childxml_arg0"AccountId")inmake?executionType?actionId?budgetName?accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexecutionType=field_mapjson__"ExecutionType"ExecutionType.of_jsoninletactionId=field_mapjson__"ActionId"ActionId.of_jsoninletbudgetName=field_mapjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_mapjson__"AccountId"AccountId.of_jsoninmake?executionType?actionId?budgetName?accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Executes a budget action."]moduleListTagsForResourceRequest=structtypenonrect={resourceARN:AmazonResourceName.t[@ocaml.doc"The unique identifier for the resource."]}letcontext_="ListTagsForResourceRequest"letmake~resourceARN=fun()->{resourceARN}letto_valuex=structure_to_value[("ResourceARN",(Some(AmazonResourceName.to_valuex.resourceARN)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceARN=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceARN=field_map_exnjson__"ResourceARN"AmazonResourceName.of_jsoninmake~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists tags associated with a budget or budget action resource."]moduleListTagsForResourceResponse=structtypenonrect={resourceTags:ResourceTagList.toption[@ocaml.doc"The tags associated with the resource."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?resourceTags=fun()->{resourceTags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ResourceTags",(Option.mapx.resourceTags~f:ResourceTagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceTags=(Option.map~f:ResourceTagList.of_xml)(Xml.childxml_arg0"ResourceTags")inmake?resourceTags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceTags=field_mapjson__"ResourceTags"ResourceTagList.of_jsoninmake?resourceTags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists tags associated with a budget or budget action resource."]moduleResourceTagKeyList=structtypenonrect=ResourceTagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ResourceTagKey.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:ResourceTagKey.of_xml)letof_jsonj=list_of_json~kind:"ResourceTagKeyList"~of_json:ResourceTagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagResourceRequest=structtypenonrect={resourceARN:AmazonResourceName.t[@ocaml.doc"The unique identifier for the resource."];resourceTags:ResourceTagList.t[@ocaml.doc"The tags associated with the resource."]}letcontext_="TagResourceRequest"letmake~resourceARN=fun~resourceTags->fun()->{resourceARN;resourceTags}letto_valuex=structure_to_value[("ResourceARN",(Some(AmazonResourceName.to_valuex.resourceARN)));("ResourceTags",(Some(ResourceTagList.to_valuex.resourceTags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceTags=ResourceTagList.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceTags")inletresourceARN=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~resourceTags~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceTags=field_map_exnjson__"ResourceTags"ResourceTagList.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"AmazonResourceName.of_jsoninmake~resourceTags~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates tags for a budget or budget action resource."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates tags for a budget or budget action resource."]moduleUntagResourceRequest=structtypenonrect={resourceARN:AmazonResourceName.t[@ocaml.doc"The unique identifier for the resource."];resourceTagKeys:ResourceTagKeyList.t[@ocaml.doc"The key that's associated with the tag."]}letcontext_="UntagResourceRequest"letmake~resourceARN=fun~resourceTagKeys->fun()->{resourceARN;resourceTagKeys}letto_valuex=structure_to_value[("ResourceARN",(Some(AmazonResourceName.to_valuex.resourceARN)));("ResourceTagKeys",(Some(ResourceTagKeyList.to_valuex.resourceTagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceTagKeys=ResourceTagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceTagKeys")inletresourceARN=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~resourceTagKeys~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceTagKeys=field_map_exnjson__"ResourceTagKeys"ResourceTagKeyList.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"AmazonResourceName.of_jsoninmake~resourceTagKeys~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes tags associated with a budget or budget action resource."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes tags associated with a budget or budget action resource."]moduleUpdateBudgetActionRequest=structtypenonrect={accountId:AccountId.t;budgetName:BudgetName.t;actionId:ActionId.t[@ocaml.doc"A system-generated universally unique identifier (UUID) for the action."];notificationType:NotificationType.toption;actionThreshold:ActionThreshold.toption;definition:Definition.toption;executionRoleArn:RoleArn.toption[@ocaml.doc"The role passed for action execution and reversion. Roles and actions must be in the same account."];approvalModel:ApprovalModel.toption[@ocaml.doc"This specifies if the action needs manual or automatic approval."];subscribers:Subscribers.toption}letcontext_="UpdateBudgetActionRequest"letmake?notificationType=fun?actionThreshold->fun?definition->fun?executionRoleArn->fun?approvalModel->fun?subscribers->fun~accountId->fun~budgetName->fun~actionId->fun()->{notificationType;actionThreshold;definition;executionRoleArn;approvalModel;subscribers;accountId;budgetName;actionId}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("BudgetName",(Some(BudgetName.to_valuex.budgetName)));("ActionId",(Some(ActionId.to_valuex.actionId)));("NotificationType",(Option.mapx.notificationType~f:NotificationType.to_value));("ActionThreshold",(Option.mapx.actionThreshold~f:ActionThreshold.to_value));("Definition",(Option.mapx.definition~f:Definition.to_value));("ExecutionRoleArn",(Option.mapx.executionRoleArn~f:RoleArn.to_value));("ApprovalModel",(Option.mapx.approvalModel~f:ApprovalModel.to_value));("Subscribers",(Option.mapx.subscribers~f:Subscribers.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsubscribers=(Option.map~f:Subscribers.of_xml)(Xml.childxml_arg0"Subscribers")inletapprovalModel=(Option.map~f:ApprovalModel.of_xml)(Xml.childxml_arg0"ApprovalModel")inletexecutionRoleArn=(Option.map~f:RoleArn.of_xml)(Xml.childxml_arg0"ExecutionRoleArn")inletdefinition=(Option.map~f:Definition.of_xml)(Xml.childxml_arg0"Definition")inletactionThreshold=(Option.map~f:ActionThreshold.of_xml)(Xml.childxml_arg0"ActionThreshold")inletnotificationType=(Option.map~f:NotificationType.of_xml)(Xml.childxml_arg0"NotificationType")inletactionId=ActionId.of_xml(Xml.child_exn~context:context_xml_arg0"ActionId")inletbudgetName=BudgetName.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetName")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake?subscribers?approvalModel?executionRoleArn?definition?actionThreshold?notificationType~actionId~budgetName~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubscribers=field_mapjson__"Subscribers"Subscribers.of_jsoninletapprovalModel=field_mapjson__"ApprovalModel"ApprovalModel.of_jsoninletexecutionRoleArn=field_mapjson__"ExecutionRoleArn"RoleArn.of_jsoninletdefinition=field_mapjson__"Definition"Definition.of_jsoninletactionThreshold=field_mapjson__"ActionThreshold"ActionThreshold.of_jsoninletnotificationType=field_mapjson__"NotificationType"NotificationType.of_jsoninletactionId=field_map_exnjson__"ActionId"ActionId.of_jsoninletbudgetName=field_map_exnjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake?subscribers?approvalModel?executionRoleArn?definition?actionThreshold?notificationType~actionId~budgetName~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a budget action."]moduleUpdateBudgetActionResponse=structtypenonrect={accountId:AccountId.toption;budgetName:BudgetName.toption;oldAction:Action.toption[@ocaml.doc"The previous action resource information."];newAction:Action.toption[@ocaml.doc"The updated action resource information."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ResourceLockedExceptionofResourceLockedException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accountId=fun?budgetName->fun?oldAction->fun?newAction->fun()->{accountId;budgetName;oldAction;newAction}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ResourceLockedException"->`ResourceLockedException(ResourceLockedException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ResourceLockedException"->`ResourceLockedException(ResourceLockedException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ResourceLockedExceptione->`Assoc[("error",(`String"ResourceLockedException"));("details",(ResourceLockedException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AccountId",(Option.mapx.accountId~f:AccountId.to_value));("BudgetName",(Option.mapx.budgetName~f:BudgetName.to_value));("OldAction",(Option.mapx.oldAction~f:Action.to_value));("NewAction",(Option.mapx.newAction~f:Action.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnewAction=(Option.map~f:Action.of_xml)(Xml.childxml_arg0"NewAction")inletoldAction=(Option.map~f:Action.of_xml)(Xml.childxml_arg0"OldAction")inletbudgetName=(Option.map~f:BudgetName.of_xml)(Xml.childxml_arg0"BudgetName")inletaccountId=(Option.map~f:AccountId.of_xml)(Xml.childxml_arg0"AccountId")inmake?newAction?oldAction?budgetName?accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnewAction=field_mapjson__"NewAction"Action.of_jsoninletoldAction=field_mapjson__"OldAction"Action.of_jsoninletbudgetName=field_mapjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_mapjson__"AccountId"AccountId.of_jsoninmake?newAction?oldAction?budgetName?accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a budget action."]moduleUpdateBudgetRequest=structtypenonrect={accountId:AccountId.t[@ocaml.doc"The accountId that is associated with the budget that you want to update."];newBudget:Budget.t[@ocaml.doc"The budget that you want to update your budget to."]}letcontext_="UpdateBudgetRequest"letmake~accountId=fun~newBudget->fun()->{accountId;newBudget}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("NewBudget",(Some(Budget.to_valuex.newBudget)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnewBudget=Budget.of_xml(Xml.child_exn~context:context_xml_arg0"NewBudget")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake~newBudget~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnewBudget=field_map_exnjson__"NewBudget"Budget.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake~newBudget~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request of UpdateBudget"]moduleUpdateBudgetResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`BillingViewHealthStatusExceptionofBillingViewHealthStatusException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"BillingViewHealthStatusException"->`BillingViewHealthStatusException(BillingViewHealthStatusException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"BillingViewHealthStatusException"->`BillingViewHealthStatusException(BillingViewHealthStatusException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`BillingViewHealthStatusExceptione->`Assoc[("error",(`String"BillingViewHealthStatusException"));("details",(BillingViewHealthStatusException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.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"Response of UpdateBudget"]moduleUpdateNotificationRequest=structtypenonrect={accountId:AccountId.t[@ocaml.doc"The accountId that is associated with the budget whose notification you want to update."];budgetName:BudgetName.t[@ocaml.doc"The name of the budget whose notification you want to update."];oldNotification:Notification.t[@ocaml.doc"The previous notification that is associated with a budget."];newNotification:Notification.t[@ocaml.doc"The updated notification to be associated with a budget."]}letcontext_="UpdateNotificationRequest"letmake~accountId=fun~budgetName->fun~oldNotification->fun~newNotification->fun()->{accountId;budgetName;oldNotification;newNotification}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("BudgetName",(Some(BudgetName.to_valuex.budgetName)));("OldNotification",(Some(Notification.to_valuex.oldNotification)));("NewNotification",(Some(Notification.to_valuex.newNotification)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnewNotification=Notification.of_xml(Xml.child_exn~context:context_xml_arg0"NewNotification")inletoldNotification=Notification.of_xml(Xml.child_exn~context:context_xml_arg0"OldNotification")inletbudgetName=BudgetName.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetName")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake~newNotification~oldNotification~budgetName~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnewNotification=field_map_exnjson__"NewNotification"Notification.of_jsoninletoldNotification=field_map_exnjson__"OldNotification"Notification.of_jsoninletbudgetName=field_map_exnjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake~newNotification~oldNotification~budgetName~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request of UpdateNotification"]moduleUpdateNotificationResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DuplicateRecordExceptionofDuplicateRecordException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DuplicateRecordException"->`DuplicateRecordException(DuplicateRecordException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DuplicateRecordException"->`DuplicateRecordException(DuplicateRecordException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DuplicateRecordExceptione->`Assoc[("error",(`String"DuplicateRecordException"));("details",(DuplicateRecordException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.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"Response of UpdateNotification"]moduleUpdateSubscriberRequest=structtypenonrect={accountId:AccountId.t[@ocaml.doc"The accountId that is associated with the budget whose subscriber you want to update."];budgetName:BudgetName.t[@ocaml.doc"The name of the budget whose subscriber you want to update."];notification:Notification.t[@ocaml.doc"The notification whose subscriber you want to update."];oldSubscriber:Subscriber.t[@ocaml.doc"The previous subscriber that is associated with a budget notification."];newSubscriber:Subscriber.t[@ocaml.doc"The updated subscriber that is associated with a budget notification."]}letcontext_="UpdateSubscriberRequest"letmake~accountId=fun~budgetName->fun~notification->fun~oldSubscriber->fun~newSubscriber->fun()->{accountId;budgetName;notification;oldSubscriber;newSubscriber}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("BudgetName",(Some(BudgetName.to_valuex.budgetName)));("Notification",(Some(Notification.to_valuex.notification)));("OldSubscriber",(Some(Subscriber.to_valuex.oldSubscriber)));("NewSubscriber",(Some(Subscriber.to_valuex.newSubscriber)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnewSubscriber=Subscriber.of_xml(Xml.child_exn~context:context_xml_arg0"NewSubscriber")inletoldSubscriber=Subscriber.of_xml(Xml.child_exn~context:context_xml_arg0"OldSubscriber")inletnotification=Notification.of_xml(Xml.child_exn~context:context_xml_arg0"Notification")inletbudgetName=BudgetName.of_xml(Xml.child_exn~context:context_xml_arg0"BudgetName")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake~newSubscriber~oldSubscriber~notification~budgetName~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnewSubscriber=field_map_exnjson__"NewSubscriber"Subscriber.of_jsoninletoldSubscriber=field_map_exnjson__"OldSubscriber"Subscriber.of_jsoninletnotification=field_map_exnjson__"Notification"Notification.of_jsoninletbudgetName=field_map_exnjson__"BudgetName"BudgetName.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake~newSubscriber~oldSubscriber~notification~budgetName~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request of UpdateSubscriber"]moduleUpdateSubscriberResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DuplicateRecordExceptionofDuplicateRecordException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DuplicateRecordException"->`DuplicateRecordException(DuplicateRecordException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DuplicateRecordException"->`DuplicateRecordException(DuplicateRecordException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DuplicateRecordExceptione->`Assoc[("error",(`String"DuplicateRecordException"));("details",(DuplicateRecordException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.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"Response of UpdateSubscriber"]