123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822(* 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.accessanalyzerletapiVersion="2019-11-01"letendpointPrefix="access-analyzer"letserviceFullName="Access Analyzer"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[]))])moduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleResourceType=structtypenonrect=|AWS__S3__Bucket|AWS__IAM__Role|AWS__SQS__Queue|AWS__Lambda__Function|AWS__Lambda__LayerVersion|AWS__KMS__Key|AWS__SecretsManager__Secret|AWS__EFS__FileSystem|AWS__EC2__Snapshot|AWS__ECR__Repository|AWS__RDS__DBSnapshot|AWS__RDS__DBClusterSnapshot|AWS__SNS__Topic|AWS__S3Express__DirectoryBucket|AWS__DynamoDB__Table|AWS__DynamoDB__Stream|AWS__IAM__User|Non_static_idofstringletmakei=iletto_string=function|AWS__S3__Bucket->"AWS::S3::Bucket"|AWS__IAM__Role->"AWS::IAM::Role"|AWS__SQS__Queue->"AWS::SQS::Queue"|AWS__Lambda__Function->"AWS::Lambda::Function"|AWS__Lambda__LayerVersion->"AWS::Lambda::LayerVersion"|AWS__KMS__Key->"AWS::KMS::Key"|AWS__SecretsManager__Secret->"AWS::SecretsManager::Secret"|AWS__EFS__FileSystem->"AWS::EFS::FileSystem"|AWS__EC2__Snapshot->"AWS::EC2::Snapshot"|AWS__ECR__Repository->"AWS::ECR::Repository"|AWS__RDS__DBSnapshot->"AWS::RDS::DBSnapshot"|AWS__RDS__DBClusterSnapshot->"AWS::RDS::DBClusterSnapshot"|AWS__SNS__Topic->"AWS::SNS::Topic"|AWS__S3Express__DirectoryBucket->"AWS::S3Express::DirectoryBucket"|AWS__DynamoDB__Table->"AWS::DynamoDB::Table"|AWS__DynamoDB__Stream->"AWS::DynamoDB::Stream"|AWS__IAM__User->"AWS::IAM::User"|Non_static_ids->sletof_string=function|"AWS::S3::Bucket"->AWS__S3__Bucket|"AWS::IAM::Role"->AWS__IAM__Role|"AWS::SQS::Queue"->AWS__SQS__Queue|"AWS::Lambda::Function"->AWS__Lambda__Function|"AWS::Lambda::LayerVersion"->AWS__Lambda__LayerVersion|"AWS::KMS::Key"->AWS__KMS__Key|"AWS::SecretsManager::Secret"->AWS__SecretsManager__Secret|"AWS::EFS::FileSystem"->AWS__EFS__FileSystem|"AWS::EC2::Snapshot"->AWS__EC2__Snapshot|"AWS::ECR::Repository"->AWS__ECR__Repository|"AWS::RDS::DBSnapshot"->AWS__RDS__DBSnapshot|"AWS::RDS::DBClusterSnapshot"->AWS__RDS__DBClusterSnapshot|"AWS::SNS::Topic"->AWS__SNS__Topic|"AWS::S3Express::DirectoryBucket"->AWS__S3Express__DirectoryBucket|"AWS::DynamoDB::Table"->AWS__DynamoDB__Table|"AWS::DynamoDB::Stream"->AWS__DynamoDB__Stream|"AWS::IAM::User"->AWS__IAM__User|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 ResourceType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ResourceType"j)letto_json=simple_to_jsonto_valueendmoduleTagsMap=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_valuevendmoduleKmsConstraintsKey=structtypenonrect=stringletcontext_="KmsConstraintsKey"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:"KmsConstraintsKey"jletto_json=simple_to_jsonto_valueendmoduleKmsConstraintsValue=structtypenonrect=stringletcontext_="KmsConstraintsValue"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:"KmsConstraintsValue"jletto_json=simple_to_jsonto_valueendmoduleVpcId=structtypenonrect=stringletcontext_="VpcId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"vpc-([0-9a-f]){8}(([0-9a-f]){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:"VpcId"jletto_json=simple_to_jsonto_valueendmoduleInteger=structtypenonrect=intletmakei=iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for Integer"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleAccountIdsList=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:"AccountIdsList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResourceArnsList=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:"ResourceArnsList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResourceTypeList=structtypenonrect=ResourceType.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ResourceType.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:ResourceType.of_xml)letof_jsonj=list_of_json~kind:"ResourceTypeList"~of_json:ResourceType.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagsList=structtypenonrect=TagsMap.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagsMap.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:TagsMap.of_xml)letof_jsonj=list_of_json~kind:"TagsList"~of_json:TagsMap.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleKmsConstraintsMap=structtypenonrect=(KmsConstraintsKey.t*KmsConstraintsValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((KmsConstraintsKey.of_stringchopped),(KmsConstraintsValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(KmsConstraintsKey.to_valuex)|>(funx->(KmsConstraintsValue.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:KmsConstraintsKey.of_string~of_json:KmsConstraintsValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleKmsGrantOperation=structtypenonrect=|CreateGrant|Decrypt|DescribeKey|Encrypt|GenerateDataKey|GenerateDataKeyPair|GenerateDataKeyPairWithoutPlaintext|GenerateDataKeyWithoutPlaintext|GetPublicKey|ReEncryptFrom|ReEncryptTo|RetireGrant|Sign|Verify|Non_static_idofstringletmakei=iletto_string=function|CreateGrant->"CreateGrant"|Decrypt->"Decrypt"|DescribeKey->"DescribeKey"|Encrypt->"Encrypt"|GenerateDataKey->"GenerateDataKey"|GenerateDataKeyPair->"GenerateDataKeyPair"|GenerateDataKeyPairWithoutPlaintext->"GenerateDataKeyPairWithoutPlaintext"|GenerateDataKeyWithoutPlaintext->"GenerateDataKeyWithoutPlaintext"|GetPublicKey->"GetPublicKey"|ReEncryptFrom->"ReEncryptFrom"|ReEncryptTo->"ReEncryptTo"|RetireGrant->"RetireGrant"|Sign->"Sign"|Verify->"Verify"|Non_static_ids->sletof_string=function|"CreateGrant"->CreateGrant|"Decrypt"->Decrypt|"DescribeKey"->DescribeKey|"Encrypt"->Encrypt|"GenerateDataKey"->GenerateDataKey|"GenerateDataKeyPair"->GenerateDataKeyPair|"GenerateDataKeyPairWithoutPlaintext"->GenerateDataKeyPairWithoutPlaintext|"GenerateDataKeyWithoutPlaintext"->GenerateDataKeyWithoutPlaintext|"GetPublicKey"->GetPublicKey|"ReEncryptFrom"->ReEncryptFrom|"ReEncryptTo"->ReEncryptTo|"RetireGrant"->RetireGrant|"Sign"->Sign|"Verify"->Verify|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 KmsGrantOperation"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"KmsGrantOperation"j)letto_json=simple_to_jsonto_valueendmoduleRdsDbClusterSnapshotAccountId=structtypenonrect=stringletcontext_="RdsDbClusterSnapshotAccountId"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:"RdsDbClusterSnapshotAccountId"jletto_json=simple_to_jsonto_valueendmoduleRdsDbSnapshotAccountId=structtypenonrect=stringletcontext_="RdsDbSnapshotAccountId"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:"RdsDbSnapshotAccountId"jletto_json=simple_to_jsonto_valueendmoduleInternetConfiguration=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This configuration sets the network origin for the Amazon S3 access point or multi-region access point to Internet."]moduleVpcConfiguration=structtypenonrect={vpcId:VpcId.t[@ocaml.doc"If this field is specified, this access point will only allow connections from the specified VPC ID."]}letcontext_="VpcConfiguration"letmake~vpcId=fun()->{vpcId}letto_valuex=structure_to_value[("vpcId",(Some(VpcId.to_valuex.vpcId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvpcId=VpcId.of_xml(Xml.child_exn~context:context_xml_arg0"vpcId")inmake~vpcId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvpcId=field_map_exnjson__"vpcId"VpcId.of_jsoninmake~vpcId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The proposed virtual private cloud (VPC) configuration for the Amazon S3 access point. VPC configuration does not apply to multi-region access points. For more information, see VpcConfiguration."]moduleBoolean=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_valueendmoduleAclCanonicalId=structtypenonrect=stringletcontext_="AclCanonicalId"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:"AclCanonicalId"jletto_json=simple_to_jsonto_valueendmoduleAclUri=structtypenonrect=stringletcontext_="AclUri"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:"AclUri"jletto_json=simple_to_jsonto_valueendmoduleSubstring=structtypenonrect={start:Integer.toption[@ocaml.doc"The start index of the substring, starting from 0."];length:Integer.toption[@ocaml.doc"The length of the substring."]}letmake?start=fun?length->fun()->{start;length}letto_valuex=structure_to_value[("start",(Option.mapx.start~f:Integer.to_value));("length",(Option.mapx.length~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlength=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"length")inletstart=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"start")inmake?length?start()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlength=field_mapjson__"length"Integer.of_jsoninletstart=field_mapjson__"start"Integer.of_jsoninmake?length?start()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A reference to a substring of a literal string in a JSON document."]moduleInternalAccessAnalysisRuleCriteria=structtypenonrect={accountIds:AccountIdsList.toption[@ocaml.doc"A list of Amazon Web Services account IDs to apply to the internal access analysis rule criteria. Account IDs can only be applied to the analysis rule criteria for organization-level analyzers."];resourceTypes:ResourceTypeList.toption[@ocaml.doc"A list of resource types to apply to the internal access analysis rule criteria. The analyzer will only generate findings for resources of these types. These resource types are currently supported for internal access analyzers: AWS::S3::Bucket AWS::RDS::DBSnapshot AWS::RDS::DBClusterSnapshot AWS::S3Express::DirectoryBucket AWS::DynamoDB::Table AWS::DynamoDB::Stream"];resourceArns:ResourceArnsList.toption[@ocaml.doc"A list of resource ARNs to apply to the internal access analysis rule criteria. The analyzer will only generate findings for resources that match these ARNs."]}letmake?accountIds=fun?resourceTypes->fun?resourceArns->fun()->{accountIds;resourceTypes;resourceArns}letto_valuex=structure_to_value[("accountIds",(Option.mapx.accountIds~f:AccountIdsList.to_value));("resourceTypes",(Option.mapx.resourceTypes~f:ResourceTypeList.to_value));("resourceArns",(Option.mapx.resourceArns~f:ResourceArnsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArns=(Option.map~f:ResourceArnsList.of_xml)(Xml.childxml_arg0"resourceArns")inletresourceTypes=(Option.map~f:ResourceTypeList.of_xml)(Xml.childxml_arg0"resourceTypes")inletaccountIds=(Option.map~f:AccountIdsList.of_xml)(Xml.childxml_arg0"accountIds")inmake?resourceArns?resourceTypes?accountIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArns=field_mapjson__"resourceArns"ResourceArnsList.of_jsoninletresourceTypes=field_mapjson__"resourceTypes"ResourceTypeList.of_jsoninletaccountIds=field_mapjson__"accountIds"AccountIdsList.of_jsoninmake?resourceArns?resourceTypes?accountIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The criteria for an analysis rule for an internal access analyzer."]moduleAnalysisRuleCriteria=structtypenonrect={accountIds:AccountIdsList.toption[@ocaml.doc"A list of Amazon Web Services account IDs to apply to the analysis rule criteria. The accounts cannot include the organization analyzer owner account. Account IDs can only be applied to the analysis rule criteria for organization-level analyzers. The list cannot include more than 2,000 account IDs."];resourceTags:TagsList.toption[@ocaml.doc"An array of key-value pairs to match for your resources. You can use the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. For the tag key, you can specify a value that is 1 to 128 characters in length and cannot be prefixed with aws:. For the tag value, you can specify a value that is 0 to 256 characters in length. If the specified tag value is 0 characters, the rule is applied to all principals with the specified tag key."]}letmake?accountIds=fun?resourceTags->fun()->{accountIds;resourceTags}letto_valuex=structure_to_value[("accountIds",(Option.mapx.accountIds~f:AccountIdsList.to_value));("resourceTags",(Option.mapx.resourceTags~f:TagsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceTags=(Option.map~f:TagsList.of_xml)(Xml.childxml_arg0"resourceTags")inletaccountIds=(Option.map~f:AccountIdsList.of_xml)(Xml.childxml_arg0"accountIds")inmake?resourceTags?accountIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceTags=field_mapjson__"resourceTags"TagsList.of_jsoninletaccountIds=field_mapjson__"accountIds"AccountIdsList.of_jsoninmake?resourceTags?accountIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The criteria for an analysis rule for an analyzer. The criteria determine which entities will generate findings."]moduleGranteePrincipal=structtypenonrect=stringletcontext_="GranteePrincipal"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:"GranteePrincipal"jletto_json=simple_to_jsonto_valueendmoduleIssuingAccount=structtypenonrect=stringletcontext_="IssuingAccount"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:"IssuingAccount"jletto_json=simple_to_jsonto_valueendmoduleKmsGrantConstraints=structtypenonrect={encryptionContextEquals:KmsConstraintsMap.toption[@ocaml.doc"A list of key-value pairs that must match the encryption context in the cryptographic operation request. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint."];encryptionContextSubset:KmsConstraintsMap.toption[@ocaml.doc"A list of key-value pairs that must be included in the encryption context of the cryptographic operation request. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs."]}letmake?encryptionContextEquals=fun?encryptionContextSubset->fun()->{encryptionContextEquals;encryptionContextSubset}letto_valuex=structure_to_value[("encryptionContextEquals",(Option.mapx.encryptionContextEquals~f:KmsConstraintsMap.to_value));("encryptionContextSubset",(Option.mapx.encryptionContextSubset~f:KmsConstraintsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letencryptionContextSubset=(Option.map~f:KmsConstraintsMap.of_xml)(Xml.childxml_arg0"encryptionContextSubset")inletencryptionContextEquals=(Option.map~f:KmsConstraintsMap.of_xml)(Xml.childxml_arg0"encryptionContextEquals")inmake?encryptionContextSubset?encryptionContextEquals()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letencryptionContextSubset=field_mapjson__"encryptionContextSubset"KmsConstraintsMap.of_jsoninletencryptionContextEquals=field_mapjson__"encryptionContextEquals"KmsConstraintsMap.of_jsoninmake?encryptionContextSubset?encryptionContextEquals()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use this structure to propose allowing cryptographic operations in the grant only when the operation request includes the specified encryption context. You can specify only one type of encryption context. An empty map is treated as not specified. For more information, see GrantConstraints."]moduleKmsGrantOperationsList=structtypenonrect=KmsGrantOperation.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:KmsGrantOperation.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:KmsGrantOperation.of_xml)letof_jsonj=list_of_json~kind:"KmsGrantOperationsList"~of_json:KmsGrantOperation.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRetiringPrincipal=structtypenonrect=stringletcontext_="RetiringPrincipal"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:"RetiringPrincipal"jletto_json=simple_to_jsonto_valueendmoduleRdsDbClusterSnapshotAccountIdsList=structtypenonrect=RdsDbClusterSnapshotAccountId.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RdsDbClusterSnapshotAccountId.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:RdsDbClusterSnapshotAccountId.of_xml)letof_jsonj=list_of_json~kind:"RdsDbClusterSnapshotAccountIdsList"~of_json:RdsDbClusterSnapshotAccountId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRdsDbSnapshotAccountIdsList=structtypenonrect=RdsDbSnapshotAccountId.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RdsDbSnapshotAccountId.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:RdsDbSnapshotAccountId.of_xml)letof_jsonj=list_of_json~kind:"RdsDbSnapshotAccountIdsList"~of_json:RdsDbSnapshotAccountId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccessPointPolicy=structtypenonrect=stringletcontext_="AccessPointPolicy"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:"AccessPointPolicy"jletto_json=simple_to_jsonto_valueendmoduleNetworkOriginConfiguration=structtypenonrect={vpcConfiguration:VpcConfiguration.toption;internetConfiguration:InternetConfiguration.toption[@ocaml.doc"The configuration for the Amazon S3 access point or multi-region access point with an Internet origin."]}letmake?vpcConfiguration=fun?internetConfiguration->fun()->{vpcConfiguration;internetConfiguration}letto_valuex=structure_to_value[("vpcConfiguration",(Option.mapx.vpcConfiguration~f:VpcConfiguration.to_value));("internetConfiguration",(Option.mapx.internetConfiguration~f:InternetConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinternetConfiguration=(Option.map~f:InternetConfiguration.of_xml)(Xml.childxml_arg0"internetConfiguration")inletvpcConfiguration=(Option.map~f:VpcConfiguration.of_xml)(Xml.childxml_arg0"vpcConfiguration")inmake?internetConfiguration?vpcConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinternetConfiguration=field_mapjson__"internetConfiguration"InternetConfiguration.of_jsoninletvpcConfiguration=field_mapjson__"vpcConfiguration"VpcConfiguration.of_jsoninmake?internetConfiguration?vpcConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The proposed InternetConfiguration or VpcConfiguration to apply to the Amazon S3 access point. You can make the access point accessible from the internet, or you can specify that all requests made through that access point must originate from a specific virtual private cloud (VPC). You can specify only one type of network configuration. For more information, see Creating access points."]moduleS3PublicAccessBlockConfiguration=structtypenonrect={ignorePublicAcls:Boolean.t[@ocaml.doc"Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket."];restrictPublicBuckets:Boolean.t[@ocaml.doc"Specifies whether Amazon S3 should restrict public bucket policies for this bucket."]}letcontext_="S3PublicAccessBlockConfiguration"letmake~ignorePublicAcls=fun~restrictPublicBuckets->fun()->{ignorePublicAcls;restrictPublicBuckets}letto_valuex=structure_to_value[("ignorePublicAcls",(Some(Boolean.to_valuex.ignorePublicAcls)));("restrictPublicBuckets",(Some(Boolean.to_valuex.restrictPublicBuckets)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrestrictPublicBuckets=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"restrictPublicBuckets")inletignorePublicAcls=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"ignorePublicAcls")inmake~restrictPublicBuckets~ignorePublicAcls()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrestrictPublicBuckets=field_map_exnjson__"restrictPublicBuckets"Boolean.of_jsoninletignorePublicAcls=field_map_exnjson__"ignorePublicAcls"Boolean.of_jsoninmake~restrictPublicBuckets~ignorePublicAcls()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The PublicAccessBlock configuration to apply to this Amazon S3 bucket. If the proposed configuration is for an existing Amazon S3 bucket and the configuration is not specified, the access preview uses the existing setting. If the proposed configuration is for a new bucket and the configuration is not specified, the access preview uses false. If the proposed configuration is for a new access point or multi-region access point and the access point BPA configuration is not specified, the access preview uses true. For more information, see PublicAccessBlockConfiguration."]moduleAclGrantee=structtypenonrect={id:AclCanonicalId.toption[@ocaml.doc"The value specified is the canonical user ID of an Amazon Web Services account."];uri:AclUri.toption[@ocaml.doc"Used for granting permissions to a predefined group."]}letmake?id=fun?uri->fun()->{id;uri}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:AclCanonicalId.to_value));("uri",(Option.mapx.uri~f:AclUri.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leturi=(Option.map~f:AclUri.of_xml)(Xml.childxml_arg0"uri")inletid=(Option.map~f:AclCanonicalId.of_xml)(Xml.childxml_arg0"id")inmake?uri?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leturi=field_mapjson__"uri"AclUri.of_jsoninletid=field_mapjson__"id"AclCanonicalId.of_jsoninmake?uri?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You specify each grantee as a type-value pair using one of these types. You can specify only one type of grantee. For more information, see PutBucketAcl."]moduleAclPermission=structtypenonrect=|READ|WRITE|READ_ACP|WRITE_ACP|FULL_CONTROL|Non_static_idofstringletmakei=iletto_string=function|READ->"READ"|WRITE->"WRITE"|READ_ACP->"READ_ACP"|WRITE_ACP->"WRITE_ACP"|FULL_CONTROL->"FULL_CONTROL"|Non_static_ids->sletof_string=function|"READ"->READ|"WRITE"->WRITE|"READ_ACP"->READ_ACP|"WRITE_ACP"->WRITE_ACP|"FULL_CONTROL"->FULL_CONTROL|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration AclPermission"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AclPermission"j)letto_json=simple_to_jsonto_valueendmodulePathElement=structtypenonrect={index:Integer.toption[@ocaml.doc"Refers to an index in a JSON array."];key:String_.toption[@ocaml.doc"Refers to a key in a JSON object."];substring:Substring.toption[@ocaml.doc"Refers to a substring of a literal string in a JSON object."];value:String_.toption[@ocaml.doc"Refers to the value associated with a given key in a JSON object."]}letmake?index=fun?key->fun?substring->fun?value->fun()->{index;key;substring;value}letto_valuex=structure_to_value[("index",(Option.mapx.index~f:Integer.to_value));("key",(Option.mapx.key~f:String_.to_value));("substring",(Option.mapx.substring~f:Substring.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")inletsubstring=(Option.map~f:Substring.of_xml)(Xml.childxml_arg0"substring")inletkey=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"key")inletindex=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"index")inmake?value?substring?key?index()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"value"String_.of_jsoninletsubstring=field_mapjson__"substring"Substring.of_jsoninletkey=field_mapjson__"key"String_.of_jsoninletindex=field_mapjson__"index"Integer.of_jsoninmake?value?substring?key?index()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A single element in a path through the JSON representation of a policy."]modulePosition=structtypenonrect={line:Integer.toption[@ocaml.doc"The line of the position, starting from 1."];column:Integer.toption[@ocaml.doc"The column of the position, starting from 0."];offset:Integer.toption[@ocaml.doc"The offset within the policy that corresponds to the position, starting from 0."]}letmake?line=fun?column->fun?offset->fun()->{line;column;offset}letto_valuex=structure_to_value[("line",(Option.mapx.line~f:Integer.to_value));("column",(Option.mapx.column~f:Integer.to_value));("offset",(Option.mapx.offset~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoffset=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"offset")inletcolumn=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"column")inletline=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"line")inmake?offset?column?line()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoffset=field_mapjson__"offset"Integer.of_jsoninletcolumn=field_mapjson__"column"Integer.of_jsoninletline=field_mapjson__"line"Integer.of_jsoninmake?offset?column?line()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A position in a policy."]moduleInternalAccessAnalysisRuleCriteriaList=structtypenonrect=InternalAccessAnalysisRuleCriteria.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:InternalAccessAnalysisRuleCriteria.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:InternalAccessAnalysisRuleCriteria.of_xml)letof_jsonj=list_of_json~kind:"InternalAccessAnalysisRuleCriteriaList"~of_json:InternalAccessAnalysisRuleCriteria.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAnalysisRuleCriteriaList=structtypenonrect=AnalysisRuleCriteria.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AnalysisRuleCriteria.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:AnalysisRuleCriteria.of_xml)letof_jsonj=list_of_json~kind:"AnalysisRuleCriteriaList"~of_json:AnalysisRuleCriteria.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCloudTrailArn=structtypenonrect=stringletcontext_="CloudTrailArn"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"arn:[^:]*:cloudtrail:[^:]*:[^:]*:trail/.{1,576}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CloudTrailArn"jletto_json=simple_to_jsonto_valueendmoduleRegionList=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:"RegionList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFindingAggregationAccountDetailsMap=structtypenonrect=(String_.t*Integer.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),(Integer.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(Integer.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:Integer.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFindingSourceDetail=structtypenonrect={accessPointArn:String_.toption[@ocaml.doc"The ARN of the access point that generated the finding. The ARN format depends on whether the ARN represents an access point or a multi-region access point."];accessPointAccount:String_.toption[@ocaml.doc"The account of the cross-account access point that generated the finding."]}letmake?accessPointArn=fun?accessPointAccount->fun()->{accessPointArn;accessPointAccount}letto_valuex=structure_to_value[("accessPointArn",(Option.mapx.accessPointArn~f:String_.to_value));("accessPointAccount",(Option.mapx.accessPointAccount~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccessPointAccount=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"accessPointAccount")inletaccessPointArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"accessPointArn")inmake?accessPointAccount?accessPointArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccessPointAccount=field_mapjson__"accessPointAccount"String_.of_jsoninletaccessPointArn=field_mapjson__"accessPointArn"String_.of_jsoninmake?accessPointAccount?accessPointArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Includes details about how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings."]moduleFindingSourceType=structtypenonrect=|POLICY|BUCKET_ACL|S3_ACCESS_POINT|S3_ACCESS_POINT_ACCOUNT|Non_static_idofstringletmakei=iletto_string=function|POLICY->"POLICY"|BUCKET_ACL->"BUCKET_ACL"|S3_ACCESS_POINT->"S3_ACCESS_POINT"|S3_ACCESS_POINT_ACCOUNT->"S3_ACCESS_POINT_ACCOUNT"|Non_static_ids->sletof_string=function|"POLICY"->POLICY|"BUCKET_ACL"->BUCKET_ACL|"S3_ACCESS_POINT"->S3_ACCESS_POINT|"S3_ACCESS_POINT_ACCOUNT"->S3_ACCESS_POINT_ACCOUNT|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 FindingSourceType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FindingSourceType"j)letto_json=simple_to_jsonto_valueendmoduleTimestamp=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleEbsGroup=structtypenonrect=stringletcontext_="EbsGroup"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:"EbsGroup"jletto_json=simple_to_jsonto_valueendmoduleEbsUserId=structtypenonrect=stringletcontext_="EbsUserId"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:"EbsUserId"jletto_json=simple_to_jsonto_valueendmoduleKmsGrantConfiguration=structtypenonrect={operations:KmsGrantOperationsList.t[@ocaml.doc"A list of operations that the grant permits."];granteePrincipal:GranteePrincipal.t[@ocaml.doc"The principal that is given permission to perform the operations that the grant permits."];retiringPrincipal:RetiringPrincipal.toption[@ocaml.doc"The principal that is given permission to retire the grant by using RetireGrant operation."];constraints:KmsGrantConstraints.toption[@ocaml.doc"Use this structure to propose allowing cryptographic operations in the grant only when the operation request includes the specified encryption context."];issuingAccount:IssuingAccount.t[@ocaml.doc"The Amazon Web Services account under which the grant was issued. The account is used to propose KMS grants issued by accounts other than the owner of the key."]}letcontext_="KmsGrantConfiguration"letmake?retiringPrincipal=fun?constraints->fun~operations->fun~granteePrincipal->fun~issuingAccount->fun()->{retiringPrincipal;constraints;operations;granteePrincipal;issuingAccount}letto_valuex=structure_to_value[("operations",(Some(KmsGrantOperationsList.to_valuex.operations)));("granteePrincipal",(Some(GranteePrincipal.to_valuex.granteePrincipal)));("retiringPrincipal",(Option.mapx.retiringPrincipal~f:RetiringPrincipal.to_value));("constraints",(Option.mapx.constraints~f:KmsGrantConstraints.to_value));("issuingAccount",(Some(IssuingAccount.to_valuex.issuingAccount)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letissuingAccount=IssuingAccount.of_xml(Xml.child_exn~context:context_xml_arg0"issuingAccount")inletconstraints=(Option.map~f:KmsGrantConstraints.of_xml)(Xml.childxml_arg0"constraints")inletretiringPrincipal=(Option.map~f:RetiringPrincipal.of_xml)(Xml.childxml_arg0"retiringPrincipal")inletgranteePrincipal=GranteePrincipal.of_xml(Xml.child_exn~context:context_xml_arg0"granteePrincipal")inletoperations=KmsGrantOperationsList.of_xml(Xml.child_exn~context:context_xml_arg0"operations")inmake~issuingAccount?constraints?retiringPrincipal~granteePrincipal~operations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letissuingAccount=field_map_exnjson__"issuingAccount"IssuingAccount.of_jsoninletconstraints=field_mapjson__"constraints"KmsGrantConstraints.of_jsoninletretiringPrincipal=field_mapjson__"retiringPrincipal"RetiringPrincipal.of_jsoninletgranteePrincipal=field_map_exnjson__"granteePrincipal"GranteePrincipal.of_jsoninletoperations=field_map_exnjson__"operations"KmsGrantOperationsList.of_jsoninmake~issuingAccount?constraints?retiringPrincipal~granteePrincipal~operations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A proposed grant configuration for a KMS key. For more information, see CreateGrant."]moduleKmsKeyPolicy=structtypenonrect=stringletcontext_="KmsKeyPolicy"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:"KmsKeyPolicy"jletto_json=simple_to_jsonto_valueendmodulePolicyName=structtypenonrect=stringletcontext_="PolicyName"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:"PolicyName"jletto_json=simple_to_jsonto_valueendmoduleRdsDbClusterSnapshotAttributeName=structtypenonrect=stringletcontext_="RdsDbClusterSnapshotAttributeName"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:"RdsDbClusterSnapshotAttributeName"jletto_json=simple_to_jsonto_valueendmoduleRdsDbClusterSnapshotAttributeValue=structtypenonrect={accountIds:RdsDbClusterSnapshotAccountIdsList.toption[@ocaml.doc"The Amazon Web Services account IDs that have access to the manual Amazon RDS DB cluster snapshot. If the value all is specified, then the Amazon RDS DB cluster snapshot is public and can be copied or restored by all Amazon Web Services accounts. If the configuration is for an existing Amazon RDS DB cluster snapshot and you do not specify the accountIds in RdsDbClusterSnapshotAttributeValue, then the access preview uses the existing shared accountIds for the snapshot. If the access preview is for a new resource and you do not specify the specify the accountIds in RdsDbClusterSnapshotAttributeValue, then the access preview considers the snapshot without any attributes. To propose deletion of existing shared accountIds, you can specify an empty list for accountIds in the RdsDbClusterSnapshotAttributeValue."]}letmake?accountIds=fun()->{accountIds}letto_valuex=structure_to_value[("accountIds",(Option.mapx.accountIds~f:RdsDbClusterSnapshotAccountIdsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountIds=(Option.map~f:RdsDbClusterSnapshotAccountIdsList.of_xml)(Xml.childxml_arg0"accountIds")inmake?accountIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountIds=field_mapjson__"accountIds"RdsDbClusterSnapshotAccountIdsList.of_jsoninmake?accountIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The values for a manual Amazon RDS DB cluster snapshot attribute."]moduleRdsDbSnapshotAttributeName=structtypenonrect=stringletcontext_="RdsDbSnapshotAttributeName"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:"RdsDbSnapshotAttributeName"jletto_json=simple_to_jsonto_valueendmoduleRdsDbSnapshotAttributeValue=structtypenonrect={accountIds:RdsDbSnapshotAccountIdsList.toption[@ocaml.doc"The Amazon Web Services account IDs that have access to the manual Amazon RDS DB snapshot. If the value all is specified, then the Amazon RDS DB snapshot is public and can be copied or restored by all Amazon Web Services accounts. If the configuration is for an existing Amazon RDS DB snapshot and you do not specify the accountIds in RdsDbSnapshotAttributeValue, then the access preview uses the existing shared accountIds for the snapshot. If the access preview is for a new resource and you do not specify the specify the accountIds in RdsDbSnapshotAttributeValue, then the access preview considers the snapshot without any attributes. To propose deletion of an existing shared accountIds, you can specify an empty list for accountIds in the RdsDbSnapshotAttributeValue."]}letmake?accountIds=fun()->{accountIds}letto_valuex=structure_to_value[("accountIds",(Option.mapx.accountIds~f:RdsDbSnapshotAccountIdsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountIds=(Option.map~f:RdsDbSnapshotAccountIdsList.of_xml)(Xml.childxml_arg0"accountIds")inmake?accountIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountIds=field_mapjson__"accountIds"RdsDbSnapshotAccountIdsList.of_jsoninmake?accountIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The name and values of a manual Amazon RDS DB snapshot attribute. Manual DB snapshot attributes are used to authorize other Amazon Web Services accounts to restore a manual DB snapshot."]moduleAccessPointArn=structtypenonrect=stringletcontext_="AccessPointArn"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"arn:[^:]*:s3:[^:]*:[^:]*:accesspoint/.*");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AccessPointArn"jletto_json=simple_to_jsonto_valueendmoduleS3AccessPointConfiguration=structtypenonrect={accessPointPolicy:AccessPointPolicy.toption[@ocaml.doc"The access point or multi-region access point policy."];publicAccessBlock:S3PublicAccessBlockConfiguration.toption[@ocaml.doc"The proposed S3PublicAccessBlock configuration to apply to this Amazon S3 access point or multi-region access point."];networkOrigin:NetworkOriginConfiguration.toption[@ocaml.doc"The proposed Internet and VpcConfiguration to apply to this Amazon S3 access point. VpcConfiguration does not apply to multi-region access points. If the access preview is for a new resource and neither is specified, the access preview uses Internet for the network origin. If the access preview is for an existing resource and neither is specified, the access preview uses the existing network origin."]}letmake?accessPointPolicy=fun?publicAccessBlock->fun?networkOrigin->fun()->{accessPointPolicy;publicAccessBlock;networkOrigin}letto_valuex=structure_to_value[("accessPointPolicy",(Option.mapx.accessPointPolicy~f:AccessPointPolicy.to_value));("publicAccessBlock",(Option.mapx.publicAccessBlock~f:S3PublicAccessBlockConfiguration.to_value));("networkOrigin",(Option.mapx.networkOrigin~f:NetworkOriginConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnetworkOrigin=(Option.map~f:NetworkOriginConfiguration.of_xml)(Xml.childxml_arg0"networkOrigin")inletpublicAccessBlock=(Option.map~f:S3PublicAccessBlockConfiguration.of_xml)(Xml.childxml_arg0"publicAccessBlock")inletaccessPointPolicy=(Option.map~f:AccessPointPolicy.of_xml)(Xml.childxml_arg0"accessPointPolicy")inmake?networkOrigin?publicAccessBlock?accessPointPolicy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnetworkOrigin=field_mapjson__"networkOrigin"NetworkOriginConfiguration.of_jsoninletpublicAccessBlock=field_mapjson__"publicAccessBlock"S3PublicAccessBlockConfiguration.of_jsoninletaccessPointPolicy=field_mapjson__"accessPointPolicy"AccessPointPolicy.of_jsoninmake?networkOrigin?publicAccessBlock?accessPointPolicy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The configuration for an Amazon S3 access point or multi-region access point for the bucket. You can propose up to 10 access points or multi-region access points per bucket. If the proposed Amazon S3 access point configuration is for an existing bucket, the access preview uses the proposed access point configuration in place of the existing access points. To propose an access point without a policy, you can provide an empty string as the access point policy. For more information, see Creating access points. For more information about access point policy limits, see Access points restrictions and limitations."]moduleS3BucketAclGrantConfiguration=structtypenonrect={permission:AclPermission.t[@ocaml.doc"The permissions being granted."];grantee:AclGrantee.t[@ocaml.doc"The grantee to whom you\226\128\153re assigning access rights."]}letcontext_="S3BucketAclGrantConfiguration"letmake~permission=fun~grantee->fun()->{permission;grantee}letto_valuex=structure_to_value[("permission",(Some(AclPermission.to_valuex.permission)));("grantee",(Some(AclGrantee.to_valuex.grantee)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgrantee=AclGrantee.of_xml(Xml.child_exn~context:context_xml_arg0"grantee")inletpermission=AclPermission.of_xml(Xml.child_exn~context:context_xml_arg0"permission")inmake~grantee~permission()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgrantee=field_map_exnjson__"grantee"AclGrantee.of_jsoninletpermission=field_map_exnjson__"permission"AclPermission.of_jsoninmake~grantee~permission()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A proposed access control list grant configuration for an Amazon S3 bucket. For more information, see How to Specify an ACL."]moduleS3ExpressDirectoryAccessPointArn=structtypenonrect=stringletcontext_="S3ExpressDirectoryAccessPointArn"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"arn:[^:]*:s3express:[^:]*:[^:]*:accesspoint/.*");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"S3ExpressDirectoryAccessPointArn"jletto_json=simple_to_jsonto_valueendmoduleS3ExpressDirectoryAccessPointConfiguration=structtypenonrect={accessPointPolicy:AccessPointPolicy.toption[@ocaml.doc"The proposed access point policy for an Amazon S3 directory bucket access point."];networkOrigin:NetworkOriginConfiguration.toption}letmake?accessPointPolicy=fun?networkOrigin->fun()->{accessPointPolicy;networkOrigin}letto_valuex=structure_to_value[("accessPointPolicy",(Option.mapx.accessPointPolicy~f:AccessPointPolicy.to_value));("networkOrigin",(Option.mapx.networkOrigin~f:NetworkOriginConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnetworkOrigin=(Option.map~f:NetworkOriginConfiguration.of_xml)(Xml.childxml_arg0"networkOrigin")inletaccessPointPolicy=(Option.map~f:AccessPointPolicy.of_xml)(Xml.childxml_arg0"accessPointPolicy")inmake?networkOrigin?accessPointPolicy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnetworkOrigin=field_mapjson__"networkOrigin"NetworkOriginConfiguration.of_jsoninletaccessPointPolicy=field_mapjson__"accessPointPolicy"AccessPointPolicy.of_jsoninmake?networkOrigin?accessPointPolicy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Proposed configuration for an access point attached to an Amazon S3 directory bucket. You can propose up to 10 access points per bucket. If the proposed access point configuration is for an existing Amazon S3 directory bucket, the access preview uses the proposed access point configuration in place of the existing access points. To propose an access point without a policy, you can provide an empty string as the access point policy. For more information about access points for Amazon S3 directory buckets, see Managing access to directory buckets with access points in the Amazon Simple Storage Service User Guide."]modulePathElementList=structtypenonrect=PathElement.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PathElement.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:PathElement.of_xml)letof_jsonj=list_of_json~kind:"PathElementList"~of_json:PathElement.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSpan=structtypenonrect={start:Position.toption[@ocaml.doc"The start position of the span (inclusive)."];end_:Position.toption[@ocaml.doc"The end position of the span (exclusive)."]}letmake?start=fun?end_->fun()->{start;end_}letto_valuex=structure_to_value[("start",(Option.mapx.start~f:Position.to_value));("end",(Option.mapx.end_~f:Position.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letend_=(Option.map~f:Position.of_xml)(Xml.childxml_arg0"end")inletstart=(Option.map~f:Position.of_xml)(Xml.childxml_arg0"start")inmake?end_?start()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letend_=field_mapjson__"end"Position.of_jsoninletstart=field_mapjson__"start"Position.of_jsoninmake?end_?start()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A span in a policy. The span consists of a start position (inclusive) and end position (exclusive)."]moduleValueList=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:"ValueList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInternalAccessAnalysisRule=structtypenonrect={inclusions:InternalAccessAnalysisRuleCriteriaList.toption[@ocaml.doc"A list of rules for the internal access analyzer containing criteria to include in analysis. Only resources that meet the rule criteria will generate findings."]}letmake?inclusions=fun()->{inclusions}letto_valuex=structure_to_value[("inclusions",(Option.mapx.inclusions~f:InternalAccessAnalysisRuleCriteriaList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinclusions=(Option.map~f:InternalAccessAnalysisRuleCriteriaList.of_xml)(Xml.childxml_arg0"inclusions")inmake?inclusions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinclusions=field_mapjson__"inclusions"InternalAccessAnalysisRuleCriteriaList.of_jsoninmake?inclusions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about analysis rules for the internal access analyzer. Analysis rules determine which entities will generate findings based on the criteria you define when you create the rule."]moduleAnalysisRule=structtypenonrect={exclusions:AnalysisRuleCriteriaList.toption[@ocaml.doc"A list of rules for the analyzer containing criteria to exclude from analysis. Entities that meet the rule criteria will not generate findings."]}letmake?exclusions=fun()->{exclusions}letto_valuex=structure_to_value[("exclusions",(Option.mapx.exclusions~f:AnalysisRuleCriteriaList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexclusions=(Option.map~f:AnalysisRuleCriteriaList.of_xml)(Xml.childxml_arg0"exclusions")inmake?exclusions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexclusions=field_mapjson__"exclusions"AnalysisRuleCriteriaList.of_jsoninmake?exclusions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about analysis rules for the analyzer. Analysis rules determine which entities will generate findings based on the criteria you define when you create the rule."]moduleTrailProperties=structtypenonrect={cloudTrailArn:CloudTrailArn.toption[@ocaml.doc"Specifies the ARN of the trail. The format of a trail ARN is arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail."];regions:RegionList.toption[@ocaml.doc"A list of regions to get CloudTrail data from and analyze to generate a policy."];allRegions:Boolean.toption[@ocaml.doc"Possible values are true or false. If set to true, IAM Access Analyzer retrieves CloudTrail data from all regions to analyze and generate a policy."]}letmake?cloudTrailArn=fun?regions->fun?allRegions->fun()->{cloudTrailArn;regions;allRegions}letto_valuex=structure_to_value[("cloudTrailArn",(Option.mapx.cloudTrailArn~f:CloudTrailArn.to_value));("regions",(Option.mapx.regions~f:RegionList.to_value));("allRegions",(Option.mapx.allRegions~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letallRegions=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"allRegions")inletregions=(Option.map~f:RegionList.of_xml)(Xml.childxml_arg0"regions")inletcloudTrailArn=(Option.map~f:CloudTrailArn.of_xml)(Xml.childxml_arg0"cloudTrailArn")inmake?allRegions?regions?cloudTrailArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letallRegions=field_mapjson__"allRegions"Boolean.of_jsoninletregions=field_mapjson__"regions"RegionList.of_jsoninletcloudTrailArn=field_mapjson__"cloudTrailArn"CloudTrailArn.of_jsoninmake?allRegions?regions?cloudTrailArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about the CloudTrail trail being analyzed to generate a policy."]moduleResourceTypeDetails=structtypenonrect={totalActivePublic:Integer.toption[@ocaml.doc"The total number of active public findings for the resource type."];totalActiveCrossAccount:Integer.toption[@ocaml.doc"The total number of active cross-account findings for the resource type."];totalActiveErrors:Integer.toption[@ocaml.doc"The total number of active errors for the resource type."]}letmake?totalActivePublic=fun?totalActiveCrossAccount->fun?totalActiveErrors->fun()->{totalActivePublic;totalActiveCrossAccount;totalActiveErrors}letto_valuex=structure_to_value[("totalActivePublic",(Option.mapx.totalActivePublic~f:Integer.to_value));("totalActiveCrossAccount",(Option.mapx.totalActiveCrossAccount~f:Integer.to_value));("totalActiveErrors",(Option.mapx.totalActiveErrors~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettotalActiveErrors=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"totalActiveErrors")inlettotalActiveCrossAccount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"totalActiveCrossAccount")inlettotalActivePublic=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"totalActivePublic")inmake?totalActiveErrors?totalActiveCrossAccount?totalActivePublic()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettotalActiveErrors=field_mapjson__"totalActiveErrors"Integer.of_jsoninlettotalActiveCrossAccount=field_mapjson__"totalActiveCrossAccount"Integer.of_jsoninlettotalActivePublic=field_mapjson__"totalActivePublic"Integer.of_jsoninmake?totalActiveErrors?totalActiveCrossAccount?totalActivePublic()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about the total number of active cross-account and public findings for a resource type of an external access analyzer."]moduleInternalAccessResourceTypeDetails=structtypenonrect={totalActiveFindings:Integer.toption[@ocaml.doc"The total number of active findings for the resource type in the internal access analyzer."];totalResolvedFindings:Integer.toption[@ocaml.doc"The total number of resolved findings for the resource type in the internal access analyzer."];totalArchivedFindings:Integer.toption[@ocaml.doc"The total number of archived findings for the resource type in the internal access analyzer."]}letmake?totalActiveFindings=fun?totalResolvedFindings->fun?totalArchivedFindings->fun()->{totalActiveFindings;totalResolvedFindings;totalArchivedFindings}letto_valuex=structure_to_value[("totalActiveFindings",(Option.mapx.totalActiveFindings~f:Integer.to_value));("totalResolvedFindings",(Option.mapx.totalResolvedFindings~f:Integer.to_value));("totalArchivedFindings",(Option.mapx.totalArchivedFindings~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettotalArchivedFindings=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"totalArchivedFindings")inlettotalResolvedFindings=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"totalResolvedFindings")inlettotalActiveFindings=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"totalActiveFindings")inmake?totalArchivedFindings?totalResolvedFindings?totalActiveFindings()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettotalArchivedFindings=field_mapjson__"totalArchivedFindings"Integer.of_jsoninlettotalResolvedFindings=field_mapjson__"totalResolvedFindings"Integer.of_jsoninlettotalActiveFindings=field_mapjson__"totalActiveFindings"Integer.of_jsoninmake?totalArchivedFindings?totalResolvedFindings?totalActiveFindings()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about the total number of active, archived, and resolved findings for a resource type of an internal access analyzer."]moduleFindingAggregationAccountDetails=structtypenonrect={account:String_.toption[@ocaml.doc"The ID of the Amazon Web Services account for which unused access finding details are provided."];numberOfActiveFindings:Integer.toption[@ocaml.doc"The number of active unused access findings for the specified Amazon Web Services account."];details:FindingAggregationAccountDetailsMap.toption[@ocaml.doc"Provides the number of active findings for each type of unused access for the specified Amazon Web Services account."]}letmake?account=fun?numberOfActiveFindings->fun?details->fun()->{account;numberOfActiveFindings;details}letto_valuex=structure_to_value[("account",(Option.mapx.account~f:String_.to_value));("numberOfActiveFindings",(Option.mapx.numberOfActiveFindings~f:Integer.to_value));("details",(Option.mapx.details~f:FindingAggregationAccountDetailsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdetails=(Option.map~f:FindingAggregationAccountDetailsMap.of_xml)(Xml.childxml_arg0"details")inletnumberOfActiveFindings=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"numberOfActiveFindings")inletaccount=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"account")inmake?details?numberOfActiveFindings?account()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdetails=field_mapjson__"details"FindingAggregationAccountDetailsMap.of_jsoninletnumberOfActiveFindings=field_mapjson__"numberOfActiveFindings"Integer.of_jsoninletaccount=field_mapjson__"account"String_.of_jsoninmake?details?numberOfActiveFindings?account()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about the findings for an Amazon Web Services account in an organization unused access analyzer."]moduleUnusedAccessTypeStatistics=structtypenonrect={unusedAccessType:String_.toption[@ocaml.doc"The type of unused access."];total:Integer.toption[@ocaml.doc"The total number of findings for the specified unused access type."]}letmake?unusedAccessType=fun?total->fun()->{unusedAccessType;total}letto_valuex=structure_to_value[("unusedAccessType",(Option.mapx.unusedAccessType~f:String_.to_value));("total",(Option.mapx.total~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettotal=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"total")inletunusedAccessType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"unusedAccessType")inmake?total?unusedAccessType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettotal=field_mapjson__"total"Integer.of_jsoninletunusedAccessType=field_mapjson__"unusedAccessType"String_.of_jsoninmake?total?unusedAccessType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about the total number of findings for a type of unused access."]moduleFindingSource=structtypenonrect={type_:FindingSourceType.toption[@ocaml.doc"Indicates the type of access that generated the finding."];detail:FindingSourceDetail.toption[@ocaml.doc"Includes details about how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings."]}letmake?type_=fun?detail->fun()->{type_;detail}letto_valuex=structure_to_value[("type",(Option.mapx.type_~f:FindingSourceType.to_value));("detail",(Option.mapx.detail~f:FindingSourceDetail.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdetail=(Option.map~f:FindingSourceDetail.of_xml)(Xml.childxml_arg0"detail")inlettype_=(Option.map~f:FindingSourceType.of_xml)(Xml.childxml_arg0"type")inmake?detail?type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdetail=field_mapjson__"detail"FindingSourceDetail.of_jsoninlettype_=field_mapjson__"type"FindingSourceType.of_jsoninmake?detail?type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The source of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings."]moduleUnusedAction=structtypenonrect={action:String_.toption[@ocaml.doc"The action for which the unused access finding was generated."];lastAccessed:Timestamp.toption[@ocaml.doc"The time at which the action was last accessed."]}letmake?action=fun?lastAccessed->fun()->{action;lastAccessed}letto_valuex=structure_to_value[("action",(Option.mapx.action~f:String_.to_value));("lastAccessed",(Option.mapx.lastAccessed~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastAccessed=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"lastAccessed")inletaction=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"action")inmake?lastAccessed?action()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastAccessed=field_mapjson__"lastAccessed"Timestamp.of_jsoninletaction=field_mapjson__"action"String_.of_jsoninmake?lastAccessed?action()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about an unused access finding for an action. IAM Access Analyzer charges for unused access analysis based on the number of IAM roles and users analyzed per month. For more details on pricing, see IAM Access Analyzer pricing."]moduleDynamodbStreamPolicy=structtypenonrect=stringletcontext_="DynamodbStreamPolicy"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:"DynamodbStreamPolicy"jletto_json=simple_to_jsonto_valueendmoduleDynamodbTablePolicy=structtypenonrect=stringletcontext_="DynamodbTablePolicy"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:"DynamodbTablePolicy"jletto_json=simple_to_jsonto_valueendmoduleEbsGroupList=structtypenonrect=EbsGroup.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EbsGroup.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:EbsGroup.of_xml)letof_jsonj=list_of_json~kind:"EbsGroupList"~of_json:EbsGroup.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEbsSnapshotDataEncryptionKeyId=structtypenonrect=stringletcontext_="EbsSnapshotDataEncryptionKeyId"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:"EbsSnapshotDataEncryptionKeyId"jletto_json=simple_to_jsonto_valueendmoduleEbsUserIdList=structtypenonrect=EbsUserId.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EbsUserId.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:EbsUserId.of_xml)letof_jsonj=list_of_json~kind:"EbsUserIdList"~of_json:EbsUserId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEcrRepositoryPolicy=structtypenonrect=stringletcontext_="EcrRepositoryPolicy"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:"EcrRepositoryPolicy"jletto_json=simple_to_jsonto_valueendmoduleEfsFileSystemPolicy=structtypenonrect=stringletcontext_="EfsFileSystemPolicy"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:"EfsFileSystemPolicy"jletto_json=simple_to_jsonto_valueendmoduleIamTrustPolicy=structtypenonrect=stringletcontext_="IamTrustPolicy"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:"IamTrustPolicy"jletto_json=simple_to_jsonto_valueendmoduleKmsGrantConfigurationsList=structtypenonrect=KmsGrantConfiguration.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:KmsGrantConfiguration.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:KmsGrantConfiguration.of_xml)letof_jsonj=list_of_json~kind:"KmsGrantConfigurationsList"~of_json:KmsGrantConfiguration.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleKmsKeyPoliciesMap=structtypenonrect=(PolicyName.t*KmsKeyPolicy.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((PolicyName.of_stringchopped),(KmsKeyPolicy.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(PolicyName.to_valuex)|>(funx->(KmsKeyPolicy.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:PolicyName.of_string~of_json:KmsKeyPolicy.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRdsDbClusterSnapshotAttributesMap=structtypenonrect=(RdsDbClusterSnapshotAttributeName.t*RdsDbClusterSnapshotAttributeValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types RdsDbClusterSnapshotAttributeName RdsDbClusterSnapshotAttributeValue"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(RdsDbClusterSnapshotAttributeName.to_valuex)|>(funx->(RdsDbClusterSnapshotAttributeValue.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:RdsDbClusterSnapshotAttributeName.of_string~of_json:RdsDbClusterSnapshotAttributeValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRdsDbClusterSnapshotKmsKeyId=structtypenonrect=stringletcontext_="RdsDbClusterSnapshotKmsKeyId"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:"RdsDbClusterSnapshotKmsKeyId"jletto_json=simple_to_jsonto_valueendmoduleRdsDbSnapshotAttributesMap=structtypenonrect=(RdsDbSnapshotAttributeName.t*RdsDbSnapshotAttributeValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types RdsDbSnapshotAttributeName RdsDbSnapshotAttributeValue"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(RdsDbSnapshotAttributeName.to_valuex)|>(funx->(RdsDbSnapshotAttributeValue.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:RdsDbSnapshotAttributeName.of_string~of_json:RdsDbSnapshotAttributeValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRdsDbSnapshotKmsKeyId=structtypenonrect=stringletcontext_="RdsDbSnapshotKmsKeyId"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:"RdsDbSnapshotKmsKeyId"jletto_json=simple_to_jsonto_valueendmoduleS3AccessPointConfigurationsMap=structtypenonrect=(AccessPointArn.t*S3AccessPointConfiguration.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types AccessPointArn S3AccessPointConfiguration"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(AccessPointArn.to_valuex)|>(funx->(S3AccessPointConfiguration.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:AccessPointArn.of_string~of_json:S3AccessPointConfiguration.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleS3BucketAclGrantConfigurationsList=structtypenonrect=S3BucketAclGrantConfiguration.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:S3BucketAclGrantConfiguration.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:S3BucketAclGrantConfiguration.of_xml)letof_jsonj=list_of_json~kind:"S3BucketAclGrantConfigurationsList"~of_json:S3BucketAclGrantConfiguration.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleS3BucketPolicy=structtypenonrect=stringletcontext_="S3BucketPolicy"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:"S3BucketPolicy"jletto_json=simple_to_jsonto_valueendmoduleS3ExpressDirectoryAccessPointConfigurationsMap=structtypenonrect=(S3ExpressDirectoryAccessPointArn.t*S3ExpressDirectoryAccessPointConfiguration.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types S3ExpressDirectoryAccessPointArn S3ExpressDirectoryAccessPointConfiguration"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(S3ExpressDirectoryAccessPointArn.to_valuex)|>(funx->(S3ExpressDirectoryAccessPointConfiguration.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:S3ExpressDirectoryAccessPointArn.of_string~of_json:S3ExpressDirectoryAccessPointConfiguration.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleS3ExpressDirectoryBucketPolicy=structtypenonrect=stringletcontext_="S3ExpressDirectoryBucketPolicy"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:"S3ExpressDirectoryBucketPolicy"jletto_json=simple_to_jsonto_valueendmoduleSecretsManagerSecretKmsId=structtypenonrect=stringletcontext_="SecretsManagerSecretKmsId"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:"SecretsManagerSecretKmsId"jletto_json=simple_to_jsonto_valueendmoduleSecretsManagerSecretPolicy=structtypenonrect=stringletcontext_="SecretsManagerSecretPolicy"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:"SecretsManagerSecretPolicy"jletto_json=simple_to_jsonto_valueendmoduleSnsTopicPolicy=structtypenonrect=stringletcontext_="SnsTopicPolicy"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:30720)>>=(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:"SnsTopicPolicy"jletto_json=simple_to_jsonto_valueendmoduleSqsQueuePolicy=structtypenonrect=stringletcontext_="SqsQueuePolicy"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:"SqsQueuePolicy"jletto_json=simple_to_jsonto_valueendmoduleLocation=structtypenonrect={path:PathElementList.toption[@ocaml.doc"A path in a policy, represented as a sequence of path elements."];span:Span.toption[@ocaml.doc"A span in a policy."]}letmake?path=fun?span->fun()->{path;span}letto_valuex=structure_to_value[("path",(Option.mapx.path~f:PathElementList.to_value));("span",(Option.mapx.span~f:Span.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letspan=(Option.map~f:Span.of_xml)(Xml.childxml_arg0"span")inletpath=(Option.map~f:PathElementList.of_xml)(Xml.childxml_arg0"path")inmake?span?path()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letspan=field_mapjson__"span"Span.of_jsoninletpath=field_mapjson__"path"PathElementList.of_jsoninmake?span?path()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A location in a policy that is represented as a path through the JSON representation and a corresponding span."]moduleCriterion=structtypenonrect={eq:ValueList.toption[@ocaml.doc"An \"equals\" operator to match for the filter used to create the rule."];neq:ValueList.toption[@ocaml.doc"A \"not equals\" operator to match for the filter used to create the rule."];contains:ValueList.toption[@ocaml.doc"A \"contains\" operator to match for the filter used to create the rule."];exists:Boolean.toption[@ocaml.doc"An \"exists\" operator to match for the filter used to create the rule."]}letmake?eq=fun?neq->fun?contains->fun?exists->fun()->{eq;neq;contains;exists}letto_valuex=structure_to_value[("eq",(Option.mapx.eq~f:ValueList.to_value));("neq",(Option.mapx.neq~f:ValueList.to_value));("contains",(Option.mapx.contains~f:ValueList.to_value));("exists",(Option.mapx.exists~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexists=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"exists")inletcontains=(Option.map~f:ValueList.of_xml)(Xml.childxml_arg0"contains")inletneq=(Option.map~f:ValueList.of_xml)(Xml.childxml_arg0"neq")inleteq=(Option.map~f:ValueList.of_xml)(Xml.childxml_arg0"eq")inmake?exists?contains?neq?eq()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexists=field_mapjson__"exists"Boolean.of_jsoninletcontains=field_mapjson__"contains"ValueList.of_jsoninletneq=field_mapjson__"neq"ValueList.of_jsoninleteq=field_mapjson__"eq"ValueList.of_jsoninmake?exists?contains?neq?eq()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The criteria to use in the filter that defines the archive rule. For more information on available filter keys, see IAM Access Analyzer filter keys."]moduleInternalAccessConfiguration=structtypenonrect={analysisRule:InternalAccessAnalysisRule.toption[@ocaml.doc"Contains information about analysis rules for the internal access analyzer. These rules determine which resources and access patterns will be analyzed."]}letmake?analysisRule=fun()->{analysisRule}letto_valuex=structure_to_value[("analysisRule",(Option.mapx.analysisRule~f:InternalAccessAnalysisRule.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letanalysisRule=(Option.map~f:InternalAccessAnalysisRule.of_xml)(Xml.childxml_arg0"analysisRule")inmake?analysisRule()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letanalysisRule=field_mapjson__"analysisRule"InternalAccessAnalysisRule.of_jsoninmake?analysisRule()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the configuration of an internal access analyzer for an Amazon Web Services organization or account. This configuration determines how the analyzer evaluates internal access within your Amazon Web Services environment."]moduleUnusedAccessConfiguration=structtypenonrect={unusedAccessAge:Integer.toption[@ocaml.doc"The specified access age in days for which to generate findings for unused access. For example, if you specify 90 days, the analyzer will generate findings for IAM entities within the accounts of the selected organization for any access that hasn't been used in 90 or more days since the analyzer's last scan. You can choose a value between 1 and 365 days."];analysisRule:AnalysisRule.toption}letmake?unusedAccessAge=fun?analysisRule->fun()->{unusedAccessAge;analysisRule}letto_valuex=structure_to_value[("unusedAccessAge",(Option.mapx.unusedAccessAge~f:Integer.to_value));("analysisRule",(Option.mapx.analysisRule~f:AnalysisRule.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letanalysisRule=(Option.map~f:AnalysisRule.of_xml)(Xml.childxml_arg0"analysisRule")inletunusedAccessAge=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"unusedAccessAge")inmake?analysisRule?unusedAccessAge()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letanalysisRule=field_mapjson__"analysisRule"AnalysisRule.of_jsoninletunusedAccessAge=field_mapjson__"unusedAccessAge"Integer.of_jsoninmake?analysisRule?unusedAccessAge()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about an unused access analyzer."]moduleReasonCode=structtypenonrect=|AWS_SERVICE_ACCESS_DISABLED|DELEGATED_ADMINISTRATOR_DEREGISTERED|ORGANIZATION_DELETED|SERVICE_LINKED_ROLE_CREATION_FAILED|Non_static_idofstringletmakei=iletto_string=function|AWS_SERVICE_ACCESS_DISABLED->"AWS_SERVICE_ACCESS_DISABLED"|DELEGATED_ADMINISTRATOR_DEREGISTERED->"DELEGATED_ADMINISTRATOR_DEREGISTERED"|ORGANIZATION_DELETED->"ORGANIZATION_DELETED"|SERVICE_LINKED_ROLE_CREATION_FAILED->"SERVICE_LINKED_ROLE_CREATION_FAILED"|Non_static_ids->sletof_string=function|"AWS_SERVICE_ACCESS_DISABLED"->AWS_SERVICE_ACCESS_DISABLED|"DELEGATED_ADMINISTRATOR_DEREGISTERED"->DELEGATED_ADMINISTRATOR_DEREGISTERED|"ORGANIZATION_DELETED"->ORGANIZATION_DELETED|"SERVICE_LINKED_ROLE_CREATION_FAILED"->SERVICE_LINKED_ROLE_CREATION_FAILED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ReasonCode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ReasonCode"j)letto_json=simple_to_jsonto_valueendmoduleAccessPreviewStatusReasonCode=structtypenonrect=|INTERNAL_ERROR|INVALID_CONFIGURATION|Non_static_idofstringletmakei=iletto_string=function|INTERNAL_ERROR->"INTERNAL_ERROR"|INVALID_CONFIGURATION->"INVALID_CONFIGURATION"|Non_static_ids->sletof_string=function|"INTERNAL_ERROR"->INTERNAL_ERROR|"INVALID_CONFIGURATION"->INVALID_CONFIGURATION|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 AccessPreviewStatusReasonCode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AccessPreviewStatusReasonCode"j)letto_json=simple_to_jsonto_valueendmoduleTrailPropertiesList=structtypenonrect=TrailProperties.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TrailProperties.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:TrailProperties.of_xml)letof_jsonj=list_of_json~kind:"TrailPropertiesList"~of_json:TrailProperties.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResourceTypeStatisticsMap=structtypenonrect=(ResourceType.t*ResourceTypeDetails.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types ResourceType ResourceTypeDetails"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(ResourceType.to_valuex)|>(funx->(ResourceTypeDetails.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:ResourceType.of_string~of_json:ResourceTypeDetails.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInternalAccessResourceTypeStatisticsMap=structtypenonrect=(ResourceType.t*InternalAccessResourceTypeDetails.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types ResourceType InternalAccessResourceTypeDetails"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(ResourceType.to_valuex)|>(funx->(InternalAccessResourceTypeDetails.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:ResourceType.of_string~of_json:InternalAccessResourceTypeDetails.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccountAggregations=structtypenonrect=FindingAggregationAccountDetails.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:FindingAggregationAccountDetails.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:FindingAggregationAccountDetails.of_xml)letof_jsonj=list_of_json~kind:"AccountAggregations"~of_json:FindingAggregationAccountDetails.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUnusedAccessTypeStatisticsList=structtypenonrect=UnusedAccessTypeStatistics.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:UnusedAccessTypeStatistics.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:UnusedAccessTypeStatistics.of_xml)letof_jsonj=list_of_json~kind:"UnusedAccessTypeStatisticsList"~of_json:UnusedAccessTypeStatistics.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleActionList=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:"ActionList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleConditionKeyMap=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_valuevendmoduleFindingSourceList=structtypenonrect=FindingSource.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FindingSource.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:FindingSource.of_xml)letof_jsonj=list_of_json~kind:"FindingSourceList"~of_json:FindingSource.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePrincipalMap=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_valuevendmoduleResourceControlPolicyRestriction=structtypenonrect=|APPLICABLE|FAILED_TO_EVALUATE_RCP|NOT_APPLICABLE|APPLIED|Non_static_idofstringletmakei=iletto_string=function|APPLICABLE->"APPLICABLE"|FAILED_TO_EVALUATE_RCP->"FAILED_TO_EVALUATE_RCP"|NOT_APPLICABLE->"NOT_APPLICABLE"|APPLIED->"APPLIED"|Non_static_ids->sletof_string=function|"APPLICABLE"->APPLICABLE|"FAILED_TO_EVALUATE_RCP"->FAILED_TO_EVALUATE_RCP|"NOT_APPLICABLE"->NOT_APPLICABLE|"APPLIED"->APPLIED|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 ResourceControlPolicyRestriction"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ResourceControlPolicyRestriction"j)letto_json=simple_to_jsonto_valueendmoduleInternalAccessType=structtypenonrect=|INTRA_ACCOUNT|INTRA_ORG|Non_static_idofstringletmakei=iletto_string=function|INTRA_ACCOUNT->"INTRA_ACCOUNT"|INTRA_ORG->"INTRA_ORG"|Non_static_ids->sletof_string=function|"INTRA_ACCOUNT"->INTRA_ACCOUNT|"INTRA_ORG"->INTRA_ORG|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 InternalAccessType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"InternalAccessType"j)letto_json=simple_to_jsonto_valueendmodulePrincipalType=structtypenonrect=|IAM_ROLE|IAM_USER|Non_static_idofstringletmakei=iletto_string=function|IAM_ROLE->"IAM_ROLE"|IAM_USER->"IAM_USER"|Non_static_ids->sletof_string=function|"IAM_ROLE"->IAM_ROLE|"IAM_USER"->IAM_USER|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 PrincipalType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PrincipalType"j)letto_json=simple_to_jsonto_valueendmoduleServiceControlPolicyRestriction=structtypenonrect=|APPLICABLE|FAILED_TO_EVALUATE_SCP|NOT_APPLICABLE|APPLIED|Non_static_idofstringletmakei=iletto_string=function|APPLICABLE->"APPLICABLE"|FAILED_TO_EVALUATE_SCP->"FAILED_TO_EVALUATE_SCP"|NOT_APPLICABLE->"NOT_APPLICABLE"|APPLIED->"APPLIED"|Non_static_ids->sletof_string=function|"APPLICABLE"->APPLICABLE|"FAILED_TO_EVALUATE_SCP"->FAILED_TO_EVALUATE_SCP|"NOT_APPLICABLE"->NOT_APPLICABLE|"APPLIED"->APPLIED|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 ServiceControlPolicyRestriction"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ServiceControlPolicyRestriction"j)letto_json=simple_to_jsonto_valueendmoduleUnusedActionList=structtypenonrect=UnusedAction.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:UnusedAction.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:UnusedAction.of_xml)letof_jsonj=list_of_json~kind:"UnusedActionList"~of_json:UnusedAction.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRecommendedRemediationAction=structtypenonrect=|CREATE_POLICY|DETACH_POLICY|Non_static_idofstringletmakei=iletto_string=function|CREATE_POLICY->"CREATE_POLICY"|DETACH_POLICY->"DETACH_POLICY"|Non_static_ids->sletof_string=function|"CREATE_POLICY"->CREATE_POLICY|"DETACH_POLICY"->DETACH_POLICY|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 RecommendedRemediationAction"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RecommendedRemediationAction"j)letto_json=simple_to_jsonto_valueendmoduleDynamodbStreamConfiguration=structtypenonrect={streamPolicy:DynamodbStreamPolicy.toption[@ocaml.doc"The proposed resource policy defining who can access or manage the DynamoDB stream."]}letmake?streamPolicy=fun()->{streamPolicy}letto_valuex=structure_to_value[("streamPolicy",(Option.mapx.streamPolicy~f:DynamodbStreamPolicy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamPolicy=(Option.map~f:DynamodbStreamPolicy.of_xml)(Xml.childxml_arg0"streamPolicy")inmake?streamPolicy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamPolicy=field_mapjson__"streamPolicy"DynamodbStreamPolicy.of_jsoninmake?streamPolicy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The proposed access control configuration for a DynamoDB stream. You can propose a configuration for a new DynamoDB stream or an existing DynamoDB stream that you own by specifying the policy for the DynamoDB stream. For more information, see PutResourcePolicy. If the configuration is for an existing DynamoDB stream and you do not specify the DynamoDB policy, then the access preview uses the existing DynamoDB policy for the stream. If the access preview is for a new resource and you do not specify the policy, then the access preview assumes a DynamoDB stream without a policy. To propose deletion of an existing DynamoDB stream policy, you can specify an empty string for the DynamoDB policy."]moduleDynamodbTableConfiguration=structtypenonrect={tablePolicy:DynamodbTablePolicy.toption[@ocaml.doc"The proposed resource policy defining who can access or manage the DynamoDB table."]}letmake?tablePolicy=fun()->{tablePolicy}letto_valuex=structure_to_value[("tablePolicy",(Option.mapx.tablePolicy~f:DynamodbTablePolicy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettablePolicy=(Option.map~f:DynamodbTablePolicy.of_xml)(Xml.childxml_arg0"tablePolicy")inmake?tablePolicy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettablePolicy=field_mapjson__"tablePolicy"DynamodbTablePolicy.of_jsoninmake?tablePolicy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The proposed access control configuration for a DynamoDB table or index. You can propose a configuration for a new DynamoDB table or index or an existing DynamoDB table or index that you own by specifying the policy for the DynamoDB table or index. For more information, see PutResourcePolicy. If the configuration is for an existing DynamoDB table or index and you do not specify the DynamoDB policy, then the access preview uses the existing DynamoDB policy for the table or index. If the access preview is for a new resource and you do not specify the policy, then the access preview assumes a DynamoDB table without a policy. To propose deletion of an existing DynamoDB table or index policy, you can specify an empty string for the DynamoDB policy."]moduleEbsSnapshotConfiguration=structtypenonrect={userIds:EbsUserIdList.toption[@ocaml.doc"The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot. If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the userIds, then the access preview uses the existing shared userIds for the snapshot. If the access preview is for a new resource and you do not specify the userIds, then the access preview considers the snapshot without any userIds. To propose deletion of existing shared accountIds, you can specify an empty list for userIds."];groups:EbsGroupList.toption[@ocaml.doc"The groups that have access to the Amazon EBS volume snapshot. If the value all is specified, then the Amazon EBS volume snapshot is public. If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the groups, then the access preview uses the existing shared groups for the snapshot. If the access preview is for a new resource and you do not specify the groups, then the access preview considers the snapshot without any groups. To propose deletion of existing shared groups, you can specify an empty list for groups."];kmsKeyId:EbsSnapshotDataEncryptionKeyId.toption[@ocaml.doc"The KMS key identifier for an encrypted Amazon EBS volume snapshot. The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the kmsKeyId, or you specify an empty string, then the access preview uses the existing kmsKeyId of the snapshot. If the access preview is for a new resource and you do not specify the kmsKeyId, the access preview considers the snapshot as unencrypted."]}letmake?userIds=fun?groups->fun?kmsKeyId->fun()->{userIds;groups;kmsKeyId}letto_valuex=structure_to_value[("userIds",(Option.mapx.userIds~f:EbsUserIdList.to_value));("groups",(Option.mapx.groups~f:EbsGroupList.to_value));("kmsKeyId",(Option.mapx.kmsKeyId~f:EbsSnapshotDataEncryptionKeyId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkmsKeyId=(Option.map~f:EbsSnapshotDataEncryptionKeyId.of_xml)(Xml.childxml_arg0"kmsKeyId")inletgroups=(Option.map~f:EbsGroupList.of_xml)(Xml.childxml_arg0"groups")inletuserIds=(Option.map~f:EbsUserIdList.of_xml)(Xml.childxml_arg0"userIds")inmake?kmsKeyId?groups?userIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkmsKeyId=field_mapjson__"kmsKeyId"EbsSnapshotDataEncryptionKeyId.of_jsoninletgroups=field_mapjson__"groups"EbsGroupList.of_jsoninletuserIds=field_mapjson__"userIds"EbsUserIdList.of_jsoninmake?kmsKeyId?groups?userIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The proposed access control configuration for an Amazon EBS volume snapshot. You can propose a configuration for a new Amazon EBS volume snapshot or an Amazon EBS volume snapshot that you own by specifying the user IDs, groups, and optional KMS encryption key. For more information, see ModifySnapshotAttribute."]moduleEcrRepositoryConfiguration=structtypenonrect={repositoryPolicy:EcrRepositoryPolicy.toption[@ocaml.doc"The JSON repository policy text to apply to the Amazon ECR repository. For more information, see Private repository policy examples in the Amazon ECR User Guide."]}letmake?repositoryPolicy=fun()->{repositoryPolicy}letto_valuex=structure_to_value[("repositoryPolicy",(Option.mapx.repositoryPolicy~f:EcrRepositoryPolicy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrepositoryPolicy=(Option.map~f:EcrRepositoryPolicy.of_xml)(Xml.childxml_arg0"repositoryPolicy")inmake?repositoryPolicy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrepositoryPolicy=field_mapjson__"repositoryPolicy"EcrRepositoryPolicy.of_jsoninmake?repositoryPolicy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The proposed access control configuration for an Amazon ECR repository. You can propose a configuration for a new Amazon ECR repository or an existing Amazon ECR repository that you own by specifying the Amazon ECR policy. For more information, see Repository. If the configuration is for an existing Amazon ECR repository and you do not specify the Amazon ECR policy, then the access preview uses the existing Amazon ECR policy for the repository. If the access preview is for a new resource and you do not specify the policy, then the access preview assumes an Amazon ECR repository without a policy. To propose deletion of an existing Amazon ECR repository policy, you can specify an empty string for the Amazon ECR policy."]moduleEfsFileSystemConfiguration=structtypenonrect={fileSystemPolicy:EfsFileSystemPolicy.toption[@ocaml.doc"The JSON policy definition to apply to the Amazon EFS file system. For more information on the elements that make up a file system policy, see Amazon EFS Resource-based policies."]}letmake?fileSystemPolicy=fun()->{fileSystemPolicy}letto_valuex=structure_to_value[("fileSystemPolicy",(Option.mapx.fileSystemPolicy~f:EfsFileSystemPolicy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfileSystemPolicy=(Option.map~f:EfsFileSystemPolicy.of_xml)(Xml.childxml_arg0"fileSystemPolicy")inmake?fileSystemPolicy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfileSystemPolicy=field_mapjson__"fileSystemPolicy"EfsFileSystemPolicy.of_jsoninmake?fileSystemPolicy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The proposed access control configuration for an Amazon EFS file system. You can propose a configuration for a new Amazon EFS file system or an existing Amazon EFS file system that you own by specifying the Amazon EFS policy. For more information, see Using file systems in Amazon EFS. If the configuration is for an existing Amazon EFS file system and you do not specify the Amazon EFS policy, then the access preview uses the existing Amazon EFS policy for the file system. If the access preview is for a new resource and you do not specify the policy, then the access preview assumes an Amazon EFS file system without a policy. To propose deletion of an existing Amazon EFS file system policy, you can specify an empty string for the Amazon EFS policy."]moduleIamRoleConfiguration=structtypenonrect={trustPolicy:IamTrustPolicy.toption[@ocaml.doc"The proposed trust policy for the IAM role."]}letmake?trustPolicy=fun()->{trustPolicy}letto_valuex=structure_to_value[("trustPolicy",(Option.mapx.trustPolicy~f:IamTrustPolicy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettrustPolicy=(Option.map~f:IamTrustPolicy.of_xml)(Xml.childxml_arg0"trustPolicy")inmake?trustPolicy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettrustPolicy=field_mapjson__"trustPolicy"IamTrustPolicy.of_jsoninmake?trustPolicy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The proposed access control configuration for an IAM role. You can propose a configuration for a new IAM role or an existing IAM role that you own by specifying the trust policy. If the configuration is for a new IAM role, you must specify the trust policy. If the configuration is for an existing IAM role that you own and you do not propose the trust policy, the access preview uses the existing trust policy for the role. The proposed trust policy cannot be an empty string. For more information about role trust policy limits, see IAM and STS quotas."]moduleKmsKeyConfiguration=structtypenonrect={keyPolicies:KmsKeyPoliciesMap.toption[@ocaml.doc"Resource policy configuration for the KMS key. The only valid value for the name of the key policy is default. For more information, see Default key policy."];grants:KmsGrantConfigurationsList.toption[@ocaml.doc"A list of proposed grant configurations for the KMS key. If the proposed grant configuration is for an existing key, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the key."]}letmake?keyPolicies=fun?grants->fun()->{keyPolicies;grants}letto_valuex=structure_to_value[("keyPolicies",(Option.mapx.keyPolicies~f:KmsKeyPoliciesMap.to_value));("grants",(Option.mapx.grants~f:KmsGrantConfigurationsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgrants=(Option.map~f:KmsGrantConfigurationsList.of_xml)(Xml.childxml_arg0"grants")inletkeyPolicies=(Option.map~f:KmsKeyPoliciesMap.of_xml)(Xml.childxml_arg0"keyPolicies")inmake?grants?keyPolicies()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgrants=field_mapjson__"grants"KmsGrantConfigurationsList.of_jsoninletkeyPolicies=field_mapjson__"keyPolicies"KmsKeyPoliciesMap.of_jsoninmake?grants?keyPolicies()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Proposed access control configuration for a KMS key. You can propose a configuration for a new KMS key or an existing KMS key that you own by specifying the key policy and KMS grant configuration. If the configuration is for an existing key and you do not specify the key policy, the access preview uses the existing policy for the key. If the access preview is for a new resource and you do not specify the key policy, then the access preview uses the default key policy. The proposed key policy cannot be an empty string. For more information, see Default key policy. For more information about key policy limits, see Resource quotas."]moduleRdsDbClusterSnapshotConfiguration=structtypenonrect={attributes:RdsDbClusterSnapshotAttributesMap.toption[@ocaml.doc"The names and values of manual DB cluster snapshot attributes. Manual DB cluster snapshot attributes are used to authorize other Amazon Web Services accounts to restore a manual DB cluster snapshot. The only valid value for AttributeName for the attribute map is restore"];kmsKeyId:RdsDbClusterSnapshotKmsKeyId.toption[@ocaml.doc"The KMS key identifier for an encrypted Amazon RDS DB cluster snapshot. The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. If the configuration is for an existing Amazon RDS DB cluster snapshot and you do not specify the kmsKeyId, or you specify an empty string, then the access preview uses the existing kmsKeyId of the snapshot. If the access preview is for a new resource and you do not specify the specify the kmsKeyId, then the access preview considers the snapshot as unencrypted."]}letmake?attributes=fun?kmsKeyId->fun()->{attributes;kmsKeyId}letto_valuex=structure_to_value[("attributes",(Option.mapx.attributes~f:RdsDbClusterSnapshotAttributesMap.to_value));("kmsKeyId",(Option.mapx.kmsKeyId~f:RdsDbClusterSnapshotKmsKeyId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkmsKeyId=(Option.map~f:RdsDbClusterSnapshotKmsKeyId.of_xml)(Xml.childxml_arg0"kmsKeyId")inletattributes=(Option.map~f:RdsDbClusterSnapshotAttributesMap.of_xml)(Xml.childxml_arg0"attributes")inmake?kmsKeyId?attributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkmsKeyId=field_mapjson__"kmsKeyId"RdsDbClusterSnapshotKmsKeyId.of_jsoninletattributes=field_mapjson__"attributes"RdsDbClusterSnapshotAttributesMap.of_jsoninmake?kmsKeyId?attributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The proposed access control configuration for an Amazon RDS DB cluster snapshot. You can propose a configuration for a new Amazon RDS DB cluster snapshot or an Amazon RDS DB cluster snapshot that you own by specifying the RdsDbClusterSnapshotAttributeValue and optional KMS encryption key. For more information, see ModifyDBClusterSnapshotAttribute."]moduleRdsDbSnapshotConfiguration=structtypenonrect={attributes:RdsDbSnapshotAttributesMap.toption[@ocaml.doc"The names and values of manual DB snapshot attributes. Manual DB snapshot attributes are used to authorize other Amazon Web Services accounts to restore a manual DB snapshot. The only valid value for attributeName for the attribute map is restore."];kmsKeyId:RdsDbSnapshotKmsKeyId.toption[@ocaml.doc"The KMS key identifier for an encrypted Amazon RDS DB snapshot. The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. If the configuration is for an existing Amazon RDS DB snapshot and you do not specify the kmsKeyId, or you specify an empty string, then the access preview uses the existing kmsKeyId of the snapshot. If the access preview is for a new resource and you do not specify the specify the kmsKeyId, then the access preview considers the snapshot as unencrypted."]}letmake?attributes=fun?kmsKeyId->fun()->{attributes;kmsKeyId}letto_valuex=structure_to_value[("attributes",(Option.mapx.attributes~f:RdsDbSnapshotAttributesMap.to_value));("kmsKeyId",(Option.mapx.kmsKeyId~f:RdsDbSnapshotKmsKeyId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkmsKeyId=(Option.map~f:RdsDbSnapshotKmsKeyId.of_xml)(Xml.childxml_arg0"kmsKeyId")inletattributes=(Option.map~f:RdsDbSnapshotAttributesMap.of_xml)(Xml.childxml_arg0"attributes")inmake?kmsKeyId?attributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkmsKeyId=field_mapjson__"kmsKeyId"RdsDbSnapshotKmsKeyId.of_jsoninletattributes=field_mapjson__"attributes"RdsDbSnapshotAttributesMap.of_jsoninmake?kmsKeyId?attributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The proposed access control configuration for an Amazon RDS DB snapshot. You can propose a configuration for a new Amazon RDS DB snapshot or an Amazon RDS DB snapshot that you own by specifying the RdsDbSnapshotAttributeValue and optional KMS encryption key. For more information, see ModifyDBSnapshotAttribute."]moduleS3BucketConfiguration=structtypenonrect={bucketPolicy:S3BucketPolicy.toption[@ocaml.doc"The proposed bucket policy for the Amazon S3 bucket."];bucketAclGrants:S3BucketAclGrantConfigurationsList.toption[@ocaml.doc"The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket. If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the bucket."];bucketPublicAccessBlock:S3PublicAccessBlockConfiguration.toption[@ocaml.doc"The proposed block public access configuration for the Amazon S3 bucket."];accessPoints:S3AccessPointConfigurationsMap.toption[@ocaml.doc"The configuration of Amazon S3 access points or multi-region access points for the bucket. You can propose up to 10 new access points per bucket."]}letmake?bucketPolicy=fun?bucketAclGrants->fun?bucketPublicAccessBlock->fun?accessPoints->fun()->{bucketPolicy;bucketAclGrants;bucketPublicAccessBlock;accessPoints}letto_valuex=structure_to_value[("bucketPolicy",(Option.mapx.bucketPolicy~f:S3BucketPolicy.to_value));("bucketAclGrants",(Option.mapx.bucketAclGrants~f:S3BucketAclGrantConfigurationsList.to_value));("bucketPublicAccessBlock",(Option.mapx.bucketPublicAccessBlock~f:S3PublicAccessBlockConfiguration.to_value));("accessPoints",(Option.mapx.accessPoints~f:S3AccessPointConfigurationsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccessPoints=(Option.map~f:S3AccessPointConfigurationsMap.of_xml)(Xml.childxml_arg0"accessPoints")inletbucketPublicAccessBlock=(Option.map~f:S3PublicAccessBlockConfiguration.of_xml)(Xml.childxml_arg0"bucketPublicAccessBlock")inletbucketAclGrants=(Option.map~f:S3BucketAclGrantConfigurationsList.of_xml)(Xml.childxml_arg0"bucketAclGrants")inletbucketPolicy=(Option.map~f:S3BucketPolicy.of_xml)(Xml.childxml_arg0"bucketPolicy")inmake?accessPoints?bucketPublicAccessBlock?bucketAclGrants?bucketPolicy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccessPoints=field_mapjson__"accessPoints"S3AccessPointConfigurationsMap.of_jsoninletbucketPublicAccessBlock=field_mapjson__"bucketPublicAccessBlock"S3PublicAccessBlockConfiguration.of_jsoninletbucketAclGrants=field_mapjson__"bucketAclGrants"S3BucketAclGrantConfigurationsList.of_jsoninletbucketPolicy=field_mapjson__"bucketPolicy"S3BucketPolicy.of_jsoninmake?accessPoints?bucketPublicAccessBlock?bucketAclGrants?bucketPolicy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Proposed access control configuration for an Amazon S3 bucket. You can propose a configuration for a new Amazon S3 bucket or an existing Amazon S3 bucket that you own by specifying the Amazon S3 bucket policy, bucket ACLs, bucket BPA settings, Amazon S3 access points, and multi-region access points attached to the bucket. If the configuration is for an existing Amazon S3 bucket and you do not specify the Amazon S3 bucket policy, the access preview uses the existing policy attached to the bucket. If the access preview is for a new resource and you do not specify the Amazon S3 bucket policy, the access preview assumes a bucket without a policy. To propose deletion of an existing bucket policy, you can specify an empty string. For more information about bucket policy limits, see Bucket Policy Examples."]moduleS3ExpressDirectoryBucketConfiguration=structtypenonrect={bucketPolicy:S3ExpressDirectoryBucketPolicy.toption[@ocaml.doc"The proposed bucket policy for the Amazon S3 directory bucket."];accessPoints:S3ExpressDirectoryAccessPointConfigurationsMap.toption[@ocaml.doc"The proposed access points for the Amazon S3 directory bucket."]}letmake?bucketPolicy=fun?accessPoints->fun()->{bucketPolicy;accessPoints}letto_valuex=structure_to_value[("bucketPolicy",(Option.mapx.bucketPolicy~f:S3ExpressDirectoryBucketPolicy.to_value));("accessPoints",(Option.mapx.accessPoints~f:S3ExpressDirectoryAccessPointConfigurationsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccessPoints=(Option.map~f:S3ExpressDirectoryAccessPointConfigurationsMap.of_xml)(Xml.childxml_arg0"accessPoints")inletbucketPolicy=(Option.map~f:S3ExpressDirectoryBucketPolicy.of_xml)(Xml.childxml_arg0"bucketPolicy")inmake?accessPoints?bucketPolicy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccessPoints=field_mapjson__"accessPoints"S3ExpressDirectoryAccessPointConfigurationsMap.of_jsoninletbucketPolicy=field_mapjson__"bucketPolicy"S3ExpressDirectoryBucketPolicy.of_jsoninmake?accessPoints?bucketPolicy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Proposed access control configuration for an Amazon S3 directory bucket. You can propose a configuration for a new Amazon S3 directory bucket or an existing Amazon S3 directory bucket that you own by specifying the Amazon S3 bucket policy. If the configuration is for an existing Amazon S3 directory bucket and you do not specify the Amazon S3 bucket policy, the access preview uses the existing policy attached to the directory bucket. If the access preview is for a new resource and you do not specify the Amazon S3 bucket policy, the access preview assumes an directory bucket without a policy. To propose deletion of an existing bucket policy, you can specify an empty string. For more information about Amazon S3 directory bucket policies, see Example bucket policies for directory buckets in the Amazon Simple Storage Service User Guide."]moduleSecretsManagerSecretConfiguration=structtypenonrect={kmsKeyId:SecretsManagerSecretKmsId.toption[@ocaml.doc"The proposed ARN, key ID, or alias of the KMS key."];secretPolicy:SecretsManagerSecretPolicy.toption[@ocaml.doc"The proposed resource policy defining who can access or manage the secret."]}letmake?kmsKeyId=fun?secretPolicy->fun()->{kmsKeyId;secretPolicy}letto_valuex=structure_to_value[("kmsKeyId",(Option.mapx.kmsKeyId~f:SecretsManagerSecretKmsId.to_value));("secretPolicy",(Option.mapx.secretPolicy~f:SecretsManagerSecretPolicy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsecretPolicy=(Option.map~f:SecretsManagerSecretPolicy.of_xml)(Xml.childxml_arg0"secretPolicy")inletkmsKeyId=(Option.map~f:SecretsManagerSecretKmsId.of_xml)(Xml.childxml_arg0"kmsKeyId")inmake?secretPolicy?kmsKeyId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsecretPolicy=field_mapjson__"secretPolicy"SecretsManagerSecretPolicy.of_jsoninletkmsKeyId=field_mapjson__"kmsKeyId"SecretsManagerSecretKmsId.of_jsoninmake?secretPolicy?kmsKeyId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The configuration for a Secrets Manager secret. For more information, see CreateSecret. You can propose a configuration for a new secret or an existing secret that you own by specifying the secret policy and optional KMS encryption key. If the configuration is for an existing secret and you do not specify the secret policy, the access preview uses the existing policy for the secret. If the access preview is for a new resource and you do not specify the policy, the access preview assumes a secret without a policy. To propose deletion of an existing policy, you can specify an empty string. If the proposed configuration is for a new secret and you do not specify the KMS key ID, the access preview uses the Amazon Web Services managed key aws/secretsmanager. If you specify an empty string for the KMS key ID, the access preview uses the Amazon Web Services managed key of the Amazon Web Services account. For more information about secret policy limits, see Quotas for Secrets Manager.."]moduleSnsTopicConfiguration=structtypenonrect={topicPolicy:SnsTopicPolicy.toption[@ocaml.doc"The JSON policy text that defines who can access an Amazon SNS topic. For more information, see Example cases for Amazon SNS access control in the Amazon SNS Developer Guide."]}letmake?topicPolicy=fun()->{topicPolicy}letto_valuex=structure_to_value[("topicPolicy",(Option.mapx.topicPolicy~f:SnsTopicPolicy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettopicPolicy=(Option.map~f:SnsTopicPolicy.of_xml)(Xml.childxml_arg0"topicPolicy")inmake?topicPolicy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettopicPolicy=field_mapjson__"topicPolicy"SnsTopicPolicy.of_jsoninmake?topicPolicy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The proposed access control configuration for an Amazon SNS topic. You can propose a configuration for a new Amazon SNS topic or an existing Amazon SNS topic that you own by specifying the policy. If the configuration is for an existing Amazon SNS topic and you do not specify the Amazon SNS policy, then the access preview uses the existing Amazon SNS policy for the topic. If the access preview is for a new resource and you do not specify the policy, then the access preview assumes an Amazon SNS topic without a policy. To propose deletion of an existing Amazon SNS topic policy, you can specify an empty string for the Amazon SNS policy. For more information, see Topic."]moduleSqsQueueConfiguration=structtypenonrect={queuePolicy:SqsQueuePolicy.toption[@ocaml.doc"The proposed resource policy for the Amazon SQS queue."]}letmake?queuePolicy=fun()->{queuePolicy}letto_valuex=structure_to_value[("queuePolicy",(Option.mapx.queuePolicy~f:SqsQueuePolicy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueuePolicy=(Option.map~f:SqsQueuePolicy.of_xml)(Xml.childxml_arg0"queuePolicy")inmake?queuePolicy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueuePolicy=field_mapjson__"queuePolicy"SqsQueuePolicy.of_jsoninmake?queuePolicy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The proposed access control configuration for an Amazon SQS queue. You can propose a configuration for a new Amazon SQS queue or an existing Amazon SQS queue that you own by specifying the Amazon SQS policy. If the configuration is for an existing Amazon SQS queue and you do not specify the Amazon SQS policy, the access preview uses the existing Amazon SQS policy for the queue. If the access preview is for a new resource and you do not specify the policy, the access preview assumes an Amazon SQS queue without a policy. To propose deletion of an existing Amazon SQS queue policy, you can specify an empty string for the Amazon SQS policy. For more information about Amazon SQS policy limits, see Quotas related to policies."]moduleAction=structtypenonrect=stringletcontext_="Action"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:"Action"jletto_json=simple_to_jsonto_valueendmoduleResource=structtypenonrect=stringletcontext_="Resource"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:"Resource"jletto_json=simple_to_jsonto_valueendmoduleIssueCode=structtypenonrect=stringletcontext_="IssueCode"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:"IssueCode"jletto_json=simple_to_jsonto_valueendmoduleLearnMoreLink=structtypenonrect=stringletcontext_="LearnMoreLink"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:"LearnMoreLink"jletto_json=simple_to_jsonto_valueendmoduleLocationList=structtypenonrect=Location.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Location.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:Location.of_xml)letof_jsonj=list_of_json~kind:"LocationList"~of_json:Location.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleValidatePolicyFindingType=structtypenonrect=|ERROR|SECURITY_WARNING|SUGGESTION|WARNING|Non_static_idofstringletmakei=iletto_string=function|ERROR->"ERROR"|SECURITY_WARNING->"SECURITY_WARNING"|SUGGESTION->"SUGGESTION"|WARNING->"WARNING"|Non_static_ids->sletof_string=function|"ERROR"->ERROR|"SECURITY_WARNING"->SECURITY_WARNING|"SUGGESTION"->SUGGESTION|"WARNING"->WARNING|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 ValidatePolicyFindingType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ValidatePolicyFindingType"j)letto_json=simple_to_jsonto_valueendmoduleValidationExceptionField=structtypenonrect={name:String_.toption[@ocaml.doc"The name of the validation exception."];message:String_.toption[@ocaml.doc"A message about the validation exception."]}letmake?name=fun?message->fun()->{name;message}letto_valuex=structure_to_value[("name",(Option.mapx.name~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")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inmake?message?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninletname=field_mapjson__"name"String_.of_jsoninmake?message?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about a validation exception."]moduleTrail=structtypenonrect={cloudTrailArn:CloudTrailArn.t[@ocaml.doc"Specifies the ARN of the trail. The format of a trail ARN is arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail."];regions:RegionList.toption[@ocaml.doc"A list of regions to get CloudTrail data from and analyze to generate a policy."];allRegions:Boolean.toption[@ocaml.doc"Possible values are true or false. If set to true, IAM Access Analyzer retrieves CloudTrail data from all regions to analyze and generate a policy."]}letcontext_="Trail"letmake?regions=fun?allRegions->fun~cloudTrailArn->fun()->{regions;allRegions;cloudTrailArn}letto_valuex=structure_to_value[("cloudTrailArn",(Some(CloudTrailArn.to_valuex.cloudTrailArn)));("regions",(Option.mapx.regions~f:RegionList.to_value));("allRegions",(Option.mapx.allRegions~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letallRegions=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"allRegions")inletregions=(Option.map~f:RegionList.of_xml)(Xml.childxml_arg0"regions")inletcloudTrailArn=CloudTrailArn.of_xml(Xml.child_exn~context:context_xml_arg0"cloudTrailArn")inmake?allRegions?regions~cloudTrailArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letallRegions=field_mapjson__"allRegions"Boolean.of_jsoninletregions=field_mapjson__"regions"RegionList.of_jsoninletcloudTrailArn=field_map_exnjson__"cloudTrailArn"CloudTrailArn.of_jsoninmake?allRegions?regions~cloudTrailArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about the CloudTrail trail being analyzed to generate a policy."]moduleJobId=structtypenonrect=stringletcontext_="JobId"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:"JobId"jletto_json=simple_to_jsonto_valueendmoduleJobStatus=structtypenonrect=|IN_PROGRESS|SUCCEEDED|FAILED|CANCELED|Non_static_idofstringletmakei=iletto_string=function|IN_PROGRESS->"IN_PROGRESS"|SUCCEEDED->"SUCCEEDED"|FAILED->"FAILED"|CANCELED->"CANCELED"|Non_static_ids->sletof_string=function|"IN_PROGRESS"->IN_PROGRESS|"SUCCEEDED"->SUCCEEDED|"FAILED"->FAILED|"CANCELED"->CANCELED|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 JobStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"JobStatus"j)letto_json=simple_to_jsonto_valueendmodulePrincipalArn=structtypenonrect=stringletcontext_="PrincipalArn"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"arn:[^:]*:iam::[^:]*:(role|user)/.{1,576}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PrincipalArn"jletto_json=simple_to_jsonto_valueendmoduleFindingId=structtypenonrect=stringletcontext_="FindingId"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:"FindingId"jletto_json=simple_to_jsonto_valueendmoduleFindingStatus=structtypenonrect=|ACTIVE|ARCHIVED|RESOLVED|Non_static_idofstringletmakei=iletto_string=function|ACTIVE->"ACTIVE"|ARCHIVED->"ARCHIVED"|RESOLVED->"RESOLVED"|Non_static_ids->sletof_string=function|"ACTIVE"->ACTIVE|"ARCHIVED"->ARCHIVED|"RESOLVED"->RESOLVED|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 FindingStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FindingStatus"j)letto_json=simple_to_jsonto_valueendmoduleFindingType=structtypenonrect=|ExternalAccess|UnusedIAMRole|UnusedIAMUserAccessKey|UnusedIAMUserPassword|UnusedPermission|InternalAccess|Non_static_idofstringletmakei=iletto_string=function|ExternalAccess->"ExternalAccess"|UnusedIAMRole->"UnusedIAMRole"|UnusedIAMUserAccessKey->"UnusedIAMUserAccessKey"|UnusedIAMUserPassword->"UnusedIAMUserPassword"|UnusedPermission->"UnusedPermission"|InternalAccess->"InternalAccess"|Non_static_ids->sletof_string=function|"ExternalAccess"->ExternalAccess|"UnusedIAMRole"->UnusedIAMRole|"UnusedIAMUserAccessKey"->UnusedIAMUserAccessKey|"UnusedIAMUserPassword"->UnusedIAMUserPassword|"UnusedPermission"->UnusedPermission|"InternalAccess"->InternalAccess|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 FindingType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FindingType"j)letto_json=simple_to_jsonto_valueendmoduleFilterCriteriaMap=structtypenonrect=(String_.t*Criterion.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types String Criterion"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(Criterion.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:Criterion.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleName=structtypenonrect=stringletcontext_="Name"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"[A-Za-z][A-Za-z0-9_.-]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Name"jletto_json=simple_to_jsonto_valueendmoduleAnalyzerArn=structtypenonrect=stringletcontext_="AnalyzerArn"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:analyzer/.{1,255}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AnalyzerArn"jletto_json=simple_to_jsonto_valueendmoduleAnalyzerConfiguration=structtypenonrect={unusedAccess:UnusedAccessConfiguration.toption[@ocaml.doc"Specifies the configuration of an unused access analyzer for an Amazon Web Services organization or account."];internalAccess:InternalAccessConfiguration.toption[@ocaml.doc"Specifies the configuration of an internal access analyzer for an Amazon Web Services organization or account. This configuration determines how the analyzer evaluates access within your Amazon Web Services environment."]}letmake?unusedAccess=fun?internalAccess->fun()->{unusedAccess;internalAccess}letto_valuex=structure_to_value[("unusedAccess",(Option.mapx.unusedAccess~f:UnusedAccessConfiguration.to_value));("internalAccess",(Option.mapx.internalAccess~f:InternalAccessConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinternalAccess=(Option.map~f:InternalAccessConfiguration.of_xml)(Xml.childxml_arg0"internalAccess")inletunusedAccess=(Option.map~f:UnusedAccessConfiguration.of_xml)(Xml.childxml_arg0"unusedAccess")inmake?internalAccess?unusedAccess()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinternalAccess=field_mapjson__"internalAccess"InternalAccessConfiguration.of_jsoninletunusedAccess=field_mapjson__"unusedAccess"UnusedAccessConfiguration.of_jsoninmake?internalAccess?unusedAccess()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about the configuration of an analyzer for an Amazon Web Services organization or account."]moduleAnalyzerStatus=structtypenonrect=|ACTIVE|CREATING|DISABLED|FAILED|Non_static_idofstringletmakei=iletto_string=function|ACTIVE->"ACTIVE"|CREATING->"CREATING"|DISABLED->"DISABLED"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"ACTIVE"->ACTIVE|"CREATING"->CREATING|"DISABLED"->DISABLED|"FAILED"->FAILED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration AnalyzerStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AnalyzerStatus"j)letto_json=simple_to_jsonto_valueendmoduleStatusReason=structtypenonrect={code:ReasonCode.toption[@ocaml.doc"The reason code for the current status of the analyzer."]}letmake?code=fun()->{code}letto_valuex=structure_to_value[("code",(Option.mapx.code~f:ReasonCode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcode=(Option.map~f:ReasonCode.of_xml)(Xml.childxml_arg0"code")inmake?code()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcode=field_mapjson__"code"ReasonCode.of_jsoninmake?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides more details about the current status of the analyzer. For example, if the creation for the analyzer fails, a Failed status is returned. For an analyzer with organization as the type, this failure can be due to an issue with creating the service-linked roles required in the member accounts of the Amazon Web Services organization."]moduleType=structtypenonrect=|ACCOUNT|ORGANIZATION|ACCOUNT_UNUSED_ACCESS|ORGANIZATION_UNUSED_ACCESS|ACCOUNT_INTERNAL_ACCESS|ORGANIZATION_INTERNAL_ACCESS|Non_static_idofstringletmakei=iletto_string=function|ACCOUNT->"ACCOUNT"|ORGANIZATION->"ORGANIZATION"|ACCOUNT_UNUSED_ACCESS->"ACCOUNT_UNUSED_ACCESS"|ORGANIZATION_UNUSED_ACCESS->"ORGANIZATION_UNUSED_ACCESS"|ACCOUNT_INTERNAL_ACCESS->"ACCOUNT_INTERNAL_ACCESS"|ORGANIZATION_INTERNAL_ACCESS->"ORGANIZATION_INTERNAL_ACCESS"|Non_static_ids->sletof_string=function|"ACCOUNT"->ACCOUNT|"ORGANIZATION"->ORGANIZATION|"ACCOUNT_UNUSED_ACCESS"->ACCOUNT_UNUSED_ACCESS|"ORGANIZATION_UNUSED_ACCESS"->ORGANIZATION_UNUSED_ACCESS|"ACCOUNT_INTERNAL_ACCESS"->ACCOUNT_INTERNAL_ACCESS|"ORGANIZATION_INTERNAL_ACCESS"->ORGANIZATION_INTERNAL_ACCESS|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 Type"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Type"j)letto_json=simple_to_jsonto_valueendmoduleResourceArn=structtypenonrect=stringletcontext_="ResourceArn"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"arn:[^:]*:[^:]*:[^:]*:[^:]*:.*");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ResourceArn"jletto_json=simple_to_jsonto_valueendmoduleAccessPreviewId=structtypenonrect=stringletcontext_="AccessPreviewId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AccessPreviewId"jletto_json=simple_to_jsonto_valueendmoduleAccessPreviewStatus=structtypenonrect=|COMPLETED|CREATING|FAILED|Non_static_idofstringletmakei=iletto_string=function|COMPLETED->"COMPLETED"|CREATING->"CREATING"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"COMPLETED"->COMPLETED|"CREATING"->CREATING|"FAILED"->FAILED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration AccessPreviewStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AccessPreviewStatus"j)letto_json=simple_to_jsonto_valueendmoduleAccessPreviewStatusReason=structtypenonrect={code:AccessPreviewStatusReasonCode.toption[@ocaml.doc"The reason code for the current status of the access preview."]}letmake?code=fun()->{code}letto_valuex=structure_to_value[("code",(Option.mapx.code~f:AccessPreviewStatusReasonCode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcode=(Option.map~f:AccessPreviewStatusReasonCode.of_xml)(Xml.childxml_arg0"code")inmake?code()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcode=field_mapjson__"code"AccessPreviewStatusReasonCode.of_jsoninmake?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides more details about the current status of the access preview. For example, if the creation of the access preview fails, a Failed status is returned. This failure can be due to an internal issue with the analysis or due to an invalid proposed resource configuration."]moduleAccessPreviewFindingId=structtypenonrect=stringletcontext_="AccessPreviewFindingId"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:"AccessPreviewFindingId"jletto_json=simple_to_jsonto_valueendmoduleFindingChangeType=structtypenonrect=|CHANGED|NEW|UNCHANGED|Non_static_idofstringletmakei=iletto_string=function|CHANGED->"CHANGED"|NEW->"NEW"|UNCHANGED->"UNCHANGED"|Non_static_ids->sletof_string=function|"CHANGED"->CHANGED|"NEW"->NEW|"UNCHANGED"->UNCHANGED|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 FindingChangeType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FindingChangeType"j)letto_json=simple_to_jsonto_valueendmoduleGeneratedPolicy=structtypenonrect={policy:String_.toption[@ocaml.doc"The text to use as the content for the new policy. The policy is created using the CreatePolicy action."]}letmake?policy=fun()->{policy}letto_valuex=structure_to_value[("policy",(Option.mapx.policy~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"policy")inmake?policy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpolicy=field_mapjson__"policy"String_.of_jsoninmake?policy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the text for the generated policy."]moduleCloudTrailProperties=structtypenonrect={trailProperties:TrailPropertiesList.toption[@ocaml.doc"A TrailProperties object that contains settings for trail properties."];startTime:Timestamp.toption[@ocaml.doc"The start of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp before this time are not considered to generate a policy."];endTime:Timestamp.toption[@ocaml.doc"The end of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp after this time are not considered to generate a policy. If this is not included in the request, the default value is the current time."]}letmake?trailProperties=fun?startTime->fun?endTime->fun()->{trailProperties;startTime;endTime}letto_valuex=structure_to_value[("trailProperties",(Option.mapx.trailProperties~f:TrailPropertiesList.to_value));("startTime",(Option.mapx.startTime~f:Timestamp.to_value));("endTime",(Option.mapx.endTime~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"endTime")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"startTime")inlettrailProperties=(Option.map~f:TrailPropertiesList.of_xml)(Xml.childxml_arg0"trailProperties")inmake?endTime?startTime?trailProperties()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendTime=field_mapjson__"endTime"Timestamp.of_jsoninletstartTime=field_mapjson__"startTime"Timestamp.of_jsoninlettrailProperties=field_mapjson__"trailProperties"TrailPropertiesList.of_jsoninmake?endTime?startTime?trailProperties()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about CloudTrail access."]moduleJobErrorCode=structtypenonrect=|AUTHORIZATION_ERROR|RESOURCE_NOT_FOUND_ERROR|SERVICE_QUOTA_EXCEEDED_ERROR|SERVICE_ERROR|Non_static_idofstringletmakei=iletto_string=function|AUTHORIZATION_ERROR->"AUTHORIZATION_ERROR"|RESOURCE_NOT_FOUND_ERROR->"RESOURCE_NOT_FOUND_ERROR"|SERVICE_QUOTA_EXCEEDED_ERROR->"SERVICE_QUOTA_EXCEEDED_ERROR"|SERVICE_ERROR->"SERVICE_ERROR"|Non_static_ids->sletof_string=function|"AUTHORIZATION_ERROR"->AUTHORIZATION_ERROR|"RESOURCE_NOT_FOUND_ERROR"->RESOURCE_NOT_FOUND_ERROR|"SERVICE_QUOTA_EXCEEDED_ERROR"->SERVICE_QUOTA_EXCEEDED_ERROR|"SERVICE_ERROR"->SERVICE_ERROR|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 JobErrorCode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"JobErrorCode"j)letto_json=simple_to_jsonto_valueendmoduleExternalAccessFindingsStatistics=structtypenonrect={resourceTypeStatistics:ResourceTypeStatisticsMap.toption[@ocaml.doc"The total number of active cross-account and public findings for each resource type of the specified external access analyzer."];totalActiveFindings:Integer.toption[@ocaml.doc"The number of active findings for the specified external access analyzer."];totalArchivedFindings:Integer.toption[@ocaml.doc"The number of archived findings for the specified external access analyzer."];totalResolvedFindings:Integer.toption[@ocaml.doc"The number of resolved findings for the specified external access analyzer."]}letmake?resourceTypeStatistics=fun?totalActiveFindings->fun?totalArchivedFindings->fun?totalResolvedFindings->fun()->{resourceTypeStatistics;totalActiveFindings;totalArchivedFindings;totalResolvedFindings}letto_valuex=structure_to_value[("resourceTypeStatistics",(Option.mapx.resourceTypeStatistics~f:ResourceTypeStatisticsMap.to_value));("totalActiveFindings",(Option.mapx.totalActiveFindings~f:Integer.to_value));("totalArchivedFindings",(Option.mapx.totalArchivedFindings~f:Integer.to_value));("totalResolvedFindings",(Option.mapx.totalResolvedFindings~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettotalResolvedFindings=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"totalResolvedFindings")inlettotalArchivedFindings=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"totalArchivedFindings")inlettotalActiveFindings=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"totalActiveFindings")inletresourceTypeStatistics=(Option.map~f:ResourceTypeStatisticsMap.of_xml)(Xml.childxml_arg0"resourceTypeStatistics")inmake?totalResolvedFindings?totalArchivedFindings?totalActiveFindings?resourceTypeStatistics()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettotalResolvedFindings=field_mapjson__"totalResolvedFindings"Integer.of_jsoninlettotalArchivedFindings=field_mapjson__"totalArchivedFindings"Integer.of_jsoninlettotalActiveFindings=field_mapjson__"totalActiveFindings"Integer.of_jsoninletresourceTypeStatistics=field_mapjson__"resourceTypeStatistics"ResourceTypeStatisticsMap.of_jsoninmake?totalResolvedFindings?totalArchivedFindings?totalActiveFindings?resourceTypeStatistics()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides aggregate statistics about the findings for the specified external access analyzer."]moduleInternalAccessFindingsStatistics=structtypenonrect={resourceTypeStatistics:InternalAccessResourceTypeStatisticsMap.toption[@ocaml.doc"The total number of active findings for each resource type of the specified internal access analyzer."];totalActiveFindings:Integer.toption[@ocaml.doc"The number of active findings for the specified internal access analyzer."];totalArchivedFindings:Integer.toption[@ocaml.doc"The number of archived findings for the specified internal access analyzer."];totalResolvedFindings:Integer.toption[@ocaml.doc"The number of resolved findings for the specified internal access analyzer."]}letmake?resourceTypeStatistics=fun?totalActiveFindings->fun?totalArchivedFindings->fun?totalResolvedFindings->fun()->{resourceTypeStatistics;totalActiveFindings;totalArchivedFindings;totalResolvedFindings}letto_valuex=structure_to_value[("resourceTypeStatistics",(Option.mapx.resourceTypeStatistics~f:InternalAccessResourceTypeStatisticsMap.to_value));("totalActiveFindings",(Option.mapx.totalActiveFindings~f:Integer.to_value));("totalArchivedFindings",(Option.mapx.totalArchivedFindings~f:Integer.to_value));("totalResolvedFindings",(Option.mapx.totalResolvedFindings~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettotalResolvedFindings=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"totalResolvedFindings")inlettotalArchivedFindings=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"totalArchivedFindings")inlettotalActiveFindings=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"totalActiveFindings")inletresourceTypeStatistics=(Option.map~f:InternalAccessResourceTypeStatisticsMap.of_xml)(Xml.childxml_arg0"resourceTypeStatistics")inmake?totalResolvedFindings?totalArchivedFindings?totalActiveFindings?resourceTypeStatistics()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettotalResolvedFindings=field_mapjson__"totalResolvedFindings"Integer.of_jsoninlettotalArchivedFindings=field_mapjson__"totalArchivedFindings"Integer.of_jsoninlettotalActiveFindings=field_mapjson__"totalActiveFindings"Integer.of_jsoninletresourceTypeStatistics=field_mapjson__"resourceTypeStatistics"InternalAccessResourceTypeStatisticsMap.of_jsoninmake?totalResolvedFindings?totalArchivedFindings?totalActiveFindings?resourceTypeStatistics()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides aggregate statistics about the findings for the specified internal access analyzer. This includes counts of active, archived, and resolved findings."]moduleUnusedAccessFindingsStatistics=structtypenonrect={unusedAccessTypeStatistics:UnusedAccessTypeStatisticsList.toption[@ocaml.doc"A list of details about the total number of findings for each type of unused access for the analyzer."];topAccounts:AccountAggregations.toption[@ocaml.doc"A list of one to ten Amazon Web Services accounts that have the most active findings for the unused access analyzer."];totalActiveFindings:Integer.toption[@ocaml.doc"The total number of active findings for the unused access analyzer."];totalArchivedFindings:Integer.toption[@ocaml.doc"The total number of archived findings for the unused access analyzer."];totalResolvedFindings:Integer.toption[@ocaml.doc"The total number of resolved findings for the unused access analyzer."]}letmake?unusedAccessTypeStatistics=fun?topAccounts->fun?totalActiveFindings->fun?totalArchivedFindings->fun?totalResolvedFindings->fun()->{unusedAccessTypeStatistics;topAccounts;totalActiveFindings;totalArchivedFindings;totalResolvedFindings}letto_valuex=structure_to_value[("unusedAccessTypeStatistics",(Option.mapx.unusedAccessTypeStatistics~f:UnusedAccessTypeStatisticsList.to_value));("topAccounts",(Option.mapx.topAccounts~f:AccountAggregations.to_value));("totalActiveFindings",(Option.mapx.totalActiveFindings~f:Integer.to_value));("totalArchivedFindings",(Option.mapx.totalArchivedFindings~f:Integer.to_value));("totalResolvedFindings",(Option.mapx.totalResolvedFindings~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettotalResolvedFindings=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"totalResolvedFindings")inlettotalArchivedFindings=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"totalArchivedFindings")inlettotalActiveFindings=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"totalActiveFindings")inlettopAccounts=(Option.map~f:AccountAggregations.of_xml)(Xml.childxml_arg0"topAccounts")inletunusedAccessTypeStatistics=(Option.map~f:UnusedAccessTypeStatisticsList.of_xml)(Xml.childxml_arg0"unusedAccessTypeStatistics")inmake?totalResolvedFindings?totalArchivedFindings?totalActiveFindings?topAccounts?unusedAccessTypeStatistics()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettotalResolvedFindings=field_mapjson__"totalResolvedFindings"Integer.of_jsoninlettotalArchivedFindings=field_mapjson__"totalArchivedFindings"Integer.of_jsoninlettotalActiveFindings=field_mapjson__"totalActiveFindings"Integer.of_jsoninlettopAccounts=field_mapjson__"topAccounts"AccountAggregations.of_jsoninletunusedAccessTypeStatistics=field_mapjson__"unusedAccessTypeStatistics"UnusedAccessTypeStatisticsList.of_jsoninmake?totalResolvedFindings?totalArchivedFindings?totalActiveFindings?topAccounts?unusedAccessTypeStatistics()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides aggregate statistics about the findings for the specified unused access analyzer."]moduleExternalAccessDetails=structtypenonrect={action:ActionList.toption[@ocaml.doc"The action in the analyzed policy statement that an external principal has permission to use."];condition:ConditionKeyMap.toption[@ocaml.doc"The condition in the analyzed policy statement that resulted in an external access finding."];isPublic:Boolean.toption[@ocaml.doc"Specifies whether the external access finding is public."];principal:PrincipalMap.toption[@ocaml.doc"The external principal that has access to a resource within the zone of trust."];sources:FindingSourceList.toption[@ocaml.doc"The sources of the external access finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings."];resourceControlPolicyRestriction:ResourceControlPolicyRestriction.toption[@ocaml.doc"The type of restriction applied to the finding by the resource owner with an Organizations resource control policy (RCP). APPLICABLE: There is an RCP present in the organization but IAM Access Analyzer does not include it in the evaluation of effective permissions. For example, if s3:DeleteObject is blocked by the RCP and the restriction is APPLICABLE, then s3:DeleteObject would still be included in the list of actions for the finding. FAILED_TO_EVALUATE_RCP: There was an error evaluating the RCP. NOT_APPLICABLE: There was no RCP present in the organization, or there was no RCP applicable to the resource. For example, the resource being analyzed is an Amazon RDS snapshot and there is an RCP in the organization, but the RCP only impacts Amazon S3 buckets. APPLIED: This restriction is not currently available for external access findings."]}letmake?action=fun?condition->fun?isPublic->fun?principal->fun?sources->fun?resourceControlPolicyRestriction->fun()->{action;condition;isPublic;principal;sources;resourceControlPolicyRestriction}letto_valuex=structure_to_value[("action",(Option.mapx.action~f:ActionList.to_value));("condition",(Option.mapx.condition~f:ConditionKeyMap.to_value));("isPublic",(Option.mapx.isPublic~f:Boolean.to_value));("principal",(Option.mapx.principal~f:PrincipalMap.to_value));("sources",(Option.mapx.sources~f:FindingSourceList.to_value));("resourceControlPolicyRestriction",(Option.mapx.resourceControlPolicyRestriction~f:ResourceControlPolicyRestriction.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceControlPolicyRestriction=(Option.map~f:ResourceControlPolicyRestriction.of_xml)(Xml.childxml_arg0"resourceControlPolicyRestriction")inletsources=(Option.map~f:FindingSourceList.of_xml)(Xml.childxml_arg0"sources")inletprincipal=(Option.map~f:PrincipalMap.of_xml)(Xml.childxml_arg0"principal")inletisPublic=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isPublic")inletcondition=(Option.map~f:ConditionKeyMap.of_xml)(Xml.childxml_arg0"condition")inletaction=(Option.map~f:ActionList.of_xml)(Xml.childxml_arg0"action")inmake?resourceControlPolicyRestriction?sources?principal?isPublic?condition?action()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceControlPolicyRestriction=field_mapjson__"resourceControlPolicyRestriction"ResourceControlPolicyRestriction.of_jsoninletsources=field_mapjson__"sources"FindingSourceList.of_jsoninletprincipal=field_mapjson__"principal"PrincipalMap.of_jsoninletisPublic=field_mapjson__"isPublic"Boolean.of_jsoninletcondition=field_mapjson__"condition"ConditionKeyMap.of_jsoninletaction=field_mapjson__"action"ActionList.of_jsoninmake?resourceControlPolicyRestriction?sources?principal?isPublic?condition?action()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about an external access finding."]moduleInternalAccessDetails=structtypenonrect={action:ActionList.toption[@ocaml.doc"The action in the analyzed policy statement that has internal access permission to use."];condition:ConditionKeyMap.toption[@ocaml.doc"The condition in the analyzed policy statement that resulted in an internal access finding."];principal:PrincipalMap.toption[@ocaml.doc"The principal that has access to a resource within the internal environment."];principalOwnerAccount:String_.toption[@ocaml.doc"The Amazon Web Services account ID that owns the principal identified in the internal access finding."];accessType:InternalAccessType.toption[@ocaml.doc"The type of internal access identified in the finding. This indicates how the access is granted within your Amazon Web Services environment."];principalType:PrincipalType.toption[@ocaml.doc"The type of principal identified in the internal access finding, such as IAM role or IAM user."];sources:FindingSourceList.toption[@ocaml.doc"The sources of the internal access finding. This indicates how the access that generated the finding is granted within your Amazon Web Services environment."];resourceControlPolicyRestriction:ResourceControlPolicyRestriction.toption[@ocaml.doc"The type of restriction applied to the finding by the resource owner with an Organizations resource control policy (RCP). APPLICABLE: There is an RCP present in the organization but IAM Access Analyzer does not include it in the evaluation of effective permissions. For example, if s3:DeleteObject is blocked by the RCP and the restriction is APPLICABLE, then s3:DeleteObject would still be included in the list of actions for the finding. Only applicable to internal access findings with the account as the zone of trust. FAILED_TO_EVALUATE_RCP: There was an error evaluating the RCP. NOT_APPLICABLE: There was no RCP present in the organization. For internal access findings with the account as the zone of trust, NOT_APPLICABLE could also indicate that there was no RCP applicable to the resource. APPLIED: An RCP is present in the organization and IAM Access Analyzer included it in the evaluation of effective permissions. For example, if s3:DeleteObject is blocked by the RCP and the restriction is APPLIED, then s3:DeleteObject would not be included in the list of actions for the finding. Only applicable to internal access findings with the organization as the zone of trust."];serviceControlPolicyRestriction:ServiceControlPolicyRestriction.toption[@ocaml.doc"The type of restriction applied to the finding by an Organizations service control policy (SCP). APPLICABLE: There is an SCP present in the organization but IAM Access Analyzer does not include it in the evaluation of effective permissions. Only applicable to internal access findings with the account as the zone of trust. FAILED_TO_EVALUATE_SCP: There was an error evaluating the SCP. NOT_APPLICABLE: There was no SCP present in the organization. For internal access findings with the account as the zone of trust, NOT_APPLICABLE could also indicate that there was no SCP applicable to the principal. APPLIED: An SCP is present in the organization and IAM Access Analyzer included it in the evaluation of effective permissions. Only applicable to internal access findings with the organization as the zone of trust."]}letmake?action=fun?condition->fun?principal->fun?principalOwnerAccount->fun?accessType->fun?principalType->fun?sources->fun?resourceControlPolicyRestriction->fun?serviceControlPolicyRestriction->fun()->{action;condition;principal;principalOwnerAccount;accessType;principalType;sources;resourceControlPolicyRestriction;serviceControlPolicyRestriction}letto_valuex=structure_to_value[("action",(Option.mapx.action~f:ActionList.to_value));("condition",(Option.mapx.condition~f:ConditionKeyMap.to_value));("principal",(Option.mapx.principal~f:PrincipalMap.to_value));("principalOwnerAccount",(Option.mapx.principalOwnerAccount~f:String_.to_value));("accessType",(Option.mapx.accessType~f:InternalAccessType.to_value));("principalType",(Option.mapx.principalType~f:PrincipalType.to_value));("sources",(Option.mapx.sources~f:FindingSourceList.to_value));("resourceControlPolicyRestriction",(Option.mapx.resourceControlPolicyRestriction~f:ResourceControlPolicyRestriction.to_value));("serviceControlPolicyRestriction",(Option.mapx.serviceControlPolicyRestriction~f:ServiceControlPolicyRestriction.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letserviceControlPolicyRestriction=(Option.map~f:ServiceControlPolicyRestriction.of_xml)(Xml.childxml_arg0"serviceControlPolicyRestriction")inletresourceControlPolicyRestriction=(Option.map~f:ResourceControlPolicyRestriction.of_xml)(Xml.childxml_arg0"resourceControlPolicyRestriction")inletsources=(Option.map~f:FindingSourceList.of_xml)(Xml.childxml_arg0"sources")inletprincipalType=(Option.map~f:PrincipalType.of_xml)(Xml.childxml_arg0"principalType")inletaccessType=(Option.map~f:InternalAccessType.of_xml)(Xml.childxml_arg0"accessType")inletprincipalOwnerAccount=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"principalOwnerAccount")inletprincipal=(Option.map~f:PrincipalMap.of_xml)(Xml.childxml_arg0"principal")inletcondition=(Option.map~f:ConditionKeyMap.of_xml)(Xml.childxml_arg0"condition")inletaction=(Option.map~f:ActionList.of_xml)(Xml.childxml_arg0"action")inmake?serviceControlPolicyRestriction?resourceControlPolicyRestriction?sources?principalType?accessType?principalOwnerAccount?principal?condition?action()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letserviceControlPolicyRestriction=field_mapjson__"serviceControlPolicyRestriction"ServiceControlPolicyRestriction.of_jsoninletresourceControlPolicyRestriction=field_mapjson__"resourceControlPolicyRestriction"ResourceControlPolicyRestriction.of_jsoninletsources=field_mapjson__"sources"FindingSourceList.of_jsoninletprincipalType=field_mapjson__"principalType"PrincipalType.of_jsoninletaccessType=field_mapjson__"accessType"InternalAccessType.of_jsoninletprincipalOwnerAccount=field_mapjson__"principalOwnerAccount"String_.of_jsoninletprincipal=field_mapjson__"principal"PrincipalMap.of_jsoninletcondition=field_mapjson__"condition"ConditionKeyMap.of_jsoninletaction=field_mapjson__"action"ActionList.of_jsoninmake?serviceControlPolicyRestriction?resourceControlPolicyRestriction?sources?principalType?accessType?principalOwnerAccount?principal?condition?action()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about an internal access finding. This includes details about the access that was identified within your Amazon Web Services organization or account."]moduleUnusedIamRoleDetails=structtypenonrect={lastAccessed:Timestamp.toption[@ocaml.doc"The time at which the role was last accessed."]}letmake?lastAccessed=fun()->{lastAccessed}letto_valuex=structure_to_value[("lastAccessed",(Option.mapx.lastAccessed~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastAccessed=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"lastAccessed")inmake?lastAccessed()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastAccessed=field_mapjson__"lastAccessed"Timestamp.of_jsoninmake?lastAccessed()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about an unused access finding for an IAM role. IAM Access Analyzer charges for unused access analysis based on the number of IAM roles and users analyzed per month. For more details on pricing, see IAM Access Analyzer pricing."]moduleUnusedIamUserAccessKeyDetails=structtypenonrect={accessKeyId:String_.toption[@ocaml.doc"The ID of the access key for which the unused access finding was generated."];lastAccessed:Timestamp.toption[@ocaml.doc"The time at which the access key was last accessed."]}letmake?accessKeyId=fun?lastAccessed->fun()->{accessKeyId;lastAccessed}letto_valuex=structure_to_value[("accessKeyId",(Option.mapx.accessKeyId~f:String_.to_value));("lastAccessed",(Option.mapx.lastAccessed~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastAccessed=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"lastAccessed")inletaccessKeyId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"accessKeyId")inmake?lastAccessed?accessKeyId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastAccessed=field_mapjson__"lastAccessed"Timestamp.of_jsoninletaccessKeyId=field_mapjson__"accessKeyId"String_.of_jsoninmake?lastAccessed?accessKeyId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about an unused access finding for an IAM user access key. IAM Access Analyzer charges for unused access analysis based on the number of IAM roles and users analyzed per month. For more details on pricing, see IAM Access Analyzer pricing."]moduleUnusedIamUserPasswordDetails=structtypenonrect={lastAccessed:Timestamp.toption[@ocaml.doc"The time at which the password was last accessed."]}letmake?lastAccessed=fun()->{lastAccessed}letto_valuex=structure_to_value[("lastAccessed",(Option.mapx.lastAccessed~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastAccessed=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"lastAccessed")inmake?lastAccessed()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastAccessed=field_mapjson__"lastAccessed"Timestamp.of_jsoninmake?lastAccessed()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about an unused access finding for an IAM user password. IAM Access Analyzer charges for unused access analysis based on the number of IAM roles and users analyzed per month. For more details on pricing, see IAM Access Analyzer pricing."]moduleUnusedPermissionDetails=structtypenonrect={actions:UnusedActionList.toption[@ocaml.doc"A list of unused actions for which the unused access finding was generated."];serviceNamespace:String_.toption[@ocaml.doc"The namespace of the Amazon Web Services service that contains the unused actions."];lastAccessed:Timestamp.toption[@ocaml.doc"The time at which the permission was last accessed."]}letmake?actions=fun?serviceNamespace->fun?lastAccessed->fun()->{actions;serviceNamespace;lastAccessed}letto_valuex=structure_to_value[("actions",(Option.mapx.actions~f:UnusedActionList.to_value));("serviceNamespace",(Option.mapx.serviceNamespace~f:String_.to_value));("lastAccessed",(Option.mapx.lastAccessed~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastAccessed=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"lastAccessed")inletserviceNamespace=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceNamespace")inletactions=(Option.map~f:UnusedActionList.of_xml)(Xml.childxml_arg0"actions")inmake?lastAccessed?serviceNamespace?actions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastAccessed=field_mapjson__"lastAccessed"Timestamp.of_jsoninletserviceNamespace=field_mapjson__"serviceNamespace"String_.of_jsoninletactions=field_mapjson__"actions"UnusedActionList.of_jsoninmake?lastAccessed?serviceNamespace?actions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about an unused access finding for a permission. IAM Access Analyzer charges for unused access analysis based on the number of IAM roles and users analyzed per month. For more details on pricing, see IAM Access Analyzer pricing."]moduleUnusedPermissionsRecommendedStep=structtypenonrect={policyUpdatedAt:Timestamp.toption[@ocaml.doc"The time at which the existing policy for the unused permissions finding was last updated."];recommendedAction:RecommendedRemediationAction.toption[@ocaml.doc"A recommendation of whether to create or detach a policy for an unused permissions finding."];recommendedPolicy:String_.toption[@ocaml.doc"If the recommended action for the unused permissions finding is to replace the existing policy, the contents of the recommended policy to replace the policy specified in the existingPolicyId field."];existingPolicyId:String_.toption[@ocaml.doc"If the recommended action for the unused permissions finding is to detach a policy, the ID of an existing policy to be detached."]}letmake?policyUpdatedAt=fun?recommendedAction->fun?recommendedPolicy->fun?existingPolicyId->fun()->{policyUpdatedAt;recommendedAction;recommendedPolicy;existingPolicyId}letto_valuex=structure_to_value[("policyUpdatedAt",(Option.mapx.policyUpdatedAt~f:Timestamp.to_value));("recommendedAction",(Option.mapx.recommendedAction~f:RecommendedRemediationAction.to_value));("recommendedPolicy",(Option.mapx.recommendedPolicy~f:String_.to_value));("existingPolicyId",(Option.mapx.existingPolicyId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexistingPolicyId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"existingPolicyId")inletrecommendedPolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"recommendedPolicy")inletrecommendedAction=(Option.map~f:RecommendedRemediationAction.of_xml)(Xml.childxml_arg0"recommendedAction")inletpolicyUpdatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"policyUpdatedAt")inmake?existingPolicyId?recommendedPolicy?recommendedAction?policyUpdatedAt()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexistingPolicyId=field_mapjson__"existingPolicyId"String_.of_jsoninletrecommendedPolicy=field_mapjson__"recommendedPolicy"String_.of_jsoninletrecommendedAction=field_mapjson__"recommendedAction"RecommendedRemediationAction.of_jsoninletpolicyUpdatedAt=field_mapjson__"policyUpdatedAt"Timestamp.of_jsoninmake?existingPolicyId?recommendedPolicy?recommendedAction?policyUpdatedAt()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about the action to take for a policy in an unused permissions finding."]moduleConfiguration=structtypenonrect={ebsSnapshot:EbsSnapshotConfiguration.toption[@ocaml.doc"The access control configuration is for an Amazon EBS volume snapshot."];ecrRepository:EcrRepositoryConfiguration.toption[@ocaml.doc"The access control configuration is for an Amazon ECR repository."];iamRole:IamRoleConfiguration.toption[@ocaml.doc"The access control configuration is for an IAM role."];efsFileSystem:EfsFileSystemConfiguration.toption[@ocaml.doc"The access control configuration is for an Amazon EFS file system."];kmsKey:KmsKeyConfiguration.toption[@ocaml.doc"The access control configuration is for a KMS key."];rdsDbClusterSnapshot:RdsDbClusterSnapshotConfiguration.toption[@ocaml.doc"The access control configuration is for an Amazon RDS DB cluster snapshot."];rdsDbSnapshot:RdsDbSnapshotConfiguration.toption[@ocaml.doc"The access control configuration is for an Amazon RDS DB snapshot."];secretsManagerSecret:SecretsManagerSecretConfiguration.toption[@ocaml.doc"The access control configuration is for a Secrets Manager secret."];s3Bucket:S3BucketConfiguration.toption[@ocaml.doc"The access control configuration is for an Amazon S3 bucket."];snsTopic:SnsTopicConfiguration.toption[@ocaml.doc"The access control configuration is for an Amazon SNS topic"];sqsQueue:SqsQueueConfiguration.toption[@ocaml.doc"The access control configuration is for an Amazon SQS queue."];s3ExpressDirectoryBucket:S3ExpressDirectoryBucketConfiguration.toption[@ocaml.doc"The access control configuration is for an Amazon S3 directory bucket."];dynamodbStream:DynamodbStreamConfiguration.toption[@ocaml.doc"The access control configuration is for a DynamoDB stream."];dynamodbTable:DynamodbTableConfiguration.toption[@ocaml.doc"The access control configuration is for a DynamoDB table or index."]}letmake?ebsSnapshot=fun?ecrRepository->fun?iamRole->fun?efsFileSystem->fun?kmsKey->fun?rdsDbClusterSnapshot->fun?rdsDbSnapshot->fun?secretsManagerSecret->fun?s3Bucket->fun?snsTopic->fun?sqsQueue->fun?s3ExpressDirectoryBucket->fun?dynamodbStream->fun?dynamodbTable->fun()->{ebsSnapshot;ecrRepository;iamRole;efsFileSystem;kmsKey;rdsDbClusterSnapshot;rdsDbSnapshot;secretsManagerSecret;s3Bucket;snsTopic;sqsQueue;s3ExpressDirectoryBucket;dynamodbStream;dynamodbTable}letto_valuex=structure_to_value[("ebsSnapshot",(Option.mapx.ebsSnapshot~f:EbsSnapshotConfiguration.to_value));("ecrRepository",(Option.mapx.ecrRepository~f:EcrRepositoryConfiguration.to_value));("iamRole",(Option.mapx.iamRole~f:IamRoleConfiguration.to_value));("efsFileSystem",(Option.mapx.efsFileSystem~f:EfsFileSystemConfiguration.to_value));("kmsKey",(Option.mapx.kmsKey~f:KmsKeyConfiguration.to_value));("rdsDbClusterSnapshot",(Option.mapx.rdsDbClusterSnapshot~f:RdsDbClusterSnapshotConfiguration.to_value));("rdsDbSnapshot",(Option.mapx.rdsDbSnapshot~f:RdsDbSnapshotConfiguration.to_value));("secretsManagerSecret",(Option.mapx.secretsManagerSecret~f:SecretsManagerSecretConfiguration.to_value));("s3Bucket",(Option.mapx.s3Bucket~f:S3BucketConfiguration.to_value));("snsTopic",(Option.mapx.snsTopic~f:SnsTopicConfiguration.to_value));("sqsQueue",(Option.mapx.sqsQueue~f:SqsQueueConfiguration.to_value));("s3ExpressDirectoryBucket",(Option.mapx.s3ExpressDirectoryBucket~f:S3ExpressDirectoryBucketConfiguration.to_value));("dynamodbStream",(Option.mapx.dynamodbStream~f:DynamodbStreamConfiguration.to_value));("dynamodbTable",(Option.mapx.dynamodbTable~f:DynamodbTableConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdynamodbTable=(Option.map~f:DynamodbTableConfiguration.of_xml)(Xml.childxml_arg0"dynamodbTable")inletdynamodbStream=(Option.map~f:DynamodbStreamConfiguration.of_xml)(Xml.childxml_arg0"dynamodbStream")inlets3ExpressDirectoryBucket=(Option.map~f:S3ExpressDirectoryBucketConfiguration.of_xml)(Xml.childxml_arg0"s3ExpressDirectoryBucket")inletsqsQueue=(Option.map~f:SqsQueueConfiguration.of_xml)(Xml.childxml_arg0"sqsQueue")inletsnsTopic=(Option.map~f:SnsTopicConfiguration.of_xml)(Xml.childxml_arg0"snsTopic")inlets3Bucket=(Option.map~f:S3BucketConfiguration.of_xml)(Xml.childxml_arg0"s3Bucket")inletsecretsManagerSecret=(Option.map~f:SecretsManagerSecretConfiguration.of_xml)(Xml.childxml_arg0"secretsManagerSecret")inletrdsDbSnapshot=(Option.map~f:RdsDbSnapshotConfiguration.of_xml)(Xml.childxml_arg0"rdsDbSnapshot")inletrdsDbClusterSnapshot=(Option.map~f:RdsDbClusterSnapshotConfiguration.of_xml)(Xml.childxml_arg0"rdsDbClusterSnapshot")inletkmsKey=(Option.map~f:KmsKeyConfiguration.of_xml)(Xml.childxml_arg0"kmsKey")inletefsFileSystem=(Option.map~f:EfsFileSystemConfiguration.of_xml)(Xml.childxml_arg0"efsFileSystem")inletiamRole=(Option.map~f:IamRoleConfiguration.of_xml)(Xml.childxml_arg0"iamRole")inletecrRepository=(Option.map~f:EcrRepositoryConfiguration.of_xml)(Xml.childxml_arg0"ecrRepository")inletebsSnapshot=(Option.map~f:EbsSnapshotConfiguration.of_xml)(Xml.childxml_arg0"ebsSnapshot")inmake?dynamodbTable?dynamodbStream?s3ExpressDirectoryBucket?sqsQueue?snsTopic?s3Bucket?secretsManagerSecret?rdsDbSnapshot?rdsDbClusterSnapshot?kmsKey?efsFileSystem?iamRole?ecrRepository?ebsSnapshot()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdynamodbTable=field_mapjson__"dynamodbTable"DynamodbTableConfiguration.of_jsoninletdynamodbStream=field_mapjson__"dynamodbStream"DynamodbStreamConfiguration.of_jsoninlets3ExpressDirectoryBucket=field_mapjson__"s3ExpressDirectoryBucket"S3ExpressDirectoryBucketConfiguration.of_jsoninletsqsQueue=field_mapjson__"sqsQueue"SqsQueueConfiguration.of_jsoninletsnsTopic=field_mapjson__"snsTopic"SnsTopicConfiguration.of_jsoninlets3Bucket=field_mapjson__"s3Bucket"S3BucketConfiguration.of_jsoninletsecretsManagerSecret=field_mapjson__"secretsManagerSecret"SecretsManagerSecretConfiguration.of_jsoninletrdsDbSnapshot=field_mapjson__"rdsDbSnapshot"RdsDbSnapshotConfiguration.of_jsoninletrdsDbClusterSnapshot=field_mapjson__"rdsDbClusterSnapshot"RdsDbClusterSnapshotConfiguration.of_jsoninletkmsKey=field_mapjson__"kmsKey"KmsKeyConfiguration.of_jsoninletefsFileSystem=field_mapjson__"efsFileSystem"EfsFileSystemConfiguration.of_jsoninletiamRole=field_mapjson__"iamRole"IamRoleConfiguration.of_jsoninletecrRepository=field_mapjson__"ecrRepository"EcrRepositoryConfiguration.of_jsoninletebsSnapshot=field_mapjson__"ebsSnapshot"EbsSnapshotConfiguration.of_jsoninmake?dynamodbTable?dynamodbStream?s3ExpressDirectoryBucket?sqsQueue?snsTopic?s3Bucket?secretsManagerSecret?rdsDbSnapshot?rdsDbClusterSnapshot?kmsKey?efsFileSystem?iamRole?ecrRepository?ebsSnapshot()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Access control configuration structures for your resource. You specify the configuration as a type-value pair. You can specify only one type of access control configuration."]moduleConfigurationsMapKey=structtypenonrect=stringletcontext_="ConfigurationsMapKey"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:"ConfigurationsMapKey"jletto_json=simple_to_jsonto_valueendmoduleAccessActionsList=structtypenonrect=Action.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Action.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Action.of_xml)letof_jsonj=list_of_json~kind:"AccessActionsList"~of_json:Action.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccessResourcesList=structtypenonrect=Resource.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f: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:"AccessResourcesList"~of_json:Resource.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleValidatePolicyFinding=structtypenonrect={findingDetails:String_.toption[@ocaml.doc"A localized message that explains the finding and provides guidance on how to address it."];findingType:ValidatePolicyFindingType.toption[@ocaml.doc"The impact of the finding. Security warnings report when the policy allows access that we consider overly permissive. Errors report when a part of the policy is not functional. Warnings report non-security issues when a policy does not conform to policy writing best practices. Suggestions recommend stylistic improvements in the policy that do not impact access."];issueCode:IssueCode.toption[@ocaml.doc"The issue code provides an identifier of the issue associated with this finding."];learnMoreLink:LearnMoreLink.toption[@ocaml.doc"A link to additional documentation about the type of finding."];locations:LocationList.toption[@ocaml.doc"The list of locations in the policy document that are related to the finding. The issue code provides a summary of an issue identified by the finding."]}letmake?findingDetails=fun?findingType->fun?issueCode->fun?learnMoreLink->fun?locations->fun()->{findingDetails;findingType;issueCode;learnMoreLink;locations}letto_valuex=structure_to_value[("findingDetails",(Option.mapx.findingDetails~f:String_.to_value));("findingType",(Option.mapx.findingType~f:ValidatePolicyFindingType.to_value));("issueCode",(Option.mapx.issueCode~f:IssueCode.to_value));("learnMoreLink",(Option.mapx.learnMoreLink~f:LearnMoreLink.to_value));("locations",(Option.mapx.locations~f:LocationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocations=(Option.map~f:LocationList.of_xml)(Xml.childxml_arg0"locations")inletlearnMoreLink=(Option.map~f:LearnMoreLink.of_xml)(Xml.childxml_arg0"learnMoreLink")inletissueCode=(Option.map~f:IssueCode.of_xml)(Xml.childxml_arg0"issueCode")inletfindingType=(Option.map~f:ValidatePolicyFindingType.of_xml)(Xml.childxml_arg0"findingType")inletfindingDetails=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"findingDetails")inmake?locations?learnMoreLink?issueCode?findingType?findingDetails()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocations=field_mapjson__"locations"LocationList.of_jsoninletlearnMoreLink=field_mapjson__"learnMoreLink"LearnMoreLink.of_jsoninletissueCode=field_mapjson__"issueCode"IssueCode.of_jsoninletfindingType=field_mapjson__"findingType"ValidatePolicyFindingType.of_jsoninletfindingDetails=field_mapjson__"findingDetails"String_.of_jsoninmake?locations?learnMoreLink?issueCode?findingType?findingDetails()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A finding in a policy. Each finding is an actionable recommendation that can be used to improve the policy."]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_valuevendmoduleValidationExceptionReason=structtypenonrect=|UnknownOperation|CannotParse|FieldValidationFailed|Other|NotSupported|Non_static_idofstringletmakei=iletto_string=function|UnknownOperation->"unknownOperation"|CannotParse->"cannotParse"|FieldValidationFailed->"fieldValidationFailed"|Other->"other"|NotSupported->"notSupported"|Non_static_ids->sletof_string=function|"unknownOperation"->UnknownOperation|"cannotParse"->CannotParse|"fieldValidationFailed"->FieldValidationFailed|"other"->Other|"notSupported"->NotSupported|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 ValidationExceptionReason"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ValidationExceptionReason"j)letto_json=simple_to_jsonto_valueendmoduleRoleArn=structtypenonrect=stringletcontext_="RoleArn"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"arn:[^:]*:iam::[^:]*:role/.{1,576}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RoleArn"jletto_json=simple_to_jsonto_valueendmoduleTrailList=structtypenonrect=Trail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Trail.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:Trail.of_xml)letof_jsonj=list_of_json~kind:"TrailList"~of_json:Trail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePolicyGeneration=structtypenonrect={jobId:JobId.toption[@ocaml.doc"The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request."];principalArn:PrincipalArn.toption[@ocaml.doc"The ARN of the IAM entity (user or role) for which you are generating a policy."];status:JobStatus.toption[@ocaml.doc"The status of the policy generation request."];startedOn:Timestamp.toption[@ocaml.doc"A timestamp of when the policy generation started."];completedOn:Timestamp.toption[@ocaml.doc"A timestamp of when the policy generation was completed."]}letmake?jobId=fun?principalArn->fun?status->fun?startedOn->fun?completedOn->fun()->{jobId;principalArn;status;startedOn;completedOn}letto_valuex=structure_to_value[("jobId",(Option.mapx.jobId~f:JobId.to_value));("principalArn",(Option.mapx.principalArn~f:PrincipalArn.to_value));("status",(Option.mapx.status~f:JobStatus.to_value));("startedOn",(Option.mapx.startedOn~f:Timestamp.to_value));("completedOn",(Option.mapx.completedOn~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcompletedOn=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"completedOn")inletstartedOn=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"startedOn")inletstatus=(Option.map~f:JobStatus.of_xml)(Xml.childxml_arg0"status")inletprincipalArn=(Option.map~f:PrincipalArn.of_xml)(Xml.childxml_arg0"principalArn")inletjobId=(Option.map~f:JobId.of_xml)(Xml.childxml_arg0"jobId")inmake?completedOn?startedOn?status?principalArn?jobId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcompletedOn=field_mapjson__"completedOn"Timestamp.of_jsoninletstartedOn=field_mapjson__"startedOn"Timestamp.of_jsoninletstatus=field_mapjson__"status"JobStatus.of_jsoninletprincipalArn=field_mapjson__"principalArn"PrincipalArn.of_jsoninletjobId=field_mapjson__"jobId"JobId.of_jsoninmake?completedOn?startedOn?status?principalArn?jobId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about the policy generation status and properties."]moduleFindingSummaryV2=structtypenonrect={analyzedAt:Timestamp.toption[@ocaml.doc"The time at which the resource-based policy or IAM entity that generated the finding was analyzed."];createdAt:Timestamp.toption[@ocaml.doc"The time at which the finding was created."];error:String_.toption[@ocaml.doc"The error that resulted in an Error finding."];id:FindingId.toption[@ocaml.doc"The ID of the finding."];resource:String_.toption[@ocaml.doc"The resource that the external principal has access to."];resourceType:ResourceType.toption[@ocaml.doc"The type of the resource that the external principal has access to."];resourceOwnerAccount:String_.toption[@ocaml.doc"The Amazon Web Services account ID that owns the resource."];status:FindingStatus.toption[@ocaml.doc"The status of the finding."];updatedAt:Timestamp.toption[@ocaml.doc"The time at which the finding was most recently updated."];findingType:FindingType.toption[@ocaml.doc"The type of the access finding. For external access analyzers, the type is ExternalAccess. For unused access analyzers, the type can be UnusedIAMRole, UnusedIAMUserAccessKey, UnusedIAMUserPassword, or UnusedPermission. For internal access analyzers, the type is InternalAccess."]}letmake?analyzedAt=fun?createdAt->fun?error->fun?id->fun?resource->fun?resourceType->fun?resourceOwnerAccount->fun?status->fun?updatedAt->fun?findingType->fun()->{analyzedAt;createdAt;error;id;resource;resourceType;resourceOwnerAccount;status;updatedAt;findingType}letto_valuex=structure_to_value[("analyzedAt",(Option.mapx.analyzedAt~f:Timestamp.to_value));("createdAt",(Option.mapx.createdAt~f:Timestamp.to_value));("error",(Option.mapx.error~f:String_.to_value));("id",(Option.mapx.id~f:FindingId.to_value));("resource",(Option.mapx.resource~f:String_.to_value));("resourceType",(Option.mapx.resourceType~f:ResourceType.to_value));("resourceOwnerAccount",(Option.mapx.resourceOwnerAccount~f:String_.to_value));("status",(Option.mapx.status~f:FindingStatus.to_value));("updatedAt",(Option.mapx.updatedAt~f:Timestamp.to_value));("findingType",(Option.mapx.findingType~f:FindingType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfindingType=(Option.map~f:FindingType.of_xml)(Xml.childxml_arg0"findingType")inletupdatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"updatedAt")inletstatus=(Option.map~f:FindingStatus.of_xml)(Xml.childxml_arg0"status")inletresourceOwnerAccount=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceOwnerAccount")inletresourceType=(Option.map~f:ResourceType.of_xml)(Xml.childxml_arg0"resourceType")inletresource=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resource")inletid=(Option.map~f:FindingId.of_xml)(Xml.childxml_arg0"id")inleterror=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"error")inletcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdAt")inletanalyzedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"analyzedAt")inmake?findingType?updatedAt?status?resourceOwnerAccount?resourceType?resource?id?error?createdAt?analyzedAt()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfindingType=field_mapjson__"findingType"FindingType.of_jsoninletupdatedAt=field_mapjson__"updatedAt"Timestamp.of_jsoninletstatus=field_mapjson__"status"FindingStatus.of_jsoninletresourceOwnerAccount=field_mapjson__"resourceOwnerAccount"String_.of_jsoninletresourceType=field_mapjson__"resourceType"ResourceType.of_jsoninletresource=field_mapjson__"resource"String_.of_jsoninletid=field_mapjson__"id"FindingId.of_jsoninleterror=field_mapjson__"error"String_.of_jsoninletcreatedAt=field_mapjson__"createdAt"Timestamp.of_jsoninletanalyzedAt=field_mapjson__"analyzedAt"Timestamp.of_jsoninmake?findingType?updatedAt?status?resourceOwnerAccount?resourceType?resource?id?error?createdAt?analyzedAt()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about a finding."]moduleOrderBy=structtypenonrect=|ASC|DESC|Non_static_idofstringletmakei=iletto_string=function|ASC->"ASC"|DESC->"DESC"|Non_static_ids->sletof_string=function|"ASC"->ASC|"DESC"->DESC|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration OrderBy"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"OrderBy"j)letto_json=simple_to_jsonto_valueendmoduleFindingSummary=structtypenonrect={id:FindingId.toption[@ocaml.doc"The ID of the finding."];principal:PrincipalMap.toption[@ocaml.doc"The external principal that has access to a resource within the zone of trust."];action:ActionList.toption[@ocaml.doc"The action in the analyzed policy statement that an external principal has permission to use."];resource:String_.toption[@ocaml.doc"The resource that the external principal has access to."];isPublic:Boolean.toption[@ocaml.doc"Indicates whether the finding reports a resource that has a policy that allows public access."];resourceType:ResourceType.toption[@ocaml.doc"The type of the resource that the external principal has access to."];condition:ConditionKeyMap.toption[@ocaml.doc"The condition in the analyzed policy statement that resulted in a finding."];createdAt:Timestamp.toption[@ocaml.doc"The time at which the finding was created."];analyzedAt:Timestamp.toption[@ocaml.doc"The time at which the resource-based policy that generated the finding was analyzed."];updatedAt:Timestamp.toption[@ocaml.doc"The time at which the finding was most recently updated."];status:FindingStatus.toption[@ocaml.doc"The status of the finding."];resourceOwnerAccount:String_.toption[@ocaml.doc"The Amazon Web Services account ID that owns the resource."];error:String_.toption[@ocaml.doc"The error that resulted in an Error finding."];sources:FindingSourceList.toption[@ocaml.doc"The sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings."];resourceControlPolicyRestriction:ResourceControlPolicyRestriction.toption[@ocaml.doc"The type of restriction applied to the finding by the resource owner with an Organizations resource control policy (RCP)."]}letmake?id=fun?principal->fun?action->fun?resource->fun?isPublic->fun?resourceType->fun?condition->fun?createdAt->fun?analyzedAt->fun?updatedAt->fun?status->fun?resourceOwnerAccount->fun?error->fun?sources->fun?resourceControlPolicyRestriction->fun()->{id;principal;action;resource;isPublic;resourceType;condition;createdAt;analyzedAt;updatedAt;status;resourceOwnerAccount;error;sources;resourceControlPolicyRestriction}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:FindingId.to_value));("principal",(Option.mapx.principal~f:PrincipalMap.to_value));("action",(Option.mapx.action~f:ActionList.to_value));("resource",(Option.mapx.resource~f:String_.to_value));("isPublic",(Option.mapx.isPublic~f:Boolean.to_value));("resourceType",(Option.mapx.resourceType~f:ResourceType.to_value));("condition",(Option.mapx.condition~f:ConditionKeyMap.to_value));("createdAt",(Option.mapx.createdAt~f:Timestamp.to_value));("analyzedAt",(Option.mapx.analyzedAt~f:Timestamp.to_value));("updatedAt",(Option.mapx.updatedAt~f:Timestamp.to_value));("status",(Option.mapx.status~f:FindingStatus.to_value));("resourceOwnerAccount",(Option.mapx.resourceOwnerAccount~f:String_.to_value));("error",(Option.mapx.error~f:String_.to_value));("sources",(Option.mapx.sources~f:FindingSourceList.to_value));("resourceControlPolicyRestriction",(Option.mapx.resourceControlPolicyRestriction~f:ResourceControlPolicyRestriction.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceControlPolicyRestriction=(Option.map~f:ResourceControlPolicyRestriction.of_xml)(Xml.childxml_arg0"resourceControlPolicyRestriction")inletsources=(Option.map~f:FindingSourceList.of_xml)(Xml.childxml_arg0"sources")inleterror=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"error")inletresourceOwnerAccount=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceOwnerAccount")inletstatus=(Option.map~f:FindingStatus.of_xml)(Xml.childxml_arg0"status")inletupdatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"updatedAt")inletanalyzedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"analyzedAt")inletcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdAt")inletcondition=(Option.map~f:ConditionKeyMap.of_xml)(Xml.childxml_arg0"condition")inletresourceType=(Option.map~f:ResourceType.of_xml)(Xml.childxml_arg0"resourceType")inletisPublic=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isPublic")inletresource=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resource")inletaction=(Option.map~f:ActionList.of_xml)(Xml.childxml_arg0"action")inletprincipal=(Option.map~f:PrincipalMap.of_xml)(Xml.childxml_arg0"principal")inletid=(Option.map~f:FindingId.of_xml)(Xml.childxml_arg0"id")inmake?resourceControlPolicyRestriction?sources?error?resourceOwnerAccount?status?updatedAt?analyzedAt?createdAt?condition?resourceType?isPublic?resource?action?principal?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceControlPolicyRestriction=field_mapjson__"resourceControlPolicyRestriction"ResourceControlPolicyRestriction.of_jsoninletsources=field_mapjson__"sources"FindingSourceList.of_jsoninleterror=field_mapjson__"error"String_.of_jsoninletresourceOwnerAccount=field_mapjson__"resourceOwnerAccount"String_.of_jsoninletstatus=field_mapjson__"status"FindingStatus.of_jsoninletupdatedAt=field_mapjson__"updatedAt"Timestamp.of_jsoninletanalyzedAt=field_mapjson__"analyzedAt"Timestamp.of_jsoninletcreatedAt=field_mapjson__"createdAt"Timestamp.of_jsoninletcondition=field_mapjson__"condition"ConditionKeyMap.of_jsoninletresourceType=field_mapjson__"resourceType"ResourceType.of_jsoninletisPublic=field_mapjson__"isPublic"Boolean.of_jsoninletresource=field_mapjson__"resource"String_.of_jsoninletaction=field_mapjson__"action"ActionList.of_jsoninletprincipal=field_mapjson__"principal"PrincipalMap.of_jsoninletid=field_mapjson__"id"FindingId.of_jsoninmake?resourceControlPolicyRestriction?sources?error?resourceOwnerAccount?status?updatedAt?analyzedAt?createdAt?condition?resourceType?isPublic?resource?action?principal?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about a finding."]moduleArchiveRuleSummary=structtypenonrect={ruleName:Name.toption[@ocaml.doc"The name of the archive rule."];filter:FilterCriteriaMap.toption[@ocaml.doc"A filter used to define the archive rule."];createdAt:Timestamp.toption[@ocaml.doc"The time at which the archive rule was created."];updatedAt:Timestamp.toption[@ocaml.doc"The time at which the archive rule was last updated."]}letmake?ruleName=fun?filter->fun?createdAt->fun?updatedAt->fun()->{ruleName;filter;createdAt;updatedAt}letto_valuex=structure_to_value[("ruleName",(Option.mapx.ruleName~f:Name.to_value));("filter",(Option.mapx.filter~f:FilterCriteriaMap.to_value));("createdAt",(Option.mapx.createdAt~f:Timestamp.to_value));("updatedAt",(Option.mapx.updatedAt~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letupdatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"updatedAt")inletcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdAt")inletfilter=(Option.map~f:FilterCriteriaMap.of_xml)(Xml.childxml_arg0"filter")inletruleName=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"ruleName")inmake?updatedAt?createdAt?filter?ruleName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letupdatedAt=field_mapjson__"updatedAt"Timestamp.of_jsoninletcreatedAt=field_mapjson__"createdAt"Timestamp.of_jsoninletfilter=field_mapjson__"filter"FilterCriteriaMap.of_jsoninletruleName=field_mapjson__"ruleName"Name.of_jsoninmake?updatedAt?createdAt?filter?ruleName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about an archive rule. Archive rules automatically archive new findings that meet the criteria you define when you create the rule."]moduleAnalyzerSummary=structtypenonrect={arn:AnalyzerArn.toption[@ocaml.doc"The ARN of the analyzer."];name:Name.toption[@ocaml.doc"The name of the analyzer."];type_:Type.toption[@ocaml.doc"The type represents the zone of trust or scope for the analyzer."];createdAt:Timestamp.toption[@ocaml.doc"A timestamp for the time at which the analyzer was created."];lastResourceAnalyzed:String_.toption[@ocaml.doc"The resource that was most recently analyzed by the analyzer."];lastResourceAnalyzedAt:Timestamp.toption[@ocaml.doc"The time at which the most recently analyzed resource was analyzed."];tags:TagsMap.toption[@ocaml.doc"An array of key-value pairs applied to the analyzer. The key-value pairs consist of the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. The tag key is a value that is 1 to 128 characters in length and cannot be prefixed with aws:. The tag value is a value that is 0 to 256 characters in length."];status:AnalyzerStatus.toption[@ocaml.doc"The status of the analyzer. An Active analyzer successfully monitors supported resources and generates new findings. The analyzer is Disabled when a user action, such as removing trusted access for Identity and Access Management Access Analyzer from Organizations, causes the analyzer to stop generating new findings. The status is Creating when the analyzer creation is in progress and Failed when the analyzer creation has failed."];statusReason:StatusReason.toption[@ocaml.doc"The statusReason provides more details about the current status of the analyzer. For example, if the creation for the analyzer fails, a Failed status is returned. For an analyzer with organization as the type, this failure can be due to an issue with creating the service-linked roles required in the member accounts of the Amazon Web Services organization."];configuration:AnalyzerConfiguration.toption[@ocaml.doc"Specifies if the analyzer is an external access, unused access, or internal access analyzer. The GetAnalyzer action includes this property in its response if a configuration is specified, while the ListAnalyzers action omits it."]}letmake?arn=fun?name->fun?type_->fun?createdAt->fun?lastResourceAnalyzed->fun?lastResourceAnalyzedAt->fun?tags->fun?status->fun?statusReason->fun?configuration->fun()->{arn;name;type_;createdAt;lastResourceAnalyzed;lastResourceAnalyzedAt;tags;status;statusReason;configuration}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:AnalyzerArn.to_value));("name",(Option.mapx.name~f:Name.to_value));("type",(Option.mapx.type_~f:Type.to_value));("createdAt",(Option.mapx.createdAt~f:Timestamp.to_value));("lastResourceAnalyzed",(Option.mapx.lastResourceAnalyzed~f:String_.to_value));("lastResourceAnalyzedAt",(Option.mapx.lastResourceAnalyzedAt~f:Timestamp.to_value));("tags",(Option.mapx.tags~f:TagsMap.to_value));("status",(Option.mapx.status~f:AnalyzerStatus.to_value));("statusReason",(Option.mapx.statusReason~f:StatusReason.to_value));("configuration",(Option.mapx.configuration~f:AnalyzerConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconfiguration=(Option.map~f:AnalyzerConfiguration.of_xml)(Xml.childxml_arg0"configuration")inletstatusReason=(Option.map~f:StatusReason.of_xml)(Xml.childxml_arg0"statusReason")inletstatus=(Option.map~f:AnalyzerStatus.of_xml)(Xml.childxml_arg0"status")inlettags=(Option.map~f:TagsMap.of_xml)(Xml.childxml_arg0"tags")inletlastResourceAnalyzedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"lastResourceAnalyzedAt")inletlastResourceAnalyzed=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"lastResourceAnalyzed")inletcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdAt")inlettype_=(Option.map~f:Type.of_xml)(Xml.childxml_arg0"type")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"name")inletarn=(Option.map~f:AnalyzerArn.of_xml)(Xml.childxml_arg0"arn")inmake?configuration?statusReason?status?tags?lastResourceAnalyzedAt?lastResourceAnalyzed?createdAt?type_?name?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconfiguration=field_mapjson__"configuration"AnalyzerConfiguration.of_jsoninletstatusReason=field_mapjson__"statusReason"StatusReason.of_jsoninletstatus=field_mapjson__"status"AnalyzerStatus.of_jsoninlettags=field_mapjson__"tags"TagsMap.of_jsoninletlastResourceAnalyzedAt=field_mapjson__"lastResourceAnalyzedAt"Timestamp.of_jsoninletlastResourceAnalyzed=field_mapjson__"lastResourceAnalyzed"String_.of_jsoninletcreatedAt=field_mapjson__"createdAt"Timestamp.of_jsoninlettype_=field_mapjson__"type"Type.of_jsoninletname=field_mapjson__"name"Name.of_jsoninletarn=field_mapjson__"arn"AnalyzerArn.of_jsoninmake?configuration?statusReason?status?tags?lastResourceAnalyzedAt?lastResourceAnalyzed?createdAt?type_?name?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about the analyzer."]moduleAnalyzedResourceSummary=structtypenonrect={resourceArn:ResourceArn.toption[@ocaml.doc"The ARN of the analyzed resource."];resourceOwnerAccount:String_.toption[@ocaml.doc"The Amazon Web Services account ID that owns the resource."];resourceType:ResourceType.toption[@ocaml.doc"The type of resource that was analyzed."]}letmake?resourceArn=fun?resourceOwnerAccount->fun?resourceType->fun()->{resourceArn;resourceOwnerAccount;resourceType}letto_valuex=structure_to_value[("resourceArn",(Option.mapx.resourceArn~f:ResourceArn.to_value));("resourceOwnerAccount",(Option.mapx.resourceOwnerAccount~f:String_.to_value));("resourceType",(Option.mapx.resourceType~f:ResourceType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:ResourceType.of_xml)(Xml.childxml_arg0"resourceType")inletresourceOwnerAccount=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceOwnerAccount")inletresourceArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"resourceArn")inmake?resourceType?resourceOwnerAccount?resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"resourceType"ResourceType.of_jsoninletresourceOwnerAccount=field_mapjson__"resourceOwnerAccount"String_.of_jsoninletresourceArn=field_mapjson__"resourceArn"ResourceArn.of_jsoninmake?resourceType?resourceOwnerAccount?resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the ARN of the analyzed resource."]moduleAccessPreviewSummary=structtypenonrect={id:AccessPreviewId.toption[@ocaml.doc"The unique ID for the access preview."];analyzerArn:AnalyzerArn.toption[@ocaml.doc"The ARN of the analyzer used to generate the access preview."];createdAt:Timestamp.toption[@ocaml.doc"The time at which the access preview was created."];status:AccessPreviewStatus.toption[@ocaml.doc"The status of the access preview. Creating - The access preview creation is in progress. Completed - The access preview is complete and previews the findings for external access to the resource. Failed - The access preview creation has failed."];statusReason:AccessPreviewStatusReason.toption}letmake?id=fun?analyzerArn->fun?createdAt->fun?status->fun?statusReason->fun()->{id;analyzerArn;createdAt;status;statusReason}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:AccessPreviewId.to_value));("analyzerArn",(Option.mapx.analyzerArn~f:AnalyzerArn.to_value));("createdAt",(Option.mapx.createdAt~f:Timestamp.to_value));("status",(Option.mapx.status~f:AccessPreviewStatus.to_value));("statusReason",(Option.mapx.statusReason~f:AccessPreviewStatusReason.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatusReason=(Option.map~f:AccessPreviewStatusReason.of_xml)(Xml.childxml_arg0"statusReason")inletstatus=(Option.map~f:AccessPreviewStatus.of_xml)(Xml.childxml_arg0"status")inletcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdAt")inletanalyzerArn=(Option.map~f:AnalyzerArn.of_xml)(Xml.childxml_arg0"analyzerArn")inletid=(Option.map~f:AccessPreviewId.of_xml)(Xml.childxml_arg0"id")inmake?statusReason?status?createdAt?analyzerArn?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatusReason=field_mapjson__"statusReason"AccessPreviewStatusReason.of_jsoninletstatus=field_mapjson__"status"AccessPreviewStatus.of_jsoninletcreatedAt=field_mapjson__"createdAt"Timestamp.of_jsoninletanalyzerArn=field_mapjson__"analyzerArn"AnalyzerArn.of_jsoninletid=field_mapjson__"id"AccessPreviewId.of_jsoninmake?statusReason?status?createdAt?analyzerArn?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains a summary of information about an access preview."]moduleAccessPreviewFinding=structtypenonrect={id:AccessPreviewFindingId.toption[@ocaml.doc"The ID of the access preview finding. This ID uniquely identifies the element in the list of access preview findings and is not related to the finding ID in Access Analyzer."];existingFindingId:FindingId.toption[@ocaml.doc"The existing ID of the finding in IAM Access Analyzer, provided only for existing findings."];existingFindingStatus:FindingStatus.toption[@ocaml.doc"The existing status of the finding, provided only for existing findings."];principal:PrincipalMap.toption[@ocaml.doc"The external principal that has access to a resource within the zone of trust."];action:ActionList.toption[@ocaml.doc"The action in the analyzed policy statement that an external principal has permission to perform."];condition:ConditionKeyMap.toption[@ocaml.doc"The condition in the analyzed policy statement that resulted in a finding."];resource:String_.toption[@ocaml.doc"The resource that an external principal has access to. This is the resource associated with the access preview."];isPublic:Boolean.toption[@ocaml.doc"Indicates whether the policy that generated the finding allows public access to the resource."];resourceType:ResourceType.toption[@ocaml.doc"The type of the resource that can be accessed in the finding."];createdAt:Timestamp.toption[@ocaml.doc"The time at which the access preview finding was created."];changeType:FindingChangeType.toption[@ocaml.doc"Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer. New - The finding is for newly-introduced access. Unchanged - The preview finding is an existing finding that would remain unchanged. Changed - The preview finding is an existing finding with a change in status. For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change."];status:FindingStatus.toption[@ocaml.doc"The preview status of the finding. This is what the status of the finding would be after permissions deployment. For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change."];resourceOwnerAccount:String_.toption[@ocaml.doc"The Amazon Web Services account ID that owns the resource. For most Amazon Web Services resources, the owning account is the account in which the resource was created."];error:String_.toption[@ocaml.doc"An error."];sources:FindingSourceList.toption[@ocaml.doc"The sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings."];resourceControlPolicyRestriction:ResourceControlPolicyRestriction.toption[@ocaml.doc"The type of restriction applied to the finding by the resource owner with an Organizations resource control policy (RCP)."]}letmake?id=fun?existingFindingId->fun?existingFindingStatus->fun?principal->fun?action->fun?condition->fun?resource->fun?isPublic->fun?resourceType->fun?createdAt->fun?changeType->fun?status->fun?resourceOwnerAccount->fun?error->fun?sources->fun?resourceControlPolicyRestriction->fun()->{id;existingFindingId;existingFindingStatus;principal;action;condition;resource;isPublic;resourceType;createdAt;changeType;status;resourceOwnerAccount;error;sources;resourceControlPolicyRestriction}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:AccessPreviewFindingId.to_value));("existingFindingId",(Option.mapx.existingFindingId~f:FindingId.to_value));("existingFindingStatus",(Option.mapx.existingFindingStatus~f:FindingStatus.to_value));("principal",(Option.mapx.principal~f:PrincipalMap.to_value));("action",(Option.mapx.action~f:ActionList.to_value));("condition",(Option.mapx.condition~f:ConditionKeyMap.to_value));("resource",(Option.mapx.resource~f:String_.to_value));("isPublic",(Option.mapx.isPublic~f:Boolean.to_value));("resourceType",(Option.mapx.resourceType~f:ResourceType.to_value));("createdAt",(Option.mapx.createdAt~f:Timestamp.to_value));("changeType",(Option.mapx.changeType~f:FindingChangeType.to_value));("status",(Option.mapx.status~f:FindingStatus.to_value));("resourceOwnerAccount",(Option.mapx.resourceOwnerAccount~f:String_.to_value));("error",(Option.mapx.error~f:String_.to_value));("sources",(Option.mapx.sources~f:FindingSourceList.to_value));("resourceControlPolicyRestriction",(Option.mapx.resourceControlPolicyRestriction~f:ResourceControlPolicyRestriction.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceControlPolicyRestriction=(Option.map~f:ResourceControlPolicyRestriction.of_xml)(Xml.childxml_arg0"resourceControlPolicyRestriction")inletsources=(Option.map~f:FindingSourceList.of_xml)(Xml.childxml_arg0"sources")inleterror=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"error")inletresourceOwnerAccount=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceOwnerAccount")inletstatus=(Option.map~f:FindingStatus.of_xml)(Xml.childxml_arg0"status")inletchangeType=(Option.map~f:FindingChangeType.of_xml)(Xml.childxml_arg0"changeType")inletcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdAt")inletresourceType=(Option.map~f:ResourceType.of_xml)(Xml.childxml_arg0"resourceType")inletisPublic=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isPublic")inletresource=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resource")inletcondition=(Option.map~f:ConditionKeyMap.of_xml)(Xml.childxml_arg0"condition")inletaction=(Option.map~f:ActionList.of_xml)(Xml.childxml_arg0"action")inletprincipal=(Option.map~f:PrincipalMap.of_xml)(Xml.childxml_arg0"principal")inletexistingFindingStatus=(Option.map~f:FindingStatus.of_xml)(Xml.childxml_arg0"existingFindingStatus")inletexistingFindingId=(Option.map~f:FindingId.of_xml)(Xml.childxml_arg0"existingFindingId")inletid=(Option.map~f:AccessPreviewFindingId.of_xml)(Xml.childxml_arg0"id")inmake?resourceControlPolicyRestriction?sources?error?resourceOwnerAccount?status?changeType?createdAt?resourceType?isPublic?resource?condition?action?principal?existingFindingStatus?existingFindingId?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceControlPolicyRestriction=field_mapjson__"resourceControlPolicyRestriction"ResourceControlPolicyRestriction.of_jsoninletsources=field_mapjson__"sources"FindingSourceList.of_jsoninleterror=field_mapjson__"error"String_.of_jsoninletresourceOwnerAccount=field_mapjson__"resourceOwnerAccount"String_.of_jsoninletstatus=field_mapjson__"status"FindingStatus.of_jsoninletchangeType=field_mapjson__"changeType"FindingChangeType.of_jsoninletcreatedAt=field_mapjson__"createdAt"Timestamp.of_jsoninletresourceType=field_mapjson__"resourceType"ResourceType.of_jsoninletisPublic=field_mapjson__"isPublic"Boolean.of_jsoninletresource=field_mapjson__"resource"String_.of_jsoninletcondition=field_mapjson__"condition"ConditionKeyMap.of_jsoninletaction=field_mapjson__"action"ActionList.of_jsoninletprincipal=field_mapjson__"principal"PrincipalMap.of_jsoninletexistingFindingStatus=field_mapjson__"existingFindingStatus"FindingStatus.of_jsoninletexistingFindingId=field_mapjson__"existingFindingId"FindingId.of_jsoninletid=field_mapjson__"id"AccessPreviewFindingId.of_jsoninmake?resourceControlPolicyRestriction?sources?error?resourceOwnerAccount?status?changeType?createdAt?resourceType?isPublic?resource?condition?action?principal?existingFindingStatus?existingFindingId?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An access preview finding generated by the access preview."]moduleGeneratedPolicyList=structtypenonrect=GeneratedPolicy.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:GeneratedPolicy.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:GeneratedPolicy.of_xml)letof_jsonj=list_of_json~kind:"GeneratedPolicyList"~of_json:GeneratedPolicy.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleGeneratedPolicyProperties=structtypenonrect={isComplete:Boolean.toption[@ocaml.doc"This value is set to true if the generated policy contains all possible actions for a service that IAM Access Analyzer identified from the CloudTrail trail that you specified, and false otherwise."];principalArn:PrincipalArn.toption[@ocaml.doc"The ARN of the IAM entity (user or role) for which you are generating a policy."];cloudTrailProperties:CloudTrailProperties.toption[@ocaml.doc"Lists details about the Trail used to generated policy."]}letmake?isComplete=fun?principalArn->fun?cloudTrailProperties->fun()->{isComplete;principalArn;cloudTrailProperties}letto_valuex=structure_to_value[("isComplete",(Option.mapx.isComplete~f:Boolean.to_value));("principalArn",(Option.mapx.principalArn~f:PrincipalArn.to_value));("cloudTrailProperties",(Option.mapx.cloudTrailProperties~f:CloudTrailProperties.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcloudTrailProperties=(Option.map~f:CloudTrailProperties.of_xml)(Xml.childxml_arg0"cloudTrailProperties")inletprincipalArn=(Option.map~f:PrincipalArn.of_xml)(Xml.childxml_arg0"principalArn")inletisComplete=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isComplete")inmake?cloudTrailProperties?principalArn?isComplete()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcloudTrailProperties=field_mapjson__"cloudTrailProperties"CloudTrailProperties.of_jsoninletprincipalArn=field_mapjson__"principalArn"PrincipalArn.of_jsoninletisComplete=field_mapjson__"isComplete"Boolean.of_jsoninmake?cloudTrailProperties?principalArn?isComplete()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the generated policy details."]moduleJobError=structtypenonrect={code:JobErrorCode.toption[@ocaml.doc"The job error code."];message:String_.toption[@ocaml.doc"Specific information about the error. For example, which service quota was exceeded or which resource was not found."]}letmake?code=fun?message->fun()->{code;message}letto_valuex=structure_to_value[("code",(Option.mapx.code~f:JobErrorCode.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:JobErrorCode.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"JobErrorCode.of_jsoninmake?message?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the details about the policy generation error."]moduleFindingsStatistics=structtypenonrect={externalAccessFindingsStatistics:ExternalAccessFindingsStatistics.toption[@ocaml.doc"The aggregate statistics for an external access analyzer."];internalAccessFindingsStatistics:InternalAccessFindingsStatistics.toption[@ocaml.doc"The aggregate statistics for an internal access analyzer. This includes information about active, archived, and resolved findings related to internal access within your Amazon Web Services organization or account."];unusedAccessFindingsStatistics:UnusedAccessFindingsStatistics.toption[@ocaml.doc"The aggregate statistics for an unused access analyzer."]}letmake?externalAccessFindingsStatistics=fun?internalAccessFindingsStatistics->fun?unusedAccessFindingsStatistics->fun()->{externalAccessFindingsStatistics;internalAccessFindingsStatistics;unusedAccessFindingsStatistics}letto_valuex=structure_to_value[("externalAccessFindingsStatistics",(Option.mapx.externalAccessFindingsStatistics~f:ExternalAccessFindingsStatistics.to_value));("internalAccessFindingsStatistics",(Option.mapx.internalAccessFindingsStatistics~f:InternalAccessFindingsStatistics.to_value));("unusedAccessFindingsStatistics",(Option.mapx.unusedAccessFindingsStatistics~f:UnusedAccessFindingsStatistics.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunusedAccessFindingsStatistics=(Option.map~f:UnusedAccessFindingsStatistics.of_xml)(Xml.childxml_arg0"unusedAccessFindingsStatistics")inletinternalAccessFindingsStatistics=(Option.map~f:InternalAccessFindingsStatistics.of_xml)(Xml.childxml_arg0"internalAccessFindingsStatistics")inletexternalAccessFindingsStatistics=(Option.map~f:ExternalAccessFindingsStatistics.of_xml)(Xml.childxml_arg0"externalAccessFindingsStatistics")inmake?unusedAccessFindingsStatistics?internalAccessFindingsStatistics?externalAccessFindingsStatistics()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunusedAccessFindingsStatistics=field_mapjson__"unusedAccessFindingsStatistics"UnusedAccessFindingsStatistics.of_jsoninletinternalAccessFindingsStatistics=field_mapjson__"internalAccessFindingsStatistics"InternalAccessFindingsStatistics.of_jsoninletexternalAccessFindingsStatistics=field_mapjson__"externalAccessFindingsStatistics"ExternalAccessFindingsStatistics.of_jsoninmake?unusedAccessFindingsStatistics?internalAccessFindingsStatistics?externalAccessFindingsStatistics()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about the aggregate statistics for an external or unused access analyzer. Only one parameter can be used in a FindingsStatistics object."]moduleFindingDetails=structtypenonrect={internalAccessDetails:InternalAccessDetails.toption[@ocaml.doc"The details for an internal access analyzer finding. This contains information about access patterns identified within your Amazon Web Services organization or account."];externalAccessDetails:ExternalAccessDetails.toption[@ocaml.doc"The details for an external access analyzer finding."];unusedPermissionDetails:UnusedPermissionDetails.toption[@ocaml.doc"The details for an unused access analyzer finding with an unused permission finding type."];unusedIamUserAccessKeyDetails:UnusedIamUserAccessKeyDetails.toption[@ocaml.doc"The details for an unused access analyzer finding with an unused IAM user access key finding type."];unusedIamRoleDetails:UnusedIamRoleDetails.toption[@ocaml.doc"The details for an unused access analyzer finding with an unused IAM role finding type."];unusedIamUserPasswordDetails:UnusedIamUserPasswordDetails.toption[@ocaml.doc"The details for an unused access analyzer finding with an unused IAM user password finding type."]}letmake?internalAccessDetails=fun?externalAccessDetails->fun?unusedPermissionDetails->fun?unusedIamUserAccessKeyDetails->fun?unusedIamRoleDetails->fun?unusedIamUserPasswordDetails->fun()->{internalAccessDetails;externalAccessDetails;unusedPermissionDetails;unusedIamUserAccessKeyDetails;unusedIamRoleDetails;unusedIamUserPasswordDetails}letto_valuex=structure_to_value[("internalAccessDetails",(Option.mapx.internalAccessDetails~f:InternalAccessDetails.to_value));("externalAccessDetails",(Option.mapx.externalAccessDetails~f:ExternalAccessDetails.to_value));("unusedPermissionDetails",(Option.mapx.unusedPermissionDetails~f:UnusedPermissionDetails.to_value));("unusedIamUserAccessKeyDetails",(Option.mapx.unusedIamUserAccessKeyDetails~f:UnusedIamUserAccessKeyDetails.to_value));("unusedIamRoleDetails",(Option.mapx.unusedIamRoleDetails~f:UnusedIamRoleDetails.to_value));("unusedIamUserPasswordDetails",(Option.mapx.unusedIamUserPasswordDetails~f:UnusedIamUserPasswordDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunusedIamUserPasswordDetails=(Option.map~f:UnusedIamUserPasswordDetails.of_xml)(Xml.childxml_arg0"unusedIamUserPasswordDetails")inletunusedIamRoleDetails=(Option.map~f:UnusedIamRoleDetails.of_xml)(Xml.childxml_arg0"unusedIamRoleDetails")inletunusedIamUserAccessKeyDetails=(Option.map~f:UnusedIamUserAccessKeyDetails.of_xml)(Xml.childxml_arg0"unusedIamUserAccessKeyDetails")inletunusedPermissionDetails=(Option.map~f:UnusedPermissionDetails.of_xml)(Xml.childxml_arg0"unusedPermissionDetails")inletexternalAccessDetails=(Option.map~f:ExternalAccessDetails.of_xml)(Xml.childxml_arg0"externalAccessDetails")inletinternalAccessDetails=(Option.map~f:InternalAccessDetails.of_xml)(Xml.childxml_arg0"internalAccessDetails")inmake?unusedIamUserPasswordDetails?unusedIamRoleDetails?unusedIamUserAccessKeyDetails?unusedPermissionDetails?externalAccessDetails?internalAccessDetails()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunusedIamUserPasswordDetails=field_mapjson__"unusedIamUserPasswordDetails"UnusedIamUserPasswordDetails.of_jsoninletunusedIamRoleDetails=field_mapjson__"unusedIamRoleDetails"UnusedIamRoleDetails.of_jsoninletunusedIamUserAccessKeyDetails=field_mapjson__"unusedIamUserAccessKeyDetails"UnusedIamUserAccessKeyDetails.of_jsoninletunusedPermissionDetails=field_mapjson__"unusedPermissionDetails"UnusedPermissionDetails.of_jsoninletexternalAccessDetails=field_mapjson__"externalAccessDetails"ExternalAccessDetails.of_jsoninletinternalAccessDetails=field_mapjson__"internalAccessDetails"InternalAccessDetails.of_jsoninmake?unusedIamUserPasswordDetails?unusedIamRoleDetails?unusedIamUserAccessKeyDetails?unusedPermissionDetails?externalAccessDetails?internalAccessDetails()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about an external access or unused access finding. Only one parameter can be used in a FindingDetails object."]moduleRecommendedStep=structtypenonrect={unusedPermissionsRecommendedStep:UnusedPermissionsRecommendedStep.toption[@ocaml.doc"A recommended step for an unused permissions finding."]}letmake?unusedPermissionsRecommendedStep=fun()->{unusedPermissionsRecommendedStep}letto_valuex=structure_to_value[("unusedPermissionsRecommendedStep",(Option.mapx.unusedPermissionsRecommendedStep~f:UnusedPermissionsRecommendedStep.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunusedPermissionsRecommendedStep=(Option.map~f:UnusedPermissionsRecommendedStep.of_xml)(Xml.childxml_arg0"unusedPermissionsRecommendedStep")inmake?unusedPermissionsRecommendedStep()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunusedPermissionsRecommendedStep=field_mapjson__"unusedPermissionsRecommendedStep"UnusedPermissionsRecommendedStep.of_jsoninmake?unusedPermissionsRecommendedStep()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about a recommended step for an unused access analyzer finding."]moduleSharedViaList=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:"SharedViaList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleConfigurationsMap=structtypenonrect=(ConfigurationsMapKey.t*Configuration.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types ConfigurationsMapKey Configuration"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(ConfigurationsMapKey.to_valuex)|>(funx->(Configuration.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:ConfigurationsMapKey.of_string~of_json:Configuration.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInlineArchiveRule=structtypenonrect={ruleName:Name.t[@ocaml.doc"The name of the rule."];filter:FilterCriteriaMap.t[@ocaml.doc"The condition and values for a criterion."]}letcontext_="InlineArchiveRule"letmake~ruleName=fun~filter->fun()->{ruleName;filter}letto_valuex=structure_to_value[("ruleName",(Some(Name.to_valuex.ruleName)));("filter",(Some(FilterCriteriaMap.to_valuex.filter)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfilter=FilterCriteriaMap.of_xml(Xml.child_exn~context:context_xml_arg0"filter")inletruleName=Name.of_xml(Xml.child_exn~context:context_xml_arg0"ruleName")inmake~filter~ruleName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfilter=field_map_exnjson__"filter"FilterCriteriaMap.of_jsoninletruleName=field_map_exnjson__"ruleName"Name.of_jsoninmake~filter~ruleName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An criterion statement in an archive rule. Each archive rule may have multiple criteria."]moduleReasonSummary=structtypenonrect={description:String_.toption[@ocaml.doc"A description of the reasoning of a result of checking for access."];statementIndex:Integer.toption[@ocaml.doc"The index number of the reason statement."];statementId:String_.toption[@ocaml.doc"The identifier for the reason statement."]}letmake?description=fun?statementIndex->fun?statementId->fun()->{description;statementIndex;statementId}letto_valuex=structure_to_value[("description",(Option.mapx.description~f:String_.to_value));("statementIndex",(Option.mapx.statementIndex~f:Integer.to_value));("statementId",(Option.mapx.statementId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatementId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"statementId")inletstatementIndex=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"statementIndex")inletdescription=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"description")inmake?statementId?statementIndex?description()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatementId=field_mapjson__"statementId"String_.of_jsoninletstatementIndex=field_mapjson__"statementIndex"Integer.of_jsoninletdescription=field_mapjson__"description"String_.of_jsoninmake?statementId?statementIndex?description()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about the reasoning why a check for access passed or failed."]moduleAccess=structtypenonrect={actions:AccessActionsList.toption[@ocaml.doc"A list of actions for the access permissions. Any strings that can be used as an action in an IAM policy can be used in the list of actions to check."];resources:AccessResourcesList.toption[@ocaml.doc"A list of resources for the access permissions. Any strings that can be used as an Amazon Resource Name (ARN) in an IAM policy can be used in the list of resources to check. You can only use a wildcard in the portion of the ARN that specifies the resource ID."]}letmake?actions=fun?resources->fun()->{actions;resources}letto_valuex=structure_to_value[("actions",(Option.mapx.actions~f:AccessActionsList.to_value));("resources",(Option.mapx.resources~f:AccessResourcesList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresources=(Option.map~f:AccessResourcesList.of_xml)(Xml.childxml_arg0"resources")inletactions=(Option.map~f:AccessActionsList.of_xml)(Xml.childxml_arg0"actions")inmake?resources?actions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresources=field_mapjson__"resources"AccessResourcesList.of_jsoninletactions=field_mapjson__"actions"AccessActionsList.of_jsoninmake?resources?actions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about actions and resources that define permissions to check against a policy."]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"You do not have sufficient access to perform this action."]moduleInternalServerException=structtypenonrect={message:String_.toption;retryAfterSeconds:Integer.toption[@ocaml.doc"The seconds to wait to retry."]}letmake?message=fun?retryAfterSeconds->fun()->{message;retryAfterSeconds}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("Retry-After",(Option.mapx.retryAfterSeconds~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretryAfterSeconds=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"Retry-After")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?retryAfterSeconds?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretryAfterSeconds=field_mapjson__"retryAfterSeconds"Integer.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?retryAfterSeconds?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Internal server error."]moduleThrottlingException=structtypenonrect={message:String_.toption;retryAfterSeconds:Integer.toption[@ocaml.doc"The seconds to wait to retry."]}letmake?message=fun?retryAfterSeconds->fun()->{message;retryAfterSeconds}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("Retry-After",(Option.mapx.retryAfterSeconds~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretryAfterSeconds=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"Retry-After")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?retryAfterSeconds?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretryAfterSeconds=field_mapjson__"retryAfterSeconds"Integer.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?retryAfterSeconds?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Throttling limit exceeded error."]moduleToken=structtypenonrect=stringletcontext_="Token"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:"Token"jletto_json=simple_to_jsonto_valueendmoduleValidatePolicyFindingList=structtypenonrect=ValidatePolicyFinding.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ValidatePolicyFinding.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:ValidatePolicyFinding.of_xml)letof_jsonj=list_of_json~kind:"ValidatePolicyFindingList"~of_json:ValidatePolicyFinding.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleValidationException=structtypenonrect={message:String_.toption;reason:ValidationExceptionReason.toption[@ocaml.doc"The reason for the exception."];fieldList:ValidationExceptionFieldList.toption[@ocaml.doc"A list of fields that didn't validate."]}letmake?message=fun?reason->fun?fieldList->fun()->{message;reason;fieldList}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("reason",(Option.mapx.reason~f:ValidationExceptionReason.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")inletreason=(Option.map~f:ValidationExceptionReason.of_xml)(Xml.childxml_arg0"reason")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?fieldList?reason?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfieldList=field_mapjson__"fieldList"ValidationExceptionFieldList.of_jsoninletreason=field_mapjson__"reason"ValidationExceptionReason.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?fieldList?reason?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Validation exception error."]moduleLocale=structtypenonrect=|DE|EN|ES|FR|IT|JA|KO|PT_BR|ZH_CN|ZH_TW|Non_static_idofstringletmakei=iletto_string=function|DE->"DE"|EN->"EN"|ES->"ES"|FR->"FR"|IT->"IT"|JA->"JA"|KO->"KO"|PT_BR->"PT_BR"|ZH_CN->"ZH_CN"|ZH_TW->"ZH_TW"|Non_static_ids->sletof_string=function|"DE"->DE|"EN"->EN|"ES"->ES|"FR"->FR|"IT"->IT|"JA"->JA|"KO"->KO|"PT_BR"->PT_BR|"ZH_CN"->ZH_CN|"ZH_TW"->ZH_TW|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 Locale"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Locale"j)letto_json=simple_to_jsonto_valueendmodulePolicyDocument=structtypenonrect=stringletcontext_="PolicyDocument"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:"PolicyDocument"jletto_json=simple_to_jsonto_valueendmodulePolicyType=structtypenonrect=|IDENTITY_POLICY|RESOURCE_POLICY|SERVICE_CONTROL_POLICY|RESOURCE_CONTROL_POLICY|Non_static_idofstringletmakei=iletto_string=function|IDENTITY_POLICY->"IDENTITY_POLICY"|RESOURCE_POLICY->"RESOURCE_POLICY"|SERVICE_CONTROL_POLICY->"SERVICE_CONTROL_POLICY"|RESOURCE_CONTROL_POLICY->"RESOURCE_CONTROL_POLICY"|Non_static_ids->sletof_string=function|"IDENTITY_POLICY"->IDENTITY_POLICY|"RESOURCE_POLICY"->RESOURCE_POLICY|"SERVICE_CONTROL_POLICY"->SERVICE_CONTROL_POLICY|"RESOURCE_CONTROL_POLICY"->RESOURCE_CONTROL_POLICY|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 PolicyType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PolicyType"j)letto_json=simple_to_jsonto_valueendmoduleValidatePolicyResourceType=structtypenonrect=|AWS__S3__Bucket|AWS__S3__AccessPoint|AWS__S3__MultiRegionAccessPoint|AWS__S3ObjectLambda__AccessPoint|AWS__IAM__AssumeRolePolicyDocument|AWS__DynamoDB__Table|Non_static_idofstringletmakei=iletto_string=function|AWS__S3__Bucket->"AWS::S3::Bucket"|AWS__S3__AccessPoint->"AWS::S3::AccessPoint"|AWS__S3__MultiRegionAccessPoint->"AWS::S3::MultiRegionAccessPoint"|AWS__S3ObjectLambda__AccessPoint->"AWS::S3ObjectLambda::AccessPoint"|AWS__IAM__AssumeRolePolicyDocument->"AWS::IAM::AssumeRolePolicyDocument"|AWS__DynamoDB__Table->"AWS::DynamoDB::Table"|Non_static_ids->sletof_string=function|"AWS::S3::Bucket"->AWS__S3__Bucket|"AWS::S3::AccessPoint"->AWS__S3__AccessPoint|"AWS::S3::MultiRegionAccessPoint"->AWS__S3__MultiRegionAccessPoint|"AWS::S3ObjectLambda::AccessPoint"->AWS__S3ObjectLambda__AccessPoint|"AWS::IAM::AssumeRolePolicyDocument"->AWS__IAM__AssumeRolePolicyDocument|"AWS::DynamoDB::Table"->AWS__DynamoDB__Table|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 ValidatePolicyResourceType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ValidatePolicyResourceType"j)letto_json=simple_to_jsonto_valueendmoduleFindingIdList=structtypenonrect=FindingId.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FindingId.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:FindingId.of_xml)letof_jsonj=list_of_json~kind:"FindingIdList"~of_json:FindingId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFindingStatusUpdate=structtypenonrect=|ACTIVE|ARCHIVED|Non_static_idofstringletmakei=iletto_string=function|ACTIVE->"ACTIVE"|ARCHIVED->"ARCHIVED"|Non_static_ids->sletof_string=function|"ACTIVE"->ACTIVE|"ARCHIVED"->ARCHIVED|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 FindingStatusUpdate"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FindingStatusUpdate"j)letto_json=simple_to_jsonto_valueendmoduleConflictException=structtypenonrect={message:String_.toption;resourceId:String_.toption[@ocaml.doc"The ID of the resource."];resourceType:String_.toption[@ocaml.doc"The resource type."]}letmake?message=fun?resourceId->fun?resourceType->fun()->{message;resourceId;resourceType}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("resourceId",(Option.mapx.resourceId~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")inletresourceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceId")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"resourceType"String_.of_jsoninletresourceId=field_mapjson__"resourceId"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A conflict exception error."]moduleResourceNotFoundException=structtypenonrect={message:String_.toption;resourceId:String_.toption[@ocaml.doc"The ID of the resource."];resourceType:String_.toption[@ocaml.doc"The type of the resource."]}letmake?message=fun?resourceId->fun?resourceType->fun()->{message;resourceId;resourceType}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("resourceId",(Option.mapx.resourceId~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")inletresourceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceId")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"resourceType"String_.of_jsoninletresourceId=field_mapjson__"resourceId"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified resource could not be found."]moduleTagKeys=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:"TagKeys"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceQuotaExceededException=structtypenonrect={message:String_.toption;resourceId:String_.toption[@ocaml.doc"The resource ID."];resourceType:String_.toption[@ocaml.doc"The resource type."]}letmake?message=fun?resourceId->fun?resourceType->fun()->{message;resourceId;resourceType}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("resourceId",(Option.mapx.resourceId~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")inletresourceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceId")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"resourceType"String_.of_jsoninletresourceId=field_mapjson__"resourceId"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Service quote met error."]moduleCloudTrailDetails=structtypenonrect={trails:TrailList.t[@ocaml.doc"A Trail object that contains settings for a trail."];accessRole:RoleArn.t[@ocaml.doc"The ARN of the service role that IAM Access Analyzer uses to access your CloudTrail trail and service last accessed information."];startTime:Timestamp.t[@ocaml.doc"The start of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp before this time are not considered to generate a policy."];endTime:Timestamp.toption[@ocaml.doc"The end of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp after this time are not considered to generate a policy. If this is not included in the request, the default value is the current time."]}letcontext_="CloudTrailDetails"letmake?endTime=fun~trails->fun~accessRole->fun~startTime->fun()->{endTime;trails;accessRole;startTime}letto_valuex=structure_to_value[("trails",(Some(TrailList.to_valuex.trails)));("accessRole",(Some(RoleArn.to_valuex.accessRole)));("startTime",(Some(Timestamp.to_valuex.startTime)));("endTime",(Option.mapx.endTime~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"endTime")inletstartTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"startTime")inletaccessRole=RoleArn.of_xml(Xml.child_exn~context:context_xml_arg0"accessRole")inlettrails=TrailList.of_xml(Xml.child_exn~context:context_xml_arg0"trails")inmake?endTime~startTime~accessRole~trails()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendTime=field_mapjson__"endTime"Timestamp.of_jsoninletstartTime=field_map_exnjson__"startTime"Timestamp.of_jsoninletaccessRole=field_map_exnjson__"accessRole"RoleArn.of_jsoninlettrails=field_map_exnjson__"trails"TrailList.of_jsoninmake?endTime~startTime~accessRole~trails()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about CloudTrail access."]modulePolicyGenerationDetails=structtypenonrect={principalArn:PrincipalArn.t[@ocaml.doc"The ARN of the IAM entity (user or role) for which you are generating a policy."]}letcontext_="PolicyGenerationDetails"letmake~principalArn=fun()->{principalArn}letto_valuex=structure_to_value[("principalArn",(Some(PrincipalArn.to_valuex.principalArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprincipalArn=PrincipalArn.of_xml(Xml.child_exn~context:context_xml_arg0"principalArn")inmake~principalArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprincipalArn=field_map_exnjson__"principalArn"PrincipalArn.of_jsoninmake~principalArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the ARN details about the IAM entity for which the policy is generated."]modulePolicyGenerationList=structtypenonrect=PolicyGeneration.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PolicyGeneration.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:PolicyGeneration.of_xml)letof_jsonj=list_of_json~kind:"PolicyGenerationList"~of_json:PolicyGeneration.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListPolicyGenerationsRequestMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith(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 ListPolicyGenerationsRequestMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleFindingsListV2=structtypenonrect=FindingSummaryV2.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FindingSummaryV2.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:FindingSummaryV2.of_xml)letof_jsonj=list_of_json~kind:"FindingsListV2"~of_json:FindingSummaryV2.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSortCriteria=structtypenonrect={attributeName:String_.toption[@ocaml.doc"The name of the attribute to sort on."];orderBy:OrderBy.toption[@ocaml.doc"The sort order, ascending or descending."]}letmake?attributeName=fun?orderBy->fun()->{attributeName;orderBy}letto_valuex=structure_to_value[("attributeName",(Option.mapx.attributeName~f:String_.to_value));("orderBy",(Option.mapx.orderBy~f:OrderBy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letorderBy=(Option.map~f:OrderBy.of_xml)(Xml.childxml_arg0"orderBy")inletattributeName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"attributeName")inmake?orderBy?attributeName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letorderBy=field_mapjson__"orderBy"OrderBy.of_jsoninletattributeName=field_mapjson__"attributeName"String_.of_jsoninmake?orderBy?attributeName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The criteria used to sort."]moduleFindingsList=structtypenonrect=FindingSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FindingSummary.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:FindingSummary.of_xml)letof_jsonj=list_of_json~kind:"FindingsList"~of_json:FindingSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleArchiveRulesList=structtypenonrect=ArchiveRuleSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ArchiveRuleSummary.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:ArchiveRuleSummary.of_xml)letof_jsonj=list_of_json~kind:"ArchiveRulesList"~of_json:ArchiveRuleSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAnalyzersList=structtypenonrect=AnalyzerSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AnalyzerSummary.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:AnalyzerSummary.of_xml)letof_jsonj=list_of_json~kind:"AnalyzersList"~of_json:AnalyzerSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAnalyzedResourcesList=structtypenonrect=AnalyzedResourceSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AnalyzedResourceSummary.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:AnalyzedResourceSummary.of_xml)letof_jsonj=list_of_json~kind:"AnalyzedResourcesList"~of_json:AnalyzedResourceSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccessPreviewsList=structtypenonrect=AccessPreviewSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AccessPreviewSummary.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:AccessPreviewSummary.of_xml)letof_jsonj=list_of_json~kind:"AccessPreviewsList"~of_json:AccessPreviewSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccessPreviewFindingsList=structtypenonrect=AccessPreviewFinding.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AccessPreviewFinding.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:AccessPreviewFinding.of_xml)letof_jsonj=list_of_json~kind:"AccessPreviewFindingsList"~of_json:AccessPreviewFinding.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleGeneratedPolicyResult=structtypenonrect={properties:GeneratedPolicyProperties.toption[@ocaml.doc"A GeneratedPolicyProperties object that contains properties of the generated policy."];generatedPolicies:GeneratedPolicyList.toption[@ocaml.doc"The text to use as the content for the new policy. The policy is created using the CreatePolicy action."]}letmake?properties=fun?generatedPolicies->fun()->{properties;generatedPolicies}letto_valuex=structure_to_value[("properties",(Option.mapx.properties~f:GeneratedPolicyProperties.to_value));("generatedPolicies",(Option.mapx.generatedPolicies~f:GeneratedPolicyList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgeneratedPolicies=(Option.map~f:GeneratedPolicyList.of_xml)(Xml.childxml_arg0"generatedPolicies")inletproperties=(Option.map~f:GeneratedPolicyProperties.of_xml)(Xml.childxml_arg0"properties")inmake?generatedPolicies?properties()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgeneratedPolicies=field_mapjson__"generatedPolicies"GeneratedPolicyList.of_jsoninletproperties=field_mapjson__"properties"GeneratedPolicyProperties.of_jsoninmake?generatedPolicies?properties()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the text for the generated policy and its details."]moduleJobDetails=structtypenonrect={jobId:JobId.toption[@ocaml.doc"The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request."];status:JobStatus.toption[@ocaml.doc"The status of the job request."];startedOn:Timestamp.toption[@ocaml.doc"A timestamp of when the job was started."];completedOn:Timestamp.toption[@ocaml.doc"A timestamp of when the job was completed."];jobError:JobError.toption[@ocaml.doc"The job error for the policy generation request."]}letmake?jobId=fun?status->fun?startedOn->fun?completedOn->fun?jobError->fun()->{jobId;status;startedOn;completedOn;jobError}letto_valuex=structure_to_value[("jobId",(Option.mapx.jobId~f:JobId.to_value));("status",(Option.mapx.status~f:JobStatus.to_value));("startedOn",(Option.mapx.startedOn~f:Timestamp.to_value));("completedOn",(Option.mapx.completedOn~f:Timestamp.to_value));("jobError",(Option.mapx.jobError~f:JobError.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobError=(Option.map~f:JobError.of_xml)(Xml.childxml_arg0"jobError")inletcompletedOn=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"completedOn")inletstartedOn=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"startedOn")inletstatus=(Option.map~f:JobStatus.of_xml)(Xml.childxml_arg0"status")inletjobId=(Option.map~f:JobId.of_xml)(Xml.childxml_arg0"jobId")inmake?jobError?completedOn?startedOn?status?jobId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobError=field_mapjson__"jobError"JobError.of_jsoninletcompletedOn=field_mapjson__"completedOn"Timestamp.of_jsoninletstartedOn=field_mapjson__"startedOn"Timestamp.of_jsoninletstatus=field_mapjson__"status"JobStatus.of_jsoninletjobId=field_mapjson__"jobId"JobId.of_jsoninmake?jobError?completedOn?startedOn?status?jobId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about the policy generation request."]moduleFindingsStatisticsList=structtypenonrect=FindingsStatistics.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FindingsStatistics.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:FindingsStatistics.of_xml)letof_jsonj=list_of_json~kind:"FindingsStatisticsList"~of_json:FindingsStatistics.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFindingDetailsList=structtypenonrect=FindingDetails.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FindingDetails.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:FindingDetails.of_xml)letof_jsonj=list_of_json~kind:"FindingDetailsList"~of_json:FindingDetails.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFinding=structtypenonrect={id:FindingId.toption[@ocaml.doc"The ID of the finding."];principal:PrincipalMap.toption[@ocaml.doc"The external principal that has access to a resource within the zone of trust."];action:ActionList.toption[@ocaml.doc"The action in the analyzed policy statement that an external principal has permission to use."];resource:String_.toption[@ocaml.doc"The resource that an external principal has access to."];isPublic:Boolean.toption[@ocaml.doc"Indicates whether the policy that generated the finding allows public access to the resource."];resourceType:ResourceType.toption[@ocaml.doc"The type of the resource identified in the finding."];condition:ConditionKeyMap.toption[@ocaml.doc"The condition in the analyzed policy statement that resulted in a finding."];createdAt:Timestamp.toption[@ocaml.doc"The time at which the finding was generated."];analyzedAt:Timestamp.toption[@ocaml.doc"The time at which the resource was analyzed."];updatedAt:Timestamp.toption[@ocaml.doc"The time at which the finding was updated."];status:FindingStatus.toption[@ocaml.doc"The current status of the finding."];resourceOwnerAccount:String_.toption[@ocaml.doc"The Amazon Web Services account ID that owns the resource."];error:String_.toption[@ocaml.doc"An error."];sources:FindingSourceList.toption[@ocaml.doc"The sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings."];resourceControlPolicyRestriction:ResourceControlPolicyRestriction.toption[@ocaml.doc"The type of restriction applied to the finding by the resource owner with an Organizations resource control policy (RCP)."]}letmake?id=fun?principal->fun?action->fun?resource->fun?isPublic->fun?resourceType->fun?condition->fun?createdAt->fun?analyzedAt->fun?updatedAt->fun?status->fun?resourceOwnerAccount->fun?error->fun?sources->fun?resourceControlPolicyRestriction->fun()->{id;principal;action;resource;isPublic;resourceType;condition;createdAt;analyzedAt;updatedAt;status;resourceOwnerAccount;error;sources;resourceControlPolicyRestriction}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:FindingId.to_value));("principal",(Option.mapx.principal~f:PrincipalMap.to_value));("action",(Option.mapx.action~f:ActionList.to_value));("resource",(Option.mapx.resource~f:String_.to_value));("isPublic",(Option.mapx.isPublic~f:Boolean.to_value));("resourceType",(Option.mapx.resourceType~f:ResourceType.to_value));("condition",(Option.mapx.condition~f:ConditionKeyMap.to_value));("createdAt",(Option.mapx.createdAt~f:Timestamp.to_value));("analyzedAt",(Option.mapx.analyzedAt~f:Timestamp.to_value));("updatedAt",(Option.mapx.updatedAt~f:Timestamp.to_value));("status",(Option.mapx.status~f:FindingStatus.to_value));("resourceOwnerAccount",(Option.mapx.resourceOwnerAccount~f:String_.to_value));("error",(Option.mapx.error~f:String_.to_value));("sources",(Option.mapx.sources~f:FindingSourceList.to_value));("resourceControlPolicyRestriction",(Option.mapx.resourceControlPolicyRestriction~f:ResourceControlPolicyRestriction.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceControlPolicyRestriction=(Option.map~f:ResourceControlPolicyRestriction.of_xml)(Xml.childxml_arg0"resourceControlPolicyRestriction")inletsources=(Option.map~f:FindingSourceList.of_xml)(Xml.childxml_arg0"sources")inleterror=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"error")inletresourceOwnerAccount=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceOwnerAccount")inletstatus=(Option.map~f:FindingStatus.of_xml)(Xml.childxml_arg0"status")inletupdatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"updatedAt")inletanalyzedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"analyzedAt")inletcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdAt")inletcondition=(Option.map~f:ConditionKeyMap.of_xml)(Xml.childxml_arg0"condition")inletresourceType=(Option.map~f:ResourceType.of_xml)(Xml.childxml_arg0"resourceType")inletisPublic=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isPublic")inletresource=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resource")inletaction=(Option.map~f:ActionList.of_xml)(Xml.childxml_arg0"action")inletprincipal=(Option.map~f:PrincipalMap.of_xml)(Xml.childxml_arg0"principal")inletid=(Option.map~f:FindingId.of_xml)(Xml.childxml_arg0"id")inmake?resourceControlPolicyRestriction?sources?error?resourceOwnerAccount?status?updatedAt?analyzedAt?createdAt?condition?resourceType?isPublic?resource?action?principal?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceControlPolicyRestriction=field_mapjson__"resourceControlPolicyRestriction"ResourceControlPolicyRestriction.of_jsoninletsources=field_mapjson__"sources"FindingSourceList.of_jsoninleterror=field_mapjson__"error"String_.of_jsoninletresourceOwnerAccount=field_mapjson__"resourceOwnerAccount"String_.of_jsoninletstatus=field_mapjson__"status"FindingStatus.of_jsoninletupdatedAt=field_mapjson__"updatedAt"Timestamp.of_jsoninletanalyzedAt=field_mapjson__"analyzedAt"Timestamp.of_jsoninletcreatedAt=field_mapjson__"createdAt"Timestamp.of_jsoninletcondition=field_mapjson__"condition"ConditionKeyMap.of_jsoninletresourceType=field_mapjson__"resourceType"ResourceType.of_jsoninletisPublic=field_mapjson__"isPublic"Boolean.of_jsoninletresource=field_mapjson__"resource"String_.of_jsoninletaction=field_mapjson__"action"ActionList.of_jsoninletprincipal=field_mapjson__"principal"PrincipalMap.of_jsoninletid=field_mapjson__"id"FindingId.of_jsoninmake?resourceControlPolicyRestriction?sources?error?resourceOwnerAccount?status?updatedAt?analyzedAt?createdAt?condition?resourceType?isPublic?resource?action?principal?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about a finding."]moduleRecommendationError=structtypenonrect={code:String_.toption[@ocaml.doc"The error code for a failed retrieval of a recommendation for a finding."];message:String_.toption[@ocaml.doc"The error message for a failed retrieval of a recommendation for a finding."]}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 the reason that the retrieval of a recommendation for a finding failed."]moduleRecommendationType=structtypenonrect=|UnusedPermissionRecommendation|Non_static_idofstringletmakei=iletto_string=function|UnusedPermissionRecommendation->"UnusedPermissionRecommendation"|Non_static_ids->sletof_string=function|"UnusedPermissionRecommendation"->UnusedPermissionRecommendation|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 RecommendationType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RecommendationType"j)letto_json=simple_to_jsonto_valueendmoduleRecommendedStepList=structtypenonrect=RecommendedStep.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RecommendedStep.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:RecommendedStep.of_xml)letof_jsonj=list_of_json~kind:"RecommendedStepList"~of_json:RecommendedStep.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleStatus=structtypenonrect=|SUCCEEDED|FAILED|IN_PROGRESS|Non_static_idofstringletmakei=iletto_string=function|SUCCEEDED->"SUCCEEDED"|FAILED->"FAILED"|IN_PROGRESS->"IN_PROGRESS"|Non_static_ids->sletof_string=function|"SUCCEEDED"->SUCCEEDED|"FAILED"->FAILED|"IN_PROGRESS"->IN_PROGRESS|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 Status"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Status"j)letto_json=simple_to_jsonto_valueendmoduleGetFindingRecommendationRequestIdString=structtypenonrect=stringletcontext_="GetFindingRecommendationRequestIdString"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:"GetFindingRecommendationRequestIdString"jletto_json=simple_to_jsonto_valueendmoduleGetFindingRecommendationRequestMaxResultsInteger=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 GetFindingRecommendationRequestMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleAnalyzedResource=structtypenonrect={resourceArn:ResourceArn.toption[@ocaml.doc"The ARN of the resource that was analyzed."];resourceType:ResourceType.toption[@ocaml.doc"The type of the resource that was analyzed."];createdAt:Timestamp.toption[@ocaml.doc"The time at which the finding was created."];analyzedAt:Timestamp.toption[@ocaml.doc"The time at which the resource was analyzed."];updatedAt:Timestamp.toption[@ocaml.doc"The time at which the finding was updated."];isPublic:Boolean.toption[@ocaml.doc"Indicates whether the policy that generated the finding grants public access to the resource."];actions:ActionList.toption[@ocaml.doc"The actions that an external principal is granted permission to use by the policy that generated the finding."];sharedVia:SharedViaList.toption[@ocaml.doc"Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings."];status:FindingStatus.toption[@ocaml.doc"The current status of the finding generated from the analyzed resource."];resourceOwnerAccount:String_.toption[@ocaml.doc"The Amazon Web Services account ID that owns the resource."];error:String_.toption[@ocaml.doc"An error message."]}letmake?resourceArn=fun?resourceType->fun?createdAt->fun?analyzedAt->fun?updatedAt->fun?isPublic->fun?actions->fun?sharedVia->fun?status->fun?resourceOwnerAccount->fun?error->fun()->{resourceArn;resourceType;createdAt;analyzedAt;updatedAt;isPublic;actions;sharedVia;status;resourceOwnerAccount;error}letto_valuex=structure_to_value[("resourceArn",(Option.mapx.resourceArn~f:ResourceArn.to_value));("resourceType",(Option.mapx.resourceType~f:ResourceType.to_value));("createdAt",(Option.mapx.createdAt~f:Timestamp.to_value));("analyzedAt",(Option.mapx.analyzedAt~f:Timestamp.to_value));("updatedAt",(Option.mapx.updatedAt~f:Timestamp.to_value));("isPublic",(Option.mapx.isPublic~f:Boolean.to_value));("actions",(Option.mapx.actions~f:ActionList.to_value));("sharedVia",(Option.mapx.sharedVia~f:SharedViaList.to_value));("status",(Option.mapx.status~f:FindingStatus.to_value));("resourceOwnerAccount",(Option.mapx.resourceOwnerAccount~f:String_.to_value));("error",(Option.mapx.error~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterror=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"error")inletresourceOwnerAccount=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceOwnerAccount")inletstatus=(Option.map~f:FindingStatus.of_xml)(Xml.childxml_arg0"status")inletsharedVia=(Option.map~f:SharedViaList.of_xml)(Xml.childxml_arg0"sharedVia")inletactions=(Option.map~f:ActionList.of_xml)(Xml.childxml_arg0"actions")inletisPublic=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isPublic")inletupdatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"updatedAt")inletanalyzedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"analyzedAt")inletcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdAt")inletresourceType=(Option.map~f:ResourceType.of_xml)(Xml.childxml_arg0"resourceType")inletresourceArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"resourceArn")inmake?error?resourceOwnerAccount?status?sharedVia?actions?isPublic?updatedAt?analyzedAt?createdAt?resourceType?resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterror=field_mapjson__"error"String_.of_jsoninletresourceOwnerAccount=field_mapjson__"resourceOwnerAccount"String_.of_jsoninletstatus=field_mapjson__"status"FindingStatus.of_jsoninletsharedVia=field_mapjson__"sharedVia"SharedViaList.of_jsoninletactions=field_mapjson__"actions"ActionList.of_jsoninletisPublic=field_mapjson__"isPublic"Boolean.of_jsoninletupdatedAt=field_mapjson__"updatedAt"Timestamp.of_jsoninletanalyzedAt=field_mapjson__"analyzedAt"Timestamp.of_jsoninletcreatedAt=field_mapjson__"createdAt"Timestamp.of_jsoninletresourceType=field_mapjson__"resourceType"ResourceType.of_jsoninletresourceArn=field_mapjson__"resourceArn"ResourceArn.of_jsoninmake?error?resourceOwnerAccount?status?sharedVia?actions?isPublic?updatedAt?analyzedAt?createdAt?resourceType?resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about the analyzed resource."]moduleAccessPreview=structtypenonrect={id:AccessPreviewId.toption[@ocaml.doc"The unique ID for the access preview."];analyzerArn:AnalyzerArn.toption[@ocaml.doc"The ARN of the analyzer used to generate the access preview."];configurations:ConfigurationsMap.toption[@ocaml.doc"A map of resource ARNs for the proposed resource configuration."];createdAt:Timestamp.toption[@ocaml.doc"The time at which the access preview was created."];status:AccessPreviewStatus.toption[@ocaml.doc"The status of the access preview. Creating - The access preview creation is in progress. Completed - The access preview is complete. You can preview findings for external access to the resource. Failed - The access preview creation has failed."];statusReason:AccessPreviewStatusReason.toption[@ocaml.doc"Provides more details about the current status of the access preview. For example, if the creation of the access preview fails, a Failed status is returned. This failure can be due to an internal issue with the analysis or due to an invalid resource configuration."]}letmake?id=fun?analyzerArn->fun?configurations->fun?createdAt->fun?status->fun?statusReason->fun()->{id;analyzerArn;configurations;createdAt;status;statusReason}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:AccessPreviewId.to_value));("analyzerArn",(Option.mapx.analyzerArn~f:AnalyzerArn.to_value));("configurations",(Option.mapx.configurations~f:ConfigurationsMap.to_value));("createdAt",(Option.mapx.createdAt~f:Timestamp.to_value));("status",(Option.mapx.status~f:AccessPreviewStatus.to_value));("statusReason",(Option.mapx.statusReason~f:AccessPreviewStatusReason.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatusReason=(Option.map~f:AccessPreviewStatusReason.of_xml)(Xml.childxml_arg0"statusReason")inletstatus=(Option.map~f:AccessPreviewStatus.of_xml)(Xml.childxml_arg0"status")inletcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdAt")inletconfigurations=(Option.map~f:ConfigurationsMap.of_xml)(Xml.childxml_arg0"configurations")inletanalyzerArn=(Option.map~f:AnalyzerArn.of_xml)(Xml.childxml_arg0"analyzerArn")inletid=(Option.map~f:AccessPreviewId.of_xml)(Xml.childxml_arg0"id")inmake?statusReason?status?createdAt?configurations?analyzerArn?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatusReason=field_mapjson__"statusReason"AccessPreviewStatusReason.of_jsoninletstatus=field_mapjson__"status"AccessPreviewStatus.of_jsoninletcreatedAt=field_mapjson__"createdAt"Timestamp.of_jsoninletconfigurations=field_mapjson__"configurations"ConfigurationsMap.of_jsoninletanalyzerArn=field_mapjson__"analyzerArn"AnalyzerArn.of_jsoninletid=field_mapjson__"id"AccessPreviewId.of_jsoninmake?statusReason?status?createdAt?configurations?analyzerArn?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about an access preview."]moduleGenerateFindingRecommendationRequestIdString=structtypenonrect=stringletcontext_="GenerateFindingRecommendationRequestIdString"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:"GenerateFindingRecommendationRequestIdString"jletto_json=simple_to_jsonto_valueendmoduleInlineArchiveRulesList=structtypenonrect=InlineArchiveRule.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:InlineArchiveRule.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:InlineArchiveRule.of_xml)letof_jsonj=list_of_json~kind:"InlineArchiveRulesList"~of_json:InlineArchiveRule.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCheckNoPublicAccessResult=structtypenonrect=|PASS|FAIL|Non_static_idofstringletmakei=iletto_string=function|PASS->"PASS"|FAIL->"FAIL"|Non_static_ids->sletof_string=function|"PASS"->PASS|"FAIL"->FAIL|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 CheckNoPublicAccessResult"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CheckNoPublicAccessResult"j)letto_json=simple_to_jsonto_valueendmoduleInvalidParameterException=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 specified parameter is invalid."]moduleReasonSummaryList=structtypenonrect=ReasonSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ReasonSummary.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:ReasonSummary.of_xml)letof_jsonj=list_of_json~kind:"ReasonSummaryList"~of_json:ReasonSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUnprocessableEntityException=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 specified entity could not be processed."]moduleAccessCheckPolicyDocument=structtypenonrect=stringletcontext_="AccessCheckPolicyDocument"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:"AccessCheckPolicyDocument"jletto_json=simple_to_jsonto_valueendmoduleAccessCheckResourceType=structtypenonrect=|AWS__DynamoDB__Table|AWS__DynamoDB__Stream|AWS__EFS__FileSystem|AWS__OpenSearchService__Domain|AWS__Kinesis__Stream|AWS__Kinesis__StreamConsumer|AWS__KMS__Key|AWS__Lambda__Function|AWS__S3__Bucket|AWS__S3__AccessPoint|AWS__S3Express__DirectoryBucket|AWS__S3__Glacier|AWS__S3Outposts__Bucket|AWS__S3Outposts__AccessPoint|AWS__SecretsManager__Secret|AWS__SNS__Topic|AWS__SQS__Queue|AWS__IAM__AssumeRolePolicyDocument|AWS__S3Tables__TableBucket|AWS__ApiGateway__RestApi|AWS__CodeArtifact__Domain|AWS__Backup__BackupVault|AWS__CloudTrail__Dashboard|AWS__CloudTrail__EventDataStore|AWS__S3Tables__Table|AWS__S3Express__AccessPoint|Non_static_idofstringletmakei=iletto_string=function|AWS__DynamoDB__Table->"AWS::DynamoDB::Table"|AWS__DynamoDB__Stream->"AWS::DynamoDB::Stream"|AWS__EFS__FileSystem->"AWS::EFS::FileSystem"|AWS__OpenSearchService__Domain->"AWS::OpenSearchService::Domain"|AWS__Kinesis__Stream->"AWS::Kinesis::Stream"|AWS__Kinesis__StreamConsumer->"AWS::Kinesis::StreamConsumer"|AWS__KMS__Key->"AWS::KMS::Key"|AWS__Lambda__Function->"AWS::Lambda::Function"|AWS__S3__Bucket->"AWS::S3::Bucket"|AWS__S3__AccessPoint->"AWS::S3::AccessPoint"|AWS__S3Express__DirectoryBucket->"AWS::S3Express::DirectoryBucket"|AWS__S3__Glacier->"AWS::S3::Glacier"|AWS__S3Outposts__Bucket->"AWS::S3Outposts::Bucket"|AWS__S3Outposts__AccessPoint->"AWS::S3Outposts::AccessPoint"|AWS__SecretsManager__Secret->"AWS::SecretsManager::Secret"|AWS__SNS__Topic->"AWS::SNS::Topic"|AWS__SQS__Queue->"AWS::SQS::Queue"|AWS__IAM__AssumeRolePolicyDocument->"AWS::IAM::AssumeRolePolicyDocument"|AWS__S3Tables__TableBucket->"AWS::S3Tables::TableBucket"|AWS__ApiGateway__RestApi->"AWS::ApiGateway::RestApi"|AWS__CodeArtifact__Domain->"AWS::CodeArtifact::Domain"|AWS__Backup__BackupVault->"AWS::Backup::BackupVault"|AWS__CloudTrail__Dashboard->"AWS::CloudTrail::Dashboard"|AWS__CloudTrail__EventDataStore->"AWS::CloudTrail::EventDataStore"|AWS__S3Tables__Table->"AWS::S3Tables::Table"|AWS__S3Express__AccessPoint->"AWS::S3Express::AccessPoint"|Non_static_ids->sletof_string=function|"AWS::DynamoDB::Table"->AWS__DynamoDB__Table|"AWS::DynamoDB::Stream"->AWS__DynamoDB__Stream|"AWS::EFS::FileSystem"->AWS__EFS__FileSystem|"AWS::OpenSearchService::Domain"->AWS__OpenSearchService__Domain|"AWS::Kinesis::Stream"->AWS__Kinesis__Stream|"AWS::Kinesis::StreamConsumer"->AWS__Kinesis__StreamConsumer|"AWS::KMS::Key"->AWS__KMS__Key|"AWS::Lambda::Function"->AWS__Lambda__Function|"AWS::S3::Bucket"->AWS__S3__Bucket|"AWS::S3::AccessPoint"->AWS__S3__AccessPoint|"AWS::S3Express::DirectoryBucket"->AWS__S3Express__DirectoryBucket|"AWS::S3::Glacier"->AWS__S3__Glacier|"AWS::S3Outposts::Bucket"->AWS__S3Outposts__Bucket|"AWS::S3Outposts::AccessPoint"->AWS__S3Outposts__AccessPoint|"AWS::SecretsManager::Secret"->AWS__SecretsManager__Secret|"AWS::SNS::Topic"->AWS__SNS__Topic|"AWS::SQS::Queue"->AWS__SQS__Queue|"AWS::IAM::AssumeRolePolicyDocument"->AWS__IAM__AssumeRolePolicyDocument|"AWS::S3Tables::TableBucket"->AWS__S3Tables__TableBucket|"AWS::ApiGateway::RestApi"->AWS__ApiGateway__RestApi|"AWS::CodeArtifact::Domain"->AWS__CodeArtifact__Domain|"AWS::Backup::BackupVault"->AWS__Backup__BackupVault|"AWS::CloudTrail::Dashboard"->AWS__CloudTrail__Dashboard|"AWS::CloudTrail::EventDataStore"->AWS__CloudTrail__EventDataStore|"AWS::S3Tables::Table"->AWS__S3Tables__Table|"AWS::S3Express::AccessPoint"->AWS__S3Express__AccessPoint|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 AccessCheckResourceType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AccessCheckResourceType"j)letto_json=simple_to_jsonto_valueendmoduleCheckNoNewAccessResult=structtypenonrect=|PASS|FAIL|Non_static_idofstringletmakei=iletto_string=function|PASS->"PASS"|FAIL->"FAIL"|Non_static_ids->sletof_string=function|"PASS"->PASS|"FAIL"->FAIL|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 CheckNoNewAccessResult"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CheckNoNewAccessResult"j)letto_json=simple_to_jsonto_valueendmoduleAccessCheckPolicyType=structtypenonrect=|IDENTITY_POLICY|RESOURCE_POLICY|Non_static_idofstringletmakei=iletto_string=function|IDENTITY_POLICY->"IDENTITY_POLICY"|RESOURCE_POLICY->"RESOURCE_POLICY"|Non_static_ids->sletof_string=function|"IDENTITY_POLICY"->IDENTITY_POLICY|"RESOURCE_POLICY"->RESOURCE_POLICY|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 AccessCheckPolicyType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AccessCheckPolicyType"j)letto_json=simple_to_jsonto_valueendmoduleCheckAccessNotGrantedResult=structtypenonrect=|PASS|FAIL|Non_static_idofstringletmakei=iletto_string=function|PASS->"PASS"|FAIL->"FAIL"|Non_static_ids->sletof_string=function|"PASS"->PASS|"FAIL"->FAIL|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 CheckAccessNotGrantedResult"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CheckAccessNotGrantedResult"j)letto_json=simple_to_jsonto_valueendmoduleCheckAccessNotGrantedRequestAccessList=structtypenonrect=Access.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:Access.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:Access.of_xml)letof_jsonj=list_of_json~kind:"CheckAccessNotGrantedRequestAccessList"~of_json:Access.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleValidatePolicyResponse=structtypenonrect={findings:ValidatePolicyFindingList.toption[@ocaml.doc"The list of findings in a policy returned by IAM Access Analyzer based on its suite of policy checks."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?findings=fun?nextToken->fun()->{findings;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[("findings",(Option.mapx.findings~f:ValidatePolicyFindingList.to_value));("nextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletfindings=(Option.map~f:ValidatePolicyFindingList.of_xml)(Xml.childxml_arg0"findings")inmake?nextToken?findings()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"Token.of_jsoninletfindings=field_mapjson__"findings"ValidatePolicyFindingList.of_jsoninmake?nextToken?findings()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Requests the validation of a policy and returns a list of findings. The findings help you identify issues and provide actionable recommendations to resolve the issue and enable you to author functional policies that meet security best practices."]moduleValidatePolicyRequest=structtypenonrect={locale:Locale.toption[@ocaml.doc"The locale to use for localizing the findings."];maxResults:Integer.toption[@ocaml.doc"The maximum number of results to return in the response."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."];policyDocument:PolicyDocument.t[@ocaml.doc"The JSON policy document to use as the content for the policy."];policyType:PolicyType.t[@ocaml.doc"The type of policy to validate. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups. Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy. Service control policies (SCPs) are a type of organization policy attached to an Amazon Web Services organization, organizational unit (OU), or an account."];validatePolicyResourceType:ValidatePolicyResourceType.toption[@ocaml.doc"The type of resource to attach to your resource policy. Specify a value for the policy validation resource type only if the policy type is RESOURCE_POLICY. For example, to validate a resource policy to attach to an Amazon S3 bucket, you can choose AWS::S3::Bucket for the policy validation resource type. For resource types not supported as valid values, IAM Access Analyzer runs policy checks that apply to all resource policies. For example, to validate a resource policy to attach to a KMS key, do not specify a value for the policy validation resource type and IAM Access Analyzer will run policy checks that apply to all resource policies."]}letcontext_="ValidatePolicyRequest"letmake?locale=fun?maxResults->fun?nextToken->fun?validatePolicyResourceType->fun~policyDocument->fun~policyType->fun()->{locale;maxResults;nextToken;validatePolicyResourceType;policyDocument;policyType}letto_valuex=structure_to_value[("locale",(Option.mapx.locale~f:Locale.to_value));("maxResults",(Option.mapx.maxResults~f:Integer.to_value));("nextToken",(Option.mapx.nextToken~f:Token.to_value));("policyDocument",(Some(PolicyDocument.to_valuex.policyDocument)));("policyType",(Some(PolicyType.to_valuex.policyType)));("validatePolicyResourceType",(Option.mapx.validatePolicyResourceType~f:ValidatePolicyResourceType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalidatePolicyResourceType=(Option.map~f:ValidatePolicyResourceType.of_xml)(Xml.childxml_arg0"validatePolicyResourceType")inletpolicyType=PolicyType.of_xml(Xml.child_exn~context:context_xml_arg0"policyType")inletpolicyDocument=PolicyDocument.of_xml(Xml.child_exn~context:context_xml_arg0"policyDocument")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxResults")inletlocale=(Option.map~f:Locale.of_xml)(Xml.childxml_arg0"locale")inmake?validatePolicyResourceType~policyType~policyDocument?nextToken?maxResults?locale()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalidatePolicyResourceType=field_mapjson__"validatePolicyResourceType"ValidatePolicyResourceType.of_jsoninletpolicyType=field_map_exnjson__"policyType"PolicyType.of_jsoninletpolicyDocument=field_map_exnjson__"policyDocument"PolicyDocument.of_jsoninletnextToken=field_mapjson__"nextToken"Token.of_jsoninletmaxResults=field_mapjson__"maxResults"Integer.of_jsoninletlocale=field_mapjson__"locale"Locale.of_jsoninmake?validatePolicyResourceType~policyType~policyDocument?nextToken?maxResults?locale()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Requests the validation of a policy and returns a list of findings. The findings help you identify issues and provide actionable recommendations to resolve the issue and enable you to author functional policies that meet security best practices."]moduleUpdateFindingsRequest=structtypenonrect={analyzerArn:AnalyzerArn.t[@ocaml.doc"The ARN of the analyzer that generated the findings to update."];status:FindingStatusUpdate.t[@ocaml.doc"The state represents the action to take to update the finding Status. Use ARCHIVE to change an Active finding to an Archived finding. Use ACTIVE to change an Archived finding to an Active finding."];ids:FindingIdList.toption[@ocaml.doc"The IDs of the findings to update."];resourceArn:ResourceArn.toption[@ocaml.doc"The ARN of the resource identified in the finding."];clientToken:String_.toption[@ocaml.doc"A client token."]}letcontext_="UpdateFindingsRequest"letmake?ids=fun?resourceArn->fun?clientToken->fun~analyzerArn->fun~status->fun()->{ids;resourceArn;clientToken;analyzerArn;status}letto_valuex=structure_to_value[("analyzerArn",(Some(AnalyzerArn.to_valuex.analyzerArn)));("status",(Some(FindingStatusUpdate.to_valuex.status)));("ids",(Option.mapx.ids~f:FindingIdList.to_value));("resourceArn",(Option.mapx.resourceArn~f:ResourceArn.to_value));("clientToken",(Option.mapx.clientToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inletresourceArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"resourceArn")inletids=(Option.map~f:FindingIdList.of_xml)(Xml.childxml_arg0"ids")inletstatus=FindingStatusUpdate.of_xml(Xml.child_exn~context:context_xml_arg0"status")inletanalyzerArn=AnalyzerArn.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerArn")inmake?clientToken?resourceArn?ids~status~analyzerArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"String_.of_jsoninletresourceArn=field_mapjson__"resourceArn"ResourceArn.of_jsoninletids=field_mapjson__"ids"FindingIdList.of_jsoninletstatus=field_map_exnjson__"status"FindingStatusUpdate.of_jsoninletanalyzerArn=field_map_exnjson__"analyzerArn"AnalyzerArn.of_jsoninmake?clientToken?resourceArn?ids~status~analyzerArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates findings with the new values provided in the request."]moduleUpdateArchiveRuleRequest=structtypenonrect={analyzerName:Name.t[@ocaml.doc"The name of the analyzer to update the archive rules for."];ruleName:Name.t[@ocaml.doc"The name of the rule to update."];filter:FilterCriteriaMap.t[@ocaml.doc"A filter to match for the rules to update. Only rules that match the filter are updated."];clientToken:String_.toption[@ocaml.doc"A client token."]}letcontext_="UpdateArchiveRuleRequest"letmake?clientToken=fun~analyzerName->fun~ruleName->fun~filter->fun()->{clientToken;analyzerName;ruleName;filter}letto_valuex=structure_to_value[("analyzerName",(Some(Name.to_valuex.analyzerName)));("ruleName",(Some(Name.to_valuex.ruleName)));("filter",(Some(FilterCriteriaMap.to_valuex.filter)));("clientToken",(Option.mapx.clientToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inletfilter=FilterCriteriaMap.of_xml(Xml.child_exn~context:context_xml_arg0"filter")inletruleName=Name.of_xml(Xml.child_exn~context:context_xml_arg0"ruleName")inletanalyzerName=Name.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerName")inmake?clientToken~filter~ruleName~analyzerName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"String_.of_jsoninletfilter=field_map_exnjson__"filter"FilterCriteriaMap.of_jsoninletruleName=field_map_exnjson__"ruleName"Name.of_jsoninletanalyzerName=field_map_exnjson__"analyzerName"Name.of_jsoninmake?clientToken~filter~ruleName~analyzerName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the specified archive rule."]moduleUpdateAnalyzerResponse=structtypenonrect={configuration:AnalyzerConfiguration.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?configuration=fun()->{configuration}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.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)|"ConflictException"->`ConflictException(ConflictException.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))]|`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))]|`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[("configuration",(Option.mapx.configuration~f:AnalyzerConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconfiguration=(Option.map~f:AnalyzerConfiguration.of_xml)(Xml.childxml_arg0"configuration")inmake?configuration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconfiguration=field_mapjson__"configuration"AnalyzerConfiguration.of_jsoninmake?configuration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the configuration of an existing analyzer. This action is not supported for external access analyzers."]moduleUpdateAnalyzerRequest=structtypenonrect={analyzerName:Name.t[@ocaml.doc"The name of the analyzer to modify."];configuration:AnalyzerConfiguration.toption}letcontext_="UpdateAnalyzerRequest"letmake?configuration=fun~analyzerName->fun()->{configuration;analyzerName}letto_valuex=structure_to_value[("analyzerName",(Some(Name.to_valuex.analyzerName)));("configuration",(Option.mapx.configuration~f:AnalyzerConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconfiguration=(Option.map~f:AnalyzerConfiguration.of_xml)(Xml.childxml_arg0"configuration")inletanalyzerName=Name.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerName")inmake?configuration~analyzerName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconfiguration=field_mapjson__"configuration"AnalyzerConfiguration.of_jsoninletanalyzerName=field_map_exnjson__"analyzerName"Name.of_jsoninmake?configuration~analyzerName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the configuration of an existing analyzer. This action is not supported for external access analyzers."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.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)|"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))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response to the request."]moduleUntagResourceRequest=structtypenonrect={resourceArn:String_.t[@ocaml.doc"The ARN of the resource to remove the tag from."];tagKeys:TagKeys.t[@ocaml.doc"The key for the tag to add."]}letcontext_="UntagResourceRequest"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("resourceArn",(Some(String_.to_valuex.resourceArn)));("tagKeys",(Some(TagKeys.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeys.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"TagKeys.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"String_.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes a tag from the specified resource."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.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)|"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))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response to the request."]moduleTagResourceRequest=structtypenonrect={resourceArn:String_.t[@ocaml.doc"The ARN of the resource to add the tag to."];tags:TagsMap.t[@ocaml.doc"The tags to add to the resource."]}letcontext_="TagResourceRequest"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("resourceArn",(Some(String_.to_valuex.resourceArn)));("tags",(Some(TagsMap.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagsMap.of_xml(Xml.child_exn~context:context_xml_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_map_exnjson__"tags"TagsMap.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"String_.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds a tag to the specified resource."]moduleStartResourceScanRequest=structtypenonrect={analyzerArn:AnalyzerArn.t[@ocaml.doc"The ARN of the analyzer to use to scan the policies applied to the specified resource."];resourceArn:ResourceArn.t[@ocaml.doc"The ARN of the resource to scan."];resourceOwnerAccount:String_.toption[@ocaml.doc"The Amazon Web Services account ID that owns the resource. For most Amazon Web Services resources, the owning account is the account in which the resource was created."]}letcontext_="StartResourceScanRequest"letmake?resourceOwnerAccount=fun~analyzerArn->fun~resourceArn->fun()->{resourceOwnerAccount;analyzerArn;resourceArn}letto_valuex=structure_to_value[("analyzerArn",(Some(AnalyzerArn.to_valuex.analyzerArn)));("resourceArn",(Some(ResourceArn.to_valuex.resourceArn)));("resourceOwnerAccount",(Option.mapx.resourceOwnerAccount~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceOwnerAccount=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceOwnerAccount")inletresourceArn=ResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inletanalyzerArn=AnalyzerArn.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerArn")inmake?resourceOwnerAccount~resourceArn~analyzerArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceOwnerAccount=field_mapjson__"resourceOwnerAccount"String_.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"ResourceArn.of_jsoninletanalyzerArn=field_map_exnjson__"analyzerArn"AnalyzerArn.of_jsoninmake?resourceOwnerAccount~resourceArn~analyzerArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts a scan of the policies applied to the specified resource."]moduleStartPolicyGenerationResponse=structtypenonrect={jobId:JobId.toption[@ocaml.doc"The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?jobId=fun()->{jobId}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)|"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)|"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))]|`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[("jobId",(Option.mapx.jobId~f:JobId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobId=(Option.map~f:JobId.of_xml)(Xml.childxml_arg0"jobId")inmake?jobId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobId=field_mapjson__"jobId"JobId.of_jsoninmake?jobId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts the policy generation request."]moduleStartPolicyGenerationRequest=structtypenonrect={policyGenerationDetails:PolicyGenerationDetails.t[@ocaml.doc"Contains the ARN of the IAM entity (user or role) for which you are generating a policy."];cloudTrailDetails:CloudTrailDetails.toption[@ocaml.doc"A CloudTrailDetails object that contains details about a Trail that you want to analyze to generate policies."];clientToken:String_.toption[@ocaml.doc"A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK."]}letcontext_="StartPolicyGenerationRequest"letmake?cloudTrailDetails=fun?clientToken->fun~policyGenerationDetails->fun()->{cloudTrailDetails;clientToken;policyGenerationDetails}letto_valuex=structure_to_value[("policyGenerationDetails",(Some(PolicyGenerationDetails.to_valuex.policyGenerationDetails)));("cloudTrailDetails",(Option.mapx.cloudTrailDetails~f:CloudTrailDetails.to_value));("clientToken",(Option.mapx.clientToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inletcloudTrailDetails=(Option.map~f:CloudTrailDetails.of_xml)(Xml.childxml_arg0"cloudTrailDetails")inletpolicyGenerationDetails=PolicyGenerationDetails.of_xml(Xml.child_exn~context:context_xml_arg0"policyGenerationDetails")inmake?clientToken?cloudTrailDetails~policyGenerationDetails()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"String_.of_jsoninletcloudTrailDetails=field_mapjson__"cloudTrailDetails"CloudTrailDetails.of_jsoninletpolicyGenerationDetails=field_map_exnjson__"policyGenerationDetails"PolicyGenerationDetails.of_jsoninmake?clientToken?cloudTrailDetails~policyGenerationDetails()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts the policy generation request."]moduleListTagsForResourceResponse=structtypenonrect={tags:TagsMap.toption[@ocaml.doc"The tags that are applied to the specified resource."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.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)|"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[("tags",(Option.mapx.tags~f:TagsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagsMap.of_xml)(Xml.childxml_arg0"tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagsMap.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response to the request."]moduleListTagsForResourceRequest=structtypenonrect={resourceArn:String_.t[@ocaml.doc"The ARN of the resource to retrieve tags from."]}letcontext_="ListTagsForResourceRequest"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"Retrieves a list of tags applied to the specified resource."]moduleListPolicyGenerationsResponse=structtypenonrect={policyGenerations:PolicyGenerationList.toption[@ocaml.doc"A PolicyGeneration object that contains details about the generated policy."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?policyGenerations=fun?nextToken->fun()->{policyGenerations;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[("policyGenerations",(Option.mapx.policyGenerations~f:PolicyGenerationList.to_value));("nextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletpolicyGenerations=(Option.map~f:PolicyGenerationList.of_xml)(Xml.childxml_arg0"policyGenerations")inmake?nextToken?policyGenerations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"Token.of_jsoninletpolicyGenerations=field_mapjson__"policyGenerations"PolicyGenerationList.of_jsoninmake?nextToken?policyGenerations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all of the policy generations requested in the last seven days."]moduleListPolicyGenerationsRequest=structtypenonrect={principalArn:PrincipalArn.toption[@ocaml.doc"The ARN of the IAM entity (user or role) for which you are generating a policy. Use this with ListGeneratedPolicies to filter the results to only include results for a specific principal."];maxResults:ListPolicyGenerationsRequestMaxResultsInteger.toption[@ocaml.doc"The maximum number of results to return in the response."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."]}letmake?principalArn=fun?maxResults->fun?nextToken->fun()->{principalArn;maxResults;nextToken}letto_valuex=structure_to_value[("principalArn",(Option.mapx.principalArn~f:PrincipalArn.to_value));("maxResults",(Option.mapx.maxResults~f:ListPolicyGenerationsRequestMaxResultsInteger.to_value));("nextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:ListPolicyGenerationsRequestMaxResultsInteger.of_xml)(Xml.childxml_arg0"maxResults")inletprincipalArn=(Option.map~f:PrincipalArn.of_xml)(Xml.childxml_arg0"principalArn")inmake?nextToken?maxResults?principalArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"Token.of_jsoninletmaxResults=field_mapjson__"maxResults"ListPolicyGenerationsRequestMaxResultsInteger.of_jsoninletprincipalArn=field_mapjson__"principalArn"PrincipalArn.of_jsoninmake?nextToken?maxResults?principalArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all of the policy generations requested in the last seven days."]moduleListFindingsV2Response=structtypenonrect={findings:FindingsListV2.toption[@ocaml.doc"A list of findings retrieved from the analyzer that match the filter criteria specified, if any."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?findings=fun?nextToken->fun()->{findings;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[("findings",(Option.mapx.findings~f:FindingsListV2.to_value));("nextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletfindings=(Option.map~f:FindingsListV2.of_xml)(Xml.childxml_arg0"findings")inmake?nextToken?findings()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"Token.of_jsoninletfindings=field_mapjson__"findings"FindingsListV2.of_jsoninmake?nextToken?findings()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of findings generated by the specified analyzer. ListFindings and ListFindingsV2 both use access-analyzer:ListFindings in the Action element of an IAM policy statement. You must have permission to perform the access-analyzer:ListFindings action. To learn about filter keys that you can use to retrieve a list of findings, see IAM Access Analyzer filter keys in the IAM User Guide."]moduleListFindingsV2Request=structtypenonrect={analyzerArn:AnalyzerArn.t[@ocaml.doc"The ARN of the analyzer to retrieve findings from."];filter:FilterCriteriaMap.toption[@ocaml.doc"A filter to match for the findings to return."];maxResults:Integer.toption[@ocaml.doc"The maximum number of results to return in the response."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."];sort:SortCriteria.toption}letcontext_="ListFindingsV2Request"letmake?filter=fun?maxResults->fun?nextToken->fun?sort->fun~analyzerArn->fun()->{filter;maxResults;nextToken;sort;analyzerArn}letto_valuex=structure_to_value[("analyzerArn",(Some(AnalyzerArn.to_valuex.analyzerArn)));("filter",(Option.mapx.filter~f:FilterCriteriaMap.to_value));("maxResults",(Option.mapx.maxResults~f:Integer.to_value));("nextToken",(Option.mapx.nextToken~f:Token.to_value));("sort",(Option.mapx.sort~f:SortCriteria.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsort=(Option.map~f:SortCriteria.of_xml)(Xml.childxml_arg0"sort")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxResults")inletfilter=(Option.map~f:FilterCriteriaMap.of_xml)(Xml.childxml_arg0"filter")inletanalyzerArn=AnalyzerArn.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerArn")inmake?sort?nextToken?maxResults?filter~analyzerArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsort=field_mapjson__"sort"SortCriteria.of_jsoninletnextToken=field_mapjson__"nextToken"Token.of_jsoninletmaxResults=field_mapjson__"maxResults"Integer.of_jsoninletfilter=field_mapjson__"filter"FilterCriteriaMap.of_jsoninletanalyzerArn=field_map_exnjson__"analyzerArn"AnalyzerArn.of_jsoninmake?sort?nextToken?maxResults?filter~analyzerArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of findings generated by the specified analyzer. ListFindings and ListFindingsV2 both use access-analyzer:ListFindings in the Action element of an IAM policy statement. You must have permission to perform the access-analyzer:ListFindings action. To learn about filter keys that you can use to retrieve a list of findings, see IAM Access Analyzer filter keys in the IAM User Guide."]moduleListFindingsResponse=structtypenonrect={findings:FindingsList.toption[@ocaml.doc"A list of findings retrieved from the analyzer that match the filter criteria specified, if any."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?findings=fun?nextToken->fun()->{findings;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[("findings",(Option.mapx.findings~f:FindingsList.to_value));("nextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletfindings=(Option.map~f:FindingsList.of_xml)(Xml.childxml_arg0"findings")inmake?nextToken?findings()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"Token.of_jsoninletfindings=field_mapjson__"findings"FindingsList.of_jsoninmake?nextToken?findings()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response to the request."]moduleListFindingsRequest=structtypenonrect={analyzerArn:AnalyzerArn.t[@ocaml.doc"The ARN of the analyzer to retrieve findings from."];filter:FilterCriteriaMap.toption[@ocaml.doc"A filter to match for the findings to return."];sort:SortCriteria.toption[@ocaml.doc"The sort order for the findings returned."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."];maxResults:Integer.toption[@ocaml.doc"The maximum number of results to return in the response."]}letcontext_="ListFindingsRequest"letmake?filter=fun?sort->fun?nextToken->fun?maxResults->fun~analyzerArn->fun()->{filter;sort;nextToken;maxResults;analyzerArn}letto_valuex=structure_to_value[("analyzerArn",(Some(AnalyzerArn.to_valuex.analyzerArn)));("filter",(Option.mapx.filter~f:FilterCriteriaMap.to_value));("sort",(Option.mapx.sort~f:SortCriteria.to_value));("nextToken",(Option.mapx.nextToken~f:Token.to_value));("maxResults",(Option.mapx.maxResults~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletsort=(Option.map~f:SortCriteria.of_xml)(Xml.childxml_arg0"sort")inletfilter=(Option.map~f:FilterCriteriaMap.of_xml)(Xml.childxml_arg0"filter")inletanalyzerArn=AnalyzerArn.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerArn")inmake?maxResults?nextToken?sort?filter~analyzerArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"Integer.of_jsoninletnextToken=field_mapjson__"nextToken"Token.of_jsoninletsort=field_mapjson__"sort"SortCriteria.of_jsoninletfilter=field_mapjson__"filter"FilterCriteriaMap.of_jsoninletanalyzerArn=field_map_exnjson__"analyzerArn"AnalyzerArn.of_jsoninmake?maxResults?nextToken?sort?filter~analyzerArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of findings generated by the specified analyzer."]moduleListArchiveRulesResponse=structtypenonrect={archiveRules:ArchiveRulesList.toption[@ocaml.doc"A list of archive rules created for the specified analyzer."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?archiveRules=fun?nextToken->fun()->{archiveRules;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[("archiveRules",(Option.mapx.archiveRules~f:ArchiveRulesList.to_value));("nextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletarchiveRules=(Option.map~f:ArchiveRulesList.of_xml)(Xml.childxml_arg0"archiveRules")inmake?nextToken?archiveRules()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"Token.of_jsoninletarchiveRules=field_mapjson__"archiveRules"ArchiveRulesList.of_jsoninmake?nextToken?archiveRules()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response to the request."]moduleListArchiveRulesRequest=structtypenonrect={analyzerName:Name.t[@ocaml.doc"The name of the analyzer to retrieve rules from."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."];maxResults:Integer.toption[@ocaml.doc"The maximum number of results to return in the request."]}letcontext_="ListArchiveRulesRequest"letmake?nextToken=fun?maxResults->fun~analyzerName->fun()->{nextToken;maxResults;analyzerName}letto_valuex=structure_to_value[("analyzerName",(Some(Name.to_valuex.analyzerName)));("nextToken",(Option.mapx.nextToken~f:Token.to_value));("maxResults",(Option.mapx.maxResults~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletanalyzerName=Name.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerName")inmake?maxResults?nextToken~analyzerName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"Integer.of_jsoninletnextToken=field_mapjson__"nextToken"Token.of_jsoninletanalyzerName=field_map_exnjson__"analyzerName"Name.of_jsoninmake?maxResults?nextToken~analyzerName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of archive rules created for the specified analyzer."]moduleListAnalyzersResponse=structtypenonrect={analyzers:AnalyzersList.toption[@ocaml.doc"The analyzers retrieved."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?analyzers=fun?nextToken->fun()->{analyzers;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[("analyzers",(Option.mapx.analyzers~f:AnalyzersList.to_value));("nextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletanalyzers=(Option.map~f:AnalyzersList.of_xml)(Xml.childxml_arg0"analyzers")inmake?nextToken?analyzers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"Token.of_jsoninletanalyzers=field_mapjson__"analyzers"AnalyzersList.of_jsoninmake?nextToken?analyzers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response to the request."]moduleListAnalyzersRequest=structtypenonrect={nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."];maxResults:Integer.toption[@ocaml.doc"The maximum number of results to return in the response."];type_:Type.toption[@ocaml.doc"The type of analyzer."]}letmake?nextToken=fun?maxResults->fun?type_->fun()->{nextToken;maxResults;type_}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:Token.to_value));("maxResults",(Option.mapx.maxResults~f:Integer.to_value));("type",(Option.mapx.type_~f:Type.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=(Option.map~f:Type.of_xml)(Xml.childxml_arg0"type")inletmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inmake?type_?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_mapjson__"type"Type.of_jsoninletmaxResults=field_mapjson__"maxResults"Integer.of_jsoninletnextToken=field_mapjson__"nextToken"Token.of_jsoninmake?type_?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of analyzers."]moduleListAnalyzedResourcesResponse=structtypenonrect={analyzedResources:AnalyzedResourcesList.toption[@ocaml.doc"A list of resources that were analyzed."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?analyzedResources=fun?nextToken->fun()->{analyzedResources;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[("analyzedResources",(Option.mapx.analyzedResources~f:AnalyzedResourcesList.to_value));("nextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletanalyzedResources=(Option.map~f:AnalyzedResourcesList.of_xml)(Xml.childxml_arg0"analyzedResources")inmake?nextToken?analyzedResources()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"Token.of_jsoninletanalyzedResources=field_mapjson__"analyzedResources"AnalyzedResourcesList.of_jsoninmake?nextToken?analyzedResources()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response to the request."]moduleListAnalyzedResourcesRequest=structtypenonrect={analyzerArn:AnalyzerArn.t[@ocaml.doc"The ARN of the analyzer to retrieve a list of analyzed resources from."];resourceType:ResourceType.toption[@ocaml.doc"The type of resource."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."];maxResults:Integer.toption[@ocaml.doc"The maximum number of results to return in the response."]}letcontext_="ListAnalyzedResourcesRequest"letmake?resourceType=fun?nextToken->fun?maxResults->fun~analyzerArn->fun()->{resourceType;nextToken;maxResults;analyzerArn}letto_valuex=structure_to_value[("analyzerArn",(Some(AnalyzerArn.to_valuex.analyzerArn)));("resourceType",(Option.mapx.resourceType~f:ResourceType.to_value));("nextToken",(Option.mapx.nextToken~f:Token.to_value));("maxResults",(Option.mapx.maxResults~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletresourceType=(Option.map~f:ResourceType.of_xml)(Xml.childxml_arg0"resourceType")inletanalyzerArn=AnalyzerArn.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerArn")inmake?maxResults?nextToken?resourceType~analyzerArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"Integer.of_jsoninletnextToken=field_mapjson__"nextToken"Token.of_jsoninletresourceType=field_mapjson__"resourceType"ResourceType.of_jsoninletanalyzerArn=field_map_exnjson__"analyzerArn"AnalyzerArn.of_jsoninmake?maxResults?nextToken?resourceType~analyzerArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of resources that have been analyzed."]moduleListAccessPreviewsResponse=structtypenonrect={accessPreviews:AccessPreviewsList.toption[@ocaml.doc"A list of access previews retrieved for the analyzer."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accessPreviews=fun?nextToken->fun()->{accessPreviews;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[("accessPreviews",(Option.mapx.accessPreviews~f:AccessPreviewsList.to_value));("nextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletaccessPreviews=(Option.map~f:AccessPreviewsList.of_xml)(Xml.childxml_arg0"accessPreviews")inmake?nextToken?accessPreviews()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"Token.of_jsoninletaccessPreviews=field_mapjson__"accessPreviews"AccessPreviewsList.of_jsoninmake?nextToken?accessPreviews()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of access previews for the specified analyzer."]moduleListAccessPreviewsRequest=structtypenonrect={analyzerArn:AnalyzerArn.t[@ocaml.doc"The ARN of the analyzer used to generate the access preview."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."];maxResults:Integer.toption[@ocaml.doc"The maximum number of results to return in the response."]}letcontext_="ListAccessPreviewsRequest"letmake?nextToken=fun?maxResults->fun~analyzerArn->fun()->{nextToken;maxResults;analyzerArn}letto_valuex=structure_to_value[("analyzerArn",(Some(AnalyzerArn.to_valuex.analyzerArn)));("nextToken",(Option.mapx.nextToken~f:Token.to_value));("maxResults",(Option.mapx.maxResults~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletanalyzerArn=AnalyzerArn.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerArn")inmake?maxResults?nextToken~analyzerArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"Integer.of_jsoninletnextToken=field_mapjson__"nextToken"Token.of_jsoninletanalyzerArn=field_map_exnjson__"analyzerArn"AnalyzerArn.of_jsoninmake?maxResults?nextToken~analyzerArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of access previews for the specified analyzer."]moduleListAccessPreviewFindingsResponse=structtypenonrect={findings:AccessPreviewFindingsList.toption[@ocaml.doc"A list of access preview findings that match the specified filter criteria."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?findings=fun?nextToken->fun()->{findings;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.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)|"ConflictException"->`ConflictException(ConflictException.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))]|`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))]|`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[("findings",(Option.mapx.findings~f:AccessPreviewFindingsList.to_value));("nextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletfindings=(Option.map~f:AccessPreviewFindingsList.of_xml)(Xml.childxml_arg0"findings")inmake?nextToken?findings()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"Token.of_jsoninletfindings=field_mapjson__"findings"AccessPreviewFindingsList.of_jsoninmake?nextToken?findings()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of access preview findings generated by the specified access preview."]moduleListAccessPreviewFindingsRequest=structtypenonrect={accessPreviewId:AccessPreviewId.t[@ocaml.doc"The unique ID for the access preview."];analyzerArn:AnalyzerArn.t[@ocaml.doc"The ARN of the analyzer used to generate the access."];filter:FilterCriteriaMap.toption[@ocaml.doc"Criteria to filter the returned findings."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."];maxResults:Integer.toption[@ocaml.doc"The maximum number of results to return in the response."]}letcontext_="ListAccessPreviewFindingsRequest"letmake?filter=fun?nextToken->fun?maxResults->fun~accessPreviewId->fun~analyzerArn->fun()->{filter;nextToken;maxResults;accessPreviewId;analyzerArn}letto_valuex=structure_to_value[("accessPreviewId",(Some(AccessPreviewId.to_valuex.accessPreviewId)));("analyzerArn",(Some(AnalyzerArn.to_valuex.analyzerArn)));("filter",(Option.mapx.filter~f:FilterCriteriaMap.to_value));("nextToken",(Option.mapx.nextToken~f:Token.to_value));("maxResults",(Option.mapx.maxResults~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletfilter=(Option.map~f:FilterCriteriaMap.of_xml)(Xml.childxml_arg0"filter")inletanalyzerArn=AnalyzerArn.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerArn")inletaccessPreviewId=AccessPreviewId.of_xml(Xml.child_exn~context:context_xml_arg0"accessPreviewId")inmake?maxResults?nextToken?filter~analyzerArn~accessPreviewId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"Integer.of_jsoninletnextToken=field_mapjson__"nextToken"Token.of_jsoninletfilter=field_mapjson__"filter"FilterCriteriaMap.of_jsoninletanalyzerArn=field_map_exnjson__"analyzerArn"AnalyzerArn.of_jsoninletaccessPreviewId=field_map_exnjson__"accessPreviewId"AccessPreviewId.of_jsoninmake?maxResults?nextToken?filter~analyzerArn~accessPreviewId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of access preview findings generated by the specified access preview."]moduleGetGeneratedPolicyResponse=structtypenonrect={jobDetails:JobDetails.toption[@ocaml.doc"A GeneratedPolicyDetails object that contains details about the generated policy."];generatedPolicyResult:GeneratedPolicyResult.toption[@ocaml.doc"A GeneratedPolicyResult object that contains the generated policies and associated details."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?jobDetails=fun?generatedPolicyResult->fun()->{jobDetails;generatedPolicyResult}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[("jobDetails",(Option.mapx.jobDetails~f:JobDetails.to_value));("generatedPolicyResult",(Option.mapx.generatedPolicyResult~f:GeneratedPolicyResult.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgeneratedPolicyResult=(Option.map~f:GeneratedPolicyResult.of_xml)(Xml.childxml_arg0"generatedPolicyResult")inletjobDetails=(Option.map~f:JobDetails.of_xml)(Xml.childxml_arg0"jobDetails")inmake?generatedPolicyResult?jobDetails()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgeneratedPolicyResult=field_mapjson__"generatedPolicyResult"GeneratedPolicyResult.of_jsoninletjobDetails=field_mapjson__"jobDetails"JobDetails.of_jsoninmake?generatedPolicyResult?jobDetails()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the policy that was generated using StartPolicyGeneration."]moduleGetGeneratedPolicyRequest=structtypenonrect={jobId:JobId.t[@ocaml.doc"The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request."];includeResourcePlaceholders:Boolean.toption[@ocaml.doc"The level of detail that you want to generate. You can specify whether to generate policies with placeholders for resource ARNs for actions that support resource level granularity in policies. For example, in the resource section of a policy, you can receive a placeholder such as \"Resource\":\"arn:aws:s3:::$\\{BucketName\\}\" instead of \"*\"."];includeServiceLevelTemplate:Boolean.toption[@ocaml.doc"The level of detail that you want to generate. You can specify whether to generate service-level policies. IAM Access Analyzer uses iam:servicelastaccessed to identify services that have been used recently to create this service-level template."]}letcontext_="GetGeneratedPolicyRequest"letmake?includeResourcePlaceholders=fun?includeServiceLevelTemplate->fun~jobId->fun()->{includeResourcePlaceholders;includeServiceLevelTemplate;jobId}letto_valuex=structure_to_value[("jobId",(Some(JobId.to_valuex.jobId)));("includeResourcePlaceholders",(Option.mapx.includeResourcePlaceholders~f:Boolean.to_value));("includeServiceLevelTemplate",(Option.mapx.includeServiceLevelTemplate~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letincludeServiceLevelTemplate=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"includeServiceLevelTemplate")inletincludeResourcePlaceholders=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"includeResourcePlaceholders")inletjobId=JobId.of_xml(Xml.child_exn~context:context_xml_arg0"jobId")inmake?includeServiceLevelTemplate?includeResourcePlaceholders~jobId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letincludeServiceLevelTemplate=field_mapjson__"includeServiceLevelTemplate"Boolean.of_jsoninletincludeResourcePlaceholders=field_mapjson__"includeResourcePlaceholders"Boolean.of_jsoninletjobId=field_map_exnjson__"jobId"JobId.of_jsoninmake?includeServiceLevelTemplate?includeResourcePlaceholders~jobId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the policy that was generated using StartPolicyGeneration."]moduleGetFindingsStatisticsResponse=structtypenonrect={findingsStatistics:FindingsStatisticsList.toption[@ocaml.doc"A group of external access or unused access findings statistics."];lastUpdatedAt:Timestamp.toption[@ocaml.doc"The time at which the retrieval of the findings statistics was last updated. If the findings statistics have not been previously retrieved for the specified analyzer, this field will not be populated."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?findingsStatistics=fun?lastUpdatedAt->fun()->{findingsStatistics;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[("findingsStatistics",(Option.mapx.findingsStatistics~f:FindingsStatisticsList.to_value));("lastUpdatedAt",(Option.mapx.lastUpdatedAt~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastUpdatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"lastUpdatedAt")inletfindingsStatistics=(Option.map~f:FindingsStatisticsList.of_xml)(Xml.childxml_arg0"findingsStatistics")inmake?lastUpdatedAt?findingsStatistics()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastUpdatedAt=field_mapjson__"lastUpdatedAt"Timestamp.of_jsoninletfindingsStatistics=field_mapjson__"findingsStatistics"FindingsStatisticsList.of_jsoninmake?lastUpdatedAt?findingsStatistics()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of aggregated finding statistics for an external access or unused access analyzer."]moduleGetFindingsStatisticsRequest=structtypenonrect={analyzerArn:AnalyzerArn.t[@ocaml.doc"The ARN of the analyzer used to generate the statistics."]}letcontext_="GetFindingsStatisticsRequest"letmake~analyzerArn=fun()->{analyzerArn}letto_valuex=structure_to_value[("analyzerArn",(Some(AnalyzerArn.to_valuex.analyzerArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letanalyzerArn=AnalyzerArn.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerArn")inmake~analyzerArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letanalyzerArn=field_map_exnjson__"analyzerArn"AnalyzerArn.of_jsoninmake~analyzerArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of aggregated finding statistics for an external access or unused access analyzer."]moduleGetFindingV2Response=structtypenonrect={analyzedAt:Timestamp.toption[@ocaml.doc"The time at which the resource-based policy or IAM entity that generated the finding was analyzed."];createdAt:Timestamp.toption[@ocaml.doc"The time at which the finding was created."];error:String_.toption[@ocaml.doc"An error."];id:FindingId.toption[@ocaml.doc"The ID of the finding to retrieve."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."];resource:String_.toption[@ocaml.doc"The resource that generated the finding."];resourceType:ResourceType.toption[@ocaml.doc"The type of the resource identified in the finding."];resourceOwnerAccount:String_.toption[@ocaml.doc"Tye Amazon Web Services account ID that owns the resource."];status:FindingStatus.toption[@ocaml.doc"The status of the finding."];updatedAt:Timestamp.toption[@ocaml.doc"The time at which the finding was updated."];findingDetails:FindingDetailsList.toption[@ocaml.doc"A localized message that explains the finding and provides guidance on how to address it."];findingType:FindingType.toption[@ocaml.doc"The type of the finding. For external access analyzers, the type is ExternalAccess. For unused access analyzers, the type can be UnusedIAMRole, UnusedIAMUserAccessKey, UnusedIAMUserPassword, or UnusedPermission. For internal access analyzers, the type is InternalAccess."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?analyzedAt=fun?createdAt->fun?error->fun?id->fun?nextToken->fun?resource->fun?resourceType->fun?resourceOwnerAccount->fun?status->fun?updatedAt->fun?findingDetails->fun?findingType->fun()->{analyzedAt;createdAt;error;id;nextToken;resource;resourceType;resourceOwnerAccount;status;updatedAt;findingDetails;findingType}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[("analyzedAt",(Option.mapx.analyzedAt~f:Timestamp.to_value));("createdAt",(Option.mapx.createdAt~f:Timestamp.to_value));("error",(Option.mapx.error~f:String_.to_value));("id",(Option.mapx.id~f:FindingId.to_value));("nextToken",(Option.mapx.nextToken~f:Token.to_value));("resource",(Option.mapx.resource~f:String_.to_value));("resourceType",(Option.mapx.resourceType~f:ResourceType.to_value));("resourceOwnerAccount",(Option.mapx.resourceOwnerAccount~f:String_.to_value));("status",(Option.mapx.status~f:FindingStatus.to_value));("updatedAt",(Option.mapx.updatedAt~f:Timestamp.to_value));("findingDetails",(Option.mapx.findingDetails~f:FindingDetailsList.to_value));("findingType",(Option.mapx.findingType~f:FindingType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfindingType=(Option.map~f:FindingType.of_xml)(Xml.childxml_arg0"findingType")inletfindingDetails=(Option.map~f:FindingDetailsList.of_xml)(Xml.childxml_arg0"findingDetails")inletupdatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"updatedAt")inletstatus=(Option.map~f:FindingStatus.of_xml)(Xml.childxml_arg0"status")inletresourceOwnerAccount=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceOwnerAccount")inletresourceType=(Option.map~f:ResourceType.of_xml)(Xml.childxml_arg0"resourceType")inletresource=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resource")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletid=(Option.map~f:FindingId.of_xml)(Xml.childxml_arg0"id")inleterror=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"error")inletcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdAt")inletanalyzedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"analyzedAt")inmake?findingType?findingDetails?updatedAt?status?resourceOwnerAccount?resourceType?resource?nextToken?id?error?createdAt?analyzedAt()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfindingType=field_mapjson__"findingType"FindingType.of_jsoninletfindingDetails=field_mapjson__"findingDetails"FindingDetailsList.of_jsoninletupdatedAt=field_mapjson__"updatedAt"Timestamp.of_jsoninletstatus=field_mapjson__"status"FindingStatus.of_jsoninletresourceOwnerAccount=field_mapjson__"resourceOwnerAccount"String_.of_jsoninletresourceType=field_mapjson__"resourceType"ResourceType.of_jsoninletresource=field_mapjson__"resource"String_.of_jsoninletnextToken=field_mapjson__"nextToken"Token.of_jsoninletid=field_mapjson__"id"FindingId.of_jsoninleterror=field_mapjson__"error"String_.of_jsoninletcreatedAt=field_mapjson__"createdAt"Timestamp.of_jsoninletanalyzedAt=field_mapjson__"analyzedAt"Timestamp.of_jsoninmake?findingType?findingDetails?updatedAt?status?resourceOwnerAccount?resourceType?resource?nextToken?id?error?createdAt?analyzedAt()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves information about the specified finding. GetFinding and GetFindingV2 both use access-analyzer:GetFinding in the Action element of an IAM policy statement. You must have permission to perform the access-analyzer:GetFinding action."]moduleGetFindingV2Request=structtypenonrect={analyzerArn:AnalyzerArn.t[@ocaml.doc"The ARN of the analyzer that generated the finding."];id:FindingId.t[@ocaml.doc"The ID of the finding to retrieve."];maxResults:Integer.toption[@ocaml.doc"The maximum number of results to return in the response."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."]}letcontext_="GetFindingV2Request"letmake?maxResults=fun?nextToken->fun~analyzerArn->fun~id->fun()->{maxResults;nextToken;analyzerArn;id}letto_valuex=structure_to_value[("analyzerArn",(Some(AnalyzerArn.to_valuex.analyzerArn)));("id",(Some(FindingId.to_valuex.id)));("maxResults",(Option.mapx.maxResults~f:Integer.to_value));("nextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxResults")inletid=FindingId.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletanalyzerArn=AnalyzerArn.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerArn")inmake?nextToken?maxResults~id~analyzerArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"Token.of_jsoninletmaxResults=field_mapjson__"maxResults"Integer.of_jsoninletid=field_map_exnjson__"id"FindingId.of_jsoninletanalyzerArn=field_map_exnjson__"analyzerArn"AnalyzerArn.of_jsoninmake?nextToken?maxResults~id~analyzerArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves information about the specified finding. GetFinding and GetFindingV2 both use access-analyzer:GetFinding in the Action element of an IAM policy statement. You must have permission to perform the access-analyzer:GetFinding action."]moduleGetFindingResponse=structtypenonrect={finding:Finding.toption[@ocaml.doc"A finding object that contains finding details."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?finding=fun()->{finding}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[("finding",(Option.mapx.finding~f:Finding.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfinding=(Option.map~f:Finding.of_xml)(Xml.childxml_arg0"finding")inmake?finding()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfinding=field_mapjson__"finding"Finding.of_jsoninmake?finding()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response to the request."]moduleGetFindingRequest=structtypenonrect={analyzerArn:AnalyzerArn.t[@ocaml.doc"The ARN of the analyzer that generated the finding."];id:FindingId.t[@ocaml.doc"The ID of the finding to retrieve."]}letcontext_="GetFindingRequest"letmake~analyzerArn=fun~id->fun()->{analyzerArn;id}letto_valuex=structure_to_value[("analyzerArn",(Some(AnalyzerArn.to_valuex.analyzerArn)));("id",(Some(FindingId.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=FindingId.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletanalyzerArn=AnalyzerArn.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerArn")inmake~id~analyzerArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"id"FindingId.of_jsoninletanalyzerArn=field_map_exnjson__"analyzerArn"AnalyzerArn.of_jsoninmake~id~analyzerArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a finding."]moduleGetFindingRecommendationResponse=structtypenonrect={startedAt:Timestamp.toption[@ocaml.doc"The time at which the retrieval of the finding recommendation was started."];completedAt:Timestamp.toption[@ocaml.doc"The time at which the retrieval of the finding recommendation was completed."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."];error:RecommendationError.toption[@ocaml.doc"Detailed information about the reason that the retrieval of a recommendation for the finding failed."];resourceArn:ResourceArn.toption[@ocaml.doc"The ARN of the resource of the finding."];recommendedSteps:RecommendedStepList.toption[@ocaml.doc"A group of recommended steps for the finding."];recommendationType:RecommendationType.toption[@ocaml.doc"The type of recommendation for the finding."];status:Status.toption[@ocaml.doc"The status of the retrieval of the finding recommendation."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?startedAt=fun?completedAt->fun?nextToken->fun?error->fun?resourceArn->fun?recommendedSteps->fun?recommendationType->fun?status->fun()->{startedAt;completedAt;nextToken;error;resourceArn;recommendedSteps;recommendationType;status}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[("startedAt",(Option.mapx.startedAt~f:Timestamp.to_value));("completedAt",(Option.mapx.completedAt~f:Timestamp.to_value));("nextToken",(Option.mapx.nextToken~f:Token.to_value));("error",(Option.mapx.error~f:RecommendationError.to_value));("resourceArn",(Option.mapx.resourceArn~f:ResourceArn.to_value));("recommendedSteps",(Option.mapx.recommendedSteps~f:RecommendedStepList.to_value));("recommendationType",(Option.mapx.recommendationType~f:RecommendationType.to_value));("status",(Option.mapx.status~f:Status.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:Status.of_xml)(Xml.childxml_arg0"status")inletrecommendationType=(Option.map~f:RecommendationType.of_xml)(Xml.childxml_arg0"recommendationType")inletrecommendedSteps=(Option.map~f:RecommendedStepList.of_xml)(Xml.childxml_arg0"recommendedSteps")inletresourceArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"resourceArn")inleterror=(Option.map~f:RecommendationError.of_xml)(Xml.childxml_arg0"error")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletcompletedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"completedAt")inletstartedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"startedAt")inmake?status?recommendationType?recommendedSteps?resourceArn?error?nextToken?completedAt?startedAt()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"status"Status.of_jsoninletrecommendationType=field_mapjson__"recommendationType"RecommendationType.of_jsoninletrecommendedSteps=field_mapjson__"recommendedSteps"RecommendedStepList.of_jsoninletresourceArn=field_mapjson__"resourceArn"ResourceArn.of_jsoninleterror=field_mapjson__"error"RecommendationError.of_jsoninletnextToken=field_mapjson__"nextToken"Token.of_jsoninletcompletedAt=field_mapjson__"completedAt"Timestamp.of_jsoninletstartedAt=field_mapjson__"startedAt"Timestamp.of_jsoninmake?status?recommendationType?recommendedSteps?resourceArn?error?nextToken?completedAt?startedAt()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves information about a finding recommendation for the specified analyzer."]moduleGetFindingRecommendationRequest=structtypenonrect={analyzerArn:AnalyzerArn.t[@ocaml.doc"The ARN of the analyzer used to generate the finding recommendation."];id:GetFindingRecommendationRequestIdString.t[@ocaml.doc"The unique ID for the finding recommendation."];maxResults:GetFindingRecommendationRequestMaxResultsInteger.toption[@ocaml.doc"The maximum number of results to return in the response."];nextToken:Token.toption[@ocaml.doc"A token used for pagination of results returned."]}letcontext_="GetFindingRecommendationRequest"letmake?maxResults=fun?nextToken->fun~analyzerArn->fun~id->fun()->{maxResults;nextToken;analyzerArn;id}letto_valuex=structure_to_value[("analyzerArn",(Some(AnalyzerArn.to_valuex.analyzerArn)));("id",(Some(GetFindingRecommendationRequestIdString.to_valuex.id)));("maxResults",(Option.mapx.maxResults~f:GetFindingRecommendationRequestMaxResultsInteger.to_value));("nextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:GetFindingRecommendationRequestMaxResultsInteger.of_xml)(Xml.childxml_arg0"maxResults")inletid=GetFindingRecommendationRequestIdString.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletanalyzerArn=AnalyzerArn.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerArn")inmake?nextToken?maxResults~id~analyzerArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"Token.of_jsoninletmaxResults=field_mapjson__"maxResults"GetFindingRecommendationRequestMaxResultsInteger.of_jsoninletid=field_map_exnjson__"id"GetFindingRecommendationRequestIdString.of_jsoninletanalyzerArn=field_map_exnjson__"analyzerArn"AnalyzerArn.of_jsoninmake?nextToken?maxResults~id~analyzerArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves information about a finding recommendation for the specified analyzer."]moduleGetArchiveRuleResponse=structtypenonrect={archiveRule:ArchiveRuleSummary.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?archiveRule=fun()->{archiveRule}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[("archiveRule",(Option.mapx.archiveRule~f:ArchiveRuleSummary.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarchiveRule=(Option.map~f:ArchiveRuleSummary.of_xml)(Xml.childxml_arg0"archiveRule")inmake?archiveRule()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarchiveRule=field_mapjson__"archiveRule"ArchiveRuleSummary.of_jsoninmake?archiveRule()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response to the request."]moduleGetArchiveRuleRequest=structtypenonrect={analyzerName:Name.t[@ocaml.doc"The name of the analyzer to retrieve rules from."];ruleName:Name.t[@ocaml.doc"The name of the rule to retrieve."]}letcontext_="GetArchiveRuleRequest"letmake~analyzerName=fun~ruleName->fun()->{analyzerName;ruleName}letto_valuex=structure_to_value[("analyzerName",(Some(Name.to_valuex.analyzerName)));("ruleName",(Some(Name.to_valuex.ruleName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letruleName=Name.of_xml(Xml.child_exn~context:context_xml_arg0"ruleName")inletanalyzerName=Name.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerName")inmake~ruleName~analyzerName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letruleName=field_map_exnjson__"ruleName"Name.of_jsoninletanalyzerName=field_map_exnjson__"analyzerName"Name.of_jsoninmake~ruleName~analyzerName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves an archive rule."]moduleGetAnalyzerResponse=structtypenonrect={analyzer:AnalyzerSummary.toption[@ocaml.doc"An AnalyzerSummary object that contains information about the analyzer."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?analyzer=fun()->{analyzer}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[("analyzer",(Option.mapx.analyzer~f:AnalyzerSummary.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letanalyzer=(Option.map~f:AnalyzerSummary.of_xml)(Xml.childxml_arg0"analyzer")inmake?analyzer()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letanalyzer=field_mapjson__"analyzer"AnalyzerSummary.of_jsoninmake?analyzer()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response to the request."]moduleGetAnalyzerRequest=structtypenonrect={analyzerName:Name.t[@ocaml.doc"The name of the analyzer retrieved."]}letcontext_="GetAnalyzerRequest"letmake~analyzerName=fun()->{analyzerName}letto_valuex=structure_to_value[("analyzerName",(Some(Name.to_valuex.analyzerName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letanalyzerName=Name.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerName")inmake~analyzerName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letanalyzerName=field_map_exnjson__"analyzerName"Name.of_jsoninmake~analyzerName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves an analyzer."]moduleGetAnalyzedResourceResponse=structtypenonrect={resource:AnalyzedResource.toption[@ocaml.doc"An AnalyzedResource object that contains information that IAM Access Analyzer found when it analyzed the resource."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?resource=fun()->{resource}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[("resource",(Option.mapx.resource~f:AnalyzedResource.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresource=(Option.map~f:AnalyzedResource.of_xml)(Xml.childxml_arg0"resource")inmake?resource()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresource=field_mapjson__"resource"AnalyzedResource.of_jsoninmake?resource()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response to the request."]moduleGetAnalyzedResourceRequest=structtypenonrect={analyzerArn:AnalyzerArn.t[@ocaml.doc"The ARN of the analyzer to retrieve information from."];resourceArn:ResourceArn.t[@ocaml.doc"The ARN of the resource to retrieve information about."]}letcontext_="GetAnalyzedResourceRequest"letmake~analyzerArn=fun~resourceArn->fun()->{analyzerArn;resourceArn}letto_valuex=structure_to_value[("analyzerArn",(Some(AnalyzerArn.to_valuex.analyzerArn)));("resourceArn",(Some(ResourceArn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=ResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inletanalyzerArn=AnalyzerArn.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerArn")inmake~resourceArn~analyzerArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_map_exnjson__"resourceArn"ResourceArn.of_jsoninletanalyzerArn=field_map_exnjson__"analyzerArn"AnalyzerArn.of_jsoninmake~resourceArn~analyzerArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves an analyzed resource."]moduleGetAccessPreviewResponse=structtypenonrect={accessPreview:AccessPreview.toption[@ocaml.doc"An object that contains information about the access preview."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accessPreview=fun()->{accessPreview}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[("accessPreview",(Option.mapx.accessPreview~f:AccessPreview.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccessPreview=(Option.map~f:AccessPreview.of_xml)(Xml.childxml_arg0"accessPreview")inmake?accessPreview()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccessPreview=field_mapjson__"accessPreview"AccessPreview.of_jsoninmake?accessPreview()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves information about an access preview for the specified analyzer."]moduleGetAccessPreviewRequest=structtypenonrect={accessPreviewId:AccessPreviewId.t[@ocaml.doc"The unique ID for the access preview."];analyzerArn:AnalyzerArn.t[@ocaml.doc"The ARN of the analyzer used to generate the access preview."]}letcontext_="GetAccessPreviewRequest"letmake~accessPreviewId=fun~analyzerArn->fun()->{accessPreviewId;analyzerArn}letto_valuex=structure_to_value[("accessPreviewId",(Some(AccessPreviewId.to_valuex.accessPreviewId)));("analyzerArn",(Some(AnalyzerArn.to_valuex.analyzerArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letanalyzerArn=AnalyzerArn.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerArn")inletaccessPreviewId=AccessPreviewId.of_xml(Xml.child_exn~context:context_xml_arg0"accessPreviewId")inmake~analyzerArn~accessPreviewId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letanalyzerArn=field_map_exnjson__"analyzerArn"AnalyzerArn.of_jsoninletaccessPreviewId=field_map_exnjson__"accessPreviewId"AccessPreviewId.of_jsoninmake~analyzerArn~accessPreviewId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves information about an access preview for the specified analyzer."]moduleGenerateFindingRecommendationRequest=structtypenonrect={analyzerArn:AnalyzerArn.t[@ocaml.doc"The ARN of the analyzer used to generate the finding recommendation."];id:GenerateFindingRecommendationRequestIdString.t[@ocaml.doc"The unique ID for the finding recommendation."]}letcontext_="GenerateFindingRecommendationRequest"letmake~analyzerArn=fun~id->fun()->{analyzerArn;id}letto_valuex=structure_to_value[("analyzerArn",(Some(AnalyzerArn.to_valuex.analyzerArn)));("id",(Some(GenerateFindingRecommendationRequestIdString.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=GenerateFindingRecommendationRequestIdString.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletanalyzerArn=AnalyzerArn.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerArn")inmake~id~analyzerArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"id"GenerateFindingRecommendationRequestIdString.of_jsoninletanalyzerArn=field_map_exnjson__"analyzerArn"AnalyzerArn.of_jsoninmake~id~analyzerArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a recommendation for an unused permissions finding."]moduleDeleteArchiveRuleRequest=structtypenonrect={analyzerName:Name.t[@ocaml.doc"The name of the analyzer that associated with the archive rule to delete."];ruleName:Name.t[@ocaml.doc"The name of the rule to delete."];clientToken:String_.toption[@ocaml.doc"A client token."]}letcontext_="DeleteArchiveRuleRequest"letmake?clientToken=fun~analyzerName->fun~ruleName->fun()->{clientToken;analyzerName;ruleName}letto_valuex=structure_to_value[("analyzerName",(Some(Name.to_valuex.analyzerName)));("ruleName",(Some(Name.to_valuex.ruleName)));("clientToken",(Option.mapx.clientToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inletruleName=Name.of_xml(Xml.child_exn~context:context_xml_arg0"ruleName")inletanalyzerName=Name.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerName")inmake?clientToken~ruleName~analyzerName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"String_.of_jsoninletruleName=field_map_exnjson__"ruleName"Name.of_jsoninletanalyzerName=field_map_exnjson__"analyzerName"Name.of_jsoninmake?clientToken~ruleName~analyzerName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an archive rule."]moduleDeleteAnalyzerRequest=structtypenonrect={analyzerName:Name.t[@ocaml.doc"The name of the analyzer to delete."];clientToken:String_.toption[@ocaml.doc"A client token."]}letcontext_="DeleteAnalyzerRequest"letmake?clientToken=fun~analyzerName->fun()->{clientToken;analyzerName}letto_valuex=structure_to_value[("analyzerName",(Some(Name.to_valuex.analyzerName)));("clientToken",(Option.mapx.clientToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inletanalyzerName=Name.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerName")inmake?clientToken~analyzerName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"String_.of_jsoninletanalyzerName=field_map_exnjson__"analyzerName"Name.of_jsoninmake?clientToken~analyzerName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an analyzer."]moduleCreateArchiveRuleRequest=structtypenonrect={analyzerName:Name.t[@ocaml.doc"The name of the created analyzer."];ruleName:Name.t[@ocaml.doc"The name of the rule to create."];filter:FilterCriteriaMap.t[@ocaml.doc"The criteria for the rule."];clientToken:String_.toption[@ocaml.doc"A client token."]}letcontext_="CreateArchiveRuleRequest"letmake?clientToken=fun~analyzerName->fun~ruleName->fun~filter->fun()->{clientToken;analyzerName;ruleName;filter}letto_valuex=structure_to_value[("analyzerName",(Some(Name.to_valuex.analyzerName)));("ruleName",(Some(Name.to_valuex.ruleName)));("filter",(Some(FilterCriteriaMap.to_valuex.filter)));("clientToken",(Option.mapx.clientToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inletfilter=FilterCriteriaMap.of_xml(Xml.child_exn~context:context_xml_arg0"filter")inletruleName=Name.of_xml(Xml.child_exn~context:context_xml_arg0"ruleName")inletanalyzerName=Name.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerName")inmake?clientToken~filter~ruleName~analyzerName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"String_.of_jsoninletfilter=field_map_exnjson__"filter"FilterCriteriaMap.of_jsoninletruleName=field_map_exnjson__"ruleName"Name.of_jsoninletanalyzerName=field_map_exnjson__"analyzerName"Name.of_jsoninmake?clientToken~filter~ruleName~analyzerName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an archive rule."]moduleCreateAnalyzerResponse=structtypenonrect={arn:AnalyzerArn.toption[@ocaml.doc"The ARN of the analyzer that was created by the request."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun()->{arn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"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)|"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))]|`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:AnalyzerArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=(Option.map~f:AnalyzerArn.of_xml)(Xml.childxml_arg0"arn")inmake?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_mapjson__"arn"AnalyzerArn.of_jsoninmake?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response to the request to create an analyzer."]moduleCreateAnalyzerRequest=structtypenonrect={analyzerName:Name.t[@ocaml.doc"The name of the analyzer to create."];type_:Type.t[@ocaml.doc"The type of analyzer to create. You can create only one analyzer per account per Region. You can create up to 5 analyzers per organization per Region."];archiveRules:InlineArchiveRulesList.toption[@ocaml.doc"Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule."];tags:TagsMap.toption[@ocaml.doc"An array of key-value pairs to apply to the analyzer. You can use the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. For the tag key, you can specify a value that is 1 to 128 characters in length and cannot be prefixed with aws:. For the tag value, you can specify a value that is 0 to 256 characters in length."];clientToken:String_.toption[@ocaml.doc"A client token."];configuration:AnalyzerConfiguration.toption[@ocaml.doc"Specifies the configuration of the analyzer. If the analyzer is an unused access analyzer, the specified scope of unused access is used for the configuration. If the analyzer is an internal access analyzer, the specified internal access analysis rules are used for the configuration."]}letcontext_="CreateAnalyzerRequest"letmake?archiveRules=fun?tags->fun?clientToken->fun?configuration->fun~analyzerName->fun~type_->fun()->{archiveRules;tags;clientToken;configuration;analyzerName;type_}letto_valuex=structure_to_value[("analyzerName",(Some(Name.to_valuex.analyzerName)));("type",(Some(Type.to_valuex.type_)));("archiveRules",(Option.mapx.archiveRules~f:InlineArchiveRulesList.to_value));("tags",(Option.mapx.tags~f:TagsMap.to_value));("clientToken",(Option.mapx.clientToken~f:String_.to_value));("configuration",(Option.mapx.configuration~f:AnalyzerConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconfiguration=(Option.map~f:AnalyzerConfiguration.of_xml)(Xml.childxml_arg0"configuration")inletclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inlettags=(Option.map~f:TagsMap.of_xml)(Xml.childxml_arg0"tags")inletarchiveRules=(Option.map~f:InlineArchiveRulesList.of_xml)(Xml.childxml_arg0"archiveRules")inlettype_=Type.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletanalyzerName=Name.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerName")inmake?configuration?clientToken?tags?archiveRules~type_~analyzerName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconfiguration=field_mapjson__"configuration"AnalyzerConfiguration.of_jsoninletclientToken=field_mapjson__"clientToken"String_.of_jsoninlettags=field_mapjson__"tags"TagsMap.of_jsoninletarchiveRules=field_mapjson__"archiveRules"InlineArchiveRulesList.of_jsoninlettype_=field_map_exnjson__"type"Type.of_jsoninletanalyzerName=field_map_exnjson__"analyzerName"Name.of_jsoninmake?configuration?clientToken?tags?archiveRules~type_~analyzerName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an analyzer."]moduleCreateAccessPreviewResponse=structtypenonrect={id:AccessPreviewId.toption[@ocaml.doc"The unique ID for the access preview."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?id=fun()->{id}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[("id",(Option.mapx.id~f:AccessPreviewId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=(Option.map~f:AccessPreviewId.of_xml)(Xml.childxml_arg0"id")inmake?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_mapjson__"id"AccessPreviewId.of_jsoninmake?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an access preview that allows you to preview IAM Access Analyzer findings for your resource before deploying resource permissions."]moduleCreateAccessPreviewRequest=structtypenonrect={analyzerArn:AnalyzerArn.t[@ocaml.doc"The ARN of the account analyzer used to generate the access preview. You can only create an access preview for analyzers with an Account type and Active status."];configurations:ConfigurationsMap.t[@ocaml.doc"Access control configuration for your resource that is used to generate the access preview. The access preview includes findings for external access allowed to the resource with the proposed access control configuration. The configuration must contain exactly one element."];clientToken:String_.toption[@ocaml.doc"A client token."]}letcontext_="CreateAccessPreviewRequest"letmake?clientToken=fun~analyzerArn->fun~configurations->fun()->{clientToken;analyzerArn;configurations}letto_valuex=structure_to_value[("analyzerArn",(Some(AnalyzerArn.to_valuex.analyzerArn)));("configurations",(Some(ConfigurationsMap.to_valuex.configurations)));("clientToken",(Option.mapx.clientToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inletconfigurations=ConfigurationsMap.of_xml(Xml.child_exn~context:context_xml_arg0"configurations")inletanalyzerArn=AnalyzerArn.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerArn")inmake?clientToken~configurations~analyzerArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"String_.of_jsoninletconfigurations=field_map_exnjson__"configurations"ConfigurationsMap.of_jsoninletanalyzerArn=field_map_exnjson__"analyzerArn"AnalyzerArn.of_jsoninmake?clientToken~configurations~analyzerArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an access preview that allows you to preview IAM Access Analyzer findings for your resource before deploying resource permissions."]moduleCheckNoPublicAccessResponse=structtypenonrect={result:CheckNoPublicAccessResult.toption[@ocaml.doc"The result of the check for public access to the specified resource type. If the result is PASS, the policy doesn't allow public access to the specified resource type. If the result is FAIL, the policy might allow public access to the specified resource type."];message:String_.toption[@ocaml.doc"The message indicating whether the specified policy allows public access to resources."];reasons:ReasonSummaryList.toption[@ocaml.doc"A list of reasons why the specified resource policy grants public access for the resource type."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ThrottlingExceptionofThrottlingException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?result=fun?message->fun?reasons->fun()->{result;message;reasons}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.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)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.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))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.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[("result",(Option.mapx.result~f:CheckNoPublicAccessResult.to_value));("message",(Option.mapx.message~f:String_.to_value));("reasons",(Option.mapx.reasons~f:ReasonSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreasons=(Option.map~f:ReasonSummaryList.of_xml)(Xml.childxml_arg0"reasons")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inletresult=(Option.map~f:CheckNoPublicAccessResult.of_xml)(Xml.childxml_arg0"result")inmake?reasons?message?result()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreasons=field_mapjson__"reasons"ReasonSummaryList.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninletresult=field_mapjson__"result"CheckNoPublicAccessResult.of_jsoninmake?reasons?message?result()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Checks whether a resource policy can grant public access to the specified resource type."]moduleCheckNoPublicAccessRequest=structtypenonrect={policyDocument:AccessCheckPolicyDocument.t[@ocaml.doc"The JSON policy document to evaluate for public access."];resourceType:AccessCheckResourceType.t[@ocaml.doc"The type of resource to evaluate for public access. For example, to check for public access to Amazon S3 buckets, you can choose AWS::S3::Bucket for the resource type. For resource types not supported as valid values, IAM Access Analyzer will return an error."]}letcontext_="CheckNoPublicAccessRequest"letmake~policyDocument=fun~resourceType->fun()->{policyDocument;resourceType}letto_valuex=structure_to_value[("policyDocument",(Some(AccessCheckPolicyDocument.to_valuex.policyDocument)));("resourceType",(Some(AccessCheckResourceType.to_valuex.resourceType)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=AccessCheckResourceType.of_xml(Xml.child_exn~context:context_xml_arg0"resourceType")inletpolicyDocument=AccessCheckPolicyDocument.of_xml(Xml.child_exn~context:context_xml_arg0"policyDocument")inmake~resourceType~policyDocument()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_map_exnjson__"resourceType"AccessCheckResourceType.of_jsoninletpolicyDocument=field_map_exnjson__"policyDocument"AccessCheckPolicyDocument.of_jsoninmake~resourceType~policyDocument()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Checks whether a resource policy can grant public access to the specified resource type."]moduleCheckNoNewAccessResponse=structtypenonrect={result:CheckNoNewAccessResult.toption[@ocaml.doc"The result of the check for new access. If the result is PASS, no new access is allowed by the updated policy. If the result is FAIL, the updated policy might allow new access."];message:String_.toption[@ocaml.doc"The message indicating whether the updated policy allows new access."];reasons:ReasonSummaryList.toption[@ocaml.doc"A description of the reasoning of the result."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ThrottlingExceptionofThrottlingException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?result=fun?message->fun?reasons->fun()->{result;message;reasons}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.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)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.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))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.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[("result",(Option.mapx.result~f:CheckNoNewAccessResult.to_value));("message",(Option.mapx.message~f:String_.to_value));("reasons",(Option.mapx.reasons~f:ReasonSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreasons=(Option.map~f:ReasonSummaryList.of_xml)(Xml.childxml_arg0"reasons")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inletresult=(Option.map~f:CheckNoNewAccessResult.of_xml)(Xml.childxml_arg0"result")inmake?reasons?message?result()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreasons=field_mapjson__"reasons"ReasonSummaryList.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninletresult=field_mapjson__"result"CheckNoNewAccessResult.of_jsoninmake?reasons?message?result()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Checks whether new access is allowed for an updated policy when compared to the existing policy. You can find examples for reference policies and learn how to set up and run a custom policy check for new access in the IAM Access Analyzer custom policy checks samples repository on GitHub. The reference policies in this repository are meant to be passed to the existingPolicyDocument request parameter."]moduleCheckNoNewAccessRequest=structtypenonrect={newPolicyDocument:AccessCheckPolicyDocument.t[@ocaml.doc"The JSON policy document to use as the content for the updated policy."];existingPolicyDocument:AccessCheckPolicyDocument.t[@ocaml.doc"The JSON policy document to use as the content for the existing policy."];policyType:AccessCheckPolicyType.t[@ocaml.doc"The type of policy to compare. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups. Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy."]}letcontext_="CheckNoNewAccessRequest"letmake~newPolicyDocument=fun~existingPolicyDocument->fun~policyType->fun()->{newPolicyDocument;existingPolicyDocument;policyType}letto_valuex=structure_to_value[("newPolicyDocument",(Some(AccessCheckPolicyDocument.to_valuex.newPolicyDocument)));("existingPolicyDocument",(Some(AccessCheckPolicyDocument.to_valuex.existingPolicyDocument)));("policyType",(Some(AccessCheckPolicyType.to_valuex.policyType)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpolicyType=AccessCheckPolicyType.of_xml(Xml.child_exn~context:context_xml_arg0"policyType")inletexistingPolicyDocument=AccessCheckPolicyDocument.of_xml(Xml.child_exn~context:context_xml_arg0"existingPolicyDocument")inletnewPolicyDocument=AccessCheckPolicyDocument.of_xml(Xml.child_exn~context:context_xml_arg0"newPolicyDocument")inmake~policyType~existingPolicyDocument~newPolicyDocument()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpolicyType=field_map_exnjson__"policyType"AccessCheckPolicyType.of_jsoninletexistingPolicyDocument=field_map_exnjson__"existingPolicyDocument"AccessCheckPolicyDocument.of_jsoninletnewPolicyDocument=field_map_exnjson__"newPolicyDocument"AccessCheckPolicyDocument.of_jsoninmake~policyType~existingPolicyDocument~newPolicyDocument()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Checks whether new access is allowed for an updated policy when compared to the existing policy. You can find examples for reference policies and learn how to set up and run a custom policy check for new access in the IAM Access Analyzer custom policy checks samples repository on GitHub. The reference policies in this repository are meant to be passed to the existingPolicyDocument request parameter."]moduleCheckAccessNotGrantedResponse=structtypenonrect={result:CheckAccessNotGrantedResult.toption[@ocaml.doc"The result of the check for whether the access is allowed. If the result is PASS, the specified policy doesn't allow any of the specified permissions in the access object. If the result is FAIL, the specified policy might allow some or all of the permissions in the access object."];message:String_.toption[@ocaml.doc"The message indicating whether the specified access is allowed."];reasons:ReasonSummaryList.toption[@ocaml.doc"A description of the reasoning of the result."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ThrottlingExceptionofThrottlingException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?result=fun?message->fun?reasons->fun()->{result;message;reasons}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.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)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.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))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.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[("result",(Option.mapx.result~f:CheckAccessNotGrantedResult.to_value));("message",(Option.mapx.message~f:String_.to_value));("reasons",(Option.mapx.reasons~f:ReasonSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreasons=(Option.map~f:ReasonSummaryList.of_xml)(Xml.childxml_arg0"reasons")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inletresult=(Option.map~f:CheckAccessNotGrantedResult.of_xml)(Xml.childxml_arg0"result")inmake?reasons?message?result()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreasons=field_mapjson__"reasons"ReasonSummaryList.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninletresult=field_mapjson__"result"CheckAccessNotGrantedResult.of_jsoninmake?reasons?message?result()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Checks whether the specified access isn't allowed by a policy."]moduleCheckAccessNotGrantedRequest=structtypenonrect={policyDocument:AccessCheckPolicyDocument.t[@ocaml.doc"The JSON policy document to use as the content for the policy."];access:CheckAccessNotGrantedRequestAccessList.t[@ocaml.doc"An access object containing the permissions that shouldn't be granted by the specified policy. If only actions are specified, IAM Access Analyzer checks for access to peform at least one of the actions on any resource in the policy. If only resources are specified, then IAM Access Analyzer checks for access to perform any action on at least one of the resources. If both actions and resources are specified, IAM Access Analyzer checks for access to perform at least one of the specified actions on at least one of the specified resources."];policyType:AccessCheckPolicyType.t[@ocaml.doc"The type of policy. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups. Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets."]}letcontext_="CheckAccessNotGrantedRequest"letmake~policyDocument=fun~access->fun~policyType->fun()->{policyDocument;access;policyType}letto_valuex=structure_to_value[("policyDocument",(Some(AccessCheckPolicyDocument.to_valuex.policyDocument)));("access",(Some(CheckAccessNotGrantedRequestAccessList.to_valuex.access)));("policyType",(Some(AccessCheckPolicyType.to_valuex.policyType)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpolicyType=AccessCheckPolicyType.of_xml(Xml.child_exn~context:context_xml_arg0"policyType")inletaccess=CheckAccessNotGrantedRequestAccessList.of_xml(Xml.child_exn~context:context_xml_arg0"access")inletpolicyDocument=AccessCheckPolicyDocument.of_xml(Xml.child_exn~context:context_xml_arg0"policyDocument")inmake~policyType~access~policyDocument()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpolicyType=field_map_exnjson__"policyType"AccessCheckPolicyType.of_jsoninletaccess=field_map_exnjson__"access"CheckAccessNotGrantedRequestAccessList.of_jsoninletpolicyDocument=field_map_exnjson__"policyDocument"AccessCheckPolicyDocument.of_jsoninmake~policyType~access~policyDocument()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Checks whether the specified access isn't allowed by a policy."]moduleCancelPolicyGenerationResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()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))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Cancels the requested policy generation."]moduleCancelPolicyGenerationRequest=structtypenonrect={jobId:JobId.t[@ocaml.doc"The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request."]}letcontext_="CancelPolicyGenerationRequest"letmake~jobId=fun()->{jobId}letto_valuex=structure_to_value[("jobId",(Some(JobId.to_valuex.jobId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobId=JobId.of_xml(Xml.child_exn~context:context_xml_arg0"jobId")inmake~jobId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobId=field_map_exnjson__"jobId"JobId.of_jsoninmake~jobId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Cancels the requested policy generation."]moduleApplyArchiveRuleRequest=structtypenonrect={analyzerArn:AnalyzerArn.t[@ocaml.doc"The Amazon resource name (ARN) of the analyzer."];ruleName:Name.t[@ocaml.doc"The name of the rule to apply."];clientToken:String_.toption[@ocaml.doc"A client token."]}letcontext_="ApplyArchiveRuleRequest"letmake?clientToken=fun~analyzerArn->fun~ruleName->fun()->{clientToken;analyzerArn;ruleName}letto_valuex=structure_to_value[("analyzerArn",(Some(AnalyzerArn.to_valuex.analyzerArn)));("ruleName",(Some(Name.to_valuex.ruleName)));("clientToken",(Option.mapx.clientToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inletruleName=Name.of_xml(Xml.child_exn~context:context_xml_arg0"ruleName")inletanalyzerArn=AnalyzerArn.of_xml(Xml.child_exn~context:context_xml_arg0"analyzerArn")inmake?clientToken~ruleName~analyzerArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"String_.of_jsoninletruleName=field_map_exnjson__"ruleName"Name.of_jsoninletanalyzerArn=field_map_exnjson__"analyzerArn"AnalyzerArn.of_jsoninmake?clientToken~ruleName~analyzerArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retroactively applies an archive rule."]