12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880(* 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.connectcasesletapiVersion="2022-10-03"letendpointPrefix="cases"letserviceFullName="Amazon Connect Cases"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="ConnectCases"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"You do not have sufficient access to perform this action."]moduleArn=structtypenonrect=stringletcontext_="Arn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Arn"jletto_json=simple_to_jsonto_valueendmoduleAssociationTime=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_valueendmoduleRelatedItemType=structtypenonrect=|Contact|Comment|File|Sla|ConnectCase|Custom|Non_static_idofstringletmakei=iletto_string=function|Contact->"Contact"|Comment->"Comment"|File->"File"|Sla->"Sla"|ConnectCase->"ConnectCase"|Custom->"Custom"|Non_static_ids->sletof_string=function|"Contact"->Contact|"Comment"->Comment|"File"->File|"Sla"->Sla|"ConnectCase"->ConnectCase|"Custom"->Custom|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 RelatedItemType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RelatedItemType"j)letto_json=simple_to_jsonto_valueendmoduleAuditEventType=structtypenonrect=|Case_Created|Case_Updated|RelatedItem_Created|RelatedItem_Deleted|RelatedItem_Updated|Non_static_idofstringletmakei=iletto_string=function|Case_Created->"Case.Created"|Case_Updated->"Case.Updated"|RelatedItem_Created->"RelatedItem.Created"|RelatedItem_Deleted->"RelatedItem.Deleted"|RelatedItem_Updated->"RelatedItem.Updated"|Non_static_ids->sletof_string=function|"Case.Created"->Case_Created|"Case.Updated"->Case_Updated|"RelatedItem.Created"->RelatedItem_Created|"RelatedItem.Deleted"->RelatedItem_Deleted|"RelatedItem.Updated"->RelatedItem_Updated|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 AuditEventType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AuditEventType"j)letto_json=simple_to_jsonto_valueendmoduleUserArn=structtypenonrect=stringletcontext_="UserArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"UserArn"jletto_json=simple_to_jsonto_valueendmoduleCustomEntity=structtypenonrect=stringletcontext_="CustomEntity"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:500)>>=(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:"CustomEntity"jletto_json=simple_to_jsonto_valueendmoduleUserUnion=structtypenonrect={userArn:UserArn.toption[@ocaml.doc"Represents the Amazon Connect ARN of the user."];customEntity:CustomEntity.toption[@ocaml.doc"Any provided entity."]}letmake?userArn=fun?customEntity->fun()->{userArn;customEntity}letto_valuex=structure_to_value[("userArn",(Option.mapx.userArn~f:UserArn.to_value));("customEntity",(Option.mapx.customEntity~f:CustomEntity.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustomEntity=(Option.map~f:CustomEntity.of_xml)(Xml.childxml_arg0"customEntity")inletuserArn=(Option.map~f:UserArn.of_xml)(Xml.childxml_arg0"userArn")inmake?customEntity?userArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustomEntity=field_mapjson__"customEntity"CustomEntity.of_jsoninletuserArn=field_mapjson__"userArn"UserArn.of_jsoninmake?customEntity?userArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the entity that performed the action."]moduleIamPrincipalArn=structtypenonrect=stringletcontext_="IamPrincipalArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IamPrincipalArn"jletto_json=simple_to_jsonto_valueendmoduleAuditEventPerformedBy=structtypenonrect={user:UserUnion.toption;iamPrincipalArn:IamPrincipalArn.toption[@ocaml.doc"Unique identifier of an IAM role."]}letmake?user=fun?iamPrincipalArn->fun()->{user;iamPrincipalArn}letto_valuex=structure_to_value[("user",(Option.mapx.user~f:UserUnion.to_value));("iamPrincipalArn",(Option.mapx.iamPrincipalArn~f:IamPrincipalArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letiamPrincipalArn=(Option.map~f:IamPrincipalArn.of_xml)(Xml.childxml_arg0"iamPrincipalArn")inletuser=(Option.map~f:UserUnion.of_xml)(Xml.childxml_arg0"user")inmake?iamPrincipalArn?user()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letiamPrincipalArn=field_mapjson__"iamPrincipalArn"IamPrincipalArn.of_jsoninletuser=field_mapjson__"user"UserUnion.of_jsoninmake?iamPrincipalArn?user()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information of the user which performed the audit."]moduleAuditEventId=structtypenonrect=stringletcontext_="AuditEventId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AuditEventId"jletto_json=simple_to_jsonto_valueendmoduleEmptyFieldValue=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An empty value. You cannot set EmptyFieldValue on a field that is required on a case template. This structure will never have any data members. It signifies an empty value on a case field."]moduleDouble=structtypenonrect=floatletmakei=iletof_string=Float.of_stringletto_valuex=`Doublexletto_queryv=to_queryto_valuevletto_headerx=Stdlib.Float.to_stringxletof_xmlxml_arg0=Float.of_string(string_of_xml~kind:"a double"xml_arg0)letof_jsonj=float_of_json~kind:"a double"jletto_json=simple_to_jsonto_valueendmoduleBoolean=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_valueendmoduleAuditEventFieldValueUnionStringValueString=structtypenonrect=stringletcontext_="AuditEventFieldValueUnionStringValueString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:4100)>>=(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:"AuditEventFieldValueUnionStringValueString"jletto_json=simple_to_jsonto_valueendmoduleAuditEventFieldValueUnion=structtypenonrect={stringValue:AuditEventFieldValueUnionStringValueString.toption[@ocaml.doc"Can be either null, or have a String value type. Only one value can be provided."];doubleValue:Double.toption[@ocaml.doc"Can be either null, or have a Double value type. Only one value can be provided."];booleanValue:Boolean.toption[@ocaml.doc"Can be either null, or have a Boolean value type. Only one value can be provided."];emptyValue:EmptyFieldValue.toption;userArnValue:String_.toption[@ocaml.doc"Can be either null, or have a String value type formatted as an ARN. Only one value can be provided."]}letmake?stringValue=fun?doubleValue->fun?booleanValue->fun?emptyValue->fun?userArnValue->fun()->{stringValue;doubleValue;booleanValue;emptyValue;userArnValue}letto_valuex=structure_to_value[("stringValue",(Option.mapx.stringValue~f:AuditEventFieldValueUnionStringValueString.to_value));("doubleValue",(Option.mapx.doubleValue~f:Double.to_value));("booleanValue",(Option.mapx.booleanValue~f:Boolean.to_value));("emptyValue",(Option.mapx.emptyValue~f:EmptyFieldValue.to_value));("userArnValue",(Option.mapx.userArnValue~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserArnValue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"userArnValue")inletemptyValue=(Option.map~f:EmptyFieldValue.of_xml)(Xml.childxml_arg0"emptyValue")inletbooleanValue=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"booleanValue")inletdoubleValue=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"doubleValue")inletstringValue=(Option.map~f:AuditEventFieldValueUnionStringValueString.of_xml)(Xml.childxml_arg0"stringValue")inmake?userArnValue?emptyValue?booleanValue?doubleValue?stringValue()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserArnValue=field_mapjson__"userArnValue"String_.of_jsoninletemptyValue=field_mapjson__"emptyValue"EmptyFieldValue.of_jsoninletbooleanValue=field_mapjson__"booleanValue"Boolean.of_jsoninletdoubleValue=field_mapjson__"doubleValue"Double.of_jsoninletstringValue=field_mapjson__"stringValue"AuditEventFieldValueUnionStringValueString.of_jsoninmake?userArnValue?emptyValue?booleanValue?doubleValue?stringValue()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object to store union of Field values."]moduleAuditEventFieldId=structtypenonrect=stringletcontext_="AuditEventFieldId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AuditEventFieldId"jletto_json=simple_to_jsonto_valueendmoduleAuditEventField=structtypenonrect={eventFieldId:AuditEventFieldId.toption[@ocaml.doc"Unique identifier of field in an Audit History entry."];oldValue:AuditEventFieldValueUnion.toption[@ocaml.doc"Union of potential field value types."];newValue:AuditEventFieldValueUnion.toption[@ocaml.doc"Union of potential field value types."]}letmake?eventFieldId=fun?oldValue->fun?newValue->fun()->{eventFieldId;oldValue;newValue}letto_valuex=structure_to_value[("eventFieldId",(Option.mapx.eventFieldId~f:AuditEventFieldId.to_value));("oldValue",(Option.mapx.oldValue~f:AuditEventFieldValueUnion.to_value));("newValue",(Option.mapx.newValue~f:AuditEventFieldValueUnion.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnewValue=(Option.map~f:AuditEventFieldValueUnion.of_xml)(Xml.childxml_arg0"newValue")inletoldValue=(Option.map~f:AuditEventFieldValueUnion.of_xml)(Xml.childxml_arg0"oldValue")inleteventFieldId=(Option.map~f:AuditEventFieldId.of_xml)(Xml.childxml_arg0"eventFieldId")inmake?newValue?oldValue?eventFieldId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnewValue=field_mapjson__"newValue"AuditEventFieldValueUnion.of_jsoninletoldValue=field_mapjson__"oldValue"AuditEventFieldValueUnion.of_jsoninleteventFieldId=field_mapjson__"eventFieldId"AuditEventFieldId.of_jsoninmake?newValue?oldValue?eventFieldId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Fields for audit event."]moduleAuditEventFieldList=structtypenonrect=AuditEventField.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AuditEventField.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:AuditEventField.of_xml)letof_jsonj=list_of_json~kind:"AuditEventFieldList"~of_json:AuditEventField.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAuditEventDateTime=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_valueendmoduleAuditEvent=structtypenonrect={eventId:AuditEventId.toption[@ocaml.doc"Unique identifier of a case audit history event."];type_:AuditEventType.toption[@ocaml.doc"The type of audit history event. Valid Values: Case.Created | Case.Updated | RelatedItem.Created | RelatedItem.Updated | RelatedItem.Deleted"];relatedItemType:RelatedItemType.toption[@ocaml.doc"The Type of the related item."];performedTime:AuditEventDateTime.toption[@ocaml.doc"Time at which an Audit History event took place."];fields:AuditEventFieldList.toption[@ocaml.doc"A list of Case Audit History event fields."];performedBy:AuditEventPerformedBy.toption[@ocaml.doc"Information of the user which performed the audit."]}letmake?eventId=fun?type_->fun?relatedItemType->fun?performedTime->fun?fields->fun?performedBy->fun()->{eventId;type_;relatedItemType;performedTime;fields;performedBy}letto_valuex=structure_to_value[("eventId",(Option.mapx.eventId~f:AuditEventId.to_value));("type",(Option.mapx.type_~f:AuditEventType.to_value));("relatedItemType",(Option.mapx.relatedItemType~f:RelatedItemType.to_value));("performedTime",(Option.mapx.performedTime~f:AuditEventDateTime.to_value));("fields",(Option.mapx.fields~f:AuditEventFieldList.to_value));("performedBy",(Option.mapx.performedBy~f:AuditEventPerformedBy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letperformedBy=(Option.map~f:AuditEventPerformedBy.of_xml)(Xml.childxml_arg0"performedBy")inletfields=(Option.map~f:AuditEventFieldList.of_xml)(Xml.childxml_arg0"fields")inletperformedTime=(Option.map~f:AuditEventDateTime.of_xml)(Xml.childxml_arg0"performedTime")inletrelatedItemType=(Option.map~f:RelatedItemType.of_xml)(Xml.childxml_arg0"relatedItemType")inlettype_=(Option.map~f:AuditEventType.of_xml)(Xml.childxml_arg0"type")inleteventId=(Option.map~f:AuditEventId.of_xml)(Xml.childxml_arg0"eventId")inmake?performedBy?fields?performedTime?relatedItemType?type_?eventId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letperformedBy=field_mapjson__"performedBy"AuditEventPerformedBy.of_jsoninletfields=field_mapjson__"fields"AuditEventFieldList.of_jsoninletperformedTime=field_mapjson__"performedTime"AuditEventDateTime.of_jsoninletrelatedItemType=field_mapjson__"relatedItemType"RelatedItemType.of_jsoninlettype_=field_mapjson__"type"AuditEventType.of_jsoninleteventId=field_mapjson__"eventId"AuditEventId.of_jsoninmake?performedBy?fields?performedTime?relatedItemType?type_?eventId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the content of a particular audit event."]moduleFieldGroupNameString=structtypenonrect=stringletcontext_="FieldGroupNameString"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:"FieldGroupNameString"jletto_json=simple_to_jsonto_valueendmoduleFieldId=structtypenonrect=stringletcontext_="FieldId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"FieldId"jletto_json=simple_to_jsonto_valueendmoduleFieldItem=structtypenonrect={id:FieldId.t[@ocaml.doc"Unique identifier of a field."]}letcontext_="FieldItem"letmake~id=fun()->{id}letto_valuex=structure_to_value[("id",(Some(FieldId.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=FieldId.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"id"FieldId.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object for field related information."]moduleFieldGroupFieldsList=structtypenonrect=FieldItem.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:220)>>=(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:FieldItem.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:FieldItem.of_xml)letof_jsonj=list_of_json~kind:"FieldGroupFieldsList"~of_json:FieldItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFieldGroup=structtypenonrect={name:FieldGroupNameString.toption[@ocaml.doc"Name of the field group."];fields:FieldGroupFieldsList.t[@ocaml.doc"Represents an ordered list containing field related information."]}letcontext_="FieldGroup"letmake?name=fun~fields->fun()->{name;fields}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:FieldGroupNameString.to_value));("fields",(Some(FieldGroupFieldsList.to_valuex.fields)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfields=FieldGroupFieldsList.of_xml(Xml.child_exn~context:context_xml_arg0"fields")inletname=(Option.map~f:FieldGroupNameString.of_xml)(Xml.childxml_arg0"name")inmake~fields?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfields=field_map_exnjson__"fields"FieldGroupFieldsList.of_jsoninletname=field_mapjson__"name"FieldGroupNameString.of_jsoninmake~fields?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object for a group of fields and associated properties."]moduleSection=structtypenonrect={fieldGroup:FieldGroup.toption[@ocaml.doc"Consists of a group of fields and associated properties."]}letmake?fieldGroup=fun()->{fieldGroup}letto_valuex=structure_to_value[("fieldGroup",(Option.mapx.fieldGroup~f:FieldGroup.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfieldGroup=(Option.map~f:FieldGroup.of_xml)(Xml.childxml_arg0"fieldGroup")inmake?fieldGroup()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfieldGroup=field_mapjson__"fieldGroup"FieldGroup.of_jsoninmake?fieldGroup()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This represents a sections within a panel or tab of the page layout."]moduleSectionsList=structtypenonrect=Section.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Section.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:Section.of_xml)letof_jsonj=list_of_json~kind:"SectionsList"~of_json:Section.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLayoutSections=structtypenonrect={sections:SectionsList.toption}letmake?sections=fun()->{sections}letto_valuex=structure_to_value[("sections",(Option.mapx.sections~f:SectionsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsections=(Option.map~f:SectionsList.of_xml)(Xml.childxml_arg0"sections")inmake?sections()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsections=field_mapjson__"sections"SectionsList.of_jsoninmake?sections()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Ordered list containing different kinds of sections that can be added. A LayoutSections object can only contain one section."]moduleBasicLayout=structtypenonrect={topPanel:LayoutSections.toption[@ocaml.doc"This represents sections in a panel of the page layout."];moreInfo:LayoutSections.toption[@ocaml.doc"This represents sections in a tab of the page layout."]}letmake?topPanel=fun?moreInfo->fun()->{topPanel;moreInfo}letto_valuex=structure_to_value[("topPanel",(Option.mapx.topPanel~f:LayoutSections.to_value));("moreInfo",(Option.mapx.moreInfo~f:LayoutSections.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmoreInfo=(Option.map~f:LayoutSections.of_xml)(Xml.childxml_arg0"moreInfo")inlettopPanel=(Option.map~f:LayoutSections.of_xml)(Xml.childxml_arg0"topPanel")inmake?moreInfo?topPanel()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmoreInfo=field_mapjson__"moreInfo"LayoutSections.of_jsoninlettopPanel=field_mapjson__"topPanel"LayoutSections.of_jsoninmake?moreInfo?topPanel()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Content specific to BasicLayout type. It configures fields in the top panel and More Info tab of agent application."]moduleDomainId=structtypenonrect=stringletcontext_="DomainId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DomainId"jletto_json=simple_to_jsonto_valueendmoduleCaseRuleId=structtypenonrect=stringletcontext_="CaseRuleId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CaseRuleId"jletto_json=simple_to_jsonto_valueendmoduleCaseRuleIdentifier=structtypenonrect={id:CaseRuleId.t[@ocaml.doc"Unique identifier of a case rule."]}letcontext_="CaseRuleIdentifier"letmake~id=fun()->{id}letto_valuex=structure_to_value[("id",(Some(CaseRuleId.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=CaseRuleId.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"id"CaseRuleId.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object containing case rule identifier information."]moduleCaseRuleIdentifierList=structtypenonrect=CaseRuleIdentifier.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CaseRuleIdentifier.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:CaseRuleIdentifier.of_xml)letof_jsonj=list_of_json~kind:"CaseRuleIdentifierList"~of_json:CaseRuleIdentifier.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchGetCaseRuleRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"Unique identifier of a Cases domain."];caseRules:CaseRuleIdentifierList.t[@ocaml.doc"A list of case rule identifiers."]}letcontext_="BatchGetCaseRuleRequest"letmake~domainId=fun~caseRules->fun()->{domainId;caseRules}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("caseRules",(Some(CaseRuleIdentifierList.to_valuex.caseRules)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcaseRules=CaseRuleIdentifierList.of_xml(Xml.child_exn~context:context_xml_arg0"caseRules")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake~caseRules~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcaseRules=field_map_exnjson__"caseRules"CaseRuleIdentifierList.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake~caseRules~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets a batch of case rules. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]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 request isn't valid. Check the syntax and try again."]moduleThrottlingException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The rate has been exceeded for this API. Please try again after a few minutes."]moduleResourceNotFoundException=structtypenonrect={message:String_.toption;resourceId:String_.toption[@ocaml.doc"Unique identifier of the resource affected."];resourceType:String_.toption[@ocaml.doc"Type of the resource affected."]}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"We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again."]moduleInteger=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_valueendmoduleInternalServerException=structtypenonrect={message:String_.toption;retryAfterSeconds:Integer.toption[@ocaml.doc"Advice to clients on when the call can be safely retried."]}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"We couldn't process your request because of an issue with the server. Try again later."]moduleBatchGetCaseRuleResponseUnprocessedCaseRulesList=structtypenonrect=CaseRuleId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(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:CaseRuleId.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:CaseRuleId.of_xml)letof_jsonj=list_of_json~kind:"BatchGetCaseRuleResponseUnprocessedCaseRulesList"~of_json:CaseRuleId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCaseRuleError=structtypenonrect={id:CaseRuleId.toption[@ocaml.doc"The case rule identifier that caused the error."];errorCode:String_.toption[@ocaml.doc"Error code from getting a case rule."];message:String_.toption[@ocaml.doc"Error message from getting a case rule."]}letmake?id=fun?errorCode->fun?message->fun()->{id;errorCode;message}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:CaseRuleId.to_value));("errorCode",(Option.mapx.errorCode~f:String_.to_value));("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inleterrorCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"errorCode")inletid=(Option.map~f:CaseRuleId.of_xml)(Xml.childxml_arg0"id")inmake?message?errorCode?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninleterrorCode=field_mapjson__"errorCode"String_.of_jsoninletid=field_mapjson__"id"CaseRuleId.of_jsoninmake?message?errorCode?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Error for batch describe case rules API failure. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]moduleBatchGetCaseRuleResponseErrorsList=structtypenonrect=CaseRuleError.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(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:CaseRuleError.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:CaseRuleError.of_xml)letof_jsonj=list_of_json~kind:"BatchGetCaseRuleResponseErrorsList"~of_json:CaseRuleError.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTags=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_valuevendmoduleLastModifiedTime=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_valueendmoduleDeleted=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_valueendmoduleCreatedTime=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_valueendmoduleCaseRuleName=structtypenonrect=stringletcontext_="CaseRuleName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(fun()->check_patterni~pattern:".*[\\S]")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CaseRuleName"jletto_json=simple_to_jsonto_valueendmoduleOperandTwoStringValueString=structtypenonrect=stringletcontext_="OperandTwoStringValueString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1500)>>=(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:"OperandTwoStringValueString"jletto_json=simple_to_jsonto_valueendmoduleEmptyOperandValue=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents an empty operand value. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]moduleOperandTwo=structtypenonrect={stringValue:OperandTwoStringValueString.toption[@ocaml.doc"String value type."];booleanValue:Boolean.toption[@ocaml.doc"Boolean value type."];doubleValue:Double.toption[@ocaml.doc"Double value type."];emptyValue:EmptyOperandValue.toption[@ocaml.doc"Empty value type."]}letmake?stringValue=fun?booleanValue->fun?doubleValue->fun?emptyValue->fun()->{stringValue;booleanValue;doubleValue;emptyValue}letto_valuex=structure_to_value[("stringValue",(Option.mapx.stringValue~f:OperandTwoStringValueString.to_value));("booleanValue",(Option.mapx.booleanValue~f:Boolean.to_value));("doubleValue",(Option.mapx.doubleValue~f:Double.to_value));("emptyValue",(Option.mapx.emptyValue~f:EmptyOperandValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letemptyValue=(Option.map~f:EmptyOperandValue.of_xml)(Xml.childxml_arg0"emptyValue")inletdoubleValue=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"doubleValue")inletbooleanValue=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"booleanValue")inletstringValue=(Option.map~f:OperandTwoStringValueString.of_xml)(Xml.childxml_arg0"stringValue")inmake?emptyValue?doubleValue?booleanValue?stringValue()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letemptyValue=field_mapjson__"emptyValue"EmptyOperandValue.of_jsoninletdoubleValue=field_mapjson__"doubleValue"Double.of_jsoninletbooleanValue=field_mapjson__"booleanValue"Boolean.of_jsoninletstringValue=field_mapjson__"stringValue"OperandTwoStringValueString.of_jsoninmake?emptyValue?doubleValue?booleanValue?stringValue()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the right hand operand in the condition. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]moduleOperandOne=structtypenonrect={fieldId:FieldId.toption[@ocaml.doc"The field ID that this operand should take the value of."]}letmake?fieldId=fun()->{fieldId}letto_valuex=structure_to_value[("fieldId",(Option.mapx.fieldId~f:FieldId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfieldId=(Option.map~f:FieldId.of_xml)(Xml.childxml_arg0"fieldId")inmake?fieldId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfieldId=field_mapjson__"fieldId"FieldId.of_jsoninmake?fieldId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the left hand operand in the condition. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]moduleBooleanOperands=structtypenonrect={operandOne:OperandOne.t[@ocaml.doc"Represents the left hand operand in the condition."];operandTwo:OperandTwo.t[@ocaml.doc"Represents the right hand operand in the condition."];result:Boolean.t[@ocaml.doc"The value of the outer rule if the condition evaluates to true."]}letcontext_="BooleanOperands"letmake~operandOne=fun~operandTwo->fun~result->fun()->{operandOne;operandTwo;result}letto_valuex=structure_to_value[("operandOne",(Some(OperandOne.to_valuex.operandOne)));("operandTwo",(Some(OperandTwo.to_valuex.operandTwo)));("result",(Some(Boolean.to_valuex.result)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresult=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"result")inletoperandTwo=OperandTwo.of_xml(Xml.child_exn~context:context_xml_arg0"operandTwo")inletoperandOne=OperandOne.of_xml(Xml.child_exn~context:context_xml_arg0"operandOne")inmake~result~operandTwo~operandOne()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresult=field_map_exnjson__"result"Boolean.of_jsoninletoperandTwo=field_map_exnjson__"operandTwo"OperandTwo.of_jsoninletoperandOne=field_map_exnjson__"operandOne"OperandOne.of_jsoninmake~result~operandTwo~operandOne()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Boolean operands for a condition. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]modulerecBooleanCondition:sigtypenonrect={equalTo:BooleanOperands.toption[@ocaml.doc"Tests that operandOne is equal to operandTwo."];notEqualTo:BooleanOperands.toption[@ocaml.doc"Tests that operandOne is not equal to operandTwo."];andAll:CompoundCondition.toption[@ocaml.doc"Combines multiple conditions with AND operator. All conditions must be true for the compound condition to be true."];orAll:CompoundCondition.toption[@ocaml.doc"Combines multiple conditions with OR operator. At least one condition must be true for the compound condition to be true."]}valmake:?equalTo:BooleanOperands.t->?notEqualTo:BooleanOperands.t->?andAll:CompoundCondition.t->?orAll:CompoundCondition.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={equalTo:BooleanOperands.toption[@ocaml.doc"Tests that operandOne is equal to operandTwo."];notEqualTo:BooleanOperands.toption[@ocaml.doc"Tests that operandOne is not equal to operandTwo."];andAll:CompoundCondition.toption[@ocaml.doc"Combines multiple conditions with AND operator. All conditions must be true for the compound condition to be true."];orAll:CompoundCondition.toption[@ocaml.doc"Combines multiple conditions with OR operator. At least one condition must be true for the compound condition to be true."]}letmake?equalTo=fun?notEqualTo->fun?andAll->fun?orAll->fun()->{equalTo;notEqualTo;andAll;orAll}letto_valuex=structure_to_value[("equalTo",(Option.mapx.equalTo~f:BooleanOperands.to_value));("notEqualTo",(Option.mapx.notEqualTo~f:BooleanOperands.to_value));("andAll",(Option.mapx.andAll~f:CompoundCondition.to_value));("orAll",(Option.mapx.orAll~f:CompoundCondition.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letorAll=(Option.map~f:CompoundCondition.of_xml)(Xml.childxml_arg0"orAll")inletandAll=(Option.map~f:CompoundCondition.of_xml)(Xml.childxml_arg0"andAll")inletnotEqualTo=(Option.map~f:BooleanOperands.of_xml)(Xml.childxml_arg0"notEqualTo")inletequalTo=(Option.map~f:BooleanOperands.of_xml)(Xml.childxml_arg0"equalTo")inmake?orAll?andAll?notEqualTo?equalTo()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letorAll=field_mapjson__"orAll"CompoundCondition.of_jsoninletandAll=field_mapjson__"andAll"CompoundCondition.of_jsoninletnotEqualTo=field_mapjson__"notEqualTo"BooleanOperands.of_jsoninletequalTo=field_mapjson__"equalTo"BooleanOperands.of_jsoninmake?orAll?andAll?notEqualTo?equalTo()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Boolean condition for a rule. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]andBooleanConditionList:sigtypenonrect=BooleanCondition.tlistvalmake:BooleanCondition.tlist->tvalto_value:t->Botodata.valuevalto_query:t->Client.Query.tvalof_xml:Xml.t->BooleanCondition.tlistvalof_json:Yojson.Safe.t->tvalto_json:t->Yojson.Safe.tvalto_header:t->stringend=structtypenonrect=BooleanCondition.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:BooleanCondition.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:BooleanCondition.of_xml)letof_jsonj=list_of_json~kind:"BooleanConditionList"~of_json:BooleanCondition.of_jsonjletto_jsonv=composed_to_jsonto_valuevendandCompoundCondition:sigtypenonrect={conditions:BooleanConditionList.t[@ocaml.doc"The list of conditions to combine using the logical operator. For API users: A case rule can have a maximum of 5 conditions, spread across a maximum of 2 levels of nesting."]}valmake:conditions:BooleanConditionList.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={conditions:BooleanConditionList.t[@ocaml.doc"The list of conditions to combine using the logical operator. For API users: A case rule can have a maximum of 5 conditions, spread across a maximum of 2 levels of nesting."]}letcontext_="CompoundCondition"letmake~conditions=fun()->{conditions}letto_valuex=structure_to_value[("conditions",(Some(BooleanConditionList.to_valuex.conditions)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconditions=BooleanConditionList.of_xml(Xml.child_exn~context:context_xml_arg0"conditions")inmake~conditions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconditions=field_map_exnjson__"conditions"BooleanConditionList.of_jsoninmake~conditions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A compound condition that combines multiple boolean conditions using logical operators. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]moduleRequiredCaseRule=structtypenonrect={defaultValue:Boolean.t[@ocaml.doc"The value of the rule (that is, whether the field is required) should none of the conditions evaluate to true."];conditions:BooleanConditionList.t[@ocaml.doc"List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule."]}letcontext_="RequiredCaseRule"letmake~defaultValue=fun~conditions->fun()->{defaultValue;conditions}letto_valuex=structure_to_value[("defaultValue",(Some(Boolean.to_valuex.defaultValue)));("conditions",(Some(BooleanConditionList.to_valuex.conditions)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconditions=BooleanConditionList.of_xml(Xml.child_exn~context:context_xml_arg0"conditions")inletdefaultValue=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"defaultValue")inmake~conditions~defaultValue()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconditions=field_map_exnjson__"conditions"BooleanConditionList.of_jsoninletdefaultValue=field_map_exnjson__"defaultValue"Boolean.of_jsoninmake~conditions~defaultValue()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Required rule type, used to indicate whether a field is required. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]moduleHiddenCaseRule=structtypenonrect={defaultValue:Boolean.t[@ocaml.doc"Whether the field is hidden when no conditions match."];conditions:BooleanConditionList.t[@ocaml.doc"A list of conditions that determine field visibility."]}letcontext_="HiddenCaseRule"letmake~defaultValue=fun~conditions->fun()->{defaultValue;conditions}letto_valuex=structure_to_value[("defaultValue",(Some(Boolean.to_valuex.defaultValue)));("conditions",(Some(BooleanConditionList.to_valuex.conditions)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconditions=BooleanConditionList.of_xml(Xml.child_exn~context:context_xml_arg0"conditions")inletdefaultValue=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"defaultValue")inmake~conditions~defaultValue()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconditions=field_map_exnjson__"conditions"BooleanConditionList.of_jsoninletdefaultValue=field_map_exnjson__"defaultValue"Boolean.of_jsoninmake~conditions~defaultValue()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A rule that controls field visibility based on conditions. Fields can be shown or hidden dynamically based on values in other fields."]moduleParentChildFieldOptionValue=structtypenonrect=stringletcontext_="ParentChildFieldOptionValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:100)>>=(fun()->check_patterni~pattern:"$|^.*[\\S]")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ParentChildFieldOptionValue"jletto_json=simple_to_jsonto_valueendmoduleParentChildFieldOptionsMappingChildFieldOptionValuesList=structtypenonrect=ParentChildFieldOptionValue.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1500)>>=(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:ParentChildFieldOptionValue.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:ParentChildFieldOptionValue.of_xml)letof_jsonj=list_of_json~kind:"ParentChildFieldOptionsMappingChildFieldOptionValuesList"~of_json:ParentChildFieldOptionValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleParentChildFieldOptionsMapping=structtypenonrect={parentFieldOptionValue:ParentChildFieldOptionValue.t[@ocaml.doc"The value in the parent field."];childFieldOptionValues:ParentChildFieldOptionsMappingChildFieldOptionValuesList.t[@ocaml.doc"A list of allowed values in the child field."]}letcontext_="ParentChildFieldOptionsMapping"letmake~parentFieldOptionValue=fun~childFieldOptionValues->fun()->{parentFieldOptionValue;childFieldOptionValues}letto_valuex=structure_to_value[("parentFieldOptionValue",(Some(ParentChildFieldOptionValue.to_valuex.parentFieldOptionValue)));("childFieldOptionValues",(Some(ParentChildFieldOptionsMappingChildFieldOptionValuesList.to_valuex.childFieldOptionValues)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchildFieldOptionValues=ParentChildFieldOptionsMappingChildFieldOptionValuesList.of_xml(Xml.child_exn~context:context_xml_arg0"childFieldOptionValues")inletparentFieldOptionValue=ParentChildFieldOptionValue.of_xml(Xml.child_exn~context:context_xml_arg0"parentFieldOptionValue")inmake~childFieldOptionValues~parentFieldOptionValue()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchildFieldOptionValues=field_map_exnjson__"childFieldOptionValues"ParentChildFieldOptionsMappingChildFieldOptionValuesList.of_jsoninletparentFieldOptionValue=field_map_exnjson__"parentFieldOptionValue"ParentChildFieldOptionValue.of_jsoninmake~childFieldOptionValues~parentFieldOptionValue()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A mapping between a parent field option value and child field option values."]moduleParentChildFieldOptionsMappingList=structtypenonrect=ParentChildFieldOptionsMapping.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ParentChildFieldOptionsMapping.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:ParentChildFieldOptionsMapping.of_xml)letof_jsonj=list_of_json~kind:"ParentChildFieldOptionsMappingList"~of_json:ParentChildFieldOptionsMapping.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFieldOptionsCaseRule=structtypenonrect={parentFieldId:FieldId.toption[@ocaml.doc"The identifier of the parent field that controls options."];childFieldId:FieldId.toption[@ocaml.doc"The identifier of the child field whose options are controlled."];parentChildFieldOptionsMappings:ParentChildFieldOptionsMappingList.t[@ocaml.doc"A mapping between a parent field option value and child field option values."]}letcontext_="FieldOptionsCaseRule"letmake?parentFieldId=fun?childFieldId->fun~parentChildFieldOptionsMappings->fun()->{parentFieldId;childFieldId;parentChildFieldOptionsMappings}letto_valuex=structure_to_value[("parentFieldId",(Option.mapx.parentFieldId~f:FieldId.to_value));("childFieldId",(Option.mapx.childFieldId~f:FieldId.to_value));("parentChildFieldOptionsMappings",(Some(ParentChildFieldOptionsMappingList.to_valuex.parentChildFieldOptionsMappings)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letparentChildFieldOptionsMappings=ParentChildFieldOptionsMappingList.of_xml(Xml.child_exn~context:context_xml_arg0"parentChildFieldOptionsMappings")inletchildFieldId=(Option.map~f:FieldId.of_xml)(Xml.childxml_arg0"childFieldId")inletparentFieldId=(Option.map~f:FieldId.of_xml)(Xml.childxml_arg0"parentFieldId")inmake~parentChildFieldOptionsMappings?childFieldId?parentFieldId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letparentChildFieldOptionsMappings=field_map_exnjson__"parentChildFieldOptionsMappings"ParentChildFieldOptionsMappingList.of_jsoninletchildFieldId=field_mapjson__"childFieldId"FieldId.of_jsoninletparentFieldId=field_mapjson__"parentFieldId"FieldId.of_jsoninmake~parentChildFieldOptionsMappings?childFieldId?parentFieldId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Rules that control which options are available in a child field based on the selected value in a parent field."]moduleCaseRuleDetails=structtypenonrect={required:RequiredCaseRule.toption[@ocaml.doc"Required rule type, used to indicate whether a field is required."];fieldOptions:FieldOptionsCaseRule.toption[@ocaml.doc"Which options are available in a child field based on the selected value in a parent field."];hidden:HiddenCaseRule.toption[@ocaml.doc"Whether a field is visible, based on values in other fields."]}letmake?required=fun?fieldOptions->fun?hidden->fun()->{required;fieldOptions;hidden}letto_valuex=structure_to_value[("required",(Option.mapx.required~f:RequiredCaseRule.to_value));("fieldOptions",(Option.mapx.fieldOptions~f:FieldOptionsCaseRule.to_value));("hidden",(Option.mapx.hidden~f:HiddenCaseRule.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethidden=(Option.map~f:HiddenCaseRule.of_xml)(Xml.childxml_arg0"hidden")inletfieldOptions=(Option.map~f:FieldOptionsCaseRule.of_xml)(Xml.childxml_arg0"fieldOptions")inletrequired=(Option.map~f:RequiredCaseRule.of_xml)(Xml.childxml_arg0"required")inmake?hidden?fieldOptions?required()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethidden=field_mapjson__"hidden"HiddenCaseRule.of_jsoninletfieldOptions=field_mapjson__"fieldOptions"FieldOptionsCaseRule.of_jsoninletrequired=field_mapjson__"required"RequiredCaseRule.of_jsoninmake?hidden?fieldOptions?required()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents what rule type should take place, under what conditions. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]moduleCaseRuleDescription=structtypenonrect=stringletcontext_="CaseRuleDescription"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(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:"CaseRuleDescription"jletto_json=simple_to_jsonto_valueendmoduleCaseRuleArn=structtypenonrect=stringletcontext_="CaseRuleArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CaseRuleArn"jletto_json=simple_to_jsonto_valueendmoduleGetCaseRuleResponse=structtypenonrect={caseRuleId:CaseRuleId.toption[@ocaml.doc"Unique identifier of a case rule."];name:CaseRuleName.toption[@ocaml.doc"Name of the case rule."];caseRuleArn:CaseRuleArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the case rule."];rule:CaseRuleDetails.toption[@ocaml.doc"Represents what rule type should take place, under what conditions."];description:CaseRuleDescription.toption[@ocaml.doc"Description of a case rule."];deleted:Deleted.toption[@ocaml.doc"Indicates whether the resource has been deleted."];createdTime:CreatedTime.toption[@ocaml.doc"Timestamp when the resource was created."];lastModifiedTime:LastModifiedTime.toption[@ocaml.doc"Timestamp when the resource was created or last modified."];tags:Tags.toption[@ocaml.doc"A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource."]}letmake?caseRuleId=fun?name->fun?caseRuleArn->fun?rule->fun?description->fun?deleted->fun?createdTime->fun?lastModifiedTime->fun?tags->fun()->{caseRuleId;name;caseRuleArn;rule;description;deleted;createdTime;lastModifiedTime;tags}letto_valuex=structure_to_value[("caseRuleId",(Option.mapx.caseRuleId~f:CaseRuleId.to_value));("name",(Option.mapx.name~f:CaseRuleName.to_value));("caseRuleArn",(Option.mapx.caseRuleArn~f:CaseRuleArn.to_value));("rule",(Option.mapx.rule~f:CaseRuleDetails.to_value));("description",(Option.mapx.description~f:CaseRuleDescription.to_value));("deleted",(Option.mapx.deleted~f:Deleted.to_value));("createdTime",(Option.mapx.createdTime~f:CreatedTime.to_value));("lastModifiedTime",(Option.mapx.lastModifiedTime~f:LastModifiedTime.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")inletlastModifiedTime=(Option.map~f:LastModifiedTime.of_xml)(Xml.childxml_arg0"lastModifiedTime")inletcreatedTime=(Option.map~f:CreatedTime.of_xml)(Xml.childxml_arg0"createdTime")inletdeleted=(Option.map~f:Deleted.of_xml)(Xml.childxml_arg0"deleted")inletdescription=(Option.map~f:CaseRuleDescription.of_xml)(Xml.childxml_arg0"description")inletrule=(Option.map~f:CaseRuleDetails.of_xml)(Xml.childxml_arg0"rule")inletcaseRuleArn=(Option.map~f:CaseRuleArn.of_xml)(Xml.childxml_arg0"caseRuleArn")inletname=(Option.map~f:CaseRuleName.of_xml)(Xml.childxml_arg0"name")inletcaseRuleId=(Option.map~f:CaseRuleId.of_xml)(Xml.childxml_arg0"caseRuleId")inmake?tags?lastModifiedTime?createdTime?deleted?description?rule?caseRuleArn?name?caseRuleId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletlastModifiedTime=field_mapjson__"lastModifiedTime"LastModifiedTime.of_jsoninletcreatedTime=field_mapjson__"createdTime"CreatedTime.of_jsoninletdeleted=field_mapjson__"deleted"Deleted.of_jsoninletdescription=field_mapjson__"description"CaseRuleDescription.of_jsoninletrule=field_mapjson__"rule"CaseRuleDetails.of_jsoninletcaseRuleArn=field_mapjson__"caseRuleArn"CaseRuleArn.of_jsoninletname=field_mapjson__"name"CaseRuleName.of_jsoninletcaseRuleId=field_mapjson__"caseRuleId"CaseRuleId.of_jsoninmake?tags?lastModifiedTime?createdTime?deleted?description?rule?caseRuleArn?name?caseRuleId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Detailed case rule information. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]moduleBatchGetCaseRuleResponseCaseRulesList=structtypenonrect=GetCaseRuleResponse.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(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:GetCaseRuleResponse.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:GetCaseRuleResponse.of_xml)letof_jsonj=list_of_json~kind:"BatchGetCaseRuleResponseCaseRulesList"~of_json:GetCaseRuleResponse.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchGetCaseRuleResponse=structtypenonrect={caseRules:BatchGetCaseRuleResponseCaseRulesList.toption[@ocaml.doc"A list of detailed case rule information."];errors:BatchGetCaseRuleResponseErrorsList.toption[@ocaml.doc"A list of case rule errors."];unprocessedCaseRules:BatchGetCaseRuleResponseUnprocessedCaseRulesList.toption[@ocaml.doc"A list of unprocessed case rule identifiers."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?caseRules=fun?errors->fun?unprocessedCaseRules->fun()->{caseRules;errors;unprocessedCaseRules}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[("caseRules",(Option.mapx.caseRules~f:BatchGetCaseRuleResponseCaseRulesList.to_value));("errors",(Option.mapx.errors~f:BatchGetCaseRuleResponseErrorsList.to_value));("unprocessedCaseRules",(Option.mapx.unprocessedCaseRules~f:BatchGetCaseRuleResponseUnprocessedCaseRulesList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunprocessedCaseRules=(Option.map~f:BatchGetCaseRuleResponseUnprocessedCaseRulesList.of_xml)(Xml.childxml_arg0"unprocessedCaseRules")inleterrors=(Option.map~f:BatchGetCaseRuleResponseErrorsList.of_xml)(Xml.childxml_arg0"errors")inletcaseRules=(Option.map~f:BatchGetCaseRuleResponseCaseRulesList.of_xml)(Xml.childxml_arg0"caseRules")inmake?unprocessedCaseRules?errors?caseRules()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunprocessedCaseRules=field_mapjson__"unprocessedCaseRules"BatchGetCaseRuleResponseUnprocessedCaseRulesList.of_jsoninleterrors=field_mapjson__"errors"BatchGetCaseRuleResponseErrorsList.of_jsoninletcaseRules=field_mapjson__"caseRules"BatchGetCaseRuleResponseCaseRulesList.of_jsoninmake?unprocessedCaseRules?errors?caseRules()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets a batch of case rules. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]moduleFieldIdentifier=structtypenonrect={id:FieldId.t[@ocaml.doc"Unique identifier of a field."]}letcontext_="FieldIdentifier"letmake~id=fun()->{id}letto_valuex=structure_to_value[("id",(Some(FieldId.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=FieldId.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"id"FieldId.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object for unique identifier of a field."]moduleBatchGetFieldIdentifierList=structtypenonrect=FieldIdentifier.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FieldIdentifier.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:FieldIdentifier.of_xml)letof_jsonj=list_of_json~kind:"BatchGetFieldIdentifierList"~of_json:FieldIdentifier.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchGetFieldRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];fields:BatchGetFieldIdentifierList.t[@ocaml.doc"A list of unique field identifiers."]}letcontext_="BatchGetFieldRequest"letmake~domainId=fun~fields->fun()->{domainId;fields}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("fields",(Some(BatchGetFieldIdentifierList.to_valuex.fields)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfields=BatchGetFieldIdentifierList.of_xml(Xml.child_exn~context:context_xml_arg0"fields")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake~fields~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfields=field_map_exnjson__"fields"BatchGetFieldIdentifierList.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake~fields~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the description for the list of fields in the request parameters."]moduleFieldType=structtypenonrect=|Text|Number|Boolean|DateTime|SingleSelect|Url|User|Non_static_idofstringletmakei=iletto_string=function|Text->"Text"|Number->"Number"|Boolean->"Boolean"|DateTime->"DateTime"|SingleSelect->"SingleSelect"|Url->"Url"|User->"User"|Non_static_ids->sletof_string=function|"Text"->Text|"Number"->Number|"Boolean"->Boolean|"DateTime"->DateTime|"SingleSelect"->SingleSelect|"Url"->Url|"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 FieldType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FieldType"j)letto_json=simple_to_jsonto_valueendmoduleFieldNamespace=structtypenonrect=|System|Custom|Non_static_idofstringletmakei=iletto_string=function|System->"System"|Custom->"Custom"|Non_static_ids->sletof_string=function|"System"->System|"Custom"->Custom|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 FieldNamespace"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FieldNamespace"j)letto_json=simple_to_jsonto_valueendmoduleFieldName=structtypenonrect=stringletcontext_="FieldName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(fun()->check_patterni~pattern:".*[\\S]")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"FieldName"jletto_json=simple_to_jsonto_valueendmoduleFieldDescription=structtypenonrect=stringletcontext_="FieldDescription"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(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:"FieldDescription"jletto_json=simple_to_jsonto_valueendmoduleTextAttributes=structtypenonrect={isMultiline:Boolean.t[@ocaml.doc"Attribute that defines rendering component and validation."]}letcontext_="TextAttributes"letmake~isMultiline=fun()->{isMultiline}letto_valuex=structure_to_value[("isMultiline",(Some(Boolean.to_valuex.isMultiline)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letisMultiline=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"isMultiline")inmake~isMultiline()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letisMultiline=field_map_exnjson__"isMultiline"Boolean.of_jsoninmake~isMultiline()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Field attributes for Text field type."]moduleFieldAttributes=structtypenonrect={text:TextAttributes.toption[@ocaml.doc"Field attributes for Text field type."]}letmake?text=fun()->{text}letto_valuex=structure_to_value[("text",(Option.mapx.text~f:TextAttributes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettext=(Option.map~f:TextAttributes.of_xml)(Xml.childxml_arg0"text")inmake?text()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettext=field_mapjson__"text"TextAttributes.of_jsoninmake?text()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Union of field attributes."]moduleFieldArn=structtypenonrect=stringletcontext_="FieldArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"FieldArn"jletto_json=simple_to_jsonto_valueendmoduleGetFieldResponse=structtypenonrect={fieldId:FieldId.toption[@ocaml.doc"Unique identifier of the field."];name:FieldName.toption[@ocaml.doc"Name of the field."];fieldArn:FieldArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the field."];description:FieldDescription.toption[@ocaml.doc"Description of the field."];type_:FieldType.toption[@ocaml.doc"Type of the field."];namespace:FieldNamespace.toption[@ocaml.doc"Namespace of the field."];tags:Tags.toption[@ocaml.doc"A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource."];deleted:Deleted.toption[@ocaml.doc"Denotes whether or not the resource has been deleted."];createdTime:CreatedTime.toption[@ocaml.doc"Timestamp at which the resource was created."];lastModifiedTime:LastModifiedTime.toption[@ocaml.doc"Timestamp at which the resource was created or last modified."];attributes:FieldAttributes.toption[@ocaml.doc"Union of field attributes."]}letmake?fieldId=fun?name->fun?fieldArn->fun?description->fun?type_->fun?namespace->fun?tags->fun?deleted->fun?createdTime->fun?lastModifiedTime->fun?attributes->fun()->{fieldId;name;fieldArn;description;type_;namespace;tags;deleted;createdTime;lastModifiedTime;attributes}letto_valuex=structure_to_value[("fieldId",(Option.mapx.fieldId~f:FieldId.to_value));("name",(Option.mapx.name~f:FieldName.to_value));("fieldArn",(Option.mapx.fieldArn~f:FieldArn.to_value));("description",(Option.mapx.description~f:FieldDescription.to_value));("type",(Option.mapx.type_~f:FieldType.to_value));("namespace",(Option.mapx.namespace~f:FieldNamespace.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("deleted",(Option.mapx.deleted~f:Deleted.to_value));("createdTime",(Option.mapx.createdTime~f:CreatedTime.to_value));("lastModifiedTime",(Option.mapx.lastModifiedTime~f:LastModifiedTime.to_value));("attributes",(Option.mapx.attributes~f:FieldAttributes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributes=(Option.map~f:FieldAttributes.of_xml)(Xml.childxml_arg0"attributes")inletlastModifiedTime=(Option.map~f:LastModifiedTime.of_xml)(Xml.childxml_arg0"lastModifiedTime")inletcreatedTime=(Option.map~f:CreatedTime.of_xml)(Xml.childxml_arg0"createdTime")inletdeleted=(Option.map~f:Deleted.of_xml)(Xml.childxml_arg0"deleted")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletnamespace=(Option.map~f:FieldNamespace.of_xml)(Xml.childxml_arg0"namespace")inlettype_=(Option.map~f:FieldType.of_xml)(Xml.childxml_arg0"type")inletdescription=(Option.map~f:FieldDescription.of_xml)(Xml.childxml_arg0"description")inletfieldArn=(Option.map~f:FieldArn.of_xml)(Xml.childxml_arg0"fieldArn")inletname=(Option.map~f:FieldName.of_xml)(Xml.childxml_arg0"name")inletfieldId=(Option.map~f:FieldId.of_xml)(Xml.childxml_arg0"fieldId")inmake?attributes?lastModifiedTime?createdTime?deleted?tags?namespace?type_?description?fieldArn?name?fieldId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_mapjson__"attributes"FieldAttributes.of_jsoninletlastModifiedTime=field_mapjson__"lastModifiedTime"LastModifiedTime.of_jsoninletcreatedTime=field_mapjson__"createdTime"CreatedTime.of_jsoninletdeleted=field_mapjson__"deleted"Deleted.of_jsoninlettags=field_mapjson__"tags"Tags.of_jsoninletnamespace=field_mapjson__"namespace"FieldNamespace.of_jsoninlettype_=field_mapjson__"type"FieldType.of_jsoninletdescription=field_mapjson__"description"FieldDescription.of_jsoninletfieldArn=field_mapjson__"fieldArn"FieldArn.of_jsoninletname=field_mapjson__"name"FieldName.of_jsoninletfieldId=field_mapjson__"fieldId"FieldId.of_jsoninmake?attributes?lastModifiedTime?createdTime?deleted?tags?namespace?type_?description?fieldArn?name?fieldId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object to store detailed field information."]moduleBatchGetFieldResponseFieldsList=structtypenonrect=GetFieldResponse.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(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:GetFieldResponse.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:GetFieldResponse.of_xml)letof_jsonj=list_of_json~kind:"BatchGetFieldResponseFieldsList"~of_json:GetFieldResponse.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFieldError=structtypenonrect={id:FieldId.toption[@ocaml.doc"The field identifier that caused the error."];errorCode:String_.toption[@ocaml.doc"The error code from getting a field."];message:String_.toption[@ocaml.doc"The error message from getting a field."]}letmake?id=fun?errorCode->fun?message->fun()->{id;errorCode;message}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:FieldId.to_value));("errorCode",(Option.mapx.errorCode~f:String_.to_value));("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inleterrorCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"errorCode")inletid=(Option.map~f:FieldId.of_xml)(Xml.childxml_arg0"id")inmake?message?errorCode?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninleterrorCode=field_mapjson__"errorCode"String_.of_jsoninletid=field_mapjson__"id"FieldId.of_jsoninmake?message?errorCode?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object for errors on fields."]moduleBatchGetFieldResponseErrorsList=structtypenonrect=FieldError.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(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:FieldError.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:FieldError.of_xml)letof_jsonj=list_of_json~kind:"BatchGetFieldResponseErrorsList"~of_json:FieldError.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchGetFieldResponse=structtypenonrect={fields:BatchGetFieldResponseFieldsList.toption[@ocaml.doc"A list of detailed field information."];errors:BatchGetFieldResponseErrorsList.toption[@ocaml.doc"A list of field errors."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?fields=fun?errors->fun()->{fields;errors}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[("fields",(Option.mapx.fields~f:BatchGetFieldResponseFieldsList.to_value));("errors",(Option.mapx.errors~f:BatchGetFieldResponseErrorsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrors=(Option.map~f:BatchGetFieldResponseErrorsList.of_xml)(Xml.childxml_arg0"errors")inletfields=(Option.map~f:BatchGetFieldResponseFieldsList.of_xml)(Xml.childxml_arg0"fields")inmake?errors?fields()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrors=field_mapjson__"errors"BatchGetFieldResponseErrorsList.of_jsoninletfields=field_mapjson__"fields"BatchGetFieldResponseFieldsList.of_jsoninmake?errors?fields()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the description for the list of fields in the request parameters."]moduleFieldOptionValue=structtypenonrect=stringletcontext_="FieldOptionValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(fun()->check_patterni~pattern:".*[\\S]")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"FieldOptionValue"jletto_json=simple_to_jsonto_valueendmoduleFieldOptionName=structtypenonrect=stringletcontext_="FieldOptionName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(fun()->check_patterni~pattern:".*[\\S]")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"FieldOptionName"jletto_json=simple_to_jsonto_valueendmoduleFieldOption=structtypenonrect={name:FieldOptionName.t[@ocaml.doc"FieldOptionName has max length 100 and disallows trailing spaces."];value:FieldOptionValue.t[@ocaml.doc"FieldOptionValue has max length 100 and must be alphanumeric with hyphens and underscores."];active:Boolean.t[@ocaml.doc"Describes whether the FieldOption is active (displayed) or inactive."]}letcontext_="FieldOption"letmake~name=fun~value->fun~active->fun()->{name;value;active}letto_valuex=structure_to_value[("name",(Some(FieldOptionName.to_valuex.name)));("value",(Some(FieldOptionValue.to_valuex.value)));("active",(Some(Boolean.to_valuex.active)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letactive=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"active")inletvalue=FieldOptionValue.of_xml(Xml.child_exn~context:context_xml_arg0"value")inletname=FieldOptionName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~active~value~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letactive=field_map_exnjson__"active"Boolean.of_jsoninletvalue=field_map_exnjson__"value"FieldOptionValue.of_jsoninletname=field_map_exnjson__"name"FieldOptionName.of_jsoninmake~active~value~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object for field Options information."]moduleBatchPutFieldOptionsRequestOptionsList=structtypenonrect=FieldOption.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(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:FieldOption.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:FieldOption.of_xml)letof_jsonj=list_of_json~kind:"BatchPutFieldOptionsRequestOptionsList"~of_json:FieldOption.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchPutFieldOptionsRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];fieldId:FieldId.t[@ocaml.doc"The unique identifier of a field."];options:BatchPutFieldOptionsRequestOptionsList.t[@ocaml.doc"A list of FieldOption objects."]}letcontext_="BatchPutFieldOptionsRequest"letmake~domainId=fun~fieldId->fun~options->fun()->{domainId;fieldId;options}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("fieldId",(Some(FieldId.to_valuex.fieldId)));("options",(Some(BatchPutFieldOptionsRequestOptionsList.to_valuex.options)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoptions=BatchPutFieldOptionsRequestOptionsList.of_xml(Xml.child_exn~context:context_xml_arg0"options")inletfieldId=FieldId.of_xml(Xml.child_exn~context:context_xml_arg0"fieldId")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake~options~fieldId~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoptions=field_map_exnjson__"options"BatchPutFieldOptionsRequestOptionsList.of_jsoninletfieldId=field_map_exnjson__"fieldId"FieldId.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake~options~fieldId~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates and updates a set of field options for a single select field in a Cases domain."]moduleServiceQuotaExceededException=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 service quota has been exceeded. For a list of service quotas, see Amazon Connect Service Quotas in the Amazon Connect Administrator Guide."]moduleFieldOptionError=structtypenonrect={message:String_.toption[@ocaml.doc"Error message from creating or updating field option."];errorCode:String_.toption[@ocaml.doc"Error code from creating or updating field option."];value:FieldOptionValue.toption[@ocaml.doc"The field option value that caused the error."]}letmake?message=fun?errorCode->fun?value->fun()->{message;errorCode;value}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("errorCode",(Option.mapx.errorCode~f:String_.to_value));("value",(Option.mapx.value~f:FieldOptionValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:FieldOptionValue.of_xml)(Xml.childxml_arg0"value")inleterrorCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"errorCode")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?value?errorCode?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"value"FieldOptionValue.of_jsoninleterrorCode=field_mapjson__"errorCode"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?value?errorCode?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object for field Options errors."]moduleBatchPutFieldOptionsResponseErrorsList=structtypenonrect=FieldOptionError.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(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:FieldOptionError.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:FieldOptionError.of_xml)letof_jsonj=list_of_json~kind:"BatchPutFieldOptionsResponseErrorsList"~of_json:FieldOptionError.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchPutFieldOptionsResponse=structtypenonrect={errors:BatchPutFieldOptionsResponseErrorsList.toption[@ocaml.doc"A list of field errors."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?errors=fun()->{errors}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)|"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)|"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))]|`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[("errors",(Option.mapx.errors~f:BatchPutFieldOptionsResponseErrorsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrors=(Option.map~f:BatchPutFieldOptionsResponseErrorsList.of_xml)(Xml.childxml_arg0"errors")inmake?errors()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrors=field_mapjson__"errors"BatchPutFieldOptionsResponseErrorsList.of_jsoninmake?errors()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates and updates a set of field options for a single select field in a Cases domain."]moduleCaseArn=structtypenonrect=stringletcontext_="CaseArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CaseArn"jletto_json=simple_to_jsonto_valueendmoduleCaseEventIncludedDataFieldsList=structtypenonrect=FieldIdentifier.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:400)>>=(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:FieldIdentifier.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:FieldIdentifier.of_xml)letof_jsonj=list_of_json~kind:"CaseEventIncludedDataFieldsList"~of_json:FieldIdentifier.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCaseEventIncludedData=structtypenonrect={fields:CaseEventIncludedDataFieldsList.t[@ocaml.doc"List of field identifiers."]}letcontext_="CaseEventIncludedData"letmake~fields=fun()->{fields}letto_valuex=structure_to_value[("fields",(Some(CaseEventIncludedDataFieldsList.to_valuex.fields)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfields=CaseEventIncludedDataFieldsList.of_xml(Xml.child_exn~context:context_xml_arg0"fields")inmake~fields()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfields=field_map_exnjson__"fields"CaseEventIncludedDataFieldsList.of_jsoninmake~fields()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details of what case data is published through the case event stream."]moduleTagValueString=structtypenonrect=stringletcontext_="TagValueString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"([a-zA-Z0-9 _.:/=+\\-@]*)")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValueString"jletto_json=simple_to_jsonto_valueendmoduleSearchTagKey=structtypenonrect=stringletcontext_="SearchTagKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9 _.:/=+\\-@]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SearchTagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect={key:SearchTagKey.toption[@ocaml.doc"The tag key in the tag filter value."];value:TagValueString.toption[@ocaml.doc"The tag value in the tag filter value."]}letmake?key=fun?value->fun()->{key;value}letto_valuex=structure_to_value[("key",(Option.mapx.key~f:SearchTagKey.to_value));("value",(Option.mapx.value~f:TagValueString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:TagValueString.of_xml)(Xml.childxml_arg0"value")inletkey=(Option.map~f:SearchTagKey.of_xml)(Xml.childxml_arg0"key")inmake?value?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"value"TagValueString.of_jsoninletkey=field_mapjson__"key"SearchTagKey.of_jsoninmake?value?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object for case tag filter values."]moduleTagFilter=structtypenonrect={equalTo:TagValue.toption[@ocaml.doc"Object containing tag key and value information."]}letmake?equalTo=fun()->{equalTo}letto_valuex=structure_to_value[("equalTo",(Option.mapx.equalTo~f:TagValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letequalTo=(Option.map~f:TagValue.of_xml)(Xml.childxml_arg0"equalTo")inmake?equalTo()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letequalTo=field_mapjson__"equalTo"TagValue.of_jsoninmake?equalTo()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A filter for tags. Only one value can be provided."]moduleFieldValueUnionStringValueString=structtypenonrect=stringletcontext_="FieldValueUnionStringValueString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:4100)>>=(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:"FieldValueUnionStringValueString"jletto_json=simple_to_jsonto_valueendmoduleFieldValueUnion=structtypenonrect={stringValue:FieldValueUnionStringValueString.toption[@ocaml.doc"String value type."];doubleValue:Double.toption[@ocaml.doc"Can be either null, or have a Double number value type. Only one value can be provided."];booleanValue:Boolean.toption[@ocaml.doc"Can be either null, or have a Boolean value type. Only one value can be provided."];emptyValue:EmptyFieldValue.toption[@ocaml.doc"An empty value."];userArnValue:String_.toption[@ocaml.doc"Represents the user that performed the audit."]}letmake?stringValue=fun?doubleValue->fun?booleanValue->fun?emptyValue->fun?userArnValue->fun()->{stringValue;doubleValue;booleanValue;emptyValue;userArnValue}letto_valuex=structure_to_value[("stringValue",(Option.mapx.stringValue~f:FieldValueUnionStringValueString.to_value));("doubleValue",(Option.mapx.doubleValue~f:Double.to_value));("booleanValue",(Option.mapx.booleanValue~f:Boolean.to_value));("emptyValue",(Option.mapx.emptyValue~f:EmptyFieldValue.to_value));("userArnValue",(Option.mapx.userArnValue~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserArnValue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"userArnValue")inletemptyValue=(Option.map~f:EmptyFieldValue.of_xml)(Xml.childxml_arg0"emptyValue")inletbooleanValue=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"booleanValue")inletdoubleValue=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"doubleValue")inletstringValue=(Option.map~f:FieldValueUnionStringValueString.of_xml)(Xml.childxml_arg0"stringValue")inmake?userArnValue?emptyValue?booleanValue?doubleValue?stringValue()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserArnValue=field_mapjson__"userArnValue"String_.of_jsoninletemptyValue=field_mapjson__"emptyValue"EmptyFieldValue.of_jsoninletbooleanValue=field_mapjson__"booleanValue"Boolean.of_jsoninletdoubleValue=field_mapjson__"doubleValue"Double.of_jsoninletstringValue=field_mapjson__"stringValue"FieldValueUnionStringValueString.of_jsoninmake?userArnValue?emptyValue?booleanValue?doubleValue?stringValue()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object to store union of Field values. The Summary system field accepts up to 3000 characters, while all other fields accept up to 4100 characters. If you use multi-byte characters, the effective character limit may be lower."]moduleFieldValue=structtypenonrect={id:FieldId.t[@ocaml.doc"Unique identifier of a field."];value:FieldValueUnion.t[@ocaml.doc"Union of potential field value types."]}letcontext_="FieldValue"letmake~id=fun~value->fun()->{id;value}letto_valuex=structure_to_value[("id",(Some(FieldId.to_valuex.id)));("value",(Some(FieldValueUnion.to_valuex.value)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=FieldValueUnion.of_xml(Xml.child_exn~context:context_xml_arg0"value")inletid=FieldId.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~value~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_map_exnjson__"value"FieldValueUnion.of_jsoninletid=field_map_exnjson__"id"FieldId.of_jsoninmake~value~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object for case field values."]moduleFieldFilter=structtypenonrect={equalTo:FieldValue.toption[@ocaml.doc"Object containing field identifier and value information."];contains:FieldValue.toption[@ocaml.doc"Object containing field identifier and value information."];greaterThan:FieldValue.toption[@ocaml.doc"Object containing field identifier and value information."];greaterThanOrEqualTo:FieldValue.toption[@ocaml.doc"Object containing field identifier and value information."];lessThan:FieldValue.toption[@ocaml.doc"Object containing field identifier and value information."];lessThanOrEqualTo:FieldValue.toption[@ocaml.doc"Object containing field identifier and value information."]}letmake?equalTo=fun?contains->fun?greaterThan->fun?greaterThanOrEqualTo->fun?lessThan->fun?lessThanOrEqualTo->fun()->{equalTo;contains;greaterThan;greaterThanOrEqualTo;lessThan;lessThanOrEqualTo}letto_valuex=structure_to_value[("equalTo",(Option.mapx.equalTo~f:FieldValue.to_value));("contains",(Option.mapx.contains~f:FieldValue.to_value));("greaterThan",(Option.mapx.greaterThan~f:FieldValue.to_value));("greaterThanOrEqualTo",(Option.mapx.greaterThanOrEqualTo~f:FieldValue.to_value));("lessThan",(Option.mapx.lessThan~f:FieldValue.to_value));("lessThanOrEqualTo",(Option.mapx.lessThanOrEqualTo~f:FieldValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlessThanOrEqualTo=(Option.map~f:FieldValue.of_xml)(Xml.childxml_arg0"lessThanOrEqualTo")inletlessThan=(Option.map~f:FieldValue.of_xml)(Xml.childxml_arg0"lessThan")inletgreaterThanOrEqualTo=(Option.map~f:FieldValue.of_xml)(Xml.childxml_arg0"greaterThanOrEqualTo")inletgreaterThan=(Option.map~f:FieldValue.of_xml)(Xml.childxml_arg0"greaterThan")inletcontains=(Option.map~f:FieldValue.of_xml)(Xml.childxml_arg0"contains")inletequalTo=(Option.map~f:FieldValue.of_xml)(Xml.childxml_arg0"equalTo")inmake?lessThanOrEqualTo?lessThan?greaterThanOrEqualTo?greaterThan?contains?equalTo()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlessThanOrEqualTo=field_mapjson__"lessThanOrEqualTo"FieldValue.of_jsoninletlessThan=field_mapjson__"lessThan"FieldValue.of_jsoninletgreaterThanOrEqualTo=field_mapjson__"greaterThanOrEqualTo"FieldValue.of_jsoninletgreaterThan=field_mapjson__"greaterThan"FieldValue.of_jsoninletcontains=field_mapjson__"contains"FieldValue.of_jsoninletequalTo=field_mapjson__"equalTo"FieldValue.of_jsoninmake?lessThanOrEqualTo?lessThan?greaterThanOrEqualTo?greaterThan?contains?equalTo()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A filter for fields. Only one value can be provided."]modulerecCaseFilter:sigtypenonrect={field:FieldFilter.toption[@ocaml.doc"A list of fields to filter on."];not:CaseFilter.toption;tag:TagFilter.toption[@ocaml.doc"A list of tags to filter on."];andAll:CaseFilterAndAllList.toption[@ocaml.doc"Provides \"and all\" filtering."];orAll:CaseFilterOrAllList.toption[@ocaml.doc"Provides \"or all\" filtering."]}valmake:?field:FieldFilter.t->?not:CaseFilter.t->?tag:TagFilter.t->?andAll:CaseFilterAndAllList.t->?orAll:CaseFilterOrAllList.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={field:FieldFilter.toption[@ocaml.doc"A list of fields to filter on."];not:CaseFilter.toption;tag:TagFilter.toption[@ocaml.doc"A list of tags to filter on."];andAll:CaseFilterAndAllList.toption[@ocaml.doc"Provides \"and all\" filtering."];orAll:CaseFilterOrAllList.toption[@ocaml.doc"Provides \"or all\" filtering."]}letmake?field=fun?not->fun?tag->fun?andAll->fun?orAll->fun()->{field;not;tag;andAll;orAll}letto_valuex=structure_to_value[("field",(Option.mapx.field~f:FieldFilter.to_value));("not",(Option.mapx.not~f:CaseFilter.to_value));("tag",(Option.mapx.tag~f:TagFilter.to_value));("andAll",(Option.mapx.andAll~f:CaseFilterAndAllList.to_value));("orAll",(Option.mapx.orAll~f:CaseFilterOrAllList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letorAll=(Option.map~f:CaseFilterOrAllList.of_xml)(Xml.childxml_arg0"orAll")inletandAll=(Option.map~f:CaseFilterAndAllList.of_xml)(Xml.childxml_arg0"andAll")inlettag=(Option.map~f:TagFilter.of_xml)(Xml.childxml_arg0"tag")inletnot=(Option.map~f:CaseFilter.of_xml)(Xml.childxml_arg0"not")inletfield=(Option.map~f:FieldFilter.of_xml)(Xml.childxml_arg0"field")inmake?orAll?andAll?tag?not?field()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letorAll=field_mapjson__"orAll"CaseFilterOrAllList.of_jsoninletandAll=field_mapjson__"andAll"CaseFilterAndAllList.of_jsoninlettag=field_mapjson__"tag"TagFilter.of_jsoninletnot=field_mapjson__"not"CaseFilter.of_jsoninletfield=field_mapjson__"field"FieldFilter.of_jsoninmake?orAll?andAll?tag?not?field()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A filter for cases. Only one value can be provided."]andCaseFilterAndAllList:sigtypenonrect=CaseFilter.tlistvalmake:CaseFilter.tlist->tvalto_value:t->Botodata.valuevalto_query:t->Client.Query.tvalof_xml:Xml.t->CaseFilter.tlistvalof_json:Yojson.Safe.t->tvalto_json:t->Yojson.Safe.tvalto_header:t->stringend=structtypenonrect=CaseFilter.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:CaseFilter.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:CaseFilter.of_xml)letof_jsonj=list_of_json~kind:"CaseFilterAndAllList"~of_json:CaseFilter.of_jsonjletto_jsonv=composed_to_jsonto_valuevendandCaseFilterOrAllList:sigtypenonrect=CaseFilter.tlistvalmake:CaseFilter.tlist->tvalto_value:t->Botodata.valuevalto_query:t->Client.Query.tvalof_xml:Xml.t->CaseFilter.tlistvalof_json:Yojson.Safe.t->tvalto_json:t->Yojson.Safe.tvalto_header:t->stringend=structtypenonrect=CaseFilter.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:CaseFilter.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:CaseFilter.of_xml)letof_jsonj=list_of_json~kind:"CaseFilterOrAllList"~of_json:CaseFilter.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCaseId=structtypenonrect=stringletcontext_="CaseId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CaseId"jletto_json=simple_to_jsonto_valueendmoduleRuleType=structtypenonrect=|Required|Hidden|FieldOptions|Non_static_idofstringletmakei=iletto_string=function|Required->"Required"|Hidden->"Hidden"|FieldOptions->"FieldOptions"|Non_static_ids->sletof_string=function|"Required"->Required|"Hidden"->Hidden|"FieldOptions"->FieldOptions|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 RuleType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RuleType"j)letto_json=simple_to_jsonto_valueendmoduleCaseRuleSummary=structtypenonrect={caseRuleId:CaseRuleId.toption[@ocaml.doc"Unique identifier of a case rule."];name:CaseRuleName.toption[@ocaml.doc"Name of the case rule."];caseRuleArn:CaseRuleArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the case rule."];ruleType:RuleType.toption[@ocaml.doc"Possible types for a rule."];description:CaseRuleDescription.toption[@ocaml.doc"Description of a case rule."]}letmake?caseRuleId=fun?name->fun?caseRuleArn->fun?ruleType->fun?description->fun()->{caseRuleId;name;caseRuleArn;ruleType;description}letto_valuex=structure_to_value[("caseRuleId",(Option.mapx.caseRuleId~f:CaseRuleId.to_value));("name",(Option.mapx.name~f:CaseRuleName.to_value));("caseRuleArn",(Option.mapx.caseRuleArn~f:CaseRuleArn.to_value));("ruleType",(Option.mapx.ruleType~f:RuleType.to_value));("description",(Option.mapx.description~f:CaseRuleDescription.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdescription=(Option.map~f:CaseRuleDescription.of_xml)(Xml.childxml_arg0"description")inletruleType=(Option.map~f:RuleType.of_xml)(Xml.childxml_arg0"ruleType")inletcaseRuleArn=(Option.map~f:CaseRuleArn.of_xml)(Xml.childxml_arg0"caseRuleArn")inletname=(Option.map~f:CaseRuleName.of_xml)(Xml.childxml_arg0"name")inletcaseRuleId=(Option.map~f:CaseRuleId.of_xml)(Xml.childxml_arg0"caseRuleId")inmake?description?ruleType?caseRuleArn?name?caseRuleId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdescription=field_mapjson__"description"CaseRuleDescription.of_jsoninletruleType=field_mapjson__"ruleType"RuleType.of_jsoninletcaseRuleArn=field_mapjson__"caseRuleArn"CaseRuleArn.of_jsoninletname=field_mapjson__"name"CaseRuleName.of_jsoninletcaseRuleId=field_mapjson__"caseRuleId"CaseRuleId.of_jsoninmake?description?ruleType?caseRuleArn?name?caseRuleId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summary information of this case rule. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]moduleTemplateId=structtypenonrect=stringletcontext_="TemplateId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TemplateId"jletto_json=simple_to_jsonto_valueendmoduleCaseSummary=structtypenonrect={caseId:CaseId.toption[@ocaml.doc"A unique identifier of the case."];templateId:TemplateId.toption[@ocaml.doc"A unique identifier of a template."]}letmake?caseId=fun?templateId->fun()->{caseId;templateId}letto_valuex=structure_to_value[("caseId",(Option.mapx.caseId~f:CaseId.to_value));("templateId",(Option.mapx.templateId~f:TemplateId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettemplateId=(Option.map~f:TemplateId.of_xml)(Xml.childxml_arg0"templateId")inletcaseId=(Option.map~f:CaseId.of_xml)(Xml.childxml_arg0"caseId")inmake?templateId?caseId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettemplateId=field_mapjson__"templateId"TemplateId.of_jsoninletcaseId=field_mapjson__"caseId"CaseId.of_jsoninmake?templateId?caseId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Case summary information."]moduleChannel=structtypenonrect=stringletcontext_="Channel"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100)>>=(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:"Channel"jletto_json=simple_to_jsonto_valueendmoduleCommentBody=structtypenonrect=stringletcontext_="CommentBody"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:15000)>>=(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:"CommentBody"jletto_json=simple_to_jsonto_valueendmoduleCommentBodyTextType=structtypenonrect=|Text_Plain|Non_static_idofstringletmakei=iletto_string=function|Text_Plain->"Text/Plain"|Non_static_ids->sletof_string=function|"Text/Plain"->Text_Plain|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 CommentBodyTextType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CommentBodyTextType"j)letto_json=simple_to_jsonto_valueendmoduleCommentContent=structtypenonrect={body:CommentBody.t[@ocaml.doc"Text in the body of a Comment on a case."];contentType:CommentBodyTextType.t[@ocaml.doc"Type of the text in the box of a Comment on a case."]}letcontext_="CommentContent"letmake~body=fun~contentType->fun()->{body;contentType}letto_valuex=structure_to_value[("body",(Some(CommentBody.to_valuex.body)));("contentType",(Some(CommentBodyTextType.to_valuex.contentType)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontentType=CommentBodyTextType.of_xml(Xml.child_exn~context:context_xml_arg0"contentType")inletbody=CommentBody.of_xml(Xml.child_exn~context:context_xml_arg0"body")inmake~contentType~body()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontentType=field_map_exnjson__"contentType"CommentBodyTextType.of_jsoninletbody=field_map_exnjson__"body"CommentBody.of_jsoninmake~contentType~body()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the content of a Comment to be returned to agents."]moduleCommentFilter=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A filter for related items of type Comment."]moduleCommentUpdateContent=structtypenonrect={body:CommentBody.t[@ocaml.doc"Updated text in the body of a Comment on a case."];contentType:CommentBodyTextType.t[@ocaml.doc"Type of the text in the box of a Comment on a case."]}letcontext_="CommentUpdateContent"letmake~body=fun~contentType->fun()->{body;contentType}letto_valuex=structure_to_value[("body",(Some(CommentBody.to_valuex.body)));("contentType",(Some(CommentBodyTextType.to_valuex.contentType)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontentType=CommentBodyTextType.of_xml(Xml.child_exn~context:context_xml_arg0"contentType")inletbody=CommentBody.of_xml(Xml.child_exn~context:context_xml_arg0"body")inmake~contentType~body()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontentType=field_map_exnjson__"contentType"CommentBodyTextType.of_jsoninletbody=field_map_exnjson__"body"CommentBody.of_jsoninmake~contentType~body()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the updated content of a Comment related item."]moduleConflictException=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 requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details."]moduleConnectCaseContent=structtypenonrect={caseId:CaseId.toption[@ocaml.doc"A unique identifier of the case."]}letmake?caseId=fun()->{caseId}letto_valuex=structure_to_value[("caseId",(Option.mapx.caseId~f:CaseId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcaseId=(Option.map~f:CaseId.of_xml)(Xml.childxml_arg0"caseId")inmake?caseId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcaseId=field_mapjson__"caseId"CaseId.of_jsoninmake?caseId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the content of a ConnectCase type related item."]moduleConnectCaseFilter=structtypenonrect={caseId:CaseId.toption[@ocaml.doc"A unique identifier of the case."]}letmake?caseId=fun()->{caseId}letto_valuex=structure_to_value[("caseId",(Option.mapx.caseId~f:CaseId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcaseId=(Option.map~f:CaseId.of_xml)(Xml.childxml_arg0"caseId")inmake?caseId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcaseId=field_mapjson__"caseId"CaseId.of_jsoninmake?caseId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A filter for related items of type ConnectCase."]moduleConnectCaseInputContent=structtypenonrect={caseId:CaseId.t[@ocaml.doc"A unique identifier of the case."]}letcontext_="ConnectCaseInputContent"letmake~caseId=fun()->{caseId}letto_valuex=structure_to_value[("caseId",(Some(CaseId.to_valuex.caseId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcaseId=CaseId.of_xml(Xml.child_exn~context:context_xml_arg0"caseId")inmake~caseId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcaseId=field_map_exnjson__"caseId"CaseId.of_jsoninmake~caseId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the content of a ConnectCase related item."]moduleConnectedToSystemTime=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_valueendmoduleContactArn=structtypenonrect=stringletcontext_="ContactArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ContactArn"jletto_json=simple_to_jsonto_valueendmoduleContact=structtypenonrect={contactArn:ContactArn.t[@ocaml.doc"A unique identifier of a contact in Amazon Connect."]}letcontext_="Contact"letmake~contactArn=fun()->{contactArn}letto_valuex=structure_to_value[("contactArn",(Some(ContactArn.to_valuex.contactArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontactArn=ContactArn.of_xml(Xml.child_exn~context:context_xml_arg0"contactArn")inmake~contactArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontactArn=field_map_exnjson__"contactArn"ContactArn.of_jsoninmake~contactArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents an Amazon Connect contact object."]moduleContactContent=structtypenonrect={contactArn:ContactArn.toption[@ocaml.doc"A unique identifier of a contact in Amazon Connect."];channel:Channel.toption[@ocaml.doc"A list of channels to filter on for related items of type Contact."];connectedToSystemTime:ConnectedToSystemTime.toption[@ocaml.doc"The difference between the InitiationTimestamp and the DisconnectTimestamp of the contact."]}letmake?contactArn=fun?channel->fun?connectedToSystemTime->fun()->{contactArn;channel;connectedToSystemTime}letto_valuex=structure_to_value[("contactArn",(Option.mapx.contactArn~f:ContactArn.to_value));("channel",(Option.mapx.channel~f:Channel.to_value));("connectedToSystemTime",(Option.mapx.connectedToSystemTime~f:ConnectedToSystemTime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnectedToSystemTime=(Option.map~f:ConnectedToSystemTime.of_xml)(Xml.childxml_arg0"connectedToSystemTime")inletchannel=(Option.map~f:Channel.of_xml)(Xml.childxml_arg0"channel")inletcontactArn=(Option.map~f:ContactArn.of_xml)(Xml.childxml_arg0"contactArn")inmake?connectedToSystemTime?channel?contactArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnectedToSystemTime=field_mapjson__"connectedToSystemTime"ConnectedToSystemTime.of_jsoninletchannel=field_mapjson__"channel"Channel.of_jsoninletcontactArn=field_mapjson__"contactArn"ContactArn.of_jsoninmake?connectedToSystemTime?channel?contactArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents a content of an Amazon Connect contact object."]moduleContactFilterChannelList=structtypenonrect=Channel.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:Channel.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:Channel.of_xml)letof_jsonj=list_of_json~kind:"ContactFilterChannelList"~of_json:Channel.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleContactFilter=structtypenonrect={channel:ContactFilterChannelList.toption[@ocaml.doc"A list of channels to filter on for related items of type Contact."];contactArn:ContactArn.toption[@ocaml.doc"A unique identifier of a contact in Amazon Connect."]}letmake?channel=fun?contactArn->fun()->{channel;contactArn}letto_valuex=structure_to_value[("channel",(Option.mapx.channel~f:ContactFilterChannelList.to_value));("contactArn",(Option.mapx.contactArn~f:ContactArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontactArn=(Option.map~f:ContactArn.of_xml)(Xml.childxml_arg0"contactArn")inletchannel=(Option.map~f:ContactFilterChannelList.of_xml)(Xml.childxml_arg0"channel")inmake?contactArn?channel()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontactArn=field_mapjson__"contactArn"ContactArn.of_jsoninletchannel=field_mapjson__"channel"ContactFilterChannelList.of_jsoninmake?contactArn?channel()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A filter for related items of type Contact."]moduleMutableTagKey=structtypenonrect=stringletcontext_="MutableTagKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"(?![aA][wW][sS]:)[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:"MutableTagKey"jletto_json=simple_to_jsonto_valueendmoduleMutableTags=structtypenonrect=(MutableTagKey.t*TagValueString.t)listletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:0));iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((MutableTagKey.of_stringchopped),(TagValueString.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(MutableTagKey.to_valuex)|>(funx->(TagValueString.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:MutableTagKey.of_string~of_json:TagValueString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCreateCaseRequestFieldsList=structtypenonrect=FieldValue.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:220)>>=(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:FieldValue.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:FieldValue.of_xml)letof_jsonj=list_of_json~kind:"CreateCaseRequestFieldsList"~of_json:FieldValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCreateCaseRequestClientTokenString=structtypenonrect=stringletcontext_="CreateCaseRequestClientTokenString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:64)>>=(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:"CreateCaseRequestClientTokenString"jletto_json=simple_to_jsonto_valueendmoduleCreateCaseRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];templateId:TemplateId.t[@ocaml.doc"A unique identifier of a template."];fields:CreateCaseRequestFieldsList.t[@ocaml.doc"An array of objects with field ID (matching ListFields/DescribeField) and value union data."];clientToken:CreateCaseRequestClientTokenString.toption[@ocaml.doc"A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs."];performedBy:UserUnion.toption;tags:MutableTags.toption[@ocaml.doc"A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource."]}letcontext_="CreateCaseRequest"letmake?clientToken=fun?performedBy->fun?tags->fun~domainId->fun~templateId->fun~fields->fun()->{clientToken;performedBy;tags;domainId;templateId;fields}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("templateId",(Some(TemplateId.to_valuex.templateId)));("fields",(Some(CreateCaseRequestFieldsList.to_valuex.fields)));("clientToken",(Option.mapx.clientToken~f:CreateCaseRequestClientTokenString.to_value));("performedBy",(Option.mapx.performedBy~f:UserUnion.to_value));("tags",(Option.mapx.tags~f:MutableTags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:MutableTags.of_xml)(Xml.childxml_arg0"tags")inletperformedBy=(Option.map~f:UserUnion.of_xml)(Xml.childxml_arg0"performedBy")inletclientToken=(Option.map~f:CreateCaseRequestClientTokenString.of_xml)(Xml.childxml_arg0"clientToken")inletfields=CreateCaseRequestFieldsList.of_xml(Xml.child_exn~context:context_xml_arg0"fields")inlettemplateId=TemplateId.of_xml(Xml.child_exn~context:context_xml_arg0"templateId")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake?tags?performedBy?clientToken~fields~templateId~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"MutableTags.of_jsoninletperformedBy=field_mapjson__"performedBy"UserUnion.of_jsoninletclientToken=field_mapjson__"clientToken"CreateCaseRequestClientTokenString.of_jsoninletfields=field_map_exnjson__"fields"CreateCaseRequestFieldsList.of_jsoninlettemplateId=field_map_exnjson__"templateId"TemplateId.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake?tags?performedBy?clientToken~fields~templateId~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"If you provide a value for PerformedBy.UserArn you must also have connect:DescribeUser permission on the User ARN resource that you provide Creates a case in the specified Cases domain. Case system and custom fields are taken as an array id/value pairs with a declared data types. When creating a case from a template that has tag propagation configurations, the specified tags are automatically applied to the case. The following fields are required when creating a case: customer_id - You must provide the full customer profile ARN in this format: arn:aws:profile:your_AWS_Region:your_AWS_account ID:domains/your_profiles_domain_name/profiles/profile_ID title"]moduleCreateCaseResponse=structtypenonrect={caseId:CaseId.toption[@ocaml.doc"A unique identifier of the case."];caseArn:CaseArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the case."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?caseId=fun?caseArn->fun()->{caseId;caseArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("caseId",(Option.mapx.caseId~f:CaseId.to_value));("caseArn",(Option.mapx.caseArn~f:CaseArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcaseArn=(Option.map~f:CaseArn.of_xml)(Xml.childxml_arg0"caseArn")inletcaseId=(Option.map~f:CaseId.of_xml)(Xml.childxml_arg0"caseId")inmake?caseArn?caseId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcaseArn=field_mapjson__"caseArn"CaseArn.of_jsoninletcaseId=field_mapjson__"caseId"CaseId.of_jsoninmake?caseArn?caseId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"If you provide a value for PerformedBy.UserArn you must also have connect:DescribeUser permission on the User ARN resource that you provide Creates a case in the specified Cases domain. Case system and custom fields are taken as an array id/value pairs with a declared data types. When creating a case from a template that has tag propagation configurations, the specified tags are automatically applied to the case. The following fields are required when creating a case: customer_id - You must provide the full customer profile ARN in this format: arn:aws:profile:your_AWS_Region:your_AWS_account ID:domains/your_profiles_domain_name/profiles/profile_ID title"]moduleCreateCaseRuleRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"Unique identifier of a Cases domain."];name:CaseRuleName.t[@ocaml.doc"Name of the case rule."];description:CaseRuleDescription.toption[@ocaml.doc"The description of a case rule."];rule:CaseRuleDetails.t[@ocaml.doc"Represents what rule type should take place, under what conditions."]}letcontext_="CreateCaseRuleRequest"letmake?description=fun~domainId->fun~name->fun~rule->fun()->{description;domainId;name;rule}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("name",(Some(CaseRuleName.to_valuex.name)));("description",(Option.mapx.description~f:CaseRuleDescription.to_value));("rule",(Some(CaseRuleDetails.to_valuex.rule)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrule=CaseRuleDetails.of_xml(Xml.child_exn~context:context_xml_arg0"rule")inletdescription=(Option.map~f:CaseRuleDescription.of_xml)(Xml.childxml_arg0"description")inletname=CaseRuleName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake~rule?description~name~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrule=field_map_exnjson__"rule"CaseRuleDetails.of_jsoninletdescription=field_mapjson__"description"CaseRuleDescription.of_jsoninletname=field_map_exnjson__"name"CaseRuleName.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake~rule?description~name~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new case rule. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]moduleCreateCaseRuleResponse=structtypenonrect={caseRuleId:CaseRuleId.toption[@ocaml.doc"Unique identifier of a case rule."];caseRuleArn:CaseRuleArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of a case rule."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?caseRuleId=fun?caseRuleArn->fun()->{caseRuleId;caseRuleArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("caseRuleId",(Option.mapx.caseRuleId~f:CaseRuleId.to_value));("caseRuleArn",(Option.mapx.caseRuleArn~f:CaseRuleArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcaseRuleArn=(Option.map~f:CaseRuleArn.of_xml)(Xml.childxml_arg0"caseRuleArn")inletcaseRuleId=(Option.map~f:CaseRuleId.of_xml)(Xml.childxml_arg0"caseRuleId")inmake?caseRuleArn?caseRuleId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcaseRuleArn=field_mapjson__"caseRuleArn"CaseRuleArn.of_jsoninletcaseRuleId=field_mapjson__"caseRuleId"CaseRuleId.of_jsoninmake?caseRuleArn?caseRuleId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new case rule. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]moduleDomainName=structtypenonrect=stringletcontext_="DomainName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(fun()->check_patterni~pattern:".*[\\S]")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DomainName"jletto_json=simple_to_jsonto_valueendmoduleCreateDomainRequest=structtypenonrect={name:DomainName.t[@ocaml.doc"The name for your Cases domain. It must be unique for your Amazon Web Services account."]}letcontext_="CreateDomainRequest"letmake~name=fun()->{name}letto_valuex=structure_to_value[("name",(Some(DomainName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=DomainName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"name"DomainName.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a domain, which is a container for all case data, such as cases, fields, templates and layouts. Each Amazon Connect instance can be associated with only one Cases domain. This will not associate your connect instance to Cases domain. Instead, use the Amazon Connect CreateIntegrationAssociation API. You need specific IAM permissions to successfully associate the Cases domain. For more information, see Onboard to Cases."]moduleDomainStatus=structtypenonrect=|Active|CreationInProgress|CreationFailed|Non_static_idofstringletmakei=iletto_string=function|Active->"Active"|CreationInProgress->"CreationInProgress"|CreationFailed->"CreationFailed"|Non_static_ids->sletof_string=function|"Active"->Active|"CreationInProgress"->CreationInProgress|"CreationFailed"->CreationFailed|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 DomainStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DomainStatus"j)letto_json=simple_to_jsonto_valueendmoduleDomainArn=structtypenonrect=stringletcontext_="DomainArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DomainArn"jletto_json=simple_to_jsonto_valueendmoduleCreateDomainResponse=structtypenonrect={domainId:DomainId.toption[@ocaml.doc"The unique identifier of the Cases domain."];domainArn:DomainArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) for the Cases domain."];domainStatus:DomainStatus.toption[@ocaml.doc"The status of the domain."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?domainId=fun?domainArn->fun?domainStatus->fun()->{domainId;domainArn;domainStatus}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("domainId",(Option.mapx.domainId~f:DomainId.to_value));("domainArn",(Option.mapx.domainArn~f:DomainArn.to_value));("domainStatus",(Option.mapx.domainStatus~f:DomainStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdomainStatus=(Option.map~f:DomainStatus.of_xml)(Xml.childxml_arg0"domainStatus")inletdomainArn=(Option.map~f:DomainArn.of_xml)(Xml.childxml_arg0"domainArn")inletdomainId=(Option.map~f:DomainId.of_xml)(Xml.childxml_arg0"domainId")inmake?domainStatus?domainArn?domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdomainStatus=field_mapjson__"domainStatus"DomainStatus.of_jsoninletdomainArn=field_mapjson__"domainArn"DomainArn.of_jsoninletdomainId=field_mapjson__"domainId"DomainId.of_jsoninmake?domainStatus?domainArn?domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a domain, which is a container for all case data, such as cases, fields, templates and layouts. Each Amazon Connect instance can be associated with only one Cases domain. This will not associate your connect instance to Cases domain. Instead, use the Amazon Connect CreateIntegrationAssociation API. You need specific IAM permissions to successfully associate the Cases domain. For more information, see Onboard to Cases."]moduleCreateFieldRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];name:FieldName.t[@ocaml.doc"The name of the field."];type_:FieldType.t[@ocaml.doc"Defines the data type, some system constraints, and default display of the field."];description:FieldDescription.toption[@ocaml.doc"The description of the field."];attributes:FieldAttributes.toption[@ocaml.doc"Union of field attributes."]}letcontext_="CreateFieldRequest"letmake?description=fun?attributes->fun~domainId->fun~name->fun~type_->fun()->{description;attributes;domainId;name;type_}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("name",(Some(FieldName.to_valuex.name)));("type",(Some(FieldType.to_valuex.type_)));("description",(Option.mapx.description~f:FieldDescription.to_value));("attributes",(Option.mapx.attributes~f:FieldAttributes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributes=(Option.map~f:FieldAttributes.of_xml)(Xml.childxml_arg0"attributes")inletdescription=(Option.map~f:FieldDescription.of_xml)(Xml.childxml_arg0"description")inlettype_=FieldType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletname=FieldName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake?attributes?description~type_~name~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_mapjson__"attributes"FieldAttributes.of_jsoninletdescription=field_mapjson__"description"FieldDescription.of_jsoninlettype_=field_map_exnjson__"type"FieldType.of_jsoninletname=field_map_exnjson__"name"FieldName.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake?attributes?description~type_~name~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a field in the Cases domain. This field is used to define the case object model (that is, defines what data can be captured on cases) in a Cases domain."]moduleCreateFieldResponse=structtypenonrect={fieldId:FieldId.toption[@ocaml.doc"The unique identifier of a field."];fieldArn:FieldArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the field."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?fieldId=fun?fieldArn->fun()->{fieldId;fieldArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("fieldId",(Option.mapx.fieldId~f:FieldId.to_value));("fieldArn",(Option.mapx.fieldArn~f:FieldArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfieldArn=(Option.map~f:FieldArn.of_xml)(Xml.childxml_arg0"fieldArn")inletfieldId=(Option.map~f:FieldId.of_xml)(Xml.childxml_arg0"fieldId")inmake?fieldArn?fieldId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfieldArn=field_mapjson__"fieldArn"FieldArn.of_jsoninletfieldId=field_mapjson__"fieldId"FieldId.of_jsoninmake?fieldArn?fieldId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a field in the Cases domain. This field is used to define the case object model (that is, defines what data can be captured on cases) in a Cases domain."]moduleLayoutName=structtypenonrect=stringletcontext_="LayoutName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(fun()->check_patterni~pattern:".*[\\S]")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LayoutName"jletto_json=simple_to_jsonto_valueendmoduleLayoutContent=structtypenonrect={basic:BasicLayout.toption[@ocaml.doc"Content specific to BasicLayout type. It configures fields in the top panel and More Info tab of Cases user interface."]}letmake?basic=fun()->{basic}letto_valuex=structure_to_value[("basic",(Option.mapx.basic~f:BasicLayout.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbasic=(Option.map~f:BasicLayout.of_xml)(Xml.childxml_arg0"basic")inmake?basic()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbasic=field_mapjson__"basic"BasicLayout.of_jsoninmake?basic()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object to store union of different versions of layout content."]moduleCreateLayoutRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];name:LayoutName.t[@ocaml.doc"The name of the layout. It must be unique for the Cases domain."];content:LayoutContent.t[@ocaml.doc"Information about which fields will be present in the layout, and information about the order of the fields."]}letcontext_="CreateLayoutRequest"letmake~domainId=fun~name->fun~content->fun()->{domainId;name;content}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("name",(Some(LayoutName.to_valuex.name)));("content",(Some(LayoutContent.to_valuex.content)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontent=LayoutContent.of_xml(Xml.child_exn~context:context_xml_arg0"content")inletname=LayoutName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake~content~name~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontent=field_map_exnjson__"content"LayoutContent.of_jsoninletname=field_map_exnjson__"name"LayoutName.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake~content~name~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a layout in the Cases domain. Layouts define the following configuration in the top section and More Info tab of the Cases user interface: Fields to display to the users Field ordering Title and Status fields cannot be part of layouts since they are not configurable."]moduleLayoutId=structtypenonrect=stringletcontext_="LayoutId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LayoutId"jletto_json=simple_to_jsonto_valueendmoduleLayoutArn=structtypenonrect=stringletcontext_="LayoutArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LayoutArn"jletto_json=simple_to_jsonto_valueendmoduleCreateLayoutResponse=structtypenonrect={layoutId:LayoutId.toption[@ocaml.doc"The unique identifier of the layout."];layoutArn:LayoutArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the newly created layout."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?layoutId=fun?layoutArn->fun()->{layoutId;layoutArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("layoutId",(Option.mapx.layoutId~f:LayoutId.to_value));("layoutArn",(Option.mapx.layoutArn~f:LayoutArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlayoutArn=(Option.map~f:LayoutArn.of_xml)(Xml.childxml_arg0"layoutArn")inletlayoutId=(Option.map~f:LayoutId.of_xml)(Xml.childxml_arg0"layoutId")inmake?layoutArn?layoutId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlayoutArn=field_mapjson__"layoutArn"LayoutArn.of_jsoninletlayoutId=field_mapjson__"layoutId"LayoutId.of_jsoninmake?layoutArn?layoutId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a layout in the Cases domain. Layouts define the following configuration in the top section and More Info tab of the Cases user interface: Fields to display to the users Field ordering Title and Status fields cannot be part of layouts since they are not configurable."]moduleTargetSlaMinutes=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith((check_int64_maxi~max:1051200L)>>=(fun()->check_int64_mini~min:1L));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_valueendmoduleSlaType=structtypenonrect=|CaseField|Non_static_idofstringletmakei=iletto_string=function|CaseField->"CaseField"|Non_static_ids->sletof_string=function|"CaseField"->CaseField|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 SlaType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SlaType"j)letto_json=simple_to_jsonto_valueendmoduleSlaName=structtypenonrect=stringletcontext_="SlaName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:500)>>=(fun()->check_patterni~pattern:".*[\\S]")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SlaName"jletto_json=simple_to_jsonto_valueendmoduleSlaFieldValueUnionList=structtypenonrect=FieldValueUnion.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1)>>=(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:FieldValueUnion.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:FieldValueUnion.of_xml)letof_jsonj=list_of_json~kind:"SlaFieldValueUnionList"~of_json:FieldValueUnion.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSlaInputConfiguration=structtypenonrect={name:SlaName.t[@ocaml.doc"Name of an SLA."];type_:SlaType.t[@ocaml.doc"Type of SLA."];fieldId:FieldId.toption[@ocaml.doc"Unique identifier of a field."];targetFieldValues:SlaFieldValueUnionList.toption[@ocaml.doc"Represents a list of target field values for the fieldId specified in SlaInputConfiguration. The SLA is considered met if any one of these target field values matches the actual field value."];targetSlaMinutes:TargetSlaMinutes.t[@ocaml.doc"Target duration in minutes within which an SLA should be completed."]}letcontext_="SlaInputConfiguration"letmake?fieldId=fun?targetFieldValues->fun~name->fun~type_->fun~targetSlaMinutes->fun()->{fieldId;targetFieldValues;name;type_;targetSlaMinutes}letto_valuex=structure_to_value[("name",(Some(SlaName.to_valuex.name)));("type",(Some(SlaType.to_valuex.type_)));("fieldId",(Option.mapx.fieldId~f:FieldId.to_value));("targetFieldValues",(Option.mapx.targetFieldValues~f:SlaFieldValueUnionList.to_value));("targetSlaMinutes",(Some(TargetSlaMinutes.to_valuex.targetSlaMinutes)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettargetSlaMinutes=TargetSlaMinutes.of_xml(Xml.child_exn~context:context_xml_arg0"targetSlaMinutes")inlettargetFieldValues=(Option.map~f:SlaFieldValueUnionList.of_xml)(Xml.childxml_arg0"targetFieldValues")inletfieldId=(Option.map~f:FieldId.of_xml)(Xml.childxml_arg0"fieldId")inlettype_=SlaType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletname=SlaName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~targetSlaMinutes?targetFieldValues?fieldId~type_~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettargetSlaMinutes=field_map_exnjson__"targetSlaMinutes"TargetSlaMinutes.of_jsoninlettargetFieldValues=field_mapjson__"targetFieldValues"SlaFieldValueUnionList.of_jsoninletfieldId=field_mapjson__"fieldId"FieldId.of_jsoninlettype_=field_map_exnjson__"type"SlaType.of_jsoninletname=field_map_exnjson__"name"SlaName.of_jsoninmake~targetSlaMinutes?targetFieldValues?fieldId~type_~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the input configuration of an SLA being created."]moduleSlaInputContent=structtypenonrect={slaInputConfiguration:SlaInputConfiguration.toption[@ocaml.doc"Represents an input SLA configuration."]}letmake?slaInputConfiguration=fun()->{slaInputConfiguration}letto_valuex=structure_to_value[("slaInputConfiguration",(Option.mapx.slaInputConfiguration~f:SlaInputConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letslaInputConfiguration=(Option.map~f:SlaInputConfiguration.of_xml)(Xml.childxml_arg0"slaInputConfiguration")inmake?slaInputConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letslaInputConfiguration=field_mapjson__"slaInputConfiguration"SlaInputConfiguration.of_jsoninmake?slaInputConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the content of an SLA."]moduleFileArn=structtypenonrect=stringletcontext_="FileArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"FileArn"jletto_json=simple_to_jsonto_valueendmoduleFileContent=structtypenonrect={fileArn:FileArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of a File in Amazon Connect."]}letcontext_="FileContent"letmake~fileArn=fun()->{fileArn}letto_valuex=structure_to_value[("fileArn",(Some(FileArn.to_valuex.fileArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfileArn=FileArn.of_xml(Xml.child_exn~context:context_xml_arg0"fileArn")inmake~fileArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfileArn=field_map_exnjson__"fileArn"FileArn.of_jsoninmake~fileArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents a content of an Amazon Connect file object."]moduleCustomInputContentFieldsList=structtypenonrect=FieldValue.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FieldValue.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:FieldValue.of_xml)letof_jsonj=list_of_json~kind:"CustomInputContentFieldsList"~of_json:FieldValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCustomInputContent=structtypenonrect={fields:CustomInputContentFieldsList.t[@ocaml.doc"List of field values for the Custom related item."]}letcontext_="CustomInputContent"letmake~fields=fun()->{fields}letto_valuex=structure_to_value[("fields",(Some(CustomInputContentFieldsList.to_valuex.fields)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfields=CustomInputContentFieldsList.of_xml(Xml.child_exn~context:context_xml_arg0"fields")inmake~fields()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfields=field_map_exnjson__"fields"CustomInputContentFieldsList.of_jsoninmake~fields()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the content of a Custom related item."]moduleRelatedItemInputContent=structtypenonrect={contact:Contact.toption[@ocaml.doc"Object representing a contact in Amazon Connect as an API request field."];comment:CommentContent.toption[@ocaml.doc"Represents the content of a comment to be returned to agents."];file:FileContent.toption[@ocaml.doc"A file of related items."];sla:SlaInputContent.toption[@ocaml.doc"Represents the content of an SLA to be created."];connectCase:ConnectCaseInputContent.toption[@ocaml.doc"Represents the Amazon Connect case to be created as a related item."];custom:CustomInputContent.toption[@ocaml.doc"Represents the content of a Custom type related item."]}letmake?contact=fun?comment->fun?file->fun?sla->fun?connectCase->fun?custom->fun()->{contact;comment;file;sla;connectCase;custom}letto_valuex=structure_to_value[("contact",(Option.mapx.contact~f:Contact.to_value));("comment",(Option.mapx.comment~f:CommentContent.to_value));("file",(Option.mapx.file~f:FileContent.to_value));("sla",(Option.mapx.sla~f:SlaInputContent.to_value));("connectCase",(Option.mapx.connectCase~f:ConnectCaseInputContent.to_value));("custom",(Option.mapx.custom~f:CustomInputContent.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustom=(Option.map~f:CustomInputContent.of_xml)(Xml.childxml_arg0"custom")inletconnectCase=(Option.map~f:ConnectCaseInputContent.of_xml)(Xml.childxml_arg0"connectCase")inletsla=(Option.map~f:SlaInputContent.of_xml)(Xml.childxml_arg0"sla")inletfile=(Option.map~f:FileContent.of_xml)(Xml.childxml_arg0"file")inletcomment=(Option.map~f:CommentContent.of_xml)(Xml.childxml_arg0"comment")inletcontact=(Option.map~f:Contact.of_xml)(Xml.childxml_arg0"contact")inmake?custom?connectCase?sla?file?comment?contact()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustom=field_mapjson__"custom"CustomInputContent.of_jsoninletconnectCase=field_mapjson__"connectCase"ConnectCaseInputContent.of_jsoninletsla=field_mapjson__"sla"SlaInputContent.of_jsoninletfile=field_mapjson__"file"FileContent.of_jsoninletcomment=field_mapjson__"comment"CommentContent.of_jsoninletcontact=field_mapjson__"contact"Contact.of_jsoninmake?custom?connectCase?sla?file?comment?contact()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the content of a related item to be created."]moduleCreateRelatedItemRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];caseId:CaseId.t[@ocaml.doc"A unique identifier of the case."];type_:RelatedItemType.t[@ocaml.doc"The type of a related item."];content:RelatedItemInputContent.t[@ocaml.doc"The content of a related item to be created."];performedBy:UserUnion.toption[@ocaml.doc"Represents the creator of the related item."]}letcontext_="CreateRelatedItemRequest"letmake?performedBy=fun~domainId->fun~caseId->fun~type_->fun~content->fun()->{performedBy;domainId;caseId;type_;content}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("caseId",(Some(CaseId.to_valuex.caseId)));("type",(Some(RelatedItemType.to_valuex.type_)));("content",(Some(RelatedItemInputContent.to_valuex.content)));("performedBy",(Option.mapx.performedBy~f:UserUnion.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letperformedBy=(Option.map~f:UserUnion.of_xml)(Xml.childxml_arg0"performedBy")inletcontent=RelatedItemInputContent.of_xml(Xml.child_exn~context:context_xml_arg0"content")inlettype_=RelatedItemType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletcaseId=CaseId.of_xml(Xml.child_exn~context:context_xml_arg0"caseId")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake?performedBy~content~type_~caseId~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letperformedBy=field_mapjson__"performedBy"UserUnion.of_jsoninletcontent=field_map_exnjson__"content"RelatedItemInputContent.of_jsoninlettype_=field_map_exnjson__"type"RelatedItemType.of_jsoninletcaseId=field_map_exnjson__"caseId"CaseId.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake?performedBy~content~type_~caseId~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a related item (comments, tasks, and contacts) and associates it with a case. There's a quota for the number of fields allowed in a Custom type related item. See Amazon Connect Cases quotas. Use cases Following are examples of related items that you may want to associate with a case: Related contacts, such as calls, chats, emails tasks Comments, for agent notes SLAs, to capture target resolution goals Cases, to capture related Amazon Connect Cases Files, such as policy documentation or customer-provided attachments Custom related items, which provide flexibility for you to define related items that such as bookings, orders, products, notices, and more Important things to know If you are associating a contact to a case by passing in Contact for a type, you must have DescribeContact permission on the ARN of the contact that you provide in content.contact.contactArn. A Related Item is a resource that is associated with a case. It may or may not have an external identifier linking it to an external resource (for example, a contactArn). All Related Items have their own internal identifier, the relatedItemArn. Examples of related items include comments and contacts. If you provide a value for performedBy.userArn you must also have DescribeUser permission on the ARN of the user that you provide. The type field is reserved for internal use only. Endpoints: See Amazon Connect endpoints and quotas."]moduleRelatedItemId=structtypenonrect=stringletcontext_="RelatedItemId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RelatedItemId"jletto_json=simple_to_jsonto_valueendmoduleRelatedItemArn=structtypenonrect=stringletcontext_="RelatedItemArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RelatedItemArn"jletto_json=simple_to_jsonto_valueendmoduleCreateRelatedItemResponse=structtypenonrect={relatedItemId:RelatedItemId.toption[@ocaml.doc"The unique identifier of the related item."];relatedItemArn:RelatedItemArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the related item."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?relatedItemId=fun?relatedItemArn->fun()->{relatedItemId;relatedItemArn}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)|"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)|"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))]|`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[("relatedItemId",(Option.mapx.relatedItemId~f:RelatedItemId.to_value));("relatedItemArn",(Option.mapx.relatedItemArn~f:RelatedItemArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrelatedItemArn=(Option.map~f:RelatedItemArn.of_xml)(Xml.childxml_arg0"relatedItemArn")inletrelatedItemId=(Option.map~f:RelatedItemId.of_xml)(Xml.childxml_arg0"relatedItemId")inmake?relatedItemArn?relatedItemId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrelatedItemArn=field_mapjson__"relatedItemArn"RelatedItemArn.of_jsoninletrelatedItemId=field_mapjson__"relatedItemId"RelatedItemId.of_jsoninmake?relatedItemArn?relatedItemId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a related item (comments, tasks, and contacts) and associates it with a case. There's a quota for the number of fields allowed in a Custom type related item. See Amazon Connect Cases quotas. Use cases Following are examples of related items that you may want to associate with a case: Related contacts, such as calls, chats, emails tasks Comments, for agent notes SLAs, to capture target resolution goals Cases, to capture related Amazon Connect Cases Files, such as policy documentation or customer-provided attachments Custom related items, which provide flexibility for you to define related items that such as bookings, orders, products, notices, and more Important things to know If you are associating a contact to a case by passing in Contact for a type, you must have DescribeContact permission on the ARN of the contact that you provide in content.contact.contactArn. A Related Item is a resource that is associated with a case. It may or may not have an external identifier linking it to an external resource (for example, a contactArn). All Related Items have their own internal identifier, the relatedItemArn. Examples of related items include comments and contacts. If you provide a value for performedBy.userArn you must also have DescribeUser permission on the ARN of the user that you provide. The type field is reserved for internal use only. Endpoints: See Amazon Connect endpoints and quotas."]moduleTemplateStatus=structtypenonrect=|Active|Inactive|Non_static_idofstringletmakei=iletto_string=function|Active->"Active"|Inactive->"Inactive"|Non_static_ids->sletof_string=function|"Active"->Active|"Inactive"->Inactive|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 TemplateStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TemplateStatus"j)letto_json=simple_to_jsonto_valueendmoduleTemplateName=structtypenonrect=stringletcontext_="TemplateName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(fun()->check_patterni~pattern:".*[\\S]")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TemplateName"jletto_json=simple_to_jsonto_valueendmoduleTemplateDescription=structtypenonrect=stringletcontext_="TemplateDescription"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(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:"TemplateDescription"jletto_json=simple_to_jsonto_valueendmoduleTemplateRule=structtypenonrect={caseRuleId:CaseRuleId.t[@ocaml.doc"Unique identifier of a case rule."];fieldId:FieldId.toption[@ocaml.doc"Unique identifier of a field."]}letcontext_="TemplateRule"letmake?fieldId=fun~caseRuleId->fun()->{fieldId;caseRuleId}letto_valuex=structure_to_value[("caseRuleId",(Some(CaseRuleId.to_valuex.caseRuleId)));("fieldId",(Option.mapx.fieldId~f:FieldId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfieldId=(Option.map~f:FieldId.of_xml)(Xml.childxml_arg0"fieldId")inletcaseRuleId=CaseRuleId.of_xml(Xml.child_exn~context:context_xml_arg0"caseRuleId")inmake?fieldId~caseRuleId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfieldId=field_mapjson__"fieldId"FieldId.of_jsoninletcaseRuleId=field_map_exnjson__"caseRuleId"CaseRuleId.of_jsoninmake?fieldId~caseRuleId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An association representing a case rule acting upon a field. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]moduleTemplateCaseRuleList=structtypenonrect=TemplateRule.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(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:TemplateRule.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:TemplateRule.of_xml)letof_jsonj=list_of_json~kind:"TemplateCaseRuleList"~of_json:TemplateRule.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagPropagationResourceType=structtypenonrect=|Cases|Non_static_idofstringletmakei=iletto_string=function|Cases->"Cases"|Non_static_ids->sletof_string=function|"Cases"->Cases|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 TagPropagationResourceType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TagPropagationResourceType"j)letto_json=simple_to_jsonto_valueendmoduleTagPropagationConfigurationTagMapMap=structtypenonrect=(MutableTagKey.t*TagValueString.t)listletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(fun()->check_list_mini~min:0));iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((MutableTagKey.of_stringchopped),(TagValueString.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(MutableTagKey.to_valuex)|>(funx->(TagValueString.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:MutableTagKey.of_string~of_json:TagValueString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagPropagationConfiguration=structtypenonrect={resourceType:TagPropagationResourceType.t[@ocaml.doc"Supported resource types for tag propagation. Determines which resources will receive automatically propagated tags."];tagMap:TagPropagationConfigurationTagMapMap.t[@ocaml.doc"The tags that will be applied to the created resource."]}letcontext_="TagPropagationConfiguration"letmake~resourceType=fun~tagMap->fun()->{resourceType;tagMap}letto_valuex=structure_to_value[("resourceType",(Some(TagPropagationResourceType.to_valuex.resourceType)));("tagMap",(Some(TagPropagationConfigurationTagMapMap.to_valuex.tagMap)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagMap=TagPropagationConfigurationTagMapMap.of_xml(Xml.child_exn~context:context_xml_arg0"tagMap")inletresourceType=TagPropagationResourceType.of_xml(Xml.child_exn~context:context_xml_arg0"resourceType")inmake~tagMap~resourceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagMap=field_map_exnjson__"tagMap"TagPropagationConfigurationTagMapMap.of_jsoninletresourceType=field_map_exnjson__"resourceType"TagPropagationResourceType.of_jsoninmake~tagMap~resourceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Defines tag propagation configuration for resources created within a domain. Tags specified here will be automatically applied to resources being created for the specified resource type."]moduleTagPropagationConfigurationList=structtypenonrect=TagPropagationConfiguration.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagPropagationConfiguration.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:TagPropagationConfiguration.of_xml)letof_jsonj=list_of_json~kind:"TagPropagationConfigurationList"~of_json:TagPropagationConfiguration.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRequiredField=structtypenonrect={fieldId:FieldId.t[@ocaml.doc"Unique identifier of a field."]}letcontext_="RequiredField"letmake~fieldId=fun()->{fieldId}letto_valuex=structure_to_value[("fieldId",(Some(FieldId.to_valuex.fieldId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfieldId=FieldId.of_xml(Xml.child_exn~context:context_xml_arg0"fieldId")inmake~fieldId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfieldId=field_map_exnjson__"fieldId"FieldId.of_jsoninmake~fieldId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List of fields that must have a value provided to create a case."]moduleRequiredFieldList=structtypenonrect=RequiredField.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:RequiredField.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:RequiredField.of_xml)letof_jsonj=list_of_json~kind:"RequiredFieldList"~of_json:RequiredField.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLayoutConfiguration=structtypenonrect={defaultLayout:LayoutId.toption[@ocaml.doc"Unique identifier of a layout."]}letmake?defaultLayout=fun()->{defaultLayout}letto_valuex=structure_to_value[("defaultLayout",(Option.mapx.defaultLayout~f:LayoutId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdefaultLayout=(Option.map~f:LayoutId.of_xml)(Xml.childxml_arg0"defaultLayout")inmake?defaultLayout()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdefaultLayout=field_mapjson__"defaultLayout"LayoutId.of_jsoninmake?defaultLayout()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object to store configuration of layouts associated to the template."]moduleCreateTemplateRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];name:TemplateName.t[@ocaml.doc"A name for the template. It must be unique per domain."];description:TemplateDescription.toption[@ocaml.doc"A brief description of the template."];layoutConfiguration:LayoutConfiguration.toption[@ocaml.doc"Configuration of layouts associated to the template."];requiredFields:RequiredFieldList.toption[@ocaml.doc"A list of fields that must contain a value for a case to be successfully created with this template."];status:TemplateStatus.toption[@ocaml.doc"The status of the template."];rules:TemplateCaseRuleList.toption[@ocaml.doc"A list of case rules (also known as case field conditions) on a template."];tagPropagationConfigurations:TagPropagationConfigurationList.toption[@ocaml.doc"Defines tag propagation configuration for resources created within a domain. Tags specified here will be automatically applied to resources being created for the specified resource type."]}letcontext_="CreateTemplateRequest"letmake?description=fun?layoutConfiguration->fun?requiredFields->fun?status->fun?rules->fun?tagPropagationConfigurations->fun~domainId->fun~name->fun()->{description;layoutConfiguration;requiredFields;status;rules;tagPropagationConfigurations;domainId;name}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("name",(Some(TemplateName.to_valuex.name)));("description",(Option.mapx.description~f:TemplateDescription.to_value));("layoutConfiguration",(Option.mapx.layoutConfiguration~f:LayoutConfiguration.to_value));("requiredFields",(Option.mapx.requiredFields~f:RequiredFieldList.to_value));("status",(Option.mapx.status~f:TemplateStatus.to_value));("rules",(Option.mapx.rules~f:TemplateCaseRuleList.to_value));("tagPropagationConfigurations",(Option.mapx.tagPropagationConfigurations~f:TagPropagationConfigurationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagPropagationConfigurations=(Option.map~f:TagPropagationConfigurationList.of_xml)(Xml.childxml_arg0"tagPropagationConfigurations")inletrules=(Option.map~f:TemplateCaseRuleList.of_xml)(Xml.childxml_arg0"rules")inletstatus=(Option.map~f:TemplateStatus.of_xml)(Xml.childxml_arg0"status")inletrequiredFields=(Option.map~f:RequiredFieldList.of_xml)(Xml.childxml_arg0"requiredFields")inletlayoutConfiguration=(Option.map~f:LayoutConfiguration.of_xml)(Xml.childxml_arg0"layoutConfiguration")inletdescription=(Option.map~f:TemplateDescription.of_xml)(Xml.childxml_arg0"description")inletname=TemplateName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake?tagPropagationConfigurations?rules?status?requiredFields?layoutConfiguration?description~name~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagPropagationConfigurations=field_mapjson__"tagPropagationConfigurations"TagPropagationConfigurationList.of_jsoninletrules=field_mapjson__"rules"TemplateCaseRuleList.of_jsoninletstatus=field_mapjson__"status"TemplateStatus.of_jsoninletrequiredFields=field_mapjson__"requiredFields"RequiredFieldList.of_jsoninletlayoutConfiguration=field_mapjson__"layoutConfiguration"LayoutConfiguration.of_jsoninletdescription=field_mapjson__"description"TemplateDescription.of_jsoninletname=field_map_exnjson__"name"TemplateName.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake?tagPropagationConfigurations?rules?status?requiredFields?layoutConfiguration?description~name~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a template in the Cases domain. This template is used to define the case object model (that is, to define what data can be captured on cases) in a Cases domain. A template must have a unique name within a domain, and it must reference existing field IDs and layout IDs. Additionally, multiple fields with same IDs are not allowed within the same Template. A template can be either Active or Inactive, as indicated by its status. Inactive templates cannot be used to create cases. Other template APIs are: DeleteTemplate GetTemplate ListTemplates UpdateTemplate"]moduleTemplateArn=structtypenonrect=stringletcontext_="TemplateArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TemplateArn"jletto_json=simple_to_jsonto_valueendmoduleCreateTemplateResponse=structtypenonrect={templateId:TemplateId.toption[@ocaml.doc"A unique identifier of a template."];templateArn:TemplateArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the newly created template."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?templateId=fun?templateArn->fun()->{templateId;templateArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("templateId",(Option.mapx.templateId~f:TemplateId.to_value));("templateArn",(Option.mapx.templateArn~f:TemplateArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettemplateArn=(Option.map~f:TemplateArn.of_xml)(Xml.childxml_arg0"templateArn")inlettemplateId=(Option.map~f:TemplateId.of_xml)(Xml.childxml_arg0"templateId")inmake?templateArn?templateId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettemplateArn=field_mapjson__"templateArn"TemplateArn.of_jsoninlettemplateId=field_mapjson__"templateId"TemplateId.of_jsoninmake?templateArn?templateId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a template in the Cases domain. This template is used to define the case object model (that is, to define what data can be captured on cases) in a Cases domain. A template must have a unique name within a domain, and it must reference existing field IDs and layout IDs. Additionally, multiple fields with same IDs are not allowed within the same Template. A template can be either Active or Inactive, as indicated by its status. Inactive templates cannot be used to create cases. Other template APIs are: DeleteTemplate GetTemplate ListTemplates UpdateTemplate"]moduleFieldValueList=structtypenonrect=FieldValue.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FieldValue.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:FieldValue.of_xml)letof_jsonj=list_of_json~kind:"FieldValueList"~of_json:FieldValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCustomContent=structtypenonrect={fields:FieldValueList.toption[@ocaml.doc"List of field values for the Custom related item."]}letmake?fields=fun()->{fields}letto_valuex=structure_to_value[("fields",(Option.mapx.fields~f:FieldValueList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfields=(Option.map~f:FieldValueList.of_xml)(Xml.childxml_arg0"fields")inmake?fields()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfields=field_mapjson__"fields"FieldValueList.of_jsoninmake?fields()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the content of a Custom type related item."]modulerecCustomFieldsFilter:sigtypenonrect={field:FieldFilter.toption;not:CustomFieldsFilter.toption[@ocaml.doc"Excludes items matching the filter."];andAll:CustomFieldsFilterAndAllList.toption[@ocaml.doc"Provides \"and all\" filtering."];orAll:CustomFieldsFilterOrAllList.toption[@ocaml.doc"Provides \"or all\" filtering."]}valmake:?field:FieldFilter.t->?not:CustomFieldsFilter.t->?andAll:CustomFieldsFilterAndAllList.t->?orAll:CustomFieldsFilterOrAllList.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={field:FieldFilter.toption;not:CustomFieldsFilter.toption[@ocaml.doc"Excludes items matching the filter."];andAll:CustomFieldsFilterAndAllList.toption[@ocaml.doc"Provides \"and all\" filtering."];orAll:CustomFieldsFilterOrAllList.toption[@ocaml.doc"Provides \"or all\" filtering."]}letmake?field=fun?not->fun?andAll->fun?orAll->fun()->{field;not;andAll;orAll}letto_valuex=structure_to_value[("field",(Option.mapx.field~f:FieldFilter.to_value));("not",(Option.mapx.not~f:CustomFieldsFilter.to_value));("andAll",(Option.mapx.andAll~f:CustomFieldsFilterAndAllList.to_value));("orAll",(Option.mapx.orAll~f:CustomFieldsFilterOrAllList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letorAll=(Option.map~f:CustomFieldsFilterOrAllList.of_xml)(Xml.childxml_arg0"orAll")inletandAll=(Option.map~f:CustomFieldsFilterAndAllList.of_xml)(Xml.childxml_arg0"andAll")inletnot=(Option.map~f:CustomFieldsFilter.of_xml)(Xml.childxml_arg0"not")inletfield=(Option.map~f:FieldFilter.of_xml)(Xml.childxml_arg0"field")inmake?orAll?andAll?not?field()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letorAll=field_mapjson__"orAll"CustomFieldsFilterOrAllList.of_jsoninletandAll=field_mapjson__"andAll"CustomFieldsFilterAndAllList.of_jsoninletnot=field_mapjson__"not"CustomFieldsFilter.of_jsoninletfield=field_mapjson__"field"FieldFilter.of_jsoninmake?orAll?andAll?not?field()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A filter for fields in Custom type related items. Only one value can be provided."]andCustomFieldsFilterAndAllList:sigtypenonrect=CustomFieldsFilter.tlistvalmake:CustomFieldsFilter.tlist->tvalto_value:t->Botodata.valuevalto_query:t->Client.Query.tvalof_xml:Xml.t->CustomFieldsFilter.tlistvalof_json:Yojson.Safe.t->tvalto_json:t->Yojson.Safe.tvalto_header:t->stringend=structtypenonrect=CustomFieldsFilter.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:CustomFieldsFilter.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:CustomFieldsFilter.of_xml)letof_jsonj=list_of_json~kind:"CustomFieldsFilterAndAllList"~of_json:CustomFieldsFilter.of_jsonjletto_jsonv=composed_to_jsonto_valuevendandCustomFieldsFilterOrAllList:sigtypenonrect=CustomFieldsFilter.tlistvalmake:CustomFieldsFilter.tlist->tvalto_value:t->Botodata.valuevalto_query:t->Client.Query.tvalof_xml:Xml.t->CustomFieldsFilter.tlistvalof_json:Yojson.Safe.t->tvalto_json:t->Yojson.Safe.tvalto_header:t->stringend=structtypenonrect=CustomFieldsFilter.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:CustomFieldsFilter.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:CustomFieldsFilter.of_xml)letof_jsonj=list_of_json~kind:"CustomFieldsFilterOrAllList"~of_json:CustomFieldsFilter.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCustomFilter=structtypenonrect={fields:CustomFieldsFilter.toption[@ocaml.doc"Filter conditions for custom fields."]}letmake?fields=fun()->{fields}letto_valuex=structure_to_value[("fields",(Option.mapx.fields~f:CustomFieldsFilter.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfields=(Option.map~f:CustomFieldsFilter.of_xml)(Xml.childxml_arg0"fields")inmake?fields()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfields=field_mapjson__"fields"CustomFieldsFilter.of_jsoninmake?fields()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A filter for related items of type Custom."]moduleCustomUpdateContentFieldsList=structtypenonrect=FieldValue.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FieldValue.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:FieldValue.of_xml)letof_jsonj=list_of_json~kind:"CustomUpdateContentFieldsList"~of_json:FieldValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCustomUpdateContent=structtypenonrect={fields:CustomUpdateContentFieldsList.t[@ocaml.doc"List of updated field values for the Custom related item. All existing and new fields, and their associated values should be included. Fields not included as part of this request will be removed."]}letcontext_="CustomUpdateContent"letmake~fields=fun()->{fields}letto_valuex=structure_to_value[("fields",(Some(CustomUpdateContentFieldsList.to_valuex.fields)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfields=CustomUpdateContentFieldsList.of_xml(Xml.child_exn~context:context_xml_arg0"fields")inmake~fields()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfields=field_map_exnjson__"fields"CustomUpdateContentFieldsList.of_jsoninmake~fields()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the updated content of a Custom related item."]moduleDeleteCaseRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"A unique identifier of the Cases domain."];caseId:CaseId.t[@ocaml.doc"A unique identifier of the case."]}letcontext_="DeleteCaseRequest"letmake~domainId=fun~caseId->fun()->{domainId;caseId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("caseId",(Some(CaseId.to_valuex.caseId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcaseId=CaseId.of_xml(Xml.child_exn~context:context_xml_arg0"caseId")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake~caseId~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcaseId=field_map_exnjson__"caseId"CaseId.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake~caseId~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The DeleteCase API permanently deletes a case and all its associated resources from the cases data store. After a successful deletion, you cannot: Retrieve related items Access audit history Perform any operations that require the CaseID This action is irreversible. After you delete a case, you cannot recover its data."]moduleDeleteCaseResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The DeleteCase API permanently deletes a case and all its associated resources from the cases data store. After a successful deletion, you cannot: Retrieve related items Access audit history Perform any operations that require the CaseID This action is irreversible. After you delete a case, you cannot recover its data."]moduleDeleteCaseRuleRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"Unique identifier of a Cases domain."];caseRuleId:CaseRuleId.t[@ocaml.doc"Unique identifier of a case rule."]}letcontext_="DeleteCaseRuleRequest"letmake~domainId=fun~caseRuleId->fun()->{domainId;caseRuleId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("caseRuleId",(Some(CaseRuleId.to_valuex.caseRuleId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcaseRuleId=CaseRuleId.of_xml(Xml.child_exn~context:context_xml_arg0"caseRuleId")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake~caseRuleId~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcaseRuleId=field_map_exnjson__"caseRuleId"CaseRuleId.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake~caseRuleId~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a case rule. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]moduleDeleteCaseRuleResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.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)|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)|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))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a case rule. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]moduleDeleteDomainRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."]}letcontext_="DeleteDomainRequest"letmake~domainId=fun()->{domainId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a Cases domain. After deleting your domain you must disassociate the deleted domain from your Amazon Connect instance with another API call before being able to use Cases again with this Amazon Connect instance. See DeleteIntegrationAssociation."]moduleDeleteDomainResponse=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"Deletes a Cases domain. After deleting your domain you must disassociate the deleted domain from your Amazon Connect instance with another API call before being able to use Cases again with this Amazon Connect instance. See DeleteIntegrationAssociation."]moduleDeleteFieldRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];fieldId:FieldId.t[@ocaml.doc"Unique identifier of the field."]}letcontext_="DeleteFieldRequest"letmake~domainId=fun~fieldId->fun()->{domainId;fieldId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("fieldId",(Some(FieldId.to_valuex.fieldId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfieldId=FieldId.of_xml(Xml.child_exn~context:context_xml_arg0"fieldId")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake~fieldId~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfieldId=field_map_exnjson__"fieldId"FieldId.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake~fieldId~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a field from a cases template. After a field is deleted: You can still retrieve the field by calling BatchGetField. You cannot update a deleted field by calling UpdateField; it throws a ValidationException. Deleted fields are not included in the ListFields response. Calling CreateCase with a deleted field throws a ValidationException denoting which field identifiers in the request have been deleted. Calling GetCase with a deleted field identifier returns the deleted field's value if one exists. Calling UpdateCase with a deleted field ID throws a ValidationException if the case does not already contain a value for the deleted field. Otherwise it succeeds, allowing you to update or remove (using emptyValue: \\{\\}) the field's value from the case. GetTemplate does not return field IDs for deleted fields. GetLayout does not return field IDs for deleted fields. Calling SearchCases with the deleted field ID as a filter returns any cases that have a value for the deleted field that matches the filter criteria. Calling SearchCases with a searchTerm value that matches a deleted field's value on a case returns the case in the response. Calling BatchPutFieldOptions with a deleted field ID throw a ValidationException. Calling GetCaseEventConfiguration does not return field IDs for deleted fields."]moduleDeleteFieldResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.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)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a field from a cases template. After a field is deleted: You can still retrieve the field by calling BatchGetField. You cannot update a deleted field by calling UpdateField; it throws a ValidationException. Deleted fields are not included in the ListFields response. Calling CreateCase with a deleted field throws a ValidationException denoting which field identifiers in the request have been deleted. Calling GetCase with a deleted field identifier returns the deleted field's value if one exists. Calling UpdateCase with a deleted field ID throws a ValidationException if the case does not already contain a value for the deleted field. Otherwise it succeeds, allowing you to update or remove (using emptyValue: \\{\\}) the field's value from the case. GetTemplate does not return field IDs for deleted fields. GetLayout does not return field IDs for deleted fields. Calling SearchCases with the deleted field ID as a filter returns any cases that have a value for the deleted field that matches the filter criteria. Calling SearchCases with a searchTerm value that matches a deleted field's value on a case returns the case in the response. Calling BatchPutFieldOptions with a deleted field ID throw a ValidationException. Calling GetCaseEventConfiguration does not return field IDs for deleted fields."]moduleDeleteLayoutRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];layoutId:LayoutId.t[@ocaml.doc"The unique identifier of the layout."]}letcontext_="DeleteLayoutRequest"letmake~domainId=fun~layoutId->fun()->{domainId;layoutId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("layoutId",(Some(LayoutId.to_valuex.layoutId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlayoutId=LayoutId.of_xml(Xml.child_exn~context:context_xml_arg0"layoutId")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake~layoutId~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlayoutId=field_map_exnjson__"layoutId"LayoutId.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake~layoutId~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a layout from a cases template. You can delete up to 100 layouts per domain. After a layout is deleted: You can still retrieve the layout by calling GetLayout. You cannot update a deleted layout by calling UpdateLayout; it throws a ValidationException. Deleted layouts are not included in the ListLayouts response."]moduleDeleteLayoutResponse=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"Deletes a layout from a cases template. You can delete up to 100 layouts per domain. After a layout is deleted: You can still retrieve the layout by calling GetLayout. You cannot update a deleted layout by calling UpdateLayout; it throws a ValidationException. Deleted layouts are not included in the ListLayouts response."]moduleDeleteRelatedItemRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"A unique identifier of the Cases domain."];caseId:CaseId.t[@ocaml.doc"A unique identifier of the case."];relatedItemId:RelatedItemId.t[@ocaml.doc"A unique identifier of a related item."]}letcontext_="DeleteRelatedItemRequest"letmake~domainId=fun~caseId->fun~relatedItemId->fun()->{domainId;caseId;relatedItemId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("caseId",(Some(CaseId.to_valuex.caseId)));("relatedItemId",(Some(RelatedItemId.to_valuex.relatedItemId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrelatedItemId=RelatedItemId.of_xml(Xml.child_exn~context:context_xml_arg0"relatedItemId")inletcaseId=CaseId.of_xml(Xml.child_exn~context:context_xml_arg0"caseId")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake~relatedItemId~caseId~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrelatedItemId=field_map_exnjson__"relatedItemId"RelatedItemId.of_jsoninletcaseId=field_map_exnjson__"caseId"CaseId.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake~relatedItemId~caseId~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the related item resource under a case. This API cannot be used on a FILE type related attachment. To delete this type of file, use the DeleteAttachedFile API"]moduleDeleteRelatedItemResponse=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"Deletes the related item resource under a case. This API cannot be used on a FILE type related attachment. To delete this type of file, use the DeleteAttachedFile API"]moduleDeleteTemplateRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];templateId:TemplateId.t[@ocaml.doc"A unique identifier of a template."]}letcontext_="DeleteTemplateRequest"letmake~domainId=fun~templateId->fun()->{domainId;templateId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("templateId",(Some(TemplateId.to_valuex.templateId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettemplateId=TemplateId.of_xml(Xml.child_exn~context:context_xml_arg0"templateId")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake~templateId~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettemplateId=field_map_exnjson__"templateId"TemplateId.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake~templateId~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a cases template. You can delete up to 100 templates per domain. After a cases template is deleted: You can still retrieve the template by calling GetTemplate. You cannot update the template. You cannot create a case by using the deleted template. Deleted templates are not included in the ListTemplates response."]moduleDeleteTemplateResponse=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"Deletes a cases template. You can delete up to 100 templates per domain. After a cases template is deleted: You can still retrieve the template by calling GetTemplate. You cannot update the template. You cannot create a case by using the deleted template. Deleted templates are not included in the ListTemplates response."]moduleDomainSummary=structtypenonrect={domainId:DomainId.toption[@ocaml.doc"The unique identifier of the domain."];domainArn:DomainArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the domain."];name:DomainName.toption[@ocaml.doc"The name of the domain."]}letmake?domainId=fun?domainArn->fun?name->fun()->{domainId;domainArn;name}letto_valuex=structure_to_value[("domainId",(Option.mapx.domainId~f:DomainId.to_value));("domainArn",(Option.mapx.domainArn~f:DomainArn.to_value));("name",(Option.mapx.name~f:DomainName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=(Option.map~f:DomainName.of_xml)(Xml.childxml_arg0"name")inletdomainArn=(Option.map~f:DomainArn.of_xml)(Xml.childxml_arg0"domainArn")inletdomainId=(Option.map~f:DomainId.of_xml)(Xml.childxml_arg0"domainId")inmake?name?domainArn?domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_mapjson__"name"DomainName.of_jsoninletdomainArn=field_mapjson__"domainArn"DomainArn.of_jsoninletdomainId=field_mapjson__"domainId"DomainId.of_jsoninmake?name?domainArn?domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object for the summarized details of the domain."]moduleDomainSummaryList=structtypenonrect=DomainSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DomainSummary.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:DomainSummary.of_xml)letof_jsonj=list_of_json~kind:"DomainSummaryList"~of_json:DomainSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRelatedItemEventIncludedData=structtypenonrect={includeContent:Boolean.t[@ocaml.doc"Details of what related item data is published through the case event stream."]}letcontext_="RelatedItemEventIncludedData"letmake~includeContent=fun()->{includeContent}letto_valuex=structure_to_value[("includeContent",(Some(Boolean.to_valuex.includeContent)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letincludeContent=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"includeContent")inmake~includeContent()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letincludeContent=field_map_exnjson__"includeContent"Boolean.of_jsoninmake~includeContent()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details of what related item data is published through the case event stream."]moduleEventIncludedData=structtypenonrect={caseData:CaseEventIncludedData.toption[@ocaml.doc"Details of what case data is published through the case event stream."];relatedItemData:RelatedItemEventIncludedData.toption[@ocaml.doc"Details of what related item data is published through the case event stream."]}letmake?caseData=fun?relatedItemData->fun()->{caseData;relatedItemData}letto_valuex=structure_to_value[("caseData",(Option.mapx.caseData~f:CaseEventIncludedData.to_value));("relatedItemData",(Option.mapx.relatedItemData~f:RelatedItemEventIncludedData.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrelatedItemData=(Option.map~f:RelatedItemEventIncludedData.of_xml)(Xml.childxml_arg0"relatedItemData")inletcaseData=(Option.map~f:CaseEventIncludedData.of_xml)(Xml.childxml_arg0"caseData")inmake?relatedItemData?caseData()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrelatedItemData=field_mapjson__"relatedItemData"RelatedItemEventIncludedData.of_jsoninletcaseData=field_mapjson__"caseData"CaseEventIncludedData.of_jsoninmake?relatedItemData?caseData()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details of what case and related item data is published through the case event stream."]moduleEventBridgeConfiguration=structtypenonrect={enabled:Boolean.t[@ocaml.doc"Indicates whether the to broadcast case event data to the customer."];includedData:EventIncludedData.toption[@ocaml.doc"Details of what case and related item data is published through the case event stream."]}letcontext_="EventBridgeConfiguration"letmake?includedData=fun~enabled->fun()->{includedData;enabled}letto_valuex=structure_to_value[("enabled",(Some(Boolean.to_valuex.enabled)));("includedData",(Option.mapx.includedData~f:EventIncludedData.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letincludedData=(Option.map~f:EventIncludedData.of_xml)(Xml.childxml_arg0"includedData")inletenabled=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"enabled")inmake?includedData~enabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letincludedData=field_mapjson__"includedData"EventIncludedData.of_jsoninletenabled=field_map_exnjson__"enabled"Boolean.of_jsoninmake?includedData~enabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration to enable EventBridge case event delivery and determine what data is delivered."]moduleFieldOptionsList=structtypenonrect=FieldOption.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FieldOption.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:FieldOption.of_xml)letof_jsonj=list_of_json~kind:"FieldOptionsList"~of_json:FieldOption.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFieldSummary=structtypenonrect={fieldId:FieldId.toption[@ocaml.doc"The unique identifier of a field."];fieldArn:FieldArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the field."];name:FieldName.toption[@ocaml.doc"Name of the field."];type_:FieldType.toption[@ocaml.doc"The type of a field."];namespace:FieldNamespace.toption[@ocaml.doc"The namespace of a field."];attributes:FieldAttributes.toption[@ocaml.doc"Union of field attributes."]}letmake?fieldId=fun?fieldArn->fun?name->fun?type_->fun?namespace->fun?attributes->fun()->{fieldId;fieldArn;name;type_;namespace;attributes}letto_valuex=structure_to_value[("fieldId",(Option.mapx.fieldId~f:FieldId.to_value));("fieldArn",(Option.mapx.fieldArn~f:FieldArn.to_value));("name",(Option.mapx.name~f:FieldName.to_value));("type",(Option.mapx.type_~f:FieldType.to_value));("namespace",(Option.mapx.namespace~f:FieldNamespace.to_value));("attributes",(Option.mapx.attributes~f:FieldAttributes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributes=(Option.map~f:FieldAttributes.of_xml)(Xml.childxml_arg0"attributes")inletnamespace=(Option.map~f:FieldNamespace.of_xml)(Xml.childxml_arg0"namespace")inlettype_=(Option.map~f:FieldType.of_xml)(Xml.childxml_arg0"type")inletname=(Option.map~f:FieldName.of_xml)(Xml.childxml_arg0"name")inletfieldArn=(Option.map~f:FieldArn.of_xml)(Xml.childxml_arg0"fieldArn")inletfieldId=(Option.map~f:FieldId.of_xml)(Xml.childxml_arg0"fieldId")inmake?attributes?namespace?type_?name?fieldArn?fieldId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_mapjson__"attributes"FieldAttributes.of_jsoninletnamespace=field_mapjson__"namespace"FieldNamespace.of_jsoninlettype_=field_mapjson__"type"FieldType.of_jsoninletname=field_mapjson__"name"FieldName.of_jsoninletfieldArn=field_mapjson__"fieldArn"FieldArn.of_jsoninletfieldId=field_mapjson__"fieldId"FieldId.of_jsoninmake?attributes?namespace?type_?name?fieldArn?fieldId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object for the summarized details of the field."]moduleFileFilter=structtypenonrect={fileArn:FileArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the file."]}letmake?fileArn=fun()->{fileArn}letto_valuex=structure_to_value[("fileArn",(Option.mapx.fileArn~f:FileArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfileArn=(Option.map~f:FileArn.of_xml)(Xml.childxml_arg0"fileArn")inmake?fileArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfileArn=field_mapjson__"fileArn"FileArn.of_jsoninmake?fileArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A filter for related items of type File."]moduleNextToken=structtypenonrect=stringletcontext_="NextToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:9000)>>=(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:"NextToken"jletto_json=simple_to_jsonto_valueendmoduleGetCaseAuditEventsRequestMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:25)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for GetCaseAuditEventsRequestMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleGetCaseAuditEventsRequest=structtypenonrect={caseId:CaseId.t[@ocaml.doc"A unique identifier of the case."];domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];maxResults:GetCaseAuditEventsRequestMaxResultsInteger.toption[@ocaml.doc"The maximum number of audit events to return. When no value is provided, 25 is the default."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."]}letcontext_="GetCaseAuditEventsRequest"letmake?maxResults=fun?nextToken->fun~caseId->fun~domainId->fun()->{maxResults;nextToken;caseId;domainId}letto_valuex=structure_to_value[("caseId",(Some(CaseId.to_valuex.caseId)));("domainId",(Some(DomainId.to_valuex.domainId)));("maxResults",(Option.mapx.maxResults~f:GetCaseAuditEventsRequestMaxResultsInteger.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:GetCaseAuditEventsRequestMaxResultsInteger.of_xml)(Xml.childxml_arg0"maxResults")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inletcaseId=CaseId.of_xml(Xml.child_exn~context:context_xml_arg0"caseId")inmake?nextToken?maxResults~domainId~caseId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"GetCaseAuditEventsRequestMaxResultsInteger.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninletcaseId=field_map_exnjson__"caseId"CaseId.of_jsoninmake?nextToken?maxResults~domainId~caseId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the audit history about a specific case if it exists."]moduleGetCaseAuditEventsResponseAuditEventsList=structtypenonrect=AuditEvent.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(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:AuditEvent.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:AuditEvent.of_xml)letof_jsonj=list_of_json~kind:"GetCaseAuditEventsResponseAuditEventsList"~of_json:AuditEvent.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleGetCaseAuditEventsResponse=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. This is null if there are no more results to return."];auditEvents:GetCaseAuditEventsResponseAuditEventsList.toption[@ocaml.doc"A list of case audits where each represents a particular edit of the case."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?auditEvents->fun()->{nextToken;auditEvents}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[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("auditEvents",(Option.mapx.auditEvents~f:GetCaseAuditEventsResponseAuditEventsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauditEvents=(Option.map~f:GetCaseAuditEventsResponseAuditEventsList.of_xml)(Xml.childxml_arg0"auditEvents")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?auditEvents?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauditEvents=field_mapjson__"auditEvents"GetCaseAuditEventsResponseAuditEventsList.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninmake?auditEvents?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the audit history about a specific case if it exists."]moduleGetCaseEventConfigurationRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."]}letcontext_="GetCaseEventConfigurationRequest"letmake~domainId=fun()->{domainId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the case event publishing configuration."]moduleGetCaseEventConfigurationResponse=structtypenonrect={eventBridge:EventBridgeConfiguration.toption[@ocaml.doc"Configuration to enable EventBridge case event delivery and determine what data is delivered."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?eventBridge=fun()->{eventBridge}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[("eventBridge",(Option.mapx.eventBridge~f:EventBridgeConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteventBridge=(Option.map~f:EventBridgeConfiguration.of_xml)(Xml.childxml_arg0"eventBridge")inmake?eventBridge()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteventBridge=field_mapjson__"eventBridge"EventBridgeConfiguration.of_jsoninmake?eventBridge()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the case event publishing configuration."]moduleGetCaseRequestFieldsList=structtypenonrect=FieldIdentifier.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:220)>>=(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:FieldIdentifier.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:FieldIdentifier.of_xml)letof_jsonj=list_of_json~kind:"GetCaseRequestFieldsList"~of_json:FieldIdentifier.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleGetCaseRequest=structtypenonrect={caseId:CaseId.t[@ocaml.doc"A unique identifier of the case."];domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];fields:GetCaseRequestFieldsList.t[@ocaml.doc"A list of unique field identifiers."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."]}letcontext_="GetCaseRequest"letmake?nextToken=fun~caseId->fun~domainId->fun~fields->fun()->{nextToken;caseId;domainId;fields}letto_valuex=structure_to_value[("caseId",(Some(CaseId.to_valuex.caseId)));("domainId",(Some(DomainId.to_valuex.domainId)));("fields",(Some(GetCaseRequestFieldsList.to_valuex.fields)));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletfields=GetCaseRequestFieldsList.of_xml(Xml.child_exn~context:context_xml_arg0"fields")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inletcaseId=CaseId.of_xml(Xml.child_exn~context:context_xml_arg0"caseId")inmake?nextToken~fields~domainId~caseId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletfields=field_map_exnjson__"fields"GetCaseRequestFieldsList.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninletcaseId=field_map_exnjson__"caseId"CaseId.of_jsoninmake?nextToken~fields~domainId~caseId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about a specific case if it exists."]moduleGetCaseResponseFieldsList=structtypenonrect=FieldValue.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:220)>>=(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:FieldValue.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:FieldValue.of_xml)letof_jsonj=list_of_json~kind:"GetCaseResponseFieldsList"~of_json:FieldValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleGetCaseResponse=structtypenonrect={fields:GetCaseResponseFieldsList.toption[@ocaml.doc"A list of detailed field information."];templateId:TemplateId.toption[@ocaml.doc"A unique identifier of a template."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. This is null if there are no more results to return."];tags:Tags.toption[@ocaml.doc"A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?fields=fun?templateId->fun?nextToken->fun?tags->fun()->{fields;templateId;nextToken;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[("fields",(Option.mapx.fields~f:GetCaseResponseFieldsList.to_value));("templateId",(Option.mapx.templateId~f:TemplateId.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.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")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inlettemplateId=(Option.map~f:TemplateId.of_xml)(Xml.childxml_arg0"templateId")inletfields=(Option.map~f:GetCaseResponseFieldsList.of_xml)(Xml.childxml_arg0"fields")inmake?tags?nextToken?templateId?fields()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninlettemplateId=field_mapjson__"templateId"TemplateId.of_jsoninletfields=field_mapjson__"fields"GetCaseResponseFieldsList.of_jsoninmake?tags?nextToken?templateId?fields()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about a specific case if it exists."]moduleGetDomainRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."]}letcontext_="GetDomainRequest"letmake~domainId=fun()->{domainId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about a specific domain if it exists."]moduleGetDomainResponse=structtypenonrect={domainId:DomainId.toption[@ocaml.doc"The unique identifier of the Cases domain."];domainArn:DomainArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) for the Cases domain."];name:DomainName.toption[@ocaml.doc"The name of the Cases domain."];createdTime:CreatedTime.toption[@ocaml.doc"The timestamp when the Cases domain was created."];domainStatus:DomainStatus.toption[@ocaml.doc"The status of the Cases domain."];tags:Tags.toption[@ocaml.doc"A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?domainId=fun?domainArn->fun?name->fun?createdTime->fun?domainStatus->fun?tags->fun()->{domainId;domainArn;name;createdTime;domainStatus;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[("domainId",(Option.mapx.domainId~f:DomainId.to_value));("domainArn",(Option.mapx.domainArn~f:DomainArn.to_value));("name",(Option.mapx.name~f:DomainName.to_value));("createdTime",(Option.mapx.createdTime~f:CreatedTime.to_value));("domainStatus",(Option.mapx.domainStatus~f:DomainStatus.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")inletdomainStatus=(Option.map~f:DomainStatus.of_xml)(Xml.childxml_arg0"domainStatus")inletcreatedTime=(Option.map~f:CreatedTime.of_xml)(Xml.childxml_arg0"createdTime")inletname=(Option.map~f:DomainName.of_xml)(Xml.childxml_arg0"name")inletdomainArn=(Option.map~f:DomainArn.of_xml)(Xml.childxml_arg0"domainArn")inletdomainId=(Option.map~f:DomainId.of_xml)(Xml.childxml_arg0"domainId")inmake?tags?domainStatus?createdTime?name?domainArn?domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletdomainStatus=field_mapjson__"domainStatus"DomainStatus.of_jsoninletcreatedTime=field_mapjson__"createdTime"CreatedTime.of_jsoninletname=field_mapjson__"name"DomainName.of_jsoninletdomainArn=field_mapjson__"domainArn"DomainArn.of_jsoninletdomainId=field_mapjson__"domainId"DomainId.of_jsoninmake?tags?domainStatus?createdTime?name?domainArn?domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about a specific domain if it exists."]moduleGetLayoutRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];layoutId:LayoutId.t[@ocaml.doc"The unique identifier of the layout."]}letcontext_="GetLayoutRequest"letmake~domainId=fun~layoutId->fun()->{domainId;layoutId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("layoutId",(Some(LayoutId.to_valuex.layoutId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlayoutId=LayoutId.of_xml(Xml.child_exn~context:context_xml_arg0"layoutId")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake~layoutId~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlayoutId=field_map_exnjson__"layoutId"LayoutId.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake~layoutId~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the details for the requested layout."]moduleGetLayoutResponse=structtypenonrect={layoutId:LayoutId.toption[@ocaml.doc"The unique identifier of the layout."];layoutArn:LayoutArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the newly created layout."];name:LayoutName.toption[@ocaml.doc"The name of the layout. It must be unique."];content:LayoutContent.toption[@ocaml.doc"Information about which fields will be present in the layout, the order of the fields, and read-only attribute of the field."];tags:Tags.toption[@ocaml.doc"A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource."];deleted:Deleted.toption[@ocaml.doc"Denotes whether or not the resource has been deleted."];createdTime:CreatedTime.toption[@ocaml.doc"Timestamp at which the resource was created."];lastModifiedTime:LastModifiedTime.toption[@ocaml.doc"Timestamp at which the resource was created or last modified."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?layoutId=fun?layoutArn->fun?name->fun?content->fun?tags->fun?deleted->fun?createdTime->fun?lastModifiedTime->fun()->{layoutId;layoutArn;name;content;tags;deleted;createdTime;lastModifiedTime}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[("layoutId",(Option.mapx.layoutId~f:LayoutId.to_value));("layoutArn",(Option.mapx.layoutArn~f:LayoutArn.to_value));("name",(Option.mapx.name~f:LayoutName.to_value));("content",(Option.mapx.content~f:LayoutContent.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("deleted",(Option.mapx.deleted~f:Deleted.to_value));("createdTime",(Option.mapx.createdTime~f:CreatedTime.to_value));("lastModifiedTime",(Option.mapx.lastModifiedTime~f:LastModifiedTime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastModifiedTime=(Option.map~f:LastModifiedTime.of_xml)(Xml.childxml_arg0"lastModifiedTime")inletcreatedTime=(Option.map~f:CreatedTime.of_xml)(Xml.childxml_arg0"createdTime")inletdeleted=(Option.map~f:Deleted.of_xml)(Xml.childxml_arg0"deleted")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletcontent=(Option.map~f:LayoutContent.of_xml)(Xml.childxml_arg0"content")inletname=(Option.map~f:LayoutName.of_xml)(Xml.childxml_arg0"name")inletlayoutArn=(Option.map~f:LayoutArn.of_xml)(Xml.childxml_arg0"layoutArn")inletlayoutId=(Option.map~f:LayoutId.of_xml)(Xml.childxml_arg0"layoutId")inmake?lastModifiedTime?createdTime?deleted?tags?content?name?layoutArn?layoutId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastModifiedTime=field_mapjson__"lastModifiedTime"LastModifiedTime.of_jsoninletcreatedTime=field_mapjson__"createdTime"CreatedTime.of_jsoninletdeleted=field_mapjson__"deleted"Deleted.of_jsoninlettags=field_mapjson__"tags"Tags.of_jsoninletcontent=field_mapjson__"content"LayoutContent.of_jsoninletname=field_mapjson__"name"LayoutName.of_jsoninletlayoutArn=field_mapjson__"layoutArn"LayoutArn.of_jsoninletlayoutId=field_mapjson__"layoutId"LayoutId.of_jsoninmake?lastModifiedTime?createdTime?deleted?tags?content?name?layoutArn?layoutId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the details for the requested layout."]moduleGetTemplateRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];templateId:TemplateId.t[@ocaml.doc"A unique identifier of a template."]}letcontext_="GetTemplateRequest"letmake~domainId=fun~templateId->fun()->{domainId;templateId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("templateId",(Some(TemplateId.to_valuex.templateId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettemplateId=TemplateId.of_xml(Xml.child_exn~context:context_xml_arg0"templateId")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake~templateId~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettemplateId=field_map_exnjson__"templateId"TemplateId.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake~templateId~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the details for the requested template. Other template APIs are: CreateTemplate DeleteTemplate ListTemplates UpdateTemplate"]moduleGetTemplateResponse=structtypenonrect={templateId:TemplateId.toption[@ocaml.doc"A unique identifier of a template."];templateArn:TemplateArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the template."];name:TemplateName.toption[@ocaml.doc"The name of the template."];description:TemplateDescription.toption[@ocaml.doc"A brief description of the template."];layoutConfiguration:LayoutConfiguration.toption[@ocaml.doc"Configuration of layouts associated to the template."];requiredFields:RequiredFieldList.toption[@ocaml.doc"A list of fields that must contain a value for a case to be successfully created with this template."];tags:Tags.toption[@ocaml.doc"A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource."];status:TemplateStatus.toption[@ocaml.doc"The status of the template."];deleted:Deleted.toption[@ocaml.doc"Denotes whether or not the resource has been deleted."];createdTime:CreatedTime.toption[@ocaml.doc"Timestamp at which the resource was created."];lastModifiedTime:LastModifiedTime.toption[@ocaml.doc"Timestamp at which the resource was created or last modified."];rules:TemplateCaseRuleList.toption[@ocaml.doc"A list of case rules (also known as case field conditions) on a template."];tagPropagationConfigurations:TagPropagationConfigurationList.toption[@ocaml.doc"Defines tag propagation configuration for resources created within a domain. Tags specified here will be automatically applied to resources being created for the specified resource type."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?templateId=fun?templateArn->fun?name->fun?description->fun?layoutConfiguration->fun?requiredFields->fun?tags->fun?status->fun?deleted->fun?createdTime->fun?lastModifiedTime->fun?rules->fun?tagPropagationConfigurations->fun()->{templateId;templateArn;name;description;layoutConfiguration;requiredFields;tags;status;deleted;createdTime;lastModifiedTime;rules;tagPropagationConfigurations}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[("templateId",(Option.mapx.templateId~f:TemplateId.to_value));("templateArn",(Option.mapx.templateArn~f:TemplateArn.to_value));("name",(Option.mapx.name~f:TemplateName.to_value));("description",(Option.mapx.description~f:TemplateDescription.to_value));("layoutConfiguration",(Option.mapx.layoutConfiguration~f:LayoutConfiguration.to_value));("requiredFields",(Option.mapx.requiredFields~f:RequiredFieldList.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("status",(Option.mapx.status~f:TemplateStatus.to_value));("deleted",(Option.mapx.deleted~f:Deleted.to_value));("createdTime",(Option.mapx.createdTime~f:CreatedTime.to_value));("lastModifiedTime",(Option.mapx.lastModifiedTime~f:LastModifiedTime.to_value));("rules",(Option.mapx.rules~f:TemplateCaseRuleList.to_value));("tagPropagationConfigurations",(Option.mapx.tagPropagationConfigurations~f:TagPropagationConfigurationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagPropagationConfigurations=(Option.map~f:TagPropagationConfigurationList.of_xml)(Xml.childxml_arg0"tagPropagationConfigurations")inletrules=(Option.map~f:TemplateCaseRuleList.of_xml)(Xml.childxml_arg0"rules")inletlastModifiedTime=(Option.map~f:LastModifiedTime.of_xml)(Xml.childxml_arg0"lastModifiedTime")inletcreatedTime=(Option.map~f:CreatedTime.of_xml)(Xml.childxml_arg0"createdTime")inletdeleted=(Option.map~f:Deleted.of_xml)(Xml.childxml_arg0"deleted")inletstatus=(Option.map~f:TemplateStatus.of_xml)(Xml.childxml_arg0"status")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletrequiredFields=(Option.map~f:RequiredFieldList.of_xml)(Xml.childxml_arg0"requiredFields")inletlayoutConfiguration=(Option.map~f:LayoutConfiguration.of_xml)(Xml.childxml_arg0"layoutConfiguration")inletdescription=(Option.map~f:TemplateDescription.of_xml)(Xml.childxml_arg0"description")inletname=(Option.map~f:TemplateName.of_xml)(Xml.childxml_arg0"name")inlettemplateArn=(Option.map~f:TemplateArn.of_xml)(Xml.childxml_arg0"templateArn")inlettemplateId=(Option.map~f:TemplateId.of_xml)(Xml.childxml_arg0"templateId")inmake?tagPropagationConfigurations?rules?lastModifiedTime?createdTime?deleted?status?tags?requiredFields?layoutConfiguration?description?name?templateArn?templateId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagPropagationConfigurations=field_mapjson__"tagPropagationConfigurations"TagPropagationConfigurationList.of_jsoninletrules=field_mapjson__"rules"TemplateCaseRuleList.of_jsoninletlastModifiedTime=field_mapjson__"lastModifiedTime"LastModifiedTime.of_jsoninletcreatedTime=field_mapjson__"createdTime"CreatedTime.of_jsoninletdeleted=field_mapjson__"deleted"Deleted.of_jsoninletstatus=field_mapjson__"status"TemplateStatus.of_jsoninlettags=field_mapjson__"tags"Tags.of_jsoninletrequiredFields=field_mapjson__"requiredFields"RequiredFieldList.of_jsoninletlayoutConfiguration=field_mapjson__"layoutConfiguration"LayoutConfiguration.of_jsoninletdescription=field_mapjson__"description"TemplateDescription.of_jsoninletname=field_mapjson__"name"TemplateName.of_jsoninlettemplateArn=field_mapjson__"templateArn"TemplateArn.of_jsoninlettemplateId=field_mapjson__"templateId"TemplateId.of_jsoninmake?tagPropagationConfigurations?rules?lastModifiedTime?createdTime?deleted?status?tags?requiredFields?layoutConfiguration?description?name?templateArn?templateId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the details for the requested template. Other template APIs are: CreateTemplate DeleteTemplate ListTemplates UpdateTemplate"]moduleLayoutSummary=structtypenonrect={layoutId:LayoutId.toption[@ocaml.doc"The unique identifier for of the layout."];layoutArn:LayoutArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the layout."];name:LayoutName.toption[@ocaml.doc"The name of the layout."]}letmake?layoutId=fun?layoutArn->fun?name->fun()->{layoutId;layoutArn;name}letto_valuex=structure_to_value[("layoutId",(Option.mapx.layoutId~f:LayoutId.to_value));("layoutArn",(Option.mapx.layoutArn~f:LayoutArn.to_value));("name",(Option.mapx.name~f:LayoutName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=(Option.map~f:LayoutName.of_xml)(Xml.childxml_arg0"name")inletlayoutArn=(Option.map~f:LayoutArn.of_xml)(Xml.childxml_arg0"layoutArn")inletlayoutId=(Option.map~f:LayoutId.of_xml)(Xml.childxml_arg0"layoutId")inmake?name?layoutArn?layoutId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_mapjson__"name"LayoutName.of_jsoninletlayoutArn=field_mapjson__"layoutArn"LayoutArn.of_jsoninletlayoutId=field_mapjson__"layoutId"LayoutId.of_jsoninmake?name?layoutArn?layoutId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object for the summarized details of the layout."]moduleLayoutSummaryList=structtypenonrect=LayoutSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:LayoutSummary.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:LayoutSummary.of_xml)letof_jsonj=list_of_json~kind:"LayoutSummaryList"~of_json:LayoutSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListCaseRulesRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"Unique identifier of a Cases domain."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of results to return per page."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."]}letcontext_="ListCaseRulesRequest"letmake?maxResults=fun?nextToken->fun~domainId->fun()->{maxResults;nextToken;domainId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake?nextToken?maxResults~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake?nextToken?maxResults~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all case rules in a Cases domain. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]moduleListCaseRulesResponseCaseRulesList=structtypenonrect=CaseRuleSummary.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:CaseRuleSummary.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:CaseRuleSummary.of_xml)letof_jsonj=list_of_json~kind:"ListCaseRulesResponseCaseRulesList"~of_json:CaseRuleSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListCaseRulesResponse=structtypenonrect={caseRules:ListCaseRulesResponseCaseRulesList.toption[@ocaml.doc"A list of field summary objects."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. This is null if there are no more results to return."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?caseRules=fun?nextToken->fun()->{caseRules;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("caseRules",(Option.mapx.caseRules~f:ListCaseRulesResponseCaseRulesList.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletcaseRules=(Option.map~f:ListCaseRulesResponseCaseRulesList.of_xml)(Xml.childxml_arg0"caseRules")inmake?nextToken?caseRules()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletcaseRules=field_mapjson__"caseRules"ListCaseRulesResponseCaseRulesList.of_jsoninmake?nextToken?caseRules()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all case rules in a Cases domain. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]moduleListCasesForContactRequestMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:10)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListCasesForContactRequestMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListCasesForContactRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];contactArn:ContactArn.t[@ocaml.doc"A unique identifier of a contact in Amazon Connect."];maxResults:ListCasesForContactRequestMaxResultsInteger.toption[@ocaml.doc"The maximum number of results to return per page."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."]}letcontext_="ListCasesForContactRequest"letmake?maxResults=fun?nextToken->fun~domainId->fun~contactArn->fun()->{maxResults;nextToken;domainId;contactArn}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("contactArn",(Some(ContactArn.to_valuex.contactArn)));("maxResults",(Option.mapx.maxResults~f:ListCasesForContactRequestMaxResultsInteger.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:ListCasesForContactRequestMaxResultsInteger.of_xml)(Xml.childxml_arg0"maxResults")inletcontactArn=ContactArn.of_xml(Xml.child_exn~context:context_xml_arg0"contactArn")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake?nextToken?maxResults~contactArn~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"ListCasesForContactRequestMaxResultsInteger.of_jsoninletcontactArn=field_map_exnjson__"contactArn"ContactArn.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake?nextToken?maxResults~contactArn~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists cases for a given contact."]moduleListCasesForContactResponseCasesList=structtypenonrect=CaseSummary.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:CaseSummary.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:CaseSummary.of_xml)letof_jsonj=list_of_json~kind:"ListCasesForContactResponseCasesList"~of_json:CaseSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListCasesForContactResponse=structtypenonrect={cases:ListCasesForContactResponseCasesList.toption[@ocaml.doc"A list of Case summary information."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. This is null if there are no more results to return."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?cases=fun?nextToken->fun()->{cases;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("cases",(Option.mapx.cases~f:ListCasesForContactResponseCasesList.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletcases=(Option.map~f:ListCasesForContactResponseCasesList.of_xml)(Xml.childxml_arg0"cases")inmake?nextToken?cases()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletcases=field_mapjson__"cases"ListCasesForContactResponseCasesList.of_jsoninmake?nextToken?cases()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists cases for a given contact."]moduleListDomainsRequestMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:10)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListDomainsRequestMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListDomainsRequest=structtypenonrect={maxResults:ListDomainsRequestMaxResultsInteger.toption[@ocaml.doc"The maximum number of results to return per page."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."]}letmake?maxResults=fun?nextToken->fun()->{maxResults;nextToken}letto_valuex=structure_to_value[("maxResults",(Option.mapx.maxResults~f:ListDomainsRequestMaxResultsInteger.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:ListDomainsRequestMaxResultsInteger.of_xml)(Xml.childxml_arg0"maxResults")inmake?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"ListDomainsRequestMaxResultsInteger.of_jsoninmake?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all cases domains in the Amazon Web Services account. Each list item is a condensed summary object of the domain."]moduleListDomainsResponse=structtypenonrect={domains:DomainSummaryList.toption[@ocaml.doc"The Cases domain."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. This is null if there are no more results to return."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?domains=fun?nextToken->fun()->{domains;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("domains",(Option.mapx.domains~f:DomainSummaryList.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletdomains=(Option.map~f:DomainSummaryList.of_xml)(Xml.childxml_arg0"domains")inmake?nextToken?domains()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletdomains=field_mapjson__"domains"DomainSummaryList.of_jsoninmake?nextToken?domains()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all cases domains in the Amazon Web Services account. Each list item is a condensed summary object of the domain."]moduleValue=structtypenonrect=stringletcontext_="Value"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:"Value"jletto_json=simple_to_jsonto_valueendmoduleValuesList=structtypenonrect=Value.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Value.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:Value.of_xml)letof_jsonj=list_of_json~kind:"ValuesList"~of_json:Value.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListFieldOptionsRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];fieldId:FieldId.t[@ocaml.doc"The unique identifier of a field."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of results to return per page."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."];values:ValuesList.toption[@ocaml.doc"A list of FieldOption values to filter on for ListFieldOptions."]}letcontext_="ListFieldOptionsRequest"letmake?maxResults=fun?nextToken->fun?values->fun~domainId->fun~fieldId->fun()->{maxResults;nextToken;values;domainId;fieldId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("fieldId",(Some(FieldId.to_valuex.fieldId)));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("values",(Option.mapx.values~f:ValuesList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalues=(Option.map~f:ValuesList.of_xml)(Xml.childxml_arg0"values")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletfieldId=FieldId.of_xml(Xml.child_exn~context:context_xml_arg0"fieldId")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake?values?nextToken?maxResults~fieldId~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalues=field_mapjson__"values"ValuesList.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletfieldId=field_map_exnjson__"fieldId"FieldId.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake?values?nextToken?maxResults~fieldId~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all of the field options for a field identifier in the domain."]moduleListFieldOptionsResponse=structtypenonrect={options:FieldOptionsList.toption[@ocaml.doc"A list of FieldOption objects."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. This is null if there are no more results to return."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?options=fun?nextToken->fun()->{options;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("options",(Option.mapx.options~f:FieldOptionsList.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletoptions=(Option.map~f:FieldOptionsList.of_xml)(Xml.childxml_arg0"options")inmake?nextToken?options()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletoptions=field_mapjson__"options"FieldOptionsList.of_jsoninmake?nextToken?options()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all of the field options for a field identifier in the domain."]moduleListFieldsRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of results to return per page."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."]}letcontext_="ListFieldsRequest"letmake?maxResults=fun?nextToken->fun~domainId->fun()->{maxResults;nextToken;domainId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake?nextToken?maxResults~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake?nextToken?maxResults~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all fields in a Cases domain."]moduleListFieldsResponseFieldsList=structtypenonrect=FieldSummary.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:FieldSummary.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:FieldSummary.of_xml)letof_jsonj=list_of_json~kind:"ListFieldsResponseFieldsList"~of_json:FieldSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListFieldsResponse=structtypenonrect={fields:ListFieldsResponseFieldsList.toption[@ocaml.doc"List of detailed field information."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. This is null if there are no more results to return."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?fields=fun?nextToken->fun()->{fields;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("fields",(Option.mapx.fields~f:ListFieldsResponseFieldsList.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletfields=(Option.map~f:ListFieldsResponseFieldsList.of_xml)(Xml.childxml_arg0"fields")inmake?nextToken?fields()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletfields=field_mapjson__"fields"ListFieldsResponseFieldsList.of_jsoninmake?nextToken?fields()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all fields in a Cases domain."]moduleListLayoutsRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of results to return per page."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."]}letcontext_="ListLayoutsRequest"letmake?maxResults=fun?nextToken->fun~domainId->fun()->{maxResults;nextToken;domainId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake?nextToken?maxResults~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake?nextToken?maxResults~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all layouts in the given cases domain. Each list item is a condensed summary object of the layout."]moduleListLayoutsResponse=structtypenonrect={layouts:LayoutSummaryList.toption[@ocaml.doc"The layouts for the domain."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. This is null if there are no more results to return."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?layouts=fun?nextToken->fun()->{layouts;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("layouts",(Option.mapx.layouts~f:LayoutSummaryList.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletlayouts=(Option.map~f:LayoutSummaryList.of_xml)(Xml.childxml_arg0"layouts")inmake?nextToken?layouts()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletlayouts=field_mapjson__"layouts"LayoutSummaryList.of_jsoninmake?nextToken?layouts()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all layouts in the given cases domain. Each list item is a condensed summary object of the layout."]moduleListTagsForResourceRequest=structtypenonrect={arn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN)"]}letcontext_="ListTagsForResourceRequest"letmake~arn=fun()->{arn}letto_valuex=structure_to_value[("arn",(Some(Arn.to_valuex.arn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_map_exnjson__"arn"Arn.of_jsoninmake~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists tags for a resource."]moduleListTagsForResourceResponse=structtypenonrect={tags:Tags.toption[@ocaml.doc"A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this 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 tags for a resource."]moduleTemplateStatusFilters=structtypenonrect=TemplateStatus.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:2)>>=(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:TemplateStatus.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:TemplateStatus.of_xml)letof_jsonj=list_of_json~kind:"TemplateStatusFilters"~of_json:TemplateStatus.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListTemplatesRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of results to return per page."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."];status:TemplateStatusFilters.toption[@ocaml.doc"A list of status values to filter on."]}letcontext_="ListTemplatesRequest"letmake?maxResults=fun?nextToken->fun?status->fun~domainId->fun()->{maxResults;nextToken;status;domainId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("status",(Option.mapx.status~f:TemplateStatusFilters.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:TemplateStatusFilters.of_xml)(Xml.childxml_arg0"status")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake?status?nextToken?maxResults~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"status"TemplateStatusFilters.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake?status?nextToken?maxResults~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all of the templates in a Cases domain. Each list item is a condensed summary object of the template. Other template APIs are: CreateTemplate DeleteTemplate GetTemplate UpdateTemplate"]moduleTemplateSummary=structtypenonrect={templateId:TemplateId.toption[@ocaml.doc"The unique identifier for the template."];templateArn:TemplateArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the template."];name:TemplateName.toption[@ocaml.doc"The template name."];status:TemplateStatus.toption[@ocaml.doc"The status of the template."];tagPropagationConfigurations:TagPropagationConfigurationList.toption[@ocaml.doc"Defines tag propagation configuration for resources created within a domain. Tags specified here will be automatically applied to resources being created for the specified resource type."]}letmake?templateId=fun?templateArn->fun?name->fun?status->fun?tagPropagationConfigurations->fun()->{templateId;templateArn;name;status;tagPropagationConfigurations}letto_valuex=structure_to_value[("templateId",(Option.mapx.templateId~f:TemplateId.to_value));("templateArn",(Option.mapx.templateArn~f:TemplateArn.to_value));("name",(Option.mapx.name~f:TemplateName.to_value));("status",(Option.mapx.status~f:TemplateStatus.to_value));("tagPropagationConfigurations",(Option.mapx.tagPropagationConfigurations~f:TagPropagationConfigurationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagPropagationConfigurations=(Option.map~f:TagPropagationConfigurationList.of_xml)(Xml.childxml_arg0"tagPropagationConfigurations")inletstatus=(Option.map~f:TemplateStatus.of_xml)(Xml.childxml_arg0"status")inletname=(Option.map~f:TemplateName.of_xml)(Xml.childxml_arg0"name")inlettemplateArn=(Option.map~f:TemplateArn.of_xml)(Xml.childxml_arg0"templateArn")inlettemplateId=(Option.map~f:TemplateId.of_xml)(Xml.childxml_arg0"templateId")inmake?tagPropagationConfigurations?status?name?templateArn?templateId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagPropagationConfigurations=field_mapjson__"tagPropagationConfigurations"TagPropagationConfigurationList.of_jsoninletstatus=field_mapjson__"status"TemplateStatus.of_jsoninletname=field_mapjson__"name"TemplateName.of_jsoninlettemplateArn=field_mapjson__"templateArn"TemplateArn.of_jsoninlettemplateId=field_mapjson__"templateId"TemplateId.of_jsoninmake?tagPropagationConfigurations?status?name?templateArn?templateId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Template summary information."]moduleListTemplatesResponseTemplatesList=structtypenonrect=TemplateSummary.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:TemplateSummary.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:TemplateSummary.of_xml)letof_jsonj=list_of_json~kind:"ListTemplatesResponseTemplatesList"~of_json:TemplateSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListTemplatesResponse=structtypenonrect={templates:ListTemplatesResponseTemplatesList.toption[@ocaml.doc"List of template summary objects."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. This is null if there are no more results to return."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?templates=fun?nextToken->fun()->{templates;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("templates",(Option.mapx.templates~f:ListTemplatesResponseTemplatesList.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inlettemplates=(Option.map~f:ListTemplatesResponseTemplatesList.of_xml)(Xml.childxml_arg0"templates")inmake?nextToken?templates()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninlettemplates=field_mapjson__"templates"ListTemplatesResponseTemplatesList.of_jsoninmake?nextToken?templates()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all of the templates in a Cases domain. Each list item is a condensed summary object of the template. Other template APIs are: CreateTemplate DeleteTemplate GetTemplate UpdateTemplate"]moduleOrder=structtypenonrect=|Asc|Desc|Non_static_idofstringletmakei=iletto_string=function|Asc->"Asc"|Desc->"Desc"|Non_static_ids->sletof_string=function|"Asc"->Asc|"Desc"->Desc|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration Order"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Order"j)letto_json=simple_to_jsonto_valueendmodulePutCaseEventConfigurationRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];eventBridge:EventBridgeConfiguration.t[@ocaml.doc"Configuration to enable EventBridge case event delivery and determine what data is delivered."]}letcontext_="PutCaseEventConfigurationRequest"letmake~domainId=fun~eventBridge->fun()->{domainId;eventBridge}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("eventBridge",(Some(EventBridgeConfiguration.to_valuex.eventBridge)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteventBridge=EventBridgeConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"eventBridge")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake~eventBridge~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteventBridge=field_map_exnjson__"eventBridge"EventBridgeConfiguration.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake~eventBridge~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds case event publishing configuration. For a complete list of fields you can add to the event message, see Create case fields in the Amazon Connect Administrator Guide"]modulePutCaseEventConfigurationResponse=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"Adds case event publishing configuration. For a complete list of fields you can add to the event message, see Create case fields in the Amazon Connect Administrator Guide"]moduleSlaTargetTime=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_valueendmoduleSlaStatus=structtypenonrect=|Active|Overdue|Met|NotMet|Non_static_idofstringletmakei=iletto_string=function|Active->"Active"|Overdue->"Overdue"|Met->"Met"|NotMet->"NotMet"|Non_static_ids->sletof_string=function|"Active"->Active|"Overdue"->Overdue|"Met"->Met|"NotMet"->NotMet|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 SlaStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SlaStatus"j)letto_json=simple_to_jsonto_valueendmoduleSlaCompletionTime=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_valueendmoduleSlaConfiguration=structtypenonrect={name:SlaName.toption[@ocaml.doc"Name of an SLA."];type_:SlaType.toption[@ocaml.doc"Type of SLA."];status:SlaStatus.toption[@ocaml.doc"Status of an SLA."];fieldId:FieldId.toption[@ocaml.doc"Unique identifier of a field."];targetFieldValues:SlaFieldValueUnionList.toption[@ocaml.doc"Represents a list of target field values for the fieldId specified in SlaConfiguration."];targetTime:SlaTargetTime.toption[@ocaml.doc"Target time by which an SLA should be completed."];completionTime:SlaCompletionTime.toption[@ocaml.doc"Time at which an SLA was completed."]}letmake?name=fun?type_->fun?status->fun?fieldId->fun?targetFieldValues->fun?targetTime->fun?completionTime->fun()->{name;type_;status;fieldId;targetFieldValues;targetTime;completionTime}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:SlaName.to_value));("type",(Option.mapx.type_~f:SlaType.to_value));("status",(Option.mapx.status~f:SlaStatus.to_value));("fieldId",(Option.mapx.fieldId~f:FieldId.to_value));("targetFieldValues",(Option.mapx.targetFieldValues~f:SlaFieldValueUnionList.to_value));("targetTime",(Option.mapx.targetTime~f:SlaTargetTime.to_value));("completionTime",(Option.mapx.completionTime~f:SlaCompletionTime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcompletionTime=(Option.map~f:SlaCompletionTime.of_xml)(Xml.childxml_arg0"completionTime")inlettargetTime=(Option.map~f:SlaTargetTime.of_xml)(Xml.childxml_arg0"targetTime")inlettargetFieldValues=(Option.map~f:SlaFieldValueUnionList.of_xml)(Xml.childxml_arg0"targetFieldValues")inletfieldId=(Option.map~f:FieldId.of_xml)(Xml.childxml_arg0"fieldId")inletstatus=(Option.map~f:SlaStatus.of_xml)(Xml.childxml_arg0"status")inlettype_=(Option.map~f:SlaType.of_xml)(Xml.childxml_arg0"type")inletname=(Option.map~f:SlaName.of_xml)(Xml.childxml_arg0"name")inmake?completionTime?targetTime?targetFieldValues?fieldId?status?type_?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcompletionTime=field_mapjson__"completionTime"SlaCompletionTime.of_jsoninlettargetTime=field_mapjson__"targetTime"SlaTargetTime.of_jsoninlettargetFieldValues=field_mapjson__"targetFieldValues"SlaFieldValueUnionList.of_jsoninletfieldId=field_mapjson__"fieldId"FieldId.of_jsoninletstatus=field_mapjson__"status"SlaStatus.of_jsoninlettype_=field_mapjson__"type"SlaType.of_jsoninletname=field_mapjson__"name"SlaName.of_jsoninmake?completionTime?targetTime?targetFieldValues?fieldId?status?type_?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents an SLA configuration."]moduleSlaContent=structtypenonrect={slaConfiguration:SlaConfiguration.toption[@ocaml.doc"Represents an SLA configuration."]}letmake?slaConfiguration=fun()->{slaConfiguration}letto_valuex=structure_to_value[("slaConfiguration",(Option.mapx.slaConfiguration~f:SlaConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letslaConfiguration=(Option.map~f:SlaConfiguration.of_xml)(Xml.childxml_arg0"slaConfiguration")inmake?slaConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letslaConfiguration=field_mapjson__"slaConfiguration"SlaConfiguration.of_jsoninmake?slaConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the content of an SLA to be returned to agents."]moduleRelatedItemContent=structtypenonrect={contact:ContactContent.toption[@ocaml.doc"Represents the content of a contact to be returned to agents."];comment:CommentContent.toption[@ocaml.doc"Represents the content of a comment to be returned to agents."];file:FileContent.toption[@ocaml.doc"Represents the content of a File to be returned to agents."];sla:SlaContent.toption[@ocaml.doc"Represents the content of an SLA to be returned to agents."];connectCase:ConnectCaseContent.toption[@ocaml.doc"Represents the Amazon Connect case to be created as a related item."];custom:CustomContent.toption[@ocaml.doc"Represents the content of a Custom type related item."]}letmake?contact=fun?comment->fun?file->fun?sla->fun?connectCase->fun?custom->fun()->{contact;comment;file;sla;connectCase;custom}letto_valuex=structure_to_value[("contact",(Option.mapx.contact~f:ContactContent.to_value));("comment",(Option.mapx.comment~f:CommentContent.to_value));("file",(Option.mapx.file~f:FileContent.to_value));("sla",(Option.mapx.sla~f:SlaContent.to_value));("connectCase",(Option.mapx.connectCase~f:ConnectCaseContent.to_value));("custom",(Option.mapx.custom~f:CustomContent.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustom=(Option.map~f:CustomContent.of_xml)(Xml.childxml_arg0"custom")inletconnectCase=(Option.map~f:ConnectCaseContent.of_xml)(Xml.childxml_arg0"connectCase")inletsla=(Option.map~f:SlaContent.of_xml)(Xml.childxml_arg0"sla")inletfile=(Option.map~f:FileContent.of_xml)(Xml.childxml_arg0"file")inletcomment=(Option.map~f:CommentContent.of_xml)(Xml.childxml_arg0"comment")inletcontact=(Option.map~f:ContactContent.of_xml)(Xml.childxml_arg0"contact")inmake?custom?connectCase?sla?file?comment?contact()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustom=field_mapjson__"custom"CustomContent.of_jsoninletconnectCase=field_mapjson__"connectCase"ConnectCaseContent.of_jsoninletsla=field_mapjson__"sla"SlaContent.of_jsoninletfile=field_mapjson__"file"FileContent.of_jsoninletcomment=field_mapjson__"comment"CommentContent.of_jsoninletcontact=field_mapjson__"contact"ContactContent.of_jsoninmake?custom?connectCase?sla?file?comment?contact()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the content of a particular type of related item."]moduleSlaFilter=structtypenonrect={name:SlaName.toption[@ocaml.doc"Name of an SLA."];status:SlaStatus.toption[@ocaml.doc"Status of an SLA."]}letmake?name=fun?status->fun()->{name;status}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:SlaName.to_value));("status",(Option.mapx.status~f:SlaStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:SlaStatus.of_xml)(Xml.childxml_arg0"status")inletname=(Option.map~f:SlaName.of_xml)(Xml.childxml_arg0"name")inmake?status?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"status"SlaStatus.of_jsoninletname=field_mapjson__"name"SlaName.of_jsoninmake?status?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A filter for related items of type SLA."]moduleRelatedItemTypeFilter=structtypenonrect={contact:ContactFilter.toption[@ocaml.doc"A filter for related items of type Contact."];comment:CommentFilter.toption[@ocaml.doc"A filter for related items of type Comment."];file:FileFilter.toption[@ocaml.doc"A filter for related items of this type of File."];sla:SlaFilter.toption[@ocaml.doc"Filter for related items of type SLA."];connectCase:ConnectCaseFilter.toption[@ocaml.doc"Represents the Amazon Connect case to be created as a related item."];custom:CustomFilter.toption[@ocaml.doc"Represents the content of a Custom type related item."]}letmake?contact=fun?comment->fun?file->fun?sla->fun?connectCase->fun?custom->fun()->{contact;comment;file;sla;connectCase;custom}letto_valuex=structure_to_value[("contact",(Option.mapx.contact~f:ContactFilter.to_value));("comment",(Option.mapx.comment~f:CommentFilter.to_value));("file",(Option.mapx.file~f:FileFilter.to_value));("sla",(Option.mapx.sla~f:SlaFilter.to_value));("connectCase",(Option.mapx.connectCase~f:ConnectCaseFilter.to_value));("custom",(Option.mapx.custom~f:CustomFilter.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustom=(Option.map~f:CustomFilter.of_xml)(Xml.childxml_arg0"custom")inletconnectCase=(Option.map~f:ConnectCaseFilter.of_xml)(Xml.childxml_arg0"connectCase")inletsla=(Option.map~f:SlaFilter.of_xml)(Xml.childxml_arg0"sla")inletfile=(Option.map~f:FileFilter.of_xml)(Xml.childxml_arg0"file")inletcomment=(Option.map~f:CommentFilter.of_xml)(Xml.childxml_arg0"comment")inletcontact=(Option.map~f:ContactFilter.of_xml)(Xml.childxml_arg0"contact")inmake?custom?connectCase?sla?file?comment?contact()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustom=field_mapjson__"custom"CustomFilter.of_jsoninletconnectCase=field_mapjson__"connectCase"ConnectCaseFilter.of_jsoninletsla=field_mapjson__"sla"SlaFilter.of_jsoninletfile=field_mapjson__"file"FileFilter.of_jsoninletcomment=field_mapjson__"comment"CommentFilter.of_jsoninletcontact=field_mapjson__"contact"ContactFilter.of_jsoninmake?custom?connectCase?sla?file?comment?contact()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The list of types of related items and their parameters to use for filtering."]moduleRelatedItemUpdateContent=structtypenonrect={comment:CommentUpdateContent.toption;custom:CustomUpdateContent.toption}letmake?comment=fun?custom->fun()->{comment;custom}letto_valuex=structure_to_value[("comment",(Option.mapx.comment~f:CommentUpdateContent.to_value));("custom",(Option.mapx.custom~f:CustomUpdateContent.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustom=(Option.map~f:CustomUpdateContent.of_xml)(Xml.childxml_arg0"custom")inletcomment=(Option.map~f:CommentUpdateContent.of_xml)(Xml.childxml_arg0"comment")inmake?custom?comment()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustom=field_mapjson__"custom"CustomUpdateContent.of_jsoninletcomment=field_mapjson__"comment"CommentUpdateContent.of_jsoninmake?custom?comment()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the content of a related item to be updated. This is a union type that can contain either comment content or custom content."]moduleSearchAllRelatedItemsSortProperty=structtypenonrect=|AssociationTime|CaseId|Non_static_idofstringletmakei=iletto_string=function|AssociationTime->"AssociationTime"|CaseId->"CaseId"|Non_static_ids->sletof_string=function|"AssociationTime"->AssociationTime|"CaseId"->CaseId|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 SearchAllRelatedItemsSortProperty"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SearchAllRelatedItemsSortProperty"j)letto_json=simple_to_jsonto_valueendmoduleSearchAllRelatedItemsSort=structtypenonrect={sortProperty:SearchAllRelatedItemsSortProperty.t[@ocaml.doc"Whether related items should be sorted in ascending or descending order."];sortOrder:Order.t[@ocaml.doc"Whether related items should be sorted by association time or case ID."]}letcontext_="SearchAllRelatedItemsSort"letmake~sortProperty=fun~sortOrder->fun()->{sortProperty;sortOrder}letto_valuex=structure_to_value[("sortProperty",(Some(SearchAllRelatedItemsSortProperty.to_valuex.sortProperty)));("sortOrder",(Some(Order.to_valuex.sortOrder)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsortOrder=Order.of_xml(Xml.child_exn~context:context_xml_arg0"sortOrder")inletsortProperty=SearchAllRelatedItemsSortProperty.of_xml(Xml.child_exn~context:context_xml_arg0"sortProperty")inmake~sortOrder~sortProperty()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsortOrder=field_map_exnjson__"sortOrder"Order.of_jsoninletsortProperty=field_map_exnjson__"sortProperty"SearchAllRelatedItemsSortProperty.of_jsoninmake~sortOrder~sortProperty()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The order in which all returned related items should be sorted."]moduleSearchAllRelatedItemsRequestSortsList=structtypenonrect=SearchAllRelatedItemsSort.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:2)>>=(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:SearchAllRelatedItemsSort.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:SearchAllRelatedItemsSort.of_xml)letof_jsonj=list_of_json~kind:"SearchAllRelatedItemsRequestSortsList"~of_json:SearchAllRelatedItemsSort.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSearchAllRelatedItemsRequestMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:25)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for SearchAllRelatedItemsRequestMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleSearchAllRelatedItemsRequestFiltersList=structtypenonrect=RelatedItemTypeFilter.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:RelatedItemTypeFilter.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:RelatedItemTypeFilter.of_xml)letof_jsonj=list_of_json~kind:"SearchAllRelatedItemsRequestFiltersList"~of_json:RelatedItemTypeFilter.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSearchAllRelatedItemsRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];maxResults:SearchAllRelatedItemsRequestMaxResultsInteger.toption[@ocaml.doc"The maximum number of results to return per page."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."];filters:SearchAllRelatedItemsRequestFiltersList.toption[@ocaml.doc"The list of types of related items and their parameters to use for filtering. The filters work as an OR condition: caller gets back related items that match any of the specified filter types."];sorts:SearchAllRelatedItemsRequestSortsList.toption[@ocaml.doc"A structured set of sort terms to specify the order in which related items should be returned. Supports sorting by association time or case ID. The sorts work in the order specified: first sort term takes precedence over subsequent terms."]}letcontext_="SearchAllRelatedItemsRequest"letmake?maxResults=fun?nextToken->fun?filters->fun?sorts->fun~domainId->fun()->{maxResults;nextToken;filters;sorts;domainId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("maxResults",(Option.mapx.maxResults~f:SearchAllRelatedItemsRequestMaxResultsInteger.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("filters",(Option.mapx.filters~f:SearchAllRelatedItemsRequestFiltersList.to_value));("sorts",(Option.mapx.sorts~f:SearchAllRelatedItemsRequestSortsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsorts=(Option.map~f:SearchAllRelatedItemsRequestSortsList.of_xml)(Xml.childxml_arg0"sorts")inletfilters=(Option.map~f:SearchAllRelatedItemsRequestFiltersList.of_xml)(Xml.childxml_arg0"filters")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:SearchAllRelatedItemsRequestMaxResultsInteger.of_xml)(Xml.childxml_arg0"maxResults")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake?sorts?filters?nextToken?maxResults~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsorts=field_mapjson__"sorts"SearchAllRelatedItemsRequestSortsList.of_jsoninletfilters=field_mapjson__"filters"SearchAllRelatedItemsRequestFiltersList.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"SearchAllRelatedItemsRequestMaxResultsInteger.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake?sorts?filters?nextToken?maxResults~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Searches for related items across all cases within a domain. This is a global search operation that returns related items from multiple cases, unlike the case-specific SearchRelatedItems API. Use cases Following are common uses cases for this API: Find cases with similar issues across the domain. For example, search for all cases containing comments about \"product defect\" to identify patterns and existing solutions. Locate all cases associated with specific contacts or orders. For example, find all cases linked to a contactArn to understand the complete customer journey. Monitor SLA compliance across cases. For example, search for all cases with \"Active\" SLA status to prioritize remediation efforts. Important things to know This API returns case identifiers, not complete case objects. To retrieve full case details, you must make additional calls to the GetCase API for each returned case ID. This API searches across related items content, not case fields. Use the SearchCases API to search within case field values. Endpoints: See Amazon Connect endpoints and quotas."]moduleSearchAllRelatedItemsResponseItem=structtypenonrect={relatedItemId:RelatedItemId.toption[@ocaml.doc"Unique identifier of a related item."];caseId:CaseId.toption[@ocaml.doc"A unique identifier of the case."];type_:RelatedItemType.toption[@ocaml.doc"Type of a related item."];associationTime:AssociationTime.toption[@ocaml.doc"Time at which a related item was associated with a case."];content:RelatedItemContent.toption;performedBy:UserUnion.toption;tags:Tags.toption[@ocaml.doc"A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource."]}letmake?relatedItemId=fun?caseId->fun?type_->fun?associationTime->fun?content->fun?performedBy->fun?tags->fun()->{relatedItemId;caseId;type_;associationTime;content;performedBy;tags}letto_valuex=structure_to_value[("relatedItemId",(Option.mapx.relatedItemId~f:RelatedItemId.to_value));("caseId",(Option.mapx.caseId~f:CaseId.to_value));("type",(Option.mapx.type_~f:RelatedItemType.to_value));("associationTime",(Option.mapx.associationTime~f:AssociationTime.to_value));("content",(Option.mapx.content~f:RelatedItemContent.to_value));("performedBy",(Option.mapx.performedBy~f:UserUnion.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")inletperformedBy=(Option.map~f:UserUnion.of_xml)(Xml.childxml_arg0"performedBy")inletcontent=(Option.map~f:RelatedItemContent.of_xml)(Xml.childxml_arg0"content")inletassociationTime=(Option.map~f:AssociationTime.of_xml)(Xml.childxml_arg0"associationTime")inlettype_=(Option.map~f:RelatedItemType.of_xml)(Xml.childxml_arg0"type")inletcaseId=(Option.map~f:CaseId.of_xml)(Xml.childxml_arg0"caseId")inletrelatedItemId=(Option.map~f:RelatedItemId.of_xml)(Xml.childxml_arg0"relatedItemId")inmake?tags?performedBy?content?associationTime?type_?caseId?relatedItemId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletperformedBy=field_mapjson__"performedBy"UserUnion.of_jsoninletcontent=field_mapjson__"content"RelatedItemContent.of_jsoninletassociationTime=field_mapjson__"associationTime"AssociationTime.of_jsoninlettype_=field_mapjson__"type"RelatedItemType.of_jsoninletcaseId=field_mapjson__"caseId"CaseId.of_jsoninletrelatedItemId=field_mapjson__"relatedItemId"RelatedItemId.of_jsoninmake?tags?performedBy?content?associationTime?type_?caseId?relatedItemId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A list of items that represent RelatedItems. This data type is similar to SearchRelatedItemsResponseItem except SearchAllRelatedItemsResponseItem has a caseId field."]moduleSearchAllRelatedItemsResponseRelatedItemsList=structtypenonrect=SearchAllRelatedItemsResponseItem.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(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:SearchAllRelatedItemsResponseItem.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:SearchAllRelatedItemsResponseItem.of_xml)letof_jsonj=list_of_json~kind:"SearchAllRelatedItemsResponseRelatedItemsList"~of_json:SearchAllRelatedItemsResponseItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSearchAllRelatedItemsResponse=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. This is null if there are no more results to return."];relatedItems:SearchAllRelatedItemsResponseRelatedItemsList.toption[@ocaml.doc"A list of items related to a case."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?relatedItems->fun()->{nextToken;relatedItems}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[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("relatedItems",(Option.mapx.relatedItems~f:SearchAllRelatedItemsResponseRelatedItemsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrelatedItems=(Option.map~f:SearchAllRelatedItemsResponseRelatedItemsList.of_xml)(Xml.childxml_arg0"relatedItems")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?relatedItems?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrelatedItems=field_mapjson__"relatedItems"SearchAllRelatedItemsResponseRelatedItemsList.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninmake?relatedItems?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Searches for related items across all cases within a domain. This is a global search operation that returns related items from multiple cases, unlike the case-specific SearchRelatedItems API. Use cases Following are common uses cases for this API: Find cases with similar issues across the domain. For example, search for all cases containing comments about \"product defect\" to identify patterns and existing solutions. Locate all cases associated with specific contacts or orders. For example, find all cases linked to a contactArn to understand the complete customer journey. Monitor SLA compliance across cases. For example, search for all cases with \"Active\" SLA status to prioritize remediation efforts. Important things to know This API returns case identifiers, not complete case objects. To retrieve full case details, you must make additional calls to the GetCase API for each returned case ID. This API searches across related items content, not case fields. Use the SearchCases API to search within case field values. Endpoints: See Amazon Connect endpoints and quotas."]moduleSort=structtypenonrect={fieldId:FieldId.t[@ocaml.doc"Unique identifier of a field."];sortOrder:Order.t[@ocaml.doc"A structured set of sort terms"]}letcontext_="Sort"letmake~fieldId=fun~sortOrder->fun()->{fieldId;sortOrder}letto_valuex=structure_to_value[("fieldId",(Some(FieldId.to_valuex.fieldId)));("sortOrder",(Some(Order.to_valuex.sortOrder)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsortOrder=Order.of_xml(Xml.child_exn~context:context_xml_arg0"sortOrder")inletfieldId=FieldId.of_xml(Xml.child_exn~context:context_xml_arg0"fieldId")inmake~sortOrder~fieldId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsortOrder=field_map_exnjson__"sortOrder"Order.of_jsoninletfieldId=field_map_exnjson__"fieldId"FieldId.of_jsoninmake~sortOrder~fieldId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structured set of sort terms."]moduleSearchCasesRequestSortsList=structtypenonrect=Sort.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:2)>>=(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:Sort.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:Sort.of_xml)letof_jsonj=list_of_json~kind:"SearchCasesRequestSortsList"~of_json:Sort.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSearchCasesRequestSearchTermString=structtypenonrect=stringletcontext_="SearchCasesRequestSearchTermString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(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:"SearchCasesRequestSearchTermString"jletto_json=simple_to_jsonto_valueendmoduleSearchCasesRequestMaxResultsInteger=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 SearchCasesRequestMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleSearchCasesRequestFieldsList=structtypenonrect=FieldIdentifier.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(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:FieldIdentifier.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:FieldIdentifier.of_xml)letof_jsonj=list_of_json~kind:"SearchCasesRequestFieldsList"~of_json:FieldIdentifier.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSearchCasesRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];maxResults:SearchCasesRequestMaxResultsInteger.toption[@ocaml.doc"The maximum number of cases to return. When no value is provided, 25 is the default."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."];searchTerm:SearchCasesRequestSearchTermString.toption[@ocaml.doc"A word or phrase used to perform a quick search."];filter:CaseFilter.toption[@ocaml.doc"A list of filter objects."];sorts:SearchCasesRequestSortsList.toption[@ocaml.doc"A list of sorts where each sort specifies a field and their sort order to be applied to the results."];fields:SearchCasesRequestFieldsList.toption[@ocaml.doc"The list of field identifiers to be returned as part of the response."]}letcontext_="SearchCasesRequest"letmake?maxResults=fun?nextToken->fun?searchTerm->fun?filter->fun?sorts->fun?fields->fun~domainId->fun()->{maxResults;nextToken;searchTerm;filter;sorts;fields;domainId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("maxResults",(Option.mapx.maxResults~f:SearchCasesRequestMaxResultsInteger.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("searchTerm",(Option.mapx.searchTerm~f:SearchCasesRequestSearchTermString.to_value));("filter",(Option.mapx.filter~f:CaseFilter.to_value));("sorts",(Option.mapx.sorts~f:SearchCasesRequestSortsList.to_value));("fields",(Option.mapx.fields~f:SearchCasesRequestFieldsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfields=(Option.map~f:SearchCasesRequestFieldsList.of_xml)(Xml.childxml_arg0"fields")inletsorts=(Option.map~f:SearchCasesRequestSortsList.of_xml)(Xml.childxml_arg0"sorts")inletfilter=(Option.map~f:CaseFilter.of_xml)(Xml.childxml_arg0"filter")inletsearchTerm=(Option.map~f:SearchCasesRequestSearchTermString.of_xml)(Xml.childxml_arg0"searchTerm")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:SearchCasesRequestMaxResultsInteger.of_xml)(Xml.childxml_arg0"maxResults")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake?fields?sorts?filter?searchTerm?nextToken?maxResults~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfields=field_mapjson__"fields"SearchCasesRequestFieldsList.of_jsoninletsorts=field_mapjson__"sorts"SearchCasesRequestSortsList.of_jsoninletfilter=field_mapjson__"filter"CaseFilter.of_jsoninletsearchTerm=field_mapjson__"searchTerm"SearchCasesRequestSearchTermString.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"SearchCasesRequestMaxResultsInteger.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake?fields?sorts?filter?searchTerm?nextToken?maxResults~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Searches for cases within their associated Cases domain. Search results are returned as a paginated list of abridged case documents. For customer_id you must provide the full customer profile ARN in this format: arn:aws:profile:your AWS Region:your AWS account ID:domains/profiles domain name/profiles/profile ID."]moduleTotalCount=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith(check_int64_mini~min:0L);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_valueendmoduleSearchCasesResponseItemFieldsList=structtypenonrect=FieldValue.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(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:FieldValue.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:FieldValue.of_xml)letof_jsonj=list_of_json~kind:"SearchCasesResponseItemFieldsList"~of_json:FieldValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSearchCasesResponseItem=structtypenonrect={caseId:CaseId.toption[@ocaml.doc"A unique identifier of the case."];templateId:TemplateId.toption[@ocaml.doc"A unique identifier of a template."];fields:SearchCasesResponseItemFieldsList.toption[@ocaml.doc"List of case field values."];tags:Tags.toption[@ocaml.doc"A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource."]}letmake?caseId=fun?templateId->fun?fields->fun?tags->fun()->{caseId;templateId;fields;tags}letto_valuex=structure_to_value[("caseId",(Option.mapx.caseId~f:CaseId.to_value));("templateId",(Option.mapx.templateId~f:TemplateId.to_value));("fields",(Option.mapx.fields~f:SearchCasesResponseItemFieldsList.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")inletfields=(Option.map~f:SearchCasesResponseItemFieldsList.of_xml)(Xml.childxml_arg0"fields")inlettemplateId=(Option.map~f:TemplateId.of_xml)(Xml.childxml_arg0"templateId")inletcaseId=(Option.map~f:CaseId.of_xml)(Xml.childxml_arg0"caseId")inmake?tags?fields?templateId?caseId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletfields=field_mapjson__"fields"SearchCasesResponseItemFieldsList.of_jsoninlettemplateId=field_mapjson__"templateId"TemplateId.of_jsoninletcaseId=field_mapjson__"caseId"CaseId.of_jsoninmake?tags?fields?templateId?caseId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A list of items that represent cases."]moduleSearchCasesResponseCasesList=structtypenonrect=SearchCasesResponseItem.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:SearchCasesResponseItem.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:SearchCasesResponseItem.of_xml)letof_jsonj=list_of_json~kind:"SearchCasesResponseCasesList"~of_json:SearchCasesResponseItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSearchCasesResponse=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. This is null if there are no more results to return."];cases:SearchCasesResponseCasesList.toption[@ocaml.doc"A list of case documents where each case contains the properties CaseId and Fields where each field is a complex union structure."];totalCount:TotalCount.toption[@ocaml.doc"The total number of cases that matched the search criteria."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?cases->fun?totalCount->fun()->{nextToken;cases;totalCount}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[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("cases",(Option.mapx.cases~f:SearchCasesResponseCasesList.to_value));("totalCount",(Option.mapx.totalCount~f:TotalCount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettotalCount=(Option.map~f:TotalCount.of_xml)(Xml.childxml_arg0"totalCount")inletcases=(Option.map~f:SearchCasesResponseCasesList.of_xml)(Xml.childxml_arg0"cases")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?totalCount?cases?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettotalCount=field_mapjson__"totalCount"TotalCount.of_jsoninletcases=field_mapjson__"cases"SearchCasesResponseCasesList.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninmake?totalCount?cases?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Searches for cases within their associated Cases domain. Search results are returned as a paginated list of abridged case documents. For customer_id you must provide the full customer profile ARN in this format: arn:aws:profile:your AWS Region:your AWS account ID:domains/profiles domain name/profiles/profile ID."]moduleSearchRelatedItemsRequestMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:25)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for SearchRelatedItemsRequestMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleSearchRelatedItemsRequestFiltersList=structtypenonrect=RelatedItemTypeFilter.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:RelatedItemTypeFilter.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:RelatedItemTypeFilter.of_xml)letof_jsonj=list_of_json~kind:"SearchRelatedItemsRequestFiltersList"~of_json:RelatedItemTypeFilter.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSearchRelatedItemsRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];caseId:CaseId.t[@ocaml.doc"A unique identifier of the case."];maxResults:SearchRelatedItemsRequestMaxResultsInteger.toption[@ocaml.doc"The maximum number of results to return per page."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."];filters:SearchRelatedItemsRequestFiltersList.toption[@ocaml.doc"The list of types of related items and their parameters to use for filtering."]}letcontext_="SearchRelatedItemsRequest"letmake?maxResults=fun?nextToken->fun?filters->fun~domainId->fun~caseId->fun()->{maxResults;nextToken;filters;domainId;caseId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("caseId",(Some(CaseId.to_valuex.caseId)));("maxResults",(Option.mapx.maxResults~f:SearchRelatedItemsRequestMaxResultsInteger.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("filters",(Option.mapx.filters~f:SearchRelatedItemsRequestFiltersList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfilters=(Option.map~f:SearchRelatedItemsRequestFiltersList.of_xml)(Xml.childxml_arg0"filters")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:SearchRelatedItemsRequestMaxResultsInteger.of_xml)(Xml.childxml_arg0"maxResults")inletcaseId=CaseId.of_xml(Xml.child_exn~context:context_xml_arg0"caseId")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake?filters?nextToken?maxResults~caseId~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfilters=field_mapjson__"filters"SearchRelatedItemsRequestFiltersList.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"SearchRelatedItemsRequestMaxResultsInteger.of_jsoninletcaseId=field_map_exnjson__"caseId"CaseId.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake?filters?nextToken?maxResults~caseId~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Searches for related items that are associated with a case. If no filters are provided, this returns all related items associated with a case."]moduleSearchRelatedItemsResponseItem=structtypenonrect={relatedItemId:RelatedItemId.toption[@ocaml.doc"Unique identifier of a related item."];type_:RelatedItemType.toption[@ocaml.doc"Type of a related item."];associationTime:AssociationTime.toption[@ocaml.doc"Time at which a related item was associated with a case."];content:RelatedItemContent.toption[@ocaml.doc"Represents the content of a particular type of related item."];tags:Tags.toption[@ocaml.doc"A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource."];performedBy:UserUnion.toption[@ocaml.doc"Represents the creator of the related item."]}letmake?relatedItemId=fun?type_->fun?associationTime->fun?content->fun?tags->fun?performedBy->fun()->{relatedItemId;type_;associationTime;content;tags;performedBy}letto_valuex=structure_to_value[("relatedItemId",(Option.mapx.relatedItemId~f:RelatedItemId.to_value));("type",(Option.mapx.type_~f:RelatedItemType.to_value));("associationTime",(Option.mapx.associationTime~f:AssociationTime.to_value));("content",(Option.mapx.content~f:RelatedItemContent.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("performedBy",(Option.mapx.performedBy~f:UserUnion.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letperformedBy=(Option.map~f:UserUnion.of_xml)(Xml.childxml_arg0"performedBy")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletcontent=(Option.map~f:RelatedItemContent.of_xml)(Xml.childxml_arg0"content")inletassociationTime=(Option.map~f:AssociationTime.of_xml)(Xml.childxml_arg0"associationTime")inlettype_=(Option.map~f:RelatedItemType.of_xml)(Xml.childxml_arg0"type")inletrelatedItemId=(Option.map~f:RelatedItemId.of_xml)(Xml.childxml_arg0"relatedItemId")inmake?performedBy?tags?content?associationTime?type_?relatedItemId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letperformedBy=field_mapjson__"performedBy"UserUnion.of_jsoninlettags=field_mapjson__"tags"Tags.of_jsoninletcontent=field_mapjson__"content"RelatedItemContent.of_jsoninletassociationTime=field_mapjson__"associationTime"AssociationTime.of_jsoninlettype_=field_mapjson__"type"RelatedItemType.of_jsoninletrelatedItemId=field_mapjson__"relatedItemId"RelatedItemId.of_jsoninmake?performedBy?tags?content?associationTime?type_?relatedItemId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A list of items that represent RelatedItems."]moduleSearchRelatedItemsResponseRelatedItemsList=structtypenonrect=SearchRelatedItemsResponseItem.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(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:SearchRelatedItemsResponseItem.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:SearchRelatedItemsResponseItem.of_xml)letof_jsonj=list_of_json~kind:"SearchRelatedItemsResponseRelatedItemsList"~of_json:SearchRelatedItemsResponseItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSearchRelatedItemsResponse=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. This is null if there are no more results to return."];relatedItems:SearchRelatedItemsResponseRelatedItemsList.toption[@ocaml.doc"A list of items related to a case."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?relatedItems->fun()->{nextToken;relatedItems}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[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("relatedItems",(Option.mapx.relatedItems~f:SearchRelatedItemsResponseRelatedItemsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrelatedItems=(Option.map~f:SearchRelatedItemsResponseRelatedItemsList.of_xml)(Xml.childxml_arg0"relatedItems")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?relatedItems?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrelatedItems=field_mapjson__"relatedItems"SearchRelatedItemsResponseRelatedItemsList.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninmake?relatedItems?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Searches for related items that are associated with a case. If no filters are provided, this returns all related items associated with a case."]moduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"(?!aws:)[a-zA-Z+-=._:/]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagResourceRequest=structtypenonrect={arn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN)"];tags:Tags.t[@ocaml.doc"A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource."]}letcontext_="TagResourceRequest"letmake~arn=fun~tags->fun()->{arn;tags}letto_valuex=structure_to_value[("arn",(Some(Arn.to_valuex.arn)));("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")inletarn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~tags~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"tags"Tags.of_jsoninletarn=field_map_exnjson__"arn"Arn.of_jsoninmake~tags~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds tags to a resource."]moduleUntagResourceRequest=structtypenonrect={arn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN)"];tagKeys:TagKeyList.t[@ocaml.doc"List of tag keys."]}letcontext_="UntagResourceRequest"letmake~arn=fun~tagKeys->fun()->{arn;tagKeys}letto_valuex=structure_to_value[("arn",(Some(Arn.to_valuex.arn)));("tagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletarn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~tagKeys~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"tagKeys"TagKeyList.of_jsoninletarn=field_map_exnjson__"arn"Arn.of_jsoninmake~tagKeys~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Untags a resource."]moduleUpdateCaseRequestFieldsList=structtypenonrect=FieldValue.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:220)>>=(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:FieldValue.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:FieldValue.of_xml)letof_jsonj=list_of_json~kind:"UpdateCaseRequestFieldsList"~of_json:FieldValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUpdateCaseRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];caseId:CaseId.t[@ocaml.doc"A unique identifier of the case."];fields:UpdateCaseRequestFieldsList.t[@ocaml.doc"An array of objects with fieldId (matching ListFields/DescribeField) and value union data, structured identical to CreateCase."];performedBy:UserUnion.toption}letcontext_="UpdateCaseRequest"letmake?performedBy=fun~domainId->fun~caseId->fun~fields->fun()->{performedBy;domainId;caseId;fields}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("caseId",(Some(CaseId.to_valuex.caseId)));("fields",(Some(UpdateCaseRequestFieldsList.to_valuex.fields)));("performedBy",(Option.mapx.performedBy~f:UserUnion.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letperformedBy=(Option.map~f:UserUnion.of_xml)(Xml.childxml_arg0"performedBy")inletfields=UpdateCaseRequestFieldsList.of_xml(Xml.child_exn~context:context_xml_arg0"fields")inletcaseId=CaseId.of_xml(Xml.child_exn~context:context_xml_arg0"caseId")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake?performedBy~fields~caseId~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letperformedBy=field_mapjson__"performedBy"UserUnion.of_jsoninletfields=field_map_exnjson__"fields"UpdateCaseRequestFieldsList.of_jsoninletcaseId=field_map_exnjson__"caseId"CaseId.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake?performedBy~fields~caseId~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"If you provide a value for PerformedBy.UserArn you must also have connect:DescribeUser permission on the User ARN resource that you provide Updates the values of fields on a case. Fields to be updated are received as an array of id/value pairs identical to the CreateCase input . If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body."]moduleUpdateCaseResponse=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"If you provide a value for PerformedBy.UserArn you must also have connect:DescribeUser permission on the User ARN resource that you provide Updates the values of fields on a case. Fields to be updated are received as an array of id/value pairs identical to the CreateCase input . If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body."]moduleUpdateCaseRuleRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"Unique identifier of a Cases domain."];caseRuleId:CaseRuleId.t[@ocaml.doc"Unique identifier of a case rule."];name:CaseRuleName.toption[@ocaml.doc"Name of the case rule."];description:CaseRuleDescription.toption[@ocaml.doc"Description of a case rule."];rule:CaseRuleDetails.toption[@ocaml.doc"Represents what rule type should take place, under what conditions."]}letcontext_="UpdateCaseRuleRequest"letmake?name=fun?description->fun?rule->fun~domainId->fun~caseRuleId->fun()->{name;description;rule;domainId;caseRuleId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("caseRuleId",(Some(CaseRuleId.to_valuex.caseRuleId)));("name",(Option.mapx.name~f:CaseRuleName.to_value));("description",(Option.mapx.description~f:CaseRuleDescription.to_value));("rule",(Option.mapx.rule~f:CaseRuleDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrule=(Option.map~f:CaseRuleDetails.of_xml)(Xml.childxml_arg0"rule")inletdescription=(Option.map~f:CaseRuleDescription.of_xml)(Xml.childxml_arg0"description")inletname=(Option.map~f:CaseRuleName.of_xml)(Xml.childxml_arg0"name")inletcaseRuleId=CaseRuleId.of_xml(Xml.child_exn~context:context_xml_arg0"caseRuleId")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake?rule?description?name~caseRuleId~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrule=field_mapjson__"rule"CaseRuleDetails.of_jsoninletdescription=field_mapjson__"description"CaseRuleDescription.of_jsoninletname=field_mapjson__"name"CaseRuleName.of_jsoninletcaseRuleId=field_map_exnjson__"caseRuleId"CaseRuleId.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake?rule?description?name~caseRuleId~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a case rule. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]moduleUpdateCaseRuleResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.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)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))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"Updates a case rule. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template."]moduleUpdateFieldRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];fieldId:FieldId.t[@ocaml.doc"The unique identifier of a field."];name:FieldName.toption[@ocaml.doc"The name of the field."];description:FieldDescription.toption[@ocaml.doc"The description of a field."];attributes:FieldAttributes.toption[@ocaml.doc"Union of field attributes."]}letcontext_="UpdateFieldRequest"letmake?name=fun?description->fun?attributes->fun~domainId->fun~fieldId->fun()->{name;description;attributes;domainId;fieldId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("fieldId",(Some(FieldId.to_valuex.fieldId)));("name",(Option.mapx.name~f:FieldName.to_value));("description",(Option.mapx.description~f:FieldDescription.to_value));("attributes",(Option.mapx.attributes~f:FieldAttributes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributes=(Option.map~f:FieldAttributes.of_xml)(Xml.childxml_arg0"attributes")inletdescription=(Option.map~f:FieldDescription.of_xml)(Xml.childxml_arg0"description")inletname=(Option.map~f:FieldName.of_xml)(Xml.childxml_arg0"name")inletfieldId=FieldId.of_xml(Xml.child_exn~context:context_xml_arg0"fieldId")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake?attributes?description?name~fieldId~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_mapjson__"attributes"FieldAttributes.of_jsoninletdescription=field_mapjson__"description"FieldDescription.of_jsoninletname=field_mapjson__"name"FieldName.of_jsoninletfieldId=field_map_exnjson__"fieldId"FieldId.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake?attributes?description?name~fieldId~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the properties of an existing field."]moduleUpdateFieldResponse=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"Updates the properties of an existing field."]moduleUpdateLayoutRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];layoutId:LayoutId.t[@ocaml.doc"The unique identifier of the layout."];name:LayoutName.toption[@ocaml.doc"The name of the layout. It must be unique per domain."];content:LayoutContent.toption[@ocaml.doc"Information about which fields will be present in the layout, the order of the fields."]}letcontext_="UpdateLayoutRequest"letmake?name=fun?content->fun~domainId->fun~layoutId->fun()->{name;content;domainId;layoutId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("layoutId",(Some(LayoutId.to_valuex.layoutId)));("name",(Option.mapx.name~f:LayoutName.to_value));("content",(Option.mapx.content~f:LayoutContent.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontent=(Option.map~f:LayoutContent.of_xml)(Xml.childxml_arg0"content")inletname=(Option.map~f:LayoutName.of_xml)(Xml.childxml_arg0"name")inletlayoutId=LayoutId.of_xml(Xml.child_exn~context:context_xml_arg0"layoutId")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake?content?name~layoutId~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontent=field_mapjson__"content"LayoutContent.of_jsoninletname=field_mapjson__"name"LayoutName.of_jsoninletlayoutId=field_map_exnjson__"layoutId"LayoutId.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake?content?name~layoutId~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the attributes of an existing layout. If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body. A ValidationException is returned when you add non-existent fieldIds to a layout. Title and Status fields cannot be part of layouts because they are not configurable."]moduleUpdateLayoutResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.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)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))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"Updates the attributes of an existing layout. If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body. A ValidationException is returned when you add non-existent fieldIds to a layout. Title and Status fields cannot be part of layouts because they are not configurable."]moduleUpdateRelatedItemRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];caseId:CaseId.t[@ocaml.doc"A unique identifier of the case."];relatedItemId:RelatedItemId.t[@ocaml.doc"Unique identifier of a related item."];content:RelatedItemUpdateContent.t[@ocaml.doc"The content of a related item to be updated."];performedBy:UserUnion.toption[@ocaml.doc"Represents the user who performed the update of the related item."]}letcontext_="UpdateRelatedItemRequest"letmake?performedBy=fun~domainId->fun~caseId->fun~relatedItemId->fun~content->fun()->{performedBy;domainId;caseId;relatedItemId;content}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("caseId",(Some(CaseId.to_valuex.caseId)));("relatedItemId",(Some(RelatedItemId.to_valuex.relatedItemId)));("content",(Some(RelatedItemUpdateContent.to_valuex.content)));("performedBy",(Option.mapx.performedBy~f:UserUnion.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letperformedBy=(Option.map~f:UserUnion.of_xml)(Xml.childxml_arg0"performedBy")inletcontent=RelatedItemUpdateContent.of_xml(Xml.child_exn~context:context_xml_arg0"content")inletrelatedItemId=RelatedItemId.of_xml(Xml.child_exn~context:context_xml_arg0"relatedItemId")inletcaseId=CaseId.of_xml(Xml.child_exn~context:context_xml_arg0"caseId")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake?performedBy~content~relatedItemId~caseId~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letperformedBy=field_mapjson__"performedBy"UserUnion.of_jsoninletcontent=field_map_exnjson__"content"RelatedItemUpdateContent.of_jsoninletrelatedItemId=field_map_exnjson__"relatedItemId"RelatedItemId.of_jsoninletcaseId=field_map_exnjson__"caseId"CaseId.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake?performedBy~content~relatedItemId~caseId~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the content of a related item associated with a case. The following related item types are supported: Comment - Update the text content of an existing comment Custom - Update the fields of a custom related item. You can add, modify, and remove fields from a custom related item. There's a quota for the number of fields allowed in a Custom type related item. See Amazon Connect Cases quotas. Important things to know When updating a Custom related item, all existing and new fields, and their associated values should be included in the request. Fields not included as part of this request will be removed. If you provide a value for performedBy.userArn you must also have DescribeUser permission on the ARN of the user that you provide. System case fields cannot be used in a custom related item. Endpoints: See Amazon Connect endpoints and quotas."]moduleUpdateRelatedItemResponse=structtypenonrect={relatedItemId:RelatedItemId.toption[@ocaml.doc"The unique identifier of the updated related item."];relatedItemArn:RelatedItemArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the updated related item."];type_:RelatedItemType.toption[@ocaml.doc"Type of the updated related item."];content:RelatedItemContent.toption[@ocaml.doc"Represents the content of the updated related item."];associationTime:AssociationTime.toption[@ocaml.doc"Time at which the related item was associated with the case."];tags:Tags.toption[@ocaml.doc"A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource."];lastUpdatedUser:UserUnion.toption[@ocaml.doc"Represents the last user that updated the related item."];createdBy:UserUnion.toption[@ocaml.doc"Represents the creator of the related item."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?relatedItemId=fun?relatedItemArn->fun?type_->fun?content->fun?associationTime->fun?tags->fun?lastUpdatedUser->fun?createdBy->fun()->{relatedItemId;relatedItemArn;type_;content;associationTime;tags;lastUpdatedUser;createdBy}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)|"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)|"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))]|`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[("relatedItemId",(Option.mapx.relatedItemId~f:RelatedItemId.to_value));("relatedItemArn",(Option.mapx.relatedItemArn~f:RelatedItemArn.to_value));("type",(Option.mapx.type_~f:RelatedItemType.to_value));("content",(Option.mapx.content~f:RelatedItemContent.to_value));("associationTime",(Option.mapx.associationTime~f:AssociationTime.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("lastUpdatedUser",(Option.mapx.lastUpdatedUser~f:UserUnion.to_value));("createdBy",(Option.mapx.createdBy~f:UserUnion.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreatedBy=(Option.map~f:UserUnion.of_xml)(Xml.childxml_arg0"createdBy")inletlastUpdatedUser=(Option.map~f:UserUnion.of_xml)(Xml.childxml_arg0"lastUpdatedUser")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletassociationTime=(Option.map~f:AssociationTime.of_xml)(Xml.childxml_arg0"associationTime")inletcontent=(Option.map~f:RelatedItemContent.of_xml)(Xml.childxml_arg0"content")inlettype_=(Option.map~f:RelatedItemType.of_xml)(Xml.childxml_arg0"type")inletrelatedItemArn=(Option.map~f:RelatedItemArn.of_xml)(Xml.childxml_arg0"relatedItemArn")inletrelatedItemId=(Option.map~f:RelatedItemId.of_xml)(Xml.childxml_arg0"relatedItemId")inmake?createdBy?lastUpdatedUser?tags?associationTime?content?type_?relatedItemArn?relatedItemId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreatedBy=field_mapjson__"createdBy"UserUnion.of_jsoninletlastUpdatedUser=field_mapjson__"lastUpdatedUser"UserUnion.of_jsoninlettags=field_mapjson__"tags"Tags.of_jsoninletassociationTime=field_mapjson__"associationTime"AssociationTime.of_jsoninletcontent=field_mapjson__"content"RelatedItemContent.of_jsoninlettype_=field_mapjson__"type"RelatedItemType.of_jsoninletrelatedItemArn=field_mapjson__"relatedItemArn"RelatedItemArn.of_jsoninletrelatedItemId=field_mapjson__"relatedItemId"RelatedItemId.of_jsoninmake?createdBy?lastUpdatedUser?tags?associationTime?content?type_?relatedItemArn?relatedItemId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the content of a related item associated with a case. The following related item types are supported: Comment - Update the text content of an existing comment Custom - Update the fields of a custom related item. You can add, modify, and remove fields from a custom related item. There's a quota for the number of fields allowed in a Custom type related item. See Amazon Connect Cases quotas. Important things to know When updating a Custom related item, all existing and new fields, and their associated values should be included in the request. Fields not included as part of this request will be removed. If you provide a value for performedBy.userArn you must also have DescribeUser permission on the ARN of the user that you provide. System case fields cannot be used in a custom related item. Endpoints: See Amazon Connect endpoints and quotas."]moduleUpdateTemplateRequest=structtypenonrect={domainId:DomainId.t[@ocaml.doc"The unique identifier of the Cases domain."];templateId:TemplateId.t[@ocaml.doc"A unique identifier for the template."];name:TemplateName.toption[@ocaml.doc"The name of the template. It must be unique per domain."];description:TemplateDescription.toption[@ocaml.doc"A brief description of the template."];layoutConfiguration:LayoutConfiguration.toption[@ocaml.doc"Configuration of layouts associated to the template."];requiredFields:RequiredFieldList.toption[@ocaml.doc"A list of fields that must contain a value for a case to be successfully created with this template."];status:TemplateStatus.toption[@ocaml.doc"The status of the template."];rules:TemplateCaseRuleList.toption[@ocaml.doc"A list of case rules (also known as case field conditions) on a template."];tagPropagationConfigurations:TagPropagationConfigurationList.toption[@ocaml.doc"Defines tag propagation configuration for resources created within a domain. Tags specified here will be automatically applied to resources being created for the specified resource type."]}letcontext_="UpdateTemplateRequest"letmake?name=fun?description->fun?layoutConfiguration->fun?requiredFields->fun?status->fun?rules->fun?tagPropagationConfigurations->fun~domainId->fun~templateId->fun()->{name;description;layoutConfiguration;requiredFields;status;rules;tagPropagationConfigurations;domainId;templateId}letto_valuex=structure_to_value[("domainId",(Some(DomainId.to_valuex.domainId)));("templateId",(Some(TemplateId.to_valuex.templateId)));("name",(Option.mapx.name~f:TemplateName.to_value));("description",(Option.mapx.description~f:TemplateDescription.to_value));("layoutConfiguration",(Option.mapx.layoutConfiguration~f:LayoutConfiguration.to_value));("requiredFields",(Option.mapx.requiredFields~f:RequiredFieldList.to_value));("status",(Option.mapx.status~f:TemplateStatus.to_value));("rules",(Option.mapx.rules~f:TemplateCaseRuleList.to_value));("tagPropagationConfigurations",(Option.mapx.tagPropagationConfigurations~f:TagPropagationConfigurationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagPropagationConfigurations=(Option.map~f:TagPropagationConfigurationList.of_xml)(Xml.childxml_arg0"tagPropagationConfigurations")inletrules=(Option.map~f:TemplateCaseRuleList.of_xml)(Xml.childxml_arg0"rules")inletstatus=(Option.map~f:TemplateStatus.of_xml)(Xml.childxml_arg0"status")inletrequiredFields=(Option.map~f:RequiredFieldList.of_xml)(Xml.childxml_arg0"requiredFields")inletlayoutConfiguration=(Option.map~f:LayoutConfiguration.of_xml)(Xml.childxml_arg0"layoutConfiguration")inletdescription=(Option.map~f:TemplateDescription.of_xml)(Xml.childxml_arg0"description")inletname=(Option.map~f:TemplateName.of_xml)(Xml.childxml_arg0"name")inlettemplateId=TemplateId.of_xml(Xml.child_exn~context:context_xml_arg0"templateId")inletdomainId=DomainId.of_xml(Xml.child_exn~context:context_xml_arg0"domainId")inmake?tagPropagationConfigurations?rules?status?requiredFields?layoutConfiguration?description?name~templateId~domainId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagPropagationConfigurations=field_mapjson__"tagPropagationConfigurations"TagPropagationConfigurationList.of_jsoninletrules=field_mapjson__"rules"TemplateCaseRuleList.of_jsoninletstatus=field_mapjson__"status"TemplateStatus.of_jsoninletrequiredFields=field_mapjson__"requiredFields"RequiredFieldList.of_jsoninletlayoutConfiguration=field_mapjson__"layoutConfiguration"LayoutConfiguration.of_jsoninletdescription=field_mapjson__"description"TemplateDescription.of_jsoninletname=field_mapjson__"name"TemplateName.of_jsoninlettemplateId=field_map_exnjson__"templateId"TemplateId.of_jsoninletdomainId=field_map_exnjson__"domainId"DomainId.of_jsoninmake?tagPropagationConfigurations?rules?status?requiredFields?layoutConfiguration?description?name~templateId~domainId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the attributes of an existing template. The template attributes that can be modified include name, description, layoutConfiguration, requiredFields, and status. At least one of these attributes must not be null. If a null value is provided for a given attribute, that attribute is ignored and its current value is preserved. Other template APIs are: CreateTemplate DeleteTemplate GetTemplate ListTemplates"]moduleUpdateTemplateResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.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)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))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"Updates the attributes of an existing template. The template attributes that can be modified include name, description, layoutConfiguration, requiredFields, and status. At least one of these attributes must not be null. If a null value is provided for a given attribute, that attribute is ignored and its current value is preserved. Other template APIs are: CreateTemplate DeleteTemplate GetTemplate ListTemplates"]