12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331(* 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.piletapiVersion="2018-02-27"letendpointPrefix="pi"letserviceFullName="AWS Performance Insights"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="AWS PI"lettargetPrefix="PerformanceInsightsv20180227"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[]))])moduleAcceptLanguage=structtypenonrect=|EN_US|Non_static_idofstringletmakei=iletto_string=function|EN_US->"EN_US"|Non_static_ids->sletof_string=function|"EN_US"->EN_US|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 AcceptLanguage"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AcceptLanguage"j)letto_json=simple_to_jsonto_valueendmoduleSanitizedString=structtypenonrect=string[@@ocaml.doc"A generic string type that forbids characters that could expose our service (or services downstream) to security risks around injections."]letcontext_="SanitizedString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9-_\\.:/*)( ]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SanitizedString"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"A generic string type that forbids characters that could expose our service (or services downstream) to security risks around injections."]moduleAdditionalMetricsList=structtypenonrect=SanitizedString.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:30)>>=(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:SanitizedString.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:SanitizedString.of_xml)letof_jsonj=list_of_json~kind:"AdditionalMetricsList"~of_json:SanitizedString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRequestString=structtypenonrect=stringletcontext_="RequestString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:".*\\S.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RequestString"jletto_json=simple_to_jsonto_valueendmoduleDouble=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_valueendmoduleAdditionalMetricsMap=structtypenonrect=(RequestString.t*Double.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((RequestString.of_stringchopped),(Double.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(RequestString.to_valuex)|>(funx->(Double.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:RequestString.of_string~of_json:Double.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAmazonResourceName=structtypenonrect=stringletcontext_="AmazonResourceName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1011)>>=(fun()->check_patterni~pattern:"^arn:.*:pi:.*$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AmazonResourceName"jletto_json=simple_to_jsonto_valueendmoduleServiceType=structtypenonrect=|RDS|DOCDB|Non_static_idofstringletmakei=iletto_string=function|RDS->"RDS"|DOCDB->"DOCDB"|Non_static_ids->sletof_string=function|"RDS"->RDS|"DOCDB"->DOCDB|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 ServiceType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ServiceType"j)letto_json=simple_to_jsonto_valueendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:".*\\S.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleSeverity=structtypenonrect=|LOW|MEDIUM|HIGH|Non_static_idofstringletmakei=iletto_string=function|LOW->"LOW"|MEDIUM->"MEDIUM"|HIGH->"HIGH"|Non_static_ids->sletof_string=function|"LOW"->LOW|"MEDIUM"->MEDIUM|"HIGH"->HIGH|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_valueendmoduleMarkdownString=structtypenonrect=stringletcontext_="MarkdownString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:8000)>>=(fun()->check_patterni~pattern:"(.|\\n)*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MarkdownString"jletto_json=simple_to_jsonto_valueendmoduleRecommendation=structtypenonrect={recommendationId:String_.toption[@ocaml.doc"The unique identifier for the recommendation."];recommendationDescription:MarkdownString.toption[@ocaml.doc"The recommendation details to help resolve the performance issue. For example, Investigate the following SQLs that contributed to 100% of the total DBLoad during that time period: sql-id"]}letmake?recommendationId=fun?recommendationDescription->fun()->{recommendationId;recommendationDescription}letto_valuex=structure_to_value[("RecommendationId",(Option.mapx.recommendationId~f:String_.to_value));("RecommendationDescription",(Option.mapx.recommendationDescription~f:MarkdownString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecommendationDescription=(Option.map~f:MarkdownString.of_xml)(Xml.childxml_arg0"RecommendationDescription")inletrecommendationId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"RecommendationId")inmake?recommendationDescription?recommendationId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecommendationDescription=field_mapjson__"RecommendationDescription"MarkdownString.of_jsoninletrecommendationId=field_mapjson__"RecommendationId"String_.of_jsoninmake?recommendationDescription?recommendationId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The list of recommendations for the insight."]moduleRecommendationList=structtypenonrect=Recommendation.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Recommendation.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:Recommendation.of_xml)letof_jsonj=list_of_json~kind:"RecommendationList"~of_json:Recommendation.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleISOTimestamp=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_valueendmoduleDescriptiveString=structtypenonrect=stringletcontext_="DescriptiveString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2000)>>=(fun()->check_patterni~pattern:"^.*$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DescriptiveString"jletto_json=simple_to_jsonto_valueendmoduleDescriptiveMap=structtypenonrect=(DescriptiveString.t*DescriptiveString.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((DescriptiveString.of_stringchopped),(DescriptiveString.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(DescriptiveString.to_valuex)|>(funx->(DescriptiveString.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:DescriptiveString.of_string~of_json:DescriptiveString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePerformanceInsightsMetric=structtypenonrect={metric:DescriptiveString.toption[@ocaml.doc"The Performance Insights metric."];displayName:DescriptiveString.toption[@ocaml.doc"The Performance Insights metric name."];dimensions:DescriptiveMap.toption[@ocaml.doc"A dimension map that contains the dimensions for this partition."];filter:DescriptiveMap.toption[@ocaml.doc"The filter for the Performance Insights metric."];value:Double.toption[@ocaml.doc"The value of the metric. For example, 9 for db.load.avg."]}letmake?metric=fun?displayName->fun?dimensions->fun?filter->fun?value->fun()->{metric;displayName;dimensions;filter;value}letto_valuex=structure_to_value[("Metric",(Option.mapx.metric~f:DescriptiveString.to_value));("DisplayName",(Option.mapx.displayName~f:DescriptiveString.to_value));("Dimensions",(Option.mapx.dimensions~f:DescriptiveMap.to_value));("Filter",(Option.mapx.filter~f:DescriptiveMap.to_value));("Value",(Option.mapx.value~f:Double.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"Value")inletfilter=(Option.map~f:DescriptiveMap.of_xml)(Xml.childxml_arg0"Filter")inletdimensions=(Option.map~f:DescriptiveMap.of_xml)(Xml.childxml_arg0"Dimensions")inletdisplayName=(Option.map~f:DescriptiveString.of_xml)(Xml.childxml_arg0"DisplayName")inletmetric=(Option.map~f:DescriptiveString.of_xml)(Xml.childxml_arg0"Metric")inmake?value?filter?dimensions?displayName?metric()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"Value"Double.of_jsoninletfilter=field_mapjson__"Filter"DescriptiveMap.of_jsoninletdimensions=field_mapjson__"Dimensions"DescriptiveMap.of_jsoninletdisplayName=field_mapjson__"DisplayName"DescriptiveString.of_jsoninletmetric=field_mapjson__"Metric"DescriptiveString.of_jsoninmake?value?filter?dimensions?displayName?metric()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This data type helps to determine Performance Insights metric to render for the insight."]moduleData=structtypenonrect={performanceInsightsMetric:PerformanceInsightsMetric.toption[@ocaml.doc"This field determines the Performance Insights metric to render for the insight. The name field refers to a Performance Insights metric."]}letmake?performanceInsightsMetric=fun()->{performanceInsightsMetric}letto_valuex=structure_to_value[("PerformanceInsightsMetric",(Option.mapx.performanceInsightsMetric~f:PerformanceInsightsMetric.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letperformanceInsightsMetric=(Option.map~f:PerformanceInsightsMetric.of_xml)(Xml.childxml_arg0"PerformanceInsightsMetric")inmake?performanceInsightsMetric()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letperformanceInsightsMetric=field_mapjson__"PerformanceInsightsMetric"PerformanceInsightsMetric.of_jsoninmake?performanceInsightsMetric()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List of data objects which provide details about source metrics. This field can be used to determine the PI metric to render for the insight. This data type also includes static values for the metrics for the Insight that were calculated and included in text and annotations on the DB load chart."]moduleDataList=structtypenonrect=Data.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Data.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:Data.of_xml)letof_jsonj=list_of_json~kind:"DataList"~of_json:Data.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleContextType=structtypenonrect=|CAUSAL|CONTEXTUAL|Non_static_idofstringletmakei=iletto_string=function|CAUSAL->"CAUSAL"|CONTEXTUAL->"CONTEXTUAL"|Non_static_ids->sletof_string=function|"CAUSAL"->CAUSAL|"CONTEXTUAL"->CONTEXTUAL|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 ContextType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ContextType"j)letto_json=simple_to_jsonto_valueendmodulerecInsight:sigtypenonrect={insightId:String_.toption[@ocaml.doc"The unique identifier for the insight. For example, insight-12345678901234567."];insightType:String_.toption[@ocaml.doc"The type of insight. For example, HighDBLoad, HighCPU, or DominatingSQLs."];context:ContextType.toption[@ocaml.doc"Indicates if the insight is causal or correlated insight."];startTime:ISOTimestamp.toption[@ocaml.doc"The start time of the insight. For example, 2018-10-30T00:00:00Z."];endTime:ISOTimestamp.toption[@ocaml.doc"The end time of the insight. For example, 2018-10-30T00:00:00Z."];severity:Severity.toption[@ocaml.doc"The severity of the insight. The values are: Low, Medium, or High."];supportingInsights:InsightList.toption[@ocaml.doc"List of supporting insights that provide additional factors for the insight."];description:MarkdownString.toption[@ocaml.doc"Description of the insight. For example: A high severity Insight found between 02:00 to 02:30, where there was an unusually high DB load 600x above baseline. Likely performance impact."];recommendations:RecommendationList.toption[@ocaml.doc"List of recommendations for the insight. For example, Investigate the following SQLs that contributed to 100% of the total DBLoad during that time period: sql-id."];insightData:DataList.toption[@ocaml.doc"List of data objects containing metrics and references from the time range while generating the insight."];baselineData:DataList.toption[@ocaml.doc"Metric names and values from the timeframe used as baseline to generate the insight."]}valmake:?insightId:String_.t->?insightType:String_.t->?context:ContextType.t->?startTime:ISOTimestamp.t->?endTime:ISOTimestamp.t->?severity:Severity.t->?supportingInsights:InsightList.t->?description:MarkdownString.t->?recommendations:RecommendationList.t->?insightData:DataList.t->?baselineData:DataList.t->unit->tvalto_value:t->Botodata.valuevalto_query:t->Client.Query.tvalof_xml:Xml.t->tvalof_json:Yojson.Safe.t->tvalto_json:t->Yojson.Safe.tend=structtypenonrect={insightId:String_.toption[@ocaml.doc"The unique identifier for the insight. For example, insight-12345678901234567."];insightType:String_.toption[@ocaml.doc"The type of insight. For example, HighDBLoad, HighCPU, or DominatingSQLs."];context:ContextType.toption[@ocaml.doc"Indicates if the insight is causal or correlated insight."];startTime:ISOTimestamp.toption[@ocaml.doc"The start time of the insight. For example, 2018-10-30T00:00:00Z."];endTime:ISOTimestamp.toption[@ocaml.doc"The end time of the insight. For example, 2018-10-30T00:00:00Z."];severity:Severity.toption[@ocaml.doc"The severity of the insight. The values are: Low, Medium, or High."];supportingInsights:InsightList.toption[@ocaml.doc"List of supporting insights that provide additional factors for the insight."];description:MarkdownString.toption[@ocaml.doc"Description of the insight. For example: A high severity Insight found between 02:00 to 02:30, where there was an unusually high DB load 600x above baseline. Likely performance impact."];recommendations:RecommendationList.toption[@ocaml.doc"List of recommendations for the insight. For example, Investigate the following SQLs that contributed to 100% of the total DBLoad during that time period: sql-id."];insightData:DataList.toption[@ocaml.doc"List of data objects containing metrics and references from the time range while generating the insight."];baselineData:DataList.toption[@ocaml.doc"Metric names and values from the timeframe used as baseline to generate the insight."]}letmake?insightId=fun?insightType->fun?context->fun?startTime->fun?endTime->fun?severity->fun?supportingInsights->fun?description->fun?recommendations->fun?insightData->fun?baselineData->fun()->{insightId;insightType;context;startTime;endTime;severity;supportingInsights;description;recommendations;insightData;baselineData}letto_valuex=structure_to_value[("InsightId",(Option.mapx.insightId~f:String_.to_value));("InsightType",(Option.mapx.insightType~f:String_.to_value));("Context",(Option.mapx.context~f:ContextType.to_value));("StartTime",(Option.mapx.startTime~f:ISOTimestamp.to_value));("EndTime",(Option.mapx.endTime~f:ISOTimestamp.to_value));("Severity",(Option.mapx.severity~f:Severity.to_value));("SupportingInsights",(Option.mapx.supportingInsights~f:InsightList.to_value));("Description",(Option.mapx.description~f:MarkdownString.to_value));("Recommendations",(Option.mapx.recommendations~f:RecommendationList.to_value));("InsightData",(Option.mapx.insightData~f:DataList.to_value));("BaselineData",(Option.mapx.baselineData~f:DataList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbaselineData=(Option.map~f:DataList.of_xml)(Xml.childxml_arg0"BaselineData")inletinsightData=(Option.map~f:DataList.of_xml)(Xml.childxml_arg0"InsightData")inletrecommendations=(Option.map~f:RecommendationList.of_xml)(Xml.childxml_arg0"Recommendations")inletdescription=(Option.map~f:MarkdownString.of_xml)(Xml.childxml_arg0"Description")inletsupportingInsights=(Option.map~f:InsightList.of_xml)(Xml.childxml_arg0"SupportingInsights")inletseverity=(Option.map~f:Severity.of_xml)(Xml.childxml_arg0"Severity")inletendTime=(Option.map~f:ISOTimestamp.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:ISOTimestamp.of_xml)(Xml.childxml_arg0"StartTime")inletcontext=(Option.map~f:ContextType.of_xml)(Xml.childxml_arg0"Context")inletinsightType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"InsightType")inletinsightId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"InsightId")inmake?baselineData?insightData?recommendations?description?supportingInsights?severity?endTime?startTime?context?insightType?insightId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbaselineData=field_mapjson__"BaselineData"DataList.of_jsoninletinsightData=field_mapjson__"InsightData"DataList.of_jsoninletrecommendations=field_mapjson__"Recommendations"RecommendationList.of_jsoninletdescription=field_mapjson__"Description"MarkdownString.of_jsoninletsupportingInsights=field_mapjson__"SupportingInsights"InsightList.of_jsoninletseverity=field_mapjson__"Severity"Severity.of_jsoninletendTime=field_mapjson__"EndTime"ISOTimestamp.of_jsoninletstartTime=field_mapjson__"StartTime"ISOTimestamp.of_jsoninletcontext=field_mapjson__"Context"ContextType.of_jsoninletinsightType=field_mapjson__"InsightType"String_.of_jsoninletinsightId=field_mapjson__"InsightId"String_.of_jsoninmake?baselineData?insightData?recommendations?description?supportingInsights?severity?endTime?startTime?context?insightType?insightId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the list of performance issues which are identified."]andInsightList:sigtypenonrect=Insight.tlistvalmake:Insight.tlist->tvalto_value:t->Botodata.valuevalto_query:t->Client.Query.tvalof_xml:Xml.t->Insight.tlistvalof_json:Yojson.Safe.t->tvalto_json:t->Yojson.Safe.tvalto_header:t->stringend=structtypenonrect=Insight.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Insight.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:Insight.of_xml)letof_jsonj=list_of_json~kind:"InsightList"~of_json:Insight.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleIdentifierString=structtypenonrect=stringletcontext_="IdentifierString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IdentifierString"jletto_json=simple_to_jsonto_valueendmoduleAnalysisStatus=structtypenonrect=|RUNNING|SUCCEEDED|FAILED|Non_static_idofstringletmakei=iletto_string=function|RUNNING->"RUNNING"|SUCCEEDED->"SUCCEEDED"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"RUNNING"->RUNNING|"SUCCEEDED"->SUCCEEDED|"FAILED"->FAILED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration AnalysisStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AnalysisStatus"j)letto_json=simple_to_jsonto_valueendmoduleAnalysisReportId=structtypenonrect=stringletcontext_="AnalysisReportId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(fun()->check_patterni~pattern:"report-[0-9a-f]{17}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AnalysisReportId"jletto_json=simple_to_jsonto_valueendmoduleAnalysisReport=structtypenonrect={analysisReportId:AnalysisReportId.toption[@ocaml.doc"The name of the analysis report."];identifier:IdentifierString.toption[@ocaml.doc"The unique identifier of the analysis report."];serviceType:ServiceType.toption[@ocaml.doc"List the tags for the Amazon Web Services service for which Performance Insights returns metrics. Valid values are as follows: RDS DOCDB"];createTime:ISOTimestamp.toption[@ocaml.doc"The time you created the analysis report."];startTime:ISOTimestamp.toption[@ocaml.doc"The analysis start time in the report."];endTime:ISOTimestamp.toption[@ocaml.doc"The analysis end time in the report."];status:AnalysisStatus.toption[@ocaml.doc"The status of the created analysis report."];insights:InsightList.toption[@ocaml.doc"The list of identified insights in the analysis report."]}letmake?analysisReportId=fun?identifier->fun?serviceType->fun?createTime->fun?startTime->fun?endTime->fun?status->fun?insights->fun()->{analysisReportId;identifier;serviceType;createTime;startTime;endTime;status;insights}letto_valuex=structure_to_value[("AnalysisReportId",(Option.mapx.analysisReportId~f:AnalysisReportId.to_value));("Identifier",(Option.mapx.identifier~f:IdentifierString.to_value));("ServiceType",(Option.mapx.serviceType~f:ServiceType.to_value));("CreateTime",(Option.mapx.createTime~f:ISOTimestamp.to_value));("StartTime",(Option.mapx.startTime~f:ISOTimestamp.to_value));("EndTime",(Option.mapx.endTime~f:ISOTimestamp.to_value));("Status",(Option.mapx.status~f:AnalysisStatus.to_value));("Insights",(Option.mapx.insights~f:InsightList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinsights=(Option.map~f:InsightList.of_xml)(Xml.childxml_arg0"Insights")inletstatus=(Option.map~f:AnalysisStatus.of_xml)(Xml.childxml_arg0"Status")inletendTime=(Option.map~f:ISOTimestamp.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:ISOTimestamp.of_xml)(Xml.childxml_arg0"StartTime")inletcreateTime=(Option.map~f:ISOTimestamp.of_xml)(Xml.childxml_arg0"CreateTime")inletserviceType=(Option.map~f:ServiceType.of_xml)(Xml.childxml_arg0"ServiceType")inletidentifier=(Option.map~f:IdentifierString.of_xml)(Xml.childxml_arg0"Identifier")inletanalysisReportId=(Option.map~f:AnalysisReportId.of_xml)(Xml.childxml_arg0"AnalysisReportId")inmake?insights?status?endTime?startTime?createTime?serviceType?identifier?analysisReportId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinsights=field_mapjson__"Insights"InsightList.of_jsoninletstatus=field_mapjson__"Status"AnalysisStatus.of_jsoninletendTime=field_mapjson__"EndTime"ISOTimestamp.of_jsoninletstartTime=field_mapjson__"StartTime"ISOTimestamp.of_jsoninletcreateTime=field_mapjson__"CreateTime"ISOTimestamp.of_jsoninletserviceType=field_mapjson__"ServiceType"ServiceType.of_jsoninletidentifier=field_mapjson__"Identifier"IdentifierString.of_jsoninletanalysisReportId=field_mapjson__"AnalysisReportId"AnalysisReportId.of_jsoninmake?insights?status?endTime?startTime?createTime?serviceType?identifier?analysisReportId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the summary of the performance analysis report created for a time period."]moduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"^.*$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"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:"^.*$")));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_valueendmoduleTag=structtypenonrect={key:TagKey.t[@ocaml.doc"A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with aws: or rds:. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '\\@' (Java regex: \"^(\\[\\\\p\\{L\\}\\\\p\\{Z\\}\\\\p\\{N\\}_.:/=+\\\\-\\@\\]*)$\")."];value:TagValue.t[@ocaml.doc"A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with aws: or rds:. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '\\@' (Java regex: \"^(\\[\\\\p\\{L\\}\\\\p\\{Z\\}\\\\p\\{N\\}_.:/=+\\\\-\\@\\]*)$\")."]}letcontext_="Tag"letmake~key=fun~value->fun()->{key;value}letto_valuex=structure_to_value[("Key",(Some(TagKey.to_valuex.key)));("Value",(Some(TagValue.to_valuex.value)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=TagValue.of_xml(Xml.child_exn~context:context_xml_arg0"Value")inletkey=TagKey.of_xml(Xml.child_exn~context:context_xml_arg0"Key")inmake~value~key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_map_exnjson__"Value"TagValue.of_jsoninletkey=field_map_exnjson__"Key"TagKey.of_jsoninmake~value~key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Metadata assigned to an Amazon RDS resource consisting of a key-value pair."]moduleTagList=structtypenonrect=Tag.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Tag.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Tag.of_xml)letof_jsonj=list_of_json~kind:"TagList"~of_json:Tag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAnalysisReportSummary=structtypenonrect={analysisReportId:String_.toption[@ocaml.doc"The name of the analysis report."];createTime:ISOTimestamp.toption[@ocaml.doc"The time you created the analysis report."];startTime:ISOTimestamp.toption[@ocaml.doc"The start time of the analysis in the report."];endTime:ISOTimestamp.toption[@ocaml.doc"The end time of the analysis in the report."];status:AnalysisStatus.toption[@ocaml.doc"The status of the analysis report."];tags:TagList.toption[@ocaml.doc"List of all the tags added to the analysis report."]}letmake?analysisReportId=fun?createTime->fun?startTime->fun?endTime->fun?status->fun?tags->fun()->{analysisReportId;createTime;startTime;endTime;status;tags}letto_valuex=structure_to_value[("AnalysisReportId",(Option.mapx.analysisReportId~f:String_.to_value));("CreateTime",(Option.mapx.createTime~f:ISOTimestamp.to_value));("StartTime",(Option.mapx.startTime~f:ISOTimestamp.to_value));("EndTime",(Option.mapx.endTime~f:ISOTimestamp.to_value));("Status",(Option.mapx.status~f:AnalysisStatus.to_value));("Tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletstatus=(Option.map~f:AnalysisStatus.of_xml)(Xml.childxml_arg0"Status")inletendTime=(Option.map~f:ISOTimestamp.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:ISOTimestamp.of_xml)(Xml.childxml_arg0"StartTime")inletcreateTime=(Option.map~f:ISOTimestamp.of_xml)(Xml.childxml_arg0"CreateTime")inletanalysisReportId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"AnalysisReportId")inmake?tags?status?endTime?startTime?createTime?analysisReportId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninletstatus=field_mapjson__"Status"AnalysisStatus.of_jsoninletendTime=field_mapjson__"EndTime"ISOTimestamp.of_jsoninletstartTime=field_mapjson__"StartTime"ISOTimestamp.of_jsoninletcreateTime=field_mapjson__"CreateTime"ISOTimestamp.of_jsoninletanalysisReportId=field_mapjson__"AnalysisReportId"String_.of_jsoninmake?tags?status?endTime?startTime?createTime?analysisReportId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the details of the performance analysis report."]moduleAnalysisReportSummaryList=structtypenonrect=AnalysisReportSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AnalysisReportSummary.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:AnalysisReportSummary.of_xml)letof_jsonj=list_of_json~kind:"AnalysisReportSummaryList"~of_json:AnalysisReportSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFineGrainedAction=structtypenonrect=|DescribeDimensionKeys|GetDimensionKeyDetails|GetResourceMetrics|Non_static_idofstringletmakei=iletto_string=function|DescribeDimensionKeys->"DescribeDimensionKeys"|GetDimensionKeyDetails->"GetDimensionKeyDetails"|GetResourceMetrics->"GetResourceMetrics"|Non_static_ids->sletof_string=function|"DescribeDimensionKeys"->DescribeDimensionKeys|"GetDimensionKeyDetails"->GetDimensionKeyDetails|"GetResourceMetrics"->GetResourceMetrics|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 FineGrainedAction"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FineGrainedAction"j)letto_json=simple_to_jsonto_valueendmoduleAuthorizedActionsList=structtypenonrect=FineGrainedAction.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:3)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FineGrainedAction.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:FineGrainedAction.of_xml)letof_jsonj=list_of_json~kind:"AuthorizedActionsList"~of_json:FineGrainedAction.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBoolean=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleCreatePerformanceAnalysisReportRequest=structtypenonrect={serviceType:ServiceType.t[@ocaml.doc"The Amazon Web Services service for which Performance Insights will return metrics. Valid value is RDS."];identifier:IdentifierString.t[@ocaml.doc"An immutable, Amazon Web Services Region-unique identifier for a data source. Performance Insights gathers metrics from this data source. To use an Amazon RDS instance as a data source, you specify its DbiResourceId value. For example, specify db-ADECBTYHKTSAUMUZQYPDS2GW4A."];startTime:ISOTimestamp.t[@ocaml.doc"The start time defined for the analysis report."];endTime:ISOTimestamp.t[@ocaml.doc"The end time defined for the analysis report."];tags:TagList.toption[@ocaml.doc"The metadata assigned to the analysis report consisting of a key-value pair."]}letcontext_="CreatePerformanceAnalysisReportRequest"letmake?tags=fun~serviceType->fun~identifier->fun~startTime->fun~endTime->fun()->{tags;serviceType;identifier;startTime;endTime}letto_valuex=structure_to_value[("ServiceType",(Some(ServiceType.to_valuex.serviceType)));("Identifier",(Some(IdentifierString.to_valuex.identifier)));("StartTime",(Some(ISOTimestamp.to_valuex.startTime)));("EndTime",(Some(ISOTimestamp.to_valuex.endTime)));("Tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletendTime=ISOTimestamp.of_xml(Xml.child_exn~context:context_xml_arg0"EndTime")inletstartTime=ISOTimestamp.of_xml(Xml.child_exn~context:context_xml_arg0"StartTime")inletidentifier=IdentifierString.of_xml(Xml.child_exn~context:context_xml_arg0"Identifier")inletserviceType=ServiceType.of_xml(Xml.child_exn~context:context_xml_arg0"ServiceType")inmake?tags~endTime~startTime~identifier~serviceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninletendTime=field_map_exnjson__"EndTime"ISOTimestamp.of_jsoninletstartTime=field_map_exnjson__"StartTime"ISOTimestamp.of_jsoninletidentifier=field_map_exnjson__"Identifier"IdentifierString.of_jsoninletserviceType=field_map_exnjson__"ServiceType"ServiceType.of_jsoninmake?tags~endTime~startTime~identifier~serviceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new performance analysis report for a specific time period for the DB instance."]moduleErrorString=structtypenonrect=stringletcontext_="ErrorString"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:"ErrorString"jletto_json=simple_to_jsonto_valueendmoduleNotAuthorizedException=structtypenonrect={message:ErrorString.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorString.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorString.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The user is not authorized to perform this request."]moduleInvalidArgumentException=structtypenonrect={message:ErrorString.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorString.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorString.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"One of the arguments provided is invalid for this request."]moduleInternalServiceError=structtypenonrect={message:ErrorString.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorString.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorString.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request failed due to an unknown error."]moduleCreatePerformanceAnalysisReportResponse=structtypenonrect={analysisReportId:AnalysisReportId.toption[@ocaml.doc"A unique identifier for the created analysis report."]}typenonrecerror=[`InternalServiceErrorofInternalServiceError.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`Unknown_operation_errorof(string*stringoption)]letmake?analysisReportId=fun()->{analysisReportId}leterror_of_jsonnamejson=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AnalysisReportId",(Option.mapx.analysisReportId~f:AnalysisReportId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letanalysisReportId=(Option.map~f:AnalysisReportId.of_xml)(Xml.childxml_arg0"AnalysisReportId")inmake?analysisReportId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letanalysisReportId=field_mapjson__"AnalysisReportId"AnalysisReportId.of_jsoninmake?analysisReportId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new performance analysis report for a specific time period for the DB instance."]moduleDataPoint=structtypenonrect={timestamp:ISOTimestamp.toption[@ocaml.doc"The time, in epoch format, associated with a particular Value."];value:Double.toption[@ocaml.doc"The actual value associated with a particular Timestamp."]}letmake?timestamp=fun?value->fun()->{timestamp;value}letto_valuex=structure_to_value[("Timestamp",(Option.mapx.timestamp~f:ISOTimestamp.to_value));("Value",(Option.mapx.value~f:Double.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"Value")inlettimestamp=(Option.map~f:ISOTimestamp.of_xml)(Xml.childxml_arg0"Timestamp")inmake?value?timestamp()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"Value"Double.of_jsoninlettimestamp=field_mapjson__"Timestamp"ISOTimestamp.of_jsoninmake?value?timestamp()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A timestamp, and a single numerical value, which together represent a measurement at a particular point in time."]moduleDataPointsList=structtypenonrect=DataPoint.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DataPoint.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:DataPoint.of_xml)letof_jsonj=list_of_json~kind:"DataPointsList"~of_json:DataPoint.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDeletePerformanceAnalysisReportRequest=structtypenonrect={serviceType:ServiceType.t[@ocaml.doc"The Amazon Web Services service for which Performance Insights will return metrics. Valid value is RDS."];identifier:IdentifierString.t[@ocaml.doc"An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. In the console, the identifier is shown as ResourceID. When you call DescribeDBInstances, the identifier is returned as DbiResourceId. To use a DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X."];analysisReportId:AnalysisReportId.t[@ocaml.doc"The unique identifier of the analysis report for deletion."]}letcontext_="DeletePerformanceAnalysisReportRequest"letmake~serviceType=fun~identifier->fun~analysisReportId->fun()->{serviceType;identifier;analysisReportId}letto_valuex=structure_to_value[("ServiceType",(Some(ServiceType.to_valuex.serviceType)));("Identifier",(Some(IdentifierString.to_valuex.identifier)));("AnalysisReportId",(Some(AnalysisReportId.to_valuex.analysisReportId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letanalysisReportId=AnalysisReportId.of_xml(Xml.child_exn~context:context_xml_arg0"AnalysisReportId")inletidentifier=IdentifierString.of_xml(Xml.child_exn~context:context_xml_arg0"Identifier")inletserviceType=ServiceType.of_xml(Xml.child_exn~context:context_xml_arg0"ServiceType")inmake~analysisReportId~identifier~serviceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letanalysisReportId=field_map_exnjson__"AnalysisReportId"AnalysisReportId.of_jsoninletidentifier=field_map_exnjson__"Identifier"IdentifierString.of_jsoninletserviceType=field_map_exnjson__"ServiceType"ServiceType.of_jsoninmake~analysisReportId~identifier~serviceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a performance analysis report."]moduleDeletePerformanceAnalysisReportResponse=structtypenonrect=unittypenonrecerror=[`InternalServiceErrorofInternalServiceError.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a performance analysis report."]moduleNextToken=structtypenonrect=stringletcontext_="NextToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:8192)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9_=-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NextToken"jletto_json=simple_to_jsonto_valueendmoduleMetricQueryFilterMap=structtypenonrect=(SanitizedString.t*RequestString.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((SanitizedString.of_stringchopped),(RequestString.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(SanitizedString.to_valuex)|>(funx->(RequestString.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:SanitizedString.of_string~of_json:RequestString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:25)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleInteger=structtypenonrect=intletmakei=iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for Integer"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleSanitizedStringList=structtypenonrect=SanitizedString.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SanitizedString.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:SanitizedString.of_xml)letof_jsonj=list_of_json~kind:"SanitizedStringList"~of_json:SanitizedString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLimit=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:25)>>=(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 Limit"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleDimensionGroup=structtypenonrect={group:SanitizedString.t[@ocaml.doc"The name of the dimension group. Valid values are as follows: db - The name of the database to which the client is connected. The following values are permitted: Aurora PostgreSQL Amazon RDS PostgreSQL Aurora MySQL Amazon RDS MySQL Amazon RDS MariaDB Amazon DocumentDB db.application - The name of the application that is connected to the database. The following values are permitted: Aurora PostgreSQL Amazon RDS PostgreSQL Amazon DocumentDB db.blocking_sql - The SQL queries blocking the most DB load. db.blocking_session - The sessions blocking the most DB load. db.blocking_object - The object resources acquired by other sessions that are blocking the most DB load. db.host - The host name of the connected client (all engines). db.plans - The execution plans for the query (only Aurora PostgreSQL). db.query - The query that is currently running (only Amazon DocumentDB). db.query_tokenized - The digest query (only Amazon DocumentDB). db.session_type - The type of the current session (only Aurora PostgreSQL and RDS PostgreSQL). db.sql - The text of the SQL statement that is currently running (all engines except Amazon DocumentDB). db.sql_tokenized - The SQL digest (all engines except Amazon DocumentDB). db.user - The user logged in to the database (all engines except Amazon DocumentDB). db.wait_event - The event for which the database backend is waiting (all engines except Amazon DocumentDB). db.wait_event_type - The type of event for which the database backend is waiting (all engines except Amazon DocumentDB). db.wait_state - The event for which the database backend is waiting (only Amazon DocumentDB)."];dimensions:SanitizedStringList.toption[@ocaml.doc"A list of specific dimensions from a dimension group. If this parameter is not present, then it signifies that all of the dimensions in the group were requested, or are present in the response. Valid values for elements in the Dimensions array are: db.application.name - The name of the application that is connected to the database. Valid values are as follows: Aurora PostgreSQL Amazon RDS PostgreSQL Amazon DocumentDB db.blocking_sql.id - The ID for each of the SQL queries blocking the most DB load. db.blocking_sql.sql - The SQL text for each of the SQL queries blocking the most DB load. db.blocking_session.id - The ID for each of the sessions blocking the most DB load. db.blocking_object.id - The ID for each of the object resources acquired by other sessions that are blocking the most DB load. db.blocking_object.type - The object type for each of the object resources acquired by other sessions that are blocking the most DB load. db.blocking_object.value - The value for each of the object resources acquired by other sessions that are blocking the most DB load. db.host.id - The host ID of the connected client (all engines). db.host.name - The host name of the connected client (all engines). db.name - The name of the database to which the client is connected. Valid values are as follows: Aurora PostgreSQL Amazon RDS PostgreSQL Aurora MySQL Amazon RDS MySQL Amazon RDS MariaDB Amazon DocumentDB db.query.id - The query ID generated by Performance Insights (only Amazon DocumentDB). db.query.db_id - The query ID generated by the database (only Amazon DocumentDB). db.query.statement - The text of the query that is being run (only Amazon DocumentDB). db.query.tokenized_id db.query.tokenized.id - The query digest ID generated by Performance Insights (only Amazon DocumentDB). db.query.tokenized.db_id - The query digest ID generated by Performance Insights (only Amazon DocumentDB). db.query.tokenized.statement - The text of the query digest (only Amazon DocumentDB). db.session_type.name - The type of the current session (only Amazon DocumentDB). db.sql.id - The hash of the full, non-tokenized SQL statement generated by Performance Insights (all engines except Amazon DocumentDB). db.sql.db_id - Either the SQL ID generated by the database engine, or a value generated by Performance Insights that begins with pi- (all engines except Amazon DocumentDB). db.sql.statement - The full text of the SQL statement that is running, as in SELECT * FROM employees (all engines except Amazon DocumentDB) db.sql.tokenized_id - The hash of the SQL digest generated by Performance Insights (all engines except Amazon DocumentDB). The db.sql.tokenized_id dimension fetches the value of the db.sql_tokenized.id dimension. Amazon RDS returns db.sql.tokenized_id from the db.sql dimension group. db.sql_tokenized.id - The hash of the SQL digest generated by Performance Insights (all engines except Amazon DocumentDB). In the console, db.sql_tokenized.id is called the Support ID because Amazon Web Services Support can look at this data to help you troubleshoot database issues. db.sql_tokenized.db_id - Either the native database ID used to refer to the SQL statement, or a synthetic ID such as pi-2372568224 that Performance Insights generates if the native database ID isn't available (all engines except Amazon DocumentDB). db.sql_tokenized.statement - The text of the SQL digest, as in SELECT * FROM employees WHERE employee_id = ? (all engines except Amazon DocumentDB) db.user.id - The ID of the user logged in to the database (all engines except Amazon DocumentDB). db.user.name - The name of the user logged in to the database (all engines except Amazon DocumentDB). db.wait_event.name - The event for which the backend is waiting (all engines except Amazon DocumentDB). db.wait_event.type - The type of event for which the backend is waiting (all engines except Amazon DocumentDB). db.wait_event_type.name - The name of the event type for which the backend is waiting (all engines except Amazon DocumentDB). db.wait_state.name - The event for which the backend is waiting (only Amazon DocumentDB)."];limit:Limit.toption[@ocaml.doc"The maximum number of items to fetch for this dimension group."]}letcontext_="DimensionGroup"letmake?dimensions=fun?limit->fun~group->fun()->{dimensions;limit;group}letto_valuex=structure_to_value[("Group",(Some(SanitizedString.to_valuex.group)));("Dimensions",(Option.mapx.dimensions~f:SanitizedStringList.to_value));("Limit",(Option.mapx.limit~f:Limit.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlimit=(Option.map~f:Limit.of_xml)(Xml.childxml_arg0"Limit")inletdimensions=(Option.map~f:SanitizedStringList.of_xml)(Xml.childxml_arg0"Dimensions")inletgroup=SanitizedString.of_xml(Xml.child_exn~context:context_xml_arg0"Group")inmake?limit?dimensions~group()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlimit=field_mapjson__"Limit"Limit.of_jsoninletdimensions=field_mapjson__"Dimensions"SanitizedStringList.of_jsoninletgroup=field_map_exnjson__"Group"SanitizedString.of_jsoninmake?limit?dimensions~group()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A logical grouping of Performance Insights metrics for a related subject area. For example, the db.sql dimension group consists of the following dimensions: db.sql.id - The hash of a running SQL statement, generated by Performance Insights. db.sql.db_id - Either the SQL ID generated by the database engine, or a value generated by Performance Insights that begins with pi-. db.sql.statement - The full text of the SQL statement that is running, for example, SELECT * FROM employees. db.sql_tokenized.id - The hash of the SQL digest generated by Performance Insights. Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, only the first 500 bytes are returned."]moduleDescribeDimensionKeysRequest=structtypenonrect={serviceType:ServiceType.t[@ocaml.doc"The Amazon Web Services service for which Performance Insights will return metrics. Valid values are as follows: RDS DOCDB"];identifier:IdentifierString.t[@ocaml.doc"An immutable, Amazon Web Services Region-unique identifier for a data source. Performance Insights gathers metrics from this data source. To use an Amazon RDS instance as a data source, you specify its DbiResourceId value. For example, specify db-FAIHNTYBKTGAUSUZQYPDS2GW4A."];startTime:ISOTimestamp.t[@ocaml.doc"The date and time specifying the beginning of the requested time series data. You must specify a StartTime within the past 7 days. The value specified is inclusive, which means that data points equal to or greater than StartTime are returned. The value for StartTime must be earlier than the value for EndTime."];endTime:ISOTimestamp.t[@ocaml.doc"The date and time specifying the end of the requested time series data. The value specified is exclusive, which means that data points less than (but not equal to) EndTime are returned. The value for EndTime must be later than the value for StartTime."];metric:RequestString.t[@ocaml.doc"The name of a Performance Insights metric to be measured. Valid values for Metric are: db.load.avg - A scaled representation of the number of active sessions for the database engine. db.sampledload.avg - The raw number of active sessions for the database engine. If the number of active sessions is less than an internal Performance Insights threshold, db.load.avg and db.sampledload.avg are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with db.load.avg showing the scaled values, db.sampledload.avg showing the raw values, and db.sampledload.avg less than db.load.avg. For most use cases, you can query db.load.avg only."];periodInSeconds:Integer.toption[@ocaml.doc"The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as one second, or as long as one day (86400 seconds). Valid values are: 1 (one second) 60 (one minute) 300 (five minutes) 3600 (one hour) 86400 (twenty-four hours) If you don't specify PeriodInSeconds, then Performance Insights chooses a value for you, with a goal of returning roughly 100-200 data points in the response."];groupBy:DimensionGroup.t[@ocaml.doc"A specification for how to aggregate the data points from a query result. You must specify a valid dimension group. Performance Insights returns all dimensions within this group, unless you provide the names of specific dimensions within this group. You can also request that Performance Insights return a limited number of values for a dimension."];additionalMetrics:AdditionalMetricsList.toption[@ocaml.doc"Additional metrics for the top N dimension keys. If the specified dimension group in the GroupBy parameter is db.sql_tokenized, you can specify per-SQL metrics to get the values for the top N SQL digests. The response syntax is as follows: \"AdditionalMetrics\" : \\{ \"string\" : \"string\" \\}. The only supported statistic function is .avg."];partitionBy:DimensionGroup.toption[@ocaml.doc"For each dimension specified in GroupBy, specify a secondary dimension to further subdivide the partition keys in the response."];filter:MetricQueryFilterMap.toption[@ocaml.doc"One or more filters to apply in the request. Restrictions: Any number of filters by the same dimension, as specified in the GroupBy or Partition parameters. A single filter for any other dimension in this dimension group. The db.sql.db_id filter isn't available for RDS for SQL Server DB instances."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of items to return in the response. If more items exist than the specified MaxRecords value, a pagination token is included in the response so that the remaining results can be retrieved."];nextToken:NextToken.toption[@ocaml.doc"An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords."]}letcontext_="DescribeDimensionKeysRequest"letmake?periodInSeconds=fun?additionalMetrics->fun?partitionBy->fun?filter->fun?maxResults->fun?nextToken->fun~serviceType->fun~identifier->fun~startTime->fun~endTime->fun~metric->fun~groupBy->fun()->{periodInSeconds;additionalMetrics;partitionBy;filter;maxResults;nextToken;serviceType;identifier;startTime;endTime;metric;groupBy}letto_valuex=structure_to_value[("ServiceType",(Some(ServiceType.to_valuex.serviceType)));("Identifier",(Some(IdentifierString.to_valuex.identifier)));("StartTime",(Some(ISOTimestamp.to_valuex.startTime)));("EndTime",(Some(ISOTimestamp.to_valuex.endTime)));("Metric",(Some(RequestString.to_valuex.metric)));("PeriodInSeconds",(Option.mapx.periodInSeconds~f:Integer.to_value));("GroupBy",(Some(DimensionGroup.to_valuex.groupBy)));("AdditionalMetrics",(Option.mapx.additionalMetrics~f:AdditionalMetricsList.to_value));("PartitionBy",(Option.mapx.partitionBy~f:DimensionGroup.to_value));("Filter",(Option.mapx.filter~f:MetricQueryFilterMap.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletfilter=(Option.map~f:MetricQueryFilterMap.of_xml)(Xml.childxml_arg0"Filter")inletpartitionBy=(Option.map~f:DimensionGroup.of_xml)(Xml.childxml_arg0"PartitionBy")inletadditionalMetrics=(Option.map~f:AdditionalMetricsList.of_xml)(Xml.childxml_arg0"AdditionalMetrics")inletgroupBy=DimensionGroup.of_xml(Xml.child_exn~context:context_xml_arg0"GroupBy")inletperiodInSeconds=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"PeriodInSeconds")inletmetric=RequestString.of_xml(Xml.child_exn~context:context_xml_arg0"Metric")inletendTime=ISOTimestamp.of_xml(Xml.child_exn~context:context_xml_arg0"EndTime")inletstartTime=ISOTimestamp.of_xml(Xml.child_exn~context:context_xml_arg0"StartTime")inletidentifier=IdentifierString.of_xml(Xml.child_exn~context:context_xml_arg0"Identifier")inletserviceType=ServiceType.of_xml(Xml.child_exn~context:context_xml_arg0"ServiceType")inmake?nextToken?maxResults?filter?partitionBy?additionalMetrics~groupBy?periodInSeconds~metric~endTime~startTime~identifier~serviceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletfilter=field_mapjson__"Filter"MetricQueryFilterMap.of_jsoninletpartitionBy=field_mapjson__"PartitionBy"DimensionGroup.of_jsoninletadditionalMetrics=field_mapjson__"AdditionalMetrics"AdditionalMetricsList.of_jsoninletgroupBy=field_map_exnjson__"GroupBy"DimensionGroup.of_jsoninletperiodInSeconds=field_mapjson__"PeriodInSeconds"Integer.of_jsoninletmetric=field_map_exnjson__"Metric"RequestString.of_jsoninletendTime=field_map_exnjson__"EndTime"ISOTimestamp.of_jsoninletstartTime=field_map_exnjson__"StartTime"ISOTimestamp.of_jsoninletidentifier=field_map_exnjson__"Identifier"IdentifierString.of_jsoninletserviceType=field_map_exnjson__"ServiceType"ServiceType.of_jsoninmake?nextToken?maxResults?filter?partitionBy?additionalMetrics~groupBy?periodInSeconds~metric~endTime~startTime~identifier~serviceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"For a specific time period, retrieve the top N dimension keys for a metric. Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, only the first 500 bytes are returned."]moduleDimensionMap=structtypenonrect=(RequestString.t*RequestString.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((RequestString.of_stringchopped),(RequestString.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(RequestString.to_valuex)|>(funx->(RequestString.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:RequestString.of_string~of_json:RequestString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResponsePartitionKey=structtypenonrect={dimensions:DimensionMap.toption[@ocaml.doc"A dimension map that contains the dimensions for this partition."]}letmake?dimensions=fun()->{dimensions}letto_valuex=structure_to_value[("Dimensions",(Option.mapx.dimensions~f:DimensionMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdimensions=(Option.map~f:DimensionMap.of_xml)(Xml.childxml_arg0"Dimensions")inmake?dimensions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdimensions=field_mapjson__"Dimensions"DimensionMap.of_jsoninmake?dimensions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"If PartitionBy was specified in a DescribeDimensionKeys request, the dimensions are returned in an array. Each element in the array specifies one dimension."]moduleResponsePartitionKeyList=structtypenonrect=ResponsePartitionKey.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ResponsePartitionKey.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:ResponsePartitionKey.of_xml)letof_jsonj=list_of_json~kind:"ResponsePartitionKeyList"~of_json:ResponsePartitionKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMetricValuesList=structtypenonrect=Double.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Double.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:Double.of_xml)letof_jsonj=list_of_json~kind:"MetricValuesList"~of_json:Double.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDimensionKeyDescription=structtypenonrect={dimensions:DimensionMap.toption[@ocaml.doc"A map of name-value pairs for the dimensions in the group."];total:Double.toption[@ocaml.doc"The aggregated metric value for the dimensions, over the requested time range."];additionalMetrics:AdditionalMetricsMap.toption[@ocaml.doc"A map that contains the value for each additional metric."];partitions:MetricValuesList.toption[@ocaml.doc"If PartitionBy was specified, PartitionKeys contains the dimensions that were."]}letmake?dimensions=fun?total->fun?additionalMetrics->fun?partitions->fun()->{dimensions;total;additionalMetrics;partitions}letto_valuex=structure_to_value[("Dimensions",(Option.mapx.dimensions~f:DimensionMap.to_value));("Total",(Option.mapx.total~f:Double.to_value));("AdditionalMetrics",(Option.mapx.additionalMetrics~f:AdditionalMetricsMap.to_value));("Partitions",(Option.mapx.partitions~f:MetricValuesList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpartitions=(Option.map~f:MetricValuesList.of_xml)(Xml.childxml_arg0"Partitions")inletadditionalMetrics=(Option.map~f:AdditionalMetricsMap.of_xml)(Xml.childxml_arg0"AdditionalMetrics")inlettotal=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"Total")inletdimensions=(Option.map~f:DimensionMap.of_xml)(Xml.childxml_arg0"Dimensions")inmake?partitions?additionalMetrics?total?dimensions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpartitions=field_mapjson__"Partitions"MetricValuesList.of_jsoninletadditionalMetrics=field_mapjson__"AdditionalMetrics"AdditionalMetricsMap.of_jsoninlettotal=field_mapjson__"Total"Double.of_jsoninletdimensions=field_mapjson__"Dimensions"DimensionMap.of_jsoninmake?partitions?additionalMetrics?total?dimensions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that includes the requested dimension key values and aggregated metric values within a dimension group."]moduleDimensionKeyDescriptionList=structtypenonrect=DimensionKeyDescription.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DimensionKeyDescription.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:DimensionKeyDescription.of_xml)letof_jsonj=list_of_json~kind:"DimensionKeyDescriptionList"~of_json:DimensionKeyDescription.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDescribeDimensionKeysResponse=structtypenonrect={alignedStartTime:ISOTimestamp.toption[@ocaml.doc"The start time for the returned dimension keys, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedStartTime will be less than or equal to the value of the user-specified StartTime."];alignedEndTime:ISOTimestamp.toption[@ocaml.doc"The end time for the returned dimension keys, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedEndTime will be greater than or equal to the value of the user-specified Endtime."];partitionKeys:ResponsePartitionKeyList.toption[@ocaml.doc"If PartitionBy was present in the request, PartitionKeys contains the breakdown of dimension keys by the specified partitions."];keys:DimensionKeyDescriptionList.toption[@ocaml.doc"The dimension keys that were requested."];nextToken:NextToken.toption[@ocaml.doc"A pagination token that indicates the response didn\226\128\153t return all available records because MaxRecords was specified in the previous request. To get the remaining records, specify NextToken in a separate request with this value."]}typenonrecerror=[`InternalServiceErrorofInternalServiceError.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`Unknown_operation_errorof(string*stringoption)]letmake?alignedStartTime=fun?alignedEndTime->fun?partitionKeys->fun?keys->fun?nextToken->fun()->{alignedStartTime;alignedEndTime;partitionKeys;keys;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AlignedStartTime",(Option.mapx.alignedStartTime~f:ISOTimestamp.to_value));("AlignedEndTime",(Option.mapx.alignedEndTime~f:ISOTimestamp.to_value));("PartitionKeys",(Option.mapx.partitionKeys~f:ResponsePartitionKeyList.to_value));("Keys",(Option.mapx.keys~f:DimensionKeyDescriptionList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletkeys=(Option.map~f:DimensionKeyDescriptionList.of_xml)(Xml.childxml_arg0"Keys")inletpartitionKeys=(Option.map~f:ResponsePartitionKeyList.of_xml)(Xml.childxml_arg0"PartitionKeys")inletalignedEndTime=(Option.map~f:ISOTimestamp.of_xml)(Xml.childxml_arg0"AlignedEndTime")inletalignedStartTime=(Option.map~f:ISOTimestamp.of_xml)(Xml.childxml_arg0"AlignedStartTime")inmake?nextToken?keys?partitionKeys?alignedEndTime?alignedStartTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletkeys=field_mapjson__"Keys"DimensionKeyDescriptionList.of_jsoninletpartitionKeys=field_mapjson__"PartitionKeys"ResponsePartitionKeyList.of_jsoninletalignedEndTime=field_mapjson__"AlignedEndTime"ISOTimestamp.of_jsoninletalignedStartTime=field_mapjson__"AlignedStartTime"ISOTimestamp.of_jsoninmake?nextToken?keys?partitionKeys?alignedEndTime?alignedStartTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"For a specific time period, retrieve the top N dimension keys for a metric. Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, only the first 500 bytes are returned."]moduleDescription=structtypenonrect=stringletcontext_="Description"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:"Description"jletto_json=simple_to_jsonto_valueendmoduleDetailStatus=structtypenonrect=|AVAILABLE|PROCESSING|UNAVAILABLE|Non_static_idofstringletmakei=iletto_string=function|AVAILABLE->"AVAILABLE"|PROCESSING->"PROCESSING"|UNAVAILABLE->"UNAVAILABLE"|Non_static_ids->sletof_string=function|"AVAILABLE"->AVAILABLE|"PROCESSING"->PROCESSING|"UNAVAILABLE"->UNAVAILABLE|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 DetailStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DetailStatus"j)letto_json=simple_to_jsonto_valueendmoduleDimensionDetail=structtypenonrect={identifier:String_.toption[@ocaml.doc"The identifier of a dimension."]}letmake?identifier=fun()->{identifier}letto_valuex=structure_to_value[("Identifier",(Option.mapx.identifier~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Identifier")inmake?identifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentifier=field_mapjson__"Identifier"String_.of_jsoninmake?identifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The information about a dimension."]moduleDimensionDetailList=structtypenonrect=DimensionDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DimensionDetail.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:DimensionDetail.of_xml)letof_jsonj=list_of_json~kind:"DimensionDetailList"~of_json:DimensionDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDimensionGroupDetail=structtypenonrect={group:String_.toption[@ocaml.doc"The name of the dimension group."];dimensions:DimensionDetailList.toption[@ocaml.doc"The dimensions within a dimension group."]}letmake?group=fun?dimensions->fun()->{group;dimensions}letto_valuex=structure_to_value[("Group",(Option.mapx.group~f:String_.to_value));("Dimensions",(Option.mapx.dimensions~f:DimensionDetailList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdimensions=(Option.map~f:DimensionDetailList.of_xml)(Xml.childxml_arg0"Dimensions")inletgroup=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Group")inmake?dimensions?group()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdimensions=field_mapjson__"Dimensions"DimensionDetailList.of_jsoninletgroup=field_mapjson__"Group"String_.of_jsoninmake?dimensions?group()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about dimensions within a dimension group."]moduleDimensionGroupDetailList=structtypenonrect=DimensionGroupDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DimensionGroupDetail.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:DimensionGroupDetail.of_xml)letof_jsonj=list_of_json~kind:"DimensionGroupDetailList"~of_json:DimensionGroupDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDimensionKeyDetail=structtypenonrect={value:String_.toption[@ocaml.doc"The value of the dimension detail data. Depending on the return status, this value is either the full or truncated SQL query for the following dimensions: db.query.statement (Amazon DocumentDB) db.sql.statement (Amazon RDS and Aurora)"];dimension:String_.toption[@ocaml.doc"The full name of the dimension. The full name includes the group name and key name. The following values are valid: db.query.statement (Amazon DocumentDB) db.sql.statement (Amazon RDS and Aurora)"];status:DetailStatus.toption[@ocaml.doc"The status of the dimension detail data. Possible values include the following: AVAILABLE - The dimension detail data is ready to be retrieved. PROCESSING - The dimension detail data isn't ready to be retrieved because more processing time is required. If the requested detail data has the status PROCESSING, Performance Insights returns the truncated query. UNAVAILABLE - The dimension detail data could not be collected successfully."]}letmake?value=fun?dimension->fun?status->fun()->{value;dimension;status}letto_valuex=structure_to_value[("Value",(Option.mapx.value~f:String_.to_value));("Dimension",(Option.mapx.dimension~f:String_.to_value));("Status",(Option.mapx.status~f:DetailStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:DetailStatus.of_xml)(Xml.childxml_arg0"Status")inletdimension=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Dimension")inletvalue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Value")inmake?status?dimension?value()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"DetailStatus.of_jsoninletdimension=field_mapjson__"Dimension"String_.of_jsoninletvalue=field_mapjson__"Value"String_.of_jsoninmake?status?dimension?value()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that describes the details for a specified dimension."]moduleDimensionKeyDetailList=structtypenonrect=DimensionKeyDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DimensionKeyDetail.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:DimensionKeyDetail.of_xml)letof_jsonj=list_of_json~kind:"DimensionKeyDetailList"~of_json:DimensionKeyDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDimensionsMetricList=structtypenonrect=SanitizedString.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:5)>>=(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:SanitizedString.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:SanitizedString.of_xml)letof_jsonj=list_of_json~kind:"DimensionsMetricList"~of_json:SanitizedString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFeatureStatus=structtypenonrect=|ENABLED|DISABLED|UNSUPPORTED|ENABLED_PENDING_REBOOT|DISABLED_PENDING_REBOOT|UNKNOWN|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|UNSUPPORTED->"UNSUPPORTED"|ENABLED_PENDING_REBOOT->"ENABLED_PENDING_REBOOT"|DISABLED_PENDING_REBOOT->"DISABLED_PENDING_REBOOT"|UNKNOWN->"UNKNOWN"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|"UNSUPPORTED"->UNSUPPORTED|"ENABLED_PENDING_REBOOT"->ENABLED_PENDING_REBOOT|"DISABLED_PENDING_REBOOT"->DISABLED_PENDING_REBOOT|"UNKNOWN"->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 FeatureStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FeatureStatus"j)letto_json=simple_to_jsonto_valueendmoduleFeatureMetadata=structtypenonrect={status:FeatureStatus.toption[@ocaml.doc"The status of the feature on the DB instance. Possible values include the following: ENABLED - The feature is enabled on the instance. DISABLED - The feature is disabled on the instance. UNSUPPORTED - The feature isn't supported on the instance. ENABLED_PENDING_REBOOT - The feature is enabled on the instance but requires a reboot to take effect. DISABLED_PENDING_REBOOT - The feature is disabled on the instance but requires a reboot to take effect. UNKNOWN - The feature status couldn't be determined."]}letmake?status=fun()->{status}letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:FeatureStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:FeatureStatus.of_xml)(Xml.childxml_arg0"Status")inmake?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"FeatureStatus.of_jsoninmake?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The metadata for a feature. For example, the metadata might indicate that a feature is turned on or off on a specific DB instance."]moduleFeatureMetadataMap=structtypenonrect=(String_.t*FeatureMetadata.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types String FeatureMetadata"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(FeatureMetadata.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:String_.of_string~of_json:FeatureMetadata.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRequestedDimensionList=structtypenonrect=SanitizedString.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SanitizedString.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:SanitizedString.of_xml)letof_jsonj=list_of_json~kind:"RequestedDimensionList"~of_json:SanitizedString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleGetDimensionKeyDetailsRequest=structtypenonrect={serviceType:ServiceType.t[@ocaml.doc"The Amazon Web Services service for which Performance Insights returns data. The only valid value is RDS."];identifier:IdentifierString.t[@ocaml.doc"The ID for a data source from which to gather dimension data. This ID must be immutable and unique within an Amazon Web Services Region. When a DB instance is the data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X."];group:RequestString.t[@ocaml.doc"The name of the dimension group. Performance Insights searches the specified group for the dimension group ID. The following group name values are valid: db.execution_plan (Amazon RDS and Aurora only) db.lock_snapshot (Aurora only) db.query (Amazon DocumentDB only) db.sql (Amazon RDS and Aurora only)"];groupIdentifier:RequestString.t[@ocaml.doc"The ID of the dimension group from which to retrieve dimension details. For dimension group db.sql, the group ID is db.sql.id. The following group ID values are valid: db.execution_plan.id for dimension group db.execution_plan (Aurora and RDS only) db.sql.id for dimension group db.sql (Aurora and RDS only) db.query.id for dimension group db.query (DocumentDB only) For the dimension group db.lock_snapshot, the GroupIdentifier is the epoch timestamp when Performance Insights captured the snapshot, in seconds. You can retrieve this value with the GetResourceMetrics operation for a 1 second period."];requestedDimensions:RequestedDimensionList.toption[@ocaml.doc"A list of dimensions to retrieve the detail data for within the given dimension group. If you don't specify this parameter, Performance Insights returns all dimension data within the specified dimension group. Specify dimension names for the following dimension groups: db.execution_plan - Specify the dimension name db.execution_plan.raw_plan or the short dimension name raw_plan (Amazon RDS and Aurora only) db.lock_snapshot - Specify the dimension name db.lock_snapshot.lock_trees or the short dimension name lock_trees. (Aurora only) db.sql - Specify either the full dimension name db.sql.statement or the short dimension name statement (Aurora and RDS only). db.query - Specify either the full dimension name db.query.statement or the short dimension name statement (DocumentDB only)."]}letcontext_="GetDimensionKeyDetailsRequest"letmake?requestedDimensions=fun~serviceType->fun~identifier->fun~group->fun~groupIdentifier->fun()->{requestedDimensions;serviceType;identifier;group;groupIdentifier}letto_valuex=structure_to_value[("ServiceType",(Some(ServiceType.to_valuex.serviceType)));("Identifier",(Some(IdentifierString.to_valuex.identifier)));("Group",(Some(RequestString.to_valuex.group)));("GroupIdentifier",(Some(RequestString.to_valuex.groupIdentifier)));("RequestedDimensions",(Option.mapx.requestedDimensions~f:RequestedDimensionList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrequestedDimensions=(Option.map~f:RequestedDimensionList.of_xml)(Xml.childxml_arg0"RequestedDimensions")inletgroupIdentifier=RequestString.of_xml(Xml.child_exn~context:context_xml_arg0"GroupIdentifier")inletgroup=RequestString.of_xml(Xml.child_exn~context:context_xml_arg0"Group")inletidentifier=IdentifierString.of_xml(Xml.child_exn~context:context_xml_arg0"Identifier")inletserviceType=ServiceType.of_xml(Xml.child_exn~context:context_xml_arg0"ServiceType")inmake?requestedDimensions~groupIdentifier~group~identifier~serviceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrequestedDimensions=field_mapjson__"RequestedDimensions"RequestedDimensionList.of_jsoninletgroupIdentifier=field_map_exnjson__"GroupIdentifier"RequestString.of_jsoninletgroup=field_map_exnjson__"Group"RequestString.of_jsoninletidentifier=field_map_exnjson__"Identifier"IdentifierString.of_jsoninletserviceType=field_map_exnjson__"ServiceType"ServiceType.of_jsoninmake?requestedDimensions~groupIdentifier~group~identifier~serviceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Get the attributes of the specified dimension group for a DB instance or data source. For example, if you specify a SQL ID, GetDimensionKeyDetails retrieves the full text of the dimension db.sql.statement associated with this ID. This operation is useful because GetResourceMetrics and DescribeDimensionKeys don't support retrieval of large SQL statement text, lock snapshots, and execution plans."]moduleGetDimensionKeyDetailsResponse=structtypenonrect={dimensions:DimensionKeyDetailList.toption[@ocaml.doc"The details for the requested dimensions."]}typenonrecerror=[`InternalServiceErrorofInternalServiceError.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`Unknown_operation_errorof(string*stringoption)]letmake?dimensions=fun()->{dimensions}leterror_of_jsonnamejson=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Dimensions",(Option.mapx.dimensions~f:DimensionKeyDetailList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdimensions=(Option.map~f:DimensionKeyDetailList.of_xml)(Xml.childxml_arg0"Dimensions")inmake?dimensions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdimensions=field_mapjson__"Dimensions"DimensionKeyDetailList.of_jsoninmake?dimensions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Get the attributes of the specified dimension group for a DB instance or data source. For example, if you specify a SQL ID, GetDimensionKeyDetails retrieves the full text of the dimension db.sql.statement associated with this ID. This operation is useful because GetResourceMetrics and DescribeDimensionKeys don't support retrieval of large SQL statement text, lock snapshots, and execution plans."]moduleTextFormat=structtypenonrect=|PLAIN_TEXT|MARKDOWN|Non_static_idofstringletmakei=iletto_string=function|PLAIN_TEXT->"PLAIN_TEXT"|MARKDOWN->"MARKDOWN"|Non_static_ids->sletof_string=function|"PLAIN_TEXT"->PLAIN_TEXT|"MARKDOWN"->MARKDOWN|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 TextFormat"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TextFormat"j)letto_json=simple_to_jsonto_valueendmoduleGetPerformanceAnalysisReportRequest=structtypenonrect={serviceType:ServiceType.t[@ocaml.doc"The Amazon Web Services service for which Performance Insights will return metrics. Valid value is RDS."];identifier:IdentifierString.t[@ocaml.doc"An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. In the console, the identifier is shown as ResourceID. When you call DescribeDBInstances, the identifier is returned as DbiResourceId. To use a DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X."];analysisReportId:AnalysisReportId.t[@ocaml.doc"A unique identifier of the created analysis report. For example, report-12345678901234567"];textFormat:TextFormat.toption[@ocaml.doc"Indicates the text format in the report. The options are PLAIN_TEXT or MARKDOWN. The default value is plain text."];acceptLanguage:AcceptLanguage.toption[@ocaml.doc"The text language in the report. The default language is EN_US (English)."]}letcontext_="GetPerformanceAnalysisReportRequest"letmake?textFormat=fun?acceptLanguage->fun~serviceType->fun~identifier->fun~analysisReportId->fun()->{textFormat;acceptLanguage;serviceType;identifier;analysisReportId}letto_valuex=structure_to_value[("ServiceType",(Some(ServiceType.to_valuex.serviceType)));("Identifier",(Some(IdentifierString.to_valuex.identifier)));("AnalysisReportId",(Some(AnalysisReportId.to_valuex.analysisReportId)));("TextFormat",(Option.mapx.textFormat~f:TextFormat.to_value));("AcceptLanguage",(Option.mapx.acceptLanguage~f:AcceptLanguage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letacceptLanguage=(Option.map~f:AcceptLanguage.of_xml)(Xml.childxml_arg0"AcceptLanguage")inlettextFormat=(Option.map~f:TextFormat.of_xml)(Xml.childxml_arg0"TextFormat")inletanalysisReportId=AnalysisReportId.of_xml(Xml.child_exn~context:context_xml_arg0"AnalysisReportId")inletidentifier=IdentifierString.of_xml(Xml.child_exn~context:context_xml_arg0"Identifier")inletserviceType=ServiceType.of_xml(Xml.child_exn~context:context_xml_arg0"ServiceType")inmake?acceptLanguage?textFormat~analysisReportId~identifier~serviceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letacceptLanguage=field_mapjson__"AcceptLanguage"AcceptLanguage.of_jsoninlettextFormat=field_mapjson__"TextFormat"TextFormat.of_jsoninletanalysisReportId=field_map_exnjson__"AnalysisReportId"AnalysisReportId.of_jsoninletidentifier=field_map_exnjson__"Identifier"IdentifierString.of_jsoninletserviceType=field_map_exnjson__"ServiceType"ServiceType.of_jsoninmake?acceptLanguage?textFormat~analysisReportId~identifier~serviceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the report including the report ID, status, time details, and the insights with recommendations. The report status can be RUNNING, SUCCEEDED, or FAILED. The insights include the description and recommendation fields."]moduleGetPerformanceAnalysisReportResponse=structtypenonrect={analysisReport:AnalysisReport.toption[@ocaml.doc"The summary of the performance analysis report created for a time period."]}typenonrecerror=[`InternalServiceErrorofInternalServiceError.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`Unknown_operation_errorof(string*stringoption)]letmake?analysisReport=fun()->{analysisReport}leterror_of_jsonnamejson=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AnalysisReport",(Option.mapx.analysisReport~f:AnalysisReport.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letanalysisReport=(Option.map~f:AnalysisReport.of_xml)(Xml.childxml_arg0"AnalysisReport")inmake?analysisReport()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letanalysisReport=field_mapjson__"AnalysisReport"AnalysisReport.of_jsoninmake?analysisReport()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the report including the report ID, status, time details, and the insights with recommendations. The report status can be RUNNING, SUCCEEDED, or FAILED. The insights include the description and recommendation fields."]moduleGetResourceMetadataRequest=structtypenonrect={serviceType:ServiceType.t[@ocaml.doc"The Amazon Web Services service for which Performance Insights returns metrics."];identifier:IdentifierString.t[@ocaml.doc"An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. To use a DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X."]}letcontext_="GetResourceMetadataRequest"letmake~serviceType=fun~identifier->fun()->{serviceType;identifier}letto_valuex=structure_to_value[("ServiceType",(Some(ServiceType.to_valuex.serviceType)));("Identifier",(Some(IdentifierString.to_valuex.identifier)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentifier=IdentifierString.of_xml(Xml.child_exn~context:context_xml_arg0"Identifier")inletserviceType=ServiceType.of_xml(Xml.child_exn~context:context_xml_arg0"ServiceType")inmake~identifier~serviceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentifier=field_map_exnjson__"Identifier"IdentifierString.of_jsoninletserviceType=field_map_exnjson__"ServiceType"ServiceType.of_jsoninmake~identifier~serviceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieve the metadata for different features. For example, the metadata might indicate that a feature is turned on or off on a specific DB instance."]moduleGetResourceMetadataResponse=structtypenonrect={identifier:String_.toption[@ocaml.doc"An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. To use a DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X."];features:FeatureMetadataMap.toption[@ocaml.doc"The metadata for different features. For example, the metadata might indicate that a feature is turned on or off on a specific DB instance."]}typenonrecerror=[`InternalServiceErrorofInternalServiceError.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identifier=fun?features->fun()->{identifier;features}leterror_of_jsonnamejson=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Identifier",(Option.mapx.identifier~f:String_.to_value));("Features",(Option.mapx.features~f:FeatureMetadataMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfeatures=(Option.map~f:FeatureMetadataMap.of_xml)(Xml.childxml_arg0"Features")inletidentifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Identifier")inmake?features?identifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfeatures=field_mapjson__"Features"FeatureMetadataMap.of_jsoninletidentifier=field_mapjson__"Identifier"String_.of_jsoninmake?features?identifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieve the metadata for different features. For example, the metadata might indicate that a feature is turned on or off on a specific DB instance."]modulePeriodAlignment=structtypenonrect=|END_TIME|START_TIME|Non_static_idofstringletmakei=iletto_string=function|END_TIME->"END_TIME"|START_TIME->"START_TIME"|Non_static_ids->sletof_string=function|"END_TIME"->END_TIME|"START_TIME"->START_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 PeriodAlignment"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PeriodAlignment"j)letto_json=simple_to_jsonto_valueendmoduleMetricQuery=structtypenonrect={metric:SanitizedString.t[@ocaml.doc"The name of a Performance Insights metric to be measured. Valid values for Metric are: db.load.avg - A scaled representation of the number of active sessions for the database engine. db.sampledload.avg - The raw number of active sessions for the database engine. The counter metrics listed in Performance Insights operating system counters in the Amazon Aurora User Guide. The counter metrics listed in Performance Insights operating system counters in the Amazon RDS User Guide. If the number of active sessions is less than an internal Performance Insights threshold, db.load.avg and db.sampledload.avg are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with db.load.avg showing the scaled values, db.sampledload.avg showing the raw values, and db.sampledload.avg less than db.load.avg. For most use cases, you can query db.load.avg only."];groupBy:DimensionGroup.toption[@ocaml.doc"A specification for how to aggregate the data points from a query result. You must specify a valid dimension group. Performance Insights will return all of the dimensions within that group, unless you provide the names of specific dimensions within that group. You can also request that Performance Insights return a limited number of values for a dimension."];filter:MetricQueryFilterMap.toption[@ocaml.doc"One or more filters to apply in the request. Restrictions: Any number of filters by the same dimension, as specified in the GroupBy parameter. A single filter for any other dimension in this dimension group. The db.sql.db_id filter isn't available for RDS for SQL Server DB instances."]}letcontext_="MetricQuery"letmake?groupBy=fun?filter->fun~metric->fun()->{groupBy;filter;metric}letto_valuex=structure_to_value[("Metric",(Some(SanitizedString.to_valuex.metric)));("GroupBy",(Option.mapx.groupBy~f:DimensionGroup.to_value));("Filter",(Option.mapx.filter~f:MetricQueryFilterMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfilter=(Option.map~f:MetricQueryFilterMap.of_xml)(Xml.childxml_arg0"Filter")inletgroupBy=(Option.map~f:DimensionGroup.of_xml)(Xml.childxml_arg0"GroupBy")inletmetric=SanitizedString.of_xml(Xml.child_exn~context:context_xml_arg0"Metric")inmake?filter?groupBy~metric()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfilter=field_mapjson__"Filter"MetricQueryFilterMap.of_jsoninletgroupBy=field_mapjson__"GroupBy"DimensionGroup.of_jsoninletmetric=field_map_exnjson__"Metric"SanitizedString.of_jsoninmake?filter?groupBy~metric()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A single query to be processed. You must provide the metric to query and append an aggregate function to the metric. For example, to find the average for the metric db.load you must use db.load.avg. Valid values for aggregate functions include .avg, .min, .max, and .sum. If no other parameters are specified, Performance Insights returns all data points for the specified metric. Optionally, you can request that the data points be aggregated by dimension group (GroupBy), and return only those data points that match your criteria (Filter)."]moduleMetricQueryList=structtypenonrect=MetricQuery.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:15)>>=(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:MetricQuery.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:MetricQuery.of_xml)letof_jsonj=list_of_json~kind:"MetricQueryList"~of_json:MetricQuery.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleGetResourceMetricsRequest=structtypenonrect={serviceType:ServiceType.t[@ocaml.doc"The Amazon Web Services service for which Performance Insights returns metrics. Valid values are as follows: RDS DOCDB"];identifier:IdentifierString.t[@ocaml.doc"An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. In the console, the identifier is shown as ResourceID. When you call DescribeDBInstances, the identifier is returned as DbiResourceId. To use a DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X."];metricQueries:MetricQueryList.t[@ocaml.doc"An array of one or more queries to perform. Each query must specify a Performance Insights metric and specify an aggregate function, and you can provide filtering criteria. You must append the aggregate function to the metric. For example, to find the average for the metric db.load you must use db.load.avg. Valid values for aggregate functions include .avg, .min, .max, and .sum."];startTime:ISOTimestamp.t[@ocaml.doc"The date and time specifying the beginning of the requested time series query range. You can't specify a StartTime that is earlier than 7 days ago. By default, Performance Insights has 7 days of retention, but you can extend this range up to 2 years. The value specified is inclusive. Thus, the command returns data points equal to or greater than StartTime. The value for StartTime must be earlier than the value for EndTime."];endTime:ISOTimestamp.t[@ocaml.doc"The date and time specifying the end of the requested time series query range. The value specified is exclusive. Thus, the command returns data points less than (but not equal to) EndTime. The value for EndTime must be later than the value for StartTime."];periodInSeconds:Integer.toption[@ocaml.doc"The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as one second, or as long as one day (86400 seconds). Valid values are: 1 (one second) 60 (one minute) 300 (five minutes) 3600 (one hour) 86400 (twenty-four hours) If you don't specify PeriodInSeconds, then Performance Insights will choose a value for you, with a goal of returning roughly 100-200 data points in the response."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of items to return in the response."];nextToken:NextToken.toption[@ocaml.doc"An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords."];periodAlignment:PeriodAlignment.toption[@ocaml.doc"The returned timestamp which is the start or end time of the time periods. The default value is END_TIME."]}letcontext_="GetResourceMetricsRequest"letmake?periodInSeconds=fun?maxResults->fun?nextToken->fun?periodAlignment->fun~serviceType->fun~identifier->fun~metricQueries->fun~startTime->fun~endTime->fun()->{periodInSeconds;maxResults;nextToken;periodAlignment;serviceType;identifier;metricQueries;startTime;endTime}letto_valuex=structure_to_value[("ServiceType",(Some(ServiceType.to_valuex.serviceType)));("Identifier",(Some(IdentifierString.to_valuex.identifier)));("MetricQueries",(Some(MetricQueryList.to_valuex.metricQueries)));("StartTime",(Some(ISOTimestamp.to_valuex.startTime)));("EndTime",(Some(ISOTimestamp.to_valuex.endTime)));("PeriodInSeconds",(Option.mapx.periodInSeconds~f:Integer.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("PeriodAlignment",(Option.mapx.periodAlignment~f:PeriodAlignment.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letperiodAlignment=(Option.map~f:PeriodAlignment.of_xml)(Xml.childxml_arg0"PeriodAlignment")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletperiodInSeconds=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"PeriodInSeconds")inletendTime=ISOTimestamp.of_xml(Xml.child_exn~context:context_xml_arg0"EndTime")inletstartTime=ISOTimestamp.of_xml(Xml.child_exn~context:context_xml_arg0"StartTime")inletmetricQueries=MetricQueryList.of_xml(Xml.child_exn~context:context_xml_arg0"MetricQueries")inletidentifier=IdentifierString.of_xml(Xml.child_exn~context:context_xml_arg0"Identifier")inletserviceType=ServiceType.of_xml(Xml.child_exn~context:context_xml_arg0"ServiceType")inmake?periodAlignment?nextToken?maxResults?periodInSeconds~endTime~startTime~metricQueries~identifier~serviceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letperiodAlignment=field_mapjson__"PeriodAlignment"PeriodAlignment.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletperiodInSeconds=field_mapjson__"PeriodInSeconds"Integer.of_jsoninletendTime=field_map_exnjson__"EndTime"ISOTimestamp.of_jsoninletstartTime=field_map_exnjson__"StartTime"ISOTimestamp.of_jsoninletmetricQueries=field_map_exnjson__"MetricQueries"MetricQueryList.of_jsoninletidentifier=field_map_exnjson__"Identifier"IdentifierString.of_jsoninletserviceType=field_map_exnjson__"ServiceType"ServiceType.of_jsoninmake?periodAlignment?nextToken?maxResults?periodInSeconds~endTime~startTime~metricQueries~identifier~serviceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieve Performance Insights metrics for a set of data sources over a time period. You can provide specific dimension groups and dimensions, and provide filtering criteria for each group. You must specify an aggregate function for each metric. Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, only the first 500 bytes are returned."]moduleResponseResourceMetricKey=structtypenonrect={metric:String_.toption[@ocaml.doc"The name of a Performance Insights metric to be measured. Valid values for Metric are: db.load.avg - A scaled representation of the number of active sessions for the database engine. db.sampledload.avg - The raw number of active sessions for the database engine. The counter metrics listed in Performance Insights operating system counters in the Amazon Aurora User Guide. The counter metrics listed in Performance Insights operating system counters in the Amazon RDS User Guide. If the number of active sessions is less than an internal Performance Insights threshold, db.load.avg and db.sampledload.avg are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with db.load.avg showing the scaled values, db.sampledload.avg showing the raw values, and db.sampledload.avg less than db.load.avg. For most use cases, you can query db.load.avg only."];dimensions:DimensionMap.toption[@ocaml.doc"The valid dimensions for the metric."]}letmake?metric=fun?dimensions->fun()->{metric;dimensions}letto_valuex=structure_to_value[("Metric",(Option.mapx.metric~f:String_.to_value));("Dimensions",(Option.mapx.dimensions~f:DimensionMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdimensions=(Option.map~f:DimensionMap.of_xml)(Xml.childxml_arg0"Dimensions")inletmetric=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Metric")inmake?dimensions?metric()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdimensions=field_mapjson__"Dimensions"DimensionMap.of_jsoninletmetric=field_mapjson__"Metric"String_.of_jsoninmake?dimensions?metric()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object describing a Performance Insights metric and one or more dimensions for that metric."]moduleMetricKeyDataPoints=structtypenonrect={key:ResponseResourceMetricKey.toption[@ocaml.doc"The dimensions to which the data points apply."];dataPoints:DataPointsList.toption[@ocaml.doc"An array of timestamp-value pairs, representing measurements over a period of time."]}letmake?key=fun?dataPoints->fun()->{key;dataPoints}letto_valuex=structure_to_value[("Key",(Option.mapx.key~f:ResponseResourceMetricKey.to_value));("DataPoints",(Option.mapx.dataPoints~f:DataPointsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataPoints=(Option.map~f:DataPointsList.of_xml)(Xml.childxml_arg0"DataPoints")inletkey=(Option.map~f:ResponseResourceMetricKey.of_xml)(Xml.childxml_arg0"Key")inmake?dataPoints?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataPoints=field_mapjson__"DataPoints"DataPointsList.of_jsoninletkey=field_mapjson__"Key"ResponseResourceMetricKey.of_jsoninmake?dataPoints?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A time-ordered series of data points, corresponding to a dimension of a Performance Insights metric."]moduleMetricKeyDataPointsList=structtypenonrect=MetricKeyDataPoints.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MetricKeyDataPoints.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:MetricKeyDataPoints.of_xml)letof_jsonj=list_of_json~kind:"MetricKeyDataPointsList"~of_json:MetricKeyDataPoints.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleGetResourceMetricsResponse=structtypenonrect={alignedStartTime:ISOTimestamp.toption[@ocaml.doc"The start time for the returned metrics, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedStartTime will be less than or equal to the value of the user-specified StartTime."];alignedEndTime:ISOTimestamp.toption[@ocaml.doc"The end time for the returned metrics, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedEndTime will be greater than or equal to the value of the user-specified Endtime."];identifier:String_.toption[@ocaml.doc"An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. In the console, the identifier is shown as ResourceID. When you call DescribeDBInstances, the identifier is returned as DbiResourceId."];metricList:MetricKeyDataPointsList.toption[@ocaml.doc"An array of metric results, where each array element contains all of the data points for a particular dimension."];nextToken:NextToken.toption[@ocaml.doc"An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords."]}typenonrecerror=[`InternalServiceErrorofInternalServiceError.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`Unknown_operation_errorof(string*stringoption)]letmake?alignedStartTime=fun?alignedEndTime->fun?identifier->fun?metricList->fun?nextToken->fun()->{alignedStartTime;alignedEndTime;identifier;metricList;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AlignedStartTime",(Option.mapx.alignedStartTime~f:ISOTimestamp.to_value));("AlignedEndTime",(Option.mapx.alignedEndTime~f:ISOTimestamp.to_value));("Identifier",(Option.mapx.identifier~f:String_.to_value));("MetricList",(Option.mapx.metricList~f:MetricKeyDataPointsList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmetricList=(Option.map~f:MetricKeyDataPointsList.of_xml)(Xml.childxml_arg0"MetricList")inletidentifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Identifier")inletalignedEndTime=(Option.map~f:ISOTimestamp.of_xml)(Xml.childxml_arg0"AlignedEndTime")inletalignedStartTime=(Option.map~f:ISOTimestamp.of_xml)(Xml.childxml_arg0"AlignedStartTime")inmake?nextToken?metricList?identifier?alignedEndTime?alignedStartTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmetricList=field_mapjson__"MetricList"MetricKeyDataPointsList.of_jsoninletidentifier=field_mapjson__"Identifier"String_.of_jsoninletalignedEndTime=field_mapjson__"AlignedEndTime"ISOTimestamp.of_jsoninletalignedStartTime=field_mapjson__"AlignedStartTime"ISOTimestamp.of_jsoninmake?nextToken?metricList?identifier?alignedEndTime?alignedStartTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieve Performance Insights metrics for a set of data sources over a time period. You can provide specific dimension groups and dimensions, and provide filtering criteria for each group. You must specify an aggregate function for each metric. Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, only the first 500 bytes are returned."]moduleListAvailableResourceDimensionsRequest=structtypenonrect={serviceType:ServiceType.t[@ocaml.doc"The Amazon Web Services service for which Performance Insights returns metrics."];identifier:IdentifierString.t[@ocaml.doc"An immutable identifier for a data source that is unique within an Amazon Web Services Region. Performance Insights gathers metrics from this data source. To use an Amazon RDS DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VWZ."];metrics:DimensionsMetricList.t[@ocaml.doc"The types of metrics for which to retrieve dimensions. Valid values include db.load."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of items to return in the response. If more items exist than the specified MaxRecords value, a pagination token is included in the response so that the remaining results can be retrieved."];nextToken:NextToken.toption[@ocaml.doc"An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords."];authorizedActions:AuthorizedActionsList.toption[@ocaml.doc"The actions to discover the dimensions you are authorized to access. If you specify multiple actions, then the response will contain the dimensions common for all the actions. When you don't specify this request parameter or provide an empty list, the response contains all the available dimensions for the target database engine whether or not you are authorized to access them."]}letcontext_="ListAvailableResourceDimensionsRequest"letmake?maxResults=fun?nextToken->fun?authorizedActions->fun~serviceType->fun~identifier->fun~metrics->fun()->{maxResults;nextToken;authorizedActions;serviceType;identifier;metrics}letto_valuex=structure_to_value[("ServiceType",(Some(ServiceType.to_valuex.serviceType)));("Identifier",(Some(IdentifierString.to_valuex.identifier)));("Metrics",(Some(DimensionsMetricList.to_valuex.metrics)));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("AuthorizedActions",(Option.mapx.authorizedActions~f:AuthorizedActionsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthorizedActions=(Option.map~f:AuthorizedActionsList.of_xml)(Xml.childxml_arg0"AuthorizedActions")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletmetrics=DimensionsMetricList.of_xml(Xml.child_exn~context:context_xml_arg0"Metrics")inletidentifier=IdentifierString.of_xml(Xml.child_exn~context:context_xml_arg0"Identifier")inletserviceType=ServiceType.of_xml(Xml.child_exn~context:context_xml_arg0"ServiceType")inmake?authorizedActions?nextToken?maxResults~metrics~identifier~serviceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthorizedActions=field_mapjson__"AuthorizedActions"AuthorizedActionsList.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletmetrics=field_map_exnjson__"Metrics"DimensionsMetricList.of_jsoninletidentifier=field_map_exnjson__"Identifier"IdentifierString.of_jsoninletserviceType=field_map_exnjson__"ServiceType"ServiceType.of_jsoninmake?authorizedActions?nextToken?maxResults~metrics~identifier~serviceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieve the dimensions that can be queried for each specified metric type on a specified DB instance."]moduleMetricDimensionGroups=structtypenonrect={metric:String_.toption[@ocaml.doc"The metric type to which the dimension information belongs."];groups:DimensionGroupDetailList.toption[@ocaml.doc"The available dimension groups for a metric type."]}letmake?metric=fun?groups->fun()->{metric;groups}letto_valuex=structure_to_value[("Metric",(Option.mapx.metric~f:String_.to_value));("Groups",(Option.mapx.groups~f:DimensionGroupDetailList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgroups=(Option.map~f:DimensionGroupDetailList.of_xml)(Xml.childxml_arg0"Groups")inletmetric=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Metric")inmake?groups?metric()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgroups=field_mapjson__"Groups"DimensionGroupDetailList.of_jsoninletmetric=field_mapjson__"Metric"String_.of_jsoninmake?groups?metric()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The available dimension information for a metric type."]moduleMetricDimensionsList=structtypenonrect=MetricDimensionGroups.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MetricDimensionGroups.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:MetricDimensionGroups.of_xml)letof_jsonj=list_of_json~kind:"MetricDimensionsList"~of_json:MetricDimensionGroups.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListAvailableResourceDimensionsResponse=structtypenonrect={metricDimensions:MetricDimensionsList.toption[@ocaml.doc"The dimension information returned for requested metric types."];nextToken:NextToken.toption[@ocaml.doc"An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords."]}typenonrecerror=[`InternalServiceErrorofInternalServiceError.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`Unknown_operation_errorof(string*stringoption)]letmake?metricDimensions=fun?nextToken->fun()->{metricDimensions;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("MetricDimensions",(Option.mapx.metricDimensions~f:MetricDimensionsList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmetricDimensions=(Option.map~f:MetricDimensionsList.of_xml)(Xml.childxml_arg0"MetricDimensions")inmake?nextToken?metricDimensions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmetricDimensions=field_mapjson__"MetricDimensions"MetricDimensionsList.of_jsoninmake?nextToken?metricDimensions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieve the dimensions that can be queried for each specified metric type on a specified DB instance."]moduleMetricTypeList=structtypenonrect=SanitizedString.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SanitizedString.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:SanitizedString.of_xml)letof_jsonj=list_of_json~kind:"MetricTypeList"~of_json:SanitizedString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListAvailableResourceMetricsRequest=structtypenonrect={serviceType:ServiceType.t[@ocaml.doc"The Amazon Web Services service for which Performance Insights returns metrics."];identifier:IdentifierString.t[@ocaml.doc"An immutable identifier for a data source that is unique within an Amazon Web Services Region. Performance Insights gathers metrics from this data source. To use an Amazon RDS DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VWZ."];metricTypes:MetricTypeList.t[@ocaml.doc"The types of metrics to return in the response. Valid values in the array include the following: os (OS counter metrics) - All engines db (DB load metrics) - All engines except for Amazon DocumentDB db.sql.stats (per-SQL metrics) - All engines except for Amazon DocumentDB db.sql_tokenized.stats (per-SQL digest metrics) - All engines except for Amazon DocumentDB"];nextToken:NextToken.toption[@ocaml.doc"An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of items to return. If the MaxRecords value is less than the number of existing items, the response includes a pagination token."]}letcontext_="ListAvailableResourceMetricsRequest"letmake?nextToken=fun?maxResults->fun~serviceType->fun~identifier->fun~metricTypes->fun()->{nextToken;maxResults;serviceType;identifier;metricTypes}letto_valuex=structure_to_value[("ServiceType",(Some(ServiceType.to_valuex.serviceType)));("Identifier",(Some(IdentifierString.to_valuex.identifier)));("MetricTypes",(Some(MetricTypeList.to_valuex.metricTypes)));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmetricTypes=MetricTypeList.of_xml(Xml.child_exn~context:context_xml_arg0"MetricTypes")inletidentifier=IdentifierString.of_xml(Xml.child_exn~context:context_xml_arg0"Identifier")inletserviceType=ServiceType.of_xml(Xml.child_exn~context:context_xml_arg0"ServiceType")inmake?maxResults?nextToken~metricTypes~identifier~serviceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmetricTypes=field_map_exnjson__"MetricTypes"MetricTypeList.of_jsoninletidentifier=field_map_exnjson__"Identifier"IdentifierString.of_jsoninletserviceType=field_map_exnjson__"ServiceType"ServiceType.of_jsoninmake?maxResults?nextToken~metricTypes~identifier~serviceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieve metrics of the specified types that can be queried for a specified DB instance."]moduleResponseResourceMetric=structtypenonrect={metric:String_.toption[@ocaml.doc"The full name of the metric."];description:Description.toption[@ocaml.doc"The description of the metric."];unit:String_.toption[@ocaml.doc"The unit of the metric."]}letmake?metric=fun?description->fun?unit->fun()->{metric;description;unit}letto_valuex=structure_to_value[("Metric",(Option.mapx.metric~f:String_.to_value));("Description",(Option.mapx.description~f:Description.to_value));("Unit",(Option.mapx.unit~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunit=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Unit")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"Description")inletmetric=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Metric")inmake?unit?description?metric()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunit=field_mapjson__"Unit"String_.of_jsoninletdescription=field_mapjson__"Description"Description.of_jsoninletmetric=field_mapjson__"Metric"String_.of_jsoninmake?unit?description?metric()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that contains the full name, description, and unit of a metric."]moduleResponseResourceMetricList=structtypenonrect=ResponseResourceMetric.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ResponseResourceMetric.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:ResponseResourceMetric.of_xml)letof_jsonj=list_of_json~kind:"ResponseResourceMetricList"~of_json:ResponseResourceMetric.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListAvailableResourceMetricsResponse=structtypenonrect={metrics:ResponseResourceMetricList.toption[@ocaml.doc"An array of metrics available to query. Each array element contains the full name, description, and unit of the metric."];nextToken:NextToken.toption[@ocaml.doc"A pagination token that indicates the response didn\226\128\153t return all available records because MaxRecords was specified in the previous request. To get the remaining records, specify NextToken in a separate request with this value."]}typenonrecerror=[`InternalServiceErrorofInternalServiceError.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`Unknown_operation_errorof(string*stringoption)]letmake?metrics=fun?nextToken->fun()->{metrics;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Metrics",(Option.mapx.metrics~f:ResponseResourceMetricList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmetrics=(Option.map~f:ResponseResourceMetricList.of_xml)(Xml.childxml_arg0"Metrics")inmake?nextToken?metrics()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmetrics=field_mapjson__"Metrics"ResponseResourceMetricList.of_jsoninmake?nextToken?metrics()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieve metrics of the specified types that can be queried for a specified DB instance."]moduleListPerformanceAnalysisReportsRequest=structtypenonrect={serviceType:ServiceType.t[@ocaml.doc"The Amazon Web Services service for which Performance Insights returns metrics. Valid value is RDS."];identifier:IdentifierString.t[@ocaml.doc"An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. In the console, the identifier is shown as ResourceID. When you call DescribeDBInstances, the identifier is returned as DbiResourceId. To use a DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X."];nextToken:NextToken.toption[@ocaml.doc"An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxResults."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of items to return in the response. If more items exist than the specified MaxResults value, a pagination token is included in the response so that the remaining results can be retrieved."];listTags:Boolean.toption[@ocaml.doc"Specifies whether or not to include the list of tags in the response."]}letcontext_="ListPerformanceAnalysisReportsRequest"letmake?nextToken=fun?maxResults->fun?listTags->fun~serviceType->fun~identifier->fun()->{nextToken;maxResults;listTags;serviceType;identifier}letto_valuex=structure_to_value[("ServiceType",(Some(ServiceType.to_valuex.serviceType)));("Identifier",(Some(IdentifierString.to_valuex.identifier)));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("ListTags",(Option.mapx.listTags~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlistTags=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"ListTags")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletidentifier=IdentifierString.of_xml(Xml.child_exn~context:context_xml_arg0"Identifier")inletserviceType=ServiceType.of_xml(Xml.child_exn~context:context_xml_arg0"ServiceType")inmake?listTags?maxResults?nextToken~identifier~serviceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlistTags=field_mapjson__"ListTags"Boolean.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletidentifier=field_map_exnjson__"Identifier"IdentifierString.of_jsoninletserviceType=field_map_exnjson__"ServiceType"ServiceType.of_jsoninmake?listTags?maxResults?nextToken~identifier~serviceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all the analysis reports created for the DB instance. The reports are sorted based on the start time of each report."]moduleListPerformanceAnalysisReportsResponse=structtypenonrect={analysisReports:AnalysisReportSummaryList.toption[@ocaml.doc"List of reports including the report identifier, start and end time, creation time, and status."];nextToken:NextToken.toption[@ocaml.doc"An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxResults."]}typenonrecerror=[`InternalServiceErrorofInternalServiceError.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`Unknown_operation_errorof(string*stringoption)]letmake?analysisReports=fun?nextToken->fun()->{analysisReports;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AnalysisReports",(Option.mapx.analysisReports~f:AnalysisReportSummaryList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletanalysisReports=(Option.map~f:AnalysisReportSummaryList.of_xml)(Xml.childxml_arg0"AnalysisReports")inmake?nextToken?analysisReports()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletanalysisReports=field_mapjson__"AnalysisReports"AnalysisReportSummaryList.of_jsoninmake?nextToken?analysisReports()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all the analysis reports created for the DB instance. The reports are sorted based on the start time of each report."]moduleListTagsForResourceRequest=structtypenonrect={serviceType:ServiceType.t[@ocaml.doc"List the tags for the Amazon Web Services service for which Performance Insights returns metrics. Valid value is RDS."];resourceARN:AmazonResourceName.t[@ocaml.doc"Lists all the tags for the Amazon RDS Performance Insights resource. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN)."]}letcontext_="ListTagsForResourceRequest"letmake~serviceType=fun~resourceARN->fun()->{serviceType;resourceARN}letto_valuex=structure_to_value[("ServiceType",(Some(ServiceType.to_valuex.serviceType)));("ResourceARN",(Some(AmazonResourceName.to_valuex.resourceARN)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceARN=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inletserviceType=ServiceType.of_xml(Xml.child_exn~context:context_xml_arg0"ServiceType")inmake~resourceARN~serviceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceARN=field_map_exnjson__"ResourceARN"AmazonResourceName.of_jsoninletserviceType=field_map_exnjson__"ServiceType"ServiceType.of_jsoninmake~resourceARN~serviceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves all the metadata tags associated with Amazon RDS Performance Insights resource."]moduleListTagsForResourceResponse=structtypenonrect={tags:TagList.toption[@ocaml.doc"The metadata assigned to an Amazon RDS resource consisting of a key-value pair."]}typenonrecerror=[`InternalServiceErrorofInternalServiceError.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.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:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves all the metadata tags associated with Amazon RDS Performance Insights resource."]moduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f: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_valuevendmoduleTagResourceRequest=structtypenonrect={serviceType:ServiceType.t[@ocaml.doc"The Amazon Web Services service for which Performance Insights returns metrics. Valid value is RDS."];resourceARN:AmazonResourceName.t[@ocaml.doc"The Amazon RDS Performance Insights resource that the tags are added to. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN)."];tags:TagList.t[@ocaml.doc"The metadata assigned to an Amazon RDS resource consisting of a key-value pair."]}letcontext_="TagResourceRequest"letmake~serviceType=fun~resourceARN->fun~tags->fun()->{serviceType;resourceARN;tags}letto_valuex=structure_to_value[("ServiceType",(Some(ServiceType.to_valuex.serviceType)));("ResourceARN",(Some(AmazonResourceName.to_valuex.resourceARN)));("Tags",(Some(TagList.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagList.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inletresourceARN=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inletserviceType=ServiceType.of_xml(Xml.child_exn~context:context_xml_arg0"ServiceType")inmake~tags~resourceARN~serviceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"TagList.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"AmazonResourceName.of_jsoninletserviceType=field_map_exnjson__"ServiceType"ServiceType.of_jsoninmake~tags~resourceARN~serviceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds metadata tags to the Amazon RDS Performance Insights resource."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`InternalServiceErrorofInternalServiceError.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds metadata tags to the Amazon RDS Performance Insights resource."]moduleUntagResourceRequest=structtypenonrect={serviceType:ServiceType.t[@ocaml.doc"List the tags for the Amazon Web Services service for which Performance Insights returns metrics. Valid value is RDS."];resourceARN:AmazonResourceName.t[@ocaml.doc"The Amazon RDS Performance Insights resource that the tags are added to. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN)."];tagKeys:TagKeyList.t[@ocaml.doc"The metadata assigned to an Amazon RDS Performance Insights resource consisting of a key-value pair."]}letcontext_="UntagResourceRequest"letmake~serviceType=fun~resourceARN->fun~tagKeys->fun()->{serviceType;resourceARN;tagKeys}letto_valuex=structure_to_value[("ServiceType",(Some(ServiceType.to_valuex.serviceType)));("ResourceARN",(Some(AmazonResourceName.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=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inletserviceType=ServiceType.of_xml(Xml.child_exn~context:context_xml_arg0"ServiceType")inmake~tagKeys~resourceARN~serviceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"TagKeys"TagKeyList.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"AmazonResourceName.of_jsoninletserviceType=field_map_exnjson__"ServiceType"ServiceType.of_jsoninmake~tagKeys~resourceARN~serviceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the metadata tags from the Amazon RDS Performance Insights resource."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`InternalServiceErrorofInternalServiceError.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the metadata tags from the Amazon RDS Performance Insights resource."]