123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954(* 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.resource_explorer_2letapiVersion="2022-07-28"letendpointPrefix="resource-explorer-2"letserviceFullName="AWS Resource Explorer"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"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[]))])moduleIncludedPropertyNameString=structtypenonrect=stringletcontext_="IncludedPropertyNameString"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:"IncludedPropertyNameString"jletto_json=simple_to_jsonto_valueendmoduleIncludedProperty=structtypenonrect={name:IncludedPropertyNameString.t[@ocaml.doc"The name of the property that is included in this view. You can specify the following property names for this field: tags"]}letcontext_="IncludedProperty"letmake~name=fun()->{name}letto_valuex=structure_to_value[("Name",(Some(IncludedPropertyNameString.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=IncludedPropertyNameString.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"Name"IncludedPropertyNameString.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about an additional property that describes a resource, that you can optionally include in the view. This lets you view that property in search results, and filter your search results based on the value of the property."]moduleSearchFilterFilterStringString=structtypenonrect=stringletcontext_="SearchFilterFilterStringString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(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:"SearchFilterFilterStringString"jletto_json=simple_to_jsonto_valueendmoduleDocument=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleSyntheticTimestamp_date_time=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleIndexType=structtypenonrect=|LOCAL|AGGREGATOR|Non_static_idofstringletmakei=iletto_string=function|LOCAL->"LOCAL"|AGGREGATOR->"AGGREGATOR"|Non_static_ids->sletof_string=function|"LOCAL"->LOCAL|"AGGREGATOR"->AGGREGATOR|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 IndexType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"IndexType"j)letto_json=simple_to_jsonto_valueendmoduleIncludedPropertyList=structtypenonrect=IncludedProperty.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:IncludedProperty.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:IncludedProperty.of_xml)letof_jsonj=list_of_json~kind:"IncludedPropertyList"~of_json:IncludedProperty.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSearchFilter=structtypenonrect={filterString:SearchFilterFilterStringString.t[@ocaml.doc"The string that contains the search keywords, prefixes, and operators to control the results that can be returned by a Search operation. For more details, see Search query syntax."]}letcontext_="SearchFilter"letmake~filterString=fun()->{filterString}letto_valuex=structure_to_value[("FilterString",(Some(SearchFilterFilterStringString.to_valuex.filterString)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfilterString=SearchFilterFilterStringString.of_xml(Xml.child_exn~context:context_xml_arg0"FilterString")inmake~filterString()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfilterString=field_map_exnjson__"FilterString"SearchFilterFilterStringString.of_jsoninmake~filterString()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A search filter defines which resources can be part of a search query result set."]moduleViewName=structtypenonrect=stringletcontext_="ViewName"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9\\-]{1,64}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ViewName"jletto_json=simple_to_jsonto_valueendmoduleResourceProperty=structtypenonrect={name:String_.toption[@ocaml.doc"The name of this property of the resource."];lastReportedAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The date and time that the information about this resource property was last updated."];data:Document.toption[@ocaml.doc"Details about this property. The content of this field is a JSON object that varies based on the resource type."]}letmake?name=fun?lastReportedAt->fun?data->fun()->{name;lastReportedAt;data}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:String_.to_value));("LastReportedAt",(Option.mapx.lastReportedAt~f:SyntheticTimestamp_date_time.to_value));("Data",(Option.mapx.data~f:Document.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdata=(Option.map~f:Document.of_xml)(Xml.childxml_arg0"Data")inletlastReportedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"LastReportedAt")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Name")inmake?data?lastReportedAt?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdata=field_mapjson__"Data"Document.of_jsoninletlastReportedAt=field_mapjson__"LastReportedAt"SyntheticTimestamp_date_time.of_jsoninletname=field_mapjson__"Name"String_.of_jsoninmake?data?lastReportedAt?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that describes a property of a resource."]moduleErrorDetails=structtypenonrect={code:String_.toption[@ocaml.doc"The error code that identifies the type of error that occurred."];message:String_.toption[@ocaml.doc"A human-readable description of the error that occurred."]}letmake?code=fun?message->fun()->{code;message}letto_valuex=structure_to_value[("Code",(Option.mapx.code~f:String_.to_value));("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inletcode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Code")inmake?message?code()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninletcode=field_mapjson__"Code"String_.of_jsoninmake?message?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about an error that occurred during a Resource Explorer setup operation."]moduleIndex=structtypenonrect={region:String_.toption[@ocaml.doc"The Amazon Web Services Region in which the index exists."];arn:String_.toption[@ocaml.doc"The Amazon resource name (ARN) of the index."];type_:IndexType.toption[@ocaml.doc"The type of index. It can be one of the following values: LOCAL \226\128\147 The index contains information about resources from only the same Amazon Web Services Region. AGGREGATOR \226\128\147 Resource Explorer replicates copies of the indexed information about resources in all other Amazon Web Services Regions to the aggregator index. This lets search results in the Region with the aggregator index to include resources from all Regions in the account where Resource Explorer is turned on."]}letmake?region=fun?arn->fun?type_->fun()->{region;arn;type_}letto_valuex=structure_to_value[("Region",(Option.mapx.region~f:String_.to_value));("Arn",(Option.mapx.arn~f:String_.to_value));("Type",(Option.mapx.type_~f:IndexType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=(Option.map~f:IndexType.of_xml)(Xml.childxml_arg0"Type")inletarn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Arn")inletregion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Region")inmake?type_?arn?region()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_mapjson__"Type"IndexType.of_jsoninletarn=field_mapjson__"Arn"String_.of_jsoninletregion=field_mapjson__"Region"String_.of_jsoninmake?type_?arn?region()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An index is the data store used by Amazon Web Services Resource Explorer to hold information about your Amazon Web Services resources that the service discovers. Creating an index in an Amazon Web Services Region turns on Resource Explorer and lets it discover your resources. By default, an index is local, meaning that it contains information about resources in only the same Region as the index. However, you can promote the index of one Region in the account by calling UpdateIndexType to convert it into an aggregator index. The aggregator index receives a replicated copy of the index information from all other Regions where Resource Explorer is turned on. This allows search operations in that Region to return results from all Regions in the account."]moduleOperationStatus=structtypenonrect=|SUCCEEDED|FAILED|IN_PROGRESS|SKIPPED|Non_static_idofstringletmakei=iletto_string=function|SUCCEEDED->"SUCCEEDED"|FAILED->"FAILED"|IN_PROGRESS->"IN_PROGRESS"|SKIPPED->"SKIPPED"|Non_static_ids->sletof_string=function|"SUCCEEDED"->SUCCEEDED|"FAILED"->FAILED|"IN_PROGRESS"->IN_PROGRESS|"SKIPPED"->SKIPPED|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 OperationStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"OperationStatus"j)letto_json=simple_to_jsonto_valueendmoduleView=structtypenonrect={viewArn:String_.toption[@ocaml.doc"The Amazon resource name (ARN) of the view."];viewName:ViewName.toption[@ocaml.doc"The name of the view."];owner:String_.toption[@ocaml.doc"The Amazon Web Services account that owns this view."];lastUpdatedAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The date and time when this view was last modified."];scope:String_.toption[@ocaml.doc"An Amazon resource name (ARN) of an Amazon Web Services account, an organization, or an organizational unit (OU) that specifies whether this view includes resources from only the specified Amazon Web Services account, all accounts in the specified organization, or all accounts in the specified OU. If not specified, the value defaults to the Amazon Web Services account used to call this operation."];includedProperties:IncludedPropertyList.toption[@ocaml.doc"A structure that contains additional information about the view."];filters:SearchFilter.toption[@ocaml.doc"An array of SearchFilter objects that specify which resources can be included in the results of queries made using this view."]}letmake?viewArn=fun?viewName->fun?owner->fun?lastUpdatedAt->fun?scope->fun?includedProperties->fun?filters->fun()->{viewArn;viewName;owner;lastUpdatedAt;scope;includedProperties;filters}letto_valuex=structure_to_value[("ViewArn",(Option.mapx.viewArn~f:String_.to_value));("ViewName",(Option.mapx.viewName~f:ViewName.to_value));("Owner",(Option.mapx.owner~f:String_.to_value));("LastUpdatedAt",(Option.mapx.lastUpdatedAt~f:SyntheticTimestamp_date_time.to_value));("Scope",(Option.mapx.scope~f:String_.to_value));("IncludedProperties",(Option.mapx.includedProperties~f:IncludedPropertyList.to_value));("Filters",(Option.mapx.filters~f:SearchFilter.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfilters=(Option.map~f:SearchFilter.of_xml)(Xml.childxml_arg0"Filters")inletincludedProperties=(Option.map~f:IncludedPropertyList.of_xml)(Xml.childxml_arg0"IncludedProperties")inletscope=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Scope")inletlastUpdatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"LastUpdatedAt")inletowner=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Owner")inletviewName=(Option.map~f:ViewName.of_xml)(Xml.childxml_arg0"ViewName")inletviewArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ViewArn")inmake?filters?includedProperties?scope?lastUpdatedAt?owner?viewName?viewArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfilters=field_mapjson__"Filters"SearchFilter.of_jsoninletincludedProperties=field_mapjson__"IncludedProperties"IncludedPropertyList.of_jsoninletscope=field_mapjson__"Scope"String_.of_jsoninletlastUpdatedAt=field_mapjson__"LastUpdatedAt"SyntheticTimestamp_date_time.of_jsoninletowner=field_mapjson__"Owner"String_.of_jsoninletviewName=field_mapjson__"ViewName"ViewName.of_jsoninletviewArn=field_mapjson__"ViewArn"String_.of_jsoninmake?filters?includedProperties?scope?lastUpdatedAt?owner?viewName?viewArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A view is a structure that defines a set of filters that provide a view into the information in the Amazon Web Services Resource Explorer index. The filters specify which information from the index is visible to the users of the view. For example, you can specify filters that include only resources that are tagged with the key \"ENV\" and the value \"DEVELOPMENT\" in the results returned by this view. You could also create a second view that includes only resources that are tagged with \"ENV\" and \"PRODUCTION\"."]moduleValidationExceptionField=structtypenonrect={name:String_.toption[@ocaml.doc"The name of the request field that had a validation error."];validationIssue:String_.toption[@ocaml.doc"The validation error caused by the request field."]}letmake?name=fun?validationIssue->fun()->{name;validationIssue}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:String_.to_value));("ValidationIssue",(Option.mapx.validationIssue~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalidationIssue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ValidationIssue")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Name")inmake?validationIssue?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalidationIssue=field_mapjson__"ValidationIssue"String_.of_jsoninletname=field_mapjson__"Name"String_.of_jsoninmake?validationIssue?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that describes a request field with a validation error."]moduleResourcePropertyList=structtypenonrect=ResourceProperty.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ResourceProperty.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:ResourceProperty.of_xml)letof_jsonj=list_of_json~kind:"ResourcePropertyList"~of_json:ResourceProperty.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleIndexStatus=structtypenonrect={status:OperationStatus.toption[@ocaml.doc"The current status of the index operation. Valid values are SUCCEEDED, FAILED, IN_PROGRESS, or SKIPPED."];index:Index.toption;errorDetails:ErrorDetails.toption[@ocaml.doc"Details about any error that occurred during the index operation."]}letmake?status=fun?index->fun?errorDetails->fun()->{status;index;errorDetails}letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:OperationStatus.to_value));("Index",(Option.mapx.index~f:Index.to_value));("ErrorDetails",(Option.mapx.errorDetails~f:ErrorDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorDetails=(Option.map~f:ErrorDetails.of_xml)(Xml.childxml_arg0"ErrorDetails")inletindex=(Option.map~f:Index.of_xml)(Xml.childxml_arg0"Index")inletstatus=(Option.map~f:OperationStatus.of_xml)(Xml.childxml_arg0"Status")inmake?errorDetails?index?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorDetails=field_mapjson__"ErrorDetails"ErrorDetails.of_jsoninletindex=field_mapjson__"Index"Index.of_jsoninletstatus=field_mapjson__"Status"OperationStatus.of_jsoninmake?errorDetails?index?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about the status of a Resource Explorer index operation in a specific Region."]moduleRegionStatusRegionString=structtypenonrect=stringletcontext_="RegionStatusRegionString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-z-]+-[a-z]+-[0-9]");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RegionStatusRegionString"jletto_json=simple_to_jsonto_valueendmoduleViewStatus=structtypenonrect={status:OperationStatus.toption[@ocaml.doc"The current status of the view operation. Valid values are SUCCEEDED, FAILED, IN_PROGRESS, or SKIPPED."];view:View.toption;errorDetails:ErrorDetails.toption[@ocaml.doc"Details about any error that occurred during the view operation."]}letmake?status=fun?view->fun?errorDetails->fun()->{status;view;errorDetails}letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:OperationStatus.to_value));("View",(Option.mapx.view~f:View.to_value));("ErrorDetails",(Option.mapx.errorDetails~f:ErrorDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorDetails=(Option.map~f:ErrorDetails.of_xml)(Xml.childxml_arg0"ErrorDetails")inletview=(Option.map~f:View.of_xml)(Xml.childxml_arg0"View")inletstatus=(Option.map~f:OperationStatus.of_xml)(Xml.childxml_arg0"Status")inmake?errorDetails?view?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorDetails=field_mapjson__"ErrorDetails"ErrorDetails.of_jsoninletview=field_mapjson__"View"View.of_jsoninletstatus=field_mapjson__"Status"OperationStatus.of_jsoninmake?errorDetails?view?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about the status of a Resource Explorer view operation in a specific Region."]moduleValidationExceptionFieldList=structtypenonrect=ValidationExceptionField.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ValidationExceptionField.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:ValidationExceptionField.of_xml)letof_jsonj=list_of_json~kind:"ValidationExceptionFieldList"~of_json:ValidationExceptionField.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBoolean=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_valueendmoduleLong=structtypenonrect=Int64.tletmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleResource=structtypenonrect={arn:String_.toption[@ocaml.doc"The Amazon resource name (ARN) of the resource."];owningAccountId:String_.toption[@ocaml.doc"The Amazon Web Services account that owns the resource."];region:String_.toption[@ocaml.doc"The Amazon Web Services Region in which the resource was created and exists."];resourceType:String_.toption[@ocaml.doc"The type of the resource."];service:String_.toption[@ocaml.doc"The Amazon Web Services service that owns the resource and is responsible for creating and updating it."];lastReportedAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The date and time that Resource Explorer last queried this resource and updated the index with the latest information about the resource."];properties:ResourcePropertyList.toption[@ocaml.doc"A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services."]}letmake?arn=fun?owningAccountId->fun?region->fun?resourceType->fun?service->fun?lastReportedAt->fun?properties->fun()->{arn;owningAccountId;region;resourceType;service;lastReportedAt;properties}letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:String_.to_value));("OwningAccountId",(Option.mapx.owningAccountId~f:String_.to_value));("Region",(Option.mapx.region~f:String_.to_value));("ResourceType",(Option.mapx.resourceType~f:String_.to_value));("Service",(Option.mapx.service~f:String_.to_value));("LastReportedAt",(Option.mapx.lastReportedAt~f:SyntheticTimestamp_date_time.to_value));("Properties",(Option.mapx.properties~f:ResourcePropertyList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letproperties=(Option.map~f:ResourcePropertyList.of_xml)(Xml.childxml_arg0"Properties")inletlastReportedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"LastReportedAt")inletservice=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Service")inletresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ResourceType")inletregion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Region")inletowningAccountId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"OwningAccountId")inletarn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Arn")inmake?properties?lastReportedAt?service?resourceType?region?owningAccountId?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letproperties=field_mapjson__"Properties"ResourcePropertyList.of_jsoninletlastReportedAt=field_mapjson__"LastReportedAt"SyntheticTimestamp_date_time.of_jsoninletservice=field_mapjson__"Service"String_.of_jsoninletresourceType=field_mapjson__"ResourceType"String_.of_jsoninletregion=field_mapjson__"Region"String_.of_jsoninletowningAccountId=field_mapjson__"OwningAccountId"String_.of_jsoninletarn=field_mapjson__"Arn"String_.of_jsoninmake?properties?lastReportedAt?service?resourceType?region?owningAccountId?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A resource in Amazon Web Services that Amazon Web Services Resource Explorer has discovered, and for which it has stored information in the index of the Amazon Web Services Region that contains the resource."]moduleSupportedResourceType=structtypenonrect={service:String_.toption[@ocaml.doc"The Amazon Web Services service that is associated with the resource type. This is the primary service that lets you create and interact with resources of this type."];resourceType:String_.toption[@ocaml.doc"The unique identifier of the resource type."]}letmake?service=fun?resourceType->fun()->{service;resourceType}letto_valuex=structure_to_value[("Service",(Option.mapx.service~f:String_.to_value));("ResourceType",(Option.mapx.resourceType~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ResourceType")inletservice=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Service")inmake?resourceType?service()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"ResourceType"String_.of_jsoninletservice=field_mapjson__"Service"String_.of_jsoninmake?resourceType?service()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that describes a resource type supported by Amazon Web Services Resource Explorer."]moduleStreamingAccessDetails=structtypenonrect={servicePrincipal:String_.toption[@ocaml.doc"The service principal of the Amazon Web Services service that has streaming access to your Resource Explorer data. A service principal is a unique identifier for an Amazon Web Services service."];createdAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The date and time when streaming access was granted to the Amazon Web Services service, in ISO 8601 format."]}letmake?servicePrincipal=fun?createdAt->fun()->{servicePrincipal;createdAt}letto_valuex=structure_to_value[("ServicePrincipal",(Option.mapx.servicePrincipal~f:String_.to_value));("CreatedAt",(Option.mapx.createdAt~f:SyntheticTimestamp_date_time.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"CreatedAt")inletservicePrincipal=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ServicePrincipal")inmake?createdAt?servicePrincipal()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreatedAt=field_mapjson__"CreatedAt"SyntheticTimestamp_date_time.of_jsoninletservicePrincipal=field_mapjson__"ServicePrincipal"String_.of_jsoninmake?createdAt?servicePrincipal()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about an Amazon Web Services service that has been granted streaming access to your Resource Explorer data."]moduleListServiceIndexesInputRegionsListMemberString=structtypenonrect=stringletcontext_="ListServiceIndexesInputRegionsListMemberString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-z-]+-[a-z]+-[0-9]");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ListServiceIndexesInputRegionsListMemberString"jletto_json=simple_to_jsonto_valueendmoduleListIndexesInputRegionsListMemberString=structtypenonrect=stringletcontext_="ListIndexesInputRegionsListMemberString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-z-]+-[a-z]+-[0-9]");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ListIndexesInputRegionsListMemberString"jletto_json=simple_to_jsonto_valueendmoduleMemberIndex=structtypenonrect={accountId:String_.toption[@ocaml.doc"The account ID for the index."];region:String_.toption[@ocaml.doc"The Amazon Web Services Region in which the index exists."];arn:String_.toption[@ocaml.doc"The Amazon resource name (ARN) of the index."];type_:IndexType.toption[@ocaml.doc"The type of index. It can be one of the following values: LOCAL \226\128\147 The index contains information about resources from only the same Amazon Web Services Region. AGGREGATOR \226\128\147 Resource Explorer replicates copies of the indexed information about resources in all other Amazon Web Services Regions to the aggregator index. This lets search results in the Region with the aggregator index to include resources from all Regions in the account where Resource Explorer is turned on."]}letmake?accountId=fun?region->fun?arn->fun?type_->fun()->{accountId;region;arn;type_}letto_valuex=structure_to_value[("AccountId",(Option.mapx.accountId~f:String_.to_value));("Region",(Option.mapx.region~f:String_.to_value));("Arn",(Option.mapx.arn~f:String_.to_value));("Type",(Option.mapx.type_~f:IndexType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=(Option.map~f:IndexType.of_xml)(Xml.childxml_arg0"Type")inletarn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Arn")inletregion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Region")inletaccountId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"AccountId")inmake?type_?arn?region?accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_mapjson__"Type"IndexType.of_jsoninletarn=field_mapjson__"Arn"String_.of_jsoninletregion=field_mapjson__"Region"String_.of_jsoninletaccountId=field_mapjson__"AccountId"String_.of_jsoninmake?type_?arn?region?accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An index is the data store used by Amazon Web Services Resource Explorer to hold information about your Amazon Web Services resources that the service discovers."]moduleAccountId=structtypenonrect=stringletcontext_="AccountId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AccountId"jletto_json=simple_to_jsonto_valueendmoduleServiceViewName=structtypenonrect=stringletcontext_="ServiceViewName"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9\\-]{1,64}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ServiceViewName"jletto_json=simple_to_jsonto_valueendmoduleRegionStatus=structtypenonrect={region:RegionStatusRegionString.toption[@ocaml.doc"The Amazon Web Services Region for which this status information applies."];index:IndexStatus.toption[@ocaml.doc"The status information for the Resource Explorer index in this Region."];view:ViewStatus.toption[@ocaml.doc"The status information for the Resource Explorer view in this Region."]}letmake?region=fun?index->fun?view->fun()->{region;index;view}letto_valuex=structure_to_value[("Region",(Option.mapx.region~f:RegionStatusRegionString.to_value));("Index",(Option.mapx.index~f:IndexStatus.to_value));("View",(Option.mapx.view~f:ViewStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letview=(Option.map~f:ViewStatus.of_xml)(Xml.childxml_arg0"View")inletindex=(Option.map~f:IndexStatus.of_xml)(Xml.childxml_arg0"Index")inletregion=(Option.map~f:RegionStatusRegionString.of_xml)(Xml.childxml_arg0"Region")inmake?view?index?region()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letview=field_mapjson__"View"ViewStatus.of_jsoninletindex=field_mapjson__"Index"IndexStatus.of_jsoninletregion=field_mapjson__"Region"RegionStatusRegionString.of_jsoninmake?view?index?region()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about the status of Resource Explorer configuration in a specific Amazon Web Services Region."]moduleRegionListMemberString=structtypenonrect=stringletcontext_="RegionListMemberString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-z-]+-[a-z]+-[0-9]");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RegionListMemberString"jletto_json=simple_to_jsonto_valueendmoduleAWSServiceAccessStatus=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration AWSServiceAccessStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AWSServiceAccessStatus"j)letto_json=simple_to_jsonto_valueendmoduleCreateResourceExplorerSetupInputAggregatorRegionsListMemberString=structtypenonrect=stringletcontext_="CreateResourceExplorerSetupInputAggregatorRegionsListMemberString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-z-]+-[a-z]+-[0-9]");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CreateResourceExplorerSetupInputAggregatorRegionsListMemberString"jletto_json=simple_to_jsonto_valueendmoduleCreateResourceExplorerSetupInputRegionListListMemberString=structtypenonrect=stringletcontext_="CreateResourceExplorerSetupInputRegionListListMemberString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-z-]+-[a-z]+-[0-9]");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CreateResourceExplorerSetupInputRegionListListMemberString"jletto_json=simple_to_jsonto_valueendmoduleBatchGetViewError=structtypenonrect={viewArn:String_.toption[@ocaml.doc"The Amazon resource name (ARN) of the view for which Resource Explorer failed to retrieve details."];errorMessage:String_.toption[@ocaml.doc"The description of the error for the specified view."]}letmake?viewArn=fun?errorMessage->fun()->{viewArn;errorMessage}letto_valuex=structure_to_value[("ViewArn",(Option.mapx.viewArn~f:String_.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ErrorMessage")inletviewArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ViewArn")inmake?errorMessage?viewArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"String_.of_jsoninletviewArn=field_mapjson__"ViewArn"String_.of_jsoninmake?errorMessage?viewArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A collection of error messages for any views that Amazon Web Services Resource Explorer couldn't retrieve details."]moduleAccessDeniedException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The credentials that you used to call this operation don't have the minimum required permissions."]moduleInternalServerException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request failed because of internal service error. Try your request again later."]moduleServiceQuotaExceededException=structtypenonrect={message:String_.toption;name:String_.toption[@ocaml.doc"The name of the service quota that was exceeded by the request."];value:String_.toption[@ocaml.doc"The current value for the quota that the request tried to exceed."]}letmake?message=fun?name->fun?value->fun()->{message;name;value}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value));("Name",(Option.mapx.name~f:String_.to_value));("Value",(Option.mapx.value~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Value")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Name")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?value?name?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"Value"String_.of_jsoninletname=field_mapjson__"Name"String_.of_jsoninletmessage=field_mapjson__"Message"String_.of_jsoninmake?value?name?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request failed because it exceeds a service quota."]moduleThrottlingException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request failed because you exceeded a rate limit for this operation. For more information, see Quotas for Resource Explorer."]moduleUnauthorizedException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The principal making the request isn't permitted to perform the operation."]moduleValidationException=structtypenonrect={message:String_.toption;fieldList:ValidationExceptionFieldList.toption[@ocaml.doc"An array of the request fields that had validation errors."]}letmake?message=fun?fieldList->fun()->{message;fieldList}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value));("FieldList",(Option.mapx.fieldList~f:ValidationExceptionFieldList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfieldList=(Option.map~f:ValidationExceptionFieldList.of_xml)(Xml.childxml_arg0"FieldList")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?fieldList?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfieldList=field_mapjson__"FieldList"ValidationExceptionFieldList.of_jsoninletmessage=field_mapjson__"Message"String_.of_jsoninmake?fieldList?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You provided an invalid value for one of the operation's parameters. Check the syntax for the operation, and try again."]moduleUpdateViewInputViewArnString=structtypenonrect=stringletcontext_="UpdateViewInputViewArnString"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:"UpdateViewInputViewArnString"jletto_json=simple_to_jsonto_valueendmoduleConflictException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"If you attempted to create a view, then the request failed because either you specified parameters that didn\226\128\153t match the original request, or you attempted to create a view with a name that already exists in this Amazon Web Services Region. If you attempted to create an index, then the request failed because either you specified parameters that didn't match the original request, or an index already exists in the current Amazon Web Services Region. If you attempted to update an index type to AGGREGATOR, then the request failed because you already have an AGGREGATOR index in a different Amazon Web Services Region."]moduleIndexState=structtypenonrect=|CREATING|ACTIVE|DELETING|DELETED|UPDATING|Non_static_idofstringletmakei=iletto_string=function|CREATING->"CREATING"|ACTIVE->"ACTIVE"|DELETING->"DELETING"|DELETED->"DELETED"|UPDATING->"UPDATING"|Non_static_ids->sletof_string=function|"CREATING"->CREATING|"ACTIVE"->ACTIVE|"DELETING"->DELETING|"DELETED"->DELETED|"UPDATING"->UPDATING|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration IndexState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"IndexState"j)letto_json=simple_to_jsonto_valueendmoduleResourceNotFoundException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You specified a resource that doesn't exist. Check the ID or ARN that you used to identity the resource, and try again."]moduleStringList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"StringList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagMap=structtypenonrect=(String_.t*String_.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((String_.of_stringchopped),(String_.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(String_.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:String_.of_string~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResourceCount=structtypenonrect={totalResources:Long.toption[@ocaml.doc"The number of resources that match the search query. This value can't exceed 1,000. If there are more than 1,000 resources that match the query, then only 1,000 are counted and the Complete field is set to false. We recommend that you refine your query to return a smaller number of results."];complete:Boolean.toption[@ocaml.doc"Indicates whether the TotalResources value represents an exhaustive count of search results. If True, it indicates that the search was exhaustive. Every resource that matches the query was counted. If False, then the search reached the limit of 1,000 matching results, and stopped counting."]}letmake?totalResources=fun?complete->fun()->{totalResources;complete}letto_valuex=structure_to_value[("TotalResources",(Option.mapx.totalResources~f:Long.to_value));("Complete",(Option.mapx.complete~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcomplete=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"Complete")inlettotalResources=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"TotalResources")inmake?complete?totalResources()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcomplete=field_mapjson__"Complete"Boolean.of_jsoninlettotalResources=field_mapjson__"TotalResources"Long.of_jsoninmake?complete?totalResources()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about the number of results that match the query. At this time, Amazon Web Services Resource Explorer doesn't count more than 1,000 matches for any query. This structure provides information about whether the query exceeded this limit. This field is included in every page when you paginate the results."]moduleResourceList=structtypenonrect=Resource.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Resource.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:Resource.of_xml)letof_jsonj=list_of_json~kind:"ResourceList"~of_json:Resource.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSearchOutputNextTokenString=structtypenonrect=stringletcontext_="SearchOutputNextTokenString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SearchOutputNextTokenString"jletto_json=simple_to_jsonto_valueendmoduleSearchOutputViewArnString=structtypenonrect=stringletcontext_="SearchOutputViewArnString"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:"SearchOutputViewArnString"jletto_json=simple_to_jsonto_valueendmoduleQueryString=structtypenonrect=stringletcontext_="QueryString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1280)>>=(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:"QueryString"jletto_json=simple_to_jsonto_valueendmoduleSearchInputMaxResultsInteger=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 SearchInputMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleSearchInputNextTokenString=structtypenonrect=stringletcontext_="SearchInputNextTokenString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SearchInputNextTokenString"jletto_json=simple_to_jsonto_valueendmoduleSearchInputViewArnString=structtypenonrect=stringletcontext_="SearchInputViewArnString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1000)>>=(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:"SearchInputViewArnString"jletto_json=simple_to_jsonto_valueendmoduleViewArnList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"ViewArnList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListViewsInputMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListViewsInputMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleResourceTypeList=structtypenonrect=SupportedResourceType.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SupportedResourceType.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:SupportedResourceType.of_xml)letof_jsonj=list_of_json~kind:"ResourceTypeList"~of_json:SupportedResourceType.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListSupportedResourceTypesInputMaxResultsInteger=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 ListSupportedResourceTypesInputMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleStreamingAccessDetailsList=structtypenonrect=StreamingAccessDetails.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StreamingAccessDetails.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:StreamingAccessDetails.of_xml)letof_jsonj=list_of_json~kind:"StreamingAccessDetailsList"~of_json:StreamingAccessDetails.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListStreamingAccessForServicesInputMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListStreamingAccessForServicesInputMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleServiceViewArnList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"ServiceViewArnList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListServiceViewsInputMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListServiceViewsInputMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleIndexList=structtypenonrect=Index.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Index.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:Index.of_xml)letof_jsonj=list_of_json~kind:"IndexList"~of_json:Index.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListServiceIndexesInputMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListServiceIndexesInputMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListServiceIndexesInputNextTokenString=structtypenonrect=stringletcontext_="ListServiceIndexesInputNextTokenString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ListServiceIndexesInputNextTokenString"jletto_json=simple_to_jsonto_valueendmoduleListServiceIndexesInputRegionsList=structtypenonrect=ListServiceIndexesInputRegionsListMemberString.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:20)>>=(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:ListServiceIndexesInputRegionsListMemberString.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:ListServiceIndexesInputRegionsListMemberString.of_xml)letof_jsonj=list_of_json~kind:"ListServiceIndexesInputRegionsList"~of_json:ListServiceIndexesInputRegionsListMemberString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListResourcesOutputNextTokenString=structtypenonrect=stringletcontext_="ListResourcesOutputNextTokenString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ListResourcesOutputNextTokenString"jletto_json=simple_to_jsonto_valueendmoduleListResourcesOutputViewArnString=structtypenonrect=stringletcontext_="ListResourcesOutputViewArnString"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:"ListResourcesOutputViewArnString"jletto_json=simple_to_jsonto_valueendmoduleListResourcesInputMaxResultsInteger=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 ListResourcesInputMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListResourcesInputNextTokenString=structtypenonrect=stringletcontext_="ListResourcesInputNextTokenString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ListResourcesInputNextTokenString"jletto_json=simple_to_jsonto_valueendmoduleListResourcesInputViewArnString=structtypenonrect=stringletcontext_="ListResourcesInputViewArnString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1000)>>=(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:"ListResourcesInputViewArnString"jletto_json=simple_to_jsonto_valueendmoduleManagedViewArnList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"ManagedViewArnList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListManagedViewsInputMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListManagedViewsInputMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListManagedViewsInputNextTokenString=structtypenonrect=stringletcontext_="ListManagedViewsInputNextTokenString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ListManagedViewsInputNextTokenString"jletto_json=simple_to_jsonto_valueendmoduleListManagedViewsInputServicePrincipalString=structtypenonrect=stringletcontext_="ListManagedViewsInputServicePrincipalString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ListManagedViewsInputServicePrincipalString"jletto_json=simple_to_jsonto_valueendmoduleListIndexesInputMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListIndexesInputMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListIndexesInputNextTokenString=structtypenonrect=stringletcontext_="ListIndexesInputNextTokenString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ListIndexesInputNextTokenString"jletto_json=simple_to_jsonto_valueendmoduleListIndexesInputRegionsList=structtypenonrect=ListIndexesInputRegionsListMemberString.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:20)>>=(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:ListIndexesInputRegionsListMemberString.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:ListIndexesInputRegionsListMemberString.of_xml)letof_jsonj=list_of_json~kind:"ListIndexesInputRegionsList"~of_json:ListIndexesInputRegionsListMemberString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMemberIndexList=structtypenonrect=MemberIndex.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MemberIndex.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:MemberIndex.of_xml)letof_jsonj=list_of_json~kind:"MemberIndexList"~of_json:MemberIndex.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListIndexesForMembersInputAccountIdListList=structtypenonrect=AccountId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(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:AccountId.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:AccountId.of_xml)letof_jsonj=list_of_json~kind:"ListIndexesForMembersInputAccountIdListList"~of_json:AccountId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListIndexesForMembersInputMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:10)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListIndexesForMembersInputMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListIndexesForMembersInputNextTokenString=structtypenonrect=stringletcontext_="ListIndexesForMembersInputNextTokenString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ListIndexesForMembersInputNextTokenString"jletto_json=simple_to_jsonto_valueendmoduleGetViewInputViewArnString=structtypenonrect=stringletcontext_="GetViewInputViewArnString"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:"GetViewInputViewArnString"jletto_json=simple_to_jsonto_valueendmoduleServiceView=structtypenonrect={serviceViewArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the service view."];serviceViewName:ServiceViewName.toption[@ocaml.doc"The name of the service view."];filters:SearchFilter.toption;includedProperties:IncludedPropertyList.toption[@ocaml.doc"A list of additional resource properties that are included in this view for search and filtering purposes."];streamingAccessForService:String_.toption[@ocaml.doc"The Amazon Web Services service that has streaming access to this view's data."];scopeType:String_.toption[@ocaml.doc"The scope type of the service view, which determines what resources are included."]}letmake?serviceViewArn=fun?serviceViewName->fun?filters->fun?includedProperties->fun?streamingAccessForService->fun?scopeType->fun()->{serviceViewArn;serviceViewName;filters;includedProperties;streamingAccessForService;scopeType}letto_valuex=structure_to_value[("ServiceViewArn",(Option.mapx.serviceViewArn~f:String_.to_value));("ServiceViewName",(Option.mapx.serviceViewName~f:ServiceViewName.to_value));("Filters",(Option.mapx.filters~f:SearchFilter.to_value));("IncludedProperties",(Option.mapx.includedProperties~f:IncludedPropertyList.to_value));("StreamingAccessForService",(Option.mapx.streamingAccessForService~f:String_.to_value));("ScopeType",(Option.mapx.scopeType~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letscopeType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ScopeType")inletstreamingAccessForService=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"StreamingAccessForService")inletincludedProperties=(Option.map~f:IncludedPropertyList.of_xml)(Xml.childxml_arg0"IncludedProperties")inletfilters=(Option.map~f:SearchFilter.of_xml)(Xml.childxml_arg0"Filters")inletserviceViewName=(Option.map~f:ServiceViewName.of_xml)(Xml.childxml_arg0"ServiceViewName")inletserviceViewArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ServiceViewArn")inmake?scopeType?streamingAccessForService?includedProperties?filters?serviceViewName?serviceViewArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letscopeType=field_mapjson__"ScopeType"String_.of_jsoninletstreamingAccessForService=field_mapjson__"StreamingAccessForService"String_.of_jsoninletincludedProperties=field_mapjson__"IncludedProperties"IncludedPropertyList.of_jsoninletfilters=field_mapjson__"Filters"SearchFilter.of_jsoninletserviceViewName=field_mapjson__"ServiceViewName"ServiceViewName.of_jsoninletserviceViewArn=field_mapjson__"ServiceViewArn"String_.of_jsoninmake?scopeType?streamingAccessForService?includedProperties?filters?serviceViewName?serviceViewArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the configuration and properties of a Resource Explorer service view."]moduleGetServiceViewInputServiceViewArnString=structtypenonrect=stringletcontext_="GetServiceViewInputServiceViewArnString"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:"GetServiceViewInputServiceViewArnString"jletto_json=simple_to_jsonto_valueendmoduleGetResourceExplorerSetupOutputNextTokenString=structtypenonrect=stringletcontext_="GetResourceExplorerSetupOutputNextTokenString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"GetResourceExplorerSetupOutputNextTokenString"jletto_json=simple_to_jsonto_valueendmoduleRegionStatusList=structtypenonrect=RegionStatus.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RegionStatus.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:RegionStatus.of_xml)letof_jsonj=list_of_json~kind:"RegionStatusList"~of_json:RegionStatus.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleGetResourceExplorerSetupInputMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for GetResourceExplorerSetupInputMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleGetResourceExplorerSetupInputNextTokenString=structtypenonrect=stringletcontext_="GetResourceExplorerSetupInputNextTokenString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"GetResourceExplorerSetupInputNextTokenString"jletto_json=simple_to_jsonto_valueendmoduleGetResourceExplorerSetupInputTaskIdString=structtypenonrect=stringletcontext_="GetResourceExplorerSetupInputTaskIdString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{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:"GetResourceExplorerSetupInputTaskIdString"jletto_json=simple_to_jsonto_valueendmoduleManagedView=structtypenonrect={managedViewArn:String_.toption[@ocaml.doc"The Amazon resource name (ARN) of the managed view."];managedViewName:String_.toption[@ocaml.doc"The name of the managed view."];trustedService:String_.toption[@ocaml.doc"The service principal of the Amazon Web Services service that created and manages the managed view."];lastUpdatedAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The date and time when this managed view was last modified."];owner:String_.toption[@ocaml.doc"The Amazon Web Services account that owns this managed view."];scope:String_.toption[@ocaml.doc"An Amazon resource name (ARN) of an Amazon Web Services account or organization that specifies whether this managed view includes resources from only the specified Amazon Web Services account or all accounts in the specified organization."];includedProperties:IncludedPropertyList.toption[@ocaml.doc"A structure that contains additional information about the managed view."];filters:SearchFilter.toption;resourcePolicy:String_.toption[@ocaml.doc"The resource policy that defines access to the managed view. To learn more about this policy, review Managed views."];version:String_.toption[@ocaml.doc"The version of the managed view."]}letmake?managedViewArn=fun?managedViewName->fun?trustedService->fun?lastUpdatedAt->fun?owner->fun?scope->fun?includedProperties->fun?filters->fun?resourcePolicy->fun?version->fun()->{managedViewArn;managedViewName;trustedService;lastUpdatedAt;owner;scope;includedProperties;filters;resourcePolicy;version}letto_valuex=structure_to_value[("ManagedViewArn",(Option.mapx.managedViewArn~f:String_.to_value));("ManagedViewName",(Option.mapx.managedViewName~f:String_.to_value));("TrustedService",(Option.mapx.trustedService~f:String_.to_value));("LastUpdatedAt",(Option.mapx.lastUpdatedAt~f:SyntheticTimestamp_date_time.to_value));("Owner",(Option.mapx.owner~f:String_.to_value));("Scope",(Option.mapx.scope~f:String_.to_value));("IncludedProperties",(Option.mapx.includedProperties~f:IncludedPropertyList.to_value));("Filters",(Option.mapx.filters~f:SearchFilter.to_value));("ResourcePolicy",(Option.mapx.resourcePolicy~f:String_.to_value));("Version",(Option.mapx.version~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letversion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Version")inletresourcePolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ResourcePolicy")inletfilters=(Option.map~f:SearchFilter.of_xml)(Xml.childxml_arg0"Filters")inletincludedProperties=(Option.map~f:IncludedPropertyList.of_xml)(Xml.childxml_arg0"IncludedProperties")inletscope=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Scope")inletowner=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Owner")inletlastUpdatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"LastUpdatedAt")inlettrustedService=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"TrustedService")inletmanagedViewName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ManagedViewName")inletmanagedViewArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ManagedViewArn")inmake?version?resourcePolicy?filters?includedProperties?scope?owner?lastUpdatedAt?trustedService?managedViewName?managedViewArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letversion=field_mapjson__"Version"String_.of_jsoninletresourcePolicy=field_mapjson__"ResourcePolicy"String_.of_jsoninletfilters=field_mapjson__"Filters"SearchFilter.of_jsoninletincludedProperties=field_mapjson__"IncludedProperties"IncludedPropertyList.of_jsoninletscope=field_mapjson__"Scope"String_.of_jsoninletowner=field_mapjson__"Owner"String_.of_jsoninletlastUpdatedAt=field_mapjson__"LastUpdatedAt"SyntheticTimestamp_date_time.of_jsoninlettrustedService=field_mapjson__"TrustedService"String_.of_jsoninletmanagedViewName=field_mapjson__"ManagedViewName"String_.of_jsoninletmanagedViewArn=field_mapjson__"ManagedViewArn"String_.of_jsoninmake?version?resourcePolicy?filters?includedProperties?scope?owner?lastUpdatedAt?trustedService?managedViewName?managedViewArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An Amazon Web Services-managed view is how other Amazon Web Services services can access resource information indexed by Resource Explorer for your Amazon Web Services account or organization with your consent. For more information, see Managed views."]moduleGetManagedViewInputManagedViewArnString=structtypenonrect=stringletcontext_="GetManagedViewInputManagedViewArnString"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:"GetManagedViewInputManagedViewArnString"jletto_json=simple_to_jsonto_valueendmoduleRegionList=structtypenonrect=RegionListMemberString.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RegionListMemberString.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:RegionListMemberString.of_xml)letof_jsonj=list_of_json~kind:"RegionList"~of_json:RegionListMemberString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleOrgConfiguration=structtypenonrect={aWSServiceAccessStatus:AWSServiceAccessStatus.toption[@ocaml.doc"This value displays whether your Amazon Web Services service access is ENABLED or DISABLED."];serviceLinkedRole:String_.toption[@ocaml.doc"This value shows whether or not you have a valid a service-linked role required to start the multi-account search feature."]}letmake?aWSServiceAccessStatus=fun?serviceLinkedRole->fun()->{aWSServiceAccessStatus;serviceLinkedRole}letto_valuex=structure_to_value[("AWSServiceAccessStatus",(Option.mapx.aWSServiceAccessStatus~f:AWSServiceAccessStatus.to_value));("ServiceLinkedRole",(Option.mapx.serviceLinkedRole~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letserviceLinkedRole=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ServiceLinkedRole")inletaWSServiceAccessStatus=(Option.map~f:AWSServiceAccessStatus.of_xml)(Xml.childxml_arg0"AWSServiceAccessStatus")inmake?serviceLinkedRole?aWSServiceAccessStatus()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letserviceLinkedRole=field_mapjson__"ServiceLinkedRole"String_.of_jsoninletaWSServiceAccessStatus=field_mapjson__"AWSServiceAccessStatus"AWSServiceAccessStatus.of_jsoninmake?serviceLinkedRole?aWSServiceAccessStatus()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is a structure that contains the status of Amazon Web Services service access, and whether you have a valid service-linked role to enable multi-account search for your organization."]moduleDeleteViewInputViewArnString=structtypenonrect=stringletcontext_="DeleteViewInputViewArnString"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:"DeleteViewInputViewArnString"jletto_json=simple_to_jsonto_valueendmoduleDeleteResourceExplorerSetupOutputTaskIdString=structtypenonrect=stringletcontext_="DeleteResourceExplorerSetupOutputTaskIdString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{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:"DeleteResourceExplorerSetupOutputTaskIdString"jletto_json=simple_to_jsonto_valueendmoduleCreateViewInputClientTokenString=structtypenonrect=stringletcontext_="CreateViewInputClientTokenString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CreateViewInputClientTokenString"jletto_json=simple_to_jsonto_valueendmoduleCreateViewInputScopeString=structtypenonrect=stringletcontext_="CreateViewInputScopeString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CreateViewInputScopeString"jletto_json=simple_to_jsonto_valueendmoduleCreateResourceExplorerSetupOutputTaskIdString=structtypenonrect=stringletcontext_="CreateResourceExplorerSetupOutputTaskIdString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{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:"CreateResourceExplorerSetupOutputTaskIdString"jletto_json=simple_to_jsonto_valueendmoduleCreateResourceExplorerSetupInputAggregatorRegionsList=structtypenonrect=CreateResourceExplorerSetupInputAggregatorRegionsListMemberString.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1)>>=(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:CreateResourceExplorerSetupInputAggregatorRegionsListMemberString.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:CreateResourceExplorerSetupInputAggregatorRegionsListMemberString.of_xml)letof_jsonj=list_of_json~kind:"CreateResourceExplorerSetupInputAggregatorRegionsList"~of_json:CreateResourceExplorerSetupInputAggregatorRegionsListMemberString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCreateResourceExplorerSetupInputRegionListList=structtypenonrect=CreateResourceExplorerSetupInputRegionListListMemberString.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:CreateResourceExplorerSetupInputRegionListListMemberString.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:CreateResourceExplorerSetupInputRegionListListMemberString.of_xml)letof_jsonj=list_of_json~kind:"CreateResourceExplorerSetupInputRegionListList"~of_json:CreateResourceExplorerSetupInputRegionListListMemberString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCreateResourceExplorerSetupInputViewNameString=structtypenonrect=stringletcontext_="CreateResourceExplorerSetupInputViewNameString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9-]{1,64}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CreateResourceExplorerSetupInputViewNameString"jletto_json=simple_to_jsonto_valueendmoduleBatchGetViewErrors=structtypenonrect=BatchGetViewError.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:BatchGetViewError.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:BatchGetViewError.of_xml)letof_jsonj=list_of_json~kind:"BatchGetViewErrors"~of_json:BatchGetViewError.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleViewList=structtypenonrect=View.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:View.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:View.of_xml)letof_jsonj=list_of_json~kind:"ViewList"~of_json:View.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchGetViewInputViewArnsList=structtypenonrect=String_.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:20)>>=(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:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"BatchGetViewInputViewArnsList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAssociateDefaultViewInputViewArnString=structtypenonrect=stringletcontext_="AssociateDefaultViewInputViewArnString"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:"AssociateDefaultViewInputViewArnString"jletto_json=simple_to_jsonto_valueendmoduleUpdateViewOutput=structtypenonrect={view:View.toption[@ocaml.doc"Details about the view that you changed with this operation."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?view=fun()->{view}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("View",(Option.mapx.view~f:View.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letview=(Option.map~f:View.of_xml)(Xml.childxml_arg0"View")inmake?view()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letview=field_mapjson__"View"View.of_jsoninmake?view()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies some of the details of a view. You can change the filter string and the list of included properties. You can't change the name of the view."]moduleUpdateViewInput=structtypenonrect={viewArn:UpdateViewInputViewArnString.t[@ocaml.doc"The Amazon resource name (ARN) of the view that you want to modify."];includedProperties:IncludedPropertyList.toption[@ocaml.doc"Specifies optional fields that you want included in search results from this view. It is a list of objects that each describe a field to include. The default is an empty list, with no optional fields included in the results."];filters:SearchFilter.toption[@ocaml.doc"An array of strings that specify which resources are included in the results of queries made using this view. When you use this view in a Search operation, the filter string is combined with the search's QueryString parameter using a logical AND operator. For information about the supported syntax, see Search query reference for Resource Explorer in the Amazon Web Services Resource Explorer User Guide. This query string in the context of this operation supports only filter prefixes with optional operators. It doesn't support free-form text. For example, the string region:us* service:ec2 -tag:stage=prod includes all Amazon EC2 resources in any Amazon Web Services Region that begins with the letters us and is not tagged with a key Stage that has the value prod."]}letcontext_="UpdateViewInput"letmake?includedProperties=fun?filters->fun~viewArn->fun()->{includedProperties;filters;viewArn}letto_valuex=structure_to_value[("ViewArn",(Some(UpdateViewInputViewArnString.to_valuex.viewArn)));("IncludedProperties",(Option.mapx.includedProperties~f:IncludedPropertyList.to_value));("Filters",(Option.mapx.filters~f:SearchFilter.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfilters=(Option.map~f:SearchFilter.of_xml)(Xml.childxml_arg0"Filters")inletincludedProperties=(Option.map~f:IncludedPropertyList.of_xml)(Xml.childxml_arg0"IncludedProperties")inletviewArn=UpdateViewInputViewArnString.of_xml(Xml.child_exn~context:context_xml_arg0"ViewArn")inmake?filters?includedProperties~viewArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfilters=field_mapjson__"Filters"SearchFilter.of_jsoninletincludedProperties=field_mapjson__"IncludedProperties"IncludedPropertyList.of_jsoninletviewArn=field_map_exnjson__"ViewArn"UpdateViewInputViewArnString.of_jsoninmake?filters?includedProperties~viewArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies some of the details of a view. You can change the filter string and the list of included properties. You can't change the name of the view."]moduleUpdateIndexTypeOutput=structtypenonrect={arn:String_.toption[@ocaml.doc"The Amazon resource name (ARN) of the index that you updated."];type_:IndexType.toption[@ocaml.doc"Specifies the type of the specified index after the operation completes."];state:IndexState.toption[@ocaml.doc"Indicates the state of the request to update the index. This operation is asynchronous. Call the GetIndex operation to check for changes."];lastUpdatedAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The date and timestamp when the index was last updated."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?type_->fun?state->fun?lastUpdatedAt->fun()->{arn;type_;state;lastUpdatedAt}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:String_.to_value));("Type",(Option.mapx.type_~f:IndexType.to_value));("State",(Option.mapx.state~f:IndexState.to_value));("LastUpdatedAt",(Option.mapx.lastUpdatedAt~f:SyntheticTimestamp_date_time.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastUpdatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"LastUpdatedAt")inletstate=(Option.map~f:IndexState.of_xml)(Xml.childxml_arg0"State")inlettype_=(Option.map~f:IndexType.of_xml)(Xml.childxml_arg0"Type")inletarn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Arn")inmake?lastUpdatedAt?state?type_?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastUpdatedAt=field_mapjson__"LastUpdatedAt"SyntheticTimestamp_date_time.of_jsoninletstate=field_mapjson__"State"IndexState.of_jsoninlettype_=field_mapjson__"Type"IndexType.of_jsoninletarn=field_mapjson__"Arn"String_.of_jsoninmake?lastUpdatedAt?state?type_?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Changes the type of the index from one of the following types to the other. For more information about indexes and the role they perform in Amazon Web Services Resource Explorer, see Turning on cross-Region search by creating an aggregator index in the Amazon Web Services Resource Explorer User Guide. AGGREGATOR index type The index contains information about resources from all Amazon Web Services Regions in the Amazon Web Services account in which you've created a Resource Explorer index. Resource information from all other Regions is replicated to this Region's index. When you change the index type to AGGREGATOR, Resource Explorer turns on replication of all discovered resource information from the other Amazon Web Services Regions in your account to this index. You can then, from this Region only, perform resource search queries that span all Amazon Web Services Regions in the Amazon Web Services account. Turning on replication from all other Regions is performed by asynchronous background tasks. You can check the status of the asynchronous tasks by using the GetIndex operation. When the asynchronous tasks complete, the Status response of that operation changes from UPDATING to ACTIVE. After that, you can start to see results from other Amazon Web Services Regions in query results. However, it can take several hours for replication from all other Regions to complete. You can have only one aggregator index per Amazon Web Services account. Before you can promote a different index to be the aggregator index for the account, you must first demote the existing aggregator index to type LOCAL. LOCAL index type The index contains information about resources in only the Amazon Web Services Region in which the index exists. If an aggregator index in another Region exists, then information in this local index is replicated to the aggregator index. When you change the index type to LOCAL, Resource Explorer turns off the replication of resource information from all other Amazon Web Services Regions in the Amazon Web Services account to this Region. The aggregator index remains in the UPDATING state until all replication with other Regions successfully stops. You can check the status of the asynchronous task by using the GetIndex operation. When Resource Explorer successfully stops all replication with other Regions, the Status response of that operation changes from UPDATING to ACTIVE. Separately, the resource information from other Regions that was previously stored in the index is deleted within 30 days by another background task. Until that asynchronous task completes, some results from other Regions can continue to appear in search results. After you demote an aggregator index to a local index, you must wait 24 hours before you can promote another index to be the new aggregator index for the account."]moduleUpdateIndexTypeInput=structtypenonrect={arn:String_.t[@ocaml.doc"The Amazon resource name (ARN) of the index that you want to update."];type_:IndexType.t[@ocaml.doc"The type of the index. To understand the difference between LOCAL and AGGREGATOR, see Turning on cross-Region search in the Amazon Web Services Resource Explorer User Guide."]}letcontext_="UpdateIndexTypeInput"letmake~arn=fun~type_->fun()->{arn;type_}letto_valuex=structure_to_value[("Arn",(Some(String_.to_valuex.arn)));("Type",(Some(IndexType.to_valuex.type_)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=IndexType.of_xml(Xml.child_exn~context:context_xml_arg0"Type")inletarn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"Arn")inmake~type_~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_map_exnjson__"Type"IndexType.of_jsoninletarn=field_map_exnjson__"Arn"String_.of_jsoninmake~type_~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Changes the type of the index from one of the following types to the other. For more information about indexes and the role they perform in Amazon Web Services Resource Explorer, see Turning on cross-Region search by creating an aggregator index in the Amazon Web Services Resource Explorer User Guide. AGGREGATOR index type The index contains information about resources from all Amazon Web Services Regions in the Amazon Web Services account in which you've created a Resource Explorer index. Resource information from all other Regions is replicated to this Region's index. When you change the index type to AGGREGATOR, Resource Explorer turns on replication of all discovered resource information from the other Amazon Web Services Regions in your account to this index. You can then, from this Region only, perform resource search queries that span all Amazon Web Services Regions in the Amazon Web Services account. Turning on replication from all other Regions is performed by asynchronous background tasks. You can check the status of the asynchronous tasks by using the GetIndex operation. When the asynchronous tasks complete, the Status response of that operation changes from UPDATING to ACTIVE. After that, you can start to see results from other Amazon Web Services Regions in query results. However, it can take several hours for replication from all other Regions to complete. You can have only one aggregator index per Amazon Web Services account. Before you can promote a different index to be the aggregator index for the account, you must first demote the existing aggregator index to type LOCAL. LOCAL index type The index contains information about resources in only the Amazon Web Services Region in which the index exists. If an aggregator index in another Region exists, then information in this local index is replicated to the aggregator index. When you change the index type to LOCAL, Resource Explorer turns off the replication of resource information from all other Amazon Web Services Regions in the Amazon Web Services account to this Region. The aggregator index remains in the UPDATING state until all replication with other Regions successfully stops. You can check the status of the asynchronous task by using the GetIndex operation. When Resource Explorer successfully stops all replication with other Regions, the Status response of that operation changes from UPDATING to ACTIVE. Separately, the resource information from other Regions that was previously stored in the index is deleted within 30 days by another background task. Until that asynchronous task completes, some results from other Regions can continue to appear in search results. After you demote an aggregator index to a local index, you must wait 24 hours before you can promote another index to be the new aggregator index for the account."]moduleUntagResourceOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes one or more tag key and value pairs from an Amazon Web Services Resource Explorer view or index."]moduleUntagResourceInput=structtypenonrect={resourceArn:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) of the view or index that you want to remove tags from."];tagKeys:StringList.t[@ocaml.doc"A list of the keys for the tags that you want to remove from the specified view or index."]}letcontext_="UntagResourceInput"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("resourceArn",(Some(String_.to_valuex.resourceArn)));("tagKeys",(Some(StringList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=StringList.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletresourceArn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake~tagKeys~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"tagKeys"StringList.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"String_.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes one or more tag key and value pairs from an Amazon Web Services Resource Explorer view or index."]moduleTagResourceOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds one or more tag key and value pairs to an Amazon Web Services Resource Explorer view or index."]moduleTagResourceInput=structtypenonrect={resourceArn:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) of the view or index that you want to attach tags to."];tags:TagMap.toption[@ocaml.doc"A list of tag key and value pairs that you want to attach to the specified view or index."]}letcontext_="TagResourceInput"letmake?tags=fun~resourceArn->fun()->{tags;resourceArn}letto_valuex=structure_to_value[("resourceArn",(Some(String_.to_valuex.resourceArn)));("Tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletresourceArn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake?tags~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagMap.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"String_.of_jsoninmake?tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds one or more tag key and value pairs to an Amazon Web Services Resource Explorer view or index."]moduleSearchOutput=structtypenonrect={resources:ResourceList.toption[@ocaml.doc"The list of structures that describe the resources that match the query."];nextToken:SearchOutputNextTokenString.toption[@ocaml.doc"If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. The pagination tokens expire after 24 hours."];viewArn:SearchOutputViewArnString.toption[@ocaml.doc"The Amazon resource name (ARN) of the view that this operation used to perform the search."];count:ResourceCount.toption[@ocaml.doc"The number of resources that match the query."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?resources=fun?nextToken->fun?viewArn->fun?count->fun()->{resources;nextToken;viewArn;count}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Resources",(Option.mapx.resources~f:ResourceList.to_value));("NextToken",(Option.mapx.nextToken~f:SearchOutputNextTokenString.to_value));("ViewArn",(Option.mapx.viewArn~f:SearchOutputViewArnString.to_value));("Count",(Option.mapx.count~f:ResourceCount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcount=(Option.map~f:ResourceCount.of_xml)(Xml.childxml_arg0"Count")inletviewArn=(Option.map~f:SearchOutputViewArnString.of_xml)(Xml.childxml_arg0"ViewArn")inletnextToken=(Option.map~f:SearchOutputNextTokenString.of_xml)(Xml.childxml_arg0"NextToken")inletresources=(Option.map~f:ResourceList.of_xml)(Xml.childxml_arg0"Resources")inmake?count?viewArn?nextToken?resources()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcount=field_mapjson__"Count"ResourceCount.of_jsoninletviewArn=field_mapjson__"ViewArn"SearchOutputViewArnString.of_jsoninletnextToken=field_mapjson__"NextToken"SearchOutputNextTokenString.of_jsoninletresources=field_mapjson__"Resources"ResourceList.of_jsoninmake?count?viewArn?nextToken?resources()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Searches for resources and displays details about all resources that match the specified criteria. You must specify a query string. All search queries must use a view. If you don't explicitly specify a view, then Amazon Web Services Resource Explorer uses the default view for the Amazon Web Services Region in which you call this operation. The results are the logical intersection of the results that match both the QueryString parameter supplied to this operation and the SearchFilter parameter attached to the view. For the complete syntax supported by the QueryString parameter, see Search query syntax reference for Resource Explorer. If your search results are empty, or are missing results that you think should be there, see Troubleshooting Resource Explorer search."]moduleSearchInput=structtypenonrect={queryString:QueryString.t[@ocaml.doc"A string that includes keywords and filters that specify the resources that you want to include in the results. For the complete syntax supported by the QueryString parameter, see Search query syntax reference for Resource Explorer. The search is completely case insensitive. You can specify an empty string to return all results up to the limit of 1,000 total results. The operation can return only the first 1,000 results. If the resource you want is not included, then use a different value for QueryString to refine the results."];maxResults:SearchInputMaxResultsInteger.toption[@ocaml.doc"The maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. An API operation can return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results."];viewArn:SearchInputViewArnString.toption[@ocaml.doc"Specifies the Amazon resource name (ARN) of the view to use for the query. If you don't specify a value for this parameter, then the operation automatically uses the default view for the Amazon Web Services Region in which you called this operation. If the Region either doesn't have a default view or if you don't have permission to use the default view, then the operation fails with a 401 Unauthorized exception."];nextToken:SearchInputNextTokenString.toption[@ocaml.doc"The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. The pagination tokens expire after 24 hours."]}letcontext_="SearchInput"letmake?maxResults=fun?viewArn->fun?nextToken->fun~queryString->fun()->{maxResults;viewArn;nextToken;queryString}letto_valuex=structure_to_value[("QueryString",(Some(QueryString.to_valuex.queryString)));("MaxResults",(Option.mapx.maxResults~f:SearchInputMaxResultsInteger.to_value));("ViewArn",(Option.mapx.viewArn~f:SearchInputViewArnString.to_value));("NextToken",(Option.mapx.nextToken~f:SearchInputNextTokenString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:SearchInputNextTokenString.of_xml)(Xml.childxml_arg0"NextToken")inletviewArn=(Option.map~f:SearchInputViewArnString.of_xml)(Xml.childxml_arg0"ViewArn")inletmaxResults=(Option.map~f:SearchInputMaxResultsInteger.of_xml)(Xml.childxml_arg0"MaxResults")inletqueryString=QueryString.of_xml(Xml.child_exn~context:context_xml_arg0"QueryString")inmake?nextToken?viewArn?maxResults~queryString()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"SearchInputNextTokenString.of_jsoninletviewArn=field_mapjson__"ViewArn"SearchInputViewArnString.of_jsoninletmaxResults=field_mapjson__"MaxResults"SearchInputMaxResultsInteger.of_jsoninletqueryString=field_map_exnjson__"QueryString"QueryString.of_jsoninmake?nextToken?viewArn?maxResults~queryString()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Searches for resources and displays details about all resources that match the specified criteria. You must specify a query string. All search queries must use a view. If you don't explicitly specify a view, then Amazon Web Services Resource Explorer uses the default view for the Amazon Web Services Region in which you call this operation. The results are the logical intersection of the results that match both the QueryString parameter supplied to this operation and the SearchFilter parameter attached to the view. For the complete syntax supported by the QueryString parameter, see Search query syntax reference for Resource Explorer. If your search results are empty, or are missing results that you think should be there, see Troubleshooting Resource Explorer search."]moduleListViewsOutput=structtypenonrect={views:ViewArnList.toption[@ocaml.doc"The list of views available in the Amazon Web Services Region in which you called this operation."];nextToken:String_.toption[@ocaml.doc"If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. The pagination tokens expire after 24 hours."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?views=fun?nextToken->fun()->{views;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Views",(Option.mapx.views~f:ViewArnList.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletviews=(Option.map~f:ViewArnList.of_xml)(Xml.childxml_arg0"Views")inmake?nextToken?views()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletviews=field_mapjson__"Views"ViewArnList.of_jsoninmake?nextToken?views()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the Amazon resource names (ARNs) of the views available in the Amazon Web Services Region in which you call this operation. Always check the NextToken response parameter for a null value when calling a paginated operation. These operations can occasionally return an empty set of results even when there are more results available. The NextToken response parameter value is null only when there are no more results to display."]moduleListViewsInput=structtypenonrect={nextToken:String_.toption[@ocaml.doc"The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. The pagination tokens expire after 24 hours."];maxResults:ListViewsInputMaxResultsInteger.toption[@ocaml.doc"The maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. An API operation can return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:String_.to_value));("MaxResults",(Option.mapx.maxResults~f:ListViewsInputMaxResultsInteger.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:ListViewsInputMaxResultsInteger.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"ListViewsInputMaxResultsInteger.of_jsoninletnextToken=field_mapjson__"NextToken"String_.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the Amazon resource names (ARNs) of the views available in the Amazon Web Services Region in which you call this operation. Always check the NextToken response parameter for a null value when calling a paginated operation. These operations can occasionally return an empty set of results even when there are more results available. The NextToken response parameter value is null only when there are no more results to display."]moduleListTagsForResourceOutput=structtypenonrect={tags:TagMap.toption[@ocaml.doc"The tag key and value pairs that you want to attach to the specified view or index."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagMap.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the tags that are attached to the specified resource."]moduleListTagsForResourceInput=structtypenonrect={resourceArn:String_.t[@ocaml.doc"The Amazon resource name (ARN) of the view or index that you want to attach tags to."]}letcontext_="ListTagsForResourceInput"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("resourceArn",(Some(String_.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=String_.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"String_.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the tags that are attached to the specified resource."]moduleListSupportedResourceTypesOutput=structtypenonrect={resourceTypes:ResourceTypeList.toption[@ocaml.doc"The list of resource types supported by Resource Explorer."];nextToken:String_.toption[@ocaml.doc"If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. The pagination tokens expire after 24 hours."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?resourceTypes=fun?nextToken->fun()->{resourceTypes;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ResourceTypes",(Option.mapx.resourceTypes~f:ResourceTypeList.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletresourceTypes=(Option.map~f:ResourceTypeList.of_xml)(Xml.childxml_arg0"ResourceTypes")inmake?nextToken?resourceTypes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletresourceTypes=field_mapjson__"ResourceTypes"ResourceTypeList.of_jsoninmake?nextToken?resourceTypes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of all resource types currently supported by Amazon Web Services Resource Explorer."]moduleListSupportedResourceTypesInput=structtypenonrect={nextToken:String_.toption[@ocaml.doc"The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. The pagination tokens expire after 24 hours."];maxResults:ListSupportedResourceTypesInputMaxResultsInteger.toption[@ocaml.doc"The maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. An API operation can return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:String_.to_value));("MaxResults",(Option.mapx.maxResults~f:ListSupportedResourceTypesInputMaxResultsInteger.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:ListSupportedResourceTypesInputMaxResultsInteger.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"ListSupportedResourceTypesInputMaxResultsInteger.of_jsoninletnextToken=field_mapjson__"NextToken"String_.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of all resource types currently supported by Amazon Web Services Resource Explorer."]moduleListStreamingAccessForServicesOutput=structtypenonrect={streamingAccessForServices:StreamingAccessDetailsList.toption[@ocaml.doc"A list of Amazon Web Services services that have streaming access to your Resource Explorer data, including details about when the access was granted."];nextToken:String_.toption[@ocaml.doc"If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. The pagination tokens expire after 24 hours."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?streamingAccessForServices=fun?nextToken->fun()->{streamingAccessForServices;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("StreamingAccessForServices",(Option.mapx.streamingAccessForServices~f:StreamingAccessDetailsList.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletstreamingAccessForServices=(Option.map~f:StreamingAccessDetailsList.of_xml)(Xml.childxml_arg0"StreamingAccessForServices")inmake?nextToken?streamingAccessForServices()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletstreamingAccessForServices=field_mapjson__"StreamingAccessForServices"StreamingAccessDetailsList.of_jsoninmake?nextToken?streamingAccessForServices()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of Amazon Web Services services that have been granted streaming access to your Resource Explorer data. Streaming access allows Amazon Web Services services to receive real-time updates about your resources as they are indexed by Resource Explorer."]moduleListStreamingAccessForServicesInput=structtypenonrect={maxResults:ListStreamingAccessForServicesInputMaxResultsInteger.toption[@ocaml.doc"The maximum number of streaming access entries to return in the response. If there are more results available, the response includes a NextToken value that you can use in a subsequent call to get the next set of results. The value must be between 1 and 50. If you don't specify a value, the default is 50."];nextToken:String_.toption[@ocaml.doc"The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. The pagination tokens expire after 24 hours."]}letmake?maxResults=fun?nextToken->fun()->{maxResults;nextToken}letto_valuex=structure_to_value[("MaxResults",(Option.mapx.maxResults~f:ListStreamingAccessForServicesInputMaxResultsInteger.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:ListStreamingAccessForServicesInputMaxResultsInteger.of_xml)(Xml.childxml_arg0"MaxResults")inmake?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletmaxResults=field_mapjson__"MaxResults"ListStreamingAccessForServicesInputMaxResultsInteger.of_jsoninmake?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of Amazon Web Services services that have been granted streaming access to your Resource Explorer data. Streaming access allows Amazon Web Services services to receive real-time updates about your resources as they are indexed by Resource Explorer."]moduleListServiceViewsOutput=structtypenonrect={nextToken:String_.toption[@ocaml.doc"The pagination token to use in a subsequent ListServiceViews request to retrieve the next set of results."];serviceViews:ServiceViewArnList.toption[@ocaml.doc"A list of Amazon Resource Names (ARNs) for the service views available in the current Amazon Web Services account."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?serviceViews->fun()->{nextToken;serviceViews}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:String_.to_value));("ServiceViews",(Option.mapx.serviceViews~f:ServiceViewArnList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letserviceViews=(Option.map~f:ServiceViewArnList.of_xml)(Xml.childxml_arg0"ServiceViews")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inmake?serviceViews?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letserviceViews=field_mapjson__"ServiceViews"ServiceViewArnList.of_jsoninletnextToken=field_mapjson__"NextToken"String_.of_jsoninmake?serviceViews?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all Resource Explorer service views available in the current Amazon Web Services account. This operation returns the ARNs of available service views."]moduleListServiceViewsInput=structtypenonrect={maxResults:ListServiceViewsInputMaxResultsInteger.toption[@ocaml.doc"The maximum number of service view results to return in a single response. Valid values are between 1 and 50."];nextToken:String_.toption[@ocaml.doc"The pagination token from a previous ListServiceViews response. Use this token to retrieve the next set of results."]}letmake?maxResults=fun?nextToken->fun()->{maxResults;nextToken}letto_valuex=structure_to_value[("MaxResults",(Option.mapx.maxResults~f:ListServiceViewsInputMaxResultsInteger.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:ListServiceViewsInputMaxResultsInteger.of_xml)(Xml.childxml_arg0"MaxResults")inmake?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletmaxResults=field_mapjson__"MaxResults"ListServiceViewsInputMaxResultsInteger.of_jsoninmake?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all Resource Explorer service views available in the current Amazon Web Services account. This operation returns the ARNs of available service views."]moduleListServiceIndexesOutput=structtypenonrect={indexes:IndexList.toption[@ocaml.doc"A list of Index objects that describe the Resource Explorer indexes found in the specified Regions."];nextToken:String_.toption[@ocaml.doc"The pagination token to use in a subsequent ListServiceIndexes request to retrieve the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?indexes=fun?nextToken->fun()->{indexes;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Indexes",(Option.mapx.indexes~f:IndexList.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletindexes=(Option.map~f:IndexList.of_xml)(Xml.childxml_arg0"Indexes")inmake?nextToken?indexes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletindexes=field_mapjson__"Indexes"IndexList.of_jsoninmake?nextToken?indexes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all Resource Explorer indexes across the specified Amazon Web Services Regions. This operation returns information about indexes including their ARNs, types, and Regions."]moduleListServiceIndexesInput=structtypenonrect={regions:ListServiceIndexesInputRegionsList.toption[@ocaml.doc"A list of Amazon Web Services Regions to include in the search for indexes. If not specified, indexes from all Regions are returned."];maxResults:ListServiceIndexesInputMaxResultsInteger.toption[@ocaml.doc"The maximum number of index results to return in a single response. Valid values are between 1 and 100."];nextToken:ListServiceIndexesInputNextTokenString.toption[@ocaml.doc"The pagination token from a previous ListServiceIndexes response. Use this token to retrieve the next set of results."]}letmake?regions=fun?maxResults->fun?nextToken->fun()->{regions;maxResults;nextToken}letto_valuex=structure_to_value[("Regions",(Option.mapx.regions~f:ListServiceIndexesInputRegionsList.to_value));("MaxResults",(Option.mapx.maxResults~f:ListServiceIndexesInputMaxResultsInteger.to_value));("NextToken",(Option.mapx.nextToken~f:ListServiceIndexesInputNextTokenString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:ListServiceIndexesInputNextTokenString.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:ListServiceIndexesInputMaxResultsInteger.of_xml)(Xml.childxml_arg0"MaxResults")inletregions=(Option.map~f:ListServiceIndexesInputRegionsList.of_xml)(Xml.childxml_arg0"Regions")inmake?nextToken?maxResults?regions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"ListServiceIndexesInputNextTokenString.of_jsoninletmaxResults=field_mapjson__"MaxResults"ListServiceIndexesInputMaxResultsInteger.of_jsoninletregions=field_mapjson__"Regions"ListServiceIndexesInputRegionsList.of_jsoninmake?nextToken?maxResults?regions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all Resource Explorer indexes across the specified Amazon Web Services Regions. This operation returns information about indexes including their ARNs, types, and Regions."]moduleListResourcesOutput=structtypenonrect={resources:ResourceList.toption[@ocaml.doc"The list of structures that describe the resources that match the query."];nextToken:ListResourcesOutputNextTokenString.toption[@ocaml.doc"If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. The pagination tokens expire after 24 hours."];viewArn:ListResourcesOutputViewArnString.toption[@ocaml.doc"The Amazon resource name (ARN) of the view that this operation used to perform the search."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?resources=fun?nextToken->fun?viewArn->fun()->{resources;nextToken;viewArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Resources",(Option.mapx.resources~f:ResourceList.to_value));("NextToken",(Option.mapx.nextToken~f:ListResourcesOutputNextTokenString.to_value));("ViewArn",(Option.mapx.viewArn~f:ListResourcesOutputViewArnString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letviewArn=(Option.map~f:ListResourcesOutputViewArnString.of_xml)(Xml.childxml_arg0"ViewArn")inletnextToken=(Option.map~f:ListResourcesOutputNextTokenString.of_xml)(Xml.childxml_arg0"NextToken")inletresources=(Option.map~f:ResourceList.of_xml)(Xml.childxml_arg0"Resources")inmake?viewArn?nextToken?resources()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letviewArn=field_mapjson__"ViewArn"ListResourcesOutputViewArnString.of_jsoninletnextToken=field_mapjson__"NextToken"ListResourcesOutputNextTokenString.of_jsoninletresources=field_mapjson__"Resources"ResourceList.of_jsoninmake?viewArn?nextToken?resources()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of resources and their details that match the specified criteria. This query must use a view. If you don\226\128\153t explicitly specify a view, then Resource Explorer uses the default view for the Amazon Web Services Region in which you call this operation."]moduleListResourcesInput=structtypenonrect={filters:SearchFilter.toption[@ocaml.doc"An array of strings that specify which resources are included in the results of queries made using this view. When you use this view in a Search operation, the filter string is combined with the search's QueryString parameter using a logical AND operator. For information about the supported syntax, see Search query reference for Resource Explorer in the Amazon Web Services Resource Explorer User Guide. This query string in the context of this operation supports only filter prefixes with optional operators. It doesn't support free-form text. For example, the string region:us* service:ec2 -tag:stage=prod includes all Amazon EC2 resources in any Amazon Web Services Region that begins with the letters us and is not tagged with a key Stage that has the value prod."];maxResults:ListResourcesInputMaxResultsInteger.toption[@ocaml.doc"The maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. An API operation can return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results."];viewArn:ListResourcesInputViewArnString.toption[@ocaml.doc"Specifies the Amazon resource name (ARN) of the view to use for the query. If you don't specify a value for this parameter, then the operation automatically uses the default view for the Amazon Web Services Region in which you called this operation. If the Region either doesn't have a default view or if you don't have permission to use the default view, then the operation fails with a 401 Unauthorized exception."];nextToken:ListResourcesInputNextTokenString.toption[@ocaml.doc"The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. The pagination tokens expire after 24 hours. The ListResources operation does not generate a NextToken if you set MaxResults to 1000."]}letmake?filters=fun?maxResults->fun?viewArn->fun?nextToken->fun()->{filters;maxResults;viewArn;nextToken}letto_valuex=structure_to_value[("Filters",(Option.mapx.filters~f:SearchFilter.to_value));("MaxResults",(Option.mapx.maxResults~f:ListResourcesInputMaxResultsInteger.to_value));("ViewArn",(Option.mapx.viewArn~f:ListResourcesInputViewArnString.to_value));("NextToken",(Option.mapx.nextToken~f:ListResourcesInputNextTokenString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:ListResourcesInputNextTokenString.of_xml)(Xml.childxml_arg0"NextToken")inletviewArn=(Option.map~f:ListResourcesInputViewArnString.of_xml)(Xml.childxml_arg0"ViewArn")inletmaxResults=(Option.map~f:ListResourcesInputMaxResultsInteger.of_xml)(Xml.childxml_arg0"MaxResults")inletfilters=(Option.map~f:SearchFilter.of_xml)(Xml.childxml_arg0"Filters")inmake?nextToken?viewArn?maxResults?filters()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"ListResourcesInputNextTokenString.of_jsoninletviewArn=field_mapjson__"ViewArn"ListResourcesInputViewArnString.of_jsoninletmaxResults=field_mapjson__"MaxResults"ListResourcesInputMaxResultsInteger.of_jsoninletfilters=field_mapjson__"Filters"SearchFilter.of_jsoninmake?nextToken?viewArn?maxResults?filters()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of resources and their details that match the specified criteria. This query must use a view. If you don\226\128\153t explicitly specify a view, then Resource Explorer uses the default view for the Amazon Web Services Region in which you call this operation."]moduleListManagedViewsOutput=structtypenonrect={nextToken:String_.toption[@ocaml.doc"If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. The pagination tokens expire after 24 hours."];managedViews:ManagedViewArnList.toption[@ocaml.doc"The list of managed views available in the Amazon Web Services Region in which you called this operation."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?managedViews->fun()->{nextToken;managedViews}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:String_.to_value));("ManagedViews",(Option.mapx.managedViews~f:ManagedViewArnList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmanagedViews=(Option.map~f:ManagedViewArnList.of_xml)(Xml.childxml_arg0"ManagedViews")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inmake?managedViews?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmanagedViews=field_mapjson__"ManagedViews"ManagedViewArnList.of_jsoninletnextToken=field_mapjson__"NextToken"String_.of_jsoninmake?managedViews?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the Amazon resource names (ARNs) of the Amazon Web Services-managed views available in the Amazon Web Services Region in which you call this operation."]moduleListManagedViewsInput=structtypenonrect={maxResults:ListManagedViewsInputMaxResultsInteger.toption[@ocaml.doc"The maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. An API operation can return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results."];nextToken:ListManagedViewsInputNextTokenString.toption[@ocaml.doc"The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. The pagination tokens expire after 24 hours."];servicePrincipal:ListManagedViewsInputServicePrincipalString.toption[@ocaml.doc"Specifies a service principal name. If specified, then the operation only returns the managed views that are managed by the input service."]}letmake?maxResults=fun?nextToken->fun?servicePrincipal->fun()->{maxResults;nextToken;servicePrincipal}letto_valuex=structure_to_value[("MaxResults",(Option.mapx.maxResults~f:ListManagedViewsInputMaxResultsInteger.to_value));("NextToken",(Option.mapx.nextToken~f:ListManagedViewsInputNextTokenString.to_value));("ServicePrincipal",(Option.mapx.servicePrincipal~f:ListManagedViewsInputServicePrincipalString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letservicePrincipal=(Option.map~f:ListManagedViewsInputServicePrincipalString.of_xml)(Xml.childxml_arg0"ServicePrincipal")inletnextToken=(Option.map~f:ListManagedViewsInputNextTokenString.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:ListManagedViewsInputMaxResultsInteger.of_xml)(Xml.childxml_arg0"MaxResults")inmake?servicePrincipal?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letservicePrincipal=field_mapjson__"ServicePrincipal"ListManagedViewsInputServicePrincipalString.of_jsoninletnextToken=field_mapjson__"NextToken"ListManagedViewsInputNextTokenString.of_jsoninletmaxResults=field_mapjson__"MaxResults"ListManagedViewsInputMaxResultsInteger.of_jsoninmake?servicePrincipal?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the Amazon resource names (ARNs) of the Amazon Web Services-managed views available in the Amazon Web Services Region in which you call this operation."]moduleListIndexesOutput=structtypenonrect={indexes:IndexList.toption[@ocaml.doc"A structure that contains the details and status of each index."];nextToken:String_.toption[@ocaml.doc"If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. The pagination tokens expire after 24 hours."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?indexes=fun?nextToken->fun()->{indexes;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Indexes",(Option.mapx.indexes~f:IndexList.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletindexes=(Option.map~f:IndexList.of_xml)(Xml.childxml_arg0"Indexes")inmake?nextToken?indexes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletindexes=field_mapjson__"Indexes"IndexList.of_jsoninmake?nextToken?indexes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of all of the indexes in Amazon Web Services Regions that are currently collecting resource information for Amazon Web Services Resource Explorer."]moduleListIndexesInput=structtypenonrect={type_:IndexType.toption[@ocaml.doc"If specified, limits the output to only indexes of the specified Type, either LOCAL or AGGREGATOR. Use this option to discover the aggregator index for your account."];regions:ListIndexesInputRegionsList.toption[@ocaml.doc"If specified, limits the response to only information about the index in the specified list of Amazon Web Services Regions."];maxResults:ListIndexesInputMaxResultsInteger.toption[@ocaml.doc"The maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. An API operation can return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results."];nextToken:ListIndexesInputNextTokenString.toption[@ocaml.doc"The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. The pagination tokens expire after 24 hours."]}letmake?type_=fun?regions->fun?maxResults->fun?nextToken->fun()->{type_;regions;maxResults;nextToken}letto_valuex=structure_to_value[("Type",(Option.mapx.type_~f:IndexType.to_value));("Regions",(Option.mapx.regions~f:ListIndexesInputRegionsList.to_value));("MaxResults",(Option.mapx.maxResults~f:ListIndexesInputMaxResultsInteger.to_value));("NextToken",(Option.mapx.nextToken~f:ListIndexesInputNextTokenString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:ListIndexesInputNextTokenString.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:ListIndexesInputMaxResultsInteger.of_xml)(Xml.childxml_arg0"MaxResults")inletregions=(Option.map~f:ListIndexesInputRegionsList.of_xml)(Xml.childxml_arg0"Regions")inlettype_=(Option.map~f:IndexType.of_xml)(Xml.childxml_arg0"Type")inmake?nextToken?maxResults?regions?type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"ListIndexesInputNextTokenString.of_jsoninletmaxResults=field_mapjson__"MaxResults"ListIndexesInputMaxResultsInteger.of_jsoninletregions=field_mapjson__"Regions"ListIndexesInputRegionsList.of_jsoninlettype_=field_mapjson__"Type"IndexType.of_jsoninmake?nextToken?maxResults?regions?type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of all of the indexes in Amazon Web Services Regions that are currently collecting resource information for Amazon Web Services Resource Explorer."]moduleListIndexesForMembersOutput=structtypenonrect={indexes:MemberIndexList.toption[@ocaml.doc"A structure that contains the details and status of each index."];nextToken:String_.toption[@ocaml.doc"If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. The pagination tokens expire after 24 hours."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?indexes=fun?nextToken->fun()->{indexes;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Indexes",(Option.mapx.indexes~f:MemberIndexList.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletindexes=(Option.map~f:MemberIndexList.of_xml)(Xml.childxml_arg0"Indexes")inmake?nextToken?indexes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletindexes=field_mapjson__"Indexes"MemberIndexList.of_jsoninmake?nextToken?indexes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of a member's indexes in all Amazon Web Services Regions that are currently collecting resource information for Amazon Web Services Resource Explorer. Only the management account or a delegated administrator with service access enabled can invoke this API call."]moduleListIndexesForMembersInput=structtypenonrect={accountIdList:ListIndexesForMembersInputAccountIdListList.t[@ocaml.doc"The account IDs will limit the output to only indexes from these accounts."];maxResults:ListIndexesForMembersInputMaxResultsInteger.toption[@ocaml.doc"The maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. An API operation can return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results."];nextToken:ListIndexesForMembersInputNextTokenString.toption[@ocaml.doc"The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. The pagination tokens expire after 24 hours."]}letcontext_="ListIndexesForMembersInput"letmake?maxResults=fun?nextToken->fun~accountIdList->fun()->{maxResults;nextToken;accountIdList}letto_valuex=structure_to_value[("AccountIdList",(Some(ListIndexesForMembersInputAccountIdListList.to_valuex.accountIdList)));("MaxResults",(Option.mapx.maxResults~f:ListIndexesForMembersInputMaxResultsInteger.to_value));("NextToken",(Option.mapx.nextToken~f:ListIndexesForMembersInputNextTokenString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:ListIndexesForMembersInputNextTokenString.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:ListIndexesForMembersInputMaxResultsInteger.of_xml)(Xml.childxml_arg0"MaxResults")inletaccountIdList=ListIndexesForMembersInputAccountIdListList.of_xml(Xml.child_exn~context:context_xml_arg0"AccountIdList")inmake?nextToken?maxResults~accountIdList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"ListIndexesForMembersInputNextTokenString.of_jsoninletmaxResults=field_mapjson__"MaxResults"ListIndexesForMembersInputMaxResultsInteger.of_jsoninletaccountIdList=field_map_exnjson__"AccountIdList"ListIndexesForMembersInputAccountIdListList.of_jsoninmake?nextToken?maxResults~accountIdList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of a member's indexes in all Amazon Web Services Regions that are currently collecting resource information for Amazon Web Services Resource Explorer. Only the management account or a delegated administrator with service access enabled can invoke this API call."]moduleGetViewOutput=structtypenonrect={view:View.toption[@ocaml.doc"A structure that contains the details for the requested view."];tags:TagMap.toption[@ocaml.doc"Tag key and value pairs that are attached to the view."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?view=fun?tags->fun()->{view;tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("View",(Option.mapx.view~f:View.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletview=(Option.map~f:View.of_xml)(Xml.childxml_arg0"View")inmake?tags?view()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagMap.of_jsoninletview=field_mapjson__"View"View.of_jsoninmake?tags?view()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details of the specified view."]moduleGetViewInput=structtypenonrect={viewArn:GetViewInputViewArnString.t[@ocaml.doc"The Amazon resource name (ARN) of the view that you want information about."]}letcontext_="GetViewInput"letmake~viewArn=fun()->{viewArn}letto_valuex=structure_to_value[("ViewArn",(Some(GetViewInputViewArnString.to_valuex.viewArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letviewArn=GetViewInputViewArnString.of_xml(Xml.child_exn~context:context_xml_arg0"ViewArn")inmake~viewArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letviewArn=field_map_exnjson__"ViewArn"GetViewInputViewArnString.of_jsoninmake~viewArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details of the specified view."]moduleGetServiceViewOutput=structtypenonrect={view:ServiceView.toption[@ocaml.doc"A ServiceView object that contains the details and configuration of the requested service view."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?view=fun()->{view}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("View",(Option.mapx.view~f:ServiceView.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letview=(Option.map~f:ServiceView.of_xml)(Xml.childxml_arg0"View")inmake?view()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letview=field_mapjson__"View"ServiceView.of_jsoninmake?view()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details about a specific Resource Explorer service view. This operation returns the configuration and properties of the specified view."]moduleGetServiceViewInput=structtypenonrect={serviceViewArn:GetServiceViewInputServiceViewArnString.t[@ocaml.doc"The Amazon Resource Name (ARN) of the service view to retrieve details for."]}letcontext_="GetServiceViewInput"letmake~serviceViewArn=fun()->{serviceViewArn}letto_valuex=structure_to_value[("ServiceViewArn",(Some(GetServiceViewInputServiceViewArnString.to_valuex.serviceViewArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letserviceViewArn=GetServiceViewInputServiceViewArnString.of_xml(Xml.child_exn~context:context_xml_arg0"ServiceViewArn")inmake~serviceViewArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letserviceViewArn=field_map_exnjson__"ServiceViewArn"GetServiceViewInputServiceViewArnString.of_jsoninmake~serviceViewArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details about a specific Resource Explorer service view. This operation returns the configuration and properties of the specified view."]moduleGetServiceIndexOutput=structtypenonrect={arn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Resource Explorer index in the current Region."];type_:IndexType.toption[@ocaml.doc"The type of the index. Valid values are LOCAL (contains resources from the current Region only) or AGGREGATOR (contains replicated resource information from all Regions)."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?type_->fun()->{arn;type_}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:String_.to_value));("Type",(Option.mapx.type_~f:IndexType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=(Option.map~f:IndexType.of_xml)(Xml.childxml_arg0"Type")inletarn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Arn")inmake?type_?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_mapjson__"Type"IndexType.of_jsoninletarn=field_mapjson__"Arn"String_.of_jsoninmake?type_?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves information about the Resource Explorer index in the current Amazon Web Services Region. This operation returns the ARN and type of the index if one exists."]moduleGetResourceExplorerSetupOutput=structtypenonrect={regions:RegionStatusList.toption[@ocaml.doc"A list of Region status objects that describe the current state of Resource Explorer configuration in each Region."];nextToken:GetResourceExplorerSetupOutputNextTokenString.toption[@ocaml.doc"The pagination token to use in a subsequent GetResourceExplorerSetup request to retrieve the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?regions=fun?nextToken->fun()->{regions;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Regions",(Option.mapx.regions~f:RegionStatusList.to_value));("NextToken",(Option.mapx.nextToken~f:GetResourceExplorerSetupOutputNextTokenString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:GetResourceExplorerSetupOutputNextTokenString.of_xml)(Xml.childxml_arg0"NextToken")inletregions=(Option.map~f:RegionStatusList.of_xml)(Xml.childxml_arg0"Regions")inmake?nextToken?regions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"GetResourceExplorerSetupOutputNextTokenString.of_jsoninletregions=field_mapjson__"Regions"RegionStatusList.of_jsoninmake?nextToken?regions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the status and details of a Resource Explorer setup operation. This operation returns information about the progress of creating or deleting Resource Explorer configurations across Regions."]moduleGetResourceExplorerSetupInput=structtypenonrect={taskId:GetResourceExplorerSetupInputTaskIdString.t[@ocaml.doc"The unique identifier of the setup task to retrieve status information for. This ID is returned by CreateResourceExplorerSetup or DeleteResourceExplorerSetup operations."];maxResults:GetResourceExplorerSetupInputMaxResultsInteger.toption[@ocaml.doc"The maximum number of Region status results to return in a single response. Valid values are between 1 and 100."];nextToken:GetResourceExplorerSetupInputNextTokenString.toption[@ocaml.doc"The pagination token from a previous GetResourceExplorerSetup response. Use this token to retrieve the next set of results."]}letcontext_="GetResourceExplorerSetupInput"letmake?maxResults=fun?nextToken->fun~taskId->fun()->{maxResults;nextToken;taskId}letto_valuex=structure_to_value[("TaskId",(Some(GetResourceExplorerSetupInputTaskIdString.to_valuex.taskId)));("MaxResults",(Option.mapx.maxResults~f:GetResourceExplorerSetupInputMaxResultsInteger.to_value));("NextToken",(Option.mapx.nextToken~f:GetResourceExplorerSetupInputNextTokenString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:GetResourceExplorerSetupInputNextTokenString.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:GetResourceExplorerSetupInputMaxResultsInteger.of_xml)(Xml.childxml_arg0"MaxResults")inlettaskId=GetResourceExplorerSetupInputTaskIdString.of_xml(Xml.child_exn~context:context_xml_arg0"TaskId")inmake?nextToken?maxResults~taskId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"GetResourceExplorerSetupInputNextTokenString.of_jsoninletmaxResults=field_mapjson__"MaxResults"GetResourceExplorerSetupInputMaxResultsInteger.of_jsoninlettaskId=field_map_exnjson__"TaskId"GetResourceExplorerSetupInputTaskIdString.of_jsoninmake?nextToken?maxResults~taskId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the status and details of a Resource Explorer setup operation. This operation returns information about the progress of creating or deleting Resource Explorer configurations across Regions."]moduleGetManagedViewOutput=structtypenonrect={managedView:ManagedView.toption[@ocaml.doc"Details about the specified managed view."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?managedView=fun()->{managedView}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ManagedView",(Option.mapx.managedView~f:ManagedView.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmanagedView=(Option.map~f:ManagedView.of_xml)(Xml.childxml_arg0"ManagedView")inmake?managedView()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmanagedView=field_mapjson__"ManagedView"ManagedView.of_jsoninmake?managedView()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details of the specified Amazon Web Services-managed view."]moduleGetManagedViewInput=structtypenonrect={managedViewArn:GetManagedViewInputManagedViewArnString.t[@ocaml.doc"The Amazon resource name (ARN) of the managed view."]}letcontext_="GetManagedViewInput"letmake~managedViewArn=fun()->{managedViewArn}letto_valuex=structure_to_value[("ManagedViewArn",(Some(GetManagedViewInputManagedViewArnString.to_valuex.managedViewArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmanagedViewArn=GetManagedViewInputManagedViewArnString.of_xml(Xml.child_exn~context:context_xml_arg0"ManagedViewArn")inmake~managedViewArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmanagedViewArn=field_map_exnjson__"ManagedViewArn"GetManagedViewInputManagedViewArnString.of_jsoninmake~managedViewArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details of the specified Amazon Web Services-managed view."]moduleGetIndexOutput=structtypenonrect={arn:String_.toption[@ocaml.doc"The Amazon resource name (ARN) of the index."];type_:IndexType.toption[@ocaml.doc"The type of the index in this Region. For information about the aggregator index and how it differs from a local index, see Turning on cross-Region search by creating an aggregator index."];state:IndexState.toption[@ocaml.doc"The current state of the index in this Amazon Web Services Region."];replicatingFrom:RegionList.toption[@ocaml.doc"This response value is present only if this index is Type=AGGREGATOR. A list of the Amazon Web Services Regions that replicate their content to the index in this Region."];replicatingTo:RegionList.toption[@ocaml.doc"This response value is present only if this index is Type=LOCAL. The Amazon Web Services Region that contains the aggregator index, if one exists. If an aggregator index does exist then the Region in which you called this operation replicates its index information to the Region specified in this response value."];createdAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The date and time when the index was originally created."];lastUpdatedAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The date and time when the index was last updated."];tags:TagMap.toption[@ocaml.doc"Tag key and value pairs that are attached to the index."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?type_->fun?state->fun?replicatingFrom->fun?replicatingTo->fun?createdAt->fun?lastUpdatedAt->fun?tags->fun()->{arn;type_;state;replicatingFrom;replicatingTo;createdAt;lastUpdatedAt;tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:String_.to_value));("Type",(Option.mapx.type_~f:IndexType.to_value));("State",(Option.mapx.state~f:IndexState.to_value));("ReplicatingFrom",(Option.mapx.replicatingFrom~f:RegionList.to_value));("ReplicatingTo",(Option.mapx.replicatingTo~f:RegionList.to_value));("CreatedAt",(Option.mapx.createdAt~f:SyntheticTimestamp_date_time.to_value));("LastUpdatedAt",(Option.mapx.lastUpdatedAt~f:SyntheticTimestamp_date_time.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletlastUpdatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"LastUpdatedAt")inletcreatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"CreatedAt")inletreplicatingTo=(Option.map~f:RegionList.of_xml)(Xml.childxml_arg0"ReplicatingTo")inletreplicatingFrom=(Option.map~f:RegionList.of_xml)(Xml.childxml_arg0"ReplicatingFrom")inletstate=(Option.map~f:IndexState.of_xml)(Xml.childxml_arg0"State")inlettype_=(Option.map~f:IndexType.of_xml)(Xml.childxml_arg0"Type")inletarn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Arn")inmake?tags?lastUpdatedAt?createdAt?replicatingTo?replicatingFrom?state?type_?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagMap.of_jsoninletlastUpdatedAt=field_mapjson__"LastUpdatedAt"SyntheticTimestamp_date_time.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"SyntheticTimestamp_date_time.of_jsoninletreplicatingTo=field_mapjson__"ReplicatingTo"RegionList.of_jsoninletreplicatingFrom=field_mapjson__"ReplicatingFrom"RegionList.of_jsoninletstate=field_mapjson__"State"IndexState.of_jsoninlettype_=field_mapjson__"Type"IndexType.of_jsoninletarn=field_mapjson__"Arn"String_.of_jsoninmake?tags?lastUpdatedAt?createdAt?replicatingTo?replicatingFrom?state?type_?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details about the Amazon Web Services Resource Explorer index in the Amazon Web Services Region in which you invoked the operation."]moduleGetDefaultViewOutput=structtypenonrect={viewArn:String_.toption[@ocaml.doc"The Amazon resource name (ARN) of the view that is the current default for the Amazon Web Services Region in which you called this operation."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?viewArn=fun()->{viewArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ViewArn",(Option.mapx.viewArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letviewArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ViewArn")inmake?viewArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letviewArn=field_mapjson__"ViewArn"String_.of_jsoninmake?viewArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the Amazon Resource Name (ARN) of the view that is the default for the Amazon Web Services Region in which you call this operation. You can then call GetView to retrieve the details of that view."]moduleGetAccountLevelServiceConfigurationOutput=structtypenonrect={orgConfiguration:OrgConfiguration.toption[@ocaml.doc"Details about the organization, and whether configuration is ENABLED or DISABLED."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?orgConfiguration=fun()->{orgConfiguration}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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[("OrgConfiguration",(Option.mapx.orgConfiguration~f:OrgConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letorgConfiguration=(Option.map~f:OrgConfiguration.of_xml)(Xml.childxml_arg0"OrgConfiguration")inmake?orgConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letorgConfiguration=field_mapjson__"OrgConfiguration"OrgConfiguration.of_jsoninmake?orgConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the status of your account's Amazon Web Services service access, and validates the service linked role required to access the multi-account search feature. Only the management account can invoke this API call."]moduleDeleteViewOutput=structtypenonrect={viewArn:String_.toption[@ocaml.doc"The Amazon resource name (ARN) of the view that you successfully deleted."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?viewArn=fun()->{viewArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ViewArn",(Option.mapx.viewArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letviewArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ViewArn")inmake?viewArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letviewArn=field_mapjson__"ViewArn"String_.of_jsoninmake?viewArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified view. If the specified view is the default view for its Amazon Web Services Region, then all Search operations in that Region must explicitly specify the view to use until you configure a new default by calling the AssociateDefaultView operation."]moduleDeleteViewInput=structtypenonrect={viewArn:DeleteViewInputViewArnString.t[@ocaml.doc"The Amazon resource name (ARN) of the view that you want to delete."]}letcontext_="DeleteViewInput"letmake~viewArn=fun()->{viewArn}letto_valuex=structure_to_value[("ViewArn",(Some(DeleteViewInputViewArnString.to_valuex.viewArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letviewArn=DeleteViewInputViewArnString.of_xml(Xml.child_exn~context:context_xml_arg0"ViewArn")inmake~viewArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letviewArn=field_map_exnjson__"ViewArn"DeleteViewInputViewArnString.of_jsoninmake~viewArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified view. If the specified view is the default view for its Amazon Web Services Region, then all Search operations in that Region must explicitly specify the view to use until you configure a new default by calling the AssociateDefaultView operation."]moduleDeleteResourceExplorerSetupOutput=structtypenonrect={taskId:DeleteResourceExplorerSetupOutputTaskIdString.toption[@ocaml.doc"The unique identifier for the deletion task. Use this ID with GetResourceExplorerSetup to monitor the progress of the deletion operation."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?taskId=fun()->{taskId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("TaskId",(Option.mapx.taskId~f:DeleteResourceExplorerSetupOutputTaskIdString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskId=(Option.map~f:DeleteResourceExplorerSetupOutputTaskIdString.of_xml)(Xml.childxml_arg0"TaskId")inmake?taskId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskId=field_mapjson__"TaskId"DeleteResourceExplorerSetupOutputTaskIdString.of_jsoninmake?taskId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a Resource Explorer setup configuration. This operation removes indexes and views from the specified Regions or all Regions where Resource Explorer is configured."]moduleDeleteResourceExplorerSetupInput=structtypenonrect={regionList:RegionList.toption[@ocaml.doc"A list of Amazon Web Services Regions from which to delete the Resource Explorer configuration. If not specified, the operation uses the DeleteInAllRegions parameter to determine scope."];deleteInAllRegions:Boolean.toption[@ocaml.doc"Specifies whether to delete Resource Explorer configuration from all Regions where it is currently enabled. If this parameter is set to true, a value for RegionList must not be provided. Otherwise, the operation fails with a ValidationException error."]}letmake?regionList=fun?deleteInAllRegions->fun()->{regionList;deleteInAllRegions}letto_valuex=structure_to_value[("RegionList",(Option.mapx.regionList~f:RegionList.to_value));("DeleteInAllRegions",(Option.mapx.deleteInAllRegions~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeleteInAllRegions=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"DeleteInAllRegions")inletregionList=(Option.map~f:RegionList.of_xml)(Xml.childxml_arg0"RegionList")inmake?deleteInAllRegions?regionList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeleteInAllRegions=field_mapjson__"DeleteInAllRegions"Boolean.of_jsoninletregionList=field_mapjson__"RegionList"RegionList.of_jsoninmake?deleteInAllRegions?regionList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a Resource Explorer setup configuration. This operation removes indexes and views from the specified Regions or all Regions where Resource Explorer is configured."]moduleDeleteIndexOutput=structtypenonrect={arn:String_.toption[@ocaml.doc"The Amazon resource name (ARN) of the index that you successfully started the deletion process. This operation is asynchronous. To check its status, call the GetIndex operation."];state:IndexState.toption[@ocaml.doc"Indicates the current state of the index."];lastUpdatedAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The date and time when you last updated this index."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?state->fun?lastUpdatedAt->fun()->{arn;state;lastUpdatedAt}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:String_.to_value));("State",(Option.mapx.state~f:IndexState.to_value));("LastUpdatedAt",(Option.mapx.lastUpdatedAt~f:SyntheticTimestamp_date_time.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastUpdatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"LastUpdatedAt")inletstate=(Option.map~f:IndexState.of_xml)(Xml.childxml_arg0"State")inletarn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Arn")inmake?lastUpdatedAt?state?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastUpdatedAt=field_mapjson__"LastUpdatedAt"SyntheticTimestamp_date_time.of_jsoninletstate=field_mapjson__"State"IndexState.of_jsoninletarn=field_mapjson__"Arn"String_.of_jsoninmake?lastUpdatedAt?state?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified index and turns off Amazon Web Services Resource Explorer in the specified Amazon Web Services Region. When you delete an index, Resource Explorer stops discovering and indexing resources in that Region. Resource Explorer also deletes all views in that Region. These actions occur as asynchronous background tasks. You can check to see when the actions are complete by using the GetIndex operation and checking the Status response value. If the index you delete is the aggregator index for the Amazon Web Services account, you must wait 24 hours before you can promote another local index to be the aggregator index for the account. Users can't perform account-wide searches using Resource Explorer until another aggregator index is configured."]moduleDeleteIndexInput=structtypenonrect={arn:String_.t[@ocaml.doc"The Amazon resource name (ARN) of the index that you want to delete."]}letcontext_="DeleteIndexInput"letmake~arn=fun()->{arn}letto_valuex=structure_to_value[("Arn",(Some(String_.to_valuex.arn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"Arn")inmake~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_map_exnjson__"Arn"String_.of_jsoninmake~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified index and turns off Amazon Web Services Resource Explorer in the specified Amazon Web Services Region. When you delete an index, Resource Explorer stops discovering and indexing resources in that Region. Resource Explorer also deletes all views in that Region. These actions occur as asynchronous background tasks. You can check to see when the actions are complete by using the GetIndex operation and checking the Status response value. If the index you delete is the aggregator index for the Amazon Web Services account, you must wait 24 hours before you can promote another local index to be the aggregator index for the account. Users can't perform account-wide searches using Resource Explorer until another aggregator index is configured."]moduleCreateViewOutput=structtypenonrect={view:View.toption[@ocaml.doc"A structure that contains the details about the new view."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?view=fun()->{view}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("View",(Option.mapx.view~f:View.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letview=(Option.map~f:View.of_xml)(Xml.childxml_arg0"View")inmake?view()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letview=field_mapjson__"View"View.of_jsoninmake?view()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a view that users can query by using the Search operation. Results from queries that you make using this view include only resources that match the view's Filters. For more information about Amazon Web Services Resource Explorer views, see Managing views in the Amazon Web Services Resource Explorer User Guide. Only the principals with an IAM identity-based policy that grants Allow to the Search action on a Resource with the Amazon resource name (ARN) of this view can Search using views you create with this operation."]moduleCreateViewInput=structtypenonrect={clientToken:CreateViewInputClientTokenString.toption[@ocaml.doc"This value helps ensure idempotency. Resource Explorer uses this value to prevent the accidental creation of duplicate versions. We recommend that you generate a UUID-type value to ensure the uniqueness of your views."];viewName:ViewName.t[@ocaml.doc"The name of the new view. This name appears in the list of views in Resource Explorer. The name must be no more than 64 characters long, and can include letters, digits, and the dash (-) character. The name must be unique within its Amazon Web Services Region."];includedProperties:IncludedPropertyList.toption[@ocaml.doc"Specifies optional fields that you want included in search results from this view. It is a list of objects that each describe a field to include. The default is an empty list, with no optional fields included in the results."];scope:CreateViewInputScopeString.toption[@ocaml.doc"The root ARN of the account, an organizational unit (OU), or an organization ARN. If left empty, the default is account."];filters:SearchFilter.toption[@ocaml.doc"An array of strings that specify which resources are included in the results of queries made using this view. When you use this view in a Search operation, the filter string is combined with the search's QueryString parameter using a logical AND operator. For information about the supported syntax, see Search query reference for Resource Explorer in the Amazon Web Services Resource Explorer User Guide. This query string in the context of this operation supports only filter prefixes with optional operators. It doesn't support free-form text. For example, the string region:us* service:ec2 -tag:stage=prod includes all Amazon EC2 resources in any Amazon Web Services Region that begins with the letters us and is not tagged with a key Stage that has the value prod."];tags:TagMap.toption[@ocaml.doc"Tag key and value pairs that are attached to the view."]}letcontext_="CreateViewInput"letmake?clientToken=fun?includedProperties->fun?scope->fun?filters->fun?tags->fun~viewName->fun()->{clientToken;includedProperties;scope;filters;tags;viewName}letto_valuex=structure_to_value[("ClientToken",(Option.mapx.clientToken~f:CreateViewInputClientTokenString.to_value));("ViewName",(Some(ViewName.to_valuex.viewName)));("IncludedProperties",(Option.mapx.includedProperties~f:IncludedPropertyList.to_value));("Scope",(Option.mapx.scope~f:CreateViewInputScopeString.to_value));("Filters",(Option.mapx.filters~f:SearchFilter.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletfilters=(Option.map~f:SearchFilter.of_xml)(Xml.childxml_arg0"Filters")inletscope=(Option.map~f:CreateViewInputScopeString.of_xml)(Xml.childxml_arg0"Scope")inletincludedProperties=(Option.map~f:IncludedPropertyList.of_xml)(Xml.childxml_arg0"IncludedProperties")inletviewName=ViewName.of_xml(Xml.child_exn~context:context_xml_arg0"ViewName")inletclientToken=(Option.map~f:CreateViewInputClientTokenString.of_xml)(Xml.childxml_arg0"ClientToken")inmake?tags?filters?scope?includedProperties~viewName?clientToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagMap.of_jsoninletfilters=field_mapjson__"Filters"SearchFilter.of_jsoninletscope=field_mapjson__"Scope"CreateViewInputScopeString.of_jsoninletincludedProperties=field_mapjson__"IncludedProperties"IncludedPropertyList.of_jsoninletviewName=field_map_exnjson__"ViewName"ViewName.of_jsoninletclientToken=field_mapjson__"ClientToken"CreateViewInputClientTokenString.of_jsoninmake?tags?filters?scope?includedProperties~viewName?clientToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a view that users can query by using the Search operation. Results from queries that you make using this view include only resources that match the view's Filters. For more information about Amazon Web Services Resource Explorer views, see Managing views in the Amazon Web Services Resource Explorer User Guide. Only the principals with an IAM identity-based policy that grants Allow to the Search action on a Resource with the Amazon resource name (ARN) of this view can Search using views you create with this operation."]moduleCreateResourceExplorerSetupOutput=structtypenonrect={taskId:CreateResourceExplorerSetupOutputTaskIdString.toption[@ocaml.doc"The unique identifier for the setup task. Use this ID with GetResourceExplorerSetup to monitor the progress of the configuration operation."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?taskId=fun()->{taskId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("TaskId",(Option.mapx.taskId~f:CreateResourceExplorerSetupOutputTaskIdString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskId=(Option.map~f:CreateResourceExplorerSetupOutputTaskIdString.of_xml)(Xml.childxml_arg0"TaskId")inmake?taskId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskId=field_mapjson__"TaskId"CreateResourceExplorerSetupOutputTaskIdString.of_jsoninmake?taskId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a Resource Explorer setup configuration across multiple Amazon Web Services Regions. This operation sets up indexes and views in the specified Regions. This operation can also be used to set an aggregator Region for cross-Region resource search."]moduleCreateResourceExplorerSetupInput=structtypenonrect={regionList:CreateResourceExplorerSetupInputRegionListList.t[@ocaml.doc"A list of Amazon Web Services Regions where Resource Explorer should be configured. Each Region in the list will have a user-owned index created."];aggregatorRegions:CreateResourceExplorerSetupInputAggregatorRegionsList.toption[@ocaml.doc"A list of Amazon Web Services Regions that should be configured as aggregator Regions. Aggregator Regions receive replicated index information from all other Regions where there is a user-owned index."];viewName:CreateResourceExplorerSetupInputViewNameString.t[@ocaml.doc"The name for the view to be created as part of the Resource Explorer setup. The view name must be unique within the Amazon Web Services account and Region."]}letcontext_="CreateResourceExplorerSetupInput"letmake?aggregatorRegions=fun~regionList->fun~viewName->fun()->{aggregatorRegions;regionList;viewName}letto_valuex=structure_to_value[("RegionList",(Some(CreateResourceExplorerSetupInputRegionListList.to_valuex.regionList)));("AggregatorRegions",(Option.mapx.aggregatorRegions~f:CreateResourceExplorerSetupInputAggregatorRegionsList.to_value));("ViewName",(Some(CreateResourceExplorerSetupInputViewNameString.to_valuex.viewName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letviewName=CreateResourceExplorerSetupInputViewNameString.of_xml(Xml.child_exn~context:context_xml_arg0"ViewName")inletaggregatorRegions=(Option.map~f:CreateResourceExplorerSetupInputAggregatorRegionsList.of_xml)(Xml.childxml_arg0"AggregatorRegions")inletregionList=CreateResourceExplorerSetupInputRegionListList.of_xml(Xml.child_exn~context:context_xml_arg0"RegionList")inmake~viewName?aggregatorRegions~regionList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letviewName=field_map_exnjson__"ViewName"CreateResourceExplorerSetupInputViewNameString.of_jsoninletaggregatorRegions=field_mapjson__"AggregatorRegions"CreateResourceExplorerSetupInputAggregatorRegionsList.of_jsoninletregionList=field_map_exnjson__"RegionList"CreateResourceExplorerSetupInputRegionListList.of_jsoninmake~viewName?aggregatorRegions~regionList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a Resource Explorer setup configuration across multiple Amazon Web Services Regions. This operation sets up indexes and views in the specified Regions. This operation can also be used to set an aggregator Region for cross-Region resource search."]moduleCreateIndexOutput=structtypenonrect={arn:String_.toption[@ocaml.doc"The ARN of the new local index for the Region. You can reference this ARN in IAM permission policies to authorize the following operations: DeleteIndex | GetIndex | UpdateIndexType | CreateView"];state:IndexState.toption[@ocaml.doc"Indicates the current state of the index. You can check for changes to the state for asynchronous operations by calling the GetIndex operation. The state can remain in the CREATING or UPDATING state for several hours as Resource Explorer discovers the information about your resources and populates the index."];createdAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The date and timestamp when the index was created."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?state->fun?createdAt->fun()->{arn;state;createdAt}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:String_.to_value));("State",(Option.mapx.state~f:IndexState.to_value));("CreatedAt",(Option.mapx.createdAt~f:SyntheticTimestamp_date_time.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"CreatedAt")inletstate=(Option.map~f:IndexState.of_xml)(Xml.childxml_arg0"State")inletarn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Arn")inmake?createdAt?state?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreatedAt=field_mapjson__"CreatedAt"SyntheticTimestamp_date_time.of_jsoninletstate=field_mapjson__"State"IndexState.of_jsoninletarn=field_mapjson__"Arn"String_.of_jsoninmake?createdAt?state?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Turns on Amazon Web Services Resource Explorer in the Amazon Web Services Region in which you called this operation by creating an index. Resource Explorer begins discovering the resources in this Region and stores the details about the resources in the index so that they can be queried by using the Search operation. You can create only one index in a Region. This operation creates only a local index. To promote the local index in one Amazon Web Services Region into the aggregator index for the Amazon Web Services account, use the UpdateIndexType operation. For more information, see Turning on cross-Region search by creating an aggregator index in the Amazon Web Services Resource Explorer User Guide. For more details about what happens when you turn on Resource Explorer in an Amazon Web Services Region, see Turn on Resource Explorer to index your resources in an Amazon Web Services Region in the Amazon Web Services Resource Explorer User Guide. If this is the first Amazon Web Services Region in which you've created an index for Resource Explorer, then this operation also creates a service-linked role in your Amazon Web Services account that allows Resource Explorer to enumerate your resources to populate the index. Action: resource-explorer-2:CreateIndex Resource: The ARN of the index (as it will exist after the operation completes) in the Amazon Web Services Region and account in which you're trying to create the index. Use the wildcard character (*) at the end of the string to match the eventual UUID. For example, the following Resource element restricts the role or user to creating an index in only the us-east-2 Region of the specified account. \"Resource\": \"arn:aws:resource-explorer-2:us-west-2:<account-id>:index/*\" Alternatively, you can use \"Resource\": \"*\" to allow the role or user to create an index in any Region. Action: iam:CreateServiceLinkedRole Resource: No specific resource (*). This permission is required only the first time you create an index to turn on Resource Explorer in the account. Resource Explorer uses this to create the service-linked role needed to index the resources in your account. Resource Explorer uses the same service-linked role for all additional indexes you create afterwards."]moduleCreateIndexInput=structtypenonrect={clientToken:String_.toption[@ocaml.doc"This value helps ensure idempotency. Resource Explorer uses this value to prevent the accidental creation of duplicate versions. We recommend that you generate a UUID-type value to ensure the uniqueness of your index."];tags:TagMap.toption[@ocaml.doc"The specified tags are attached only to the index created in this Amazon Web Services Region. The tags aren't attached to any of the resources listed in the index."]}letmake?clientToken=fun?tags->fun()->{clientToken;tags}letto_valuex=structure_to_value[("ClientToken",(Option.mapx.clientToken~f:String_.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ClientToken")inmake?tags?clientToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagMap.of_jsoninletclientToken=field_mapjson__"ClientToken"String_.of_jsoninmake?tags?clientToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Turns on Amazon Web Services Resource Explorer in the Amazon Web Services Region in which you called this operation by creating an index. Resource Explorer begins discovering the resources in this Region and stores the details about the resources in the index so that they can be queried by using the Search operation. You can create only one index in a Region. This operation creates only a local index. To promote the local index in one Amazon Web Services Region into the aggregator index for the Amazon Web Services account, use the UpdateIndexType operation. For more information, see Turning on cross-Region search by creating an aggregator index in the Amazon Web Services Resource Explorer User Guide. For more details about what happens when you turn on Resource Explorer in an Amazon Web Services Region, see Turn on Resource Explorer to index your resources in an Amazon Web Services Region in the Amazon Web Services Resource Explorer User Guide. If this is the first Amazon Web Services Region in which you've created an index for Resource Explorer, then this operation also creates a service-linked role in your Amazon Web Services account that allows Resource Explorer to enumerate your resources to populate the index. Action: resource-explorer-2:CreateIndex Resource: The ARN of the index (as it will exist after the operation completes) in the Amazon Web Services Region and account in which you're trying to create the index. Use the wildcard character (*) at the end of the string to match the eventual UUID. For example, the following Resource element restricts the role or user to creating an index in only the us-east-2 Region of the specified account. \"Resource\": \"arn:aws:resource-explorer-2:us-west-2:<account-id>:index/*\" Alternatively, you can use \"Resource\": \"*\" to allow the role or user to create an index in any Region. Action: iam:CreateServiceLinkedRole Resource: No specific resource (*). This permission is required only the first time you create an index to turn on Resource Explorer in the account. Resource Explorer uses this to create the service-linked role needed to index the resources in your account. Resource Explorer uses the same service-linked role for all additional indexes you create afterwards."]moduleBatchGetViewOutput=structtypenonrect={views:ViewList.toption[@ocaml.doc"A structure with a list of objects with details for each of the specified views."];errors:BatchGetViewErrors.toption[@ocaml.doc"If any of the specified ARNs result in an error, then this structure describes the error."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?views=fun?errors->fun()->{views;errors}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Views",(Option.mapx.views~f:ViewList.to_value));("Errors",(Option.mapx.errors~f:BatchGetViewErrors.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrors=(Option.map~f:BatchGetViewErrors.of_xml)(Xml.childxml_arg0"Errors")inletviews=(Option.map~f:ViewList.of_xml)(Xml.childxml_arg0"Views")inmake?errors?views()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrors=field_mapjson__"Errors"BatchGetViewErrors.of_jsoninletviews=field_mapjson__"Views"ViewList.of_jsoninmake?errors?views()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details about a list of views."]moduleBatchGetViewInput=structtypenonrect={viewArns:BatchGetViewInputViewArnsList.toption[@ocaml.doc"A list of Amazon resource names (ARNs) that identify the views you want details for."]}letmake?viewArns=fun()->{viewArns}letto_valuex=structure_to_value[("ViewArns",(Option.mapx.viewArns~f:BatchGetViewInputViewArnsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letviewArns=(Option.map~f:BatchGetViewInputViewArnsList.of_xml)(Xml.childxml_arg0"ViewArns")inmake?viewArns()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letviewArns=field_mapjson__"ViewArns"BatchGetViewInputViewArnsList.of_jsoninmake?viewArns()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details about a list of views."]moduleAssociateDefaultViewOutput=structtypenonrect={viewArn:String_.toption[@ocaml.doc"The Amazon resource name (ARN) of the view that the operation set as the default for queries made in the Amazon Web Services Region and Amazon Web Services account in which you called this operation."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?viewArn=fun()->{viewArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ViewArn",(Option.mapx.viewArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letviewArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ViewArn")inmake?viewArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letviewArn=field_mapjson__"ViewArn"String_.of_jsoninmake?viewArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Sets the specified view as the default for the Amazon Web Services Region in which you call this operation. When a user performs a Search that doesn't explicitly specify which view to use, then Amazon Web Services Resource Explorer automatically chooses this default view for searches performed in this Amazon Web Services Region. If an Amazon Web Services Region doesn't have a default view configured, then users must explicitly specify a view with every Search operation performed in that Region."]moduleAssociateDefaultViewInput=structtypenonrect={viewArn:AssociateDefaultViewInputViewArnString.t[@ocaml.doc"The Amazon resource name (ARN) of the view to set as the default for the Amazon Web Services Region and Amazon Web Services account in which you call this operation. The specified view must already exist in the called Region."]}letcontext_="AssociateDefaultViewInput"letmake~viewArn=fun()->{viewArn}letto_valuex=structure_to_value[("ViewArn",(Some(AssociateDefaultViewInputViewArnString.to_valuex.viewArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letviewArn=AssociateDefaultViewInputViewArnString.of_xml(Xml.child_exn~context:context_xml_arg0"ViewArn")inmake~viewArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letviewArn=field_map_exnjson__"ViewArn"AssociateDefaultViewInputViewArnString.of_jsoninmake~viewArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Sets the specified view as the default for the Amazon Web Services Region in which you call this operation. When a user performs a Search that doesn't explicitly specify which view to use, then Amazon Web Services Resource Explorer automatically chooses this default view for searches performed in this Amazon Web Services Region. If an Amazon Web Services Region doesn't have a default view configured, then users must explicitly specify a view with every Search operation performed in that Region."]