12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762(* 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.detectiveletapiVersion="2018-10-26"letendpointPrefix="api.detective"letserviceFullName="Amazon Detective"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[]))])moduleTimestamp=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_valueendmoduleByteValue=structtypenonrect=Int64.tletmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleIpAddress=structtypenonrect=stringletcontext_="IpAddress"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:"IpAddress"jletto_json=simple_to_jsonto_valueendmoduleReason=structtypenonrect=|AWS_THREAT_INTELLIGENCE|Non_static_idofstringletmakei=iletto_string=function|AWS_THREAT_INTELLIGENCE->"AWS_THREAT_INTELLIGENCE"|Non_static_ids->sletof_string=function|"AWS_THREAT_INTELLIGENCE"->AWS_THREAT_INTELLIGENCE|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 Reason"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Reason"j)letto_json=simple_to_jsonto_valueendmoduleHourlyTimeDelta=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 HourlyTimeDelta"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleLocation=structtypenonrect=stringletcontext_="Location"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:"Location"jletto_json=simple_to_jsonto_valueendmoduleAso=structtypenonrect=stringletcontext_="Aso"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:"Aso"jletto_json=simple_to_jsonto_valueendmoduleIsNewForEntireAccount=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_valueendmoduleUserAgent=structtypenonrect=stringletcontext_="UserAgent"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:"UserAgent"jletto_json=simple_to_jsonto_valueendmoduleEntityArn=structtypenonrect=stringletcontext_="EntityArn"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:"EntityArn"jletto_json=simple_to_jsonto_valueendmoduleType=structtypenonrect=stringletcontext_="Type"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:"Type"jletto_json=simple_to_jsonto_valueendmoduleId=structtypenonrect=stringletcontext_="Id"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:"Id"jletto_json=simple_to_jsonto_valueendmoduleAPIFailureCount=structtypenonrect=Int64.tletmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleAPIName=structtypenonrect=stringletcontext_="APIName"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:"APIName"jletto_json=simple_to_jsonto_valueendmoduleAPISuccessCount=structtypenonrect=Int64.tletmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleProcedure=structtypenonrect=stringletcontext_="Procedure"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:"Procedure"jletto_json=simple_to_jsonto_valueendmoduleTactic=structtypenonrect=stringletcontext_="Tactic"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:"Tactic"jletto_json=simple_to_jsonto_valueendmoduleTechnique=structtypenonrect=stringletcontext_="Technique"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:"Technique"jletto_json=simple_to_jsonto_valueendmoduleDatasourcePackageIngestState=structtypenonrect=|STARTED|STOPPED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|STARTED->"STARTED"|STOPPED->"STOPPED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"STARTED"->STARTED|"STOPPED"->STOPPED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration DatasourcePackageIngestState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DatasourcePackageIngestState"j)letto_json=simple_to_jsonto_valueendmoduleTimestampForCollection=structtypenonrect={timestamp:Timestamp.toption[@ocaml.doc"The data and time when data collection began for a source package. The value is an ISO8601 formatted string. For example, 2021-08-18T16:35:56.284Z."]}letmake?timestamp=fun()->{timestamp}letto_valuex=structure_to_value[("Timestamp",(Option.mapx.timestamp~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"Timestamp")inmake?timestamp()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettimestamp=field_mapjson__"Timestamp"Timestamp.of_jsoninmake?timestamp()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details on when data collection began for a source package."]moduleDatasourcePackage=structtypenonrect=|DETECTIVE_CORE|EKS_AUDIT|ASFF_SECURITYHUB_FINDING|Non_static_idofstringletmakei=iletto_string=function|DETECTIVE_CORE->"DETECTIVE_CORE"|EKS_AUDIT->"EKS_AUDIT"|ASFF_SECURITYHUB_FINDING->"ASFF_SECURITYHUB_FINDING"|Non_static_ids->sletof_string=function|"DETECTIVE_CORE"->DETECTIVE_CORE|"EKS_AUDIT"->EKS_AUDIT|"ASFF_SECURITYHUB_FINDING"->ASFF_SECURITYHUB_FINDING|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 DatasourcePackage"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DatasourcePackage"j)letto_json=simple_to_jsonto_valueendmoduleDatasourcePackageUsageInfo=structtypenonrect={volumeUsageInBytes:ByteValue.toption[@ocaml.doc"Total volume of data in bytes per day ingested for a given data source package."];volumeUsageUpdateTime:Timestamp.toption[@ocaml.doc"The data and time when the member account data volume was last updated. The value is an ISO8601 formatted string. For example, 2021-08-18T16:35:56.284Z."]}letmake?volumeUsageInBytes=fun?volumeUsageUpdateTime->fun()->{volumeUsageInBytes;volumeUsageUpdateTime}letto_valuex=structure_to_value[("VolumeUsageInBytes",(Option.mapx.volumeUsageInBytes~f:ByteValue.to_value));("VolumeUsageUpdateTime",(Option.mapx.volumeUsageUpdateTime~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvolumeUsageUpdateTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"VolumeUsageUpdateTime")inletvolumeUsageInBytes=(Option.map~f:ByteValue.of_xml)(Xml.childxml_arg0"VolumeUsageInBytes")inmake?volumeUsageUpdateTime?volumeUsageInBytes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvolumeUsageUpdateTime=field_mapjson__"VolumeUsageUpdateTime"Timestamp.of_jsoninletvolumeUsageInBytes=field_mapjson__"VolumeUsageInBytes"ByteValue.of_jsoninmake?volumeUsageUpdateTime?volumeUsageInBytes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information on the usage of a data source package in the behavior graph."]moduleFlaggedIpAddressDetail=structtypenonrect={ipAddress:IpAddress.toption[@ocaml.doc"IP address of the suspicious entity."];reason:Reason.toption[@ocaml.doc"Details the reason the IP address was flagged as suspicious."]}letmake?ipAddress=fun?reason->fun()->{ipAddress;reason}letto_valuex=structure_to_value[("IpAddress",(Option.mapx.ipAddress~f:IpAddress.to_value));("Reason",(Option.mapx.reason~f:Reason.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreason=(Option.map~f:Reason.of_xml)(Xml.childxml_arg0"Reason")inletipAddress=(Option.map~f:IpAddress.of_xml)(Xml.childxml_arg0"IpAddress")inmake?reason?ipAddress()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreason=field_mapjson__"Reason"Reason.of_jsoninletipAddress=field_mapjson__"IpAddress"IpAddress.of_jsoninmake?reason?ipAddress()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information on suspicious IP addresses identified as indicators of compromise. This indicator is derived from Amazon Web Services threat intelligence."]moduleImpossibleTravelDetail=structtypenonrect={startingIpAddress:IpAddress.toption[@ocaml.doc"IP address where the resource was first used in the impossible travel."];endingIpAddress:IpAddress.toption[@ocaml.doc"IP address where the resource was last used in the impossible travel."];startingLocation:Location.toption[@ocaml.doc"Location where the resource was first used in the impossible travel."];endingLocation:Location.toption[@ocaml.doc"Location where the resource was last used in the impossible travel."];hourlyTimeDelta:HourlyTimeDelta.toption[@ocaml.doc"Returns the time difference between the first and last timestamp the resource was used."]}letmake?startingIpAddress=fun?endingIpAddress->fun?startingLocation->fun?endingLocation->fun?hourlyTimeDelta->fun()->{startingIpAddress;endingIpAddress;startingLocation;endingLocation;hourlyTimeDelta}letto_valuex=structure_to_value[("StartingIpAddress",(Option.mapx.startingIpAddress~f:IpAddress.to_value));("EndingIpAddress",(Option.mapx.endingIpAddress~f:IpAddress.to_value));("StartingLocation",(Option.mapx.startingLocation~f:Location.to_value));("EndingLocation",(Option.mapx.endingLocation~f:Location.to_value));("HourlyTimeDelta",(Option.mapx.hourlyTimeDelta~f:HourlyTimeDelta.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethourlyTimeDelta=(Option.map~f:HourlyTimeDelta.of_xml)(Xml.childxml_arg0"HourlyTimeDelta")inletendingLocation=(Option.map~f:Location.of_xml)(Xml.childxml_arg0"EndingLocation")inletstartingLocation=(Option.map~f:Location.of_xml)(Xml.childxml_arg0"StartingLocation")inletendingIpAddress=(Option.map~f:IpAddress.of_xml)(Xml.childxml_arg0"EndingIpAddress")inletstartingIpAddress=(Option.map~f:IpAddress.of_xml)(Xml.childxml_arg0"StartingIpAddress")inmake?hourlyTimeDelta?endingLocation?startingLocation?endingIpAddress?startingIpAddress()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethourlyTimeDelta=field_mapjson__"HourlyTimeDelta"HourlyTimeDelta.of_jsoninletendingLocation=field_mapjson__"EndingLocation"Location.of_jsoninletstartingLocation=field_mapjson__"StartingLocation"Location.of_jsoninletendingIpAddress=field_mapjson__"EndingIpAddress"IpAddress.of_jsoninletstartingIpAddress=field_mapjson__"StartingIpAddress"IpAddress.of_jsoninmake?hourlyTimeDelta?endingLocation?startingLocation?endingIpAddress?startingIpAddress()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information on unusual and impossible travel in an account."]moduleNewAsoDetail=structtypenonrect={aso:Aso.toption[@ocaml.doc"Details about the new Autonomous System Organization (ASO)."];isNewForEntireAccount:IsNewForEntireAccount.toption[@ocaml.doc"Checks if the Autonomous System Organization (ASO) is new for the entire account."]}letmake?aso=fun?isNewForEntireAccount->fun()->{aso;isNewForEntireAccount}letto_valuex=structure_to_value[("Aso",(Option.mapx.aso~f:Aso.to_value));("IsNewForEntireAccount",(Option.mapx.isNewForEntireAccount~f:IsNewForEntireAccount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letisNewForEntireAccount=(Option.map~f:IsNewForEntireAccount.of_xml)(Xml.childxml_arg0"IsNewForEntireAccount")inletaso=(Option.map~f:Aso.of_xml)(Xml.childxml_arg0"Aso")inmake?isNewForEntireAccount?aso()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letisNewForEntireAccount=field_mapjson__"IsNewForEntireAccount"IsNewForEntireAccount.of_jsoninletaso=field_mapjson__"Aso"Aso.of_jsoninmake?isNewForEntireAccount?aso()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details new Autonomous System Organizations (ASOs) used either at the resource or account level."]moduleNewGeolocationDetail=structtypenonrect={location:Location.toption[@ocaml.doc"Location where the resource was accessed."];ipAddress:IpAddress.toption[@ocaml.doc"IP address using which the resource was accessed."];isNewForEntireAccount:IsNewForEntireAccount.toption[@ocaml.doc"Checks if the geolocation is new for the entire account."]}letmake?location=fun?ipAddress->fun?isNewForEntireAccount->fun()->{location;ipAddress;isNewForEntireAccount}letto_valuex=structure_to_value[("Location",(Option.mapx.location~f:Location.to_value));("IpAddress",(Option.mapx.ipAddress~f:IpAddress.to_value));("IsNewForEntireAccount",(Option.mapx.isNewForEntireAccount~f:IsNewForEntireAccount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letisNewForEntireAccount=(Option.map~f:IsNewForEntireAccount.of_xml)(Xml.childxml_arg0"IsNewForEntireAccount")inletipAddress=(Option.map~f:IpAddress.of_xml)(Xml.childxml_arg0"IpAddress")inletlocation=(Option.map~f:Location.of_xml)(Xml.childxml_arg0"Location")inmake?isNewForEntireAccount?ipAddress?location()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letisNewForEntireAccount=field_mapjson__"IsNewForEntireAccount"IsNewForEntireAccount.of_jsoninletipAddress=field_mapjson__"IpAddress"IpAddress.of_jsoninletlocation=field_mapjson__"Location"Location.of_jsoninmake?isNewForEntireAccount?ipAddress?location()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details new geolocations used either at the resource or account level. For example, lists an observed geolocation that is an infrequent or unused location based on previous user activity."]moduleNewUserAgentDetail=structtypenonrect={userAgent:UserAgent.toption[@ocaml.doc"New user agent which accessed the resource."];isNewForEntireAccount:IsNewForEntireAccount.toption[@ocaml.doc"Checks if the user agent is new for the entire account."]}letmake?userAgent=fun?isNewForEntireAccount->fun()->{userAgent;isNewForEntireAccount}letto_valuex=structure_to_value[("UserAgent",(Option.mapx.userAgent~f:UserAgent.to_value));("IsNewForEntireAccount",(Option.mapx.isNewForEntireAccount~f:IsNewForEntireAccount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letisNewForEntireAccount=(Option.map~f:IsNewForEntireAccount.of_xml)(Xml.childxml_arg0"IsNewForEntireAccount")inletuserAgent=(Option.map~f:UserAgent.of_xml)(Xml.childxml_arg0"UserAgent")inmake?isNewForEntireAccount?userAgent()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letisNewForEntireAccount=field_mapjson__"IsNewForEntireAccount"IsNewForEntireAccount.of_jsoninletuserAgent=field_mapjson__"UserAgent"UserAgent.of_jsoninmake?isNewForEntireAccount?userAgent()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details new user agents used either at the resource or account level."]moduleRelatedFindingDetail=structtypenonrect={arn:EntityArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the related finding."];type_:Type.toption[@ocaml.doc"The type of finding."];ipAddress:IpAddress.toption[@ocaml.doc"The IP address of the finding."]}letmake?arn=fun?type_->fun?ipAddress->fun()->{arn;type_;ipAddress}letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:EntityArn.to_value));("Type",(Option.mapx.type_~f:Type.to_value));("IpAddress",(Option.mapx.ipAddress~f:IpAddress.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letipAddress=(Option.map~f:IpAddress.of_xml)(Xml.childxml_arg0"IpAddress")inlettype_=(Option.map~f:Type.of_xml)(Xml.childxml_arg0"Type")inletarn=(Option.map~f:EntityArn.of_xml)(Xml.childxml_arg0"Arn")inmake?ipAddress?type_?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letipAddress=field_mapjson__"IpAddress"IpAddress.of_jsoninlettype_=field_mapjson__"Type"Type.of_jsoninletarn=field_mapjson__"Arn"EntityArn.of_jsoninmake?ipAddress?type_?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details related activities associated with a potential security event. Lists all distinct categories of evidence that are connected to the resource or the finding group."]moduleRelatedFindingGroupDetail=structtypenonrect={id:Id.toption[@ocaml.doc"The unique identifier for the finding group."]}letmake?id=fun()->{id}letto_valuex=structure_to_value[("Id",(Option.mapx.id~f:Id.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=(Option.map~f:Id.of_xml)(Xml.childxml_arg0"Id")inmake?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_mapjson__"Id"Id.of_jsoninmake?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details multiple activities as they related to a potential security event. Detective uses graph analysis technique that infers relationships between findings and entities, and groups them together as a finding group."]moduleTTPsObservedDetail=structtypenonrect={tactic:Tactic.toption[@ocaml.doc"The tactic used, identified by the investigation."];technique:Technique.toption[@ocaml.doc"The technique used, identified by the investigation."];procedure:Procedure.toption[@ocaml.doc"The procedure used, identified by the investigation."];ipAddress:IpAddress.toption[@ocaml.doc"The IP address where the tactics, techniques, and procedure (TTP) was observed."];aPIName:APIName.toption[@ocaml.doc"The name of the API where the tactics, techniques, and procedure (TTP) was observed."];aPISuccessCount:APISuccessCount.toption[@ocaml.doc"The total number of successful API requests."];aPIFailureCount:APIFailureCount.toption[@ocaml.doc"The total number of failed API requests."]}letmake?tactic=fun?technique->fun?procedure->fun?ipAddress->fun?aPIName->fun?aPISuccessCount->fun?aPIFailureCount->fun()->{tactic;technique;procedure;ipAddress;aPIName;aPISuccessCount;aPIFailureCount}letto_valuex=structure_to_value[("Tactic",(Option.mapx.tactic~f:Tactic.to_value));("Technique",(Option.mapx.technique~f:Technique.to_value));("Procedure",(Option.mapx.procedure~f:Procedure.to_value));("IpAddress",(Option.mapx.ipAddress~f:IpAddress.to_value));("APIName",(Option.mapx.aPIName~f:APIName.to_value));("APISuccessCount",(Option.mapx.aPISuccessCount~f:APISuccessCount.to_value));("APIFailureCount",(Option.mapx.aPIFailureCount~f:APIFailureCount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaPIFailureCount=(Option.map~f:APIFailureCount.of_xml)(Xml.childxml_arg0"APIFailureCount")inletaPISuccessCount=(Option.map~f:APISuccessCount.of_xml)(Xml.childxml_arg0"APISuccessCount")inletaPIName=(Option.map~f:APIName.of_xml)(Xml.childxml_arg0"APIName")inletipAddress=(Option.map~f:IpAddress.of_xml)(Xml.childxml_arg0"IpAddress")inletprocedure=(Option.map~f:Procedure.of_xml)(Xml.childxml_arg0"Procedure")inlettechnique=(Option.map~f:Technique.of_xml)(Xml.childxml_arg0"Technique")inlettactic=(Option.map~f:Tactic.of_xml)(Xml.childxml_arg0"Tactic")inmake?aPIFailureCount?aPISuccessCount?aPIName?ipAddress?procedure?technique?tactic()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaPIFailureCount=field_mapjson__"APIFailureCount"APIFailureCount.of_jsoninletaPISuccessCount=field_mapjson__"APISuccessCount"APISuccessCount.of_jsoninletaPIName=field_mapjson__"APIName"APIName.of_jsoninletipAddress=field_mapjson__"IpAddress"IpAddress.of_jsoninletprocedure=field_mapjson__"Procedure"Procedure.of_jsoninlettechnique=field_mapjson__"Technique"Technique.of_jsoninlettactic=field_mapjson__"Tactic"Tactic.of_jsoninmake?aPIFailureCount?aPISuccessCount?aPIName?ipAddress?procedure?technique?tactic()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details tactics, techniques, and procedures (TTPs) used in a potential security event. Tactics are based on MITRE ATT&CK Matrix for Enterprise."]moduleLastIngestStateChangeDates=structtypenonrect=(DatasourcePackageIngestState.t*TimestampForCollection.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 DatasourcePackageIngestState TimestampForCollection"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(DatasourcePackageIngestState.to_valuex)|>(funx->(TimestampForCollection.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:DatasourcePackageIngestState.of_string~of_json:TimestampForCollection.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccountId=structtypenonrect=stringletcontext_="AccountId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:12)>>=(fun()->(check_string_maxi~max:12)>>=(fun()->check_patterni~pattern:"^[0-9]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AccountId"jletto_json=simple_to_jsonto_valueendmoduleGraphArn=structtypenonrect=stringletcontext_="GraphArn"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^arn:aws[-\\w]{0,10}?:detective:[-\\w]{2,20}?:\\d{12}?:graph:[abcdef\\d]{32}?$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"GraphArn"jletto_json=simple_to_jsonto_valueendmoduleDatasourcePackageIngestStates=structtypenonrect=(DatasourcePackage.t*DatasourcePackageIngestState.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((DatasourcePackage.of_stringchopped),(DatasourcePackageIngestState.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(DatasourcePackage.to_valuex)|>(funx->(DatasourcePackageIngestState.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:DatasourcePackage.of_string~of_json:DatasourcePackageIngestState.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEmailAddress=structtypenonrect=stringletcontext_="EmailAddress"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"^.+@(?:(?:(?!-)[A-Za-z0-9-]{1,62})?[A-Za-z0-9]{1}\\.)+[A-Za-z]{2,63}$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EmailAddress"jletto_json=simple_to_jsonto_valueendmoduleInvitationType=structtypenonrect=|INVITATION|ORGANIZATION|Non_static_idofstringletmakei=iletto_string=function|INVITATION->"INVITATION"|ORGANIZATION->"ORGANIZATION"|Non_static_ids->sletof_string=function|"INVITATION"->INVITATION|"ORGANIZATION"->ORGANIZATION|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 InvitationType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"InvitationType"j)letto_json=simple_to_jsonto_valueendmoduleMemberDisabledReason=structtypenonrect=|VOLUME_TOO_HIGH|VOLUME_UNKNOWN|Non_static_idofstringletmakei=iletto_string=function|VOLUME_TOO_HIGH->"VOLUME_TOO_HIGH"|VOLUME_UNKNOWN->"VOLUME_UNKNOWN"|Non_static_ids->sletof_string=function|"VOLUME_TOO_HIGH"->VOLUME_TOO_HIGH|"VOLUME_UNKNOWN"->VOLUME_UNKNOWN|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 MemberDisabledReason"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MemberDisabledReason"j)letto_json=simple_to_jsonto_valueendmoduleMemberStatus=structtypenonrect=|INVITED|VERIFICATION_IN_PROGRESS|VERIFICATION_FAILED|ENABLED|ACCEPTED_BUT_DISABLED|Non_static_idofstringletmakei=iletto_string=function|INVITED->"INVITED"|VERIFICATION_IN_PROGRESS->"VERIFICATION_IN_PROGRESS"|VERIFICATION_FAILED->"VERIFICATION_FAILED"|ENABLED->"ENABLED"|ACCEPTED_BUT_DISABLED->"ACCEPTED_BUT_DISABLED"|Non_static_ids->sletof_string=function|"INVITED"->INVITED|"VERIFICATION_IN_PROGRESS"->VERIFICATION_IN_PROGRESS|"VERIFICATION_FAILED"->VERIFICATION_FAILED|"ENABLED"->ENABLED|"ACCEPTED_BUT_DISABLED"->ACCEPTED_BUT_DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration MemberStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MemberStatus"j)letto_json=simple_to_jsonto_valueendmodulePercentage=structtypenonrect=floatletmakei=iletof_string=Float.of_stringletto_valuex=`Doublexletto_queryv=to_queryto_valuevletto_headerx=Stdlib.Float.to_stringxletof_xmlxml_arg0=Float.of_string(string_of_xml~kind:"a double"xml_arg0)letof_jsonj=float_of_json~kind:"a double"jletto_json=simple_to_jsonto_valueendmoduleVolumeUsageByDatasourcePackage=structtypenonrect=(DatasourcePackage.t*DatasourcePackageUsageInfo.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 DatasourcePackage DatasourcePackageUsageInfo"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(DatasourcePackage.to_valuex)|>(funx->(DatasourcePackageUsageInfo.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:DatasourcePackage.of_string~of_json:DatasourcePackageUsageInfo.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEntityType=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 EntityType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EntityType"j)letto_json=simple_to_jsonto_valueendmoduleInvestigationId=structtypenonrect=stringletcontext_="InvestigationId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:21)>>=(fun()->(check_string_maxi~max:21)>>=(fun()->check_patterni~pattern:"^[0-9]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"InvestigationId"jletto_json=simple_to_jsonto_valueendmoduleSeverity=structtypenonrect=|INFORMATIONAL|LOW|MEDIUM|HIGH|CRITICAL|Non_static_idofstringletmakei=iletto_string=function|INFORMATIONAL->"INFORMATIONAL"|LOW->"LOW"|MEDIUM->"MEDIUM"|HIGH->"HIGH"|CRITICAL->"CRITICAL"|Non_static_ids->sletof_string=function|"INFORMATIONAL"->INFORMATIONAL|"LOW"->LOW|"MEDIUM"->MEDIUM|"HIGH"->HIGH|"CRITICAL"->CRITICAL|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 Severity"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Severity"j)letto_json=simple_to_jsonto_valueendmoduleState=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 State"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"State"j)letto_json=simple_to_jsonto_valueendmoduleStatus=structtypenonrect=|RUNNING|FAILED|SUCCESSFUL|Non_static_idofstringletmakei=iletto_string=function|RUNNING->"RUNNING"|FAILED->"FAILED"|SUCCESSFUL->"SUCCESSFUL"|Non_static_ids->sletof_string=function|"RUNNING"->RUNNING|"FAILED"->FAILED|"SUCCESSFUL"->SUCCESSFUL|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_valueendmoduleValue=structtypenonrect=stringletcontext_="Value"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(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:"Value"jletto_json=simple_to_jsonto_valueendmoduleIndicatorDetail=structtypenonrect={tTPsObservedDetail:TTPsObservedDetail.toption[@ocaml.doc"Details about the indicator of compromise."];impossibleTravelDetail:ImpossibleTravelDetail.toption[@ocaml.doc"Identifies unusual and impossible user activity for an account."];flaggedIpAddressDetail:FlaggedIpAddressDetail.toption[@ocaml.doc"Suspicious IP addresses that are flagged, which indicates critical or severe threats based on threat intelligence by Detective. This indicator is derived from Amazon Web Services threat intelligence."];newGeolocationDetail:NewGeolocationDetail.toption[@ocaml.doc"Contains details about the new geographic location."];newAsoDetail:NewAsoDetail.toption[@ocaml.doc"Contains details about the new Autonomous System Organization (ASO)."];newUserAgentDetail:NewUserAgentDetail.toption[@ocaml.doc"Contains details about the new user agent."];relatedFindingDetail:RelatedFindingDetail.toption[@ocaml.doc"Contains details about related findings."];relatedFindingGroupDetail:RelatedFindingGroupDetail.toption[@ocaml.doc"Contains details about related finding groups."]}letmake?tTPsObservedDetail=fun?impossibleTravelDetail->fun?flaggedIpAddressDetail->fun?newGeolocationDetail->fun?newAsoDetail->fun?newUserAgentDetail->fun?relatedFindingDetail->fun?relatedFindingGroupDetail->fun()->{tTPsObservedDetail;impossibleTravelDetail;flaggedIpAddressDetail;newGeolocationDetail;newAsoDetail;newUserAgentDetail;relatedFindingDetail;relatedFindingGroupDetail}letto_valuex=structure_to_value[("TTPsObservedDetail",(Option.mapx.tTPsObservedDetail~f:TTPsObservedDetail.to_value));("ImpossibleTravelDetail",(Option.mapx.impossibleTravelDetail~f:ImpossibleTravelDetail.to_value));("FlaggedIpAddressDetail",(Option.mapx.flaggedIpAddressDetail~f:FlaggedIpAddressDetail.to_value));("NewGeolocationDetail",(Option.mapx.newGeolocationDetail~f:NewGeolocationDetail.to_value));("NewAsoDetail",(Option.mapx.newAsoDetail~f:NewAsoDetail.to_value));("NewUserAgentDetail",(Option.mapx.newUserAgentDetail~f:NewUserAgentDetail.to_value));("RelatedFindingDetail",(Option.mapx.relatedFindingDetail~f:RelatedFindingDetail.to_value));("RelatedFindingGroupDetail",(Option.mapx.relatedFindingGroupDetail~f:RelatedFindingGroupDetail.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrelatedFindingGroupDetail=(Option.map~f:RelatedFindingGroupDetail.of_xml)(Xml.childxml_arg0"RelatedFindingGroupDetail")inletrelatedFindingDetail=(Option.map~f:RelatedFindingDetail.of_xml)(Xml.childxml_arg0"RelatedFindingDetail")inletnewUserAgentDetail=(Option.map~f:NewUserAgentDetail.of_xml)(Xml.childxml_arg0"NewUserAgentDetail")inletnewAsoDetail=(Option.map~f:NewAsoDetail.of_xml)(Xml.childxml_arg0"NewAsoDetail")inletnewGeolocationDetail=(Option.map~f:NewGeolocationDetail.of_xml)(Xml.childxml_arg0"NewGeolocationDetail")inletflaggedIpAddressDetail=(Option.map~f:FlaggedIpAddressDetail.of_xml)(Xml.childxml_arg0"FlaggedIpAddressDetail")inletimpossibleTravelDetail=(Option.map~f:ImpossibleTravelDetail.of_xml)(Xml.childxml_arg0"ImpossibleTravelDetail")inlettTPsObservedDetail=(Option.map~f:TTPsObservedDetail.of_xml)(Xml.childxml_arg0"TTPsObservedDetail")inmake?relatedFindingGroupDetail?relatedFindingDetail?newUserAgentDetail?newAsoDetail?newGeolocationDetail?flaggedIpAddressDetail?impossibleTravelDetail?tTPsObservedDetail()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrelatedFindingGroupDetail=field_mapjson__"RelatedFindingGroupDetail"RelatedFindingGroupDetail.of_jsoninletrelatedFindingDetail=field_mapjson__"RelatedFindingDetail"RelatedFindingDetail.of_jsoninletnewUserAgentDetail=field_mapjson__"NewUserAgentDetail"NewUserAgentDetail.of_jsoninletnewAsoDetail=field_mapjson__"NewAsoDetail"NewAsoDetail.of_jsoninletnewGeolocationDetail=field_mapjson__"NewGeolocationDetail"NewGeolocationDetail.of_jsoninletflaggedIpAddressDetail=field_mapjson__"FlaggedIpAddressDetail"FlaggedIpAddressDetail.of_jsoninletimpossibleTravelDetail=field_mapjson__"ImpossibleTravelDetail"ImpossibleTravelDetail.of_jsoninlettTPsObservedDetail=field_mapjson__"TTPsObservedDetail"TTPsObservedDetail.of_jsoninmake?relatedFindingGroupDetail?relatedFindingDetail?newUserAgentDetail?newAsoDetail?newGeolocationDetail?flaggedIpAddressDetail?impossibleTravelDetail?tTPsObservedDetail()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details about the indicators of compromise which are used to determine if a resource is involved in a security incident. An indicator of compromise (IOC) is an artifact observed in or on a network, system, or environment that can (with a high level of confidence) identify malicious activity or a security incident. For the list of indicators of compromise that are generated by Detective investigations, see Detective investigations."]moduleIndicatorType=structtypenonrect=|TTP_OBSERVED|IMPOSSIBLE_TRAVEL|FLAGGED_IP_ADDRESS|NEW_GEOLOCATION|NEW_ASO|NEW_USER_AGENT|RELATED_FINDING|RELATED_FINDING_GROUP|Non_static_idofstringletmakei=iletto_string=function|TTP_OBSERVED->"TTP_OBSERVED"|IMPOSSIBLE_TRAVEL->"IMPOSSIBLE_TRAVEL"|FLAGGED_IP_ADDRESS->"FLAGGED_IP_ADDRESS"|NEW_GEOLOCATION->"NEW_GEOLOCATION"|NEW_ASO->"NEW_ASO"|NEW_USER_AGENT->"NEW_USER_AGENT"|RELATED_FINDING->"RELATED_FINDING"|RELATED_FINDING_GROUP->"RELATED_FINDING_GROUP"|Non_static_ids->sletof_string=function|"TTP_OBSERVED"->TTP_OBSERVED|"IMPOSSIBLE_TRAVEL"->IMPOSSIBLE_TRAVEL|"FLAGGED_IP_ADDRESS"->FLAGGED_IP_ADDRESS|"NEW_GEOLOCATION"->NEW_GEOLOCATION|"NEW_ASO"->NEW_ASO|"NEW_USER_AGENT"->NEW_USER_AGENT|"RELATED_FINDING"->RELATED_FINDING|"RELATED_FINDING_GROUP"->RELATED_FINDING_GROUP|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 IndicatorType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"IndicatorType"j)letto_json=simple_to_jsonto_valueendmoduleUnprocessedReason=structtypenonrect=stringletcontext_="UnprocessedReason"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:"UnprocessedReason"jletto_json=simple_to_jsonto_valueendmoduleResource=structtypenonrect=stringletcontext_="Resource"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:64)>>=(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:"Resource"jletto_json=simple_to_jsonto_valueendmoduleDatasourcePackageIngestHistory=structtypenonrect=(DatasourcePackage.t*LastIngestStateChangeDates.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 DatasourcePackage LastIngestStateChangeDates"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(DatasourcePackage.to_valuex)|>(funx->(LastIngestStateChangeDates.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:DatasourcePackage.of_string~of_json:LastIngestStateChangeDates.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleErrorCode=structtypenonrect=|INVALID_GRAPH_ARN|INVALID_REQUEST_BODY|INTERNAL_ERROR|Non_static_idofstringletmakei=iletto_string=function|INVALID_GRAPH_ARN->"INVALID_GRAPH_ARN"|INVALID_REQUEST_BODY->"INVALID_REQUEST_BODY"|INTERNAL_ERROR->"INTERNAL_ERROR"|Non_static_ids->sletof_string=function|"INVALID_GRAPH_ARN"->INVALID_GRAPH_ARN|"INVALID_REQUEST_BODY"->INVALID_REQUEST_BODY|"INTERNAL_ERROR"->INTERNAL_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 ErrorCode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ErrorCode"j)letto_json=simple_to_jsonto_valueendmoduleErrorCodeReason=structtypenonrect=stringletcontext_="ErrorCodeReason"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:"ErrorCodeReason"jletto_json=simple_to_jsonto_valueendmoduleErrorMessage=structtypenonrect=stringletcontext_="ErrorMessage"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ErrorMessage"jletto_json=simple_to_jsonto_valueendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^(?!aws:)[a-zA-Z+-=._:/]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith(check_string_maxi~max:256);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleAdministrator=structtypenonrect={accountId:AccountId.toption[@ocaml.doc"The Amazon Web Services account identifier of the Detective administrator account for the organization."];graphArn:GraphArn.toption[@ocaml.doc"The ARN of the organization behavior graph."];delegationTime:Timestamp.toption[@ocaml.doc"The date and time when the Detective administrator account was enabled. The value is an ISO8601 formatted string. For example, 2021-08-18T16:35:56.284Z."]}letmake?accountId=fun?graphArn->fun?delegationTime->fun()->{accountId;graphArn;delegationTime}letto_valuex=structure_to_value[("AccountId",(Option.mapx.accountId~f:AccountId.to_value));("GraphArn",(Option.mapx.graphArn~f:GraphArn.to_value));("DelegationTime",(Option.mapx.delegationTime~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdelegationTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"DelegationTime")inletgraphArn=(Option.map~f:GraphArn.of_xml)(Xml.childxml_arg0"GraphArn")inletaccountId=(Option.map~f:AccountId.of_xml)(Xml.childxml_arg0"AccountId")inmake?delegationTime?graphArn?accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdelegationTime=field_mapjson__"DelegationTime"Timestamp.of_jsoninletgraphArn=field_mapjson__"GraphArn"GraphArn.of_jsoninletaccountId=field_mapjson__"AccountId"AccountId.of_jsoninmake?delegationTime?graphArn?accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about the Detective administrator account for an organization."]moduleMemberDetail=structtypenonrect={accountId:AccountId.toption[@ocaml.doc"The Amazon Web Services account identifier for the member account."];emailAddress:EmailAddress.toption[@ocaml.doc"The Amazon Web Services account root user email address for the member account."];graphArn:GraphArn.toption[@ocaml.doc"The ARN of the behavior graph."];masterId:AccountId.toption[@ocaml.doc"The Amazon Web Services account identifier of the administrator account for the behavior graph."];administratorId:AccountId.toption[@ocaml.doc"The Amazon Web Services account identifier of the administrator account for the behavior graph."];status:MemberStatus.toption[@ocaml.doc"The current membership status of the member account. The status can have one of the following values: INVITED - For invited accounts only. Indicates that the member was sent an invitation but has not yet responded. VERIFICATION_IN_PROGRESS - For invited accounts only, indicates that Detective is verifying that the account identifier and email address provided for the member account match. If they do match, then Detective sends the invitation. If the email address and account identifier don't match, then the member cannot be added to the behavior graph. For organization accounts in the organization behavior graph, indicates that Detective is verifying that the account belongs to the organization. VERIFICATION_FAILED - For invited accounts only. Indicates that the account and email address provided for the member account do not match, and Detective did not send an invitation to the account. ENABLED - Indicates that the member account currently contributes data to the behavior graph. For invited accounts, the member account accepted the invitation. For organization accounts in the organization behavior graph, the Detective administrator account enabled the organization account as a member account. ACCEPTED_BUT_DISABLED - The account accepted the invitation, or was enabled by the Detective administrator account, but is prevented from contributing data to the behavior graph. DisabledReason provides the reason why the member account is not enabled. Invited accounts that declined an invitation or that were removed from the behavior graph are not included. In the organization behavior graph, organization accounts that the Detective administrator account did not enable are not included."];disabledReason:MemberDisabledReason.toption[@ocaml.doc"For member accounts with a status of ACCEPTED_BUT_DISABLED, the reason that the member account is not enabled. The reason can have one of the following values: VOLUME_TOO_HIGH - Indicates that adding the member account would cause the data volume for the behavior graph to be too high. VOLUME_UNKNOWN - Indicates that Detective is unable to verify the data volume for the member account. This is usually because the member account is not enrolled in Amazon GuardDuty."];invitedTime:Timestamp.toption[@ocaml.doc"For invited accounts, the date and time that Detective sent the invitation to the account. The value is an ISO8601 formatted string. For example, 2021-08-18T16:35:56.284Z."];updatedTime:Timestamp.toption[@ocaml.doc"The date and time that the member account was last updated. The value is an ISO8601 formatted string. For example, 2021-08-18T16:35:56.284Z."];volumeUsageInBytes:ByteValue.toption[@ocaml.doc"The data volume in bytes per day for the member account."];volumeUsageUpdatedTime:Timestamp.toption[@ocaml.doc"The data and time when the member account data volume was last updated. The value is an ISO8601 formatted string. For example, 2021-08-18T16:35:56.284Z."];percentOfGraphUtilization:Percentage.toption[@ocaml.doc"The member account data volume as a percentage of the maximum allowed data volume. 0 indicates 0 percent, and 100 indicates 100 percent. Note that this is not the percentage of the behavior graph data volume. For example, the data volume for the behavior graph is 80 GB per day. The maximum data volume is 160 GB per day. If the data volume for the member account is 40 GB per day, then PercentOfGraphUtilization is 25. It represents 25% of the maximum allowed data volume."];percentOfGraphUtilizationUpdatedTime:Timestamp.toption[@ocaml.doc"The date and time when the graph utilization percentage was last updated. The value is an ISO8601 formatted string. For example, 2021-08-18T16:35:56.284Z."];invitationType:InvitationType.toption[@ocaml.doc"The type of behavior graph membership. For an organization account in the organization behavior graph, the type is ORGANIZATION. For an account that was invited to a behavior graph, the type is INVITATION."];volumeUsageByDatasourcePackage:VolumeUsageByDatasourcePackage.toption[@ocaml.doc"Details on the volume of usage for each data source package in a behavior graph."];datasourcePackageIngestStates:DatasourcePackageIngestStates.toption[@ocaml.doc"The state of a data source package for the behavior graph."]}letmake?accountId=fun?emailAddress->fun?graphArn->fun?masterId->fun?administratorId->fun?status->fun?disabledReason->fun?invitedTime->fun?updatedTime->fun?volumeUsageInBytes->fun?volumeUsageUpdatedTime->fun?percentOfGraphUtilization->fun?percentOfGraphUtilizationUpdatedTime->fun?invitationType->fun?volumeUsageByDatasourcePackage->fun?datasourcePackageIngestStates->fun()->{accountId;emailAddress;graphArn;masterId;administratorId;status;disabledReason;invitedTime;updatedTime;volumeUsageInBytes;volumeUsageUpdatedTime;percentOfGraphUtilization;percentOfGraphUtilizationUpdatedTime;invitationType;volumeUsageByDatasourcePackage;datasourcePackageIngestStates}letto_valuex=structure_to_value[("AccountId",(Option.mapx.accountId~f:AccountId.to_value));("EmailAddress",(Option.mapx.emailAddress~f:EmailAddress.to_value));("GraphArn",(Option.mapx.graphArn~f:GraphArn.to_value));("MasterId",(Option.mapx.masterId~f:AccountId.to_value));("AdministratorId",(Option.mapx.administratorId~f:AccountId.to_value));("Status",(Option.mapx.status~f:MemberStatus.to_value));("DisabledReason",(Option.mapx.disabledReason~f:MemberDisabledReason.to_value));("InvitedTime",(Option.mapx.invitedTime~f:Timestamp.to_value));("UpdatedTime",(Option.mapx.updatedTime~f:Timestamp.to_value));("VolumeUsageInBytes",(Option.mapx.volumeUsageInBytes~f:ByteValue.to_value));("VolumeUsageUpdatedTime",(Option.mapx.volumeUsageUpdatedTime~f:Timestamp.to_value));("PercentOfGraphUtilization",(Option.mapx.percentOfGraphUtilization~f:Percentage.to_value));("PercentOfGraphUtilizationUpdatedTime",(Option.mapx.percentOfGraphUtilizationUpdatedTime~f:Timestamp.to_value));("InvitationType",(Option.mapx.invitationType~f:InvitationType.to_value));("VolumeUsageByDatasourcePackage",(Option.mapx.volumeUsageByDatasourcePackage~f:VolumeUsageByDatasourcePackage.to_value));("DatasourcePackageIngestStates",(Option.mapx.datasourcePackageIngestStates~f:DatasourcePackageIngestStates.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasourcePackageIngestStates=(Option.map~f:DatasourcePackageIngestStates.of_xml)(Xml.childxml_arg0"DatasourcePackageIngestStates")inletvolumeUsageByDatasourcePackage=(Option.map~f:VolumeUsageByDatasourcePackage.of_xml)(Xml.childxml_arg0"VolumeUsageByDatasourcePackage")inletinvitationType=(Option.map~f:InvitationType.of_xml)(Xml.childxml_arg0"InvitationType")inletpercentOfGraphUtilizationUpdatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"PercentOfGraphUtilizationUpdatedTime")inletpercentOfGraphUtilization=(Option.map~f:Percentage.of_xml)(Xml.childxml_arg0"PercentOfGraphUtilization")inletvolumeUsageUpdatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"VolumeUsageUpdatedTime")inletvolumeUsageInBytes=(Option.map~f:ByteValue.of_xml)(Xml.childxml_arg0"VolumeUsageInBytes")inletupdatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"UpdatedTime")inletinvitedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"InvitedTime")inletdisabledReason=(Option.map~f:MemberDisabledReason.of_xml)(Xml.childxml_arg0"DisabledReason")inletstatus=(Option.map~f:MemberStatus.of_xml)(Xml.childxml_arg0"Status")inletadministratorId=(Option.map~f:AccountId.of_xml)(Xml.childxml_arg0"AdministratorId")inletmasterId=(Option.map~f:AccountId.of_xml)(Xml.childxml_arg0"MasterId")inletgraphArn=(Option.map~f:GraphArn.of_xml)(Xml.childxml_arg0"GraphArn")inletemailAddress=(Option.map~f:EmailAddress.of_xml)(Xml.childxml_arg0"EmailAddress")inletaccountId=(Option.map~f:AccountId.of_xml)(Xml.childxml_arg0"AccountId")inmake?datasourcePackageIngestStates?volumeUsageByDatasourcePackage?invitationType?percentOfGraphUtilizationUpdatedTime?percentOfGraphUtilization?volumeUsageUpdatedTime?volumeUsageInBytes?updatedTime?invitedTime?disabledReason?status?administratorId?masterId?graphArn?emailAddress?accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasourcePackageIngestStates=field_mapjson__"DatasourcePackageIngestStates"DatasourcePackageIngestStates.of_jsoninletvolumeUsageByDatasourcePackage=field_mapjson__"VolumeUsageByDatasourcePackage"VolumeUsageByDatasourcePackage.of_jsoninletinvitationType=field_mapjson__"InvitationType"InvitationType.of_jsoninletpercentOfGraphUtilizationUpdatedTime=field_mapjson__"PercentOfGraphUtilizationUpdatedTime"Timestamp.of_jsoninletpercentOfGraphUtilization=field_mapjson__"PercentOfGraphUtilization"Percentage.of_jsoninletvolumeUsageUpdatedTime=field_mapjson__"VolumeUsageUpdatedTime"Timestamp.of_jsoninletvolumeUsageInBytes=field_mapjson__"VolumeUsageInBytes"ByteValue.of_jsoninletupdatedTime=field_mapjson__"UpdatedTime"Timestamp.of_jsoninletinvitedTime=field_mapjson__"InvitedTime"Timestamp.of_jsoninletdisabledReason=field_mapjson__"DisabledReason"MemberDisabledReason.of_jsoninletstatus=field_mapjson__"Status"MemberStatus.of_jsoninletadministratorId=field_mapjson__"AdministratorId"AccountId.of_jsoninletmasterId=field_mapjson__"MasterId"AccountId.of_jsoninletgraphArn=field_mapjson__"GraphArn"GraphArn.of_jsoninletemailAddress=field_mapjson__"EmailAddress"EmailAddress.of_jsoninletaccountId=field_mapjson__"AccountId"AccountId.of_jsoninmake?datasourcePackageIngestStates?volumeUsageByDatasourcePackage?invitationType?percentOfGraphUtilizationUpdatedTime?percentOfGraphUtilization?volumeUsageUpdatedTime?volumeUsageInBytes?updatedTime?invitedTime?disabledReason?status?administratorId?masterId?graphArn?emailAddress?accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details about a member account in a behavior graph."]moduleInvestigationDetail=structtypenonrect={investigationId:InvestigationId.toption[@ocaml.doc"The investigation ID of the investigation report."];severity:Severity.toption[@ocaml.doc"Severity based on the likelihood and impact of the indicators of compromise discovered in the investigation."];status:Status.toption[@ocaml.doc"Status based on the completion status of the investigation."];state:State.toption[@ocaml.doc"The current state of the investigation. An archived investigation indicates you have completed reviewing the investigation."];createdTime:Timestamp.toption[@ocaml.doc"The time stamp of the creation time of the investigation report. The value is an UTC ISO8601 formatted string. For example, 2021-08-18T16:35:56.284Z."];entityArn:EntityArn.toption[@ocaml.doc"The unique Amazon Resource Name (ARN) of the IAM user and IAM role."];entityType:EntityType.toption[@ocaml.doc"Type of entity. For example, Amazon Web Services accounts, such as IAM user and role."]}letmake?investigationId=fun?severity->fun?status->fun?state->fun?createdTime->fun?entityArn->fun?entityType->fun()->{investigationId;severity;status;state;createdTime;entityArn;entityType}letto_valuex=structure_to_value[("InvestigationId",(Option.mapx.investigationId~f:InvestigationId.to_value));("Severity",(Option.mapx.severity~f:Severity.to_value));("Status",(Option.mapx.status~f:Status.to_value));("State",(Option.mapx.state~f:State.to_value));("CreatedTime",(Option.mapx.createdTime~f:Timestamp.to_value));("EntityArn",(Option.mapx.entityArn~f:EntityArn.to_value));("EntityType",(Option.mapx.entityType~f:EntityType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letentityType=(Option.map~f:EntityType.of_xml)(Xml.childxml_arg0"EntityType")inletentityArn=(Option.map~f:EntityArn.of_xml)(Xml.childxml_arg0"EntityArn")inletcreatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreatedTime")inletstate=(Option.map~f:State.of_xml)(Xml.childxml_arg0"State")inletstatus=(Option.map~f:Status.of_xml)(Xml.childxml_arg0"Status")inletseverity=(Option.map~f:Severity.of_xml)(Xml.childxml_arg0"Severity")inletinvestigationId=(Option.map~f:InvestigationId.of_xml)(Xml.childxml_arg0"InvestigationId")inmake?entityType?entityArn?createdTime?state?status?severity?investigationId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letentityType=field_mapjson__"EntityType"EntityType.of_jsoninletentityArn=field_mapjson__"EntityArn"EntityArn.of_jsoninletcreatedTime=field_mapjson__"CreatedTime"Timestamp.of_jsoninletstate=field_mapjson__"State"State.of_jsoninletstatus=field_mapjson__"Status"Status.of_jsoninletseverity=field_mapjson__"Severity"Severity.of_jsoninletinvestigationId=field_mapjson__"InvestigationId"InvestigationId.of_jsoninmake?entityType?entityArn?createdTime?state?status?severity?investigationId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details about the investigation related to a potential security event identified by Detective."]moduleDateFilter=structtypenonrect={startInclusive:Timestamp.t[@ocaml.doc"A timestamp representing the start of the time period from when data is filtered, including the start date."];endInclusive:Timestamp.t[@ocaml.doc"A timestamp representing the end date of the time period until when data is filtered, including the end date."]}letcontext_="DateFilter"letmake~startInclusive=fun~endInclusive->fun()->{startInclusive;endInclusive}letto_valuex=structure_to_value[("StartInclusive",(Some(Timestamp.to_valuex.startInclusive)));("EndInclusive",(Some(Timestamp.to_valuex.endInclusive)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendInclusive=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"EndInclusive")inletstartInclusive=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"StartInclusive")inmake~endInclusive~startInclusive()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendInclusive=field_map_exnjson__"EndInclusive"Timestamp.of_jsoninletstartInclusive=field_map_exnjson__"StartInclusive"Timestamp.of_jsoninmake~endInclusive~startInclusive()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details on the time range used to filter data."]moduleStringFilter=structtypenonrect={value:Value.t[@ocaml.doc"The string filter value."]}letcontext_="StringFilter"letmake~value=fun()->{value}letto_valuex=structure_to_value[("Value",(Some(Value.to_valuex.value)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=Value.of_xml(Xml.child_exn~context:context_xml_arg0"Value")inmake~value()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_map_exnjson__"Value"Value.of_jsoninmake~value()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A string for filtering Detective investigations."]moduleField=structtypenonrect=|SEVERITY|STATUS|CREATED_TIME|Non_static_idofstringletmakei=iletto_string=function|SEVERITY->"SEVERITY"|STATUS->"STATUS"|CREATED_TIME->"CREATED_TIME"|Non_static_ids->sletof_string=function|"SEVERITY"->SEVERITY|"STATUS"->STATUS|"CREATED_TIME"->CREATED_TIME|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 Field"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Field"j)letto_json=simple_to_jsonto_valueendmoduleSortOrder=structtypenonrect=|ASC|DESC|Non_static_idofstringletmakei=iletto_string=function|ASC->"ASC"|DESC->"DESC"|Non_static_ids->sletof_string=function|"ASC"->ASC|"DESC"->DESC|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration SortOrder"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SortOrder"j)letto_json=simple_to_jsonto_valueendmoduleIndicator=structtypenonrect={indicatorType:IndicatorType.toption[@ocaml.doc"The type of indicator."];indicatorDetail:IndicatorDetail.toption[@ocaml.doc"Details about the indicators of compromise that are used to determine if a resource is involved in a security incident. An indicator of compromise (IOC) is an artifact observed in or on a network, system, or environment that can (with a high level of confidence) identify malicious activity or a security incident."]}letmake?indicatorType=fun?indicatorDetail->fun()->{indicatorType;indicatorDetail}letto_valuex=structure_to_value[("IndicatorType",(Option.mapx.indicatorType~f:IndicatorType.to_value));("IndicatorDetail",(Option.mapx.indicatorDetail~f:IndicatorDetail.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letindicatorDetail=(Option.map~f:IndicatorDetail.of_xml)(Xml.childxml_arg0"IndicatorDetail")inletindicatorType=(Option.map~f:IndicatorType.of_xml)(Xml.childxml_arg0"IndicatorType")inmake?indicatorDetail?indicatorType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letindicatorDetail=field_mapjson__"IndicatorDetail"IndicatorDetail.of_jsoninletindicatorType=field_mapjson__"IndicatorType"IndicatorType.of_jsoninmake?indicatorDetail?indicatorType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Detective investigations triages indicators of compromises such as a finding and surfaces only the most critical and suspicious issues, so you can focus on high-level investigations. An Indicator lets you determine if an Amazon Web Services resource is involved in unusual activity that could indicate malicious behavior and its impact."]moduleGraph=structtypenonrect={arn:GraphArn.toption[@ocaml.doc"The ARN of the behavior graph."];createdTime:Timestamp.toption[@ocaml.doc"The date and time that the behavior graph was created. The value is an ISO8601 formatted string. For example, 2021-08-18T16:35:56.284Z."]}letmake?arn=fun?createdTime->fun()->{arn;createdTime}letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:GraphArn.to_value));("CreatedTime",(Option.mapx.createdTime~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreatedTime")inletarn=(Option.map~f:GraphArn.of_xml)(Xml.childxml_arg0"Arn")inmake?createdTime?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreatedTime=field_mapjson__"CreatedTime"Timestamp.of_jsoninletarn=field_mapjson__"Arn"GraphArn.of_jsoninmake?createdTime?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A behavior graph in Detective."]moduleDatasourcePackageIngestDetail=structtypenonrect={datasourcePackageIngestState:DatasourcePackageIngestState.toption[@ocaml.doc"Details on which data source packages are ingested for a member account."];lastIngestStateChange:LastIngestStateChangeDates.toption[@ocaml.doc"The date a data source package was enabled for this account"]}letmake?datasourcePackageIngestState=fun?lastIngestStateChange->fun()->{datasourcePackageIngestState;lastIngestStateChange}letto_valuex=structure_to_value[("DatasourcePackageIngestState",(Option.mapx.datasourcePackageIngestState~f:DatasourcePackageIngestState.to_value));("LastIngestStateChange",(Option.mapx.lastIngestStateChange~f:LastIngestStateChangeDates.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastIngestStateChange=(Option.map~f:LastIngestStateChangeDates.of_xml)(Xml.childxml_arg0"LastIngestStateChange")inletdatasourcePackageIngestState=(Option.map~f:DatasourcePackageIngestState.of_xml)(Xml.childxml_arg0"DatasourcePackageIngestState")inmake?lastIngestStateChange?datasourcePackageIngestState()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastIngestStateChange=field_mapjson__"LastIngestStateChange"LastIngestStateChangeDates.of_jsoninletdatasourcePackageIngestState=field_mapjson__"DatasourcePackageIngestState"DatasourcePackageIngestState.of_jsoninmake?lastIngestStateChange?datasourcePackageIngestState()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details about the data source packages ingested by your behavior graph."]moduleUnprocessedAccount=structtypenonrect={accountId:AccountId.toption[@ocaml.doc"The Amazon Web Services account identifier of the member account that was not processed."];reason:UnprocessedReason.toption[@ocaml.doc"The reason that the member account request could not be processed."]}letmake?accountId=fun?reason->fun()->{accountId;reason}letto_valuex=structure_to_value[("AccountId",(Option.mapx.accountId~f:AccountId.to_value));("Reason",(Option.mapx.reason~f:UnprocessedReason.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreason=(Option.map~f:UnprocessedReason.of_xml)(Xml.childxml_arg0"Reason")inletaccountId=(Option.map~f:AccountId.of_xml)(Xml.childxml_arg0"AccountId")inmake?reason?accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreason=field_mapjson__"Reason"UnprocessedReason.of_jsoninletaccountId=field_mapjson__"AccountId"AccountId.of_jsoninmake?reason?accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A member account that was included in a request but for which the request could not be processed."]moduleResourceList=structtypenonrect=Resource.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(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:Resource.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Resource.of_xml)letof_jsonj=list_of_json~kind:"ResourceList"~of_json:Resource.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccount=structtypenonrect={accountId:AccountId.t[@ocaml.doc"The account identifier of the Amazon Web Services account."];emailAddress:EmailAddress.t[@ocaml.doc"The Amazon Web Services account root user email address for the Amazon Web Services account."]}letcontext_="Account"letmake~accountId=fun~emailAddress->fun()->{accountId;emailAddress}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)));("EmailAddress",(Some(EmailAddress.to_valuex.emailAddress)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letemailAddress=EmailAddress.of_xml(Xml.child_exn~context:context_xml_arg0"EmailAddress")inletaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake~emailAddress~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letemailAddress=field_map_exnjson__"EmailAddress"EmailAddress.of_jsoninletaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake~emailAddress~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An Amazon Web Services account that is the administrator account of or a member of a behavior graph."]moduleMembershipDatasources=structtypenonrect={accountId:AccountId.toption[@ocaml.doc"The account identifier of the Amazon Web Services account."];graphArn:GraphArn.toption[@ocaml.doc"The ARN of the organization behavior graph."];datasourcePackageIngestHistory:DatasourcePackageIngestHistory.toption[@ocaml.doc"Details on when a data source package was added to a behavior graph."]}letmake?accountId=fun?graphArn->fun?datasourcePackageIngestHistory->fun()->{accountId;graphArn;datasourcePackageIngestHistory}letto_valuex=structure_to_value[("AccountId",(Option.mapx.accountId~f:AccountId.to_value));("GraphArn",(Option.mapx.graphArn~f:GraphArn.to_value));("DatasourcePackageIngestHistory",(Option.mapx.datasourcePackageIngestHistory~f:DatasourcePackageIngestHistory.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasourcePackageIngestHistory=(Option.map~f:DatasourcePackageIngestHistory.of_xml)(Xml.childxml_arg0"DatasourcePackageIngestHistory")inletgraphArn=(Option.map~f:GraphArn.of_xml)(Xml.childxml_arg0"GraphArn")inletaccountId=(Option.map~f:AccountId.of_xml)(Xml.childxml_arg0"AccountId")inmake?datasourcePackageIngestHistory?graphArn?accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasourcePackageIngestHistory=field_mapjson__"DatasourcePackageIngestHistory"DatasourcePackageIngestHistory.of_jsoninletgraphArn=field_mapjson__"GraphArn"GraphArn.of_jsoninletaccountId=field_mapjson__"AccountId"AccountId.of_jsoninmake?datasourcePackageIngestHistory?graphArn?accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details on data source packages for members of the behavior graph."]moduleUnprocessedGraph=structtypenonrect={graphArn:GraphArn.toption[@ocaml.doc"The ARN of the organization behavior graph."];reason:UnprocessedReason.toption[@ocaml.doc"The reason data source package information could not be processed for a behavior graph."]}letmake?graphArn=fun?reason->fun()->{graphArn;reason}letto_valuex=structure_to_value[("GraphArn",(Option.mapx.graphArn~f:GraphArn.to_value));("Reason",(Option.mapx.reason~f:UnprocessedReason.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreason=(Option.map~f:UnprocessedReason.of_xml)(Xml.childxml_arg0"Reason")inletgraphArn=(Option.map~f:GraphArn.of_xml)(Xml.childxml_arg0"GraphArn")inmake?reason?graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreason=field_mapjson__"Reason"UnprocessedReason.of_jsoninletgraphArn=field_mapjson__"GraphArn"GraphArn.of_jsoninmake?reason?graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Behavior graphs that could not be processed in the request."]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_valueendmoduleDatasourcePackageList=structtypenonrect=DatasourcePackage.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(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:DatasourcePackage.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:DatasourcePackage.of_xml)letof_jsonj=list_of_json~kind:"DatasourcePackageList"~of_json:DatasourcePackage.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccessDeniedException=structtypenonrect={message:ErrorMessage.toption;errorCode:ErrorCode.toption[@ocaml.doc"The SDK default error code associated with the access denied exception."];errorCodeReason:ErrorCodeReason.toption[@ocaml.doc"The SDK default explanation of why access was denied."];subErrorCode:ErrorCode.toption[@ocaml.doc"The error code associated with the access denied exception."];subErrorCodeReason:ErrorCodeReason.toption[@ocaml.doc"An explanation of why access was denied."]}letmake?message=fun?errorCode->fun?errorCodeReason->fun?subErrorCode->fun?subErrorCodeReason->fun()->{message;errorCode;errorCodeReason;subErrorCode;subErrorCodeReason}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value));("ErrorCode",(Option.mapx.errorCode~f:ErrorCode.to_value));("ErrorCodeReason",(Option.mapx.errorCodeReason~f:ErrorCodeReason.to_value));("SubErrorCode",(Option.mapx.subErrorCode~f:ErrorCode.to_value));("SubErrorCodeReason",(Option.mapx.subErrorCodeReason~f:ErrorCodeReason.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsubErrorCodeReason=(Option.map~f:ErrorCodeReason.of_xml)(Xml.childxml_arg0"SubErrorCodeReason")inletsubErrorCode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"SubErrorCode")inleterrorCodeReason=(Option.map~f:ErrorCodeReason.of_xml)(Xml.childxml_arg0"ErrorCodeReason")inleterrorCode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?subErrorCodeReason?subErrorCode?errorCodeReason?errorCode?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubErrorCodeReason=field_mapjson__"SubErrorCodeReason"ErrorCodeReason.of_jsoninletsubErrorCode=field_mapjson__"SubErrorCode"ErrorCode.of_jsoninleterrorCodeReason=field_mapjson__"ErrorCodeReason"ErrorCodeReason.of_jsoninleterrorCode=field_mapjson__"ErrorCode"ErrorCode.of_jsoninletmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?subErrorCodeReason?subErrorCode?errorCodeReason?errorCode?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request issuer does not have permission to access this resource or perform this operation."]moduleInternalServerException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was valid but failed because of a problem with the service."]moduleResourceNotFoundException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request refers to a nonexistent resource."]moduleValidationException=structtypenonrect={message:ErrorMessage.toption;errorCode:ErrorCode.toption[@ocaml.doc"The error code associated with the validation failure."];errorCodeReason:ErrorCodeReason.toption[@ocaml.doc"An explanation of why validation failed."]}letmake?message=fun?errorCode->fun?errorCodeReason->fun()->{message;errorCode;errorCodeReason}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value));("ErrorCode",(Option.mapx.errorCode~f:ErrorCode.to_value));("ErrorCodeReason",(Option.mapx.errorCodeReason~f:ErrorCodeReason.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorCodeReason=(Option.map~f:ErrorCodeReason.of_xml)(Xml.childxml_arg0"ErrorCodeReason")inleterrorCode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?errorCodeReason?errorCode?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorCodeReason=field_mapjson__"ErrorCodeReason"ErrorCodeReason.of_jsoninleterrorCode=field_mapjson__"ErrorCode"ErrorCode.of_jsoninletmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?errorCodeReason?errorCode?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameters are invalid."]moduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(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:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagMap=structtypenonrect=(TagKey.t*TagValue.t)listletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((TagKey.of_stringchopped),(TagValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(TagKey.to_valuex)|>(funx->(TagValue.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:TagKey.of_string~of_json:TagValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTooManyRequestsException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request cannot be completed because too many other requests are occurring at the same time."]moduleAdministratorList=structtypenonrect=Administrator.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Administrator.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:Administrator.of_xml)letof_jsonj=list_of_json~kind:"AdministratorList"~of_json:Administrator.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePaginationToken=structtypenonrect=stringletcontext_="PaginationToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PaginationToken"jletto_json=simple_to_jsonto_valueendmoduleMemberResultsLimit=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:200)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MemberResultsLimit"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleMemberDetailList=structtypenonrect=MemberDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MemberDetail.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:MemberDetail.of_xml)letof_jsonj=list_of_json~kind:"MemberDetailList"~of_json:MemberDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAiPaginationToken=structtypenonrect=stringletcontext_="AiPaginationToken"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:"AiPaginationToken"jletto_json=simple_to_jsonto_valueendmoduleInvestigationDetails=structtypenonrect=InvestigationDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:InvestigationDetail.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:InvestigationDetail.of_xml)letof_jsonj=list_of_json~kind:"InvestigationDetails"~of_json:InvestigationDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFilterCriteria=structtypenonrect={severity:StringFilter.toption[@ocaml.doc"Filter the investigation results based on the severity."];status:StringFilter.toption[@ocaml.doc"Filter the investigation results based on the status."];state:StringFilter.toption[@ocaml.doc"Filter the investigation results based on the state."];entityArn:StringFilter.toption[@ocaml.doc"Filter the investigation results based on the Amazon Resource Name (ARN) of the entity."];createdTime:DateFilter.toption[@ocaml.doc"Filter the investigation results based on when the investigation was created."]}letmake?severity=fun?status->fun?state->fun?entityArn->fun?createdTime->fun()->{severity;status;state;entityArn;createdTime}letto_valuex=structure_to_value[("Severity",(Option.mapx.severity~f:StringFilter.to_value));("Status",(Option.mapx.status~f:StringFilter.to_value));("State",(Option.mapx.state~f:StringFilter.to_value));("EntityArn",(Option.mapx.entityArn~f:StringFilter.to_value));("CreatedTime",(Option.mapx.createdTime~f:DateFilter.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreatedTime=(Option.map~f:DateFilter.of_xml)(Xml.childxml_arg0"CreatedTime")inletentityArn=(Option.map~f:StringFilter.of_xml)(Xml.childxml_arg0"EntityArn")inletstate=(Option.map~f:StringFilter.of_xml)(Xml.childxml_arg0"State")inletstatus=(Option.map~f:StringFilter.of_xml)(Xml.childxml_arg0"Status")inletseverity=(Option.map~f:StringFilter.of_xml)(Xml.childxml_arg0"Severity")inmake?createdTime?entityArn?state?status?severity()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreatedTime=field_mapjson__"CreatedTime"DateFilter.of_jsoninletentityArn=field_mapjson__"EntityArn"StringFilter.of_jsoninletstate=field_mapjson__"State"StringFilter.of_jsoninletstatus=field_mapjson__"Status"StringFilter.of_jsoninletseverity=field_mapjson__"Severity"StringFilter.of_jsoninmake?createdTime?entityArn?state?status?severity()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details on the criteria used to define the filter for investigation results."]moduleMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleSortCriteria=structtypenonrect={field:Field.toption[@ocaml.doc"Represents the Field attribute to sort investigations."];sortOrder:SortOrder.toption[@ocaml.doc"The order by which the sorted findings are displayed."]}letmake?field=fun?sortOrder->fun()->{field;sortOrder}letto_valuex=structure_to_value[("Field",(Option.mapx.field~f:Field.to_value));("SortOrder",(Option.mapx.sortOrder~f:SortOrder.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsortOrder=(Option.map~f:SortOrder.of_xml)(Xml.childxml_arg0"SortOrder")inletfield=(Option.map~f:Field.of_xml)(Xml.childxml_arg0"Field")inmake?sortOrder?field()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsortOrder=field_mapjson__"SortOrder"SortOrder.of_jsoninletfield=field_mapjson__"Field"Field.of_jsoninmake?sortOrder?field()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details about the criteria used for sorting investigations."]moduleIndicators=structtypenonrect=Indicator.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Indicator.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:Indicator.of_xml)letof_jsonj=list_of_json~kind:"Indicators"~of_json:Indicator.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleGraphList=structtypenonrect=Graph.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Graph.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:Graph.of_xml)letof_jsonj=list_of_json~kind:"GraphList"~of_json:Graph.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDatasourcePackageIngestDetails=structtypenonrect=(DatasourcePackage.t*DatasourcePackageIngestDetail.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 DatasourcePackage DatasourcePackageIngestDetail"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(DatasourcePackage.to_valuex)|>(funx->(DatasourcePackageIngestDetail.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:DatasourcePackage.of_string~of_json:DatasourcePackageIngestDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUnprocessedAccountList=structtypenonrect=UnprocessedAccount.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:UnprocessedAccount.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:UnprocessedAccount.of_xml)letof_jsonj=list_of_json~kind:"UnprocessedAccountList"~of_json:UnprocessedAccount.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccountIdList=structtypenonrect=AccountId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AccountId.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:AccountId.of_xml)letof_jsonj=list_of_json~kind:"AccountIdList"~of_json:AccountId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleConflictException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request attempted an invalid action."]moduleServiceQuotaExceededException=structtypenonrect={message:ErrorMessage.toption;resources:ResourceList.toption[@ocaml.doc"The type of resource that has exceeded the service quota."]}letmake?message=fun?resources->fun()->{message;resources}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value));("Resources",(Option.mapx.resources~f:ResourceList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresources=(Option.map~f:ResourceList.of_xml)(Xml.childxml_arg0"Resources")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?resources?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresources=field_mapjson__"Resources"ResourceList.of_jsoninletmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?resources?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This request cannot be completed for one of the following reasons. This request cannot be completed if it would cause the number of member accounts in the behavior graph to exceed the maximum allowed. A behavior graph cannot have more than 1,200 member accounts. This request cannot be completed if the current volume ingested is above the limit of 10 TB per day. Detective will not allow you to add additional member accounts."]moduleAccountList=structtypenonrect=Account.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(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:Account.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:Account.of_xml)letof_jsonj=list_of_json~kind:"AccountList"~of_json:Account.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEmailMessage=structtypenonrect=stringletcontext_="EmailMessage"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1000)>>=(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:"EmailMessage"jletto_json=simple_to_jsonto_valueendmoduleMembershipDatasourcesList=structtypenonrect=MembershipDatasources.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MembershipDatasources.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:MembershipDatasources.of_xml)letof_jsonj=list_of_json~kind:"MembershipDatasourcesList"~of_json:MembershipDatasources.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUnprocessedGraphList=structtypenonrect=UnprocessedGraph.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:UnprocessedGraph.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:UnprocessedGraph.of_xml)letof_jsonj=list_of_json~kind:"UnprocessedGraphList"~of_json:UnprocessedGraph.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleGraphArnList=structtypenonrect=GraphArn.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(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:GraphArn.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:GraphArn.of_xml)letof_jsonj=list_of_json~kind:"GraphArnList"~of_json:GraphArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccountIdExtendedList=structtypenonrect=AccountId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AccountId.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:AccountId.of_xml)letof_jsonj=list_of_json~kind:"AccountIdExtendedList"~of_json:AccountId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUpdateOrganizationConfigurationRequest=structtypenonrect={graphArn:GraphArn.t[@ocaml.doc"The ARN of the organization behavior graph."];autoEnable:Boolean.toption[@ocaml.doc"Indicates whether to automatically enable new organization accounts as member accounts in the organization behavior graph."]}letcontext_="UpdateOrganizationConfigurationRequest"letmake?autoEnable=fun~graphArn->fun()->{autoEnable;graphArn}letto_valuex=structure_to_value[("GraphArn",(Some(GraphArn.to_valuex.graphArn)));("AutoEnable",(Option.mapx.autoEnable~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letautoEnable=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"AutoEnable")inletgraphArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArn")inmake?autoEnable~graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letautoEnable=field_mapjson__"AutoEnable"Boolean.of_jsoninletgraphArn=field_map_exnjson__"GraphArn"GraphArn.of_jsoninmake?autoEnable~graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the configuration for the Organizations integration in the current Region. Can only be called by the Detective administrator account for the organization."]moduleUpdateInvestigationStateRequest=structtypenonrect={graphArn:GraphArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the behavior graph."];investigationId:InvestigationId.t[@ocaml.doc"The investigation ID of the investigation report."];state:State.t[@ocaml.doc"The current state of the investigation. An archived investigation indicates you have completed reviewing the investigation."]}letcontext_="UpdateInvestigationStateRequest"letmake~graphArn=fun~investigationId->fun~state->fun()->{graphArn;investigationId;state}letto_valuex=structure_to_value[("GraphArn",(Some(GraphArn.to_valuex.graphArn)));("InvestigationId",(Some(InvestigationId.to_valuex.investigationId)));("State",(Some(State.to_valuex.state)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstate=State.of_xml(Xml.child_exn~context:context_xml_arg0"State")inletinvestigationId=InvestigationId.of_xml(Xml.child_exn~context:context_xml_arg0"InvestigationId")inletgraphArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArn")inmake~state~investigationId~graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstate=field_map_exnjson__"State"State.of_jsoninletinvestigationId=field_map_exnjson__"InvestigationId"InvestigationId.of_jsoninletgraphArn=field_map_exnjson__"GraphArn"GraphArn.of_jsoninmake~state~investigationId~graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the state of an investigation."]moduleUpdateDatasourcePackagesRequest=structtypenonrect={graphArn:GraphArn.t[@ocaml.doc"The ARN of the behavior graph."];datasourcePackages:DatasourcePackageList.t[@ocaml.doc"The data source package to start for the behavior graph."]}letcontext_="UpdateDatasourcePackagesRequest"letmake~graphArn=fun~datasourcePackages->fun()->{graphArn;datasourcePackages}letto_valuex=structure_to_value[("GraphArn",(Some(GraphArn.to_valuex.graphArn)));("DatasourcePackages",(Some(DatasourcePackageList.to_valuex.datasourcePackages)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasourcePackages=DatasourcePackageList.of_xml(Xml.child_exn~context:context_xml_arg0"DatasourcePackages")inletgraphArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArn")inmake~datasourcePackages~graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasourcePackages=field_map_exnjson__"DatasourcePackages"DatasourcePackageList.of_jsoninletgraphArn=field_map_exnjson__"GraphArn"GraphArn.of_jsoninmake~datasourcePackages~graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts a data source package for the Detective behavior graph."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.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)|"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)|"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))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes tags from a behavior graph."]moduleUntagResourceRequest=structtypenonrect={resourceArn:GraphArn.t[@ocaml.doc"The ARN of the behavior graph to remove the tags from."];tagKeys:TagKeyList.t[@ocaml.doc"The tag keys of the tags to remove from the behavior graph. You can remove up to 50 tags at a time."]}letcontext_="UntagResourceRequest"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("ResourceArn",(Some(GraphArn.to_valuex.resourceArn)));("tagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletresourceArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~tagKeys~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"TagKeys"TagKeyList.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"GraphArn.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes tags from a behavior graph."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.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)|"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)|"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))]|`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"Applies tag values to a behavior graph."]moduleTagResourceRequest=structtypenonrect={resourceArn:GraphArn.t[@ocaml.doc"The ARN of the behavior graph to assign the tags to."];tags:TagMap.t[@ocaml.doc"The tags to assign to the behavior graph. You can add up to 50 tags. For each tag, you provide the tag key and the tag value. Each tag key can contain up to 128 characters. Each tag value can contain up to 256 characters."]}letcontext_="TagResourceRequest"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("ResourceArn",(Some(GraphArn.to_valuex.resourceArn)));("Tags",(Some(TagMap.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagMap.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inletresourceArn=GraphArn.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"TagMap.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"GraphArn.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Applies tag values to a behavior graph."]moduleStartMonitoringMemberRequest=structtypenonrect={graphArn:GraphArn.t[@ocaml.doc"The ARN of the behavior graph."];accountId:AccountId.t[@ocaml.doc"The account ID of the member account to try to enable. The account must be an invited member account with a status of ACCEPTED_BUT_DISABLED."]}letcontext_="StartMonitoringMemberRequest"letmake~graphArn=fun~accountId->fun()->{graphArn;accountId}letto_valuex=structure_to_value[("GraphArn",(Some(GraphArn.to_valuex.graphArn)));("AccountId",(Some(AccountId.to_valuex.accountId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inletgraphArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArn")inmake~accountId~graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninletgraphArn=field_map_exnjson__"GraphArn"GraphArn.of_jsoninmake~accountId~graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Sends a request to enable data ingest for a member account that has a status of ACCEPTED_BUT_DISABLED. For valid member accounts, the status is updated as follows. If Detective enabled the member account, then the new status is ENABLED. If Detective cannot enable the member account, the status remains ACCEPTED_BUT_DISABLED."]moduleStartInvestigationResponse=structtypenonrect={investigationId:InvestigationId.toption[@ocaml.doc"The investigation ID of the investigation report."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?investigationId=fun()->{investigationId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.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)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.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))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.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[("InvestigationId",(Option.mapx.investigationId~f:InvestigationId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinvestigationId=(Option.map~f:InvestigationId.of_xml)(Xml.childxml_arg0"InvestigationId")inmake?investigationId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinvestigationId=field_mapjson__"InvestigationId"InvestigationId.of_jsoninmake?investigationId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Detective investigations lets you investigate IAM users and IAM roles using indicators of compromise. An indicator of compromise (IOC) is an artifact observed in or on a network, system, or environment that can (with a high level of confidence) identify malicious activity or a security incident. StartInvestigation initiates an investigation on an entity in a behavior graph."]moduleStartInvestigationRequest=structtypenonrect={graphArn:GraphArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the behavior graph."];entityArn:EntityArn.t[@ocaml.doc"The unique Amazon Resource Name (ARN) of the IAM user and IAM role."];scopeStartTime:Timestamp.t[@ocaml.doc"The data and time when the investigation began. The value is an UTC ISO8601 formatted string. For example, 2021-08-18T16:35:56.284Z."];scopeEndTime:Timestamp.t[@ocaml.doc"The data and time when the investigation ended. The value is an UTC ISO8601 formatted string. For example, 2021-08-18T16:35:56.284Z."]}letcontext_="StartInvestigationRequest"letmake~graphArn=fun~entityArn->fun~scopeStartTime->fun~scopeEndTime->fun()->{graphArn;entityArn;scopeStartTime;scopeEndTime}letto_valuex=structure_to_value[("GraphArn",(Some(GraphArn.to_valuex.graphArn)));("EntityArn",(Some(EntityArn.to_valuex.entityArn)));("ScopeStartTime",(Some(Timestamp.to_valuex.scopeStartTime)));("ScopeEndTime",(Some(Timestamp.to_valuex.scopeEndTime)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letscopeEndTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"ScopeEndTime")inletscopeStartTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"ScopeStartTime")inletentityArn=EntityArn.of_xml(Xml.child_exn~context:context_xml_arg0"EntityArn")inletgraphArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArn")inmake~scopeEndTime~scopeStartTime~entityArn~graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letscopeEndTime=field_map_exnjson__"ScopeEndTime"Timestamp.of_jsoninletscopeStartTime=field_map_exnjson__"ScopeStartTime"Timestamp.of_jsoninletentityArn=field_map_exnjson__"EntityArn"EntityArn.of_jsoninletgraphArn=field_map_exnjson__"GraphArn"GraphArn.of_jsoninmake~scopeEndTime~scopeStartTime~entityArn~graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Detective investigations lets you investigate IAM users and IAM roles using indicators of compromise. An indicator of compromise (IOC) is an artifact observed in or on a network, system, or environment that can (with a high level of confidence) identify malicious activity or a security incident. StartInvestigation initiates an investigation on an entity in a behavior graph."]moduleRejectInvitationRequest=structtypenonrect={graphArn:GraphArn.t[@ocaml.doc"The ARN of the behavior graph to reject the invitation to. The member account's current member status in the behavior graph must be INVITED."]}letcontext_="RejectInvitationRequest"letmake~graphArn=fun()->{graphArn}letto_valuex=structure_to_value[("GraphArn",(Some(GraphArn.to_valuex.graphArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgraphArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArn")inmake~graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgraphArn=field_map_exnjson__"GraphArn"GraphArn.of_jsoninmake~graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Rejects an invitation to contribute the account data to a behavior graph. This operation must be called by an invited member account that has the INVITED status. RejectInvitation cannot be called by an organization account in the organization behavior graph. In the organization behavior graph, organization accounts do not receive an invitation."]moduleListTagsForResourceResponse=structtypenonrect={tags:TagMap.toption[@ocaml.doc"The tag values that are assigned to the behavior graph. The request returns up to 50 tag values."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.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)|"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)|"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))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagMap.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the tag values that are assigned to a behavior graph."]moduleListTagsForResourceRequest=structtypenonrect={resourceArn:GraphArn.t[@ocaml.doc"The ARN of the behavior graph for which to retrieve the tag values."]}letcontext_="ListTagsForResourceRequest"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("ResourceArn",(Some(GraphArn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=GraphArn.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"GraphArn.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the tag values that are assigned to a behavior graph."]moduleListOrganizationAdminAccountsResponse=structtypenonrect={administrators:AdministratorList.toption[@ocaml.doc"The list of Detective administrator accounts."];nextToken:PaginationToken.toption[@ocaml.doc"If there are more accounts remaining in the results, then this is the pagination token to use to request the next page of accounts."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?administrators=fun?nextToken->fun()->{administrators;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.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)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.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))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.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[("Administrators",(Option.mapx.administrators~f:AdministratorList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletadministrators=(Option.map~f:AdministratorList.of_xml)(Xml.childxml_arg0"Administrators")inmake?nextToken?administrators()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletadministrators=field_mapjson__"Administrators"AdministratorList.of_jsoninmake?nextToken?administrators()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about the Detective administrator account for an organization. Can only be called by the organization management account."]moduleListOrganizationAdminAccountsRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"For requests to get the next page of results, the pagination token that was returned with the previous set of results. The initial request does not include a pagination token."];maxResults:MemberResultsLimit.toption[@ocaml.doc"The maximum number of results to return."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MemberResultsLimit.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MemberResultsLimit.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MemberResultsLimit.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about the Detective administrator account for an organization. Can only be called by the organization management account."]moduleListMembersResponse=structtypenonrect={memberDetails:MemberDetailList.toption[@ocaml.doc"The list of member accounts in the behavior graph. For invited accounts, the results include member accounts that did not pass verification and member accounts that have not yet accepted the invitation to the behavior graph. The results do not include member accounts that were removed from the behavior graph. For the organization behavior graph, the results do not include organization accounts that the Detective administrator account has not enabled as member accounts."];nextToken:PaginationToken.toption[@ocaml.doc"If there are more member accounts remaining in the results, then use this pagination token to request the next page of member accounts."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?memberDetails=fun?nextToken->fun()->{memberDetails;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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)|"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))]|`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[("MemberDetails",(Option.mapx.memberDetails~f:MemberDetailList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletmemberDetails=(Option.map~f:MemberDetailList.of_xml)(Xml.childxml_arg0"MemberDetails")inmake?nextToken?memberDetails()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletmemberDetails=field_mapjson__"MemberDetails"MemberDetailList.of_jsoninmake?nextToken?memberDetails()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the list of member accounts for a behavior graph. For invited accounts, the results do not include member accounts that were removed from the behavior graph. For the organization behavior graph, the results do not include organization accounts that the Detective administrator account has not enabled as member accounts."]moduleListMembersRequest=structtypenonrect={graphArn:GraphArn.t[@ocaml.doc"The ARN of the behavior graph for which to retrieve the list of member accounts."];nextToken:PaginationToken.toption[@ocaml.doc"For requests to retrieve the next page of member account results, the pagination token that was returned with the previous page of results. The initial request does not include a pagination token."];maxResults:MemberResultsLimit.toption[@ocaml.doc"The maximum number of member accounts to include in the response. The total must be less than the overall limit on the number of results to return, which is currently 200."]}letcontext_="ListMembersRequest"letmake?nextToken=fun?maxResults->fun~graphArn->fun()->{nextToken;maxResults;graphArn}letto_valuex=structure_to_value[("GraphArn",(Some(GraphArn.to_valuex.graphArn)));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MemberResultsLimit.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MemberResultsLimit.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletgraphArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArn")inmake?maxResults?nextToken~graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MemberResultsLimit.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletgraphArn=field_map_exnjson__"GraphArn"GraphArn.of_jsoninmake?maxResults?nextToken~graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the list of member accounts for a behavior graph. For invited accounts, the results do not include member accounts that were removed from the behavior graph. For the organization behavior graph, the results do not include organization accounts that the Detective administrator account has not enabled as member accounts."]moduleListInvitationsResponse=structtypenonrect={invitations:MemberDetailList.toption[@ocaml.doc"The list of behavior graphs for which the member account has open or accepted invitations."];nextToken:PaginationToken.toption[@ocaml.doc"If there are more behavior graphs remaining in the results, then this is the pagination token to use to request the next page of behavior graphs."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?invitations=fun?nextToken->fun()->{invitations;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Invitations",(Option.mapx.invitations~f:MemberDetailList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletinvitations=(Option.map~f:MemberDetailList.of_xml)(Xml.childxml_arg0"Invitations")inmake?nextToken?invitations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletinvitations=field_mapjson__"Invitations"MemberDetailList.of_jsoninmake?nextToken?invitations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the list of open and accepted behavior graph invitations for the member account. This operation can only be called by an invited member account. Open invitations are invitations that the member account has not responded to. The results do not include behavior graphs for which the member account declined the invitation. The results also do not include behavior graphs that the member account resigned from or was removed from."]moduleListInvitationsRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"For requests to retrieve the next page of results, the pagination token that was returned with the previous page of results. The initial request does not include a pagination token."];maxResults:MemberResultsLimit.toption[@ocaml.doc"The maximum number of behavior graph invitations to return in the response. The total must be less than the overall limit on the number of results to return, which is currently 200."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MemberResultsLimit.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MemberResultsLimit.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MemberResultsLimit.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the list of open and accepted behavior graph invitations for the member account. This operation can only be called by an invited member account. Open invitations are invitations that the member account has not responded to. The results do not include behavior graphs for which the member account declined the invitation. The results also do not include behavior graphs that the member account resigned from or was removed from."]moduleListInvestigationsResponse=structtypenonrect={investigationDetails:InvestigationDetails.toption[@ocaml.doc"Lists the summary of uncommon behavior or malicious activity which indicates a compromise."];nextToken:AiPaginationToken.toption[@ocaml.doc"Lists if there are more results available. The value of nextToken is a unique pagination token for each page. Repeat the call using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?investigationDetails=fun?nextToken->fun()->{investigationDetails;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.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)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.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))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.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[("InvestigationDetails",(Option.mapx.investigationDetails~f:InvestigationDetails.to_value));("NextToken",(Option.mapx.nextToken~f:AiPaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:AiPaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletinvestigationDetails=(Option.map~f:InvestigationDetails.of_xml)(Xml.childxml_arg0"InvestigationDetails")inmake?nextToken?investigationDetails()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"AiPaginationToken.of_jsoninletinvestigationDetails=field_mapjson__"InvestigationDetails"InvestigationDetails.of_jsoninmake?nextToken?investigationDetails()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Detective investigations lets you investigate IAM users and IAM roles using indicators of compromise. An indicator of compromise (IOC) is an artifact observed in or on a network, system, or environment that can (with a high level of confidence) identify malicious activity or a security incident. ListInvestigations lists all active Detective investigations."]moduleListInvestigationsRequest=structtypenonrect={graphArn:GraphArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the behavior graph."];nextToken:AiPaginationToken.toption[@ocaml.doc"Lists if there are more results available. The value of nextToken is a unique pagination token for each page. Repeat the call using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return a Validation Exception error."];maxResults:MaxResults.toption[@ocaml.doc"Lists the maximum number of investigations in a page."];filterCriteria:FilterCriteria.toption[@ocaml.doc"Filters the investigation results based on a criteria."];sortCriteria:SortCriteria.toption[@ocaml.doc"Sorts the investigation results based on a criteria."]}letcontext_="ListInvestigationsRequest"letmake?nextToken=fun?maxResults->fun?filterCriteria->fun?sortCriteria->fun~graphArn->fun()->{nextToken;maxResults;filterCriteria;sortCriteria;graphArn}letto_valuex=structure_to_value[("GraphArn",(Some(GraphArn.to_valuex.graphArn)));("NextToken",(Option.mapx.nextToken~f:AiPaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("FilterCriteria",(Option.mapx.filterCriteria~f:FilterCriteria.to_value));("SortCriteria",(Option.mapx.sortCriteria~f:SortCriteria.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsortCriteria=(Option.map~f:SortCriteria.of_xml)(Xml.childxml_arg0"SortCriteria")inletfilterCriteria=(Option.map~f:FilterCriteria.of_xml)(Xml.childxml_arg0"FilterCriteria")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:AiPaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletgraphArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArn")inmake?sortCriteria?filterCriteria?maxResults?nextToken~graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsortCriteria=field_mapjson__"SortCriteria"SortCriteria.of_jsoninletfilterCriteria=field_mapjson__"FilterCriteria"FilterCriteria.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"AiPaginationToken.of_jsoninletgraphArn=field_map_exnjson__"GraphArn"GraphArn.of_jsoninmake?sortCriteria?filterCriteria?maxResults?nextToken~graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Detective investigations lets you investigate IAM users and IAM roles using indicators of compromise. An indicator of compromise (IOC) is an artifact observed in or on a network, system, or environment that can (with a high level of confidence) identify malicious activity or a security incident. ListInvestigations lists all active Detective investigations."]moduleListIndicatorsResponse=structtypenonrect={graphArn:GraphArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the behavior graph."];investigationId:InvestigationId.toption[@ocaml.doc"The investigation ID of the investigation report."];nextToken:AiPaginationToken.toption[@ocaml.doc"Lists if there are more results available. The value of nextToken is a unique pagination token for each page. Repeat the call using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return a Validation Exception error."];indicators:Indicators.toption[@ocaml.doc"Lists the indicators of compromise."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?graphArn=fun?investigationId->fun?nextToken->fun?indicators->fun()->{graphArn;investigationId;nextToken;indicators}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.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)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.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))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.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[("GraphArn",(Option.mapx.graphArn~f:GraphArn.to_value));("InvestigationId",(Option.mapx.investigationId~f:InvestigationId.to_value));("NextToken",(Option.mapx.nextToken~f:AiPaginationToken.to_value));("Indicators",(Option.mapx.indicators~f:Indicators.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letindicators=(Option.map~f:Indicators.of_xml)(Xml.childxml_arg0"Indicators")inletnextToken=(Option.map~f:AiPaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletinvestigationId=(Option.map~f:InvestigationId.of_xml)(Xml.childxml_arg0"InvestigationId")inletgraphArn=(Option.map~f:GraphArn.of_xml)(Xml.childxml_arg0"GraphArn")inmake?indicators?nextToken?investigationId?graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letindicators=field_mapjson__"Indicators"Indicators.of_jsoninletnextToken=field_mapjson__"NextToken"AiPaginationToken.of_jsoninletinvestigationId=field_mapjson__"InvestigationId"InvestigationId.of_jsoninletgraphArn=field_mapjson__"GraphArn"GraphArn.of_jsoninmake?indicators?nextToken?investigationId?graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the indicators from an investigation. You can use the information from the indicators to determine if an IAM user and/or IAM role is involved in an unusual activity that could indicate malicious behavior and its impact."]moduleListIndicatorsRequest=structtypenonrect={graphArn:GraphArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the behavior graph."];investigationId:InvestigationId.t[@ocaml.doc"The investigation ID of the investigation report."];indicatorType:IndicatorType.toption[@ocaml.doc"For the list of indicators of compromise that are generated by Detective investigations, see Detective investigations."];nextToken:AiPaginationToken.toption[@ocaml.doc"Lists if there are more results available. The value of nextToken is a unique pagination token for each page. Repeat the call using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return a Validation Exception error."];maxResults:MaxResults.toption[@ocaml.doc"Lists the maximum number of indicators in a page."]}letcontext_="ListIndicatorsRequest"letmake?indicatorType=fun?nextToken->fun?maxResults->fun~graphArn->fun~investigationId->fun()->{indicatorType;nextToken;maxResults;graphArn;investigationId}letto_valuex=structure_to_value[("GraphArn",(Some(GraphArn.to_valuex.graphArn)));("InvestigationId",(Some(InvestigationId.to_valuex.investigationId)));("IndicatorType",(Option.mapx.indicatorType~f:IndicatorType.to_value));("NextToken",(Option.mapx.nextToken~f:AiPaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:AiPaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletindicatorType=(Option.map~f:IndicatorType.of_xml)(Xml.childxml_arg0"IndicatorType")inletinvestigationId=InvestigationId.of_xml(Xml.child_exn~context:context_xml_arg0"InvestigationId")inletgraphArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArn")inmake?maxResults?nextToken?indicatorType~investigationId~graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"AiPaginationToken.of_jsoninletindicatorType=field_mapjson__"IndicatorType"IndicatorType.of_jsoninletinvestigationId=field_map_exnjson__"InvestigationId"InvestigationId.of_jsoninletgraphArn=field_map_exnjson__"GraphArn"GraphArn.of_jsoninmake?maxResults?nextToken?indicatorType~investigationId~graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the indicators from an investigation. You can use the information from the indicators to determine if an IAM user and/or IAM role is involved in an unusual activity that could indicate malicious behavior and its impact."]moduleListGraphsResponse=structtypenonrect={graphList:GraphList.toption[@ocaml.doc"A list of behavior graphs that the account is an administrator account for."];nextToken:PaginationToken.toption[@ocaml.doc"If there are more behavior graphs remaining in the results, then this is the pagination token to use to request the next page of behavior graphs."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?graphList=fun?nextToken->fun()->{graphList;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("GraphList",(Option.mapx.graphList~f:GraphList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletgraphList=(Option.map~f:GraphList.of_xml)(Xml.childxml_arg0"GraphList")inmake?nextToken?graphList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletgraphList=field_mapjson__"GraphList"GraphList.of_jsoninmake?nextToken?graphList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the list of behavior graphs that the calling account is an administrator account of. This operation can only be called by an administrator account. Because an account can currently only be the administrator of one behavior graph within a Region, the results always contain a single behavior graph."]moduleListGraphsRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"For requests to get the next page of results, the pagination token that was returned with the previous set of results. The initial request does not include a pagination token."];maxResults:MemberResultsLimit.toption[@ocaml.doc"The maximum number of graphs to return at a time. The total must be less than the overall limit on the number of results to return, which is currently 200."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MemberResultsLimit.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MemberResultsLimit.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MemberResultsLimit.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the list of behavior graphs that the calling account is an administrator account of. This operation can only be called by an administrator account. Because an account can currently only be the administrator of one behavior graph within a Region, the results always contain a single behavior graph."]moduleListDatasourcePackagesResponse=structtypenonrect={datasourcePackages:DatasourcePackageIngestDetails.toption[@ocaml.doc"Details on the data source packages active in the behavior graph."];nextToken:PaginationToken.toption[@ocaml.doc"For requests to get the next page of results, the pagination token that was returned with the previous set of results. The initial request does not include a pagination token."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?datasourcePackages=fun?nextToken->fun()->{datasourcePackages;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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)|"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))]|`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[("DatasourcePackages",(Option.mapx.datasourcePackages~f:DatasourcePackageIngestDetails.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletdatasourcePackages=(Option.map~f:DatasourcePackageIngestDetails.of_xml)(Xml.childxml_arg0"DatasourcePackages")inmake?nextToken?datasourcePackages()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletdatasourcePackages=field_mapjson__"DatasourcePackages"DatasourcePackageIngestDetails.of_jsoninmake?nextToken?datasourcePackages()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists data source packages in the behavior graph."]moduleListDatasourcePackagesRequest=structtypenonrect={graphArn:GraphArn.t[@ocaml.doc"The ARN of the behavior graph."];nextToken:PaginationToken.toption[@ocaml.doc"For requests to get the next page of results, the pagination token that was returned with the previous set of results. The initial request does not include a pagination token."];maxResults:MemberResultsLimit.toption[@ocaml.doc"The maximum number of results to return."]}letcontext_="ListDatasourcePackagesRequest"letmake?nextToken=fun?maxResults->fun~graphArn->fun()->{nextToken;maxResults;graphArn}letto_valuex=structure_to_value[("GraphArn",(Some(GraphArn.to_valuex.graphArn)));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MemberResultsLimit.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MemberResultsLimit.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletgraphArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArn")inmake?maxResults?nextToken~graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MemberResultsLimit.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletgraphArn=field_map_exnjson__"GraphArn"GraphArn.of_jsoninmake?maxResults?nextToken~graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists data source packages in the behavior graph."]moduleGetMembersResponse=structtypenonrect={memberDetails:MemberDetailList.toption[@ocaml.doc"The member account details that Detective is returning in response to the request."];unprocessedAccounts:UnprocessedAccountList.toption[@ocaml.doc"The requested member accounts for which Detective was unable to return member details. For each account, provides the reason why the request could not be processed."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?memberDetails=fun?unprocessedAccounts->fun()->{memberDetails;unprocessedAccounts}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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)|"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))]|`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[("MemberDetails",(Option.mapx.memberDetails~f:MemberDetailList.to_value));("UnprocessedAccounts",(Option.mapx.unprocessedAccounts~f:UnprocessedAccountList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunprocessedAccounts=(Option.map~f:UnprocessedAccountList.of_xml)(Xml.childxml_arg0"UnprocessedAccounts")inletmemberDetails=(Option.map~f:MemberDetailList.of_xml)(Xml.childxml_arg0"MemberDetails")inmake?unprocessedAccounts?memberDetails()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunprocessedAccounts=field_mapjson__"UnprocessedAccounts"UnprocessedAccountList.of_jsoninletmemberDetails=field_mapjson__"MemberDetails"MemberDetailList.of_jsoninmake?unprocessedAccounts?memberDetails()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the membership details for specified member accounts for a behavior graph."]moduleGetMembersRequest=structtypenonrect={graphArn:GraphArn.t[@ocaml.doc"The ARN of the behavior graph for which to request the member details."];accountIds:AccountIdList.t[@ocaml.doc"The list of Amazon Web Services account identifiers for the member account for which to return member details. You can request details for up to 50 member accounts at a time. You cannot use GetMembers to retrieve information about member accounts that were removed from the behavior graph."]}letcontext_="GetMembersRequest"letmake~graphArn=fun~accountIds->fun()->{graphArn;accountIds}letto_valuex=structure_to_value[("GraphArn",(Some(GraphArn.to_valuex.graphArn)));("AccountIds",(Some(AccountIdList.to_valuex.accountIds)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountIds=AccountIdList.of_xml(Xml.child_exn~context:context_xml_arg0"AccountIds")inletgraphArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArn")inmake~accountIds~graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountIds=field_map_exnjson__"AccountIds"AccountIdList.of_jsoninletgraphArn=field_map_exnjson__"GraphArn"GraphArn.of_jsoninmake~accountIds~graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the membership details for specified member accounts for a behavior graph."]moduleGetInvestigationResponse=structtypenonrect={graphArn:GraphArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the behavior graph."];investigationId:InvestigationId.toption[@ocaml.doc"The investigation ID of the investigation report."];entityArn:EntityArn.toption[@ocaml.doc"The unique Amazon Resource Name (ARN). Detective supports IAM user ARNs and IAM role ARNs."];entityType:EntityType.toption[@ocaml.doc"Type of entity. For example, Amazon Web Services accounts, such as an IAM user and/or IAM role."];createdTime:Timestamp.toption[@ocaml.doc"The creation time of the investigation report in UTC time stamp format."];scopeStartTime:Timestamp.toption[@ocaml.doc"The start date and time used to set the scope time within which you want to generate the investigation report. The value is an UTC ISO8601 formatted string. For example, 2021-08-18T16:35:56.284Z."];scopeEndTime:Timestamp.toption[@ocaml.doc"The data and time when the investigation began. The value is an UTC ISO8601 formatted string. For example, 2021-08-18T16:35:56.284Z."];status:Status.toption[@ocaml.doc"The status based on the completion status of the investigation."];severity:Severity.toption[@ocaml.doc"The severity assigned is based on the likelihood and impact of the indicators of compromise discovered in the investigation."];state:State.toption[@ocaml.doc"The current state of the investigation. An archived investigation indicates that you have completed reviewing the investigation."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?graphArn=fun?investigationId->fun?entityArn->fun?entityType->fun?createdTime->fun?scopeStartTime->fun?scopeEndTime->fun?status->fun?severity->fun?state->fun()->{graphArn;investigationId;entityArn;entityType;createdTime;scopeStartTime;scopeEndTime;status;severity;state}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.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)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.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))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.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[("GraphArn",(Option.mapx.graphArn~f:GraphArn.to_value));("InvestigationId",(Option.mapx.investigationId~f:InvestigationId.to_value));("EntityArn",(Option.mapx.entityArn~f:EntityArn.to_value));("EntityType",(Option.mapx.entityType~f:EntityType.to_value));("CreatedTime",(Option.mapx.createdTime~f:Timestamp.to_value));("ScopeStartTime",(Option.mapx.scopeStartTime~f:Timestamp.to_value));("ScopeEndTime",(Option.mapx.scopeEndTime~f:Timestamp.to_value));("Status",(Option.mapx.status~f:Status.to_value));("Severity",(Option.mapx.severity~f:Severity.to_value));("State",(Option.mapx.state~f:State.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstate=(Option.map~f:State.of_xml)(Xml.childxml_arg0"State")inletseverity=(Option.map~f:Severity.of_xml)(Xml.childxml_arg0"Severity")inletstatus=(Option.map~f:Status.of_xml)(Xml.childxml_arg0"Status")inletscopeEndTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"ScopeEndTime")inletscopeStartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"ScopeStartTime")inletcreatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreatedTime")inletentityType=(Option.map~f:EntityType.of_xml)(Xml.childxml_arg0"EntityType")inletentityArn=(Option.map~f:EntityArn.of_xml)(Xml.childxml_arg0"EntityArn")inletinvestigationId=(Option.map~f:InvestigationId.of_xml)(Xml.childxml_arg0"InvestigationId")inletgraphArn=(Option.map~f:GraphArn.of_xml)(Xml.childxml_arg0"GraphArn")inmake?state?severity?status?scopeEndTime?scopeStartTime?createdTime?entityType?entityArn?investigationId?graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstate=field_mapjson__"State"State.of_jsoninletseverity=field_mapjson__"Severity"Severity.of_jsoninletstatus=field_mapjson__"Status"Status.of_jsoninletscopeEndTime=field_mapjson__"ScopeEndTime"Timestamp.of_jsoninletscopeStartTime=field_mapjson__"ScopeStartTime"Timestamp.of_jsoninletcreatedTime=field_mapjson__"CreatedTime"Timestamp.of_jsoninletentityType=field_mapjson__"EntityType"EntityType.of_jsoninletentityArn=field_mapjson__"EntityArn"EntityArn.of_jsoninletinvestigationId=field_mapjson__"InvestigationId"InvestigationId.of_jsoninletgraphArn=field_mapjson__"GraphArn"GraphArn.of_jsoninmake?state?severity?status?scopeEndTime?scopeStartTime?createdTime?entityType?entityArn?investigationId?graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Detective investigations lets you investigate IAM users and IAM roles using indicators of compromise. An indicator of compromise (IOC) is an artifact observed in or on a network, system, or environment that can (with a high level of confidence) identify malicious activity or a security incident. GetInvestigation returns the investigation results of an investigation for a behavior graph."]moduleGetInvestigationRequest=structtypenonrect={graphArn:GraphArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the behavior graph."];investigationId:InvestigationId.t[@ocaml.doc"The investigation ID of the investigation report."]}letcontext_="GetInvestigationRequest"letmake~graphArn=fun~investigationId->fun()->{graphArn;investigationId}letto_valuex=structure_to_value[("GraphArn",(Some(GraphArn.to_valuex.graphArn)));("InvestigationId",(Some(InvestigationId.to_valuex.investigationId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinvestigationId=InvestigationId.of_xml(Xml.child_exn~context:context_xml_arg0"InvestigationId")inletgraphArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArn")inmake~investigationId~graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinvestigationId=field_map_exnjson__"InvestigationId"InvestigationId.of_jsoninletgraphArn=field_map_exnjson__"GraphArn"GraphArn.of_jsoninmake~investigationId~graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Detective investigations lets you investigate IAM users and IAM roles using indicators of compromise. An indicator of compromise (IOC) is an artifact observed in or on a network, system, or environment that can (with a high level of confidence) identify malicious activity or a security incident. GetInvestigation returns the investigation results of an investigation for a behavior graph."]moduleEnableOrganizationAdminAccountRequest=structtypenonrect={accountId:AccountId.t[@ocaml.doc"The Amazon Web Services account identifier of the account to designate as the Detective administrator account for the organization."]}letcontext_="EnableOrganizationAdminAccountRequest"letmake~accountId=fun()->{accountId}letto_valuex=structure_to_value[("AccountId",(Some(AccountId.to_valuex.accountId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountId=AccountId.of_xml(Xml.child_exn~context:context_xml_arg0"AccountId")inmake~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountId=field_map_exnjson__"AccountId"AccountId.of_jsoninmake~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Designates the Detective administrator account for the organization in the current Region. If the account does not have Detective enabled, then enables Detective for that account and creates a new behavior graph. Can only be called by the organization management account. If the organization has a delegated administrator account in Organizations, then the Detective administrator account must be either the delegated administrator account or the organization management account. If the organization does not have a delegated administrator account in Organizations, then you can choose any account in the organization. If you choose an account other than the organization management account, Detective calls Organizations to make that account the delegated administrator account for Detective. The organization management account cannot be the delegated administrator account."]moduleDisassociateMembershipRequest=structtypenonrect={graphArn:GraphArn.t[@ocaml.doc"The ARN of the behavior graph to remove the member account from. The member account's member status in the behavior graph must be ENABLED."]}letcontext_="DisassociateMembershipRequest"letmake~graphArn=fun()->{graphArn}letto_valuex=structure_to_value[("GraphArn",(Some(GraphArn.to_valuex.graphArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgraphArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArn")inmake~graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgraphArn=field_map_exnjson__"GraphArn"GraphArn.of_jsoninmake~graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the member account from the specified behavior graph. This operation can only be called by an invited member account that has the ENABLED status. DisassociateMembership cannot be called by an organization account in the organization behavior graph. For the organization behavior graph, the Detective administrator account determines which organization accounts to enable or disable as member accounts."]moduleDescribeOrganizationConfigurationResponse=structtypenonrect={autoEnable:Boolean.toption[@ocaml.doc"Indicates whether to automatically enable new organization accounts as member accounts in the organization behavior graph."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?autoEnable=fun()->{autoEnable}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.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)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.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))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.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[("AutoEnable",(Option.mapx.autoEnable~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letautoEnable=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"AutoEnable")inmake?autoEnable()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letautoEnable=field_mapjson__"AutoEnable"Boolean.of_jsoninmake?autoEnable()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about the configuration for the organization behavior graph. Currently indicates whether to automatically enable new organization accounts as member accounts. Can only be called by the Detective administrator account for the organization."]moduleDescribeOrganizationConfigurationRequest=structtypenonrect={graphArn:GraphArn.t[@ocaml.doc"The ARN of the organization behavior graph."]}letcontext_="DescribeOrganizationConfigurationRequest"letmake~graphArn=fun()->{graphArn}letto_valuex=structure_to_value[("GraphArn",(Some(GraphArn.to_valuex.graphArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgraphArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArn")inmake~graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgraphArn=field_map_exnjson__"GraphArn"GraphArn.of_jsoninmake~graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about the configuration for the organization behavior graph. Currently indicates whether to automatically enable new organization accounts as member accounts. Can only be called by the Detective administrator account for the organization."]moduleDeleteMembersResponse=structtypenonrect={accountIds:AccountIdList.toption[@ocaml.doc"The list of Amazon Web Services account identifiers for the member accounts that Detective successfully removed from the behavior graph."];unprocessedAccounts:UnprocessedAccountList.toption[@ocaml.doc"The list of member accounts that Detective was not able to remove from the behavior graph. For each member account, provides the reason that the deletion could not be processed."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accountIds=fun?unprocessedAccounts->fun()->{accountIds;unprocessedAccounts}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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)|"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))]|`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[("AccountIds",(Option.mapx.accountIds~f:AccountIdList.to_value));("UnprocessedAccounts",(Option.mapx.unprocessedAccounts~f:UnprocessedAccountList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunprocessedAccounts=(Option.map~f:UnprocessedAccountList.of_xml)(Xml.childxml_arg0"UnprocessedAccounts")inletaccountIds=(Option.map~f:AccountIdList.of_xml)(Xml.childxml_arg0"AccountIds")inmake?unprocessedAccounts?accountIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunprocessedAccounts=field_mapjson__"UnprocessedAccounts"UnprocessedAccountList.of_jsoninletaccountIds=field_mapjson__"AccountIds"AccountIdList.of_jsoninmake?unprocessedAccounts?accountIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the specified member accounts from the behavior graph. The removed accounts no longer contribute data to the behavior graph. This operation can only be called by the administrator account for the behavior graph. For invited accounts, the removed accounts are deleted from the list of accounts in the behavior graph. To restore the account, the administrator account must send another invitation. For organization accounts in the organization behavior graph, the Detective administrator account can always enable the organization account again. Organization accounts that are not enabled as member accounts are not included in the ListMembers results for the organization behavior graph. An administrator account cannot use DeleteMembers to remove their own account from the behavior graph. To disable a behavior graph, the administrator account uses the DeleteGraph API method."]moduleDeleteMembersRequest=structtypenonrect={graphArn:GraphArn.t[@ocaml.doc"The ARN of the behavior graph to remove members from."];accountIds:AccountIdList.t[@ocaml.doc"The list of Amazon Web Services account identifiers for the member accounts to remove from the behavior graph. You can remove up to 50 member accounts at a time."]}letcontext_="DeleteMembersRequest"letmake~graphArn=fun~accountIds->fun()->{graphArn;accountIds}letto_valuex=structure_to_value[("GraphArn",(Some(GraphArn.to_valuex.graphArn)));("AccountIds",(Some(AccountIdList.to_valuex.accountIds)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountIds=AccountIdList.of_xml(Xml.child_exn~context:context_xml_arg0"AccountIds")inletgraphArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArn")inmake~accountIds~graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountIds=field_map_exnjson__"AccountIds"AccountIdList.of_jsoninletgraphArn=field_map_exnjson__"GraphArn"GraphArn.of_jsoninmake~accountIds~graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the specified member accounts from the behavior graph. The removed accounts no longer contribute data to the behavior graph. This operation can only be called by the administrator account for the behavior graph. For invited accounts, the removed accounts are deleted from the list of accounts in the behavior graph. To restore the account, the administrator account must send another invitation. For organization accounts in the organization behavior graph, the Detective administrator account can always enable the organization account again. Organization accounts that are not enabled as member accounts are not included in the ListMembers results for the organization behavior graph. An administrator account cannot use DeleteMembers to remove their own account from the behavior graph. To disable a behavior graph, the administrator account uses the DeleteGraph API method."]moduleDeleteGraphRequest=structtypenonrect={graphArn:GraphArn.t[@ocaml.doc"The ARN of the behavior graph to disable."]}letcontext_="DeleteGraphRequest"letmake~graphArn=fun()->{graphArn}letto_valuex=structure_to_value[("GraphArn",(Some(GraphArn.to_valuex.graphArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgraphArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArn")inmake~graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgraphArn=field_map_exnjson__"GraphArn"GraphArn.of_jsoninmake~graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disables the specified behavior graph and queues it to be deleted. This operation removes the behavior graph from each member account's list of behavior graphs. DeleteGraph can only be called by the administrator account for a behavior graph."]moduleCreateMembersResponse=structtypenonrect={members:MemberDetailList.toption[@ocaml.doc"The set of member account invitation or enablement requests that Detective was able to process. This includes accounts that are being verified, that failed verification, and that passed verification and are being sent an invitation or are being enabled."];unprocessedAccounts:UnprocessedAccountList.toption[@ocaml.doc"The list of accounts for which Detective was unable to process the invitation or enablement request. For each account, the list provides the reason why the request could not be processed. The list includes accounts that are already member accounts in the behavior graph."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?members=fun?unprocessedAccounts->fun()->{members;unprocessedAccounts}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Members",(Option.mapx.members~f:MemberDetailList.to_value));("UnprocessedAccounts",(Option.mapx.unprocessedAccounts~f:UnprocessedAccountList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunprocessedAccounts=(Option.map~f:UnprocessedAccountList.of_xml)(Xml.childxml_arg0"UnprocessedAccounts")inletmembers=(Option.map~f:MemberDetailList.of_xml)(Xml.childxml_arg0"Members")inmake?unprocessedAccounts?members()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunprocessedAccounts=field_mapjson__"UnprocessedAccounts"UnprocessedAccountList.of_jsoninletmembers=field_mapjson__"Members"MemberDetailList.of_jsoninmake?unprocessedAccounts?members()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"CreateMembers is used to send invitations to accounts. For the organization behavior graph, the Detective administrator account uses CreateMembers to enable organization accounts as member accounts. For invited accounts, CreateMembers sends a request to invite the specified Amazon Web Services accounts to be member accounts in the behavior graph. This operation can only be called by the administrator account for a behavior graph. CreateMembers verifies the accounts and then invites the verified accounts. The administrator can optionally specify to not send invitation emails to the member accounts. This would be used when the administrator manages their member accounts centrally. For organization accounts in the organization behavior graph, CreateMembers attempts to enable the accounts. The organization accounts do not receive invitations. The request provides the behavior graph ARN and the list of accounts to invite or to enable. The response separates the requested accounts into two lists: The accounts that CreateMembers was able to process. For invited accounts, includes member accounts that are being verified, that have passed verification and are to be invited, and that have failed verification. For organization accounts in the organization behavior graph, includes accounts that can be enabled and that cannot be enabled. The accounts that CreateMembers was unable to process. This list includes accounts that were already invited to be member accounts in the behavior graph."]moduleCreateMembersRequest=structtypenonrect={graphArn:GraphArn.t[@ocaml.doc"The ARN of the behavior graph."];message:EmailMessage.toption[@ocaml.doc"Customized message text to include in the invitation email message to the invited member accounts."];disableEmailNotification:Boolean.toption[@ocaml.doc"if set to true, then the invited accounts do not receive email notifications. By default, this is set to false, and the invited accounts receive email notifications. Organization accounts in the organization behavior graph do not receive email notifications."];accounts:AccountList.t[@ocaml.doc"The list of Amazon Web Services accounts to invite or to enable. You can invite or enable up to 50 accounts at a time. For each invited account, the account list contains the account identifier and the Amazon Web Services account root user email address. For organization accounts in the organization behavior graph, the email address is not required."]}letcontext_="CreateMembersRequest"letmake?message=fun?disableEmailNotification->fun~graphArn->fun~accounts->fun()->{message;disableEmailNotification;graphArn;accounts}letto_valuex=structure_to_value[("GraphArn",(Some(GraphArn.to_valuex.graphArn)));("Message",(Option.mapx.message~f:EmailMessage.to_value));("DisableEmailNotification",(Option.mapx.disableEmailNotification~f:Boolean.to_value));("Accounts",(Some(AccountList.to_valuex.accounts)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccounts=AccountList.of_xml(Xml.child_exn~context:context_xml_arg0"Accounts")inletdisableEmailNotification=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"DisableEmailNotification")inletmessage=(Option.map~f:EmailMessage.of_xml)(Xml.childxml_arg0"Message")inletgraphArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArn")inmake~accounts?disableEmailNotification?message~graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccounts=field_map_exnjson__"Accounts"AccountList.of_jsoninletdisableEmailNotification=field_mapjson__"DisableEmailNotification"Boolean.of_jsoninletmessage=field_mapjson__"Message"EmailMessage.of_jsoninletgraphArn=field_map_exnjson__"GraphArn"GraphArn.of_jsoninmake~accounts?disableEmailNotification?message~graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"CreateMembers is used to send invitations to accounts. For the organization behavior graph, the Detective administrator account uses CreateMembers to enable organization accounts as member accounts. For invited accounts, CreateMembers sends a request to invite the specified Amazon Web Services accounts to be member accounts in the behavior graph. This operation can only be called by the administrator account for a behavior graph. CreateMembers verifies the accounts and then invites the verified accounts. The administrator can optionally specify to not send invitation emails to the member accounts. This would be used when the administrator manages their member accounts centrally. For organization accounts in the organization behavior graph, CreateMembers attempts to enable the accounts. The organization accounts do not receive invitations. The request provides the behavior graph ARN and the list of accounts to invite or to enable. The response separates the requested accounts into two lists: The accounts that CreateMembers was able to process. For invited accounts, includes member accounts that are being verified, that have passed verification and are to be invited, and that have failed verification. For organization accounts in the organization behavior graph, includes accounts that can be enabled and that cannot be enabled. The accounts that CreateMembers was unable to process. This list includes accounts that were already invited to be member accounts in the behavior graph."]moduleCreateGraphResponse=structtypenonrect={graphArn:GraphArn.toption[@ocaml.doc"The ARN of the new behavior graph."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`Unknown_operation_errorof(string*stringoption)]letmake?graphArn=fun()->{graphArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.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)|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))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("GraphArn",(Option.mapx.graphArn~f:GraphArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgraphArn=(Option.map~f:GraphArn.of_xml)(Xml.childxml_arg0"GraphArn")inmake?graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgraphArn=field_mapjson__"GraphArn"GraphArn.of_jsoninmake?graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new behavior graph for the calling account, and sets that account as the administrator account. This operation is called by the account that is enabling Detective. The operation also enables Detective for the calling account in the currently selected Region. It returns the ARN of the new behavior graph. CreateGraph triggers a process to create the corresponding data tables for the new behavior graph. An account can only be the administrator account for one behavior graph within a Region. If the same account calls CreateGraph with the same administrator account, it always returns the same behavior graph ARN. It does not create a new behavior graph."]moduleCreateGraphRequest=structtypenonrect={tags:TagMap.toption[@ocaml.doc"The tags to assign to the new behavior graph. You can add up to 50 tags. For each tag, you provide the tag key and the tag value. Each tag key can contain up to 128 characters. Each tag value can contain up to 256 characters."]}letmake?tags=fun()->{tags}letto_valuex=structure_to_value[("Tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagMap.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new behavior graph for the calling account, and sets that account as the administrator account. This operation is called by the account that is enabling Detective. The operation also enables Detective for the calling account in the currently selected Region. It returns the ARN of the new behavior graph. CreateGraph triggers a process to create the corresponding data tables for the new behavior graph. An account can only be the administrator account for one behavior graph within a Region. If the same account calls CreateGraph with the same administrator account, it always returns the same behavior graph ARN. It does not create a new behavior graph."]moduleBatchGetMembershipDatasourcesResponse=structtypenonrect={membershipDatasources:MembershipDatasourcesList.toption[@ocaml.doc"Details on the data source package history for an member of the behavior graph."];unprocessedGraphs:UnprocessedGraphList.toption[@ocaml.doc"Graphs that data source package information could not be retrieved for."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?membershipDatasources=fun?unprocessedGraphs->fun()->{membershipDatasources;unprocessedGraphs}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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)|"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))]|`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[("MembershipDatasources",(Option.mapx.membershipDatasources~f:MembershipDatasourcesList.to_value));("UnprocessedGraphs",(Option.mapx.unprocessedGraphs~f:UnprocessedGraphList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunprocessedGraphs=(Option.map~f:UnprocessedGraphList.of_xml)(Xml.childxml_arg0"UnprocessedGraphs")inletmembershipDatasources=(Option.map~f:MembershipDatasourcesList.of_xml)(Xml.childxml_arg0"MembershipDatasources")inmake?unprocessedGraphs?membershipDatasources()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunprocessedGraphs=field_mapjson__"UnprocessedGraphs"UnprocessedGraphList.of_jsoninletmembershipDatasources=field_mapjson__"MembershipDatasources"MembershipDatasourcesList.of_jsoninmake?unprocessedGraphs?membershipDatasources()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets information on the data source package history for an account."]moduleBatchGetMembershipDatasourcesRequest=structtypenonrect={graphArns:GraphArnList.t[@ocaml.doc"The ARN of the behavior graph."]}letcontext_="BatchGetMembershipDatasourcesRequest"letmake~graphArns=fun()->{graphArns}letto_valuex=structure_to_value[("GraphArns",(Some(GraphArnList.to_valuex.graphArns)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgraphArns=GraphArnList.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArns")inmake~graphArns()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgraphArns=field_map_exnjson__"GraphArns"GraphArnList.of_jsoninmake~graphArns()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets information on the data source package history for an account."]moduleBatchGetGraphMemberDatasourcesResponse=structtypenonrect={memberDatasources:MembershipDatasourcesList.toption[@ocaml.doc"Details on the status of data source packages for members of the behavior graph."];unprocessedAccounts:UnprocessedAccountList.toption[@ocaml.doc"Accounts that data source package information could not be retrieved for."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?memberDatasources=fun?unprocessedAccounts->fun()->{memberDatasources;unprocessedAccounts}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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)|"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))]|`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[("MemberDatasources",(Option.mapx.memberDatasources~f:MembershipDatasourcesList.to_value));("UnprocessedAccounts",(Option.mapx.unprocessedAccounts~f:UnprocessedAccountList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunprocessedAccounts=(Option.map~f:UnprocessedAccountList.of_xml)(Xml.childxml_arg0"UnprocessedAccounts")inletmemberDatasources=(Option.map~f:MembershipDatasourcesList.of_xml)(Xml.childxml_arg0"MemberDatasources")inmake?unprocessedAccounts?memberDatasources()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunprocessedAccounts=field_mapjson__"UnprocessedAccounts"UnprocessedAccountList.of_jsoninletmemberDatasources=field_mapjson__"MemberDatasources"MembershipDatasourcesList.of_jsoninmake?unprocessedAccounts?memberDatasources()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets data source package information for the behavior graph."]moduleBatchGetGraphMemberDatasourcesRequest=structtypenonrect={graphArn:GraphArn.t[@ocaml.doc"The ARN of the behavior graph."];accountIds:AccountIdExtendedList.t[@ocaml.doc"The list of Amazon Web Services accounts to get data source package information on."]}letcontext_="BatchGetGraphMemberDatasourcesRequest"letmake~graphArn=fun~accountIds->fun()->{graphArn;accountIds}letto_valuex=structure_to_value[("GraphArn",(Some(GraphArn.to_valuex.graphArn)));("AccountIds",(Some(AccountIdExtendedList.to_valuex.accountIds)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountIds=AccountIdExtendedList.of_xml(Xml.child_exn~context:context_xml_arg0"AccountIds")inletgraphArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArn")inmake~accountIds~graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountIds=field_map_exnjson__"AccountIds"AccountIdExtendedList.of_jsoninletgraphArn=field_map_exnjson__"GraphArn"GraphArn.of_jsoninmake~accountIds~graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets data source package information for the behavior graph."]moduleAcceptInvitationRequest=structtypenonrect={graphArn:GraphArn.t[@ocaml.doc"The ARN of the behavior graph that the member account is accepting the invitation for. The member account status in the behavior graph must be INVITED."]}letcontext_="AcceptInvitationRequest"letmake~graphArn=fun()->{graphArn}letto_valuex=structure_to_value[("GraphArn",(Some(GraphArn.to_valuex.graphArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgraphArn=GraphArn.of_xml(Xml.child_exn~context:context_xml_arg0"GraphArn")inmake~graphArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgraphArn=field_map_exnjson__"GraphArn"GraphArn.of_jsoninmake~graphArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Accepts an invitation for the member account to contribute data to a behavior graph. This operation can only be called by an invited member account. The request provides the ARN of behavior graph. The member account status in the graph must be INVITED."]