123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039(* 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.qappsletapiVersion="2023-11-27"letendpointPrefix="data.qapps"letserviceFullName="QApps"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letsimple_to_jsonto_valuex=Botodata.Json.value_to_json_scalar(to_valuex)letcomposed_to_jsonto_valuex=Botodata.Json.value_to_json(to_valuex)letto_queryto_valuex=Client.Query.of_value(to_valuex)letstructure_to_value_auxst~f=letfilter=function|(k,Somev)->Some(k,v)|_->Noneinletpairkv=(k,v)inletdefer_value(k,dv)=pairkdvin((List.filter_mapst~f:filter)|>(List.map~f:defer_value))|>(funx->`Structure(fx))letstructure_to_value=structure_to_value_aux~f:Fn.idletstructure_to_wrapped_value~wrapper~response=structure_to_value_aux~f:(funx->[(wrapper,(`Structurex));(response,(`Structure[]))])moduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleAccessDeniedException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The client is not authorized to perform the requested operation."]moduleActionIdentifier=structtypenonrect=stringletcontext_="ActionIdentifier"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(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:"ActionIdentifier"jletto_json=simple_to_jsonto_valueendmoduleAmazonResourceName=structtypenonrect=stringletcontext_="AmazonResourceName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1011)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AmazonResourceName"jletto_json=simple_to_jsonto_valueendmoduleAppArn=structtypenonrect=stringletcontext_="AppArn"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:"AppArn"jletto_json=simple_to_jsonto_valueendmoduleUUID=structtypenonrect=stringletcontext_="UUID"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[\\da-f]{8}-[\\da-f]{4}-[45][\\da-f]{3}-[89ABab][\\da-f]{3}-[\\da-f]{12}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"UUID"jletto_json=simple_to_jsonto_valueendmoduleTitle=structtypenonrect=stringletcontext_="Title"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:100)>>=(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:"Title"jletto_json=simple_to_jsonto_valueendmodulePlaceholder=structtypenonrect=stringletcontext_="Placeholder"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Placeholder"jletto_json=simple_to_jsonto_valueendmoduleDependencyList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"DependencyList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDefault=structtypenonrect=stringletcontext_="Default"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Default"jletto_json=simple_to_jsonto_valueendmoduleCardType=structtypenonrect=|Text_input|Q_query|File_upload|Q_plugin|Form_input|Non_static_idofstringletmakei=iletto_string=function|Text_input->"text-input"|Q_query->"q-query"|File_upload->"file-upload"|Q_plugin->"q-plugin"|Form_input->"form-input"|Non_static_ids->sletof_string=function|"text-input"->Text_input|"q-query"->Q_query|"file-upload"->File_upload|"q-plugin"->Q_plugin|"form-input"->Form_input|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 CardType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CardType"j)letto_json=simple_to_jsonto_valueendmoduleTextInputCard=structtypenonrect={id:UUID.toption[@ocaml.doc"The unique identifier of the text input card."];title:Title.toption[@ocaml.doc"The title or label of the text input card."];dependencies:DependencyList.toption[@ocaml.doc"Any dependencies or requirements for the text input card."];type_:CardType.toption[@ocaml.doc"The type of the card."];placeholder:Placeholder.toption[@ocaml.doc"The placeholder text to display in the text input field."];defaultValue:Default.toption[@ocaml.doc"The default value to pre-populate in the text input field."]}letmake?id=fun?title->fun?dependencies->fun?type_->fun?placeholder->fun?defaultValue->fun()->{id;title;dependencies;type_;placeholder;defaultValue}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:UUID.to_value));("title",(Option.mapx.title~f:Title.to_value));("dependencies",(Option.mapx.dependencies~f:DependencyList.to_value));("type",(Option.mapx.type_~f:CardType.to_value));("placeholder",(Option.mapx.placeholder~f:Placeholder.to_value));("defaultValue",(Option.mapx.defaultValue~f:Default.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdefaultValue=(Option.map~f:Default.of_xml)(Xml.childxml_arg0"defaultValue")inletplaceholder=(Option.map~f:Placeholder.of_xml)(Xml.childxml_arg0"placeholder")inlettype_=(Option.map~f:CardType.of_xml)(Xml.childxml_arg0"type")inletdependencies=(Option.map~f:DependencyList.of_xml)(Xml.childxml_arg0"dependencies")inlettitle=(Option.map~f:Title.of_xml)(Xml.childxml_arg0"title")inletid=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"id")inmake?defaultValue?placeholder?type_?dependencies?title?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdefaultValue=field_mapjson__"defaultValue"Default.of_jsoninletplaceholder=field_mapjson__"placeholder"Placeholder.of_jsoninlettype_=field_mapjson__"type"CardType.of_jsoninletdependencies=field_mapjson__"dependencies"DependencyList.of_jsoninlettitle=field_mapjson__"title"Title.of_jsoninletid=field_mapjson__"id"UUID.of_jsoninmake?defaultValue?placeholder?type_?dependencies?title?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A card in an Amazon Q App that allows the user to input text."]modulePrompt=structtypenonrect=stringletcontext_="Prompt"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:50000)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Prompt"jletto_json=simple_to_jsonto_valueendmoduleMemoryReferenceList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"MemoryReferenceList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCardOutputSource=structtypenonrect=|Approved_sources|Llm|Non_static_idofstringletmakei=iletto_string=function|Approved_sources->"approved-sources"|Llm->"llm"|Non_static_ids->sletof_string=function|"approved-sources"->Approved_sources|"llm"->Llm|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 CardOutputSource"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CardOutputSource"j)letto_json=simple_to_jsonto_valueendmoduleTimestamp=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleLong=structtypenonrect=Int64.tletmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleDocumentAttributeValueStringValueString=structtypenonrect=stringletcontext_="DocumentAttributeValueStringValueString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DocumentAttributeValueStringValueString"jletto_json=simple_to_jsonto_valueendmodulePlatoString=structtypenonrect=stringletcontext_="PlatoString"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:"PlatoString"jletto_json=simple_to_jsonto_valueendmoduleDocumentAttributeStringListValue=structtypenonrect=PlatoString.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PlatoString.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:PlatoString.of_xml)letof_jsonj=list_of_json~kind:"DocumentAttributeStringListValue"~of_json:PlatoString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDocumentAttributeValue=structtypenonrect={stringValue:DocumentAttributeValueStringValueString.toption[@ocaml.doc"A string."];stringListValue:DocumentAttributeStringListValue.toption[@ocaml.doc"A list of strings."];longValue:Long.toption[@ocaml.doc"A long integer value."];dateValue:Timestamp.toption[@ocaml.doc"A date expressed as an ISO 8601 string. It's important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time."]}letmake?stringValue=fun?stringListValue->fun?longValue->fun?dateValue->fun()->{stringValue;stringListValue;longValue;dateValue}letto_valuex=structure_to_value[("stringValue",(Option.mapx.stringValue~f:DocumentAttributeValueStringValueString.to_value));("stringListValue",(Option.mapx.stringListValue~f:DocumentAttributeStringListValue.to_value));("longValue",(Option.mapx.longValue~f:Long.to_value));("dateValue",(Option.mapx.dateValue~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdateValue=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"dateValue")inletlongValue=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"longValue")inletstringListValue=(Option.map~f:DocumentAttributeStringListValue.of_xml)(Xml.childxml_arg0"stringListValue")inletstringValue=(Option.map~f:DocumentAttributeValueStringValueString.of_xml)(Xml.childxml_arg0"stringValue")inmake?dateValue?longValue?stringListValue?stringValue()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdateValue=field_mapjson__"dateValue"Timestamp.of_jsoninletlongValue=field_mapjson__"longValue"Long.of_jsoninletstringListValue=field_mapjson__"stringListValue"DocumentAttributeStringListValue.of_jsoninletstringValue=field_mapjson__"stringValue"DocumentAttributeValueStringValueString.of_jsoninmake?dateValue?longValue?stringListValue?stringValue()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The value of a document attribute. You can only provide one value for a document attribute."]moduleDocumentAttributeKey=structtypenonrect=stringletcontext_="DocumentAttributeKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:200)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9_][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:"DocumentAttributeKey"jletto_json=simple_to_jsonto_valueendmoduleDocumentAttribute=structtypenonrect={name:DocumentAttributeKey.t[@ocaml.doc"The identifier for the attribute."];value:DocumentAttributeValue.t[@ocaml.doc"The value of the attribute."]}letcontext_="DocumentAttribute"letmake~name=fun~value->fun()->{name;value}letto_valuex=structure_to_value[("name",(Some(DocumentAttributeKey.to_valuex.name)));("value",(Some(DocumentAttributeValue.to_valuex.value)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=DocumentAttributeValue.of_xml(Xml.child_exn~context:context_xml_arg0"value")inletname=DocumentAttributeKey.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~value~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_map_exnjson__"value"DocumentAttributeValue.of_jsoninletname=field_map_exnjson__"name"DocumentAttributeKey.of_jsoninmake~value~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A document attribute or metadata field."]modulerecAttributeFilter:sigtypenonrect={andAllFilters:AttributeFilters.toption[@ocaml.doc"Performs a logical AND operation on all supplied filters."];orAllFilters:AttributeFilters.toption[@ocaml.doc"Performs a logical OR operation on all supplied filters."];notFilter:AttributeFilter.toption[@ocaml.doc"Performs a logical NOT operation on all supplied filters."];equalsTo:DocumentAttribute.toption[@ocaml.doc"Performs an equals operation on two document attributes or metadata fields. Supported for the following document attribute value types: dateValue, longValue, stringListValue and stringValue."];containsAll:DocumentAttribute.toption[@ocaml.doc"Returns true when a document contains all the specified document attributes or metadata fields. Supported for the following document attribute value types: stringListValue."];containsAny:DocumentAttribute.toption[@ocaml.doc"Returns true when a document contains any of the specified document attributes or metadata fields. Supported for the following document attribute value types: stringListValue."];greaterThan:DocumentAttribute.toption[@ocaml.doc"Performs a greater than operation on two document attributes or metadata fields. Supported for the following document attribute value types: dateValue and longValue."];greaterThanOrEquals:DocumentAttribute.toption[@ocaml.doc"Performs a greater than or equals operation on two document attributes or metadata fields. Supported for the following document attribute value types: dateValue and longValue."];lessThan:DocumentAttribute.toption[@ocaml.doc"Performs a less than operation on two document attributes or metadata fields. Supported for the following document attribute value types: dateValue and longValue."];lessThanOrEquals:DocumentAttribute.toption[@ocaml.doc"Performs a less than or equals operation on two document attributes or metadata fields.Supported for the following document attribute value type: dateValue and longValue."]}valmake:?andAllFilters:AttributeFilters.t->?orAllFilters:AttributeFilters.t->?notFilter:AttributeFilter.t->?equalsTo:DocumentAttribute.t->?containsAll:DocumentAttribute.t->?containsAny:DocumentAttribute.t->?greaterThan:DocumentAttribute.t->?greaterThanOrEquals:DocumentAttribute.t->?lessThan:DocumentAttribute.t->?lessThanOrEquals:DocumentAttribute.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={andAllFilters:AttributeFilters.toption[@ocaml.doc"Performs a logical AND operation on all supplied filters."];orAllFilters:AttributeFilters.toption[@ocaml.doc"Performs a logical OR operation on all supplied filters."];notFilter:AttributeFilter.toption[@ocaml.doc"Performs a logical NOT operation on all supplied filters."];equalsTo:DocumentAttribute.toption[@ocaml.doc"Performs an equals operation on two document attributes or metadata fields. Supported for the following document attribute value types: dateValue, longValue, stringListValue and stringValue."];containsAll:DocumentAttribute.toption[@ocaml.doc"Returns true when a document contains all the specified document attributes or metadata fields. Supported for the following document attribute value types: stringListValue."];containsAny:DocumentAttribute.toption[@ocaml.doc"Returns true when a document contains any of the specified document attributes or metadata fields. Supported for the following document attribute value types: stringListValue."];greaterThan:DocumentAttribute.toption[@ocaml.doc"Performs a greater than operation on two document attributes or metadata fields. Supported for the following document attribute value types: dateValue and longValue."];greaterThanOrEquals:DocumentAttribute.toption[@ocaml.doc"Performs a greater than or equals operation on two document attributes or metadata fields. Supported for the following document attribute value types: dateValue and longValue."];lessThan:DocumentAttribute.toption[@ocaml.doc"Performs a less than operation on two document attributes or metadata fields. Supported for the following document attribute value types: dateValue and longValue."];lessThanOrEquals:DocumentAttribute.toption[@ocaml.doc"Performs a less than or equals operation on two document attributes or metadata fields.Supported for the following document attribute value type: dateValue and longValue."]}letmake?andAllFilters=fun?orAllFilters->fun?notFilter->fun?equalsTo->fun?containsAll->fun?containsAny->fun?greaterThan->fun?greaterThanOrEquals->fun?lessThan->fun?lessThanOrEquals->fun()->{andAllFilters;orAllFilters;notFilter;equalsTo;containsAll;containsAny;greaterThan;greaterThanOrEquals;lessThan;lessThanOrEquals}letto_valuex=structure_to_value[("andAllFilters",(Option.mapx.andAllFilters~f:AttributeFilters.to_value));("orAllFilters",(Option.mapx.orAllFilters~f:AttributeFilters.to_value));("notFilter",(Option.mapx.notFilter~f:AttributeFilter.to_value));("equalsTo",(Option.mapx.equalsTo~f:DocumentAttribute.to_value));("containsAll",(Option.mapx.containsAll~f:DocumentAttribute.to_value));("containsAny",(Option.mapx.containsAny~f:DocumentAttribute.to_value));("greaterThan",(Option.mapx.greaterThan~f:DocumentAttribute.to_value));("greaterThanOrEquals",(Option.mapx.greaterThanOrEquals~f:DocumentAttribute.to_value));("lessThan",(Option.mapx.lessThan~f:DocumentAttribute.to_value));("lessThanOrEquals",(Option.mapx.lessThanOrEquals~f:DocumentAttribute.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlessThanOrEquals=(Option.map~f:DocumentAttribute.of_xml)(Xml.childxml_arg0"lessThanOrEquals")inletlessThan=(Option.map~f:DocumentAttribute.of_xml)(Xml.childxml_arg0"lessThan")inletgreaterThanOrEquals=(Option.map~f:DocumentAttribute.of_xml)(Xml.childxml_arg0"greaterThanOrEquals")inletgreaterThan=(Option.map~f:DocumentAttribute.of_xml)(Xml.childxml_arg0"greaterThan")inletcontainsAny=(Option.map~f:DocumentAttribute.of_xml)(Xml.childxml_arg0"containsAny")inletcontainsAll=(Option.map~f:DocumentAttribute.of_xml)(Xml.childxml_arg0"containsAll")inletequalsTo=(Option.map~f:DocumentAttribute.of_xml)(Xml.childxml_arg0"equalsTo")inletnotFilter=(Option.map~f:AttributeFilter.of_xml)(Xml.childxml_arg0"notFilter")inletorAllFilters=(Option.map~f:AttributeFilters.of_xml)(Xml.childxml_arg0"orAllFilters")inletandAllFilters=(Option.map~f:AttributeFilters.of_xml)(Xml.childxml_arg0"andAllFilters")inmake?lessThanOrEquals?lessThan?greaterThanOrEquals?greaterThan?containsAny?containsAll?equalsTo?notFilter?orAllFilters?andAllFilters()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlessThanOrEquals=field_mapjson__"lessThanOrEquals"DocumentAttribute.of_jsoninletlessThan=field_mapjson__"lessThan"DocumentAttribute.of_jsoninletgreaterThanOrEquals=field_mapjson__"greaterThanOrEquals"DocumentAttribute.of_jsoninletgreaterThan=field_mapjson__"greaterThan"DocumentAttribute.of_jsoninletcontainsAny=field_mapjson__"containsAny"DocumentAttribute.of_jsoninletcontainsAll=field_mapjson__"containsAll"DocumentAttribute.of_jsoninletequalsTo=field_mapjson__"equalsTo"DocumentAttribute.of_jsoninletnotFilter=field_mapjson__"notFilter"AttributeFilter.of_jsoninletorAllFilters=field_mapjson__"orAllFilters"AttributeFilters.of_jsoninletandAllFilters=field_mapjson__"andAllFilters"AttributeFilters.of_jsoninmake?lessThanOrEquals?lessThan?greaterThanOrEquals?greaterThan?containsAny?containsAll?equalsTo?notFilter?orAllFilters?andAllFilters()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The filter criteria used on responses based on document attributes or metadata fields."]andAttributeFilters:sigtypenonrect=AttributeFilter.tlistvalmake:AttributeFilter.tlist->tvalto_value:t->Botodata.valuevalto_query:t->Client.Query.tvalof_xml:Xml.t->AttributeFilter.tlistvalof_json:Yojson.Safe.t->tvalto_json:t->Yojson.Safe.tvalto_header:t->stringend=structtypenonrect=AttributeFilter.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AttributeFilter.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:AttributeFilter.of_xml)letof_jsonj=list_of_json~kind:"AttributeFilters"~of_json:AttributeFilter.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleQQueryCard=structtypenonrect={id:UUID.toption[@ocaml.doc"The unique identifier of the query card."];title:Title.toption[@ocaml.doc"The title or label of the query card."];dependencies:DependencyList.toption[@ocaml.doc"Any dependencies or requirements for the query card."];type_:CardType.toption[@ocaml.doc"The type of the card."];prompt:Prompt.toption[@ocaml.doc"The prompt or instructions displayed for the query card."];outputSource:CardOutputSource.toption[@ocaml.doc"The source or type of output generated by the query card."];attributeFilter:AttributeFilter.toption[@ocaml.doc"The Amazon Q Business filters applied in this query card when resolving data sources"];memoryReferences:MemoryReferenceList.toption[@ocaml.doc"Any dependencies for the query card, where the dependencies are references to the collected responses."]}letmake?id=fun?title->fun?dependencies->fun?type_->fun?prompt->fun?outputSource->fun?attributeFilter->fun?memoryReferences->fun()->{id;title;dependencies;type_;prompt;outputSource;attributeFilter;memoryReferences}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:UUID.to_value));("title",(Option.mapx.title~f:Title.to_value));("dependencies",(Option.mapx.dependencies~f:DependencyList.to_value));("type",(Option.mapx.type_~f:CardType.to_value));("prompt",(Option.mapx.prompt~f:Prompt.to_value));("outputSource",(Option.mapx.outputSource~f:CardOutputSource.to_value));("attributeFilter",(Option.mapx.attributeFilter~f:AttributeFilter.to_value));("memoryReferences",(Option.mapx.memoryReferences~f:MemoryReferenceList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmemoryReferences=(Option.map~f:MemoryReferenceList.of_xml)(Xml.childxml_arg0"memoryReferences")inletattributeFilter=(Option.map~f:AttributeFilter.of_xml)(Xml.childxml_arg0"attributeFilter")inletoutputSource=(Option.map~f:CardOutputSource.of_xml)(Xml.childxml_arg0"outputSource")inletprompt=(Option.map~f:Prompt.of_xml)(Xml.childxml_arg0"prompt")inlettype_=(Option.map~f:CardType.of_xml)(Xml.childxml_arg0"type")inletdependencies=(Option.map~f:DependencyList.of_xml)(Xml.childxml_arg0"dependencies")inlettitle=(Option.map~f:Title.of_xml)(Xml.childxml_arg0"title")inletid=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"id")inmake?memoryReferences?attributeFilter?outputSource?prompt?type_?dependencies?title?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmemoryReferences=field_mapjson__"memoryReferences"MemoryReferenceList.of_jsoninletattributeFilter=field_mapjson__"attributeFilter"AttributeFilter.of_jsoninletoutputSource=field_mapjson__"outputSource"CardOutputSource.of_jsoninletprompt=field_mapjson__"prompt"Prompt.of_jsoninlettype_=field_mapjson__"type"CardType.of_jsoninletdependencies=field_mapjson__"dependencies"DependencyList.of_jsoninlettitle=field_mapjson__"title"Title.of_jsoninletid=field_mapjson__"id"UUID.of_jsoninmake?memoryReferences?attributeFilter?outputSource?prompt?type_?dependencies?title?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A card in a Amazon Q App that generates a response based on the Amazon Q Business service."]modulePluginType=structtypenonrect=|SERVICE_NOW|SALESFORCE|JIRA|ZENDESK|CUSTOM|ASANA|ATLASSIAN_CONFLUENCE|GOOGLE_CALENDAR|JIRA_CLOUD|MICROSOFT_EXCHANGE|MICROSOFT_TEAMS|PAGERDUTY_ADVANCE|SALESFORCE_CRM|SERVICENOW_NOW_PLATFORM|SMARTSHEET|ZENDESK_SUITE|Non_static_idofstringletmakei=iletto_string=function|SERVICE_NOW->"SERVICE_NOW"|SALESFORCE->"SALESFORCE"|JIRA->"JIRA"|ZENDESK->"ZENDESK"|CUSTOM->"CUSTOM"|ASANA->"ASANA"|ATLASSIAN_CONFLUENCE->"ATLASSIAN_CONFLUENCE"|GOOGLE_CALENDAR->"GOOGLE_CALENDAR"|JIRA_CLOUD->"JIRA_CLOUD"|MICROSOFT_EXCHANGE->"MICROSOFT_EXCHANGE"|MICROSOFT_TEAMS->"MICROSOFT_TEAMS"|PAGERDUTY_ADVANCE->"PAGERDUTY_ADVANCE"|SALESFORCE_CRM->"SALESFORCE_CRM"|SERVICENOW_NOW_PLATFORM->"SERVICENOW_NOW_PLATFORM"|SMARTSHEET->"SMARTSHEET"|ZENDESK_SUITE->"ZENDESK_SUITE"|Non_static_ids->sletof_string=function|"SERVICE_NOW"->SERVICE_NOW|"SALESFORCE"->SALESFORCE|"JIRA"->JIRA|"ZENDESK"->ZENDESK|"CUSTOM"->CUSTOM|"ASANA"->ASANA|"ATLASSIAN_CONFLUENCE"->ATLASSIAN_CONFLUENCE|"GOOGLE_CALENDAR"->GOOGLE_CALENDAR|"JIRA_CLOUD"->JIRA_CLOUD|"MICROSOFT_EXCHANGE"->MICROSOFT_EXCHANGE|"MICROSOFT_TEAMS"->MICROSOFT_TEAMS|"PAGERDUTY_ADVANCE"->PAGERDUTY_ADVANCE|"SALESFORCE_CRM"->SALESFORCE_CRM|"SERVICENOW_NOW_PLATFORM"->SERVICENOW_NOW_PLATFORM|"SMARTSHEET"->SMARTSHEET|"ZENDESK_SUITE"->ZENDESK_SUITE|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 PluginType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PluginType"j)letto_json=simple_to_jsonto_valueendmoduleQPluginCard=structtypenonrect={id:UUID.toption[@ocaml.doc"The unique identifier of the plugin card."];title:Title.toption[@ocaml.doc"The title or label of the plugin card."];dependencies:DependencyList.toption[@ocaml.doc"Any dependencies or requirements for the plugin card."];type_:CardType.toption[@ocaml.doc"The type of the card."];prompt:Prompt.toption[@ocaml.doc"The prompt or instructions displayed for the plugin card."];pluginType:PluginType.toption[@ocaml.doc"The type or category of the plugin used by the card."];pluginId:String_.toption[@ocaml.doc"The unique identifier of the plugin used by the card."];actionIdentifier:ActionIdentifier.toption[@ocaml.doc"The action identifier of the action to be performed by the plugin card."]}letmake?id=fun?title->fun?dependencies->fun?type_->fun?prompt->fun?pluginType->fun?pluginId->fun?actionIdentifier->fun()->{id;title;dependencies;type_;prompt;pluginType;pluginId;actionIdentifier}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:UUID.to_value));("title",(Option.mapx.title~f:Title.to_value));("dependencies",(Option.mapx.dependencies~f:DependencyList.to_value));("type",(Option.mapx.type_~f:CardType.to_value));("prompt",(Option.mapx.prompt~f:Prompt.to_value));("pluginType",(Option.mapx.pluginType~f:PluginType.to_value));("pluginId",(Option.mapx.pluginId~f:String_.to_value));("actionIdentifier",(Option.mapx.actionIdentifier~f:ActionIdentifier.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letactionIdentifier=(Option.map~f:ActionIdentifier.of_xml)(Xml.childxml_arg0"actionIdentifier")inletpluginId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"pluginId")inletpluginType=(Option.map~f:PluginType.of_xml)(Xml.childxml_arg0"pluginType")inletprompt=(Option.map~f:Prompt.of_xml)(Xml.childxml_arg0"prompt")inlettype_=(Option.map~f:CardType.of_xml)(Xml.childxml_arg0"type")inletdependencies=(Option.map~f:DependencyList.of_xml)(Xml.childxml_arg0"dependencies")inlettitle=(Option.map~f:Title.of_xml)(Xml.childxml_arg0"title")inletid=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"id")inmake?actionIdentifier?pluginId?pluginType?prompt?type_?dependencies?title?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letactionIdentifier=field_mapjson__"actionIdentifier"ActionIdentifier.of_jsoninletpluginId=field_mapjson__"pluginId"String_.of_jsoninletpluginType=field_mapjson__"pluginType"PluginType.of_jsoninletprompt=field_mapjson__"prompt"Prompt.of_jsoninlettype_=field_mapjson__"type"CardType.of_jsoninletdependencies=field_mapjson__"dependencies"DependencyList.of_jsoninlettitle=field_mapjson__"title"Title.of_jsoninletid=field_mapjson__"id"UUID.of_jsoninmake?actionIdentifier?pluginId?pluginType?prompt?type_?dependencies?title?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A card in an Q App that integrates with a third-party plugin or service."]moduleInputCardComputeMode=structtypenonrect=|Append|Replace|Non_static_idofstringletmakei=iletto_string=function|Append->"append"|Replace->"replace"|Non_static_ids->sletof_string=function|"append"->Append|"replace"->Replace|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 InputCardComputeMode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"InputCardComputeMode"j)letto_json=simple_to_jsonto_valueendmoduleFormInputCardMetadataSchema=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevendmoduleFormInputCardMetadata=structtypenonrect={schema:FormInputCardMetadataSchema.t[@ocaml.doc"The JSON schema that defines the shape of the response data."]}letcontext_="FormInputCardMetadata"letmake~schema=fun()->{schema}letto_valuex=structure_to_value[("schema",(Some(FormInputCardMetadataSchema.to_valuex.schema)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letschema=FormInputCardMetadataSchema.of_xml(Xml.child_exn~context:context_xml_arg0"schema")inmake~schema()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letschema=field_map_exnjson__"schema"FormInputCardMetadataSchema.of_jsoninmake~schema()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The metadata of the form input card."]moduleFormInputCard=structtypenonrect={id:UUID.toption[@ocaml.doc"The unique identifier of the form input card."];title:Title.toption[@ocaml.doc"The title of the form input card."];dependencies:DependencyList.toption[@ocaml.doc"Any dependencies or requirements for the form input card."];type_:CardType.toption[@ocaml.doc"The type of the card."];metadata:FormInputCardMetadata.toption[@ocaml.doc"The metadata that defines the form input card data."];computeMode:InputCardComputeMode.toption[@ocaml.doc"The compute mode of the form input card. This property determines whether individual participants of a data collection session can submit multiple response or one response. A compute mode of append shall allow participants to submit the same form multiple times with different values. A compute mode of replacecode> shall overwrite the current value for each participant."]}letmake?id=fun?title->fun?dependencies->fun?type_->fun?metadata->fun?computeMode->fun()->{id;title;dependencies;type_;metadata;computeMode}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:UUID.to_value));("title",(Option.mapx.title~f:Title.to_value));("dependencies",(Option.mapx.dependencies~f:DependencyList.to_value));("type",(Option.mapx.type_~f:CardType.to_value));("metadata",(Option.mapx.metadata~f:FormInputCardMetadata.to_value));("computeMode",(Option.mapx.computeMode~f:InputCardComputeMode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcomputeMode=(Option.map~f:InputCardComputeMode.of_xml)(Xml.childxml_arg0"computeMode")inletmetadata=(Option.map~f:FormInputCardMetadata.of_xml)(Xml.childxml_arg0"metadata")inlettype_=(Option.map~f:CardType.of_xml)(Xml.childxml_arg0"type")inletdependencies=(Option.map~f:DependencyList.of_xml)(Xml.childxml_arg0"dependencies")inlettitle=(Option.map~f:Title.of_xml)(Xml.childxml_arg0"title")inletid=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"id")inmake?computeMode?metadata?type_?dependencies?title?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcomputeMode=field_mapjson__"computeMode"InputCardComputeMode.of_jsoninletmetadata=field_mapjson__"metadata"FormInputCardMetadata.of_jsoninlettype_=field_mapjson__"type"CardType.of_jsoninletdependencies=field_mapjson__"dependencies"DependencyList.of_jsoninlettitle=field_mapjson__"title"Title.of_jsoninletid=field_mapjson__"id"UUID.of_jsoninmake?computeMode?metadata?type_?dependencies?title?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A card in an Amazon Q App that allows the user to submit a response."]moduleBoolean=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleFileUploadCard=structtypenonrect={id:UUID.toption[@ocaml.doc"The unique identifier of the file upload card."];title:Title.toption[@ocaml.doc"The title of the file upload card."];dependencies:DependencyList.toption[@ocaml.doc"Any dependencies or requirements for the file upload card."];type_:CardType.toption[@ocaml.doc"The type of the card."];filename:String_.toption[@ocaml.doc"The name of the file being uploaded."];fileId:String_.toption[@ocaml.doc"The unique identifier of the file associated with the card."];allowOverride:Boolean.toption[@ocaml.doc"A flag indicating if the user can override the default file for the upload card."]}letmake?id=fun?title->fun?dependencies->fun?type_->fun?filename->fun?fileId->fun?allowOverride->fun()->{id;title;dependencies;type_;filename;fileId;allowOverride}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:UUID.to_value));("title",(Option.mapx.title~f:Title.to_value));("dependencies",(Option.mapx.dependencies~f:DependencyList.to_value));("type",(Option.mapx.type_~f:CardType.to_value));("filename",(Option.mapx.filename~f:String_.to_value));("fileId",(Option.mapx.fileId~f:String_.to_value));("allowOverride",(Option.mapx.allowOverride~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letallowOverride=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"allowOverride")inletfileId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"fileId")inletfilename=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"filename")inlettype_=(Option.map~f:CardType.of_xml)(Xml.childxml_arg0"type")inletdependencies=(Option.map~f:DependencyList.of_xml)(Xml.childxml_arg0"dependencies")inlettitle=(Option.map~f:Title.of_xml)(Xml.childxml_arg0"title")inletid=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"id")inmake?allowOverride?fileId?filename?type_?dependencies?title?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letallowOverride=field_mapjson__"allowOverride"Boolean.of_jsoninletfileId=field_mapjson__"fileId"String_.of_jsoninletfilename=field_mapjson__"filename"String_.of_jsoninlettype_=field_mapjson__"type"CardType.of_jsoninletdependencies=field_mapjson__"dependencies"DependencyList.of_jsoninlettitle=field_mapjson__"title"Title.of_jsoninletid=field_mapjson__"id"UUID.of_jsoninmake?allowOverride?fileId?filename?type_?dependencies?title?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A card in an Amazon Q App that allows the user to upload a file."]moduleCard=structtypenonrect={textInput:TextInputCard.toption[@ocaml.doc"A container for the properties of the text input card."];qQuery:QQueryCard.toption[@ocaml.doc"A container for the properties of the query card."];qPlugin:QPluginCard.toption[@ocaml.doc"A container for the properties of the plugin card."];fileUpload:FileUploadCard.toption[@ocaml.doc"A container for the properties of the file upload card."];formInput:FormInputCard.toption[@ocaml.doc"A container for the properties of the form input card."]}letmake?textInput=fun?qQuery->fun?qPlugin->fun?fileUpload->fun?formInput->fun()->{textInput;qQuery;qPlugin;fileUpload;formInput}letto_valuex=structure_to_value[("textInput",(Option.mapx.textInput~f:TextInputCard.to_value));("qQuery",(Option.mapx.qQuery~f:QQueryCard.to_value));("qPlugin",(Option.mapx.qPlugin~f:QPluginCard.to_value));("fileUpload",(Option.mapx.fileUpload~f:FileUploadCard.to_value));("formInput",(Option.mapx.formInput~f:FormInputCard.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letformInput=(Option.map~f:FormInputCard.of_xml)(Xml.childxml_arg0"formInput")inletfileUpload=(Option.map~f:FileUploadCard.of_xml)(Xml.childxml_arg0"fileUpload")inletqPlugin=(Option.map~f:QPluginCard.of_xml)(Xml.childxml_arg0"qPlugin")inletqQuery=(Option.map~f:QQueryCard.of_xml)(Xml.childxml_arg0"qQuery")inlettextInput=(Option.map~f:TextInputCard.of_xml)(Xml.childxml_arg0"textInput")inmake?formInput?fileUpload?qPlugin?qQuery?textInput()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letformInput=field_mapjson__"formInput"FormInputCard.of_jsoninletfileUpload=field_mapjson__"fileUpload"FileUploadCard.of_jsoninletqPlugin=field_mapjson__"qPlugin"QPluginCard.of_jsoninletqQuery=field_mapjson__"qQuery"QQueryCard.of_jsoninlettextInput=field_mapjson__"textInput"TextInputCard.of_jsoninmake?formInput?fileUpload?qPlugin?qQuery?textInput()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A card representing a component or step in an Amazon Q App's flow."]moduleCardModelList=structtypenonrect=Card.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:20)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Card.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:Card.of_xml)letof_jsonj=list_of_json~kind:"CardModelList"~of_json:Card.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAppDefinition=structtypenonrect={appDefinitionVersion:String_.toption[@ocaml.doc"The version of the app definition schema or specification."];cards:CardModelList.toption[@ocaml.doc"The cards that make up the Q App, such as text input, file upload, or query cards."];canEdit:Boolean.toption[@ocaml.doc"A flag indicating whether the Q App's definition can be edited by the user."]}letmake?appDefinitionVersion=fun?cards->fun?canEdit->fun()->{appDefinitionVersion;cards;canEdit}letto_valuex=structure_to_value[("appDefinitionVersion",(Option.mapx.appDefinitionVersion~f:String_.to_value));("cards",(Option.mapx.cards~f:CardModelList.to_value));("canEdit",(Option.mapx.canEdit~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcanEdit=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"canEdit")inletcards=(Option.map~f:CardModelList.of_xml)(Xml.childxml_arg0"cards")inletappDefinitionVersion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"appDefinitionVersion")inmake?canEdit?cards?appDefinitionVersion()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcanEdit=field_mapjson__"canEdit"Boolean.of_jsoninletcards=field_mapjson__"cards"CardModelList.of_jsoninletappDefinitionVersion=field_mapjson__"appDefinitionVersion"String_.of_jsoninmake?canEdit?cards?appDefinitionVersion()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The definition of the Q App, specifying the cards and flow."]moduleInitialPrompt=structtypenonrect=stringletcontext_="InitialPrompt"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:10000)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"InitialPrompt"jletto_json=simple_to_jsonto_valueendmoduleTextInputCardInput=structtypenonrect={title:Title.t[@ocaml.doc"The title or label of the text input card."];id:UUID.t[@ocaml.doc"The unique identifier of the text input card."];type_:CardType.t[@ocaml.doc"The type of the card."];placeholder:Placeholder.toption[@ocaml.doc"The placeholder text to display in the text input field."];defaultValue:Default.toption[@ocaml.doc"The default value to pre-populate in the text input field."]}letcontext_="TextInputCardInput"letmake?placeholder=fun?defaultValue->fun~title->fun~id->fun~type_->fun()->{placeholder;defaultValue;title;id;type_}letto_valuex=structure_to_value[("title",(Some(Title.to_valuex.title)));("id",(Some(UUID.to_valuex.id)));("type",(Some(CardType.to_valuex.type_)));("placeholder",(Option.mapx.placeholder~f:Placeholder.to_value));("defaultValue",(Option.mapx.defaultValue~f:Default.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdefaultValue=(Option.map~f:Default.of_xml)(Xml.childxml_arg0"defaultValue")inletplaceholder=(Option.map~f:Placeholder.of_xml)(Xml.childxml_arg0"placeholder")inlettype_=CardType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletid=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"id")inlettitle=Title.of_xml(Xml.child_exn~context:context_xml_arg0"title")inmake?defaultValue?placeholder~type_~id~title()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdefaultValue=field_mapjson__"defaultValue"Default.of_jsoninletplaceholder=field_mapjson__"placeholder"Placeholder.of_jsoninlettype_=field_map_exnjson__"type"CardType.of_jsoninletid=field_map_exnjson__"id"UUID.of_jsoninlettitle=field_map_exnjson__"title"Title.of_jsoninmake?defaultValue?placeholder~type_~id~title()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input shape for defining a text input card in an Amazon Q App."]moduleQQueryCardInput=structtypenonrect={title:Title.t[@ocaml.doc"The title or label of the query card."];id:UUID.t[@ocaml.doc"The unique identifier of the query card."];type_:CardType.t[@ocaml.doc"The type of the card."];prompt:Prompt.t[@ocaml.doc"The prompt or instructions displayed for the query card."];outputSource:CardOutputSource.toption[@ocaml.doc"The source or type of output to generate for the query card."];attributeFilter:AttributeFilter.toption[@ocaml.doc"Turns on filtering of responses based on document attributes or metadata fields."]}letcontext_="QQueryCardInput"letmake?outputSource=fun?attributeFilter->fun~title->fun~id->fun~type_->fun~prompt->fun()->{outputSource;attributeFilter;title;id;type_;prompt}letto_valuex=structure_to_value[("title",(Some(Title.to_valuex.title)));("id",(Some(UUID.to_valuex.id)));("type",(Some(CardType.to_valuex.type_)));("prompt",(Some(Prompt.to_valuex.prompt)));("outputSource",(Option.mapx.outputSource~f:CardOutputSource.to_value));("attributeFilter",(Option.mapx.attributeFilter~f:AttributeFilter.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributeFilter=(Option.map~f:AttributeFilter.of_xml)(Xml.childxml_arg0"attributeFilter")inletoutputSource=(Option.map~f:CardOutputSource.of_xml)(Xml.childxml_arg0"outputSource")inletprompt=Prompt.of_xml(Xml.child_exn~context:context_xml_arg0"prompt")inlettype_=CardType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletid=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"id")inlettitle=Title.of_xml(Xml.child_exn~context:context_xml_arg0"title")inmake?attributeFilter?outputSource~prompt~type_~id~title()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributeFilter=field_mapjson__"attributeFilter"AttributeFilter.of_jsoninletoutputSource=field_mapjson__"outputSource"CardOutputSource.of_jsoninletprompt=field_map_exnjson__"prompt"Prompt.of_jsoninlettype_=field_map_exnjson__"type"CardType.of_jsoninletid=field_map_exnjson__"id"UUID.of_jsoninlettitle=field_map_exnjson__"title"Title.of_jsoninmake?attributeFilter?outputSource~prompt~type_~id~title()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input shape for defining a query card in an Amazon Q App."]modulePluginId=structtypenonrect=stringletcontext_="PluginId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:36)>>=(fun()->check_string_mini~min:36));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PluginId"jletto_json=simple_to_jsonto_valueendmoduleQPluginCardInput=structtypenonrect={title:Title.t[@ocaml.doc"The title or label of the plugin card."];id:UUID.t[@ocaml.doc"The unique identifier of the plugin card."];type_:CardType.t[@ocaml.doc"The type of the card."];prompt:Prompt.t[@ocaml.doc"The prompt or instructions displayed for the plugin card."];pluginId:PluginId.t[@ocaml.doc"The unique identifier of the plugin used by the card."];actionIdentifier:ActionIdentifier.toption[@ocaml.doc"The action identifier of the action to be performed by the plugin card."]}letcontext_="QPluginCardInput"letmake?actionIdentifier=fun~title->fun~id->fun~type_->fun~prompt->fun~pluginId->fun()->{actionIdentifier;title;id;type_;prompt;pluginId}letto_valuex=structure_to_value[("title",(Some(Title.to_valuex.title)));("id",(Some(UUID.to_valuex.id)));("type",(Some(CardType.to_valuex.type_)));("prompt",(Some(Prompt.to_valuex.prompt)));("pluginId",(Some(PluginId.to_valuex.pluginId)));("actionIdentifier",(Option.mapx.actionIdentifier~f:ActionIdentifier.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letactionIdentifier=(Option.map~f:ActionIdentifier.of_xml)(Xml.childxml_arg0"actionIdentifier")inletpluginId=PluginId.of_xml(Xml.child_exn~context:context_xml_arg0"pluginId")inletprompt=Prompt.of_xml(Xml.child_exn~context:context_xml_arg0"prompt")inlettype_=CardType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletid=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"id")inlettitle=Title.of_xml(Xml.child_exn~context:context_xml_arg0"title")inmake?actionIdentifier~pluginId~prompt~type_~id~title()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letactionIdentifier=field_mapjson__"actionIdentifier"ActionIdentifier.of_jsoninletpluginId=field_map_exnjson__"pluginId"PluginId.of_jsoninletprompt=field_map_exnjson__"prompt"Prompt.of_jsoninlettype_=field_map_exnjson__"type"CardType.of_jsoninletid=field_map_exnjson__"id"UUID.of_jsoninlettitle=field_map_exnjson__"title"Title.of_jsoninmake?actionIdentifier~pluginId~prompt~type_~id~title()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input shape for defining a plugin card in an Amazon Q App."]moduleFormInputCardInput=structtypenonrect={title:Title.t[@ocaml.doc"The title or label of the form input card."];id:UUID.t[@ocaml.doc"The unique identifier of the form input card."];type_:CardType.t[@ocaml.doc"The type of the card."];metadata:FormInputCardMetadata.t[@ocaml.doc"The metadata that defines the form input card data."];computeMode:InputCardComputeMode.toption[@ocaml.doc"The compute mode of the form input card. This property determines whether individual participants of a data collection session can submit multiple response or one response. A compute mode of append shall allow participants to submit the same form multiple times with different values. A compute mode of replacecode> shall overwrite the current value for each participant."]}letcontext_="FormInputCardInput"letmake?computeMode=fun~title->fun~id->fun~type_->fun~metadata->fun()->{computeMode;title;id;type_;metadata}letto_valuex=structure_to_value[("title",(Some(Title.to_valuex.title)));("id",(Some(UUID.to_valuex.id)));("type",(Some(CardType.to_valuex.type_)));("metadata",(Some(FormInputCardMetadata.to_valuex.metadata)));("computeMode",(Option.mapx.computeMode~f:InputCardComputeMode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcomputeMode=(Option.map~f:InputCardComputeMode.of_xml)(Xml.childxml_arg0"computeMode")inletmetadata=FormInputCardMetadata.of_xml(Xml.child_exn~context:context_xml_arg0"metadata")inlettype_=CardType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletid=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"id")inlettitle=Title.of_xml(Xml.child_exn~context:context_xml_arg0"title")inmake?computeMode~metadata~type_~id~title()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcomputeMode=field_mapjson__"computeMode"InputCardComputeMode.of_jsoninletmetadata=field_map_exnjson__"metadata"FormInputCardMetadata.of_jsoninlettype_=field_map_exnjson__"type"CardType.of_jsoninletid=field_map_exnjson__"id"UUID.of_jsoninlettitle=field_map_exnjson__"title"Title.of_jsoninmake?computeMode~metadata~type_~id~title()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a form input card for an Amazon Q App."]moduleFilename=structtypenonrect=stringletcontext_="Filename"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Filename"jletto_json=simple_to_jsonto_valueendmoduleFileUploadCardInput=structtypenonrect={title:Title.t[@ocaml.doc"The title or label of the file upload card."];id:UUID.t[@ocaml.doc"The unique identifier of the file upload card."];type_:CardType.t[@ocaml.doc"The type of the card."];filename:Filename.toption[@ocaml.doc"The default filename to use for the file upload card."];fileId:UUID.toption[@ocaml.doc"The identifier of a pre-uploaded file associated with the card."];allowOverride:Boolean.toption[@ocaml.doc"A flag indicating if the user can override the default file for the upload card."]}letcontext_="FileUploadCardInput"letmake?filename=fun?fileId->fun?allowOverride->fun~title->fun~id->fun~type_->fun()->{filename;fileId;allowOverride;title;id;type_}letto_valuex=structure_to_value[("title",(Some(Title.to_valuex.title)));("id",(Some(UUID.to_valuex.id)));("type",(Some(CardType.to_valuex.type_)));("filename",(Option.mapx.filename~f:Filename.to_value));("fileId",(Option.mapx.fileId~f:UUID.to_value));("allowOverride",(Option.mapx.allowOverride~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letallowOverride=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"allowOverride")inletfileId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"fileId")inletfilename=(Option.map~f:Filename.of_xml)(Xml.childxml_arg0"filename")inlettype_=CardType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletid=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"id")inlettitle=Title.of_xml(Xml.child_exn~context:context_xml_arg0"title")inmake?allowOverride?fileId?filename~type_~id~title()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letallowOverride=field_mapjson__"allowOverride"Boolean.of_jsoninletfileId=field_mapjson__"fileId"UUID.of_jsoninletfilename=field_mapjson__"filename"Filename.of_jsoninlettype_=field_map_exnjson__"type"CardType.of_jsoninletid=field_map_exnjson__"id"UUID.of_jsoninlettitle=field_map_exnjson__"title"Title.of_jsoninmake?allowOverride?fileId?filename~type_~id~title()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a file upload card. It can optionally receive a filename and fileId to set a default file. If not received, the user must provide the file when the Q App runs."]moduleCardInput=structtypenonrect={textInput:TextInputCardInput.toption[@ocaml.doc"A container for the properties of the text input card."];qQuery:QQueryCardInput.toption[@ocaml.doc"A container for the properties of the query input card."];qPlugin:QPluginCardInput.toption[@ocaml.doc"A container for the properties of the plugin input card."];fileUpload:FileUploadCardInput.toption[@ocaml.doc"A container for the properties of the file upload input card."];formInput:FormInputCardInput.toption[@ocaml.doc"A container for the properties of the form input card."]}letmake?textInput=fun?qQuery->fun?qPlugin->fun?fileUpload->fun?formInput->fun()->{textInput;qQuery;qPlugin;fileUpload;formInput}letto_valuex=structure_to_value[("textInput",(Option.mapx.textInput~f:TextInputCardInput.to_value));("qQuery",(Option.mapx.qQuery~f:QQueryCardInput.to_value));("qPlugin",(Option.mapx.qPlugin~f:QPluginCardInput.to_value));("fileUpload",(Option.mapx.fileUpload~f:FileUploadCardInput.to_value));("formInput",(Option.mapx.formInput~f:FormInputCardInput.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letformInput=(Option.map~f:FormInputCardInput.of_xml)(Xml.childxml_arg0"formInput")inletfileUpload=(Option.map~f:FileUploadCardInput.of_xml)(Xml.childxml_arg0"fileUpload")inletqPlugin=(Option.map~f:QPluginCardInput.of_xml)(Xml.childxml_arg0"qPlugin")inletqQuery=(Option.map~f:QQueryCardInput.of_xml)(Xml.childxml_arg0"qQuery")inlettextInput=(Option.map~f:TextInputCardInput.of_xml)(Xml.childxml_arg0"textInput")inmake?formInput?fileUpload?qPlugin?qQuery?textInput()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letformInput=field_mapjson__"formInput"FormInputCardInput.of_jsoninletfileUpload=field_mapjson__"fileUpload"FileUploadCardInput.of_jsoninletqPlugin=field_mapjson__"qPlugin"QPluginCardInput.of_jsoninletqQuery=field_mapjson__"qQuery"QQueryCardInput.of_jsoninlettextInput=field_mapjson__"textInput"TextInputCardInput.of_jsoninmake?formInput?fileUpload?qPlugin?qQuery?textInput()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The properties defining an input card in an Amazon Q App."]moduleCardList=structtypenonrect=CardInput.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:20)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CardInput.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:CardInput.of_xml)letof_jsonj=list_of_json~kind:"CardList"~of_json:CardInput.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAppDefinitionInput=structtypenonrect={cards:CardList.t[@ocaml.doc"The cards that make up the Q App definition."];initialPrompt:InitialPrompt.toption[@ocaml.doc"The initial prompt displayed when the Q App is started."]}letcontext_="AppDefinitionInput"letmake?initialPrompt=fun~cards->fun()->{initialPrompt;cards}letto_valuex=structure_to_value[("cards",(Some(CardList.to_valuex.cards)));("initialPrompt",(Option.mapx.initialPrompt~f:InitialPrompt.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinitialPrompt=(Option.map~f:InitialPrompt.of_xml)(Xml.childxml_arg0"initialPrompt")inletcards=CardList.of_xml(Xml.child_exn~context:context_xml_arg0"cards")inmake?initialPrompt~cards()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinitialPrompt=field_mapjson__"initialPrompt"InitialPrompt.of_jsoninletcards=field_map_exnjson__"cards"CardList.of_jsoninmake?initialPrompt~cards()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input for defining an Q App."]moduleAppRequiredCapability=structtypenonrect=|FileUpload|CreatorMode|RetrievalMode|PluginMode|Non_static_idofstringletmakei=iletto_string=function|FileUpload->"FileUpload"|CreatorMode->"CreatorMode"|RetrievalMode->"RetrievalMode"|PluginMode->"PluginMode"|Non_static_ids->sletof_string=function|"FileUpload"->FileUpload|"CreatorMode"->CreatorMode|"RetrievalMode"->RetrievalMode|"PluginMode"->PluginMode|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 AppRequiredCapability"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AppRequiredCapability"j)letto_json=simple_to_jsonto_valueendmoduleAppRequiredCapabilities=structtypenonrect=AppRequiredCapability.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AppRequiredCapability.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:AppRequiredCapability.of_xml)letof_jsonj=list_of_json~kind:"AppRequiredCapabilities"~of_json:AppRequiredCapability.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAppStatus=structtypenonrect=|PUBLISHED|DRAFT|DELETED|Non_static_idofstringletmakei=iletto_string=function|PUBLISHED->"PUBLISHED"|DRAFT->"DRAFT"|DELETED->"DELETED"|Non_static_ids->sletof_string=function|"PUBLISHED"->PUBLISHED|"DRAFT"->DRAFT|"DELETED"->DELETED|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 AppStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AppStatus"j)letto_json=simple_to_jsonto_valueendmoduleAppVersion=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:2147483647)>>=(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 AppVersion"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleInstanceId=structtypenonrect=stringletcontext_="InstanceId"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:"InstanceId"jletto_json=simple_to_jsonto_valueendmoduleAssociateLibraryItemReviewInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier for the Amazon Q Business application environment instance."];libraryItemId:UUID.t[@ocaml.doc"The unique identifier of the library item to associate the review with."]}letcontext_="AssociateLibraryItemReviewInput"letmake~instanceId=fun~libraryItemId->fun()->{instanceId;libraryItemId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("libraryItemId",(Some(UUID.to_valuex.libraryItemId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlibraryItemId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"libraryItemId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake~libraryItemId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlibraryItemId=field_map_exnjson__"libraryItemId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake~libraryItemId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates a rating or review for a library item with the user submitting the request. This increments the rating count for the specified library item."]moduleAssociateQAppWithUserInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];appId:UUID.t[@ocaml.doc"The ID of the Amazon Q App to associate with the user."]}letcontext_="AssociateQAppWithUserInput"letmake~instanceId=fun~appId->fun()->{instanceId;appId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("appId",(Some(UUID.to_valuex.appId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letappId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"appId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake~appId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letappId=field_map_exnjson__"appId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake~appId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This operation creates a link between the user's identity calling the operation and a specific Q App. This is useful to mark the Q App as a favorite for the user if the user doesn't own the Amazon Q App so they can still run it and see it in their inventory of Q Apps."]moduleBatchCreateCategoryInputCategoryTitleString=structtypenonrect=stringletcontext_="BatchCreateCategoryInputCategoryTitleString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:30)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9_]+( [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:"BatchCreateCategoryInputCategoryTitleString"jletto_json=simple_to_jsonto_valueendmoduleBatchCreateCategoryInputCategoryColorString=structtypenonrect=stringletcontext_="BatchCreateCategoryInputCategoryColorString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:4)>>=(fun()->(check_string_maxi~max:7)>>=(fun()->check_patterni~pattern:"#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6})")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"BatchCreateCategoryInputCategoryColorString"jletto_json=simple_to_jsonto_valueendmoduleBatchCreateCategoryInputCategory=structtypenonrect={id:UUID.toption[@ocaml.doc"The unique identifier to be associated with a category. If you don't include a value, the category is automatically assigned a unique identifier."];title:BatchCreateCategoryInputCategoryTitleString.t[@ocaml.doc"The name of the category."];color:BatchCreateCategoryInputCategoryColorString.toption[@ocaml.doc"The color to be associated with a category. The color must be a hexadecimal value of either 3 or 6 digits."]}letcontext_="BatchCreateCategoryInputCategory"letmake?id=fun?color->fun~title->fun()->{id;color;title}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:UUID.to_value));("title",(Some(BatchCreateCategoryInputCategoryTitleString.to_valuex.title)));("color",(Option.mapx.color~f:BatchCreateCategoryInputCategoryColorString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcolor=(Option.map~f:BatchCreateCategoryInputCategoryColorString.of_xml)(Xml.childxml_arg0"color")inlettitle=BatchCreateCategoryInputCategoryTitleString.of_xml(Xml.child_exn~context:context_xml_arg0"title")inletid=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"id")inmake?color~title?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcolor=field_mapjson__"color"BatchCreateCategoryInputCategoryColorString.of_jsoninlettitle=field_map_exnjson__"title"BatchCreateCategoryInputCategoryTitleString.of_jsoninletid=field_mapjson__"id"UUID.of_jsoninmake?color~title?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The category object to be created."]moduleBatchCreateCategoryInputCategoryList=structtypenonrect=BatchCreateCategoryInputCategory.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(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:BatchCreateCategoryInputCategory.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:BatchCreateCategoryInputCategory.of_xml)letof_jsonj=list_of_json~kind:"BatchCreateCategoryInputCategoryList"~of_json:BatchCreateCategoryInputCategory.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchCreateCategoryInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];categories:BatchCreateCategoryInputCategoryList.t[@ocaml.doc"The list of category objects to be created"]}letcontext_="BatchCreateCategoryInput"letmake~instanceId=fun~categories->fun()->{instanceId;categories}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("categories",(Some(BatchCreateCategoryInputCategoryList.to_valuex.categories)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcategories=BatchCreateCategoryInputCategoryList.of_xml(Xml.child_exn~context:context_xml_arg0"categories")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake~categories~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcategories=field_map_exnjson__"categories"BatchCreateCategoryInputCategoryList.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake~categories~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates Categories for the Amazon Q Business application environment instance. Web experience users use Categories to tag and filter library items. For more information, see Custom labels for Amazon Q Apps."]moduleDeleteCategoryInputList=structtypenonrect=UUID.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(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:UUID.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:UUID.of_xml)letof_jsonj=list_of_json~kind:"DeleteCategoryInputList"~of_json:UUID.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchDeleteCategoryInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];categories:DeleteCategoryInputList.t[@ocaml.doc"The list of IDs of the categories to be deleted."]}letcontext_="BatchDeleteCategoryInput"letmake~instanceId=fun~categories->fun()->{instanceId;categories}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("categories",(Some(DeleteCategoryInputList.to_valuex.categories)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcategories=DeleteCategoryInputList.of_xml(Xml.child_exn~context:context_xml_arg0"categories")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake~categories~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcategories=field_map_exnjson__"categories"DeleteCategoryInputList.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake~categories~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes Categories for the Amazon Q Business application environment instance. Web experience users use Categories to tag and filter library items. For more information, see Custom labels for Amazon Q Apps."]moduleCategoryInputTitleString=structtypenonrect=stringletcontext_="CategoryInputTitleString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:30)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9_]+( [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:"CategoryInputTitleString"jletto_json=simple_to_jsonto_valueendmoduleCategoryInputColorString=structtypenonrect=stringletcontext_="CategoryInputColorString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:4)>>=(fun()->(check_string_maxi~max:7)>>=(fun()->check_patterni~pattern:"#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6})")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CategoryInputColorString"jletto_json=simple_to_jsonto_valueendmoduleCategoryInput=structtypenonrect={id:UUID.t[@ocaml.doc"The unique identifier of the category."];title:CategoryInputTitleString.t[@ocaml.doc"The name of the category."];color:CategoryInputColorString.toption[@ocaml.doc"The color of the category, represented as a hexadecimal value of either 3 or 6 digits."]}letcontext_="CategoryInput"letmake?color=fun~id->fun~title->fun()->{color;id;title}letto_valuex=structure_to_value[("id",(Some(UUID.to_valuex.id)));("title",(Some(CategoryInputTitleString.to_valuex.title)));("color",(Option.mapx.color~f:CategoryInputColorString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcolor=(Option.map~f:CategoryInputColorString.of_xml)(Xml.childxml_arg0"color")inlettitle=CategoryInputTitleString.of_xml(Xml.child_exn~context:context_xml_arg0"title")inletid=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake?color~title~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcolor=field_mapjson__"color"CategoryInputColorString.of_jsoninlettitle=field_map_exnjson__"title"CategoryInputTitleString.of_jsoninletid=field_map_exnjson__"id"UUID.of_jsoninmake?color~title~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A label that web experience users associate with a library item. Web experience users use Categories to tag and filter library items."]moduleCategoryListInput=structtypenonrect=CategoryInput.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(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:CategoryInput.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:CategoryInput.of_xml)letof_jsonj=list_of_json~kind:"CategoryListInput"~of_json:CategoryInput.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchUpdateCategoryInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];categories:CategoryListInput.t[@ocaml.doc"The list of categories to be updated with their new values."]}letcontext_="BatchUpdateCategoryInput"letmake~instanceId=fun~categories->fun()->{instanceId;categories}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("categories",(Some(CategoryListInput.to_valuex.categories)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcategories=CategoryListInput.of_xml(Xml.child_exn~context:context_xml_arg0"categories")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake~categories~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcategories=field_map_exnjson__"categories"CategoryListInput.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake~categories~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates Categories for the Amazon Q Business application environment instance. Web experience users use Categories to tag and filter library items. For more information, see Custom labels for Amazon Q Apps."]moduleQAppsTimestamp=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_valueendmoduleDocument=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevendmoduleSubmission=structtypenonrect={value:Document.toption[@ocaml.doc"The data submitted by the user."];submissionId:UUID.toption[@ocaml.doc"The unique identifier of the submission."];timestamp:QAppsTimestamp.toption[@ocaml.doc"The date and time when the card is submitted."]}letmake?value=fun?submissionId->fun?timestamp->fun()->{value;submissionId;timestamp}letto_valuex=structure_to_value[("value",(Option.mapx.value~f:Document.to_value));("submissionId",(Option.mapx.submissionId~f:UUID.to_value));("timestamp",(Option.mapx.timestamp~f:QAppsTimestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettimestamp=(Option.map~f:QAppsTimestamp.of_xml)(Xml.childxml_arg0"timestamp")inletsubmissionId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"submissionId")inletvalue=(Option.map~f:Document.of_xml)(Xml.childxml_arg0"value")inmake?timestamp?submissionId?value()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettimestamp=field_mapjson__"timestamp"QAppsTimestamp.of_jsoninletsubmissionId=field_mapjson__"submissionId"UUID.of_jsoninletvalue=field_mapjson__"value"Document.of_jsoninmake?timestamp?submissionId?value()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A record created when a user submits a form card."]moduleSubmissionList=structtypenonrect=Submission.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Submission.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:Submission.of_xml)letof_jsonj=list_of_json~kind:"SubmissionList"~of_json:Submission.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleExecutionStatus=structtypenonrect=|IN_PROGRESS|WAITING|COMPLETED|ERROR|Non_static_idofstringletmakei=iletto_string=function|IN_PROGRESS->"IN_PROGRESS"|WAITING->"WAITING"|COMPLETED->"COMPLETED"|ERROR->"ERROR"|Non_static_ids->sletof_string=function|"IN_PROGRESS"->IN_PROGRESS|"WAITING"->WAITING|"COMPLETED"->COMPLETED|"ERROR"->ERROR|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ExecutionStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ExecutionStatus"j)letto_json=simple_to_jsonto_valueendmoduleCardStatus=structtypenonrect={currentState:ExecutionStatus.toption[@ocaml.doc"The current state of the card."];currentValue:String_.toption[@ocaml.doc"The current value or result associated with the card."];submissions:SubmissionList.toption[@ocaml.doc"A list of previous submissions, if the card is a form card."]}letmake?currentState=fun?currentValue->fun?submissions->fun()->{currentState;currentValue;submissions}letto_valuex=structure_to_value[("currentState",(Option.mapx.currentState~f:ExecutionStatus.to_value));("currentValue",(Option.mapx.currentValue~f:String_.to_value));("submissions",(Option.mapx.submissions~f:SubmissionList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsubmissions=(Option.map~f:SubmissionList.of_xml)(Xml.childxml_arg0"submissions")inletcurrentValue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"currentValue")inletcurrentState=(Option.map~f:ExecutionStatus.of_xml)(Xml.childxml_arg0"currentState")inmake?submissions?currentValue?currentState()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubmissions=field_mapjson__"submissions"SubmissionList.of_jsoninletcurrentValue=field_mapjson__"currentValue"String_.of_jsoninletcurrentState=field_mapjson__"currentState"ExecutionStatus.of_jsoninmake?submissions?currentValue?currentState()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The current status and value of a card in an active Amazon Q App session."]moduleCardStatusMap=structtypenonrect=(UUID.t*CardStatus.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 UUID CardStatus"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(UUID.to_valuex)|>(funx->(CardStatus.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:UUID.of_string~of_json:CardStatus.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSubmissionMutationKind=structtypenonrect=|Edit|Delete|Add|Non_static_idofstringletmakei=iletto_string=function|Edit->"edit"|Delete->"delete"|Add->"add"|Non_static_ids->sletof_string=function|"edit"->Edit|"delete"->Delete|"add"->Add|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 SubmissionMutationKind"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SubmissionMutationKind"j)letto_json=simple_to_jsonto_valueendmoduleSubmissionMutation=structtypenonrect={submissionId:UUID.t[@ocaml.doc"The unique identifier of the submission."];mutationType:SubmissionMutationKind.t[@ocaml.doc"The operation that is performed on a submission."]}letcontext_="SubmissionMutation"letmake~submissionId=fun~mutationType->fun()->{submissionId;mutationType}letto_valuex=structure_to_value[("submissionId",(Some(UUID.to_valuex.submissionId)));("mutationType",(Some(SubmissionMutationKind.to_valuex.mutationType)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmutationType=SubmissionMutationKind.of_xml(Xml.child_exn~context:context_xml_arg0"mutationType")inletsubmissionId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"submissionId")inmake~mutationType~submissionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmutationType=field_map_exnjson__"mutationType"SubmissionMutationKind.of_jsoninletsubmissionId=field_map_exnjson__"submissionId"UUID.of_jsoninmake~mutationType~submissionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents an action performed on a submission."]moduleCardValueValueString=structtypenonrect=stringletcontext_="CardValueValueString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:40000)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CardValueValueString"jletto_json=simple_to_jsonto_valueendmoduleCardValue=structtypenonrect={cardId:UUID.t[@ocaml.doc"The unique identifier of the card."];value:CardValueValueString.t[@ocaml.doc"The value or result associated with the card."];submissionMutation:SubmissionMutation.toption[@ocaml.doc"The structure that describes how the current form card value is mutated. Only applies for form cards when multiple responses are allowed."]}letcontext_="CardValue"letmake?submissionMutation=fun~cardId->fun~value->fun()->{submissionMutation;cardId;value}letto_valuex=structure_to_value[("cardId",(Some(UUID.to_valuex.cardId)));("value",(Some(CardValueValueString.to_valuex.value)));("submissionMutation",(Option.mapx.submissionMutation~f:SubmissionMutation.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsubmissionMutation=(Option.map~f:SubmissionMutation.of_xml)(Xml.childxml_arg0"submissionMutation")inletvalue=CardValueValueString.of_xml(Xml.child_exn~context:context_xml_arg0"value")inletcardId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"cardId")inmake?submissionMutation~value~cardId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubmissionMutation=field_mapjson__"submissionMutation"SubmissionMutation.of_jsoninletvalue=field_map_exnjson__"value"CardValueValueString.of_jsoninletcardId=field_map_exnjson__"cardId"UUID.of_jsoninmake?submissionMutation~value~cardId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The value or result associated with a card in a Amazon Q App session."]moduleCardValueList=structtypenonrect=CardValue.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:20)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CardValue.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:CardValue.of_xml)letof_jsonj=list_of_json~kind:"CardValueList"~of_json:CardValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInteger=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_valueendmoduleCategory=structtypenonrect={id:UUID.toption[@ocaml.doc"The unique identifier of the category."];title:String_.toption[@ocaml.doc"The title or name of the category."];color:String_.toption[@ocaml.doc"The color of the category"];appCount:Integer.toption[@ocaml.doc"The number of published Amazon Q Apps associated with a category"]}letmake?id=fun?title->fun?color->fun?appCount->fun()->{id;title;color;appCount}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:UUID.to_value));("title",(Option.mapx.title~f:String_.to_value));("color",(Option.mapx.color~f:String_.to_value));("appCount",(Option.mapx.appCount~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letappCount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"appCount")inletcolor=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"color")inlettitle=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"title")inletid=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"id")inmake?appCount?color?title?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letappCount=field_mapjson__"appCount"Integer.of_jsoninletcolor=field_mapjson__"color"String_.of_jsoninlettitle=field_mapjson__"title"String_.of_jsoninletid=field_mapjson__"id"UUID.of_jsoninmake?appCount?color?title?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A category used to classify and filter library items for Amazon Q Apps."]moduleCategoriesList=structtypenonrect=Category.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(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:Category.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:Category.of_xml)letof_jsonj=list_of_json~kind:"CategoriesList"~of_json:Category.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCategoryIdList=structtypenonrect=UUID.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:UUID.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:UUID.of_xml)letof_jsonj=list_of_json~kind:"CategoryIdList"~of_json:UUID.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCategoryList=structtypenonrect=Category.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:Category.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:Category.of_xml)letof_jsonj=list_of_json~kind:"CategoryList"~of_json:Category.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleConflictException=structtypenonrect={message:String_.toption;resourceId:String_.toption[@ocaml.doc"The unique identifier of the resource"];resourceType:String_.toption[@ocaml.doc"The type of the resource"]}letmake?message=fun?resourceId->fun?resourceType->fun()->{message;resourceId;resourceType}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("resourceId",(Option.mapx.resourceId~f:String_.to_value));("resourceType",(Option.mapx.resourceType~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceType")inletresourceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceId")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"resourceType"String_.of_jsoninletresourceId=field_mapjson__"resourceId"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The requested operation could not be completed due to a conflict with the current state of the resource."]moduleContentTooLargeException=structtypenonrect={message:String_.toption;resourceId:String_.toption[@ocaml.doc"The unique identifier of the resource"];resourceType:String_.toption[@ocaml.doc"The type of the resource"]}letmake?message=fun?resourceId->fun?resourceType->fun()->{message;resourceId;resourceType}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("resourceId",(Option.mapx.resourceId~f:String_.to_value));("resourceType",(Option.mapx.resourceType~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceType")inletresourceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceId")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"resourceType"String_.of_jsoninletresourceId=field_mapjson__"resourceId"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The requested operation could not be completed because the content exceeds the maximum allowed size."]moduleSender=structtypenonrect=|USER|SYSTEM|Non_static_idofstringletmakei=iletto_string=function|USER->"USER"|SYSTEM->"SYSTEM"|Non_static_ids->sletof_string=function|"USER"->USER|"SYSTEM"->SYSTEM|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 Sender"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Sender"j)letto_json=simple_to_jsonto_valueendmoduleConversationMessageBodyString=structtypenonrect=stringletcontext_="ConversationMessageBodyString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:7000)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ConversationMessageBodyString"jletto_json=simple_to_jsonto_valueendmoduleConversationMessage=structtypenonrect={body:ConversationMessageBodyString.t[@ocaml.doc"The text content of the conversation message."];type_:Sender.t[@ocaml.doc"The type of the conversation message."]}letcontext_="ConversationMessage"letmake~body=fun~type_->fun()->{body;type_}letto_valuex=structure_to_value[("body",(Some(ConversationMessageBodyString.to_valuex.body)));("type",(Some(Sender.to_valuex.type_)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=Sender.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletbody=ConversationMessageBodyString.of_xml(Xml.child_exn~context:context_xml_arg0"body")inmake~type_~body()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_map_exnjson__"type"Sender.of_jsoninletbody=field_map_exnjson__"body"ConversationMessageBodyString.of_jsoninmake~type_~body()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A message in a conversation, used as input for generating an Amazon Q App definition."]moduleCreateLibraryItemInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];appId:UUID.t[@ocaml.doc"The unique identifier of the Amazon Q App to publish to the library."];appVersion:AppVersion.t[@ocaml.doc"The version of the Amazon Q App to publish to the library."];categories:CategoryIdList.t[@ocaml.doc"The categories to associate with the library item for easier discovery."]}letcontext_="CreateLibraryItemInput"letmake~instanceId=fun~appId->fun~appVersion->fun~categories->fun()->{instanceId;appId;appVersion;categories}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("appId",(Some(UUID.to_valuex.appId)));("appVersion",(Some(AppVersion.to_valuex.appVersion)));("categories",(Some(CategoryIdList.to_valuex.categories)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcategories=CategoryIdList.of_xml(Xml.child_exn~context:context_xml_arg0"categories")inletappVersion=AppVersion.of_xml(Xml.child_exn~context:context_xml_arg0"appVersion")inletappId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"appId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake~categories~appVersion~appId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcategories=field_map_exnjson__"categories"CategoryIdList.of_jsoninletappVersion=field_map_exnjson__"appVersion"AppVersion.of_jsoninletappId=field_map_exnjson__"appId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake~categories~appVersion~appId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new library item for an Amazon Q App, allowing it to be discovered and used by other allowed users."]moduleValidationException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input failed to satisfy the constraints specified by the service."]moduleUnauthorizedException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The client is not authenticated or authorized to perform the requested operation."]moduleThrottlingException=structtypenonrect={message:String_.toption;serviceCode:String_.toption[@ocaml.doc"The code for the service where the quota was exceeded"];quotaCode:String_.toption[@ocaml.doc"The code of the quota that was exceeded"];retryAfterSeconds:Integer.toption[@ocaml.doc"The number of seconds to wait before retrying the operation"]}letmake?message=fun?serviceCode->fun?quotaCode->fun?retryAfterSeconds->fun()->{message;serviceCode;quotaCode;retryAfterSeconds}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("serviceCode",(Option.mapx.serviceCode~f:String_.to_value));("quotaCode",(Option.mapx.quotaCode~f:String_.to_value));("Retry-After",(Option.mapx.retryAfterSeconds~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretryAfterSeconds=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"Retry-After")inletquotaCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"quotaCode")inletserviceCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceCode")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?retryAfterSeconds?quotaCode?serviceCode?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretryAfterSeconds=field_mapjson__"retryAfterSeconds"Integer.of_jsoninletquotaCode=field_mapjson__"quotaCode"String_.of_jsoninletserviceCode=field_mapjson__"serviceCode"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?retryAfterSeconds?quotaCode?serviceCode?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later."]moduleServiceQuotaExceededException=structtypenonrect={message:String_.toption;resourceId:String_.toption[@ocaml.doc"The unique identifier of the resource"];resourceType:String_.toption[@ocaml.doc"The type of the resource"];serviceCode:String_.toption[@ocaml.doc"The code for the service where the quota was exceeded"];quotaCode:String_.toption[@ocaml.doc"The code of the quota that was exceeded"]}letmake?message=fun?resourceId->fun?resourceType->fun?serviceCode->fun?quotaCode->fun()->{message;resourceId;resourceType;serviceCode;quotaCode}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("resourceId",(Option.mapx.resourceId~f:String_.to_value));("resourceType",(Option.mapx.resourceType~f:String_.to_value));("serviceCode",(Option.mapx.serviceCode~f:String_.to_value));("quotaCode",(Option.mapx.quotaCode~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letquotaCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"quotaCode")inletserviceCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceCode")inletresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceType")inletresourceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceId")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?quotaCode?serviceCode?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letquotaCode=field_mapjson__"quotaCode"String_.of_jsoninletserviceCode=field_mapjson__"serviceCode"String_.of_jsoninletresourceType=field_mapjson__"resourceType"String_.of_jsoninletresourceId=field_mapjson__"resourceId"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?quotaCode?serviceCode?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The requested operation could not be completed because it would exceed the service's quota or limit."]moduleResourceNotFoundException=structtypenonrect={message:String_.toption;resourceId:String_.toption[@ocaml.doc"The unique identifier of the resource"];resourceType:String_.toption[@ocaml.doc"The type of the resource"]}letmake?message=fun?resourceId->fun?resourceType->fun()->{message;resourceId;resourceType}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("resourceId",(Option.mapx.resourceId~f:String_.to_value));("resourceType",(Option.mapx.resourceType~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceType")inletresourceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceId")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"resourceType"String_.of_jsoninletresourceId=field_mapjson__"resourceId"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The requested resource could not be found."]moduleInternalServerException=structtypenonrect={message:String_.toption;retryAfterSeconds:Integer.toption[@ocaml.doc"The number of seconds to wait before retrying the operation"]}letmake?message=fun?retryAfterSeconds->fun()->{message;retryAfterSeconds}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("Retry-After",(Option.mapx.retryAfterSeconds~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretryAfterSeconds=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"Retry-After")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?retryAfterSeconds?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretryAfterSeconds=field_mapjson__"retryAfterSeconds"Integer.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?retryAfterSeconds?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An internal service error occurred while processing the request."]moduleCreateLibraryItemOutput=structtypenonrect={libraryItemId:UUID.toption[@ocaml.doc"The unique identifier of the new library item."];status:String_.toption[@ocaml.doc"The status of the new library item, such as \"Published\"."];createdAt:QAppsTimestamp.toption[@ocaml.doc"The date and time the library item was created."];createdBy:String_.toption[@ocaml.doc"The user who created the library item."];updatedAt:QAppsTimestamp.toption[@ocaml.doc"The date and time the library item was last updated."];updatedBy:String_.toption[@ocaml.doc"The user who last updated the library item."];ratingCount:Integer.toption[@ocaml.doc"The number of ratings the library item has received from users."];isVerified:Boolean.toption[@ocaml.doc"Indicates whether the library item has been verified."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?libraryItemId=fun?status->fun?createdAt->fun?createdBy->fun?updatedAt->fun?updatedBy->fun?ratingCount->fun?isVerified->fun()->{libraryItemId;status;createdAt;createdBy;updatedAt;updatedBy;ratingCount;isVerified}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("libraryItemId",(Option.mapx.libraryItemId~f:UUID.to_value));("status",(Option.mapx.status~f:String_.to_value));("createdAt",(Option.mapx.createdAt~f:QAppsTimestamp.to_value));("createdBy",(Option.mapx.createdBy~f:String_.to_value));("updatedAt",(Option.mapx.updatedAt~f:QAppsTimestamp.to_value));("updatedBy",(Option.mapx.updatedBy~f:String_.to_value));("ratingCount",(Option.mapx.ratingCount~f:Integer.to_value));("isVerified",(Option.mapx.isVerified~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letisVerified=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isVerified")inletratingCount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"ratingCount")inletupdatedBy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"updatedBy")inletupdatedAt=(Option.map~f:QAppsTimestamp.of_xml)(Xml.childxml_arg0"updatedAt")inletcreatedBy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"createdBy")inletcreatedAt=(Option.map~f:QAppsTimestamp.of_xml)(Xml.childxml_arg0"createdAt")inletstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"status")inletlibraryItemId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"libraryItemId")inmake?isVerified?ratingCount?updatedBy?updatedAt?createdBy?createdAt?status?libraryItemId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letisVerified=field_mapjson__"isVerified"Boolean.of_jsoninletratingCount=field_mapjson__"ratingCount"Integer.of_jsoninletupdatedBy=field_mapjson__"updatedBy"String_.of_jsoninletupdatedAt=field_mapjson__"updatedAt"QAppsTimestamp.of_jsoninletcreatedBy=field_mapjson__"createdBy"String_.of_jsoninletcreatedAt=field_mapjson__"createdAt"QAppsTimestamp.of_jsoninletstatus=field_mapjson__"status"String_.of_jsoninletlibraryItemId=field_mapjson__"libraryItemId"UUID.of_jsoninmake?isVerified?ratingCount?updatedBy?updatedAt?createdBy?createdAt?status?libraryItemId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new library item for an Amazon Q App, allowing it to be discovered and used by other allowed users."]moduleDocumentScope=structtypenonrect=|APPLICATION|SESSION|Non_static_idofstringletmakei=iletto_string=function|APPLICATION->"APPLICATION"|SESSION->"SESSION"|Non_static_ids->sletof_string=function|"APPLICATION"->APPLICATION|"SESSION"->SESSION|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 DocumentScope"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DocumentScope"j)letto_json=simple_to_jsonto_valueendmoduleCreatePresignedUrlInputFileContentsSha256String=structtypenonrect=stringletcontext_="CreatePresignedUrlInputFileContentsSha256String"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[A-Za-z0-9+/]{43}=$|^[A-Za-z0-9+/]{42}==$|^[A-Za-z0-9+/]{44}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CreatePresignedUrlInputFileContentsSha256String"jletto_json=simple_to_jsonto_valueendmoduleCreatePresignedUrlInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];cardId:UUID.t[@ocaml.doc"The unique identifier of the card the file is associated with."];appId:UUID.t[@ocaml.doc"The unique identifier of the Q App the file is associated with."];fileContentsSha256:CreatePresignedUrlInputFileContentsSha256String.t[@ocaml.doc"The Base64-encoded SHA-256 digest of the contents of the file to be uploaded."];fileName:Filename.t[@ocaml.doc"The name of the file to be uploaded."];scope:DocumentScope.t[@ocaml.doc"Whether the file is associated with a Q App definition or a specific Q App session."];sessionId:UUID.toption[@ocaml.doc"The unique identifier of the Q App session the file is associated with, if applicable."]}letcontext_="CreatePresignedUrlInput"letmake?sessionId=fun~instanceId->fun~cardId->fun~appId->fun~fileContentsSha256->fun~fileName->fun~scope->fun()->{sessionId;instanceId;cardId;appId;fileContentsSha256;fileName;scope}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("cardId",(Some(UUID.to_valuex.cardId)));("appId",(Some(UUID.to_valuex.appId)));("fileContentsSha256",(Some(CreatePresignedUrlInputFileContentsSha256String.to_valuex.fileContentsSha256)));("fileName",(Some(Filename.to_valuex.fileName)));("scope",(Some(DocumentScope.to_valuex.scope)));("sessionId",(Option.mapx.sessionId~f:UUID.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"sessionId")inletscope=DocumentScope.of_xml(Xml.child_exn~context:context_xml_arg0"scope")inletfileName=Filename.of_xml(Xml.child_exn~context:context_xml_arg0"fileName")inletfileContentsSha256=CreatePresignedUrlInputFileContentsSha256String.of_xml(Xml.child_exn~context:context_xml_arg0"fileContentsSha256")inletappId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"appId")inletcardId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"cardId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake?sessionId~scope~fileName~fileContentsSha256~appId~cardId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionId=field_mapjson__"sessionId"UUID.of_jsoninletscope=field_map_exnjson__"scope"DocumentScope.of_jsoninletfileName=field_map_exnjson__"fileName"Filename.of_jsoninletfileContentsSha256=field_map_exnjson__"fileContentsSha256"CreatePresignedUrlInputFileContentsSha256String.of_jsoninletappId=field_map_exnjson__"appId"UUID.of_jsoninletcardId=field_map_exnjson__"cardId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake?sessionId~scope~fileName~fileContentsSha256~appId~cardId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a presigned URL for an S3 POST operation to upload a file. You can use this URL to set a default file for a FileUploadCard in a Q App definition or to provide a file for a single Q App run. The scope parameter determines how the file will be used, either at the app definition level or the app session level. The IAM permissions are derived from the qapps:ImportDocument action. For more information on the IAM policy for Amazon Q Apps, see IAM permissions for using Amazon Q Apps."]modulePresignedUrlFields=structtypenonrect=(String_.t*String_.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((String_.of_stringchopped),(String_.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(String_.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:String_.of_string~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCreatePresignedUrlOutput=structtypenonrect={fileId:String_.toption[@ocaml.doc"The unique identifier assigned to the file to be uploaded."];presignedUrl:String_.toption[@ocaml.doc"The URL for a presigned S3 POST operation used to upload a file."];presignedUrlFields:PresignedUrlFields.toption[@ocaml.doc"The form fields to include in the presigned S3 POST operation used to upload a file."];presignedUrlExpiration:QAppsTimestamp.toption[@ocaml.doc"The date and time that the presigned URL will expire in ISO 8601 format."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?fileId=fun?presignedUrl->fun?presignedUrlFields->fun?presignedUrlExpiration->fun()->{fileId;presignedUrl;presignedUrlFields;presignedUrlExpiration}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("fileId",(Option.mapx.fileId~f:String_.to_value));("presignedUrl",(Option.mapx.presignedUrl~f:String_.to_value));("presignedUrlFields",(Option.mapx.presignedUrlFields~f:PresignedUrlFields.to_value));("presignedUrlExpiration",(Option.mapx.presignedUrlExpiration~f:QAppsTimestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpresignedUrlExpiration=(Option.map~f:QAppsTimestamp.of_xml)(Xml.childxml_arg0"presignedUrlExpiration")inletpresignedUrlFields=(Option.map~f:PresignedUrlFields.of_xml)(Xml.childxml_arg0"presignedUrlFields")inletpresignedUrl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"presignedUrl")inletfileId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"fileId")inmake?presignedUrlExpiration?presignedUrlFields?presignedUrl?fileId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpresignedUrlExpiration=field_mapjson__"presignedUrlExpiration"QAppsTimestamp.of_jsoninletpresignedUrlFields=field_mapjson__"presignedUrlFields"PresignedUrlFields.of_jsoninletpresignedUrl=field_mapjson__"presignedUrl"String_.of_jsoninletfileId=field_mapjson__"fileId"String_.of_jsoninmake?presignedUrlExpiration?presignedUrlFields?presignedUrl?fileId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a presigned URL for an S3 POST operation to upload a file. You can use this URL to set a default file for a FileUploadCard in a Q App definition or to provide a file for a single Q App run. The scope parameter determines how the file will be used, either at the app definition level or the app session level. The IAM permissions are derived from the qapps:ImportDocument action. For more information on the IAM policy for Amazon Q Apps, see IAM permissions for using Amazon Q Apps."]moduleTagMap=structtypenonrect=(String_.t*String_.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((String_.of_stringchopped),(String_.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(String_.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:String_.of_string~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDescription=structtypenonrect=stringletcontext_="Description"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Description"jletto_json=simple_to_jsonto_valueendmoduleCreateQAppInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];title:Title.t[@ocaml.doc"The title of the new Q App."];description:Description.toption[@ocaml.doc"The description of the new Q App."];appDefinition:AppDefinitionInput.t[@ocaml.doc"The definition of the new Q App, specifying the cards and flow."];tags:TagMap.toption[@ocaml.doc"Optional tags to associate with the new Q App."]}letcontext_="CreateQAppInput"letmake?description=fun?tags->fun~instanceId->fun~title->fun~appDefinition->fun()->{description;tags;instanceId;title;appDefinition}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("title",(Some(Title.to_valuex.title)));("description",(Option.mapx.description~f:Description.to_value));("appDefinition",(Some(AppDefinitionInput.to_valuex.appDefinition)));("tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"tags")inletappDefinition=AppDefinitionInput.of_xml(Xml.child_exn~context:context_xml_arg0"appDefinition")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"description")inlettitle=Title.of_xml(Xml.child_exn~context:context_xml_arg0"title")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake?tags~appDefinition?description~title~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagMap.of_jsoninletappDefinition=field_map_exnjson__"appDefinition"AppDefinitionInput.of_jsoninletdescription=field_mapjson__"description"Description.of_jsoninlettitle=field_map_exnjson__"title"Title.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake?tags~appDefinition?description~title~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new Amazon Q App based on the provided definition. The Q App definition specifies the cards and flow of the Q App. This operation also calculates the dependencies between the cards by inspecting the references in the prompts."]moduleCreateQAppOutput=structtypenonrect={appId:UUID.toption[@ocaml.doc"The unique identifier of the new Q App."];appArn:AppArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the new Q App."];title:Title.toption[@ocaml.doc"The title of the new Q App."];description:Description.toption[@ocaml.doc"The description of the new Q App."];initialPrompt:InitialPrompt.toption[@ocaml.doc"The initial prompt displayed when the Q App is started."];appVersion:AppVersion.toption[@ocaml.doc"The version of the new Q App."];status:AppStatus.toption[@ocaml.doc"The status of the new Q App, such as \"Created\"."];createdAt:QAppsTimestamp.toption[@ocaml.doc"The date and time the Q App was created."];createdBy:String_.toption[@ocaml.doc"The user who created the Q App."];updatedAt:QAppsTimestamp.toption[@ocaml.doc"The date and time the Q App was last updated."];updatedBy:String_.toption[@ocaml.doc"The user who last updated the Q App."];requiredCapabilities:AppRequiredCapabilities.toption[@ocaml.doc"The capabilities required to run the Q App, such as file upload or third-party integrations."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentTooLargeExceptionofContentTooLargeException.t|`InternalServerExceptionofInternalServerException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?appId=fun?appArn->fun?title->fun?description->fun?initialPrompt->fun?appVersion->fun?status->fun?createdAt->fun?createdBy->fun?updatedAt->fun?updatedBy->fun?requiredCapabilities->fun()->{appId;appArn;title;description;initialPrompt;appVersion;status;createdAt;createdBy;updatedAt;updatedBy;requiredCapabilities}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentTooLargeException"->`ContentTooLargeException(ContentTooLargeException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentTooLargeException"->`ContentTooLargeException(ContentTooLargeException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentTooLargeExceptione->`Assoc[("error",(`String"ContentTooLargeException"));("details",(ContentTooLargeException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("appId",(Option.mapx.appId~f:UUID.to_value));("appArn",(Option.mapx.appArn~f:AppArn.to_value));("title",(Option.mapx.title~f:Title.to_value));("description",(Option.mapx.description~f:Description.to_value));("initialPrompt",(Option.mapx.initialPrompt~f:InitialPrompt.to_value));("appVersion",(Option.mapx.appVersion~f:AppVersion.to_value));("status",(Option.mapx.status~f:AppStatus.to_value));("createdAt",(Option.mapx.createdAt~f:QAppsTimestamp.to_value));("createdBy",(Option.mapx.createdBy~f:String_.to_value));("updatedAt",(Option.mapx.updatedAt~f:QAppsTimestamp.to_value));("updatedBy",(Option.mapx.updatedBy~f:String_.to_value));("requiredCapabilities",(Option.mapx.requiredCapabilities~f:AppRequiredCapabilities.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrequiredCapabilities=(Option.map~f:AppRequiredCapabilities.of_xml)(Xml.childxml_arg0"requiredCapabilities")inletupdatedBy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"updatedBy")inletupdatedAt=(Option.map~f:QAppsTimestamp.of_xml)(Xml.childxml_arg0"updatedAt")inletcreatedBy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"createdBy")inletcreatedAt=(Option.map~f:QAppsTimestamp.of_xml)(Xml.childxml_arg0"createdAt")inletstatus=(Option.map~f:AppStatus.of_xml)(Xml.childxml_arg0"status")inletappVersion=(Option.map~f:AppVersion.of_xml)(Xml.childxml_arg0"appVersion")inletinitialPrompt=(Option.map~f:InitialPrompt.of_xml)(Xml.childxml_arg0"initialPrompt")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"description")inlettitle=(Option.map~f:Title.of_xml)(Xml.childxml_arg0"title")inletappArn=(Option.map~f:AppArn.of_xml)(Xml.childxml_arg0"appArn")inletappId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"appId")inmake?requiredCapabilities?updatedBy?updatedAt?createdBy?createdAt?status?appVersion?initialPrompt?description?title?appArn?appId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrequiredCapabilities=field_mapjson__"requiredCapabilities"AppRequiredCapabilities.of_jsoninletupdatedBy=field_mapjson__"updatedBy"String_.of_jsoninletupdatedAt=field_mapjson__"updatedAt"QAppsTimestamp.of_jsoninletcreatedBy=field_mapjson__"createdBy"String_.of_jsoninletcreatedAt=field_mapjson__"createdAt"QAppsTimestamp.of_jsoninletstatus=field_mapjson__"status"AppStatus.of_jsoninletappVersion=field_mapjson__"appVersion"AppVersion.of_jsoninletinitialPrompt=field_mapjson__"initialPrompt"InitialPrompt.of_jsoninletdescription=field_mapjson__"description"Description.of_jsoninlettitle=field_mapjson__"title"Title.of_jsoninletappArn=field_mapjson__"appArn"AppArn.of_jsoninletappId=field_mapjson__"appId"UUID.of_jsoninmake?requiredCapabilities?updatedBy?updatedAt?createdBy?createdAt?status?appVersion?initialPrompt?description?title?appArn?appId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new Amazon Q App based on the provided definition. The Q App definition specifies the cards and flow of the Q App. This operation also calculates the dependencies between the cards by inspecting the references in the prompts."]moduleDeleteLibraryItemInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];libraryItemId:UUID.t[@ocaml.doc"The unique identifier of the library item to delete."]}letcontext_="DeleteLibraryItemInput"letmake~instanceId=fun~libraryItemId->fun()->{instanceId;libraryItemId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("libraryItemId",(Some(UUID.to_valuex.libraryItemId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlibraryItemId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"libraryItemId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake~libraryItemId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlibraryItemId=field_map_exnjson__"libraryItemId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake~libraryItemId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a library item for an Amazon Q App, removing it from the library so it can no longer be discovered or used by other users."]moduleDeleteQAppInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];appId:UUID.t[@ocaml.doc"The unique identifier of the Q App to delete."]}letcontext_="DeleteQAppInput"letmake~instanceId=fun~appId->fun()->{instanceId;appId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("appId",(Some(UUID.to_valuex.appId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letappId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"appId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake~appId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letappId=field_map_exnjson__"appId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake~appId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an Amazon Q App owned by the user. If the Q App was previously published to the library, it is also removed from the library."]moduleDescribeQAppPermissionsInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];appId:UUID.t[@ocaml.doc"The unique identifier of the Amazon Q App for which to retrieve permissions."]}letcontext_="DescribeQAppPermissionsInput"letmake~instanceId=fun~appId->fun()->{instanceId;appId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("appId",(Some(UUID.to_valuex.appId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letappId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"appId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake~appId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letappId=field_map_exnjson__"appId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake~appId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes read permissions for a Amazon Q App in Amazon Q Business application environment instance."]modulePrincipalOutputUserTypeEnum=structtypenonrect=|Owner|User|Non_static_idofstringletmakei=iletto_string=function|Owner->"owner"|User->"user"|Non_static_ids->sletof_string=function|"owner"->Owner|"user"->User|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration PrincipalOutputUserTypeEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PrincipalOutputUserTypeEnum"j)letto_json=simple_to_jsonto_valueendmodulePrincipalOutputUserIdString=structtypenonrect=stringletcontext_="PrincipalOutputUserIdString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(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:"PrincipalOutputUserIdString"jletto_json=simple_to_jsonto_valueendmodulePrincipalOutputEmailString=structtypenonrect=stringletcontext_="PrincipalOutputEmailString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(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:"PrincipalOutputEmailString"jletto_json=simple_to_jsonto_valueendmodulePrincipalOutput=structtypenonrect={userId:PrincipalOutputUserIdString.toption[@ocaml.doc"The unique identifier of the user."];userType:PrincipalOutputUserTypeEnum.toption[@ocaml.doc"The type of the user."];email:PrincipalOutputEmailString.toption[@ocaml.doc"The email address associated with the user."]}letmake?userId=fun?userType->fun?email->fun()->{userId;userType;email}letto_valuex=structure_to_value[("userId",(Option.mapx.userId~f:PrincipalOutputUserIdString.to_value));("userType",(Option.mapx.userType~f:PrincipalOutputUserTypeEnum.to_value));("email",(Option.mapx.email~f:PrincipalOutputEmailString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letemail=(Option.map~f:PrincipalOutputEmailString.of_xml)(Xml.childxml_arg0"email")inletuserType=(Option.map~f:PrincipalOutputUserTypeEnum.of_xml)(Xml.childxml_arg0"userType")inletuserId=(Option.map~f:PrincipalOutputUserIdString.of_xml)(Xml.childxml_arg0"userId")inmake?email?userType?userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letemail=field_mapjson__"email"PrincipalOutputEmailString.of_jsoninletuserType=field_mapjson__"userType"PrincipalOutputUserTypeEnum.of_jsoninletuserId=field_mapjson__"userId"PrincipalOutputUserIdString.of_jsoninmake?email?userType?userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The principal for which the permission applies."]modulePermissionOutputActionEnum=structtypenonrect=|Read|Write|Non_static_idofstringletmakei=iletto_string=function|Read->"read"|Write->"write"|Non_static_ids->sletof_string=function|"read"->Read|"write"->Write|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 PermissionOutputActionEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PermissionOutputActionEnum"j)letto_json=simple_to_jsonto_valueendmodulePermissionOutput=structtypenonrect={action:PermissionOutputActionEnum.toption[@ocaml.doc"The action associated with the permission."];principal:PrincipalOutput.toption[@ocaml.doc"The principal user to which the permission applies."]}letmake?action=fun?principal->fun()->{action;principal}letto_valuex=structure_to_value[("action",(Option.mapx.action~f:PermissionOutputActionEnum.to_value));("principal",(Option.mapx.principal~f:PrincipalOutput.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprincipal=(Option.map~f:PrincipalOutput.of_xml)(Xml.childxml_arg0"principal")inletaction=(Option.map~f:PermissionOutputActionEnum.of_xml)(Xml.childxml_arg0"action")inmake?principal?action()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprincipal=field_mapjson__"principal"PrincipalOutput.of_jsoninletaction=field_mapjson__"action"PermissionOutputActionEnum.of_jsoninmake?principal?action()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The permission granted to the Amazon Q App."]modulePermissionsOutputList=structtypenonrect=PermissionOutput.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PermissionOutput.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:PermissionOutput.of_xml)letof_jsonj=list_of_json~kind:"PermissionsOutputList"~of_json:PermissionOutput.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDescribeQAppPermissionsOutput=structtypenonrect={resourceArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon Q App for which permissions are returned."];appId:String_.toption[@ocaml.doc"The unique identifier of the Amazon Q App for which permissions are returned."];permissions:PermissionsOutputList.toption[@ocaml.doc"The list of permissions granted for the Amazon Q App."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?resourceArn=fun?appId->fun?permissions->fun()->{resourceArn;appId;permissions}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("resourceArn",(Option.mapx.resourceArn~f:String_.to_value));("appId",(Option.mapx.appId~f:String_.to_value));("permissions",(Option.mapx.permissions~f:PermissionsOutputList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpermissions=(Option.map~f:PermissionsOutputList.of_xml)(Xml.childxml_arg0"permissions")inletappId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"appId")inletresourceArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceArn")inmake?permissions?appId?resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpermissions=field_mapjson__"permissions"PermissionsOutputList.of_jsoninletappId=field_mapjson__"appId"String_.of_jsoninletresourceArn=field_mapjson__"resourceArn"String_.of_jsoninmake?permissions?appId?resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes read permissions for a Amazon Q App in Amazon Q Business application environment instance."]moduleDisassociateLibraryItemReviewInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];libraryItemId:UUID.t[@ocaml.doc"The unique identifier of the library item to remove the review from."]}letcontext_="DisassociateLibraryItemReviewInput"letmake~instanceId=fun~libraryItemId->fun()->{instanceId;libraryItemId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("libraryItemId",(Some(UUID.to_valuex.libraryItemId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlibraryItemId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"libraryItemId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake~libraryItemId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlibraryItemId=field_map_exnjson__"libraryItemId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake~libraryItemId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes a rating or review previously submitted by the user for a library item."]moduleDisassociateQAppFromUserInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];appId:UUID.t[@ocaml.doc"The unique identifier of the Q App to disassociate from the user."]}letcontext_="DisassociateQAppFromUserInput"letmake~instanceId=fun~appId->fun()->{instanceId;appId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("appId",(Some(UUID.to_valuex.appId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letappId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"appId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake~appId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letappId=field_map_exnjson__"appId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake~appId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disassociates a Q App from a user removing the user's access to run the Q App."]moduleExportQAppSessionDataInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];sessionId:UUID.t[@ocaml.doc"The unique identifier of the Q App data collection session."]}letcontext_="ExportQAppSessionDataInput"letmake~instanceId=fun~sessionId->fun()->{instanceId;sessionId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("sessionId",(Some(UUID.to_valuex.sessionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"sessionId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake~sessionId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionId=field_map_exnjson__"sessionId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake~sessionId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Exports the collected data of a Q App data collection session."]moduleExportQAppSessionDataOutput=structtypenonrect={csvFileLink:String_.toption[@ocaml.doc"The link where the exported Q App session data can be downloaded from."];expiresAt:QAppsTimestamp.toption[@ocaml.doc"The date and time when the link for the exported Q App session data expires."];sessionArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Q App data collection session."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?csvFileLink=fun?expiresAt->fun?sessionArn->fun()->{csvFileLink;expiresAt;sessionArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("csvFileLink",(Option.mapx.csvFileLink~f:String_.to_value));("expiresAt",(Option.mapx.expiresAt~f:QAppsTimestamp.to_value));("sessionArn",(Option.mapx.sessionArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"sessionArn")inletexpiresAt=(Option.map~f:QAppsTimestamp.of_xml)(Xml.childxml_arg0"expiresAt")inletcsvFileLink=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"csvFileLink")inmake?sessionArn?expiresAt?csvFileLink()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionArn=field_mapjson__"sessionArn"String_.of_jsoninletexpiresAt=field_mapjson__"expiresAt"QAppsTimestamp.of_jsoninletcsvFileLink=field_mapjson__"csvFileLink"String_.of_jsoninmake?sessionArn?expiresAt?csvFileLink()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Exports the collected data of a Q App data collection session."]moduleGetLibraryItemInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];libraryItemId:UUID.t[@ocaml.doc"The unique identifier of the library item to retrieve."];appId:UUID.toption[@ocaml.doc"The unique identifier of the Amazon Q App associated with the library item."]}letcontext_="GetLibraryItemInput"letmake?appId=fun~instanceId->fun~libraryItemId->fun()->{appId;instanceId;libraryItemId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("libraryItemId",(Some(UUID.to_valuex.libraryItemId)));("appId",(Option.mapx.appId~f:UUID.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letappId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"appId")inletlibraryItemId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"libraryItemId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake?appId~libraryItemId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letappId=field_mapjson__"appId"UUID.of_jsoninletlibraryItemId=field_map_exnjson__"libraryItemId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake?appId~libraryItemId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details about a library item for an Amazon Q App, including its metadata, categories, ratings, and usage statistics."]moduleGetLibraryItemOutput=structtypenonrect={libraryItemId:UUID.toption[@ocaml.doc"The unique identifier of the library item."];appId:UUID.toption[@ocaml.doc"The unique identifier of the Q App associated with the library item."];appVersion:AppVersion.toption[@ocaml.doc"The version of the Q App associated with the library item."];categories:CategoryList.toption[@ocaml.doc"The categories associated with the library item for discovery."];status:String_.toption[@ocaml.doc"The status of the library item, such as \"Published\"."];createdAt:QAppsTimestamp.toption[@ocaml.doc"The date and time the library item was created."];createdBy:String_.toption[@ocaml.doc"The user who created the library item."];updatedAt:QAppsTimestamp.toption[@ocaml.doc"The date and time the library item was last updated."];updatedBy:String_.toption[@ocaml.doc"The user who last updated the library item."];ratingCount:Integer.toption[@ocaml.doc"The number of ratings the library item has received from users."];isRatedByUser:Boolean.toption[@ocaml.doc"Whether the current user has rated the library item."];userCount:Integer.toption[@ocaml.doc"The number of users who have associated the Q App with their account."];isVerified:Boolean.toption[@ocaml.doc"Indicates whether the library item has been verified."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?libraryItemId=fun?appId->fun?appVersion->fun?categories->fun?status->fun?createdAt->fun?createdBy->fun?updatedAt->fun?updatedBy->fun?ratingCount->fun?isRatedByUser->fun?userCount->fun?isVerified->fun()->{libraryItemId;appId;appVersion;categories;status;createdAt;createdBy;updatedAt;updatedBy;ratingCount;isRatedByUser;userCount;isVerified}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("libraryItemId",(Option.mapx.libraryItemId~f:UUID.to_value));("appId",(Option.mapx.appId~f:UUID.to_value));("appVersion",(Option.mapx.appVersion~f:AppVersion.to_value));("categories",(Option.mapx.categories~f:CategoryList.to_value));("status",(Option.mapx.status~f:String_.to_value));("createdAt",(Option.mapx.createdAt~f:QAppsTimestamp.to_value));("createdBy",(Option.mapx.createdBy~f:String_.to_value));("updatedAt",(Option.mapx.updatedAt~f:QAppsTimestamp.to_value));("updatedBy",(Option.mapx.updatedBy~f:String_.to_value));("ratingCount",(Option.mapx.ratingCount~f:Integer.to_value));("isRatedByUser",(Option.mapx.isRatedByUser~f:Boolean.to_value));("userCount",(Option.mapx.userCount~f:Integer.to_value));("isVerified",(Option.mapx.isVerified~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letisVerified=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isVerified")inletuserCount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"userCount")inletisRatedByUser=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isRatedByUser")inletratingCount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"ratingCount")inletupdatedBy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"updatedBy")inletupdatedAt=(Option.map~f:QAppsTimestamp.of_xml)(Xml.childxml_arg0"updatedAt")inletcreatedBy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"createdBy")inletcreatedAt=(Option.map~f:QAppsTimestamp.of_xml)(Xml.childxml_arg0"createdAt")inletstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"status")inletcategories=(Option.map~f:CategoryList.of_xml)(Xml.childxml_arg0"categories")inletappVersion=(Option.map~f:AppVersion.of_xml)(Xml.childxml_arg0"appVersion")inletappId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"appId")inletlibraryItemId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"libraryItemId")inmake?isVerified?userCount?isRatedByUser?ratingCount?updatedBy?updatedAt?createdBy?createdAt?status?categories?appVersion?appId?libraryItemId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letisVerified=field_mapjson__"isVerified"Boolean.of_jsoninletuserCount=field_mapjson__"userCount"Integer.of_jsoninletisRatedByUser=field_mapjson__"isRatedByUser"Boolean.of_jsoninletratingCount=field_mapjson__"ratingCount"Integer.of_jsoninletupdatedBy=field_mapjson__"updatedBy"String_.of_jsoninletupdatedAt=field_mapjson__"updatedAt"QAppsTimestamp.of_jsoninletcreatedBy=field_mapjson__"createdBy"String_.of_jsoninletcreatedAt=field_mapjson__"createdAt"QAppsTimestamp.of_jsoninletstatus=field_mapjson__"status"String_.of_jsoninletcategories=field_mapjson__"categories"CategoryList.of_jsoninletappVersion=field_mapjson__"appVersion"AppVersion.of_jsoninletappId=field_mapjson__"appId"UUID.of_jsoninletlibraryItemId=field_mapjson__"libraryItemId"UUID.of_jsoninmake?isVerified?userCount?isRatedByUser?ratingCount?updatedBy?updatedAt?createdBy?createdAt?status?categories?appVersion?appId?libraryItemId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details about a library item for an Amazon Q App, including its metadata, categories, ratings, and usage statistics."]moduleGetQAppInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];appId:UUID.t[@ocaml.doc"The unique identifier of the Q App to retrieve."];appVersion:AppVersion.toption[@ocaml.doc"The version of the Q App."]}letcontext_="GetQAppInput"letmake?appVersion=fun~instanceId->fun~appId->fun()->{appVersion;instanceId;appId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("appId",(Some(UUID.to_valuex.appId)));("appVersion",(Option.mapx.appVersion~f:AppVersion.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letappVersion=(Option.map~f:AppVersion.of_xml)(Xml.childxml_arg0"appVersion")inletappId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"appId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake?appVersion~appId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letappVersion=field_mapjson__"appVersion"AppVersion.of_jsoninletappId=field_map_exnjson__"appId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake?appVersion~appId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the full details of an Q App, including its definition specifying the cards and flow."]moduleGetQAppOutput=structtypenonrect={appId:UUID.toption[@ocaml.doc"The unique identifier of the Q App."];appArn:AppArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Q App."];title:Title.toption[@ocaml.doc"The title of the Q App."];description:Description.toption[@ocaml.doc"The description of the Q App."];initialPrompt:InitialPrompt.toption[@ocaml.doc"The initial prompt displayed when the Q App is started."];appVersion:AppVersion.toption[@ocaml.doc"The version of the Q App."];status:AppStatus.toption[@ocaml.doc"The status of the Q App."];createdAt:QAppsTimestamp.toption[@ocaml.doc"The date and time the Q App was created."];createdBy:String_.toption[@ocaml.doc"The user who created the Q App."];updatedAt:QAppsTimestamp.toption[@ocaml.doc"The date and time the Q App was last updated."];updatedBy:String_.toption[@ocaml.doc"The user who last updated the Q App."];requiredCapabilities:AppRequiredCapabilities.toption[@ocaml.doc"The capabilities required to run the Q App, such as file upload or third-party integrations."];appDefinition:AppDefinition.toption[@ocaml.doc"The full definition of the Q App, specifying the cards and flow."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?appId=fun?appArn->fun?title->fun?description->fun?initialPrompt->fun?appVersion->fun?status->fun?createdAt->fun?createdBy->fun?updatedAt->fun?updatedBy->fun?requiredCapabilities->fun?appDefinition->fun()->{appId;appArn;title;description;initialPrompt;appVersion;status;createdAt;createdBy;updatedAt;updatedBy;requiredCapabilities;appDefinition}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("appId",(Option.mapx.appId~f:UUID.to_value));("appArn",(Option.mapx.appArn~f:AppArn.to_value));("title",(Option.mapx.title~f:Title.to_value));("description",(Option.mapx.description~f:Description.to_value));("initialPrompt",(Option.mapx.initialPrompt~f:InitialPrompt.to_value));("appVersion",(Option.mapx.appVersion~f:AppVersion.to_value));("status",(Option.mapx.status~f:AppStatus.to_value));("createdAt",(Option.mapx.createdAt~f:QAppsTimestamp.to_value));("createdBy",(Option.mapx.createdBy~f:String_.to_value));("updatedAt",(Option.mapx.updatedAt~f:QAppsTimestamp.to_value));("updatedBy",(Option.mapx.updatedBy~f:String_.to_value));("requiredCapabilities",(Option.mapx.requiredCapabilities~f:AppRequiredCapabilities.to_value));("appDefinition",(Option.mapx.appDefinition~f:AppDefinition.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letappDefinition=(Option.map~f:AppDefinition.of_xml)(Xml.childxml_arg0"appDefinition")inletrequiredCapabilities=(Option.map~f:AppRequiredCapabilities.of_xml)(Xml.childxml_arg0"requiredCapabilities")inletupdatedBy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"updatedBy")inletupdatedAt=(Option.map~f:QAppsTimestamp.of_xml)(Xml.childxml_arg0"updatedAt")inletcreatedBy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"createdBy")inletcreatedAt=(Option.map~f:QAppsTimestamp.of_xml)(Xml.childxml_arg0"createdAt")inletstatus=(Option.map~f:AppStatus.of_xml)(Xml.childxml_arg0"status")inletappVersion=(Option.map~f:AppVersion.of_xml)(Xml.childxml_arg0"appVersion")inletinitialPrompt=(Option.map~f:InitialPrompt.of_xml)(Xml.childxml_arg0"initialPrompt")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"description")inlettitle=(Option.map~f:Title.of_xml)(Xml.childxml_arg0"title")inletappArn=(Option.map~f:AppArn.of_xml)(Xml.childxml_arg0"appArn")inletappId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"appId")inmake?appDefinition?requiredCapabilities?updatedBy?updatedAt?createdBy?createdAt?status?appVersion?initialPrompt?description?title?appArn?appId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letappDefinition=field_mapjson__"appDefinition"AppDefinition.of_jsoninletrequiredCapabilities=field_mapjson__"requiredCapabilities"AppRequiredCapabilities.of_jsoninletupdatedBy=field_mapjson__"updatedBy"String_.of_jsoninletupdatedAt=field_mapjson__"updatedAt"QAppsTimestamp.of_jsoninletcreatedBy=field_mapjson__"createdBy"String_.of_jsoninletcreatedAt=field_mapjson__"createdAt"QAppsTimestamp.of_jsoninletstatus=field_mapjson__"status"AppStatus.of_jsoninletappVersion=field_mapjson__"appVersion"AppVersion.of_jsoninletinitialPrompt=field_mapjson__"initialPrompt"InitialPrompt.of_jsoninletdescription=field_mapjson__"description"Description.of_jsoninlettitle=field_mapjson__"title"Title.of_jsoninletappArn=field_mapjson__"appArn"AppArn.of_jsoninletappId=field_mapjson__"appId"UUID.of_jsoninmake?appDefinition?requiredCapabilities?updatedBy?updatedAt?createdBy?createdAt?status?appVersion?initialPrompt?description?title?appArn?appId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the full details of an Q App, including its definition specifying the cards and flow."]moduleGetQAppSessionInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];sessionId:UUID.t[@ocaml.doc"The unique identifier of the Q App session to retrieve."]}letcontext_="GetQAppSessionInput"letmake~instanceId=fun~sessionId->fun()->{instanceId;sessionId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("sessionId",(Some(UUID.to_valuex.sessionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"sessionId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake~sessionId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionId=field_map_exnjson__"sessionId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake~sessionId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the current state and results for an active session of an Amazon Q App."]moduleGetQAppSessionMetadataInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];sessionId:UUID.t[@ocaml.doc"The unique identifier of the Q App session."]}letcontext_="GetQAppSessionMetadataInput"letmake~instanceId=fun~sessionId->fun()->{instanceId;sessionId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("sessionId",(Some(UUID.to_valuex.sessionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"sessionId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake~sessionId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionId=field_map_exnjson__"sessionId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake~sessionId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the current configuration of a Q App session."]moduleSessionSharingRevealCards=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_valueendmoduleSessionSharingEnabled=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_valueendmoduleSessionSharingAcceptResponses=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_valueendmoduleSessionSharingConfiguration=structtypenonrect={enabled:SessionSharingEnabled.t[@ocaml.doc"Indicates whether an Q App session is shareable with other users."];acceptResponses:SessionSharingAcceptResponses.toption[@ocaml.doc"Indicates whether an Q App session can accept responses from users."];revealCards:SessionSharingRevealCards.toption[@ocaml.doc"Indicates whether collected responses for an Q App session are revealed for all users."]}letcontext_="SessionSharingConfiguration"letmake?acceptResponses=fun?revealCards->fun~enabled->fun()->{acceptResponses;revealCards;enabled}letto_valuex=structure_to_value[("enabled",(Some(SessionSharingEnabled.to_valuex.enabled)));("acceptResponses",(Option.mapx.acceptResponses~f:SessionSharingAcceptResponses.to_value));("revealCards",(Option.mapx.revealCards~f:SessionSharingRevealCards.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrevealCards=(Option.map~f:SessionSharingRevealCards.of_xml)(Xml.childxml_arg0"revealCards")inletacceptResponses=(Option.map~f:SessionSharingAcceptResponses.of_xml)(Xml.childxml_arg0"acceptResponses")inletenabled=SessionSharingEnabled.of_xml(Xml.child_exn~context:context_xml_arg0"enabled")inmake?revealCards?acceptResponses~enabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrevealCards=field_mapjson__"revealCards"SessionSharingRevealCards.of_jsoninletacceptResponses=field_mapjson__"acceptResponses"SessionSharingAcceptResponses.of_jsoninletenabled=field_map_exnjson__"enabled"SessionSharingEnabled.of_jsoninmake?revealCards?acceptResponses~enabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The sharing configuration of an Amazon Q App data collection session."]moduleSessionName=structtypenonrect=stringletcontext_="SessionName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SessionName"jletto_json=simple_to_jsonto_valueendmoduleGetQAppSessionMetadataOutput=structtypenonrect={sessionId:UUID.toption[@ocaml.doc"The unique identifier of the Q App session."];sessionArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Q App session."];sessionName:SessionName.toption[@ocaml.doc"The name of the Q App session."];sharingConfiguration:SessionSharingConfiguration.toption[@ocaml.doc"The sharing configuration of the Q App data collection session."];sessionOwner:Boolean.toption[@ocaml.doc"Indicates whether the current user is the owner of the Q App session."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?sessionId=fun?sessionArn->fun?sessionName->fun?sharingConfiguration->fun?sessionOwner->fun()->{sessionId;sessionArn;sessionName;sharingConfiguration;sessionOwner}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("sessionId",(Option.mapx.sessionId~f:UUID.to_value));("sessionArn",(Option.mapx.sessionArn~f:String_.to_value));("sessionName",(Option.mapx.sessionName~f:SessionName.to_value));("sharingConfiguration",(Option.mapx.sharingConfiguration~f:SessionSharingConfiguration.to_value));("sessionOwner",(Option.mapx.sessionOwner~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionOwner=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"sessionOwner")inletsharingConfiguration=(Option.map~f:SessionSharingConfiguration.of_xml)(Xml.childxml_arg0"sharingConfiguration")inletsessionName=(Option.map~f:SessionName.of_xml)(Xml.childxml_arg0"sessionName")inletsessionArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"sessionArn")inletsessionId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"sessionId")inmake?sessionOwner?sharingConfiguration?sessionName?sessionArn?sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionOwner=field_mapjson__"sessionOwner"Boolean.of_jsoninletsharingConfiguration=field_mapjson__"sharingConfiguration"SessionSharingConfiguration.of_jsoninletsessionName=field_mapjson__"sessionName"SessionName.of_jsoninletsessionArn=field_mapjson__"sessionArn"String_.of_jsoninletsessionId=field_mapjson__"sessionId"UUID.of_jsoninmake?sessionOwner?sharingConfiguration?sessionName?sessionArn?sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the current configuration of a Q App session."]moduleGetQAppSessionOutput=structtypenonrect={sessionId:String_.toption[@ocaml.doc"The unique identifier of the Q App session."];sessionArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Q App session."];sessionName:SessionName.toption[@ocaml.doc"The name of the Q App session."];appVersion:AppVersion.toption[@ocaml.doc"The version of the Q App used for the session."];latestPublishedAppVersion:AppVersion.toption[@ocaml.doc"The latest published version of the Q App used for the session."];status:ExecutionStatus.toption[@ocaml.doc"The current status of the Q App session."];cardStatus:CardStatusMap.toption[@ocaml.doc"The current status for each card in the Q App session."];userIsHost:Boolean.toption[@ocaml.doc"Indicates whether the current user is the owner of the Q App data collection session."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?sessionId=fun?sessionArn->fun?sessionName->fun?appVersion->fun?latestPublishedAppVersion->fun?status->fun?cardStatus->fun?userIsHost->fun()->{sessionId;sessionArn;sessionName;appVersion;latestPublishedAppVersion;status;cardStatus;userIsHost}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("sessionId",(Option.mapx.sessionId~f:String_.to_value));("sessionArn",(Option.mapx.sessionArn~f:String_.to_value));("sessionName",(Option.mapx.sessionName~f:SessionName.to_value));("appVersion",(Option.mapx.appVersion~f:AppVersion.to_value));("latestPublishedAppVersion",(Option.mapx.latestPublishedAppVersion~f:AppVersion.to_value));("status",(Option.mapx.status~f:ExecutionStatus.to_value));("cardStatus",(Option.mapx.cardStatus~f:CardStatusMap.to_value));("userIsHost",(Option.mapx.userIsHost~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserIsHost=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"userIsHost")inletcardStatus=(Option.map~f:CardStatusMap.of_xml)(Xml.childxml_arg0"cardStatus")inletstatus=(Option.map~f:ExecutionStatus.of_xml)(Xml.childxml_arg0"status")inletlatestPublishedAppVersion=(Option.map~f:AppVersion.of_xml)(Xml.childxml_arg0"latestPublishedAppVersion")inletappVersion=(Option.map~f:AppVersion.of_xml)(Xml.childxml_arg0"appVersion")inletsessionName=(Option.map~f:SessionName.of_xml)(Xml.childxml_arg0"sessionName")inletsessionArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"sessionArn")inletsessionId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"sessionId")inmake?userIsHost?cardStatus?status?latestPublishedAppVersion?appVersion?sessionName?sessionArn?sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserIsHost=field_mapjson__"userIsHost"Boolean.of_jsoninletcardStatus=field_mapjson__"cardStatus"CardStatusMap.of_jsoninletstatus=field_mapjson__"status"ExecutionStatus.of_jsoninletlatestPublishedAppVersion=field_mapjson__"latestPublishedAppVersion"AppVersion.of_jsoninletappVersion=field_mapjson__"appVersion"AppVersion.of_jsoninletsessionName=field_mapjson__"sessionName"SessionName.of_jsoninletsessionArn=field_mapjson__"sessionArn"String_.of_jsoninletsessionId=field_mapjson__"sessionId"String_.of_jsoninmake?userIsHost?cardStatus?status?latestPublishedAppVersion?appVersion?sessionName?sessionArn?sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the current state and results for an active session of an Amazon Q App."]moduleImportDocumentInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];cardId:UUID.t[@ocaml.doc"The unique identifier of the card the file is associated with."];appId:UUID.t[@ocaml.doc"The unique identifier of the Q App the file is associated with."];fileContentsBase64:String_.t[@ocaml.doc"The base64-encoded contents of the file to upload."];fileName:Filename.t[@ocaml.doc"The name of the file being uploaded."];scope:DocumentScope.t[@ocaml.doc"Whether the file is associated with a Q App definition or a specific Q App session."];sessionId:UUID.toption[@ocaml.doc"The unique identifier of the Q App session the file is associated with, if applicable."]}letcontext_="ImportDocumentInput"letmake?sessionId=fun~instanceId->fun~cardId->fun~appId->fun~fileContentsBase64->fun~fileName->fun~scope->fun()->{sessionId;instanceId;cardId;appId;fileContentsBase64;fileName;scope}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("cardId",(Some(UUID.to_valuex.cardId)));("appId",(Some(UUID.to_valuex.appId)));("fileContentsBase64",(Some(String_.to_valuex.fileContentsBase64)));("fileName",(Some(Filename.to_valuex.fileName)));("scope",(Some(DocumentScope.to_valuex.scope)));("sessionId",(Option.mapx.sessionId~f:UUID.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"sessionId")inletscope=DocumentScope.of_xml(Xml.child_exn~context:context_xml_arg0"scope")inletfileName=Filename.of_xml(Xml.child_exn~context:context_xml_arg0"fileName")inletfileContentsBase64=String_.of_xml(Xml.child_exn~context:context_xml_arg0"fileContentsBase64")inletappId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"appId")inletcardId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"cardId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake?sessionId~scope~fileName~fileContentsBase64~appId~cardId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionId=field_mapjson__"sessionId"UUID.of_jsoninletscope=field_map_exnjson__"scope"DocumentScope.of_jsoninletfileName=field_map_exnjson__"fileName"Filename.of_jsoninletfileContentsBase64=field_map_exnjson__"fileContentsBase64"String_.of_jsoninletappId=field_map_exnjson__"appId"UUID.of_jsoninletcardId=field_map_exnjson__"cardId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake?sessionId~scope~fileName~fileContentsBase64~appId~cardId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Uploads a file that can then be used either as a default in a FileUploadCard from Q App definition or as a file that is used inside a single Q App run. The purpose of the document is determined by a scope parameter that indicates whether it is at the app definition level or at the app session level."]moduleImportDocumentOutput=structtypenonrect={fileId:String_.toption[@ocaml.doc"The unique identifier assigned to the uploaded file."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ContentTooLargeExceptionofContentTooLargeException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?fileId=fun()->{fileId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ContentTooLargeException"->`ContentTooLargeException(ContentTooLargeException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ContentTooLargeException"->`ContentTooLargeException(ContentTooLargeException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ContentTooLargeExceptione->`Assoc[("error",(`String"ContentTooLargeException"));("details",(ContentTooLargeException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("fileId",(Option.mapx.fileId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfileId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"fileId")inmake?fileId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfileId=field_mapjson__"fileId"String_.of_jsoninmake?fileId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Uploads a file that can then be used either as a default in a FileUploadCard from Q App definition or as a file that is used inside a single Q App run. The purpose of the document is determined by a scope parameter that indicates whether it is at the app definition level or at the app session level."]moduleLibraryItemMember=structtypenonrect={libraryItemId:UUID.toption[@ocaml.doc"The unique identifier of the library item."];appId:UUID.toption[@ocaml.doc"The unique identifier of the Q App associated with the library item."];appVersion:AppVersion.toption[@ocaml.doc"The version of the Q App associated with the library item."];categories:CategoryList.toption[@ocaml.doc"The categories associated with the library item."];status:String_.toption[@ocaml.doc"The status of the library item."];createdAt:QAppsTimestamp.toption[@ocaml.doc"The date and time the library item was created."];createdBy:String_.toption[@ocaml.doc"The user who created the library item."];updatedAt:QAppsTimestamp.toption[@ocaml.doc"The date and time the library item was last updated."];updatedBy:String_.toption[@ocaml.doc"The user who last updated the library item."];ratingCount:Integer.toption[@ocaml.doc"The number of ratings the library item has received."];isRatedByUser:Boolean.toption[@ocaml.doc"Whether the current user has rated the library item."];userCount:Integer.toption[@ocaml.doc"The number of users who have the associated Q App."];isVerified:Boolean.toption[@ocaml.doc"Indicates whether the library item has been verified."]}letmake?libraryItemId=fun?appId->fun?appVersion->fun?categories->fun?status->fun?createdAt->fun?createdBy->fun?updatedAt->fun?updatedBy->fun?ratingCount->fun?isRatedByUser->fun?userCount->fun?isVerified->fun()->{libraryItemId;appId;appVersion;categories;status;createdAt;createdBy;updatedAt;updatedBy;ratingCount;isRatedByUser;userCount;isVerified}letto_valuex=structure_to_value[("libraryItemId",(Option.mapx.libraryItemId~f:UUID.to_value));("appId",(Option.mapx.appId~f:UUID.to_value));("appVersion",(Option.mapx.appVersion~f:AppVersion.to_value));("categories",(Option.mapx.categories~f:CategoryList.to_value));("status",(Option.mapx.status~f:String_.to_value));("createdAt",(Option.mapx.createdAt~f:QAppsTimestamp.to_value));("createdBy",(Option.mapx.createdBy~f:String_.to_value));("updatedAt",(Option.mapx.updatedAt~f:QAppsTimestamp.to_value));("updatedBy",(Option.mapx.updatedBy~f:String_.to_value));("ratingCount",(Option.mapx.ratingCount~f:Integer.to_value));("isRatedByUser",(Option.mapx.isRatedByUser~f:Boolean.to_value));("userCount",(Option.mapx.userCount~f:Integer.to_value));("isVerified",(Option.mapx.isVerified~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letisVerified=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isVerified")inletuserCount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"userCount")inletisRatedByUser=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isRatedByUser")inletratingCount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"ratingCount")inletupdatedBy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"updatedBy")inletupdatedAt=(Option.map~f:QAppsTimestamp.of_xml)(Xml.childxml_arg0"updatedAt")inletcreatedBy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"createdBy")inletcreatedAt=(Option.map~f:QAppsTimestamp.of_xml)(Xml.childxml_arg0"createdAt")inletstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"status")inletcategories=(Option.map~f:CategoryList.of_xml)(Xml.childxml_arg0"categories")inletappVersion=(Option.map~f:AppVersion.of_xml)(Xml.childxml_arg0"appVersion")inletappId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"appId")inletlibraryItemId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"libraryItemId")inmake?isVerified?userCount?isRatedByUser?ratingCount?updatedBy?updatedAt?createdBy?createdAt?status?categories?appVersion?appId?libraryItemId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letisVerified=field_mapjson__"isVerified"Boolean.of_jsoninletuserCount=field_mapjson__"userCount"Integer.of_jsoninletisRatedByUser=field_mapjson__"isRatedByUser"Boolean.of_jsoninletratingCount=field_mapjson__"ratingCount"Integer.of_jsoninletupdatedBy=field_mapjson__"updatedBy"String_.of_jsoninletupdatedAt=field_mapjson__"updatedAt"QAppsTimestamp.of_jsoninletcreatedBy=field_mapjson__"createdBy"String_.of_jsoninletcreatedAt=field_mapjson__"createdAt"QAppsTimestamp.of_jsoninletstatus=field_mapjson__"status"String_.of_jsoninletcategories=field_mapjson__"categories"CategoryList.of_jsoninletappVersion=field_mapjson__"appVersion"AppVersion.of_jsoninletappId=field_mapjson__"appId"UUID.of_jsoninletlibraryItemId=field_mapjson__"libraryItemId"UUID.of_jsoninmake?isVerified?userCount?isRatedByUser?ratingCount?updatedBy?updatedAt?createdBy?createdAt?status?categories?appVersion?appId?libraryItemId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A library item is a snapshot of an Amazon Q App that can be published so the users in their Amazon Q Apps library can discover it, clone it, and run it."]moduleLibraryItemList=structtypenonrect=LibraryItemMember.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:LibraryItemMember.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:LibraryItemMember.of_xml)letof_jsonj=list_of_json~kind:"LibraryItemList"~of_json:LibraryItemMember.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLibraryItemStatus=structtypenonrect=|PUBLISHED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|PUBLISHED->"PUBLISHED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"PUBLISHED"->PUBLISHED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration LibraryItemStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"LibraryItemStatus"j)letto_json=simple_to_jsonto_valueendmoduleListCategoriesInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."]}letcontext_="ListCategoriesInput"letmake~instanceId=fun()->{instanceId}letof_header_and_body=((fun(xs,pipe)->make~instanceId:(InstanceId.of_string((List.Assoc.find_exn~equal:String.Caseless.equal)xs"instance-id"))())[@warning"-27"])letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the categories of a Amazon Q Business application environment instance. For more information, see Custom labels for Amazon Q Apps."]moduleListCategoriesOutput=structtypenonrect={categories:CategoriesList.toption[@ocaml.doc"The categories of a Amazon Q Business application environment instance."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?categories=fun()->{categories}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("categories",(Option.mapx.categories~f:CategoriesList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcategories=(Option.map~f:CategoriesList.of_xml)(Xml.childxml_arg0"categories")inmake?categories()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcategories=field_mapjson__"categories"CategoriesList.of_jsoninmake?categories()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the categories of a Amazon Q Business application environment instance. For more information, see Custom labels for Amazon Q Apps."]modulePaginationToken=structtypenonrect=stringletcontext_="PaginationToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:300)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PaginationToken"jletto_json=simple_to_jsonto_valueendmodulePageLimit=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for PageLimit"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListLibraryItemsInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];limit:PageLimit.toption[@ocaml.doc"The maximum number of library items to return in the response."];nextToken:PaginationToken.toption[@ocaml.doc"The token to request the next page of results."];categoryId:UUID.toption[@ocaml.doc"Optional category to filter the library items by."]}letcontext_="ListLibraryItemsInput"letmake?limit=fun?nextToken->fun?categoryId->fun~instanceId->fun()->{limit;nextToken;categoryId;instanceId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("limit",(Option.mapx.limit~f:PageLimit.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("categoryId",(Option.mapx.categoryId~f:UUID.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcategoryId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"categoryId")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletlimit=(Option.map~f:PageLimit.of_xml)(Xml.childxml_arg0"limit")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake?categoryId?nextToken?limit~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcategoryId=field_mapjson__"categoryId"UUID.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletlimit=field_mapjson__"limit"PageLimit.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake?categoryId?nextToken?limit~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the library items for Amazon Q Apps that are published and available for users in your Amazon Web Services account."]moduleListLibraryItemsOutput=structtypenonrect={libraryItems:LibraryItemList.toption[@ocaml.doc"The list of library items meeting the request criteria."];nextToken:String_.toption[@ocaml.doc"The token to use to request the next page of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?libraryItems=fun?nextToken->fun()->{libraryItems;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("libraryItems",(Option.mapx.libraryItems~f:LibraryItemList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletlibraryItems=(Option.map~f:LibraryItemList.of_xml)(Xml.childxml_arg0"libraryItems")inmake?nextToken?libraryItems()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletlibraryItems=field_mapjson__"libraryItems"LibraryItemList.of_jsoninmake?nextToken?libraryItems()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the library items for Amazon Q Apps that are published and available for users in your Amazon Web Services account."]moduleListQAppSessionDataInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];sessionId:UUID.t[@ocaml.doc"The unique identifier of the Q App data collection session."]}letcontext_="ListQAppSessionDataInput"letmake~instanceId=fun~sessionId->fun()->{instanceId;sessionId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("sessionId",(Some(UUID.to_valuex.sessionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"sessionId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake~sessionId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionId=field_map_exnjson__"sessionId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake~sessionId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the collected data of a Q App data collection session."]moduleUserId=structtypenonrect=stringletcontext_="UserId"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:"UserId"jletto_json=simple_to_jsonto_valueendmoduleUser=structtypenonrect={userId:UserId.toption[@ocaml.doc"The unique identifier of a user."]}letmake?userId=fun()->{userId}letto_valuex=structure_to_value[("userId",(Option.mapx.userId~f:UserId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserId=(Option.map~f:UserId.of_xml)(Xml.childxml_arg0"userId")inmake?userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserId=field_mapjson__"userId"UserId.of_jsoninmake?userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A user of an Amazon Q App."]moduleQAppSessionData=structtypenonrect={cardId:UUID.toption[@ocaml.doc"The card Id associated with the response submitted for a Q App session."];value:Document.toption[@ocaml.doc"The response submitted for a Q App session."];user:User.toption[@ocaml.doc"The user who submitted the response for a Q App session."];submissionId:UUID.toption[@ocaml.doc"The unique identifier of the submission."];timestamp:QAppsTimestamp.toption[@ocaml.doc"The date and time when the session data is submitted."]}letmake?cardId=fun?value->fun?user->fun?submissionId->fun?timestamp->fun()->{cardId;value;user;submissionId;timestamp}letto_valuex=structure_to_value[("cardId",(Option.mapx.cardId~f:UUID.to_value));("value",(Option.mapx.value~f:Document.to_value));("user",(Option.mapx.user~f:User.to_value));("submissionId",(Option.mapx.submissionId~f:UUID.to_value));("timestamp",(Option.mapx.timestamp~f:QAppsTimestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettimestamp=(Option.map~f:QAppsTimestamp.of_xml)(Xml.childxml_arg0"timestamp")inletsubmissionId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"submissionId")inletuser=(Option.map~f:User.of_xml)(Xml.childxml_arg0"user")inletvalue=(Option.map~f:Document.of_xml)(Xml.childxml_arg0"value")inletcardId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"cardId")inmake?timestamp?submissionId?user?value?cardId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettimestamp=field_mapjson__"timestamp"QAppsTimestamp.of_jsoninletsubmissionId=field_mapjson__"submissionId"UUID.of_jsoninletuser=field_mapjson__"user"User.of_jsoninletvalue=field_mapjson__"value"Document.of_jsoninletcardId=field_mapjson__"cardId"UUID.of_jsoninmake?timestamp?submissionId?user?value?cardId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response collected for a Amazon Q App session. This container represents a single response to a Q App session."]moduleQAppSessionDataList=structtypenonrect=QAppSessionData.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:QAppSessionData.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:QAppSessionData.of_xml)letof_jsonj=list_of_json~kind:"QAppSessionDataList"~of_json:QAppSessionData.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListQAppSessionDataOutput=structtypenonrect={sessionId:UUID.toption[@ocaml.doc"The unique identifier of the Q App data collection session."];sessionArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Q App data collection session."];sessionData:QAppSessionDataList.toption[@ocaml.doc"The collected responses of a Q App session."];nextToken:String_.toption[@ocaml.doc"The pagination token that indicates the next set of results to retrieve."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?sessionId=fun?sessionArn->fun?sessionData->fun?nextToken->fun()->{sessionId;sessionArn;sessionData;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("sessionId",(Option.mapx.sessionId~f:UUID.to_value));("sessionArn",(Option.mapx.sessionArn~f:String_.to_value));("sessionData",(Option.mapx.sessionData~f:QAppSessionDataList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletsessionData=(Option.map~f:QAppSessionDataList.of_xml)(Xml.childxml_arg0"sessionData")inletsessionArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"sessionArn")inletsessionId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"sessionId")inmake?nextToken?sessionData?sessionArn?sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletsessionData=field_mapjson__"sessionData"QAppSessionDataList.of_jsoninletsessionArn=field_mapjson__"sessionArn"String_.of_jsoninletsessionId=field_mapjson__"sessionId"UUID.of_jsoninmake?nextToken?sessionData?sessionArn?sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the collected data of a Q App data collection session."]moduleListQAppsInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];limit:PageLimit.toption[@ocaml.doc"The maximum number of Q Apps to return in the response."];nextToken:PaginationToken.toption[@ocaml.doc"The token to request the next page of results."]}letcontext_="ListQAppsInput"letmake?limit=fun?nextToken->fun~instanceId->fun()->{limit;nextToken;instanceId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("limit",(Option.mapx.limit~f:PageLimit.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletlimit=(Option.map~f:PageLimit.of_xml)(Xml.childxml_arg0"limit")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake?nextToken?limit~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletlimit=field_mapjson__"limit"PageLimit.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake?nextToken?limit~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the Amazon Q Apps owned by or associated with the user either because they created it or because they used it from the library in the past. The user identity is extracted from the credentials used to invoke this operation.."]moduleUserAppItem=structtypenonrect={appId:UUID.toption[@ocaml.doc"The unique identifier of the Q App."];appArn:AppArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Q App."];title:Title.toption[@ocaml.doc"The title of the Q App."];description:Description.toption[@ocaml.doc"The description of the Q App."];createdAt:QAppsTimestamp.toption[@ocaml.doc"The date and time the user's association with the Q App was created."];canEdit:Boolean.toption[@ocaml.doc"A flag indicating whether the user can edit the Q App."];status:String_.toption[@ocaml.doc"The status of the user's association with the Q App."];isVerified:Boolean.toption[@ocaml.doc"Indicates whether the Q App has been verified."]}letmake?appId=fun?appArn->fun?title->fun?description->fun?createdAt->fun?canEdit->fun?status->fun?isVerified->fun()->{appId;appArn;title;description;createdAt;canEdit;status;isVerified}letto_valuex=structure_to_value[("appId",(Option.mapx.appId~f:UUID.to_value));("appArn",(Option.mapx.appArn~f:AppArn.to_value));("title",(Option.mapx.title~f:Title.to_value));("description",(Option.mapx.description~f:Description.to_value));("createdAt",(Option.mapx.createdAt~f:QAppsTimestamp.to_value));("canEdit",(Option.mapx.canEdit~f:Boolean.to_value));("status",(Option.mapx.status~f:String_.to_value));("isVerified",(Option.mapx.isVerified~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letisVerified=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isVerified")inletstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"status")inletcanEdit=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"canEdit")inletcreatedAt=(Option.map~f:QAppsTimestamp.of_xml)(Xml.childxml_arg0"createdAt")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"description")inlettitle=(Option.map~f:Title.of_xml)(Xml.childxml_arg0"title")inletappArn=(Option.map~f:AppArn.of_xml)(Xml.childxml_arg0"appArn")inletappId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"appId")inmake?isVerified?status?canEdit?createdAt?description?title?appArn?appId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letisVerified=field_mapjson__"isVerified"Boolean.of_jsoninletstatus=field_mapjson__"status"String_.of_jsoninletcanEdit=field_mapjson__"canEdit"Boolean.of_jsoninletcreatedAt=field_mapjson__"createdAt"QAppsTimestamp.of_jsoninletdescription=field_mapjson__"description"Description.of_jsoninlettitle=field_mapjson__"title"Title.of_jsoninletappArn=field_mapjson__"appArn"AppArn.of_jsoninletappId=field_mapjson__"appId"UUID.of_jsoninmake?isVerified?status?canEdit?createdAt?description?title?appArn?appId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An Amazon Q App associated with a user, either owned by the user or favorited."]moduleUserAppsList=structtypenonrect=UserAppItem.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:UserAppItem.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:UserAppItem.of_xml)letof_jsonj=list_of_json~kind:"UserAppsList"~of_json:UserAppItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListQAppsOutput=structtypenonrect={apps:UserAppsList.toption[@ocaml.doc"The list of Amazon Q Apps meeting the request criteria."];nextToken:String_.toption[@ocaml.doc"The token to use to request the next page of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?apps=fun?nextToken->fun()->{apps;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("apps",(Option.mapx.apps~f:UserAppsList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletapps=(Option.map~f:UserAppsList.of_xml)(Xml.childxml_arg0"apps")inmake?nextToken?apps()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletapps=field_mapjson__"apps"UserAppsList.of_jsoninmake?nextToken?apps()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the Amazon Q Apps owned by or associated with the user either because they created it or because they used it from the library in the past. The user identity is extracted from the credentials used to invoke this operation.."]moduleListTagsForResourceRequest=structtypenonrect={resourceARN:AmazonResourceName.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource whose tags should be listed."]}letcontext_="ListTagsForResourceRequest"letmake~resourceARN=fun()->{resourceARN}letto_valuex=structure_to_value[("resourceARN",(Some(AmazonResourceName.to_valuex.resourceARN)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceARN=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"resourceARN")inmake~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceARN=field_map_exnjson__"resourceARN"AmazonResourceName.of_jsoninmake~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the tags associated with an Amazon Q Apps resource."]moduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTags=structtypenonrect=(TagKey.t*TagValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((TagKey.of_stringchopped),(TagValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(TagKey.to_valuex)|>(funx->(TagValue.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:TagKey.of_string~of_json:TagValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListTagsForResourceResponse=structtypenonrect={tags:Tags.toption[@ocaml.doc"The list of tags that are assigned to the resource."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the tags associated with an Amazon Q Apps resource."]modulePermissionInputPrincipalString=structtypenonrect=stringletcontext_="PermissionInputPrincipalString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(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:"PermissionInputPrincipalString"jletto_json=simple_to_jsonto_valueendmodulePermissionInputActionEnum=structtypenonrect=|Read|Write|Non_static_idofstringletmakei=iletto_string=function|Read->"read"|Write->"write"|Non_static_ids->sletof_string=function|"read"->Read|"write"->Write|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 PermissionInputActionEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PermissionInputActionEnum"j)letto_json=simple_to_jsonto_valueendmodulePermissionInput=structtypenonrect={action:PermissionInputActionEnum.t[@ocaml.doc"The action associated with the permission."];principal:PermissionInputPrincipalString.t[@ocaml.doc"The principal user to which the permission applies."]}letcontext_="PermissionInput"letmake~action=fun~principal->fun()->{action;principal}letto_valuex=structure_to_value[("action",(Some(PermissionInputActionEnum.to_valuex.action)));("principal",(Some(PermissionInputPrincipalString.to_valuex.principal)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprincipal=PermissionInputPrincipalString.of_xml(Xml.child_exn~context:context_xml_arg0"principal")inletaction=PermissionInputActionEnum.of_xml(Xml.child_exn~context:context_xml_arg0"action")inmake~principal~action()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprincipal=field_map_exnjson__"principal"PermissionInputPrincipalString.of_jsoninletaction=field_map_exnjson__"action"PermissionInputActionEnum.of_jsoninmake~principal~action()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The permission to grant or revoke for a Amazon Q App."]modulePredictAppDefinition=structtypenonrect={title:Title.toption[@ocaml.doc"The title of the generated Q App definition."];description:Description.toption[@ocaml.doc"The description of the generated Q App definition."];appDefinition:AppDefinitionInput.toption[@ocaml.doc"The definition specifying the cards and flow of the generated Q App."]}letmake?title=fun?description->fun?appDefinition->fun()->{title;description;appDefinition}letto_valuex=structure_to_value[("title",(Option.mapx.title~f:Title.to_value));("description",(Option.mapx.description~f:Description.to_value));("appDefinition",(Option.mapx.appDefinition~f:AppDefinitionInput.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letappDefinition=(Option.map~f:AppDefinitionInput.of_xml)(Xml.childxml_arg0"appDefinition")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"description")inlettitle=(Option.map~f:Title.of_xml)(Xml.childxml_arg0"title")inmake?appDefinition?description?title()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letappDefinition=field_mapjson__"appDefinition"AppDefinitionInput.of_jsoninletdescription=field_mapjson__"description"Description.of_jsoninlettitle=field_mapjson__"title"Title.of_jsoninmake?appDefinition?description?title()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The definition of an Amazon Q App generated based on input such as a conversation or problem statement."]modulePredictQAppInputOptionsProblemStatementString=structtypenonrect=stringletcontext_="PredictQAppInputOptionsProblemStatementString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:10000)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PredictQAppInputOptionsProblemStatementString"jletto_json=simple_to_jsonto_valueendmodulePredictQAppInputOptionsConversationList=structtypenonrect=ConversationMessage.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ConversationMessage.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:ConversationMessage.of_xml)letof_jsonj=list_of_json~kind:"PredictQAppInputOptionsConversationList"~of_json:ConversationMessage.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePredictQAppInputOptions=structtypenonrect={conversation:PredictQAppInputOptionsConversationList.toption[@ocaml.doc"A conversation to use as input for generating the Q App definition."];problemStatement:PredictQAppInputOptionsProblemStatementString.toption[@ocaml.doc"A problem statement to use as input for generating the Q App definition."]}letmake?conversation=fun?problemStatement->fun()->{conversation;problemStatement}letto_valuex=structure_to_value[("conversation",(Option.mapx.conversation~f:PredictQAppInputOptionsConversationList.to_value));("problemStatement",(Option.mapx.problemStatement~f:PredictQAppInputOptionsProblemStatementString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letproblemStatement=(Option.map~f:PredictQAppInputOptionsProblemStatementString.of_xml)(Xml.childxml_arg0"problemStatement")inletconversation=(Option.map~f:PredictQAppInputOptionsConversationList.of_xml)(Xml.childxml_arg0"conversation")inmake?problemStatement?conversation()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letproblemStatement=field_mapjson__"problemStatement"PredictQAppInputOptionsProblemStatementString.of_jsoninletconversation=field_mapjson__"conversation"PredictQAppInputOptionsConversationList.of_jsoninmake?problemStatement?conversation()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input options for generating an Q App definition."]modulePredictQAppInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];options:PredictQAppInputOptions.toption[@ocaml.doc"The input to generate the Q App definition from, either a conversation or problem statement."]}letcontext_="PredictQAppInput"letmake?options=fun~instanceId->fun()->{options;instanceId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("options",(Option.mapx.options~f:PredictQAppInputOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoptions=(Option.map~f:PredictQAppInputOptions.of_xml)(Xml.childxml_arg0"options")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake?options~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoptions=field_mapjson__"options"PredictQAppInputOptions.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake?options~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Generates an Amazon Q App definition based on either a conversation or a problem statement provided as input.The resulting app definition can be used to call CreateQApp. This API doesn't create Amazon Q Apps directly."]modulePredictQAppOutput=structtypenonrect={app:PredictAppDefinition.toption[@ocaml.doc"The generated Q App definition."];problemStatement:String_.toption[@ocaml.doc"The problem statement extracted from the input conversation, if provided."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?app=fun?problemStatement->fun()->{app;problemStatement}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("app",(Option.mapx.app~f:PredictAppDefinition.to_value));("problemStatement",(Option.mapx.problemStatement~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letproblemStatement=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"problemStatement")inletapp=(Option.map~f:PredictAppDefinition.of_xml)(Xml.childxml_arg0"app")inmake?problemStatement?app()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letproblemStatement=field_mapjson__"problemStatement"String_.of_jsoninletapp=field_mapjson__"app"PredictAppDefinition.of_jsoninmake?problemStatement?app()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Generates an Amazon Q App definition based on either a conversation or a problem statement provided as input.The resulting app definition can be used to call CreateQApp. This API doesn't create Amazon Q Apps directly."]moduleStartQAppSessionInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];appId:UUID.t[@ocaml.doc"The unique identifier of the Q App to start a session for."];appVersion:AppVersion.t[@ocaml.doc"The version of the Q App to use for the session."];initialValues:CardValueList.toption[@ocaml.doc"Optional initial input values to provide for the Q App session."];sessionId:String_.toption[@ocaml.doc"The unique identifier of the a Q App session."];tags:TagMap.toption[@ocaml.doc"Optional tags to associate with the new Q App session."]}letcontext_="StartQAppSessionInput"letmake?initialValues=fun?sessionId->fun?tags->fun~instanceId->fun~appId->fun~appVersion->fun()->{initialValues;sessionId;tags;instanceId;appId;appVersion}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("appId",(Some(UUID.to_valuex.appId)));("appVersion",(Some(AppVersion.to_valuex.appVersion)));("initialValues",(Option.mapx.initialValues~f:CardValueList.to_value));("sessionId",(Option.mapx.sessionId~f:String_.to_value));("tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"tags")inletsessionId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"sessionId")inletinitialValues=(Option.map~f:CardValueList.of_xml)(Xml.childxml_arg0"initialValues")inletappVersion=AppVersion.of_xml(Xml.child_exn~context:context_xml_arg0"appVersion")inletappId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"appId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake?tags?sessionId?initialValues~appVersion~appId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagMap.of_jsoninletsessionId=field_mapjson__"sessionId"String_.of_jsoninletinitialValues=field_mapjson__"initialValues"CardValueList.of_jsoninletappVersion=field_map_exnjson__"appVersion"AppVersion.of_jsoninletappId=field_map_exnjson__"appId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake?tags?sessionId?initialValues~appVersion~appId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts a new session for an Amazon Q App, allowing inputs to be provided and the app to be run. Each Q App session will be condensed into a single conversation in the web experience."]moduleStartQAppSessionOutput=structtypenonrect={sessionId:String_.toption[@ocaml.doc"The unique identifier of the new or retrieved Q App session."];sessionArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the new Q App session."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?sessionId=fun?sessionArn->fun()->{sessionId;sessionArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("sessionId",(Option.mapx.sessionId~f:String_.to_value));("sessionArn",(Option.mapx.sessionArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"sessionArn")inletsessionId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"sessionId")inmake?sessionArn?sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionArn=field_mapjson__"sessionArn"String_.of_jsoninletsessionId=field_mapjson__"sessionId"String_.of_jsoninmake?sessionArn?sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts a new session for an Amazon Q App, allowing inputs to be provided and the app to be run. Each Q App session will be condensed into a single conversation in the web experience."]moduleStopQAppSessionInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];sessionId:UUID.t[@ocaml.doc"The unique identifier of the Q App session to stop."]}letcontext_="StopQAppSessionInput"letmake~instanceId=fun~sessionId->fun()->{instanceId;sessionId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("sessionId",(Some(UUID.to_valuex.sessionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"sessionId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake~sessionId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionId=field_map_exnjson__"sessionId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake~sessionId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops an active session for an Amazon Q App.This deletes all data related to the session and makes it invalid for future uses. The results of the session will be persisted as part of the conversation."]moduleTagKeys=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:"TagKeys"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagResourceRequest=structtypenonrect={resourceARN:AmazonResourceName.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource to tag."];tags:Tags.t[@ocaml.doc"The tags to associate with the resource."]}letcontext_="TagResourceRequest"letmake~resourceARN=fun~tags->fun()->{resourceARN;tags}letto_valuex=structure_to_value[("resourceARN",(Some(AmazonResourceName.to_valuex.resourceARN)));("tags",(Some(Tags.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=Tags.of_xml(Xml.child_exn~context:context_xml_arg0"tags")inletresourceARN=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"resourceARN")inmake~tags~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"tags"Tags.of_jsoninletresourceARN=field_map_exnjson__"resourceARN"AmazonResourceName.of_jsoninmake~tags~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates tags with an Amazon Q Apps resource."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))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"Associates tags with an Amazon Q Apps resource."]moduleUntagResourceRequest=structtypenonrect={resourceARN:AmazonResourceName.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource to disassociate the tag from."];tagKeys:TagKeys.t[@ocaml.doc"The keys of the tags to disassociate from the resource."]}letcontext_="UntagResourceRequest"letmake~resourceARN=fun~tagKeys->fun()->{resourceARN;tagKeys}letto_valuex=structure_to_value[("resourceARN",(Some(AmazonResourceName.to_valuex.resourceARN)));("tagKeys",(Some(TagKeys.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeys.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletresourceARN=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"resourceARN")inmake~tagKeys~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"tagKeys"TagKeys.of_jsoninletresourceARN=field_map_exnjson__"resourceARN"AmazonResourceName.of_jsoninmake~tagKeys~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disassociates tags from an Amazon Q Apps resource."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disassociates tags from an Amazon Q Apps resource."]moduleUpdateLibraryItemInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];libraryItemId:UUID.t[@ocaml.doc"The unique identifier of the library item to update."];status:LibraryItemStatus.toption[@ocaml.doc"The new status to set for the library item, such as \"Published\" or \"Hidden\"."];categories:CategoryIdList.toption[@ocaml.doc"The new categories to associate with the library item."]}letcontext_="UpdateLibraryItemInput"letmake?status=fun?categories->fun~instanceId->fun~libraryItemId->fun()->{status;categories;instanceId;libraryItemId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("libraryItemId",(Some(UUID.to_valuex.libraryItemId)));("status",(Option.mapx.status~f:LibraryItemStatus.to_value));("categories",(Option.mapx.categories~f:CategoryIdList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcategories=(Option.map~f:CategoryIdList.of_xml)(Xml.childxml_arg0"categories")inletstatus=(Option.map~f:LibraryItemStatus.of_xml)(Xml.childxml_arg0"status")inletlibraryItemId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"libraryItemId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake?categories?status~libraryItemId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcategories=field_mapjson__"categories"CategoryIdList.of_jsoninletstatus=field_mapjson__"status"LibraryItemStatus.of_jsoninletlibraryItemId=field_map_exnjson__"libraryItemId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake?categories?status~libraryItemId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the library item for an Amazon Q App."]moduleUpdateLibraryItemMetadataInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];libraryItemId:UUID.t[@ocaml.doc"The unique identifier of the updated library item."];isVerified:Boolean.toption[@ocaml.doc"The verification status of the library item"]}letcontext_="UpdateLibraryItemMetadataInput"letmake?isVerified=fun~instanceId->fun~libraryItemId->fun()->{isVerified;instanceId;libraryItemId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("libraryItemId",(Some(UUID.to_valuex.libraryItemId)));("isVerified",(Option.mapx.isVerified~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letisVerified=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isVerified")inletlibraryItemId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"libraryItemId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake?isVerified~libraryItemId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letisVerified=field_mapjson__"isVerified"Boolean.of_jsoninletlibraryItemId=field_map_exnjson__"libraryItemId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake?isVerified~libraryItemId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the verification status of a library item for an Amazon Q App."]moduleUpdateLibraryItemOutput=structtypenonrect={libraryItemId:UUID.toption[@ocaml.doc"The unique identifier of the updated library item."];appId:UUID.toption[@ocaml.doc"The unique identifier of the Q App associated with the library item."];appVersion:AppVersion.toption[@ocaml.doc"The version of the Q App associated with the library item."];categories:CategoryList.toption[@ocaml.doc"The categories associated with the updated library item."];status:String_.toption[@ocaml.doc"The new status of the updated library item."];createdAt:QAppsTimestamp.toption[@ocaml.doc"The date and time the library item was originally created."];createdBy:String_.toption[@ocaml.doc"The user who originally created the library item."];updatedAt:QAppsTimestamp.toption[@ocaml.doc"The date and time the library item was last updated."];updatedBy:String_.toption[@ocaml.doc"The user who last updated the library item."];ratingCount:Integer.toption[@ocaml.doc"The number of ratings the library item has received."];isRatedByUser:Boolean.toption[@ocaml.doc"Whether the current user has rated the library item."];userCount:Integer.toption[@ocaml.doc"The number of users who have the associated Q App."];isVerified:Boolean.toption[@ocaml.doc"Indicates whether the library item has been verified."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?libraryItemId=fun?appId->fun?appVersion->fun?categories->fun?status->fun?createdAt->fun?createdBy->fun?updatedAt->fun?updatedBy->fun?ratingCount->fun?isRatedByUser->fun?userCount->fun?isVerified->fun()->{libraryItemId;appId;appVersion;categories;status;createdAt;createdBy;updatedAt;updatedBy;ratingCount;isRatedByUser;userCount;isVerified}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("libraryItemId",(Option.mapx.libraryItemId~f:UUID.to_value));("appId",(Option.mapx.appId~f:UUID.to_value));("appVersion",(Option.mapx.appVersion~f:AppVersion.to_value));("categories",(Option.mapx.categories~f:CategoryList.to_value));("status",(Option.mapx.status~f:String_.to_value));("createdAt",(Option.mapx.createdAt~f:QAppsTimestamp.to_value));("createdBy",(Option.mapx.createdBy~f:String_.to_value));("updatedAt",(Option.mapx.updatedAt~f:QAppsTimestamp.to_value));("updatedBy",(Option.mapx.updatedBy~f:String_.to_value));("ratingCount",(Option.mapx.ratingCount~f:Integer.to_value));("isRatedByUser",(Option.mapx.isRatedByUser~f:Boolean.to_value));("userCount",(Option.mapx.userCount~f:Integer.to_value));("isVerified",(Option.mapx.isVerified~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letisVerified=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isVerified")inletuserCount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"userCount")inletisRatedByUser=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isRatedByUser")inletratingCount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"ratingCount")inletupdatedBy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"updatedBy")inletupdatedAt=(Option.map~f:QAppsTimestamp.of_xml)(Xml.childxml_arg0"updatedAt")inletcreatedBy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"createdBy")inletcreatedAt=(Option.map~f:QAppsTimestamp.of_xml)(Xml.childxml_arg0"createdAt")inletstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"status")inletcategories=(Option.map~f:CategoryList.of_xml)(Xml.childxml_arg0"categories")inletappVersion=(Option.map~f:AppVersion.of_xml)(Xml.childxml_arg0"appVersion")inletappId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"appId")inletlibraryItemId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"libraryItemId")inmake?isVerified?userCount?isRatedByUser?ratingCount?updatedBy?updatedAt?createdBy?createdAt?status?categories?appVersion?appId?libraryItemId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letisVerified=field_mapjson__"isVerified"Boolean.of_jsoninletuserCount=field_mapjson__"userCount"Integer.of_jsoninletisRatedByUser=field_mapjson__"isRatedByUser"Boolean.of_jsoninletratingCount=field_mapjson__"ratingCount"Integer.of_jsoninletupdatedBy=field_mapjson__"updatedBy"String_.of_jsoninletupdatedAt=field_mapjson__"updatedAt"QAppsTimestamp.of_jsoninletcreatedBy=field_mapjson__"createdBy"String_.of_jsoninletcreatedAt=field_mapjson__"createdAt"QAppsTimestamp.of_jsoninletstatus=field_mapjson__"status"String_.of_jsoninletcategories=field_mapjson__"categories"CategoryList.of_jsoninletappVersion=field_mapjson__"appVersion"AppVersion.of_jsoninletappId=field_mapjson__"appId"UUID.of_jsoninletlibraryItemId=field_mapjson__"libraryItemId"UUID.of_jsoninmake?isVerified?userCount?isRatedByUser?ratingCount?updatedBy?updatedAt?createdBy?createdAt?status?categories?appVersion?appId?libraryItemId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the library item for an Amazon Q App."]moduleUpdateQAppInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];appId:UUID.t[@ocaml.doc"The unique identifier of the Q App to update."];title:Title.toption[@ocaml.doc"The new title for the Q App."];description:Description.toption[@ocaml.doc"The new description for the Q App."];appDefinition:AppDefinitionInput.toption[@ocaml.doc"The new definition specifying the cards and flow for the Q App."]}letcontext_="UpdateQAppInput"letmake?title=fun?description->fun?appDefinition->fun~instanceId->fun~appId->fun()->{title;description;appDefinition;instanceId;appId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("appId",(Some(UUID.to_valuex.appId)));("title",(Option.mapx.title~f:Title.to_value));("description",(Option.mapx.description~f:Description.to_value));("appDefinition",(Option.mapx.appDefinition~f:AppDefinitionInput.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letappDefinition=(Option.map~f:AppDefinitionInput.of_xml)(Xml.childxml_arg0"appDefinition")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"description")inlettitle=(Option.map~f:Title.of_xml)(Xml.childxml_arg0"title")inletappId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"appId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake?appDefinition?description?title~appId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letappDefinition=field_mapjson__"appDefinition"AppDefinitionInput.of_jsoninletdescription=field_mapjson__"description"Description.of_jsoninlettitle=field_mapjson__"title"Title.of_jsoninletappId=field_map_exnjson__"appId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake?appDefinition?description?title~appId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an existing Amazon Q App, allowing modifications to its title, description, and definition."]moduleUpdateQAppOutput=structtypenonrect={appId:UUID.toption[@ocaml.doc"The unique identifier of the updated Q App."];appArn:AppArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the updated Q App."];title:Title.toption[@ocaml.doc"The new title of the updated Q App."];description:Description.toption[@ocaml.doc"The new description of the updated Q App."];initialPrompt:InitialPrompt.toption[@ocaml.doc"The initial prompt for the updated Q App."];appVersion:AppVersion.toption[@ocaml.doc"The new version of the updated Q App."];status:AppStatus.toption[@ocaml.doc"The status of the updated Q App."];createdAt:QAppsTimestamp.toption[@ocaml.doc"The date and time the Q App was originally created."];createdBy:String_.toption[@ocaml.doc"The user who originally created the Q App."];updatedAt:QAppsTimestamp.toption[@ocaml.doc"The date and time the Q App was last updated."];updatedBy:String_.toption[@ocaml.doc"The user who last updated the Q App."];requiredCapabilities:AppRequiredCapabilities.toption[@ocaml.doc"The capabilities required for the updated Q App."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ContentTooLargeExceptionofContentTooLargeException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?appId=fun?appArn->fun?title->fun?description->fun?initialPrompt->fun?appVersion->fun?status->fun?createdAt->fun?createdBy->fun?updatedAt->fun?updatedBy->fun?requiredCapabilities->fun()->{appId;appArn;title;description;initialPrompt;appVersion;status;createdAt;createdBy;updatedAt;updatedBy;requiredCapabilities}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ContentTooLargeException"->`ContentTooLargeException(ContentTooLargeException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ContentTooLargeException"->`ContentTooLargeException(ContentTooLargeException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ContentTooLargeExceptione->`Assoc[("error",(`String"ContentTooLargeException"));("details",(ContentTooLargeException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("appId",(Option.mapx.appId~f:UUID.to_value));("appArn",(Option.mapx.appArn~f:AppArn.to_value));("title",(Option.mapx.title~f:Title.to_value));("description",(Option.mapx.description~f:Description.to_value));("initialPrompt",(Option.mapx.initialPrompt~f:InitialPrompt.to_value));("appVersion",(Option.mapx.appVersion~f:AppVersion.to_value));("status",(Option.mapx.status~f:AppStatus.to_value));("createdAt",(Option.mapx.createdAt~f:QAppsTimestamp.to_value));("createdBy",(Option.mapx.createdBy~f:String_.to_value));("updatedAt",(Option.mapx.updatedAt~f:QAppsTimestamp.to_value));("updatedBy",(Option.mapx.updatedBy~f:String_.to_value));("requiredCapabilities",(Option.mapx.requiredCapabilities~f:AppRequiredCapabilities.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrequiredCapabilities=(Option.map~f:AppRequiredCapabilities.of_xml)(Xml.childxml_arg0"requiredCapabilities")inletupdatedBy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"updatedBy")inletupdatedAt=(Option.map~f:QAppsTimestamp.of_xml)(Xml.childxml_arg0"updatedAt")inletcreatedBy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"createdBy")inletcreatedAt=(Option.map~f:QAppsTimestamp.of_xml)(Xml.childxml_arg0"createdAt")inletstatus=(Option.map~f:AppStatus.of_xml)(Xml.childxml_arg0"status")inletappVersion=(Option.map~f:AppVersion.of_xml)(Xml.childxml_arg0"appVersion")inletinitialPrompt=(Option.map~f:InitialPrompt.of_xml)(Xml.childxml_arg0"initialPrompt")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"description")inlettitle=(Option.map~f:Title.of_xml)(Xml.childxml_arg0"title")inletappArn=(Option.map~f:AppArn.of_xml)(Xml.childxml_arg0"appArn")inletappId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"appId")inmake?requiredCapabilities?updatedBy?updatedAt?createdBy?createdAt?status?appVersion?initialPrompt?description?title?appArn?appId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrequiredCapabilities=field_mapjson__"requiredCapabilities"AppRequiredCapabilities.of_jsoninletupdatedBy=field_mapjson__"updatedBy"String_.of_jsoninletupdatedAt=field_mapjson__"updatedAt"QAppsTimestamp.of_jsoninletcreatedBy=field_mapjson__"createdBy"String_.of_jsoninletcreatedAt=field_mapjson__"createdAt"QAppsTimestamp.of_jsoninletstatus=field_mapjson__"status"AppStatus.of_jsoninletappVersion=field_mapjson__"appVersion"AppVersion.of_jsoninletinitialPrompt=field_mapjson__"initialPrompt"InitialPrompt.of_jsoninletdescription=field_mapjson__"description"Description.of_jsoninlettitle=field_mapjson__"title"Title.of_jsoninletappArn=field_mapjson__"appArn"AppArn.of_jsoninletappId=field_mapjson__"appId"UUID.of_jsoninmake?requiredCapabilities?updatedBy?updatedAt?createdBy?createdAt?status?appVersion?initialPrompt?description?title?appArn?appId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an existing Amazon Q App, allowing modifications to its title, description, and definition."]moduleUpdateQAppPermissionsInputRevokePermissionsList=structtypenonrect=PermissionInput.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PermissionInput.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:PermissionInput.of_xml)letof_jsonj=list_of_json~kind:"UpdateQAppPermissionsInputRevokePermissionsList"~of_json:PermissionInput.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUpdateQAppPermissionsInputGrantPermissionsList=structtypenonrect=PermissionInput.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PermissionInput.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:PermissionInput.of_xml)letof_jsonj=list_of_json~kind:"UpdateQAppPermissionsInputGrantPermissionsList"~of_json:PermissionInput.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUpdateQAppPermissionsInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];appId:UUID.t[@ocaml.doc"The unique identifier of the Amazon Q App for which permissions are being updated."];grantPermissions:UpdateQAppPermissionsInputGrantPermissionsList.toption[@ocaml.doc"The list of permissions to grant for the Amazon Q App."];revokePermissions:UpdateQAppPermissionsInputRevokePermissionsList.toption[@ocaml.doc"The list of permissions to revoke for the Amazon Q App."]}letcontext_="UpdateQAppPermissionsInput"letmake?grantPermissions=fun?revokePermissions->fun~instanceId->fun~appId->fun()->{grantPermissions;revokePermissions;instanceId;appId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("appId",(Some(UUID.to_valuex.appId)));("grantPermissions",(Option.mapx.grantPermissions~f:UpdateQAppPermissionsInputGrantPermissionsList.to_value));("revokePermissions",(Option.mapx.revokePermissions~f:UpdateQAppPermissionsInputRevokePermissionsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrevokePermissions=(Option.map~f:UpdateQAppPermissionsInputRevokePermissionsList.of_xml)(Xml.childxml_arg0"revokePermissions")inletgrantPermissions=(Option.map~f:UpdateQAppPermissionsInputGrantPermissionsList.of_xml)(Xml.childxml_arg0"grantPermissions")inletappId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"appId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake?revokePermissions?grantPermissions~appId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrevokePermissions=field_mapjson__"revokePermissions"UpdateQAppPermissionsInputRevokePermissionsList.of_jsoninletgrantPermissions=field_mapjson__"grantPermissions"UpdateQAppPermissionsInputGrantPermissionsList.of_jsoninletappId=field_map_exnjson__"appId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake?revokePermissions?grantPermissions~appId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates read permissions for a Amazon Q App in Amazon Q Business application environment instance."]moduleUpdateQAppPermissionsOutput=structtypenonrect={resourceArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon Q App for which permissions were updated."];appId:String_.toption[@ocaml.doc"The unique identifier of the Amazon Q App for which permissions were updated."];permissions:PermissionsOutputList.toption[@ocaml.doc"The updated list of permissions for the Amazon Q App."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?resourceArn=fun?appId->fun?permissions->fun()->{resourceArn;appId;permissions}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("resourceArn",(Option.mapx.resourceArn~f:String_.to_value));("appId",(Option.mapx.appId~f:String_.to_value));("permissions",(Option.mapx.permissions~f:PermissionsOutputList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpermissions=(Option.map~f:PermissionsOutputList.of_xml)(Xml.childxml_arg0"permissions")inletappId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"appId")inletresourceArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceArn")inmake?permissions?appId?resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpermissions=field_mapjson__"permissions"PermissionsOutputList.of_jsoninletappId=field_mapjson__"appId"String_.of_jsoninletresourceArn=field_mapjson__"resourceArn"String_.of_jsoninmake?permissions?appId?resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates read permissions for a Amazon Q App in Amazon Q Business application environment instance."]moduleUpdateQAppSessionInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];sessionId:UUID.t[@ocaml.doc"The unique identifier of the Q App session to provide input for."];values:CardValueList.toption[@ocaml.doc"The input values to provide for the current state of the Q App session."]}letcontext_="UpdateQAppSessionInput"letmake?values=fun~instanceId->fun~sessionId->fun()->{values;instanceId;sessionId}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("sessionId",(Some(UUID.to_valuex.sessionId)));("values",(Option.mapx.values~f:CardValueList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalues=(Option.map~f:CardValueList.of_xml)(Xml.childxml_arg0"values")inletsessionId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"sessionId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake?values~sessionId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalues=field_mapjson__"values"CardValueList.of_jsoninletsessionId=field_map_exnjson__"sessionId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake?values~sessionId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the session for a given Q App sessionId. This is only valid when at least one card of the session is in the WAITING state. Data for each WAITING card can be provided as input. If inputs are not provided, the call will be accepted but session will not move forward. Inputs for cards that are not in the WAITING status will be ignored."]moduleUpdateQAppSessionMetadataInput=structtypenonrect={instanceId:InstanceId.t[@ocaml.doc"The unique identifier of the Amazon Q Business application environment instance."];sessionId:UUID.t[@ocaml.doc"The unique identifier of the Q App session to update configuration for."];sessionName:SessionName.toption[@ocaml.doc"The new name for the Q App session."];sharingConfiguration:SessionSharingConfiguration.t[@ocaml.doc"The new sharing configuration for the Q App data collection session."]}letcontext_="UpdateQAppSessionMetadataInput"letmake?sessionName=fun~instanceId->fun~sessionId->fun~sharingConfiguration->fun()->{sessionName;instanceId;sessionId;sharingConfiguration}letto_valuex=structure_to_value[("instance-id",(Some(InstanceId.to_valuex.instanceId)));("sessionId",(Some(UUID.to_valuex.sessionId)));("sessionName",(Option.mapx.sessionName~f:SessionName.to_value));("sharingConfiguration",(Some(SessionSharingConfiguration.to_valuex.sharingConfiguration)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsharingConfiguration=SessionSharingConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"sharingConfiguration")inletsessionName=(Option.map~f:SessionName.of_xml)(Xml.childxml_arg0"sessionName")inletsessionId=UUID.of_xml(Xml.child_exn~context:context_xml_arg0"sessionId")inletinstanceId=InstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"instance-id")inmake~sharingConfiguration?sessionName~sessionId~instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsharingConfiguration=field_map_exnjson__"sharingConfiguration"SessionSharingConfiguration.of_jsoninletsessionName=field_mapjson__"sessionName"SessionName.of_jsoninletsessionId=field_map_exnjson__"sessionId"UUID.of_jsoninletinstanceId=field_map_exnjson__"instanceId"InstanceId.of_jsoninmake~sharingConfiguration?sessionName~sessionId~instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the configuration metadata of a session for a given Q App sessionId."]moduleUpdateQAppSessionMetadataOutput=structtypenonrect={sessionId:UUID.toption[@ocaml.doc"The unique identifier of the updated Q App session."];sessionArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the updated Q App session."];sessionName:SessionName.toption[@ocaml.doc"The new name of the updated Q App session."];sharingConfiguration:SessionSharingConfiguration.toption[@ocaml.doc"The new sharing configuration of the updated Q App data collection session."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?sessionId=fun?sessionArn->fun?sessionName->fun?sharingConfiguration->fun()->{sessionId;sessionArn;sessionName;sharingConfiguration}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("sessionId",(Option.mapx.sessionId~f:UUID.to_value));("sessionArn",(Option.mapx.sessionArn~f:String_.to_value));("sessionName",(Option.mapx.sessionName~f:SessionName.to_value));("sharingConfiguration",(Option.mapx.sharingConfiguration~f:SessionSharingConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsharingConfiguration=(Option.map~f:SessionSharingConfiguration.of_xml)(Xml.childxml_arg0"sharingConfiguration")inletsessionName=(Option.map~f:SessionName.of_xml)(Xml.childxml_arg0"sessionName")inletsessionArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"sessionArn")inletsessionId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"sessionId")inmake?sharingConfiguration?sessionName?sessionArn?sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsharingConfiguration=field_mapjson__"sharingConfiguration"SessionSharingConfiguration.of_jsoninletsessionName=field_mapjson__"sessionName"SessionName.of_jsoninletsessionArn=field_mapjson__"sessionArn"String_.of_jsoninletsessionId=field_mapjson__"sessionId"UUID.of_jsoninmake?sharingConfiguration?sessionName?sessionArn?sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the configuration metadata of a session for a given Q App sessionId."]moduleUpdateQAppSessionOutput=structtypenonrect={sessionId:String_.toption[@ocaml.doc"The unique identifier of the updated Q App session."];sessionArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the updated Q App session."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`UnauthorizedExceptionofUnauthorizedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?sessionId=fun?sessionArn->fun()->{sessionId;sessionArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnauthorizedException"->`UnauthorizedException(UnauthorizedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnauthorizedExceptione->`Assoc[("error",(`String"UnauthorizedException"));("details",(UnauthorizedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("sessionId",(Option.mapx.sessionId~f:String_.to_value));("sessionArn",(Option.mapx.sessionArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"sessionArn")inletsessionId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"sessionId")inmake?sessionArn?sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionArn=field_mapjson__"sessionArn"String_.of_jsoninletsessionId=field_mapjson__"sessionId"String_.of_jsoninmake?sessionArn?sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the session for a given Q App sessionId. This is only valid when at least one card of the session is in the WAITING state. Data for each WAITING card can be provided as input. If inputs are not provided, the call will be accepted but session will not move forward. Inputs for cards that are not in the WAITING status will be ignored."]