1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633(* 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.chimeletapiVersion="2018-05-01"letendpointPrefix="chime"letserviceFullName="Amazon Chime"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letsimple_to_jsonto_valuex=Botodata.Json.value_to_json_scalar(to_valuex)letcomposed_to_jsonto_valuex=Botodata.Json.value_to_json(to_valuex)letto_queryto_valuex=Client.Query.of_value(to_valuex)letstructure_to_value_auxst~f=letfilter=function|(k,Somev)->Some(k,v)|_->Noneinletpairkv=(k,v)inletdefer_value(k,dv)=pairkdvin((List.filter_mapst~f:filter)|>(List.map~f:defer_value))|>(funx->`Structure(fx))letstructure_to_value=structure_to_value_aux~f:Fn.idletstructure_to_wrapped_value~wrapper~response=structure_to_value_aux~f:(funx->[(wrapper,(`Structurex));(response,(`Structure[]))])moduleIso8601Timestamp=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_valueendmodulePhoneNumberAssociationName=structtypenonrect=|AccountId|UserId|VoiceConnectorId|VoiceConnectorGroupId|SipRuleId|Non_static_idofstringletmakei=iletto_string=function|AccountId->"AccountId"|UserId->"UserId"|VoiceConnectorId->"VoiceConnectorId"|VoiceConnectorGroupId->"VoiceConnectorGroupId"|SipRuleId->"SipRuleId"|Non_static_ids->sletof_string=function|"AccountId"->AccountId|"UserId"->UserId|"VoiceConnectorId"->VoiceConnectorId|"VoiceConnectorGroupId"->VoiceConnectorGroupId|"SipRuleId"->SipRuleId|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 PhoneNumberAssociationName"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PhoneNumberAssociationName"j)letto_json=simple_to_jsonto_valueendmoduleString_=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_valueendmoduleE164PhoneNumber=structtypenonrect=stringletcontext_="E164PhoneNumber"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^\\+?[1-9]\\d{1,14}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"E164PhoneNumber"jletto_json=simple_to_jsonto_valueendmoduleOrderedPhoneNumberStatus=structtypenonrect=|Processing|Acquired|Failed|Non_static_idofstringletmakei=iletto_string=function|Processing->"Processing"|Acquired->"Acquired"|Failed->"Failed"|Non_static_ids->sletof_string=function|"Processing"->Processing|"Acquired"->Acquired|"Failed"->Failed|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration OrderedPhoneNumberStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"OrderedPhoneNumberStatus"j)letto_json=simple_to_jsonto_valueendmoduleNonEmptyString=structtypenonrect=stringletcontext_="NonEmptyString"letmakei=letopenResultinok_or_failwith(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:"NonEmptyString"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_valueendmoduleSensitiveString=structtypenonrect=stringletcontext_="SensitiveString"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:"SensitiveString"jletto_json=simple_to_jsonto_valueendmodulePhoneNumberType=structtypenonrect=|Local|TollFree|Non_static_idofstringletmakei=iletto_string=function|Local->"Local"|TollFree->"TollFree"|Non_static_ids->sletof_string=function|"Local"->Local|"TollFree"->TollFree|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 PhoneNumberType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PhoneNumberType"j)letto_json=simple_to_jsonto_valueendmoduleMemberType=structtypenonrect=|User|Bot|Webhook|Non_static_idofstringletmakei=iletto_string=function|User->"User"|Bot->"Bot"|Webhook->"Webhook"|Non_static_ids->sletof_string=function|"User"->User|"Bot"->Bot|"Webhook"->Webhook|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 MemberType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MemberType"j)letto_json=simple_to_jsonto_valueendmodulePhoneNumberAssociation=structtypenonrect={value:String_.toption[@ocaml.doc"Contains the ID for the entity specified in Name."];name:PhoneNumberAssociationName.toption[@ocaml.doc"Defines the association with an Amazon Chime account ID, user ID, Amazon Chime Voice Connector ID, or Amazon Chime Voice Connector group ID."];associatedTimestamp:Iso8601Timestamp.toption[@ocaml.doc"The timestamp of the phone number association, in ISO 8601 format."]}letmake?value=fun?name->fun?associatedTimestamp->fun()->{value;name;associatedTimestamp}letto_valuex=structure_to_value[("Value",(Option.mapx.value~f:String_.to_value));("Name",(Option.mapx.name~f:PhoneNumberAssociationName.to_value));("AssociatedTimestamp",(Option.mapx.associatedTimestamp~f:Iso8601Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassociatedTimestamp=(Option.map~f:Iso8601Timestamp.of_xml)(Xml.childxml_arg0"AssociatedTimestamp")inletname=(Option.map~f:PhoneNumberAssociationName.of_xml)(Xml.childxml_arg0"Name")inletvalue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Value")inmake?associatedTimestamp?name?value()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassociatedTimestamp=field_mapjson__"AssociatedTimestamp"Iso8601Timestamp.of_jsoninletname=field_mapjson__"Name"PhoneNumberAssociationName.of_jsoninletvalue=field_mapjson__"Value"String_.of_jsoninmake?associatedTimestamp?name?value()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The phone number associations, such as Amazon Chime account ID, Amazon Chime user ID, Amazon Chime Voice Connector ID, or Amazon Chime Voice Connector group ID."]moduleNullableBoolean=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_valueendmoduleOrderedPhoneNumber=structtypenonrect={e164PhoneNumber:E164PhoneNumber.toption[@ocaml.doc"The phone number, in E.164 format."];status:OrderedPhoneNumberStatus.toption[@ocaml.doc"The phone number status."]}letmake?e164PhoneNumber=fun?status->fun()->{e164PhoneNumber;status}letto_valuex=structure_to_value[("E164PhoneNumber",(Option.mapx.e164PhoneNumber~f:E164PhoneNumber.to_value));("Status",(Option.mapx.status~f:OrderedPhoneNumberStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:OrderedPhoneNumberStatus.of_xml)(Xml.childxml_arg0"Status")inlete164PhoneNumber=(Option.map~f:E164PhoneNumber.of_xml)(Xml.childxml_arg0"E164PhoneNumber")inmake?status?e164PhoneNumber()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"OrderedPhoneNumberStatus.of_jsoninlete164PhoneNumber=field_mapjson__"E164PhoneNumber"E164PhoneNumber.of_jsoninmake?status?e164PhoneNumber()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A phone number for which an order has been placed."]moduleLicense=structtypenonrect=|Basic|Plus|Pro|ProTrial|Non_static_idofstringletmakei=iletto_string=function|Basic->"Basic"|Plus->"Plus"|Pro->"Pro"|ProTrial->"ProTrial"|Non_static_ids->sletof_string=function|"Basic"->Basic|"Plus"->Plus|"Pro"->Pro|"ProTrial"->ProTrial|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 License"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"License"j)letto_json=simple_to_jsonto_valueendmoduleSigninDelegateGroup=structtypenonrect={groupName:NonEmptyString.toption[@ocaml.doc"The group name."]}letmake?groupName=fun()->{groupName}letto_valuex=structure_to_value[("GroupName",(Option.mapx.groupName~f:NonEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgroupName=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"GroupName")inmake?groupName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgroupName=field_mapjson__"GroupName"NonEmptyString.of_jsoninmake?groupName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An Active Directory (AD) group whose members are granted permission to act as delegates."]moduleRetentionDays=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:5475)>>=(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 RetentionDays"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleAlexaForBusinessMetadata=structtypenonrect={isAlexaForBusinessEnabled:Boolean.toption[@ocaml.doc"Starts or stops Alexa for Business."];alexaForBusinessRoomArn:SensitiveString.toption[@ocaml.doc"The ARN of the room resource."]}letmake?isAlexaForBusinessEnabled=fun?alexaForBusinessRoomArn->fun()->{isAlexaForBusinessEnabled;alexaForBusinessRoomArn}letto_valuex=structure_to_value[("IsAlexaForBusinessEnabled",(Option.mapx.isAlexaForBusinessEnabled~f:Boolean.to_value));("AlexaForBusinessRoomArn",(Option.mapx.alexaForBusinessRoomArn~f:SensitiveString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letalexaForBusinessRoomArn=(Option.map~f:SensitiveString.of_xml)(Xml.childxml_arg0"AlexaForBusinessRoomArn")inletisAlexaForBusinessEnabled=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"IsAlexaForBusinessEnabled")inmake?alexaForBusinessRoomArn?isAlexaForBusinessEnabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letalexaForBusinessRoomArn=field_mapjson__"AlexaForBusinessRoomArn"SensitiveString.of_jsoninletisAlexaForBusinessEnabled=field_mapjson__"IsAlexaForBusinessEnabled"Boolean.of_jsoninmake?alexaForBusinessRoomArn?isAlexaForBusinessEnabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The Alexa for Business metadata associated with an Amazon Chime user, used to integrate Alexa for Business with a device."]moduleEmailAddress=structtypenonrect=stringletcontext_="EmailAddress"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:".+@.+\\..+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EmailAddress"jletto_json=simple_to_jsonto_valueendmoduleInviteStatus=structtypenonrect=|Pending|Accepted|Failed|Non_static_idofstringletmakei=iletto_string=function|Pending->"Pending"|Accepted->"Accepted"|Failed->"Failed"|Non_static_ids->sletof_string=function|"Pending"->Pending|"Accepted"->Accepted|"Failed"->Failed|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration InviteStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"InviteStatus"j)letto_json=simple_to_jsonto_valueendmoduleRegistrationStatus=structtypenonrect=|Unregistered|Registered|Suspended|Non_static_idofstringletmakei=iletto_string=function|Unregistered->"Unregistered"|Registered->"Registered"|Suspended->"Suspended"|Non_static_ids->sletof_string=function|"Unregistered"->Unregistered|"Registered"->Registered|"Suspended"->Suspended|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 RegistrationStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RegistrationStatus"j)letto_json=simple_to_jsonto_valueendmoduleUserType=structtypenonrect=|PrivateUser|SharedDevice|Non_static_idofstringletmakei=iletto_string=function|PrivateUser->"PrivateUser"|SharedDevice->"SharedDevice"|Non_static_ids->sletof_string=function|"PrivateUser"->PrivateUser|"SharedDevice"->SharedDevice|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 UserType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"UserType"j)letto_json=simple_to_jsonto_valueendmoduleAlpha2CountryCode=structtypenonrect=stringletcontext_="Alpha2CountryCode"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[A-Z]{2}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Alpha2CountryCode"jletto_json=simple_to_jsonto_valueendmodulePhoneNumberTypeList=structtypenonrect=PhoneNumberType.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PhoneNumberType.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:PhoneNumberType.of_xml)letof_jsonj=list_of_json~kind:"PhoneNumberTypeList"~of_json:PhoneNumberType.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMember=structtypenonrect={memberId:NonEmptyString.toption[@ocaml.doc"The member ID (user ID or bot ID)."];memberType:MemberType.toption[@ocaml.doc"The member type."];email:SensitiveString.toption[@ocaml.doc"The member email address."];fullName:SensitiveString.toption[@ocaml.doc"The member name."];accountId:NonEmptyString.toption[@ocaml.doc"The Amazon Chime account ID."]}letmake?memberId=fun?memberType->fun?email->fun?fullName->fun?accountId->fun()->{memberId;memberType;email;fullName;accountId}letto_valuex=structure_to_value[("MemberId",(Option.mapx.memberId~f:NonEmptyString.to_value));("MemberType",(Option.mapx.memberType~f:MemberType.to_value));("Email",(Option.mapx.email~f:SensitiveString.to_value));("FullName",(Option.mapx.fullName~f:SensitiveString.to_value));("AccountId",(Option.mapx.accountId~f:NonEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"AccountId")inletfullName=(Option.map~f:SensitiveString.of_xml)(Xml.childxml_arg0"FullName")inletemail=(Option.map~f:SensitiveString.of_xml)(Xml.childxml_arg0"Email")inletmemberType=(Option.map~f:MemberType.of_xml)(Xml.childxml_arg0"MemberType")inletmemberId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"MemberId")inmake?accountId?fullName?email?memberType?memberId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountId=field_mapjson__"AccountId"NonEmptyString.of_jsoninletfullName=field_mapjson__"FullName"SensitiveString.of_jsoninletemail=field_mapjson__"Email"SensitiveString.of_jsoninletmemberType=field_mapjson__"MemberType"MemberType.of_jsoninletmemberId=field_mapjson__"MemberId"NonEmptyString.of_jsoninmake?accountId?fullName?email?memberType?memberId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The member details, such as email address, name, member ID, and member type."]moduleRoomMembershipRole=structtypenonrect=|Administrator|Member|Non_static_idofstringletmakei=iletto_string=function|Administrator->"Administrator"|Member->"Member"|Non_static_ids->sletof_string=function|"Administrator"->Administrator|"Member"->Member|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 RoomMembershipRole"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RoomMembershipRole"j)letto_json=simple_to_jsonto_valueendmoduleCallingName=structtypenonrect=stringletcontext_="CallingName"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^$|^[a-zA-Z0-9 ]{2,15}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CallingName"jletto_json=simple_to_jsonto_valueendmoduleCallingNameStatus=structtypenonrect=|Unassigned|UpdateInProgress|UpdateSucceeded|UpdateFailed|Non_static_idofstringletmakei=iletto_string=function|Unassigned->"Unassigned"|UpdateInProgress->"UpdateInProgress"|UpdateSucceeded->"UpdateSucceeded"|UpdateFailed->"UpdateFailed"|Non_static_ids->sletof_string=function|"Unassigned"->Unassigned|"UpdateInProgress"->UpdateInProgress|"UpdateSucceeded"->UpdateSucceeded|"UpdateFailed"->UpdateFailed|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 CallingNameStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CallingNameStatus"j)letto_json=simple_to_jsonto_valueendmodulePhoneNumberAssociationList=structtypenonrect=PhoneNumberAssociation.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PhoneNumberAssociation.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:PhoneNumberAssociation.of_xml)letof_jsonj=list_of_json~kind:"PhoneNumberAssociationList"~of_json:PhoneNumberAssociation.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePhoneNumberCapabilities=structtypenonrect={inboundCall:NullableBoolean.toption[@ocaml.doc"Allows or denies inbound calling for the specified phone number."];outboundCall:NullableBoolean.toption[@ocaml.doc"Allows or denies outbound calling for the specified phone number."];inboundSMS:NullableBoolean.toption[@ocaml.doc"Allows or denies inbound SMS messaging for the specified phone number."];outboundSMS:NullableBoolean.toption[@ocaml.doc"Allows or denies outbound SMS messaging for the specified phone number."];inboundMMS:NullableBoolean.toption[@ocaml.doc"Allows or denies inbound MMS messaging for the specified phone number."];outboundMMS:NullableBoolean.toption[@ocaml.doc"Allows or denies outbound MMS messaging for the specified phone number."]}letmake?inboundCall=fun?outboundCall->fun?inboundSMS->fun?outboundSMS->fun?inboundMMS->fun?outboundMMS->fun()->{inboundCall;outboundCall;inboundSMS;outboundSMS;inboundMMS;outboundMMS}letto_valuex=structure_to_value[("InboundCall",(Option.mapx.inboundCall~f:NullableBoolean.to_value));("OutboundCall",(Option.mapx.outboundCall~f:NullableBoolean.to_value));("InboundSMS",(Option.mapx.inboundSMS~f:NullableBoolean.to_value));("OutboundSMS",(Option.mapx.outboundSMS~f:NullableBoolean.to_value));("InboundMMS",(Option.mapx.inboundMMS~f:NullableBoolean.to_value));("OutboundMMS",(Option.mapx.outboundMMS~f:NullableBoolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoutboundMMS=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"OutboundMMS")inletinboundMMS=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"InboundMMS")inletoutboundSMS=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"OutboundSMS")inletinboundSMS=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"InboundSMS")inletoutboundCall=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"OutboundCall")inletinboundCall=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"InboundCall")inmake?outboundMMS?inboundMMS?outboundSMS?inboundSMS?outboundCall?inboundCall()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoutboundMMS=field_mapjson__"OutboundMMS"NullableBoolean.of_jsoninletinboundMMS=field_mapjson__"InboundMMS"NullableBoolean.of_jsoninletoutboundSMS=field_mapjson__"OutboundSMS"NullableBoolean.of_jsoninletinboundSMS=field_mapjson__"InboundSMS"NullableBoolean.of_jsoninletoutboundCall=field_mapjson__"OutboundCall"NullableBoolean.of_jsoninletinboundCall=field_mapjson__"InboundCall"NullableBoolean.of_jsoninmake?outboundMMS?inboundMMS?outboundSMS?inboundSMS?outboundCall?inboundCall()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The phone number capabilities for Amazon Chime Business Calling phone numbers, such as enabled inbound and outbound calling and text messaging."]modulePhoneNumberProductType=structtypenonrect=|BusinessCalling|VoiceConnector|SipMediaApplicationDialIn|Non_static_idofstringletmakei=iletto_string=function|BusinessCalling->"BusinessCalling"|VoiceConnector->"VoiceConnector"|SipMediaApplicationDialIn->"SipMediaApplicationDialIn"|Non_static_ids->sletof_string=function|"BusinessCalling"->BusinessCalling|"VoiceConnector"->VoiceConnector|"SipMediaApplicationDialIn"->SipMediaApplicationDialIn|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 PhoneNumberProductType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PhoneNumberProductType"j)letto_json=simple_to_jsonto_valueendmodulePhoneNumberStatus=structtypenonrect=|AcquireInProgress|AcquireFailed|Unassigned|Assigned|ReleaseInProgress|DeleteInProgress|ReleaseFailed|DeleteFailed|Non_static_idofstringletmakei=iletto_string=function|AcquireInProgress->"AcquireInProgress"|AcquireFailed->"AcquireFailed"|Unassigned->"Unassigned"|Assigned->"Assigned"|ReleaseInProgress->"ReleaseInProgress"|DeleteInProgress->"DeleteInProgress"|ReleaseFailed->"ReleaseFailed"|DeleteFailed->"DeleteFailed"|Non_static_ids->sletof_string=function|"AcquireInProgress"->AcquireInProgress|"AcquireFailed"->AcquireFailed|"Unassigned"->Unassigned|"Assigned"->Assigned|"ReleaseInProgress"->ReleaseInProgress|"DeleteInProgress"->DeleteInProgress|"ReleaseFailed"->ReleaseFailed|"DeleteFailed"->DeleteFailed|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 PhoneNumberStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PhoneNumberStatus"j)letto_json=simple_to_jsonto_valueendmoduleGuidString=structtypenonrect=stringletcontext_="GuidString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-fA-F0-9]{8}(?:-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"GuidString"jletto_json=simple_to_jsonto_valueendmoduleOrderedPhoneNumberList=structtypenonrect=OrderedPhoneNumber.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:OrderedPhoneNumber.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:OrderedPhoneNumber.of_xml)letof_jsonj=list_of_json~kind:"OrderedPhoneNumberList"~of_json:OrderedPhoneNumber.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePhoneNumberOrderStatus=structtypenonrect=|Processing|Successful|Failed|Partial|Non_static_idofstringletmakei=iletto_string=function|Processing->"Processing"|Successful->"Successful"|Failed->"Failed"|Partial->"Partial"|Non_static_ids->sletof_string=function|"Processing"->Processing|"Successful"->Successful|"Failed"->Failed|"Partial"->Partial|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 PhoneNumberOrderStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PhoneNumberOrderStatus"j)letto_json=simple_to_jsonto_valueendmoduleBotType=structtypenonrect=|ChatBot|Non_static_idofstringletmakei=iletto_string=function|ChatBot->"ChatBot"|Non_static_ids->sletof_string=function|"ChatBot"->ChatBot|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 BotType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"BotType"j)letto_json=simple_to_jsonto_valueendmoduleAccountStatus=structtypenonrect=|Suspended|Active|Non_static_idofstringletmakei=iletto_string=function|Suspended->"Suspended"|Active->"Active"|Non_static_ids->sletof_string=function|"Suspended"->Suspended|"Active"->Active|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 AccountStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AccountStatus"j)letto_json=simple_to_jsonto_valueendmoduleAccountType=structtypenonrect=|Team|EnterpriseDirectory|EnterpriseLWA|EnterpriseOIDC|Non_static_idofstringletmakei=iletto_string=function|Team->"Team"|EnterpriseDirectory->"EnterpriseDirectory"|EnterpriseLWA->"EnterpriseLWA"|EnterpriseOIDC->"EnterpriseOIDC"|Non_static_ids->sletof_string=function|"Team"->Team|"EnterpriseDirectory"->EnterpriseDirectory|"EnterpriseLWA"->EnterpriseLWA|"EnterpriseOIDC"->EnterpriseOIDC|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 AccountType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AccountType"j)letto_json=simple_to_jsonto_valueendmoduleLicenseList=structtypenonrect=License.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:License.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:License.of_xml)letof_jsonj=list_of_json~kind:"LicenseList"~of_json:License.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSigninDelegateGroupList=structtypenonrect=SigninDelegateGroup.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SigninDelegateGroup.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:SigninDelegateGroup.of_xml)letof_jsonj=list_of_json~kind:"SigninDelegateGroupList"~of_json:SigninDelegateGroup.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEmailStatus=structtypenonrect=|NotSent|Sent|Failed|Non_static_idofstringletmakei=iletto_string=function|NotSent->"NotSent"|Sent->"Sent"|Failed->"Failed"|Non_static_ids->sletof_string=function|"NotSent"->NotSent|"Sent"->Sent|"Failed"->Failed|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration EmailStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EmailStatus"j)letto_json=simple_to_jsonto_valueendmoduleErrorCode=structtypenonrect=|BadRequest|Conflict|Forbidden|NotFound|PreconditionFailed|ResourceLimitExceeded|ServiceFailure|AccessDenied|ServiceUnavailable|Throttled|Throttling|Unauthorized|Unprocessable|VoiceConnectorGroupAssociationsExist|PhoneNumberAssociationsExist|Non_static_idofstringletmakei=iletto_string=function|BadRequest->"BadRequest"|Conflict->"Conflict"|Forbidden->"Forbidden"|NotFound->"NotFound"|PreconditionFailed->"PreconditionFailed"|ResourceLimitExceeded->"ResourceLimitExceeded"|ServiceFailure->"ServiceFailure"|AccessDenied->"AccessDenied"|ServiceUnavailable->"ServiceUnavailable"|Throttled->"Throttled"|Throttling->"Throttling"|Unauthorized->"Unauthorized"|Unprocessable->"Unprocessable"|VoiceConnectorGroupAssociationsExist->"VoiceConnectorGroupAssociationsExist"|PhoneNumberAssociationsExist->"PhoneNumberAssociationsExist"|Non_static_ids->sletof_string=function|"BadRequest"->BadRequest|"Conflict"->Conflict|"Forbidden"->Forbidden|"NotFound"->NotFound|"PreconditionFailed"->PreconditionFailed|"ResourceLimitExceeded"->ResourceLimitExceeded|"ServiceFailure"->ServiceFailure|"AccessDenied"->AccessDenied|"ServiceUnavailable"->ServiceUnavailable|"Throttled"->Throttled|"Throttling"->Throttling|"Unauthorized"->Unauthorized|"Unprocessable"->Unprocessable|"VoiceConnectorGroupAssociationsExist"->VoiceConnectorGroupAssociationsExist|"PhoneNumberAssociationsExist"->PhoneNumberAssociationsExist|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ErrorCode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ErrorCode"j)letto_json=simple_to_jsonto_valueendmoduleTelephonySettings=structtypenonrect={inboundCalling:Boolean.t[@ocaml.doc"Allows or denies inbound calling."];outboundCalling:Boolean.t[@ocaml.doc"Allows or denies outbound calling."];sMS:Boolean.t[@ocaml.doc"Allows or denies SMS messaging."]}letcontext_="TelephonySettings"letmake~inboundCalling=fun~outboundCalling->fun~sMS->fun()->{inboundCalling;outboundCalling;sMS}letto_valuex=structure_to_value[("InboundCalling",(Some(Boolean.to_valuex.inboundCalling)));("OutboundCalling",(Some(Boolean.to_valuex.outboundCalling)));("SMS",(Some(Boolean.to_valuex.sMS)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsMS=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"SMS")inletoutboundCalling=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"OutboundCalling")inletinboundCalling=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"InboundCalling")inmake~sMS~outboundCalling~inboundCalling()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsMS=field_map_exnjson__"SMS"Boolean.of_jsoninletoutboundCalling=field_map_exnjson__"OutboundCalling"Boolean.of_jsoninletinboundCalling=field_map_exnjson__"InboundCalling"Boolean.of_jsoninmake~sMS~outboundCalling~inboundCalling()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Settings that allow management of telephony permissions for an Amazon Chime user, such as inbound and outbound calling and text messaging."]moduleConversationRetentionSettings=structtypenonrect={retentionDays:RetentionDays.toption[@ocaml.doc"The number of days for which to retain conversation messages."]}letmake?retentionDays=fun()->{retentionDays}letto_valuex=structure_to_value[("RetentionDays",(Option.mapx.retentionDays~f:RetentionDays.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretentionDays=(Option.map~f:RetentionDays.of_xml)(Xml.childxml_arg0"RetentionDays")inmake?retentionDays()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretentionDays=field_mapjson__"RetentionDays"RetentionDays.of_jsoninmake?retentionDays()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The retention settings that determine how long to retain conversation messages for an Amazon Chime Enterprise account."]moduleRoomRetentionSettings=structtypenonrect={retentionDays:RetentionDays.toption[@ocaml.doc"The number of days for which to retain chat-room messages."]}letmake?retentionDays=fun()->{retentionDays}letto_valuex=structure_to_value[("RetentionDays",(Option.mapx.retentionDays~f:RetentionDays.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretentionDays=(Option.map~f:RetentionDays.of_xml)(Xml.childxml_arg0"RetentionDays")inmake?retentionDays()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretentionDays=field_mapjson__"RetentionDays"RetentionDays.of_jsoninmake?retentionDays()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The retention settings that determine how long to retain chat-room messages for an Amazon Chime Enterprise account."]moduleUser=structtypenonrect={userId:String_.toption[@ocaml.doc"The user ID."];accountId:String_.toption[@ocaml.doc"The Amazon Chime account ID."];primaryEmail:EmailAddress.toption[@ocaml.doc"The primary email address of the user."];primaryProvisionedNumber:SensitiveString.toption[@ocaml.doc"The primary phone number associated with the user."];displayName:SensitiveString.toption[@ocaml.doc"The display name of the user."];licenseType:License.toption[@ocaml.doc"The license type for the user."];userType:UserType.toption[@ocaml.doc"The user type."];userRegistrationStatus:RegistrationStatus.toption[@ocaml.doc"The user registration status."];userInvitationStatus:InviteStatus.toption[@ocaml.doc"The user invite status."];registeredOn:Iso8601Timestamp.toption[@ocaml.doc"Date and time when the user is registered, in ISO 8601 format."];invitedOn:Iso8601Timestamp.toption[@ocaml.doc"Date and time when the user is invited to the Amazon Chime account, in ISO 8601 format."];alexaForBusinessMetadata:AlexaForBusinessMetadata.toption[@ocaml.doc"The Alexa for Business metadata."];personalPIN:String_.toption[@ocaml.doc"The user's personal meeting PIN."]}letmake?userId=fun?accountId->fun?primaryEmail->fun?primaryProvisionedNumber->fun?displayName->fun?licenseType->fun?userType->fun?userRegistrationStatus->fun?userInvitationStatus->fun?registeredOn->fun?invitedOn->fun?alexaForBusinessMetadata->fun?personalPIN->fun()->{userId;accountId;primaryEmail;primaryProvisionedNumber;displayName;licenseType;userType;userRegistrationStatus;userInvitationStatus;registeredOn;invitedOn;alexaForBusinessMetadata;personalPIN}letto_valuex=structure_to_value[("UserId",(Option.mapx.userId~f:String_.to_value));("AccountId",(Option.mapx.accountId~f:String_.to_value));("PrimaryEmail",(Option.mapx.primaryEmail~f:EmailAddress.to_value));("PrimaryProvisionedNumber",(Option.mapx.primaryProvisionedNumber~f:SensitiveString.to_value));("DisplayName",(Option.mapx.displayName~f:SensitiveString.to_value));("LicenseType",(Option.mapx.licenseType~f:License.to_value));("UserType",(Option.mapx.userType~f:UserType.to_value));("UserRegistrationStatus",(Option.mapx.userRegistrationStatus~f:RegistrationStatus.to_value));("UserInvitationStatus",(Option.mapx.userInvitationStatus~f:InviteStatus.to_value));("RegisteredOn",(Option.mapx.registeredOn~f:Iso8601Timestamp.to_value));("InvitedOn",(Option.mapx.invitedOn~f:Iso8601Timestamp.to_value));("AlexaForBusinessMetadata",(Option.mapx.alexaForBusinessMetadata~f:AlexaForBusinessMetadata.to_value));("PersonalPIN",(Option.mapx.personalPIN~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpersonalPIN=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"PersonalPIN")inletalexaForBusinessMetadata=(Option.map~f:AlexaForBusinessMetadata.of_xml)(Xml.childxml_arg0"AlexaForBusinessMetadata")inletinvitedOn=(Option.map~f:Iso8601Timestamp.of_xml)(Xml.childxml_arg0"InvitedOn")inletregisteredOn=(Option.map~f:Iso8601Timestamp.of_xml)(Xml.childxml_arg0"RegisteredOn")inletuserInvitationStatus=(Option.map~f:InviteStatus.of_xml)(Xml.childxml_arg0"UserInvitationStatus")inletuserRegistrationStatus=(Option.map~f:RegistrationStatus.of_xml)(Xml.childxml_arg0"UserRegistrationStatus")inletuserType=(Option.map~f:UserType.of_xml)(Xml.childxml_arg0"UserType")inletlicenseType=(Option.map~f:License.of_xml)(Xml.childxml_arg0"LicenseType")inletdisplayName=(Option.map~f:SensitiveString.of_xml)(Xml.childxml_arg0"DisplayName")inletprimaryProvisionedNumber=(Option.map~f:SensitiveString.of_xml)(Xml.childxml_arg0"PrimaryProvisionedNumber")inletprimaryEmail=(Option.map~f:EmailAddress.of_xml)(Xml.childxml_arg0"PrimaryEmail")inletaccountId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"AccountId")inletuserId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"UserId")inmake?personalPIN?alexaForBusinessMetadata?invitedOn?registeredOn?userInvitationStatus?userRegistrationStatus?userType?licenseType?displayName?primaryProvisionedNumber?primaryEmail?accountId?userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpersonalPIN=field_mapjson__"PersonalPIN"String_.of_jsoninletalexaForBusinessMetadata=field_mapjson__"AlexaForBusinessMetadata"AlexaForBusinessMetadata.of_jsoninletinvitedOn=field_mapjson__"InvitedOn"Iso8601Timestamp.of_jsoninletregisteredOn=field_mapjson__"RegisteredOn"Iso8601Timestamp.of_jsoninletuserInvitationStatus=field_mapjson__"UserInvitationStatus"InviteStatus.of_jsoninletuserRegistrationStatus=field_mapjson__"UserRegistrationStatus"RegistrationStatus.of_jsoninletuserType=field_mapjson__"UserType"UserType.of_jsoninletlicenseType=field_mapjson__"LicenseType"License.of_jsoninletdisplayName=field_mapjson__"DisplayName"SensitiveString.of_jsoninletprimaryProvisionedNumber=field_mapjson__"PrimaryProvisionedNumber"SensitiveString.of_jsoninletprimaryEmail=field_mapjson__"PrimaryEmail"EmailAddress.of_jsoninletaccountId=field_mapjson__"AccountId"String_.of_jsoninletuserId=field_mapjson__"UserId"String_.of_jsoninmake?personalPIN?alexaForBusinessMetadata?invitedOn?registeredOn?userInvitationStatus?userRegistrationStatus?userType?licenseType?displayName?primaryProvisionedNumber?primaryEmail?accountId?userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The user on the Amazon Chime account."]modulePhoneNumberCountry=structtypenonrect={countryCode:Alpha2CountryCode.toption[@ocaml.doc"The phone number country code. Format: ISO 3166-1 alpha-2."];supportedPhoneNumberTypes:PhoneNumberTypeList.toption[@ocaml.doc"The supported phone number types."]}letmake?countryCode=fun?supportedPhoneNumberTypes->fun()->{countryCode;supportedPhoneNumberTypes}letto_valuex=structure_to_value[("CountryCode",(Option.mapx.countryCode~f:Alpha2CountryCode.to_value));("SupportedPhoneNumberTypes",(Option.mapx.supportedPhoneNumberTypes~f:PhoneNumberTypeList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsupportedPhoneNumberTypes=(Option.map~f:PhoneNumberTypeList.of_xml)(Xml.childxml_arg0"SupportedPhoneNumberTypes")inletcountryCode=(Option.map~f:Alpha2CountryCode.of_xml)(Xml.childxml_arg0"CountryCode")inmake?supportedPhoneNumberTypes?countryCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsupportedPhoneNumberTypes=field_mapjson__"SupportedPhoneNumberTypes"PhoneNumberTypeList.of_jsoninletcountryCode=field_mapjson__"CountryCode"Alpha2CountryCode.of_jsoninmake?supportedPhoneNumberTypes?countryCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The phone number country."]moduleRoom=structtypenonrect={roomId:NonEmptyString.toption[@ocaml.doc"The room ID."];name:SensitiveString.toption[@ocaml.doc"The room name."];accountId:NonEmptyString.toption[@ocaml.doc"The Amazon Chime account ID."];createdBy:NonEmptyString.toption[@ocaml.doc"The identifier of the room creator."];createdTimestamp:Iso8601Timestamp.toption[@ocaml.doc"The room creation timestamp, in ISO 8601 format."];updatedTimestamp:Iso8601Timestamp.toption[@ocaml.doc"The room update timestamp, in ISO 8601 format."]}letmake?roomId=fun?name->fun?accountId->fun?createdBy->fun?createdTimestamp->fun?updatedTimestamp->fun()->{roomId;name;accountId;createdBy;createdTimestamp;updatedTimestamp}letto_valuex=structure_to_value[("RoomId",(Option.mapx.roomId~f:NonEmptyString.to_value));("Name",(Option.mapx.name~f:SensitiveString.to_value));("AccountId",(Option.mapx.accountId~f:NonEmptyString.to_value));("CreatedBy",(Option.mapx.createdBy~f:NonEmptyString.to_value));("CreatedTimestamp",(Option.mapx.createdTimestamp~f:Iso8601Timestamp.to_value));("UpdatedTimestamp",(Option.mapx.updatedTimestamp~f:Iso8601Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letupdatedTimestamp=(Option.map~f:Iso8601Timestamp.of_xml)(Xml.childxml_arg0"UpdatedTimestamp")inletcreatedTimestamp=(Option.map~f:Iso8601Timestamp.of_xml)(Xml.childxml_arg0"CreatedTimestamp")inletcreatedBy=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"CreatedBy")inletaccountId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"AccountId")inletname=(Option.map~f:SensitiveString.of_xml)(Xml.childxml_arg0"Name")inletroomId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"RoomId")inmake?updatedTimestamp?createdTimestamp?createdBy?accountId?name?roomId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letupdatedTimestamp=field_mapjson__"UpdatedTimestamp"Iso8601Timestamp.of_jsoninletcreatedTimestamp=field_mapjson__"CreatedTimestamp"Iso8601Timestamp.of_jsoninletcreatedBy=field_mapjson__"CreatedBy"NonEmptyString.of_jsoninletaccountId=field_mapjson__"AccountId"NonEmptyString.of_jsoninletname=field_mapjson__"Name"SensitiveString.of_jsoninletroomId=field_mapjson__"RoomId"NonEmptyString.of_jsoninmake?updatedTimestamp?createdTimestamp?createdBy?accountId?name?roomId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The Amazon Chime chat room details."]moduleRoomMembership=structtypenonrect={roomId:NonEmptyString.toption[@ocaml.doc"The room ID."];member:Member.toption[@ocaml.doc"The member details, such as email address, name, member ID, and member type."];role:RoomMembershipRole.toption[@ocaml.doc"The membership role."];invitedBy:NonEmptyString.toption[@ocaml.doc"The identifier of the user that invited the room member."];updatedTimestamp:Iso8601Timestamp.toption[@ocaml.doc"The room membership update timestamp, in ISO 8601 format."]}letmake?roomId=fun?member->fun?role->fun?invitedBy->fun?updatedTimestamp->fun()->{roomId;member;role;invitedBy;updatedTimestamp}letto_valuex=structure_to_value[("RoomId",(Option.mapx.roomId~f:NonEmptyString.to_value));("Member",(Option.mapx.member~f:Member.to_value));("Role",(Option.mapx.role~f:RoomMembershipRole.to_value));("InvitedBy",(Option.mapx.invitedBy~f:NonEmptyString.to_value));("UpdatedTimestamp",(Option.mapx.updatedTimestamp~f:Iso8601Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letupdatedTimestamp=(Option.map~f:Iso8601Timestamp.of_xml)(Xml.childxml_arg0"UpdatedTimestamp")inletinvitedBy=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"InvitedBy")inletrole=(Option.map~f:RoomMembershipRole.of_xml)(Xml.childxml_arg0"Role")inletmember=(Option.map~f:Member.of_xml)(Xml.childxml_arg0"Member")inletroomId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"RoomId")inmake?updatedTimestamp?invitedBy?role?member?roomId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letupdatedTimestamp=field_mapjson__"UpdatedTimestamp"Iso8601Timestamp.of_jsoninletinvitedBy=field_mapjson__"InvitedBy"NonEmptyString.of_jsoninletrole=field_mapjson__"Role"RoomMembershipRole.of_jsoninletmember=field_mapjson__"Member"Member.of_jsoninletroomId=field_mapjson__"RoomId"NonEmptyString.of_jsoninmake?updatedTimestamp?invitedBy?role?member?roomId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The room membership details."]modulePhoneNumber=structtypenonrect={phoneNumberId:String_.toption[@ocaml.doc"The phone number ID."];e164PhoneNumber:E164PhoneNumber.toption[@ocaml.doc"The phone number, in E.164 format."];country:Alpha2CountryCode.toption[@ocaml.doc"The phone number country. Format: ISO 3166-1 alpha-2."];type_:PhoneNumberType.toption[@ocaml.doc"The phone number type."];productType:PhoneNumberProductType.toption[@ocaml.doc"The phone number product type."];status:PhoneNumberStatus.toption[@ocaml.doc"The phone number status."];capabilities:PhoneNumberCapabilities.toption[@ocaml.doc"The phone number capabilities."];associations:PhoneNumberAssociationList.toption[@ocaml.doc"The phone number associations."];callingName:CallingName.toption[@ocaml.doc"The outbound calling name associated with the phone number."];callingNameStatus:CallingNameStatus.toption[@ocaml.doc"The outbound calling name status."];createdTimestamp:Iso8601Timestamp.toption[@ocaml.doc"The phone number creation timestamp, in ISO 8601 format."];updatedTimestamp:Iso8601Timestamp.toption[@ocaml.doc"The updated phone number timestamp, in ISO 8601 format."];deletionTimestamp:Iso8601Timestamp.toption[@ocaml.doc"The deleted phone number timestamp, in ISO 8601 format."]}letmake?phoneNumberId=fun?e164PhoneNumber->fun?country->fun?type_->fun?productType->fun?status->fun?capabilities->fun?associations->fun?callingName->fun?callingNameStatus->fun?createdTimestamp->fun?updatedTimestamp->fun?deletionTimestamp->fun()->{phoneNumberId;e164PhoneNumber;country;type_;productType;status;capabilities;associations;callingName;callingNameStatus;createdTimestamp;updatedTimestamp;deletionTimestamp}letto_valuex=structure_to_value[("PhoneNumberId",(Option.mapx.phoneNumberId~f:String_.to_value));("E164PhoneNumber",(Option.mapx.e164PhoneNumber~f:E164PhoneNumber.to_value));("Country",(Option.mapx.country~f:Alpha2CountryCode.to_value));("Type",(Option.mapx.type_~f:PhoneNumberType.to_value));("ProductType",(Option.mapx.productType~f:PhoneNumberProductType.to_value));("Status",(Option.mapx.status~f:PhoneNumberStatus.to_value));("Capabilities",(Option.mapx.capabilities~f:PhoneNumberCapabilities.to_value));("Associations",(Option.mapx.associations~f:PhoneNumberAssociationList.to_value));("CallingName",(Option.mapx.callingName~f:CallingName.to_value));("CallingNameStatus",(Option.mapx.callingNameStatus~f:CallingNameStatus.to_value));("CreatedTimestamp",(Option.mapx.createdTimestamp~f:Iso8601Timestamp.to_value));("UpdatedTimestamp",(Option.mapx.updatedTimestamp~f:Iso8601Timestamp.to_value));("DeletionTimestamp",(Option.mapx.deletionTimestamp~f:Iso8601Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeletionTimestamp=(Option.map~f:Iso8601Timestamp.of_xml)(Xml.childxml_arg0"DeletionTimestamp")inletupdatedTimestamp=(Option.map~f:Iso8601Timestamp.of_xml)(Xml.childxml_arg0"UpdatedTimestamp")inletcreatedTimestamp=(Option.map~f:Iso8601Timestamp.of_xml)(Xml.childxml_arg0"CreatedTimestamp")inletcallingNameStatus=(Option.map~f:CallingNameStatus.of_xml)(Xml.childxml_arg0"CallingNameStatus")inletcallingName=(Option.map~f:CallingName.of_xml)(Xml.childxml_arg0"CallingName")inletassociations=(Option.map~f:PhoneNumberAssociationList.of_xml)(Xml.childxml_arg0"Associations")inletcapabilities=(Option.map~f:PhoneNumberCapabilities.of_xml)(Xml.childxml_arg0"Capabilities")inletstatus=(Option.map~f:PhoneNumberStatus.of_xml)(Xml.childxml_arg0"Status")inletproductType=(Option.map~f:PhoneNumberProductType.of_xml)(Xml.childxml_arg0"ProductType")inlettype_=(Option.map~f:PhoneNumberType.of_xml)(Xml.childxml_arg0"Type")inletcountry=(Option.map~f:Alpha2CountryCode.of_xml)(Xml.childxml_arg0"Country")inlete164PhoneNumber=(Option.map~f:E164PhoneNumber.of_xml)(Xml.childxml_arg0"E164PhoneNumber")inletphoneNumberId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"PhoneNumberId")inmake?deletionTimestamp?updatedTimestamp?createdTimestamp?callingNameStatus?callingName?associations?capabilities?status?productType?type_?country?e164PhoneNumber?phoneNumberId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeletionTimestamp=field_mapjson__"DeletionTimestamp"Iso8601Timestamp.of_jsoninletupdatedTimestamp=field_mapjson__"UpdatedTimestamp"Iso8601Timestamp.of_jsoninletcreatedTimestamp=field_mapjson__"CreatedTimestamp"Iso8601Timestamp.of_jsoninletcallingNameStatus=field_mapjson__"CallingNameStatus"CallingNameStatus.of_jsoninletcallingName=field_mapjson__"CallingName"CallingName.of_jsoninletassociations=field_mapjson__"Associations"PhoneNumberAssociationList.of_jsoninletcapabilities=field_mapjson__"Capabilities"PhoneNumberCapabilities.of_jsoninletstatus=field_mapjson__"Status"PhoneNumberStatus.of_jsoninletproductType=field_mapjson__"ProductType"PhoneNumberProductType.of_jsoninlettype_=field_mapjson__"Type"PhoneNumberType.of_jsoninletcountry=field_mapjson__"Country"Alpha2CountryCode.of_jsoninlete164PhoneNumber=field_mapjson__"E164PhoneNumber"E164PhoneNumber.of_jsoninletphoneNumberId=field_mapjson__"PhoneNumberId"String_.of_jsoninmake?deletionTimestamp?updatedTimestamp?createdTimestamp?callingNameStatus?callingName?associations?capabilities?status?productType?type_?country?e164PhoneNumber?phoneNumberId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A phone number used for Amazon Chime Business Calling or an Amazon Chime Voice Connector."]modulePhoneNumberOrder=structtypenonrect={phoneNumberOrderId:GuidString.toption[@ocaml.doc"The phone number order ID."];productType:PhoneNumberProductType.toption[@ocaml.doc"The phone number order product type."];status:PhoneNumberOrderStatus.toption[@ocaml.doc"The status of the phone number order."];orderedPhoneNumbers:OrderedPhoneNumberList.toption[@ocaml.doc"The ordered phone number details, such as the phone number in E.164 format and the phone number status."];createdTimestamp:Iso8601Timestamp.toption[@ocaml.doc"The phone number order creation time stamp, in ISO 8601 format."];updatedTimestamp:Iso8601Timestamp.toption[@ocaml.doc"The updated phone number order time stamp, in ISO 8601 format."]}letmake?phoneNumberOrderId=fun?productType->fun?status->fun?orderedPhoneNumbers->fun?createdTimestamp->fun?updatedTimestamp->fun()->{phoneNumberOrderId;productType;status;orderedPhoneNumbers;createdTimestamp;updatedTimestamp}letto_valuex=structure_to_value[("PhoneNumberOrderId",(Option.mapx.phoneNumberOrderId~f:GuidString.to_value));("ProductType",(Option.mapx.productType~f:PhoneNumberProductType.to_value));("Status",(Option.mapx.status~f:PhoneNumberOrderStatus.to_value));("OrderedPhoneNumbers",(Option.mapx.orderedPhoneNumbers~f:OrderedPhoneNumberList.to_value));("CreatedTimestamp",(Option.mapx.createdTimestamp~f:Iso8601Timestamp.to_value));("UpdatedTimestamp",(Option.mapx.updatedTimestamp~f:Iso8601Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letupdatedTimestamp=(Option.map~f:Iso8601Timestamp.of_xml)(Xml.childxml_arg0"UpdatedTimestamp")inletcreatedTimestamp=(Option.map~f:Iso8601Timestamp.of_xml)(Xml.childxml_arg0"CreatedTimestamp")inletorderedPhoneNumbers=(Option.map~f:OrderedPhoneNumberList.of_xml)(Xml.childxml_arg0"OrderedPhoneNumbers")inletstatus=(Option.map~f:PhoneNumberOrderStatus.of_xml)(Xml.childxml_arg0"Status")inletproductType=(Option.map~f:PhoneNumberProductType.of_xml)(Xml.childxml_arg0"ProductType")inletphoneNumberOrderId=(Option.map~f:GuidString.of_xml)(Xml.childxml_arg0"PhoneNumberOrderId")inmake?updatedTimestamp?createdTimestamp?orderedPhoneNumbers?status?productType?phoneNumberOrderId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letupdatedTimestamp=field_mapjson__"UpdatedTimestamp"Iso8601Timestamp.of_jsoninletcreatedTimestamp=field_mapjson__"CreatedTimestamp"Iso8601Timestamp.of_jsoninletorderedPhoneNumbers=field_mapjson__"OrderedPhoneNumbers"OrderedPhoneNumberList.of_jsoninletstatus=field_mapjson__"Status"PhoneNumberOrderStatus.of_jsoninletproductType=field_mapjson__"ProductType"PhoneNumberProductType.of_jsoninletphoneNumberOrderId=field_mapjson__"PhoneNumberOrderId"GuidString.of_jsoninmake?updatedTimestamp?createdTimestamp?orderedPhoneNumbers?status?productType?phoneNumberOrderId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details of a phone number order created for Amazon Chime."]moduleBot=structtypenonrect={botId:String_.toption[@ocaml.doc"The bot ID."];userId:String_.toption[@ocaml.doc"The unique ID for the bot user."];displayName:SensitiveString.toption[@ocaml.doc"The bot display name."];botType:BotType.toption[@ocaml.doc"The bot type."];disabled:NullableBoolean.toption[@ocaml.doc"When true, the bot is stopped from running in your account."];createdTimestamp:Iso8601Timestamp.toption[@ocaml.doc"The bot creation timestamp, in ISO 8601 format."];updatedTimestamp:Iso8601Timestamp.toption[@ocaml.doc"The updated bot timestamp, in ISO 8601 format."];botEmail:SensitiveString.toption[@ocaml.doc"The bot email address."];securityToken:SensitiveString.toption[@ocaml.doc"The security token used to authenticate Amazon Chime with the outgoing event endpoint."]}letmake?botId=fun?userId->fun?displayName->fun?botType->fun?disabled->fun?createdTimestamp->fun?updatedTimestamp->fun?botEmail->fun?securityToken->fun()->{botId;userId;displayName;botType;disabled;createdTimestamp;updatedTimestamp;botEmail;securityToken}letto_valuex=structure_to_value[("BotId",(Option.mapx.botId~f:String_.to_value));("UserId",(Option.mapx.userId~f:String_.to_value));("DisplayName",(Option.mapx.displayName~f:SensitiveString.to_value));("BotType",(Option.mapx.botType~f:BotType.to_value));("Disabled",(Option.mapx.disabled~f:NullableBoolean.to_value));("CreatedTimestamp",(Option.mapx.createdTimestamp~f:Iso8601Timestamp.to_value));("UpdatedTimestamp",(Option.mapx.updatedTimestamp~f:Iso8601Timestamp.to_value));("BotEmail",(Option.mapx.botEmail~f:SensitiveString.to_value));("SecurityToken",(Option.mapx.securityToken~f:SensitiveString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsecurityToken=(Option.map~f:SensitiveString.of_xml)(Xml.childxml_arg0"SecurityToken")inletbotEmail=(Option.map~f:SensitiveString.of_xml)(Xml.childxml_arg0"BotEmail")inletupdatedTimestamp=(Option.map~f:Iso8601Timestamp.of_xml)(Xml.childxml_arg0"UpdatedTimestamp")inletcreatedTimestamp=(Option.map~f:Iso8601Timestamp.of_xml)(Xml.childxml_arg0"CreatedTimestamp")inletdisabled=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"Disabled")inletbotType=(Option.map~f:BotType.of_xml)(Xml.childxml_arg0"BotType")inletdisplayName=(Option.map~f:SensitiveString.of_xml)(Xml.childxml_arg0"DisplayName")inletuserId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"UserId")inletbotId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"BotId")inmake?securityToken?botEmail?updatedTimestamp?createdTimestamp?disabled?botType?displayName?userId?botId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsecurityToken=field_mapjson__"SecurityToken"SensitiveString.of_jsoninletbotEmail=field_mapjson__"BotEmail"SensitiveString.of_jsoninletupdatedTimestamp=field_mapjson__"UpdatedTimestamp"Iso8601Timestamp.of_jsoninletcreatedTimestamp=field_mapjson__"CreatedTimestamp"Iso8601Timestamp.of_jsoninletdisabled=field_mapjson__"Disabled"NullableBoolean.of_jsoninletbotType=field_mapjson__"BotType"BotType.of_jsoninletdisplayName=field_mapjson__"DisplayName"SensitiveString.of_jsoninletuserId=field_mapjson__"UserId"String_.of_jsoninletbotId=field_mapjson__"BotId"String_.of_jsoninmake?securityToken?botEmail?updatedTimestamp?createdTimestamp?disabled?botType?displayName?userId?botId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A resource that allows Enterprise account administrators to configure an interface to receive events from Amazon Chime."]moduleAccount=structtypenonrect={awsAccountId:String_.toption[@ocaml.doc"The AWS account ID."];accountId:String_.toption[@ocaml.doc"The Amazon Chime account ID."];name:String_.toption[@ocaml.doc"The Amazon Chime account name."];accountType:AccountType.toption[@ocaml.doc"The Amazon Chime account type. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide."];createdTimestamp:Iso8601Timestamp.toption[@ocaml.doc"The Amazon Chime account creation timestamp, in ISO 8601 format."];defaultLicense:License.toption[@ocaml.doc"The default license for the Amazon Chime account."];supportedLicenses:LicenseList.toption[@ocaml.doc"Supported licenses for the Amazon Chime account."];accountStatus:AccountStatus.toption[@ocaml.doc"The status of the account."];signinDelegateGroups:SigninDelegateGroupList.toption[@ocaml.doc"The sign-in delegate groups associated with the account."]}letmake?awsAccountId=fun?accountId->fun?name->fun?accountType->fun?createdTimestamp->fun?defaultLicense->fun?supportedLicenses->fun?accountStatus->fun?signinDelegateGroups->fun()->{awsAccountId;accountId;name;accountType;createdTimestamp;defaultLicense;supportedLicenses;accountStatus;signinDelegateGroups}letto_valuex=structure_to_value[("AwsAccountId",(Option.mapx.awsAccountId~f:String_.to_value));("AccountId",(Option.mapx.accountId~f:String_.to_value));("Name",(Option.mapx.name~f:String_.to_value));("AccountType",(Option.mapx.accountType~f:AccountType.to_value));("CreatedTimestamp",(Option.mapx.createdTimestamp~f:Iso8601Timestamp.to_value));("DefaultLicense",(Option.mapx.defaultLicense~f:License.to_value));("SupportedLicenses",(Option.mapx.supportedLicenses~f:LicenseList.to_value));("AccountStatus",(Option.mapx.accountStatus~f:AccountStatus.to_value));("SigninDelegateGroups",(Option.mapx.signinDelegateGroups~f:SigninDelegateGroupList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsigninDelegateGroups=(Option.map~f:SigninDelegateGroupList.of_xml)(Xml.childxml_arg0"SigninDelegateGroups")inletaccountStatus=(Option.map~f:AccountStatus.of_xml)(Xml.childxml_arg0"AccountStatus")inletsupportedLicenses=(Option.map~f:LicenseList.of_xml)(Xml.childxml_arg0"SupportedLicenses")inletdefaultLicense=(Option.map~f:License.of_xml)(Xml.childxml_arg0"DefaultLicense")inletcreatedTimestamp=(Option.map~f:Iso8601Timestamp.of_xml)(Xml.childxml_arg0"CreatedTimestamp")inletaccountType=(Option.map~f:AccountType.of_xml)(Xml.childxml_arg0"AccountType")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Name")inletaccountId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"AccountId")inletawsAccountId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"AwsAccountId")inmake?signinDelegateGroups?accountStatus?supportedLicenses?defaultLicense?createdTimestamp?accountType?name?accountId?awsAccountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsigninDelegateGroups=field_mapjson__"SigninDelegateGroups"SigninDelegateGroupList.of_jsoninletaccountStatus=field_mapjson__"AccountStatus"AccountStatus.of_jsoninletsupportedLicenses=field_mapjson__"SupportedLicenses"LicenseList.of_jsoninletdefaultLicense=field_mapjson__"DefaultLicense"License.of_jsoninletcreatedTimestamp=field_mapjson__"CreatedTimestamp"Iso8601Timestamp.of_jsoninletaccountType=field_mapjson__"AccountType"AccountType.of_jsoninletname=field_mapjson__"Name"String_.of_jsoninletaccountId=field_mapjson__"AccountId"String_.of_jsoninletawsAccountId=field_mapjson__"AwsAccountId"String_.of_jsoninmake?signinDelegateGroups?accountStatus?supportedLicenses?defaultLicense?createdTimestamp?accountType?name?accountId?awsAccountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The Amazon Chime account details. An AWS account can have multiple Amazon Chime accounts."]moduleInvite=structtypenonrect={inviteId:String_.toption[@ocaml.doc"The invite ID."];status:InviteStatus.toption[@ocaml.doc"The status of the invite."];emailAddress:EmailAddress.toption[@ocaml.doc"The email address to which the invite is sent."];emailStatus:EmailStatus.toption[@ocaml.doc"The status of the invite email."]}letmake?inviteId=fun?status->fun?emailAddress->fun?emailStatus->fun()->{inviteId;status;emailAddress;emailStatus}letto_valuex=structure_to_value[("InviteId",(Option.mapx.inviteId~f:String_.to_value));("Status",(Option.mapx.status~f:InviteStatus.to_value));("EmailAddress",(Option.mapx.emailAddress~f:EmailAddress.to_value));("EmailStatus",(Option.mapx.emailStatus~f:EmailStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letemailStatus=(Option.map~f:EmailStatus.of_xml)(Xml.childxml_arg0"EmailStatus")inletemailAddress=(Option.map~f:EmailAddress.of_xml)(Xml.childxml_arg0"EmailAddress")inletstatus=(Option.map~f:InviteStatus.of_xml)(Xml.childxml_arg0"Status")inletinviteId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"InviteId")inmake?emailStatus?emailAddress?status?inviteId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letemailStatus=field_mapjson__"EmailStatus"EmailStatus.of_jsoninletemailAddress=field_mapjson__"EmailAddress"EmailAddress.of_jsoninletstatus=field_mapjson__"Status"InviteStatus.of_jsoninletinviteId=field_mapjson__"InviteId"String_.of_jsoninmake?emailStatus?emailAddress?status?inviteId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Invitation object returned after emailing users to invite them to join the Amazon Chime Team account."]moduleUserError=structtypenonrect={userId:NonEmptyString.toption[@ocaml.doc"The user ID for which the action failed."];errorCode:ErrorCode.toption[@ocaml.doc"The error code."];errorMessage:String_.toption[@ocaml.doc"The error message."]}letmake?userId=fun?errorCode->fun?errorMessage->fun()->{userId;errorCode;errorMessage}letto_valuex=structure_to_value[("UserId",(Option.mapx.userId~f:NonEmptyString.to_value));("ErrorCode",(Option.mapx.errorCode~f:ErrorCode.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inletuserId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"UserId")inmake?errorMessage?errorCode?userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"String_.of_jsoninleterrorCode=field_mapjson__"ErrorCode"ErrorCode.of_jsoninletuserId=field_mapjson__"UserId"NonEmptyString.of_jsoninmake?errorMessage?errorCode?userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The list of errors returned when errors are encountered during the BatchSuspendUser, BatchUnsuspendUser, or BatchUpdateUser actions. This includes user IDs, error codes, and error messages."]moduleUpdateUserRequestItem=structtypenonrect={userId:NonEmptyString.t[@ocaml.doc"The user ID."];licenseType:License.toption[@ocaml.doc"The user license type."];userType:UserType.toption[@ocaml.doc"The user type."];alexaForBusinessMetadata:AlexaForBusinessMetadata.toption[@ocaml.doc"The Alexa for Business metadata."]}letcontext_="UpdateUserRequestItem"letmake?licenseType=fun?userType->fun?alexaForBusinessMetadata->fun~userId->fun()->{licenseType;userType;alexaForBusinessMetadata;userId}letto_valuex=structure_to_value[("UserId",(Some(NonEmptyString.to_valuex.userId)));("LicenseType",(Option.mapx.licenseType~f:License.to_value));("UserType",(Option.mapx.userType~f:UserType.to_value));("AlexaForBusinessMetadata",(Option.mapx.alexaForBusinessMetadata~f:AlexaForBusinessMetadata.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letalexaForBusinessMetadata=(Option.map~f:AlexaForBusinessMetadata.of_xml)(Xml.childxml_arg0"AlexaForBusinessMetadata")inletuserType=(Option.map~f:UserType.of_xml)(Xml.childxml_arg0"UserType")inletlicenseType=(Option.map~f:License.of_xml)(Xml.childxml_arg0"LicenseType")inletuserId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"UserId")inmake?alexaForBusinessMetadata?userType?licenseType~userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letalexaForBusinessMetadata=field_mapjson__"AlexaForBusinessMetadata"AlexaForBusinessMetadata.of_jsoninletuserType=field_mapjson__"UserType"UserType.of_jsoninletlicenseType=field_mapjson__"LicenseType"License.of_jsoninletuserId=field_map_exnjson__"UserId"NonEmptyString.of_jsoninmake?alexaForBusinessMetadata?userType?licenseType~userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The user ID and user fields to update, used with the BatchUpdateUser action."]modulePhoneNumberError=structtypenonrect={phoneNumberId:NonEmptyString.toption[@ocaml.doc"The phone number ID for which the action failed."];errorCode:ErrorCode.toption[@ocaml.doc"The error code."];errorMessage:String_.toption[@ocaml.doc"The error message."]}letmake?phoneNumberId=fun?errorCode->fun?errorMessage->fun()->{phoneNumberId;errorCode;errorMessage}letto_valuex=structure_to_value[("PhoneNumberId",(Option.mapx.phoneNumberId~f:NonEmptyString.to_value));("ErrorCode",(Option.mapx.errorCode~f:ErrorCode.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inletphoneNumberId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"PhoneNumberId")inmake?errorMessage?errorCode?phoneNumberId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"String_.of_jsoninleterrorCode=field_mapjson__"ErrorCode"ErrorCode.of_jsoninletphoneNumberId=field_mapjson__"PhoneNumberId"NonEmptyString.of_jsoninmake?errorMessage?errorCode?phoneNumberId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"If the phone number action fails for one or more of the phone numbers in the request, a list of the phone numbers is returned, along with error codes and error messages."]moduleUpdatePhoneNumberRequestItem=structtypenonrect={phoneNumberId:NonEmptyString.t[@ocaml.doc"The phone number ID to update."];productType:PhoneNumberProductType.toption[@ocaml.doc"The product type to update."];callingName:CallingName.toption[@ocaml.doc"The outbound calling name to update."]}letcontext_="UpdatePhoneNumberRequestItem"letmake?productType=fun?callingName->fun~phoneNumberId->fun()->{productType;callingName;phoneNumberId}letto_valuex=structure_to_value[("PhoneNumberId",(Some(NonEmptyString.to_valuex.phoneNumberId)));("ProductType",(Option.mapx.productType~f:PhoneNumberProductType.to_value));("CallingName",(Option.mapx.callingName~f:CallingName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcallingName=(Option.map~f:CallingName.of_xml)(Xml.childxml_arg0"CallingName")inletproductType=(Option.map~f:PhoneNumberProductType.of_xml)(Xml.childxml_arg0"ProductType")inletphoneNumberId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"PhoneNumberId")inmake?callingName?productType~phoneNumberId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcallingName=field_mapjson__"CallingName"CallingName.of_jsoninletproductType=field_mapjson__"ProductType"PhoneNumberProductType.of_jsoninletphoneNumberId=field_map_exnjson__"PhoneNumberId"NonEmptyString.of_jsoninmake?callingName?productType~phoneNumberId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The phone number ID, product type, or calling name fields to update, used with the BatchUpdatePhoneNumber and UpdatePhoneNumber actions."]moduleMemberError=structtypenonrect={memberId:NonEmptyString.toption[@ocaml.doc"The member ID."];errorCode:ErrorCode.toption[@ocaml.doc"The error code."];errorMessage:String_.toption[@ocaml.doc"The error message."]}letmake?memberId=fun?errorCode->fun?errorMessage->fun()->{memberId;errorCode;errorMessage}letto_valuex=structure_to_value[("MemberId",(Option.mapx.memberId~f:NonEmptyString.to_value));("ErrorCode",(Option.mapx.errorCode~f:ErrorCode.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inletmemberId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"MemberId")inmake?errorMessage?errorCode?memberId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"String_.of_jsoninleterrorCode=field_mapjson__"ErrorCode"ErrorCode.of_jsoninletmemberId=field_mapjson__"MemberId"NonEmptyString.of_jsoninmake?errorMessage?errorCode?memberId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The list of errors returned when a member action results in an error."]moduleMembershipItem=structtypenonrect={memberId:NonEmptyString.toption[@ocaml.doc"The member ID."];role:RoomMembershipRole.toption[@ocaml.doc"The member role."]}letmake?memberId=fun?role->fun()->{memberId;role}letto_valuex=structure_to_value[("MemberId",(Option.mapx.memberId~f:NonEmptyString.to_value));("Role",(Option.mapx.role~f:RoomMembershipRole.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrole=(Option.map~f:RoomMembershipRole.of_xml)(Xml.childxml_arg0"Role")inletmemberId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"MemberId")inmake?role?memberId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrole=field_mapjson__"Role"RoomMembershipRole.of_jsoninletmemberId=field_mapjson__"MemberId"NonEmptyString.of_jsoninmake?role?memberId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Membership details, such as member ID and member role."]moduleUserSettings=structtypenonrect={telephony:TelephonySettings.t[@ocaml.doc"The telephony settings associated with the user."]}letcontext_="UserSettings"letmake~telephony=fun()->{telephony}letto_valuex=structure_to_value[("Telephony",(Some(TelephonySettings.to_valuex.telephony)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettelephony=TelephonySettings.of_xml(Xml.child_exn~context:context_xml_arg0"Telephony")inmake~telephony()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettelephony=field_map_exnjson__"Telephony"TelephonySettings.of_jsoninmake~telephony()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Settings associated with an Amazon Chime user, including inbound and outbound calling and text messaging."]moduleBadRequestException=structtypenonrect={code:ErrorCode.toption;message:String_.toption}letmake?code=fun?message->fun()->{code;message}letto_valuex=structure_to_value[("Code",(Option.mapx.code~f:ErrorCode.to_value));("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inletcode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"Code")inmake?message?code()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninletcode=field_mapjson__"Code"ErrorCode.of_jsoninmake?message?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input parameters don't match the service's restrictions."]moduleForbiddenException=structtypenonrect={code:ErrorCode.toption;message:String_.toption}letmake?code=fun?message->fun()->{code;message}letto_valuex=structure_to_value[("Code",(Option.mapx.code~f:ErrorCode.to_value));("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inletcode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"Code")inmake?message?code()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninletcode=field_mapjson__"Code"ErrorCode.of_jsoninmake?message?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The client is permanently forbidden from making the request."]moduleNotFoundException=structtypenonrect={code:ErrorCode.toption;message:String_.toption}letmake?code=fun?message->fun()->{code;message}letto_valuex=structure_to_value[("Code",(Option.mapx.code~f:ErrorCode.to_value));("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inletcode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"Code")inmake?message?code()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninletcode=field_mapjson__"Code"ErrorCode.of_jsoninmake?message?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"One or more of the resources in the request does not exist in the system."]moduleServiceFailureException=structtypenonrect={code:ErrorCode.toption;message:String_.toption}letmake?code=fun?message->fun()->{code;message}letto_valuex=structure_to_value[("Code",(Option.mapx.code~f:ErrorCode.to_value));("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inletcode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"Code")inmake?message?code()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninletcode=field_mapjson__"Code"ErrorCode.of_jsoninmake?message?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The service encountered an unexpected error."]moduleServiceUnavailableException=structtypenonrect={code:ErrorCode.toption;message:String_.toption}letmake?code=fun?message->fun()->{code;message}letto_valuex=structure_to_value[("Code",(Option.mapx.code~f:ErrorCode.to_value));("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inletcode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"Code")inmake?message?code()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninletcode=field_mapjson__"Code"ErrorCode.of_jsoninmake?message?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The service is currently unavailable."]moduleThrottledClientException=structtypenonrect={code:ErrorCode.toption;message:String_.toption}letmake?code=fun?message->fun()->{code;message}letto_valuex=structure_to_value[("Code",(Option.mapx.code~f:ErrorCode.to_value));("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inletcode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"Code")inmake?message?code()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninletcode=field_mapjson__"Code"ErrorCode.of_jsoninmake?message?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The client exceeded its request rate limit."]moduleUnauthorizedClientException=structtypenonrect={code:ErrorCode.toption;message:String_.toption}letmake?code=fun?message->fun()->{code;message}letto_valuex=structure_to_value[("Code",(Option.mapx.code~f:ErrorCode.to_value));("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inletcode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"Code")inmake?message?code()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninletcode=field_mapjson__"Code"ErrorCode.of_jsoninmake?message?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The client is not currently authorized to make the request."]moduleConflictException=structtypenonrect={code:ErrorCode.toption;message:String_.toption}letmake?code=fun?message->fun()->{code;message}letto_valuex=structure_to_value[("Code",(Option.mapx.code~f:ErrorCode.to_value));("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inletcode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"Code")inmake?message?code()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninletcode=field_mapjson__"Code"ErrorCode.of_jsoninmake?message?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request could not be processed because of conflict in the current state of the resource."]moduleBusinessCallingSettings=structtypenonrect={cdrBucket:String_.toption[@ocaml.doc"The Amazon S3 bucket designated for call detail record storage."]}letmake?cdrBucket=fun()->{cdrBucket}letto_valuex=structure_to_value[("CdrBucket",(Option.mapx.cdrBucket~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcdrBucket=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"CdrBucket")inmake?cdrBucket()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcdrBucket=field_mapjson__"CdrBucket"String_.of_jsoninmake?cdrBucket()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The Amazon Chime Business Calling settings for the administrator's AWS account. Includes any Amazon S3 buckets designated for storing call detail records."]moduleVoiceConnectorSettings=structtypenonrect={cdrBucket:String_.toption[@ocaml.doc"The Amazon S3 bucket designated for call detail record storage."]}letmake?cdrBucket=fun()->{cdrBucket}letto_valuex=structure_to_value[("CdrBucket",(Option.mapx.cdrBucket~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcdrBucket=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"CdrBucket")inmake?cdrBucket()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcdrBucket=field_mapjson__"CdrBucket"String_.of_jsoninmake?cdrBucket()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The Amazon Chime Voice Connector settings. Includes any Amazon S3 buckets designated for storing call detail records."]moduleAccountSettings=structtypenonrect={disableRemoteControl:Boolean.toption[@ocaml.doc"Setting that stops or starts remote control of shared screens during meetings."];enableDialOut:Boolean.toption[@ocaml.doc"Setting that allows meeting participants to choose the Call me at a phone number option. For more information, see Join a Meeting without the Amazon Chime App."]}letmake?disableRemoteControl=fun?enableDialOut->fun()->{disableRemoteControl;enableDialOut}letto_valuex=structure_to_value[("DisableRemoteControl",(Option.mapx.disableRemoteControl~f:Boolean.to_value));("EnableDialOut",(Option.mapx.enableDialOut~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letenableDialOut=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"EnableDialOut")inletdisableRemoteControl=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"DisableRemoteControl")inmake?enableDialOut?disableRemoteControl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letenableDialOut=field_mapjson__"EnableDialOut"Boolean.of_jsoninletdisableRemoteControl=field_mapjson__"DisableRemoteControl"Boolean.of_jsoninmake?enableDialOut?disableRemoteControl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Settings related to the Amazon Chime account. This includes settings that start or stop remote control of shared screens, or start or stop the dial-out option in the Amazon Chime web application. For more information about these settings, see Use the Policies Page in the Amazon Chime Administration Guide."]moduleAccountName=structtypenonrect=stringletcontext_="AccountName"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:"AccountName"jletto_json=simple_to_jsonto_valueendmoduleAccessDeniedException=structtypenonrect={code:ErrorCode.toption;message:String_.toption}letmake?code=fun?message->fun()->{code;message}letto_valuex=structure_to_value[("Code",(Option.mapx.code~f:ErrorCode.to_value));("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inletcode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"Code")inmake?message?code()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninletcode=field_mapjson__"Code"ErrorCode.of_jsoninmake?message?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You don't have permissions to perform the requested operation."]moduleE164PhoneNumberList=structtypenonrect=E164PhoneNumber.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:E164PhoneNumber.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:E164PhoneNumber.of_xml)letof_jsonj=list_of_json~kind:"E164PhoneNumberList"~of_json:E164PhoneNumber.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePhoneNumberMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:500)>>=(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 PhoneNumberMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleTollFreePrefix=structtypenonrect=stringletcontext_="TollFreePrefix"letmakei=letopenResultinok_or_failwith((check_string_mini~min:3)>>=(fun()->(check_string_maxi~max:3)>>=(fun()->check_patterni~pattern:"^8(00|33|44|55|66|77|88)$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TollFreePrefix"jletto_json=simple_to_jsonto_valueendmoduleResourceLimitExceededException=structtypenonrect={code:ErrorCode.toption;message:String_.toption}letmake?code=fun?message->fun()->{code;message}letto_valuex=structure_to_value[("Code",(Option.mapx.code~f:ErrorCode.to_value));("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inletcode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"Code")inmake?message?code()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninletcode=field_mapjson__"Code"ErrorCode.of_jsoninmake?message?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request exceeds the resource limit."]moduleRetentionSettings=structtypenonrect={roomRetentionSettings:RoomRetentionSettings.toption[@ocaml.doc"The chat room retention settings."];conversationRetentionSettings:ConversationRetentionSettings.toption[@ocaml.doc"The chat conversation retention settings."]}letmake?roomRetentionSettings=fun?conversationRetentionSettings->fun()->{roomRetentionSettings;conversationRetentionSettings}letto_valuex=structure_to_value[("RoomRetentionSettings",(Option.mapx.roomRetentionSettings~f:RoomRetentionSettings.to_value));("ConversationRetentionSettings",(Option.mapx.conversationRetentionSettings~f:ConversationRetentionSettings.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconversationRetentionSettings=(Option.map~f:ConversationRetentionSettings.of_xml)(Xml.childxml_arg0"ConversationRetentionSettings")inletroomRetentionSettings=(Option.map~f:RoomRetentionSettings.of_xml)(Xml.childxml_arg0"RoomRetentionSettings")inmake?conversationRetentionSettings?roomRetentionSettings()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconversationRetentionSettings=field_mapjson__"ConversationRetentionSettings"ConversationRetentionSettings.of_jsoninletroomRetentionSettings=field_mapjson__"RoomRetentionSettings"RoomRetentionSettings.of_jsoninmake?conversationRetentionSettings?roomRetentionSettings()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The retention settings for an Amazon Chime Enterprise account that determine how long to retain items such as chat-room messages and chat-conversation messages."]moduleEventsConfiguration=structtypenonrect={botId:String_.toption[@ocaml.doc"The bot ID."];outboundEventsHTTPSEndpoint:SensitiveString.toption[@ocaml.doc"HTTPS endpoint that allows a bot to receive outgoing events."];lambdaFunctionArn:SensitiveString.toption[@ocaml.doc"Lambda function ARN that allows a bot to receive outgoing events."]}letmake?botId=fun?outboundEventsHTTPSEndpoint->fun?lambdaFunctionArn->fun()->{botId;outboundEventsHTTPSEndpoint;lambdaFunctionArn}letto_valuex=structure_to_value[("BotId",(Option.mapx.botId~f:String_.to_value));("OutboundEventsHTTPSEndpoint",(Option.mapx.outboundEventsHTTPSEndpoint~f:SensitiveString.to_value));("LambdaFunctionArn",(Option.mapx.lambdaFunctionArn~f:SensitiveString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlambdaFunctionArn=(Option.map~f:SensitiveString.of_xml)(Xml.childxml_arg0"LambdaFunctionArn")inletoutboundEventsHTTPSEndpoint=(Option.map~f:SensitiveString.of_xml)(Xml.childxml_arg0"OutboundEventsHTTPSEndpoint")inletbotId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"BotId")inmake?lambdaFunctionArn?outboundEventsHTTPSEndpoint?botId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlambdaFunctionArn=field_mapjson__"LambdaFunctionArn"SensitiveString.of_jsoninletoutboundEventsHTTPSEndpoint=field_mapjson__"OutboundEventsHTTPSEndpoint"SensitiveString.of_jsoninletbotId=field_mapjson__"BotId"String_.of_jsoninmake?lambdaFunctionArn?outboundEventsHTTPSEndpoint?botId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The configuration that allows a bot to receive outgoing events. Can be either an HTTPS endpoint or a Lambda function ARN."]moduleUserList=structtypenonrect=User.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:User.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:User.of_xml)letof_jsonj=list_of_json~kind:"UserList"~of_json:User.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleProfileServiceMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:200)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ProfileServiceMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmodulePhoneNumberCountriesList=structtypenonrect=PhoneNumberCountry.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PhoneNumberCountry.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:PhoneNumberCountry.of_xml)letof_jsonj=list_of_json~kind:"PhoneNumberCountriesList"~of_json:PhoneNumberCountry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRoomList=structtypenonrect=Room.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Room.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:Room.of_xml)letof_jsonj=list_of_json~kind:"RoomList"~of_json:Room.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResultMax=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:99)>>=(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 ResultMax"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleRoomMembershipList=structtypenonrect=RoomMembership.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RoomMembership.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:RoomMembership.of_xml)letof_jsonj=list_of_json~kind:"RoomMembershipList"~of_json:RoomMembership.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePhoneNumberList=structtypenonrect=PhoneNumber.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PhoneNumber.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:PhoneNumber.of_xml)letof_jsonj=list_of_json~kind:"PhoneNumberList"~of_json:PhoneNumber.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePhoneNumberOrderList=structtypenonrect=PhoneNumberOrder.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PhoneNumberOrder.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:PhoneNumberOrder.of_xml)letof_jsonj=list_of_json~kind:"PhoneNumberOrderList"~of_json:PhoneNumberOrder.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBotList=structtypenonrect=Bot.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Bot.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:Bot.of_xml)letof_jsonj=list_of_json~kind:"BotList"~of_json:Bot.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccountList=structtypenonrect=Account.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Account.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Account.of_xml)letof_jsonj=list_of_json~kind:"AccountList"~of_json:Account.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInviteList=structtypenonrect=Invite.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Invite.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:Invite.of_xml)letof_jsonj=list_of_json~kind:"InviteList"~of_json:Invite.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUserEmailList=structtypenonrect=EmailAddress.tlistletmakei=letopenResultinok_or_failwith(check_list_maxi~max:50);iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EmailAddress.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:EmailAddress.of_xml)letof_jsonj=list_of_json~kind:"UserEmailList"~of_json:EmailAddress.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNonEmptyStringList=structtypenonrect=String_.tlistletmakei=letopenResultinok_or_failwith(check_list_mini~min:1);iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"NonEmptyStringList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUnprocessableEntityException=structtypenonrect={code:ErrorCode.toption;message:String_.toption}letmake?code=fun?message->fun()->{code;message}letto_valuex=structure_to_value[("Code",(Option.mapx.code~f:ErrorCode.to_value));("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inletcode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"Code")inmake?message?code()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninletcode=field_mapjson__"Code"ErrorCode.of_jsoninmake?message?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was well-formed but was unable to be followed due to semantic errors."]moduleClientRequestToken=structtypenonrect=stringletcontext_="ClientRequestToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:2)>>=(fun()->(check_string_maxi~max:64)>>=(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:"ClientRequestToken"jletto_json=simple_to_jsonto_valueendmoduleJoinTokenString=structtypenonrect=stringletcontext_="JoinTokenString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:2)>>=(fun()->(check_string_maxi~max:2048)>>=(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:"JoinTokenString"jletto_json=simple_to_jsonto_valueendmoduleUserErrorList=structtypenonrect=UserError.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:UserError.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:UserError.of_xml)letof_jsonj=list_of_json~kind:"UserErrorList"~of_json:UserError.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUpdateUserRequestItemList=structtypenonrect=UpdateUserRequestItem.tlistletmakei=letopenResultinok_or_failwith(check_list_maxi~max:20);iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:UpdateUserRequestItem.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:UpdateUserRequestItem.of_xml)letof_jsonj=list_of_json~kind:"UpdateUserRequestItemList"~of_json:UpdateUserRequestItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePhoneNumberErrorList=structtypenonrect=PhoneNumberError.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PhoneNumberError.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:PhoneNumberError.of_xml)letof_jsonj=list_of_json~kind:"PhoneNumberErrorList"~of_json:PhoneNumberError.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUpdatePhoneNumberRequestItemList=structtypenonrect=UpdatePhoneNumberRequestItem.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:UpdatePhoneNumberRequestItem.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:UpdatePhoneNumberRequestItem.of_xml)letof_jsonj=list_of_json~kind:"UpdatePhoneNumberRequestItemList"~of_json:UpdatePhoneNumberRequestItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUserIdList=structtypenonrect=NonEmptyString.tlistletmakei=letopenResultinok_or_failwith(check_list_maxi~max:50);iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:NonEmptyString.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:NonEmptyString.of_xml)letof_jsonj=list_of_json~kind:"UserIdList"~of_json:NonEmptyString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMemberErrorList=structtypenonrect=MemberError.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MemberError.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:MemberError.of_xml)letof_jsonj=list_of_json~kind:"MemberErrorList"~of_json:MemberError.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMembershipItemList=structtypenonrect=MembershipItem.tlistletmakei=letopenResultinok_or_failwith(check_list_maxi~max:50);iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MembershipItem.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:MembershipItem.of_xml)letof_jsonj=list_of_json~kind:"MembershipItemList"~of_json:MembershipItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUpdateUserSettingsRequest=structtypenonrect={accountId:String_.t[@ocaml.doc"The Amazon Chime account ID."];userId:String_.t[@ocaml.doc"The user ID."];userSettings:UserSettings.t[@ocaml.doc"The user settings to update."]}letcontext_="UpdateUserSettingsRequest"letmake~accountId=fun~userId->fun~userSettings->fun()->{accountId;userId;userSettings}letto_valuex=structure_to_value[("accountId",(Some(String_.to_valuex.accountId)));("userId",(Some(String_.to_valuex.userId)));("UserSettings",(Some(UserSettings.to_valuex.userSettings)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserSettings=UserSettings.of_xml(Xml.child_exn~context:context_xml_arg0"UserSettings")inletuserId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"userId")inletaccountId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~userSettings~userId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserSettings=field_map_exnjson__"UserSettings"UserSettings.of_jsoninletuserId=field_map_exnjson__"UserId"String_.of_jsoninletaccountId=field_map_exnjson__"AccountId"String_.of_jsoninmake~userSettings~userId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the settings for the specified user, such as phone number settings."]moduleUpdateUserResponse=structtypenonrect={user:User.toption[@ocaml.doc"The updated user details."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?user=fun()->{user}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("User",(Option.mapx.user~f:User.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuser=(Option.map~f:User.of_xml)(Xml.childxml_arg0"User")inmake?user()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuser=field_mapjson__"User"User.of_jsoninmake?user()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates user details for a specified user ID. Currently, only LicenseType updates are supported for this action."]moduleUpdateUserRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];userId:NonEmptyString.t[@ocaml.doc"The user ID."];licenseType:License.toption[@ocaml.doc"The user license type to update. This must be a supported license type for the Amazon Chime account that the user belongs to."];userType:UserType.toption[@ocaml.doc"The user type."];alexaForBusinessMetadata:AlexaForBusinessMetadata.toption[@ocaml.doc"The Alexa for Business metadata."]}letcontext_="UpdateUserRequest"letmake?licenseType=fun?userType->fun?alexaForBusinessMetadata->fun~accountId->fun~userId->fun()->{licenseType;userType;alexaForBusinessMetadata;accountId;userId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("userId",(Some(NonEmptyString.to_valuex.userId)));("LicenseType",(Option.mapx.licenseType~f:License.to_value));("UserType",(Option.mapx.userType~f:UserType.to_value));("AlexaForBusinessMetadata",(Option.mapx.alexaForBusinessMetadata~f:AlexaForBusinessMetadata.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letalexaForBusinessMetadata=(Option.map~f:AlexaForBusinessMetadata.of_xml)(Xml.childxml_arg0"AlexaForBusinessMetadata")inletuserType=(Option.map~f:UserType.of_xml)(Xml.childxml_arg0"UserType")inletlicenseType=(Option.map~f:License.of_xml)(Xml.childxml_arg0"LicenseType")inletuserId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"userId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake?alexaForBusinessMetadata?userType?licenseType~userId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letalexaForBusinessMetadata=field_mapjson__"AlexaForBusinessMetadata"AlexaForBusinessMetadata.of_jsoninletuserType=field_mapjson__"UserType"UserType.of_jsoninletlicenseType=field_mapjson__"LicenseType"License.of_jsoninletuserId=field_map_exnjson__"UserId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake?alexaForBusinessMetadata?userType?licenseType~userId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates user details for a specified user ID. Currently, only LicenseType updates are supported for this action."]moduleUpdateRoomResponse=structtypenonrect={room:Room.toption[@ocaml.doc"The room details."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?room=fun()->{room}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Room",(Option.mapx.room~f:Room.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroom=(Option.map~f:Room.of_xml)(Xml.childxml_arg0"Room")inmake?room()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroom=field_mapjson__"Room"Room.of_jsoninmake?room()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates room details, such as the room name, for a room in an Amazon Chime Enterprise account."]moduleUpdateRoomRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];roomId:NonEmptyString.t[@ocaml.doc"The room ID."];name:SensitiveString.toption[@ocaml.doc"The room name."]}letcontext_="UpdateRoomRequest"letmake?name=fun~accountId->fun~roomId->fun()->{name;accountId;roomId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("roomId",(Some(NonEmptyString.to_valuex.roomId)));("Name",(Option.mapx.name~f:SensitiveString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=(Option.map~f:SensitiveString.of_xml)(Xml.childxml_arg0"Name")inletroomId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"roomId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake?name~roomId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_mapjson__"Name"SensitiveString.of_jsoninletroomId=field_map_exnjson__"RoomId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake?name~roomId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates room details, such as the room name, for a room in an Amazon Chime Enterprise account."]moduleUpdateRoomMembershipResponse=structtypenonrect={roomMembership:RoomMembership.toption[@ocaml.doc"The room membership details."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?roomMembership=fun()->{roomMembership}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("RoomMembership",(Option.mapx.roomMembership~f:RoomMembership.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroomMembership=(Option.map~f:RoomMembership.of_xml)(Xml.childxml_arg0"RoomMembership")inmake?roomMembership()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroomMembership=field_mapjson__"RoomMembership"RoomMembership.of_jsoninmake?roomMembership()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates room membership details, such as the member role, for a room in an Amazon Chime Enterprise account. The member role designates whether the member is a chat room administrator or a general chat room member. The member role can be updated only for user IDs."]moduleUpdateRoomMembershipRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];roomId:NonEmptyString.t[@ocaml.doc"The room ID."];memberId:NonEmptyString.t[@ocaml.doc"The member ID."];role:RoomMembershipRole.toption[@ocaml.doc"The role of the member."]}letcontext_="UpdateRoomMembershipRequest"letmake?role=fun~accountId->fun~roomId->fun~memberId->fun()->{role;accountId;roomId;memberId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("roomId",(Some(NonEmptyString.to_valuex.roomId)));("memberId",(Some(NonEmptyString.to_valuex.memberId)));("Role",(Option.mapx.role~f:RoomMembershipRole.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrole=(Option.map~f:RoomMembershipRole.of_xml)(Xml.childxml_arg0"Role")inletmemberId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"memberId")inletroomId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"roomId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake?role~memberId~roomId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrole=field_mapjson__"Role"RoomMembershipRole.of_jsoninletmemberId=field_map_exnjson__"MemberId"NonEmptyString.of_jsoninletroomId=field_map_exnjson__"RoomId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake?role~memberId~roomId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates room membership details, such as the member role, for a room in an Amazon Chime Enterprise account. The member role designates whether the member is a chat room administrator or a general chat room member. The member role can be updated only for user IDs."]moduleUpdatePhoneNumberSettingsRequest=structtypenonrect={callingName:CallingName.t[@ocaml.doc"The default outbound calling name for the account."]}letcontext_="UpdatePhoneNumberSettingsRequest"letmake~callingName=fun()->{callingName}letto_valuex=structure_to_value[("CallingName",(Some(CallingName.to_valuex.callingName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcallingName=CallingName.of_xml(Xml.child_exn~context:context_xml_arg0"CallingName")inmake~callingName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcallingName=field_map_exnjson__"CallingName"CallingName.of_jsoninmake~callingName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the phone number settings for the administrator's AWS account, such as the default outbound calling name. You can update the default outbound calling name once every seven days. Outbound calling names can take up to 72 hours to update."]moduleUpdatePhoneNumberResponse=structtypenonrect={phoneNumber:PhoneNumber.toption[@ocaml.doc"The updated phone number details."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ConflictExceptionofConflictException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?phoneNumber=fun()->{phoneNumber}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("PhoneNumber",(Option.mapx.phoneNumber~f:PhoneNumber.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letphoneNumber=(Option.map~f:PhoneNumber.of_xml)(Xml.childxml_arg0"PhoneNumber")inmake?phoneNumber()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letphoneNumber=field_mapjson__"PhoneNumber"PhoneNumber.of_jsoninmake?phoneNumber()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates phone number details, such as product type or calling name, for the specified phone number ID. You can update one phone number detail at a time. For example, you can update either the product type or the calling name in one action. For toll-free numbers, you cannot use the Amazon Chime Business Calling product type. For numbers outside the U.S., you must use the Amazon Chime SIP Media Application Dial-In product type. Updates to outbound calling names can take 72 hours to complete. Pending updates to outbound calling names must be complete before you can request another update."]moduleUpdatePhoneNumberRequest=structtypenonrect={phoneNumberId:String_.t[@ocaml.doc"The phone number ID."];productType:PhoneNumberProductType.toption[@ocaml.doc"The product type."];callingName:CallingName.toption[@ocaml.doc"The outbound calling name associated with the phone number."]}letcontext_="UpdatePhoneNumberRequest"letmake?productType=fun?callingName->fun~phoneNumberId->fun()->{productType;callingName;phoneNumberId}letto_valuex=structure_to_value[("phoneNumberId",(Some(String_.to_valuex.phoneNumberId)));("ProductType",(Option.mapx.productType~f:PhoneNumberProductType.to_value));("CallingName",(Option.mapx.callingName~f:CallingName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcallingName=(Option.map~f:CallingName.of_xml)(Xml.childxml_arg0"CallingName")inletproductType=(Option.map~f:PhoneNumberProductType.of_xml)(Xml.childxml_arg0"ProductType")inletphoneNumberId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"phoneNumberId")inmake?callingName?productType~phoneNumberId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcallingName=field_mapjson__"CallingName"CallingName.of_jsoninletproductType=field_mapjson__"ProductType"PhoneNumberProductType.of_jsoninletphoneNumberId=field_map_exnjson__"PhoneNumberId"String_.of_jsoninmake?callingName?productType~phoneNumberId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates phone number details, such as product type or calling name, for the specified phone number ID. You can update one phone number detail at a time. For example, you can update either the product type or the calling name in one action. For toll-free numbers, you cannot use the Amazon Chime Business Calling product type. For numbers outside the U.S., you must use the Amazon Chime SIP Media Application Dial-In product type. Updates to outbound calling names can take 72 hours to complete. Pending updates to outbound calling names must be complete before you can request another update."]moduleUpdateGlobalSettingsRequest=structtypenonrect={businessCalling:BusinessCallingSettings.toption[@ocaml.doc"The Amazon Chime Business Calling settings."];voiceConnector:VoiceConnectorSettings.toption[@ocaml.doc"The Amazon Chime Voice Connector settings."]}letmake?businessCalling=fun?voiceConnector->fun()->{businessCalling;voiceConnector}letto_valuex=structure_to_value[("BusinessCalling",(Option.mapx.businessCalling~f:BusinessCallingSettings.to_value));("VoiceConnector",(Option.mapx.voiceConnector~f:VoiceConnectorSettings.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvoiceConnector=(Option.map~f:VoiceConnectorSettings.of_xml)(Xml.childxml_arg0"VoiceConnector")inletbusinessCalling=(Option.map~f:BusinessCallingSettings.of_xml)(Xml.childxml_arg0"BusinessCalling")inmake?voiceConnector?businessCalling()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvoiceConnector=field_mapjson__"VoiceConnector"VoiceConnectorSettings.of_jsoninletbusinessCalling=field_mapjson__"BusinessCalling"BusinessCallingSettings.of_jsoninmake?voiceConnector?businessCalling()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates global settings for the administrator's AWS account, such as Amazon Chime Business Calling and Amazon Chime Voice Connector settings."]moduleUpdateBotResponse=structtypenonrect={bot:Bot.toption[@ocaml.doc"The updated bot details."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?bot=fun()->{bot}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Bot",(Option.mapx.bot~f:Bot.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbot=(Option.map~f:Bot.of_xml)(Xml.childxml_arg0"Bot")inmake?bot()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbot=field_mapjson__"Bot"Bot.of_jsoninmake?bot()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the status of the specified bot, such as starting or stopping the bot from running in your Amazon Chime Enterprise account."]moduleUpdateBotRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];botId:NonEmptyString.t[@ocaml.doc"The bot ID."];disabled:NullableBoolean.toption[@ocaml.doc"When true, stops the specified bot from running in your account."]}letcontext_="UpdateBotRequest"letmake?disabled=fun~accountId->fun~botId->fun()->{disabled;accountId;botId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("botId",(Some(NonEmptyString.to_valuex.botId)));("Disabled",(Option.mapx.disabled~f:NullableBoolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdisabled=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"Disabled")inletbotId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"botId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake?disabled~botId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdisabled=field_mapjson__"Disabled"NullableBoolean.of_jsoninletbotId=field_map_exnjson__"BotId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake?disabled~botId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the status of the specified bot, such as starting or stopping the bot from running in your Amazon Chime Enterprise account."]moduleUpdateAccountSettingsResponse=structtypenonrect=unittypenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ConflictExceptionofConflictException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.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 settings for the specified Amazon Chime account. You can update settings for remote control of shared screens, or for the dial-out option. For more information about these settings, see Use the Policies Page in the Amazon Chime Administration Guide."]moduleUpdateAccountSettingsRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];accountSettings:AccountSettings.t[@ocaml.doc"The Amazon Chime account settings to update."]}letcontext_="UpdateAccountSettingsRequest"letmake~accountId=fun~accountSettings->fun()->{accountId;accountSettings}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("AccountSettings",(Some(AccountSettings.to_valuex.accountSettings)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountSettings=AccountSettings.of_xml(Xml.child_exn~context:context_xml_arg0"AccountSettings")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~accountSettings~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountSettings=field_map_exnjson__"AccountSettings"AccountSettings.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~accountSettings~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the settings for the specified Amazon Chime account. You can update settings for remote control of shared screens, or for the dial-out option. For more information about these settings, see Use the Policies Page in the Amazon Chime Administration Guide."]moduleUpdateAccountResponse=structtypenonrect={account:Account.toption[@ocaml.doc"The updated Amazon Chime account details."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?account=fun()->{account}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Account",(Option.mapx.account~f:Account.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccount=(Option.map~f:Account.of_xml)(Xml.childxml_arg0"Account")inmake?account()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccount=field_mapjson__"Account"Account.of_jsoninmake?account()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates account details for the specified Amazon Chime account. Currently, only account name and default license updates are supported for this action."]moduleUpdateAccountRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];name:AccountName.toption[@ocaml.doc"The new name for the specified Amazon Chime account."];defaultLicense:License.toption[@ocaml.doc"The default license applied when you add users to an Amazon Chime account."]}letcontext_="UpdateAccountRequest"letmake?name=fun?defaultLicense->fun~accountId->fun()->{name;defaultLicense;accountId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("Name",(Option.mapx.name~f:AccountName.to_value));("DefaultLicense",(Option.mapx.defaultLicense~f:License.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdefaultLicense=(Option.map~f:License.of_xml)(Xml.childxml_arg0"DefaultLicense")inletname=(Option.map~f:AccountName.of_xml)(Xml.childxml_arg0"Name")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake?defaultLicense?name~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdefaultLicense=field_mapjson__"DefaultLicense"License.of_jsoninletname=field_mapjson__"Name"AccountName.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake?defaultLicense?name~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates account details for the specified Amazon Chime account. Currently, only account name and default license updates are supported for this action."]moduleSearchAvailablePhoneNumbersResponse=structtypenonrect={e164PhoneNumbers:E164PhoneNumberList.toption[@ocaml.doc"List of phone numbers, in E.164 format."];nextToken:String_.toption[@ocaml.doc"The token used to retrieve the next page of search results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?e164PhoneNumbers=fun?nextToken->fun()->{e164PhoneNumbers;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.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))]|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("E164PhoneNumbers",(Option.mapx.e164PhoneNumbers~f:E164PhoneNumberList.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inlete164PhoneNumbers=(Option.map~f:E164PhoneNumberList.of_xml)(Xml.childxml_arg0"E164PhoneNumbers")inmake?nextToken?e164PhoneNumbers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninlete164PhoneNumbers=field_mapjson__"E164PhoneNumbers"E164PhoneNumberList.of_jsoninmake?nextToken?e164PhoneNumbers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Searches for phone numbers that can be ordered. For US numbers, provide at least one of the following search filters: AreaCode, City, State, or TollFreePrefix. If you provide City, you must also provide State. Numbers outside the US only support the PhoneNumberType filter, which you must use."]moduleSearchAvailablePhoneNumbersRequest=structtypenonrect={areaCode:String_.toption[@ocaml.doc"The area code used to filter results. Only applies to the US."];city:String_.toption[@ocaml.doc"The city used to filter results. Only applies to the US."];country:Alpha2CountryCode.toption[@ocaml.doc"The country used to filter results. Defaults to the US Format: ISO 3166-1 alpha-2."];state:String_.toption[@ocaml.doc"The state used to filter results. Required only if you provide City. Only applies to the US."];tollFreePrefix:TollFreePrefix.toption[@ocaml.doc"The toll-free prefix that you use to filter results. Only applies to the US."];phoneNumberType:PhoneNumberType.toption[@ocaml.doc"The phone number type used to filter results. Required for non-US numbers."];maxResults:PhoneNumberMaxResults.toption[@ocaml.doc"The maximum number of results to return in a single call."];nextToken:String_.toption[@ocaml.doc"The token used to retrieve the next page of results."]}letmake?areaCode=fun?city->fun?country->fun?state->fun?tollFreePrefix->fun?phoneNumberType->fun?maxResults->fun?nextToken->fun()->{areaCode;city;country;state;tollFreePrefix;phoneNumberType;maxResults;nextToken}letto_valuex=structure_to_value[("area-code",(Option.mapx.areaCode~f:String_.to_value));("city",(Option.mapx.city~f:String_.to_value));("country",(Option.mapx.country~f:Alpha2CountryCode.to_value));("state",(Option.mapx.state~f:String_.to_value));("toll-free-prefix",(Option.mapx.tollFreePrefix~f:TollFreePrefix.to_value));("phone-number-type",(Option.mapx.phoneNumberType~f:PhoneNumberType.to_value));("max-results",(Option.mapx.maxResults~f:PhoneNumberMaxResults.to_value));("next-token",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"next-token")inletmaxResults=(Option.map~f:PhoneNumberMaxResults.of_xml)(Xml.childxml_arg0"max-results")inletphoneNumberType=(Option.map~f:PhoneNumberType.of_xml)(Xml.childxml_arg0"phone-number-type")inlettollFreePrefix=(Option.map~f:TollFreePrefix.of_xml)(Xml.childxml_arg0"toll-free-prefix")inletstate=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"state")inletcountry=(Option.map~f:Alpha2CountryCode.of_xml)(Xml.childxml_arg0"country")inletcity=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"city")inletareaCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"area-code")inmake?nextToken?maxResults?phoneNumberType?tollFreePrefix?state?country?city?areaCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletmaxResults=field_mapjson__"MaxResults"PhoneNumberMaxResults.of_jsoninletphoneNumberType=field_mapjson__"PhoneNumberType"PhoneNumberType.of_jsoninlettollFreePrefix=field_mapjson__"TollFreePrefix"TollFreePrefix.of_jsoninletstate=field_mapjson__"State"String_.of_jsoninletcountry=field_mapjson__"Country"Alpha2CountryCode.of_jsoninletcity=field_mapjson__"City"String_.of_jsoninletareaCode=field_mapjson__"AreaCode"String_.of_jsoninmake?nextToken?maxResults?phoneNumberType?tollFreePrefix?state?country?city?areaCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Searches for phone numbers that can be ordered. For US numbers, provide at least one of the following search filters: AreaCode, City, State, or TollFreePrefix. If you provide City, you must also provide State. Numbers outside the US only support the PhoneNumberType filter, which you must use."]moduleRestorePhoneNumberResponse=structtypenonrect={phoneNumber:PhoneNumber.toption[@ocaml.doc"The phone number details."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?phoneNumber=fun()->{phoneNumber}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("PhoneNumber",(Option.mapx.phoneNumber~f:PhoneNumber.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letphoneNumber=(Option.map~f:PhoneNumber.of_xml)(Xml.childxml_arg0"PhoneNumber")inmake?phoneNumber()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letphoneNumber=field_mapjson__"PhoneNumber"PhoneNumber.of_jsoninmake?phoneNumber()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Moves a phone number from the Deletion queue back into the phone number Inventory."]moduleRestorePhoneNumberRequest=structtypenonrect={phoneNumberId:NonEmptyString.t[@ocaml.doc"The phone number."]}letcontext_="RestorePhoneNumberRequest"letmake~phoneNumberId=fun()->{phoneNumberId}letto_valuex=structure_to_value[("phoneNumberId",(Some(NonEmptyString.to_valuex.phoneNumberId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letphoneNumberId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"phoneNumberId")inmake~phoneNumberId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letphoneNumberId=field_map_exnjson__"PhoneNumberId"NonEmptyString.of_jsoninmake~phoneNumberId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Moves a phone number from the Deletion queue back into the phone number Inventory."]moduleResetPersonalPINResponse=structtypenonrect={user:User.toption[@ocaml.doc"The user details and new personal meeting PIN."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?user=fun()->{user}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("User",(Option.mapx.user~f:User.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuser=(Option.map~f:User.of_xml)(Xml.childxml_arg0"User")inmake?user()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuser=field_mapjson__"User"User.of_jsoninmake?user()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Resets the personal meeting PIN for the specified user on an Amazon Chime account. Returns the User object with the updated personal meeting PIN."]moduleResetPersonalPINRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];userId:NonEmptyString.t[@ocaml.doc"The user ID."]}letcontext_="ResetPersonalPINRequest"letmake~accountId=fun~userId->fun()->{accountId;userId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("userId",(Some(NonEmptyString.to_valuex.userId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"userId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~userId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserId=field_map_exnjson__"UserId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~userId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Resets the personal meeting PIN for the specified user on an Amazon Chime account. Returns the User object with the updated personal meeting PIN."]moduleRegenerateSecurityTokenResponse=structtypenonrect={bot:Bot.toption[@ocaml.doc"A resource that allows Enterprise account administrators to configure an interface that receives events from Amazon Chime."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?bot=fun()->{bot}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Bot",(Option.mapx.bot~f:Bot.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbot=(Option.map~f:Bot.of_xml)(Xml.childxml_arg0"Bot")inmake?bot()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbot=field_mapjson__"Bot"Bot.of_jsoninmake?bot()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Regenerates the security token for a bot."]moduleRegenerateSecurityTokenRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];botId:NonEmptyString.t[@ocaml.doc"The bot ID."]}letcontext_="RegenerateSecurityTokenRequest"letmake~accountId=fun~botId->fun()->{accountId;botId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("botId",(Some(NonEmptyString.to_valuex.botId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbotId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"botId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~botId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbotId=field_map_exnjson__"BotId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~botId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Regenerates the security token for a bot."]moduleRedactRoomMessageResponse=structtypenonrect=unittypenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.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"Redacts the specified message from the specified Amazon Chime channel."]moduleRedactRoomMessageRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];roomId:NonEmptyString.t[@ocaml.doc"The room ID."];messageId:NonEmptyString.t[@ocaml.doc"The message ID."]}letcontext_="RedactRoomMessageRequest"letmake~accountId=fun~roomId->fun~messageId->fun()->{accountId;roomId;messageId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("roomId",(Some(NonEmptyString.to_valuex.roomId)));("messageId",(Some(NonEmptyString.to_valuex.messageId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessageId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"messageId")inletroomId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"roomId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~messageId~roomId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessageId=field_map_exnjson__"MessageId"NonEmptyString.of_jsoninletroomId=field_map_exnjson__"RoomId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~messageId~roomId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Redacts the specified message from the specified Amazon Chime channel."]moduleRedactConversationMessageResponse=structtypenonrect=unittypenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.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"Redacts the specified message from the specified Amazon Chime conversation."]moduleRedactConversationMessageRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];conversationId:NonEmptyString.t[@ocaml.doc"The conversation ID."];messageId:NonEmptyString.t[@ocaml.doc"The message ID."]}letcontext_="RedactConversationMessageRequest"letmake~accountId=fun~conversationId->fun~messageId->fun()->{accountId;conversationId;messageId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("conversationId",(Some(NonEmptyString.to_valuex.conversationId)));("messageId",(Some(NonEmptyString.to_valuex.messageId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessageId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"messageId")inletconversationId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"conversationId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~messageId~conversationId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessageId=field_map_exnjson__"MessageId"NonEmptyString.of_jsoninletconversationId=field_map_exnjson__"ConversationId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~messageId~conversationId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Redacts the specified message from the specified Amazon Chime conversation."]modulePutRetentionSettingsResponse=structtypenonrect={retentionSettings:RetentionSettings.toption[@ocaml.doc"The retention settings."];initiateDeletionTimestamp:Iso8601Timestamp.toption[@ocaml.doc"The timestamp representing the time at which the specified items are permanently deleted, in ISO 8601 format."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ConflictExceptionofConflictException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?retentionSettings=fun?initiateDeletionTimestamp->fun()->{retentionSettings;initiateDeletionTimestamp}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("RetentionSettings",(Option.mapx.retentionSettings~f:RetentionSettings.to_value));("InitiateDeletionTimestamp",(Option.mapx.initiateDeletionTimestamp~f:Iso8601Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinitiateDeletionTimestamp=(Option.map~f:Iso8601Timestamp.of_xml)(Xml.childxml_arg0"InitiateDeletionTimestamp")inletretentionSettings=(Option.map~f:RetentionSettings.of_xml)(Xml.childxml_arg0"RetentionSettings")inmake?initiateDeletionTimestamp?retentionSettings()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinitiateDeletionTimestamp=field_mapjson__"InitiateDeletionTimestamp"Iso8601Timestamp.of_jsoninletretentionSettings=field_mapjson__"RetentionSettings"RetentionSettings.of_jsoninmake?initiateDeletionTimestamp?retentionSettings()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Puts retention settings for the specified Amazon Chime Enterprise account. We recommend using AWS CloudTrail to monitor usage of this API for your account. For more information, see Logging Amazon Chime API Calls with AWS CloudTrail in the Amazon Chime Administration Guide. To turn off existing retention settings, remove the number of days from the corresponding RetentionDays field in the RetentionSettings object. For more information about retention settings, see Managing Chat Retention Policies in the Amazon Chime Administration Guide."]modulePutRetentionSettingsRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];retentionSettings:RetentionSettings.t[@ocaml.doc"The retention settings."]}letcontext_="PutRetentionSettingsRequest"letmake~accountId=fun~retentionSettings->fun()->{accountId;retentionSettings}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("RetentionSettings",(Some(RetentionSettings.to_valuex.retentionSettings)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretentionSettings=RetentionSettings.of_xml(Xml.child_exn~context:context_xml_arg0"RetentionSettings")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~retentionSettings~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretentionSettings=field_map_exnjson__"RetentionSettings"RetentionSettings.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~retentionSettings~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Puts retention settings for the specified Amazon Chime Enterprise account. We recommend using AWS CloudTrail to monitor usage of this API for your account. For more information, see Logging Amazon Chime API Calls with AWS CloudTrail in the Amazon Chime Administration Guide. To turn off existing retention settings, remove the number of days from the corresponding RetentionDays field in the RetentionSettings object. For more information about retention settings, see Managing Chat Retention Policies in the Amazon Chime Administration Guide."]modulePutEventsConfigurationResponse=structtypenonrect={eventsConfiguration:EventsConfiguration.toption[@ocaml.doc"The configuration that allows a bot to receive outgoing events. Can be an HTTPS endpoint or an AWS Lambda function ARN."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?eventsConfiguration=fun()->{eventsConfiguration}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("EventsConfiguration",(Option.mapx.eventsConfiguration~f:EventsConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteventsConfiguration=(Option.map~f:EventsConfiguration.of_xml)(Xml.childxml_arg0"EventsConfiguration")inmake?eventsConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteventsConfiguration=field_mapjson__"EventsConfiguration"EventsConfiguration.of_jsoninmake?eventsConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an events configuration that allows a bot to receive outgoing events sent by Amazon Chime. Choose either an HTTPS endpoint or a Lambda function ARN. For more information, see Bot."]modulePutEventsConfigurationRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];botId:NonEmptyString.t[@ocaml.doc"The bot ID."];outboundEventsHTTPSEndpoint:SensitiveString.toption[@ocaml.doc"HTTPS endpoint that allows the bot to receive outgoing events."];lambdaFunctionArn:SensitiveString.toption[@ocaml.doc"Lambda function ARN that allows the bot to receive outgoing events."]}letcontext_="PutEventsConfigurationRequest"letmake?outboundEventsHTTPSEndpoint=fun?lambdaFunctionArn->fun~accountId->fun~botId->fun()->{outboundEventsHTTPSEndpoint;lambdaFunctionArn;accountId;botId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("botId",(Some(NonEmptyString.to_valuex.botId)));("OutboundEventsHTTPSEndpoint",(Option.mapx.outboundEventsHTTPSEndpoint~f:SensitiveString.to_value));("LambdaFunctionArn",(Option.mapx.lambdaFunctionArn~f:SensitiveString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlambdaFunctionArn=(Option.map~f:SensitiveString.of_xml)(Xml.childxml_arg0"LambdaFunctionArn")inletoutboundEventsHTTPSEndpoint=(Option.map~f:SensitiveString.of_xml)(Xml.childxml_arg0"OutboundEventsHTTPSEndpoint")inletbotId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"botId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake?lambdaFunctionArn?outboundEventsHTTPSEndpoint~botId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlambdaFunctionArn=field_mapjson__"LambdaFunctionArn"SensitiveString.of_jsoninletoutboundEventsHTTPSEndpoint=field_mapjson__"OutboundEventsHTTPSEndpoint"SensitiveString.of_jsoninletbotId=field_map_exnjson__"BotId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake?lambdaFunctionArn?outboundEventsHTTPSEndpoint~botId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an events configuration that allows a bot to receive outgoing events sent by Amazon Chime. Choose either an HTTPS endpoint or a Lambda function ARN. For more information, see Bot."]moduleLogoutUserResponse=structtypenonrect=unittypenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.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"Logs out the specified user from all of the devices they are currently logged into."]moduleLogoutUserRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];userId:NonEmptyString.t[@ocaml.doc"The user ID."]}letcontext_="LogoutUserRequest"letmake~accountId=fun~userId->fun()->{accountId;userId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("userId",(Some(NonEmptyString.to_valuex.userId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"userId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~userId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserId=field_map_exnjson__"UserId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~userId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Logs out the specified user from all of the devices they are currently logged into."]moduleListUsersResponse=structtypenonrect={users:UserList.toption[@ocaml.doc"List of users and user details."];nextToken:String_.toption[@ocaml.doc"The token to use to retrieve the next page of results."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?users=fun?nextToken->fun()->{users;nextToken}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Users",(Option.mapx.users~f:UserList.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletusers=(Option.map~f:UserList.of_xml)(Xml.childxml_arg0"Users")inmake?nextToken?users()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletusers=field_mapjson__"Users"UserList.of_jsoninmake?nextToken?users()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the users that belong to the specified Amazon Chime account. You can specify an email address to list only the user that the email address belongs to."]moduleListUsersRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];userEmail:EmailAddress.toption[@ocaml.doc"Optional. The user email address used to filter results. Maximum 1."];userType:UserType.toption[@ocaml.doc"The user type."];maxResults:ProfileServiceMaxResults.toption[@ocaml.doc"The maximum number of results to return in a single call. Defaults to 100."];nextToken:String_.toption[@ocaml.doc"The token to use to retrieve the next page of results."]}letcontext_="ListUsersRequest"letmake?userEmail=fun?userType->fun?maxResults->fun?nextToken->fun~accountId->fun()->{userEmail;userType;maxResults;nextToken;accountId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("user-email",(Option.mapx.userEmail~f:EmailAddress.to_value));("user-type",(Option.mapx.userType~f:UserType.to_value));("max-results",(Option.mapx.maxResults~f:ProfileServiceMaxResults.to_value));("next-token",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"next-token")inletmaxResults=(Option.map~f:ProfileServiceMaxResults.of_xml)(Xml.childxml_arg0"max-results")inletuserType=(Option.map~f:UserType.of_xml)(Xml.childxml_arg0"user-type")inletuserEmail=(Option.map~f:EmailAddress.of_xml)(Xml.childxml_arg0"user-email")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake?nextToken?maxResults?userType?userEmail~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletmaxResults=field_mapjson__"MaxResults"ProfileServiceMaxResults.of_jsoninletuserType=field_mapjson__"UserType"UserType.of_jsoninletuserEmail=field_mapjson__"UserEmail"EmailAddress.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake?nextToken?maxResults?userType?userEmail~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the users that belong to the specified Amazon Chime account. You can specify an email address to list only the user that the email address belongs to."]moduleListSupportedPhoneNumberCountriesResponse=structtypenonrect={phoneNumberCountries:PhoneNumberCountriesList.toption[@ocaml.doc"The supported phone number countries."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?phoneNumberCountries=fun()->{phoneNumberCountries}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.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))]|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("PhoneNumberCountries",(Option.mapx.phoneNumberCountries~f:PhoneNumberCountriesList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letphoneNumberCountries=(Option.map~f:PhoneNumberCountriesList.of_xml)(Xml.childxml_arg0"PhoneNumberCountries")inmake?phoneNumberCountries()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letphoneNumberCountries=field_mapjson__"PhoneNumberCountries"PhoneNumberCountriesList.of_jsoninmake?phoneNumberCountries()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists supported phone number countries."]moduleListSupportedPhoneNumberCountriesRequest=structtypenonrect={productType:PhoneNumberProductType.t[@ocaml.doc"The phone number product type."]}letcontext_="ListSupportedPhoneNumberCountriesRequest"letmake~productType=fun()->{productType}letto_valuex=structure_to_value[("product-type",(Some(PhoneNumberProductType.to_valuex.productType)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letproductType=PhoneNumberProductType.of_xml(Xml.child_exn~context:context_xml_arg0"product-type")inmake~productType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letproductType=field_map_exnjson__"ProductType"PhoneNumberProductType.of_jsoninmake~productType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists supported phone number countries."]moduleListRoomsResponse=structtypenonrect={rooms:RoomList.toption[@ocaml.doc"The room details."];nextToken:String_.toption[@ocaml.doc"The token to use to retrieve the next page of results."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?rooms=fun?nextToken->fun()->{rooms;nextToken}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Rooms",(Option.mapx.rooms~f:RoomList.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletrooms=(Option.map~f:RoomList.of_xml)(Xml.childxml_arg0"Rooms")inmake?nextToken?rooms()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletrooms=field_mapjson__"Rooms"RoomList.of_jsoninmake?nextToken?rooms()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the room details for the specified Amazon Chime Enterprise account. Optionally, filter the results by a member ID (user ID or bot ID) to see a list of rooms that the member belongs to."]moduleListRoomsRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];memberId:String_.toption[@ocaml.doc"The member ID (user ID or bot ID)."];maxResults:ResultMax.toption[@ocaml.doc"The maximum number of results to return in a single call."];nextToken:String_.toption[@ocaml.doc"The token to use to retrieve the next page of results."]}letcontext_="ListRoomsRequest"letmake?memberId=fun?maxResults->fun?nextToken->fun~accountId->fun()->{memberId;maxResults;nextToken;accountId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("member-id",(Option.mapx.memberId~f:String_.to_value));("max-results",(Option.mapx.maxResults~f:ResultMax.to_value));("next-token",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"next-token")inletmaxResults=(Option.map~f:ResultMax.of_xml)(Xml.childxml_arg0"max-results")inletmemberId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"member-id")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake?nextToken?maxResults?memberId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletmaxResults=field_mapjson__"MaxResults"ResultMax.of_jsoninletmemberId=field_mapjson__"MemberId"String_.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake?nextToken?maxResults?memberId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the room details for the specified Amazon Chime Enterprise account. Optionally, filter the results by a member ID (user ID or bot ID) to see a list of rooms that the member belongs to."]moduleListRoomMembershipsResponse=structtypenonrect={roomMemberships:RoomMembershipList.toption[@ocaml.doc"The room membership details."];nextToken:String_.toption[@ocaml.doc"The token to use to retrieve the next page of results."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?roomMemberships=fun?nextToken->fun()->{roomMemberships;nextToken}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("RoomMemberships",(Option.mapx.roomMemberships~f:RoomMembershipList.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletroomMemberships=(Option.map~f:RoomMembershipList.of_xml)(Xml.childxml_arg0"RoomMemberships")inmake?nextToken?roomMemberships()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletroomMemberships=field_mapjson__"RoomMemberships"RoomMembershipList.of_jsoninmake?nextToken?roomMemberships()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the membership details for the specified room in an Amazon Chime Enterprise account, such as the members' IDs, email addresses, and names."]moduleListRoomMembershipsRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];roomId:NonEmptyString.t[@ocaml.doc"The room ID."];maxResults:ResultMax.toption[@ocaml.doc"The maximum number of results to return in a single call."];nextToken:String_.toption[@ocaml.doc"The token to use to retrieve the next page of results."]}letcontext_="ListRoomMembershipsRequest"letmake?maxResults=fun?nextToken->fun~accountId->fun~roomId->fun()->{maxResults;nextToken;accountId;roomId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("roomId",(Some(NonEmptyString.to_valuex.roomId)));("max-results",(Option.mapx.maxResults~f:ResultMax.to_value));("next-token",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"next-token")inletmaxResults=(Option.map~f:ResultMax.of_xml)(Xml.childxml_arg0"max-results")inletroomId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"roomId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake?nextToken?maxResults~roomId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletmaxResults=field_mapjson__"MaxResults"ResultMax.of_jsoninletroomId=field_map_exnjson__"RoomId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake?nextToken?maxResults~roomId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the membership details for the specified room in an Amazon Chime Enterprise account, such as the members' IDs, email addresses, and names."]moduleListPhoneNumbersResponse=structtypenonrect={phoneNumbers:PhoneNumberList.toption[@ocaml.doc"The phone number details."];nextToken:String_.toption[@ocaml.doc"The token to use to retrieve the next page of results."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?phoneNumbers=fun?nextToken->fun()->{phoneNumbers;nextToken}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("PhoneNumbers",(Option.mapx.phoneNumbers~f:PhoneNumberList.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletphoneNumbers=(Option.map~f:PhoneNumberList.of_xml)(Xml.childxml_arg0"PhoneNumbers")inmake?nextToken?phoneNumbers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletphoneNumbers=field_mapjson__"PhoneNumbers"PhoneNumberList.of_jsoninmake?nextToken?phoneNumbers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the phone numbers for the specified Amazon Chime account, Amazon Chime user, Amazon Chime Voice Connector, or Amazon Chime Voice Connector group."]moduleListPhoneNumbersRequest=structtypenonrect={status:PhoneNumberStatus.toption[@ocaml.doc"The phone number status."];productType:PhoneNumberProductType.toption[@ocaml.doc"The phone number product type."];filterName:PhoneNumberAssociationName.toption[@ocaml.doc"The filter to use to limit the number of results."];filterValue:String_.toption[@ocaml.doc"The value to use for the filter."];maxResults:ResultMax.toption[@ocaml.doc"The maximum number of results to return in a single call."];nextToken:String_.toption[@ocaml.doc"The token to use to retrieve the next page of results."]}letmake?status=fun?productType->fun?filterName->fun?filterValue->fun?maxResults->fun?nextToken->fun()->{status;productType;filterName;filterValue;maxResults;nextToken}letto_valuex=structure_to_value[("status",(Option.mapx.status~f:PhoneNumberStatus.to_value));("product-type",(Option.mapx.productType~f:PhoneNumberProductType.to_value));("filter-name",(Option.mapx.filterName~f:PhoneNumberAssociationName.to_value));("filter-value",(Option.mapx.filterValue~f:String_.to_value));("max-results",(Option.mapx.maxResults~f:ResultMax.to_value));("next-token",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"next-token")inletmaxResults=(Option.map~f:ResultMax.of_xml)(Xml.childxml_arg0"max-results")inletfilterValue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"filter-value")inletfilterName=(Option.map~f:PhoneNumberAssociationName.of_xml)(Xml.childxml_arg0"filter-name")inletproductType=(Option.map~f:PhoneNumberProductType.of_xml)(Xml.childxml_arg0"product-type")inletstatus=(Option.map~f:PhoneNumberStatus.of_xml)(Xml.childxml_arg0"status")inmake?nextToken?maxResults?filterValue?filterName?productType?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletmaxResults=field_mapjson__"MaxResults"ResultMax.of_jsoninletfilterValue=field_mapjson__"FilterValue"String_.of_jsoninletfilterName=field_mapjson__"FilterName"PhoneNumberAssociationName.of_jsoninletproductType=field_mapjson__"ProductType"PhoneNumberProductType.of_jsoninletstatus=field_mapjson__"Status"PhoneNumberStatus.of_jsoninmake?nextToken?maxResults?filterValue?filterName?productType?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the phone numbers for the specified Amazon Chime account, Amazon Chime user, Amazon Chime Voice Connector, or Amazon Chime Voice Connector group."]moduleListPhoneNumberOrdersResponse=structtypenonrect={phoneNumberOrders:PhoneNumberOrderList.toption[@ocaml.doc"The phone number order details."];nextToken:String_.toption[@ocaml.doc"The token to use to retrieve the next page of results."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?phoneNumberOrders=fun?nextToken->fun()->{phoneNumberOrders;nextToken}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("PhoneNumberOrders",(Option.mapx.phoneNumberOrders~f:PhoneNumberOrderList.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletphoneNumberOrders=(Option.map~f:PhoneNumberOrderList.of_xml)(Xml.childxml_arg0"PhoneNumberOrders")inmake?nextToken?phoneNumberOrders()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletphoneNumberOrders=field_mapjson__"PhoneNumberOrders"PhoneNumberOrderList.of_jsoninmake?nextToken?phoneNumberOrders()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the phone number orders for the administrator's Amazon Chime account."]moduleListPhoneNumberOrdersRequest=structtypenonrect={nextToken:String_.toption[@ocaml.doc"The token to use to retrieve the next page of results."];maxResults:ResultMax.toption[@ocaml.doc"The maximum number of results to return in a single call."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("next-token",(Option.mapx.nextToken~f:String_.to_value));("max-results",(Option.mapx.maxResults~f:ResultMax.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:ResultMax.of_xml)(Xml.childxml_arg0"max-results")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"next-token")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"ResultMax.of_jsoninletnextToken=field_mapjson__"NextToken"String_.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the phone number orders for the administrator's Amazon Chime account."]moduleListBotsResponse=structtypenonrect={bots:BotList.toption[@ocaml.doc"List of bots and bot details."];nextToken:String_.toption[@ocaml.doc"The token to use to retrieve the next page of results."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?bots=fun?nextToken->fun()->{bots;nextToken}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Bots",(Option.mapx.bots~f:BotList.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletbots=(Option.map~f:BotList.of_xml)(Xml.childxml_arg0"Bots")inmake?nextToken?bots()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletbots=field_mapjson__"Bots"BotList.of_jsoninmake?nextToken?bots()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the bots associated with the administrator's Amazon Chime Enterprise account ID."]moduleListBotsRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];maxResults:ResultMax.toption[@ocaml.doc"The maximum number of results to return in a single call. The default is 10."];nextToken:String_.toption[@ocaml.doc"The token to use to retrieve the next page of results."]}letcontext_="ListBotsRequest"letmake?maxResults=fun?nextToken->fun~accountId->fun()->{maxResults;nextToken;accountId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("max-results",(Option.mapx.maxResults~f:ResultMax.to_value));("next-token",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"next-token")inletmaxResults=(Option.map~f:ResultMax.of_xml)(Xml.childxml_arg0"max-results")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake?nextToken?maxResults~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletmaxResults=field_mapjson__"MaxResults"ResultMax.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake?nextToken?maxResults~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the bots associated with the administrator's Amazon Chime Enterprise account ID."]moduleListAccountsResponse=structtypenonrect={accounts:AccountList.toption[@ocaml.doc"List of Amazon Chime accounts and account details."];nextToken:String_.toption[@ocaml.doc"The token to use to retrieve the next page of results."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accounts=fun?nextToken->fun()->{accounts;nextToken}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Accounts",(Option.mapx.accounts~f:AccountList.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletaccounts=(Option.map~f:AccountList.of_xml)(Xml.childxml_arg0"Accounts")inmake?nextToken?accounts()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletaccounts=field_mapjson__"Accounts"AccountList.of_jsoninmake?nextToken?accounts()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the Amazon Chime accounts under the administrator's AWS account. You can filter accounts by account name prefix. To find out which Amazon Chime account a user belongs to, you can filter by the user's email address, which returns one account result."]moduleListAccountsRequest=structtypenonrect={name:AccountName.toption[@ocaml.doc"Amazon Chime account name prefix with which to filter results."];userEmail:EmailAddress.toption[@ocaml.doc"User email address with which to filter results."];nextToken:String_.toption[@ocaml.doc"The token to use to retrieve the next page of results."];maxResults:ProfileServiceMaxResults.toption[@ocaml.doc"The maximum number of results to return in a single call. Defaults to 100."]}letmake?name=fun?userEmail->fun?nextToken->fun?maxResults->fun()->{name;userEmail;nextToken;maxResults}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:AccountName.to_value));("user-email",(Option.mapx.userEmail~f:EmailAddress.to_value));("next-token",(Option.mapx.nextToken~f:String_.to_value));("max-results",(Option.mapx.maxResults~f:ProfileServiceMaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:ProfileServiceMaxResults.of_xml)(Xml.childxml_arg0"max-results")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"next-token")inletuserEmail=(Option.map~f:EmailAddress.of_xml)(Xml.childxml_arg0"user-email")inletname=(Option.map~f:AccountName.of_xml)(Xml.childxml_arg0"name")inmake?maxResults?nextToken?userEmail?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"ProfileServiceMaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"String_.of_jsoninletuserEmail=field_mapjson__"UserEmail"EmailAddress.of_jsoninletname=field_mapjson__"Name"AccountName.of_jsoninmake?maxResults?nextToken?userEmail?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the Amazon Chime accounts under the administrator's AWS account. You can filter accounts by account name prefix. To find out which Amazon Chime account a user belongs to, you can filter by the user's email address, which returns one account result."]moduleInviteUsersResponse=structtypenonrect={invites:InviteList.toption[@ocaml.doc"The email invitation details."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?invites=fun()->{invites}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Invites",(Option.mapx.invites~f:InviteList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinvites=(Option.map~f:InviteList.of_xml)(Xml.childxml_arg0"Invites")inmake?invites()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinvites=field_mapjson__"Invites"InviteList.of_jsoninmake?invites()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Sends email to a maximum of 50 users, inviting them to the specified Amazon Chime Team account. Only Team account types are currently supported for this action."]moduleInviteUsersRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];userEmailList:UserEmailList.t[@ocaml.doc"The user email addresses to which to send the email invitation."];userType:UserType.toption[@ocaml.doc"The user type."]}letcontext_="InviteUsersRequest"letmake?userType=fun~accountId->fun~userEmailList->fun()->{userType;accountId;userEmailList}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("UserEmailList",(Some(UserEmailList.to_valuex.userEmailList)));("UserType",(Option.mapx.userType~f:UserType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserType=(Option.map~f:UserType.of_xml)(Xml.childxml_arg0"UserType")inletuserEmailList=UserEmailList.of_xml(Xml.child_exn~context:context_xml_arg0"UserEmailList")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake?userType~userEmailList~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserType=field_mapjson__"UserType"UserType.of_jsoninletuserEmailList=field_map_exnjson__"UserEmailList"UserEmailList.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake?userType~userEmailList~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Sends email to a maximum of 50 users, inviting them to the specified Amazon Chime Team account. Only Team account types are currently supported for this action."]moduleGetUserSettingsResponse=structtypenonrect={userSettings:UserSettings.toption[@ocaml.doc"The user settings."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?userSettings=fun()->{userSettings}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("UserSettings",(Option.mapx.userSettings~f:UserSettings.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserSettings=(Option.map~f:UserSettings.of_xml)(Xml.childxml_arg0"UserSettings")inmake?userSettings()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserSettings=field_mapjson__"UserSettings"UserSettings.of_jsoninmake?userSettings()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves settings for the specified user ID, such as any associated phone number settings."]moduleGetUserSettingsRequest=structtypenonrect={accountId:String_.t[@ocaml.doc"The Amazon Chime account ID."];userId:String_.t[@ocaml.doc"The user ID."]}letcontext_="GetUserSettingsRequest"letmake~accountId=fun~userId->fun()->{accountId;userId}letto_valuex=structure_to_value[("accountId",(Some(String_.to_valuex.accountId)));("userId",(Some(String_.to_valuex.userId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"userId")inletaccountId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~userId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserId=field_map_exnjson__"UserId"String_.of_jsoninletaccountId=field_map_exnjson__"AccountId"String_.of_jsoninmake~userId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves settings for the specified user ID, such as any associated phone number settings."]moduleGetUserResponse=structtypenonrect={user:User.toption[@ocaml.doc"The user details."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?user=fun()->{user}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("User",(Option.mapx.user~f:User.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuser=(Option.map~f:User.of_xml)(Xml.childxml_arg0"User")inmake?user()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuser=field_mapjson__"User"User.of_jsoninmake?user()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details for the specified user ID, such as primary email address, license type,and personal meeting PIN. To retrieve user details with an email address instead of a user ID, use the ListUsers action, and then filter by email address."]moduleGetUserRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];userId:NonEmptyString.t[@ocaml.doc"The user ID."]}letcontext_="GetUserRequest"letmake~accountId=fun~userId->fun()->{accountId;userId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("userId",(Some(NonEmptyString.to_valuex.userId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"userId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~userId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserId=field_map_exnjson__"UserId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~userId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details for the specified user ID, such as primary email address, license type,and personal meeting PIN. To retrieve user details with an email address instead of a user ID, use the ListUsers action, and then filter by email address."]moduleGetRoomResponse=structtypenonrect={room:Room.toption[@ocaml.doc"The room details."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?room=fun()->{room}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Room",(Option.mapx.room~f:Room.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroom=(Option.map~f:Room.of_xml)(Xml.childxml_arg0"Room")inmake?room()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroom=field_mapjson__"Room"Room.of_jsoninmake?room()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves room details, such as the room name, for a room in an Amazon Chime Enterprise account."]moduleGetRoomRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];roomId:NonEmptyString.t[@ocaml.doc"The room ID."]}letcontext_="GetRoomRequest"letmake~accountId=fun~roomId->fun()->{accountId;roomId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("roomId",(Some(NonEmptyString.to_valuex.roomId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroomId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"roomId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~roomId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroomId=field_map_exnjson__"RoomId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~roomId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves room details, such as the room name, for a room in an Amazon Chime Enterprise account."]moduleGetRetentionSettingsResponse=structtypenonrect={retentionSettings:RetentionSettings.toption[@ocaml.doc"The retention settings."];initiateDeletionTimestamp:Iso8601Timestamp.toption[@ocaml.doc"The timestamp representing the time at which the specified items are permanently deleted, in ISO 8601 format."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?retentionSettings=fun?initiateDeletionTimestamp->fun()->{retentionSettings;initiateDeletionTimestamp}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("RetentionSettings",(Option.mapx.retentionSettings~f:RetentionSettings.to_value));("InitiateDeletionTimestamp",(Option.mapx.initiateDeletionTimestamp~f:Iso8601Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinitiateDeletionTimestamp=(Option.map~f:Iso8601Timestamp.of_xml)(Xml.childxml_arg0"InitiateDeletionTimestamp")inletretentionSettings=(Option.map~f:RetentionSettings.of_xml)(Xml.childxml_arg0"RetentionSettings")inmake?initiateDeletionTimestamp?retentionSettings()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinitiateDeletionTimestamp=field_mapjson__"InitiateDeletionTimestamp"Iso8601Timestamp.of_jsoninletretentionSettings=field_mapjson__"RetentionSettings"RetentionSettings.of_jsoninmake?initiateDeletionTimestamp?retentionSettings()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the retention settings for the specified Amazon Chime Enterprise account. For more information about retention settings, see Managing Chat Retention Policies in the Amazon Chime Administration Guide."]moduleGetRetentionSettingsRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."]}letcontext_="GetRetentionSettingsRequest"letmake~accountId=fun()->{accountId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the retention settings for the specified Amazon Chime Enterprise account. For more information about retention settings, see Managing Chat Retention Policies in the Amazon Chime Administration Guide."]moduleGetPhoneNumberSettingsResponse=structtypenonrect={callingName:CallingName.toption[@ocaml.doc"The default outbound calling name for the account."];callingNameUpdatedTimestamp:Iso8601Timestamp.toption[@ocaml.doc"The updated outbound calling name timestamp, in ISO 8601 format."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?callingName=fun?callingNameUpdatedTimestamp->fun()->{callingName;callingNameUpdatedTimestamp}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("CallingName",(Option.mapx.callingName~f:CallingName.to_value));("CallingNameUpdatedTimestamp",(Option.mapx.callingNameUpdatedTimestamp~f:Iso8601Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcallingNameUpdatedTimestamp=(Option.map~f:Iso8601Timestamp.of_xml)(Xml.childxml_arg0"CallingNameUpdatedTimestamp")inletcallingName=(Option.map~f:CallingName.of_xml)(Xml.childxml_arg0"CallingName")inmake?callingNameUpdatedTimestamp?callingName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcallingNameUpdatedTimestamp=field_mapjson__"CallingNameUpdatedTimestamp"Iso8601Timestamp.of_jsoninletcallingName=field_mapjson__"CallingName"CallingName.of_jsoninmake?callingNameUpdatedTimestamp?callingName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the phone number settings for the administrator's AWS account, such as the default outbound calling name."]moduleGetPhoneNumberResponse=structtypenonrect={phoneNumber:PhoneNumber.toption[@ocaml.doc"The phone number details."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?phoneNumber=fun()->{phoneNumber}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("PhoneNumber",(Option.mapx.phoneNumber~f:PhoneNumber.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letphoneNumber=(Option.map~f:PhoneNumber.of_xml)(Xml.childxml_arg0"PhoneNumber")inmake?phoneNumber()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letphoneNumber=field_mapjson__"PhoneNumber"PhoneNumber.of_jsoninmake?phoneNumber()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details for the specified phone number ID, such as associations, capabilities, and product type."]moduleGetPhoneNumberRequest=structtypenonrect={phoneNumberId:String_.t[@ocaml.doc"The phone number ID."]}letcontext_="GetPhoneNumberRequest"letmake~phoneNumberId=fun()->{phoneNumberId}letto_valuex=structure_to_value[("phoneNumberId",(Some(String_.to_valuex.phoneNumberId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letphoneNumberId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"phoneNumberId")inmake~phoneNumberId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letphoneNumberId=field_map_exnjson__"PhoneNumberId"String_.of_jsoninmake~phoneNumberId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details for the specified phone number ID, such as associations, capabilities, and product type."]moduleGetPhoneNumberOrderResponse=structtypenonrect={phoneNumberOrder:PhoneNumberOrder.toption[@ocaml.doc"The phone number order details."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?phoneNumberOrder=fun()->{phoneNumberOrder}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("PhoneNumberOrder",(Option.mapx.phoneNumberOrder~f:PhoneNumberOrder.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letphoneNumberOrder=(Option.map~f:PhoneNumberOrder.of_xml)(Xml.childxml_arg0"PhoneNumberOrder")inmake?phoneNumberOrder()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letphoneNumberOrder=field_mapjson__"PhoneNumberOrder"PhoneNumberOrder.of_jsoninmake?phoneNumberOrder()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details for the specified phone number order, such as the order creation timestamp, phone numbers in E.164 format, product type, and order status."]moduleGetPhoneNumberOrderRequest=structtypenonrect={phoneNumberOrderId:GuidString.t[@ocaml.doc"The ID for the phone number order."]}letcontext_="GetPhoneNumberOrderRequest"letmake~phoneNumberOrderId=fun()->{phoneNumberOrderId}letto_valuex=structure_to_value[("phoneNumberOrderId",(Some(GuidString.to_valuex.phoneNumberOrderId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letphoneNumberOrderId=GuidString.of_xml(Xml.child_exn~context:context_xml_arg0"phoneNumberOrderId")inmake~phoneNumberOrderId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letphoneNumberOrderId=field_map_exnjson__"PhoneNumberOrderId"GuidString.of_jsoninmake~phoneNumberOrderId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details for the specified phone number order, such as the order creation timestamp, phone numbers in E.164 format, product type, and order status."]moduleGetGlobalSettingsResponse=structtypenonrect={businessCalling:BusinessCallingSettings.toption[@ocaml.doc"The Amazon Chime Business Calling settings."];voiceConnector:VoiceConnectorSettings.toption[@ocaml.doc"The Amazon Chime Voice Connector settings."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?businessCalling=fun?voiceConnector->fun()->{businessCalling;voiceConnector}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("BusinessCalling",(Option.mapx.businessCalling~f:BusinessCallingSettings.to_value));("VoiceConnector",(Option.mapx.voiceConnector~f:VoiceConnectorSettings.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvoiceConnector=(Option.map~f:VoiceConnectorSettings.of_xml)(Xml.childxml_arg0"VoiceConnector")inletbusinessCalling=(Option.map~f:BusinessCallingSettings.of_xml)(Xml.childxml_arg0"BusinessCalling")inmake?voiceConnector?businessCalling()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvoiceConnector=field_mapjson__"VoiceConnector"VoiceConnectorSettings.of_jsoninletbusinessCalling=field_mapjson__"BusinessCalling"BusinessCallingSettings.of_jsoninmake?voiceConnector?businessCalling()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves global settings for the administrator's AWS account, such as Amazon Chime Business Calling and Amazon Chime Voice Connector settings."]moduleGetEventsConfigurationResponse=structtypenonrect={eventsConfiguration:EventsConfiguration.toption[@ocaml.doc"The events configuration details."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?eventsConfiguration=fun()->{eventsConfiguration}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("EventsConfiguration",(Option.mapx.eventsConfiguration~f:EventsConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteventsConfiguration=(Option.map~f:EventsConfiguration.of_xml)(Xml.childxml_arg0"EventsConfiguration")inmake?eventsConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteventsConfiguration=field_mapjson__"EventsConfiguration"EventsConfiguration.of_jsoninmake?eventsConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets details for an events configuration that allows a bot to receive outgoing events, such as an HTTPS endpoint or Lambda function ARN."]moduleGetEventsConfigurationRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];botId:NonEmptyString.t[@ocaml.doc"The bot ID."]}letcontext_="GetEventsConfigurationRequest"letmake~accountId=fun~botId->fun()->{accountId;botId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("botId",(Some(NonEmptyString.to_valuex.botId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbotId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"botId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~botId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbotId=field_map_exnjson__"BotId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~botId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets details for an events configuration that allows a bot to receive outgoing events, such as an HTTPS endpoint or Lambda function ARN."]moduleGetBotResponse=structtypenonrect={bot:Bot.toption[@ocaml.doc"The chat bot details."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?bot=fun()->{bot}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Bot",(Option.mapx.bot~f:Bot.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbot=(Option.map~f:Bot.of_xml)(Xml.childxml_arg0"Bot")inmake?bot()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbot=field_mapjson__"Bot"Bot.of_jsoninmake?bot()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details for the specified bot, such as bot email address, bot type, status, and display name."]moduleGetBotRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];botId:NonEmptyString.t[@ocaml.doc"The bot ID."]}letcontext_="GetBotRequest"letmake~accountId=fun~botId->fun()->{accountId;botId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("botId",(Some(NonEmptyString.to_valuex.botId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbotId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"botId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~botId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbotId=field_map_exnjson__"BotId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~botId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details for the specified bot, such as bot email address, bot type, status, and display name."]moduleGetAccountSettingsResponse=structtypenonrect={accountSettings:AccountSettings.toption[@ocaml.doc"The Amazon Chime account settings."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accountSettings=fun()->{accountSettings}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AccountSettings",(Option.mapx.accountSettings~f:AccountSettings.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountSettings=(Option.map~f:AccountSettings.of_xml)(Xml.childxml_arg0"AccountSettings")inmake?accountSettings()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountSettings=field_mapjson__"AccountSettings"AccountSettings.of_jsoninmake?accountSettings()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves account settings for the specified Amazon Chime account ID, such as remote control and dialout settings. For more information about these settings, see Use the Policies Page in the Amazon Chime Administration Guide."]moduleGetAccountSettingsRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."]}letcontext_="GetAccountSettingsRequest"letmake~accountId=fun()->{accountId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves account settings for the specified Amazon Chime account ID, such as remote control and dialout settings. For more information about these settings, see Use the Policies Page in the Amazon Chime Administration Guide."]moduleGetAccountResponse=structtypenonrect={account:Account.toption[@ocaml.doc"The Amazon Chime account details."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?account=fun()->{account}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Account",(Option.mapx.account~f:Account.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccount=(Option.map~f:Account.of_xml)(Xml.childxml_arg0"Account")inmake?account()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccount=field_mapjson__"Account"Account.of_jsoninmake?account()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details for the specified Amazon Chime account, such as account type and supported licenses."]moduleGetAccountRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."]}letcontext_="GetAccountRequest"letmake~accountId=fun()->{accountId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves details for the specified Amazon Chime account, such as account type and supported licenses."]moduleDisassociateSigninDelegateGroupsFromAccountResponse=structtypenonrect=unittypenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disassociates the specified sign-in delegate groups from the specified Amazon Chime account."]moduleDisassociateSigninDelegateGroupsFromAccountRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];groupNames:NonEmptyStringList.t[@ocaml.doc"The sign-in delegate group names."]}letcontext_="DisassociateSigninDelegateGroupsFromAccountRequest"letmake~accountId=fun~groupNames->fun()->{accountId;groupNames}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("GroupNames",(Some(NonEmptyStringList.to_valuex.groupNames)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgroupNames=NonEmptyStringList.of_xml(Xml.child_exn~context:context_xml_arg0"GroupNames")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~groupNames~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgroupNames=field_map_exnjson__"GroupNames"NonEmptyStringList.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~groupNames~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disassociates the specified sign-in delegate groups from the specified Amazon Chime account."]moduleDisassociatePhoneNumberFromUserResponse=structtypenonrect=unittypenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disassociates the primary provisioned phone number from the specified Amazon Chime user."]moduleDisassociatePhoneNumberFromUserRequest=structtypenonrect={accountId:String_.t[@ocaml.doc"The Amazon Chime account ID."];userId:String_.t[@ocaml.doc"The user ID."]}letcontext_="DisassociatePhoneNumberFromUserRequest"letmake~accountId=fun~userId->fun()->{accountId;userId}letto_valuex=structure_to_value[("accountId",(Some(String_.to_valuex.accountId)));("userId",(Some(String_.to_valuex.userId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"userId")inletaccountId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~userId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserId=field_map_exnjson__"UserId"String_.of_jsoninletaccountId=field_map_exnjson__"AccountId"String_.of_jsoninmake~userId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disassociates the primary provisioned phone number from the specified Amazon Chime user."]moduleDeleteRoomRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];roomId:NonEmptyString.t[@ocaml.doc"The chat room ID."]}letcontext_="DeleteRoomRequest"letmake~accountId=fun~roomId->fun()->{accountId;roomId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("roomId",(Some(NonEmptyString.to_valuex.roomId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroomId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"roomId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~roomId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroomId=field_map_exnjson__"RoomId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~roomId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a chat room in an Amazon Chime Enterprise account."]moduleDeleteRoomMembershipRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];roomId:NonEmptyString.t[@ocaml.doc"The room ID."];memberId:NonEmptyString.t[@ocaml.doc"The member ID (user ID or bot ID)."]}letcontext_="DeleteRoomMembershipRequest"letmake~accountId=fun~roomId->fun~memberId->fun()->{accountId;roomId;memberId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("roomId",(Some(NonEmptyString.to_valuex.roomId)));("memberId",(Some(NonEmptyString.to_valuex.memberId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmemberId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"memberId")inletroomId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"roomId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~memberId~roomId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmemberId=field_map_exnjson__"MemberId"NonEmptyString.of_jsoninletroomId=field_map_exnjson__"RoomId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~memberId~roomId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes a member from a chat room in an Amazon Chime Enterprise account."]moduleDeletePhoneNumberRequest=structtypenonrect={phoneNumberId:String_.t[@ocaml.doc"The phone number ID."]}letcontext_="DeletePhoneNumberRequest"letmake~phoneNumberId=fun()->{phoneNumberId}letto_valuex=structure_to_value[("phoneNumberId",(Some(String_.to_valuex.phoneNumberId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letphoneNumberId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"phoneNumberId")inmake~phoneNumberId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letphoneNumberId=field_map_exnjson__"PhoneNumberId"String_.of_jsoninmake~phoneNumberId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Moves the specified phone number into the Deletion queue. A phone number must be disassociated from any users or Amazon Chime Voice Connectors before it can be deleted. Deleted phone numbers remain in the Deletion queue for 7 days before they are deleted permanently."]moduleDeleteEventsConfigurationRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];botId:NonEmptyString.t[@ocaml.doc"The bot ID."]}letcontext_="DeleteEventsConfigurationRequest"letmake~accountId=fun~botId->fun()->{accountId;botId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("botId",(Some(NonEmptyString.to_valuex.botId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbotId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"botId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~botId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbotId=field_map_exnjson__"BotId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~botId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the events configuration that allows a bot to receive outgoing events."]moduleDeleteAccountResponse=structtypenonrect=unittypenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.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 specified Amazon Chime account. You must suspend all users before deleting Team account. You can use the BatchSuspendUser action to dodo. For EnterpriseLWA and EnterpriseAD accounts, you must release the claimed domains for your Amazon Chime account before deletion. As soon as you release the domain, all users under that account are suspended. Deleted accounts appear in your Disabled accounts list for 90 days. To restore deleted account from your Disabled accounts list, you must contact AWS Support. After 90 days, deleted accounts are permanently removed from your Disabled accounts list."]moduleDeleteAccountRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."]}letcontext_="DeleteAccountRequest"letmake~accountId=fun()->{accountId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified Amazon Chime account. You must suspend all users before deleting Team account. You can use the BatchSuspendUser action to dodo. For EnterpriseLWA and EnterpriseAD accounts, you must release the claimed domains for your Amazon Chime account before deletion. As soon as you release the domain, all users under that account are suspended. Deleted accounts appear in your Disabled accounts list for 90 days. To restore deleted account from your Disabled accounts list, you must contact AWS Support. After 90 days, deleted accounts are permanently removed from your Disabled accounts list."]moduleCreateUserResponse=structtypenonrect={user:User.toption[@ocaml.doc"The user on the Amazon Chime account."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ConflictExceptionofConflictException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?user=fun()->{user}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("User",(Option.mapx.user~f:User.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuser=(Option.map~f:User.of_xml)(Xml.childxml_arg0"User")inmake?user()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuser=field_mapjson__"User"User.of_jsoninmake?user()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a user under the specified Amazon Chime account."]moduleCreateUserRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];username:String_.toption[@ocaml.doc"The user name."];email:EmailAddress.toption[@ocaml.doc"The user's email address."];userType:UserType.toption[@ocaml.doc"The user type."]}letcontext_="CreateUserRequest"letmake?username=fun?email->fun?userType->fun~accountId->fun()->{username;email;userType;accountId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("Username",(Option.mapx.username~f:String_.to_value));("Email",(Option.mapx.email~f:EmailAddress.to_value));("UserType",(Option.mapx.userType~f:UserType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserType=(Option.map~f:UserType.of_xml)(Xml.childxml_arg0"UserType")inletemail=(Option.map~f:EmailAddress.of_xml)(Xml.childxml_arg0"Email")inletusername=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Username")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake?userType?email?username~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserType=field_mapjson__"UserType"UserType.of_jsoninletemail=field_mapjson__"Email"EmailAddress.of_jsoninletusername=field_mapjson__"Username"String_.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake?userType?email?username~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a user under the specified Amazon Chime account."]moduleCreateRoomResponse=structtypenonrect={room:Room.toption[@ocaml.doc"The room details."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?room=fun()->{room}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Room",(Option.mapx.room~f:Room.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroom=(Option.map~f:Room.of_xml)(Xml.childxml_arg0"Room")inmake?room()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroom=field_mapjson__"Room"Room.of_jsoninmake?room()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a chat room for the specified Amazon Chime Enterprise account."]moduleCreateRoomRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];name:SensitiveString.t[@ocaml.doc"The room name."];clientRequestToken:ClientRequestToken.toption[@ocaml.doc"The idempotency token for the request."]}letcontext_="CreateRoomRequest"letmake?clientRequestToken=fun~accountId->fun~name->fun()->{clientRequestToken;accountId;name}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("Name",(Some(SensitiveString.to_valuex.name)));("ClientRequestToken",(Option.mapx.clientRequestToken~f:ClientRequestToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientRequestToken=(Option.map~f:ClientRequestToken.of_xml)(Xml.childxml_arg0"ClientRequestToken")inletname=SensitiveString.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake?clientRequestToken~name~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientRequestToken=field_mapjson__"ClientRequestToken"ClientRequestToken.of_jsoninletname=field_map_exnjson__"Name"SensitiveString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake?clientRequestToken~name~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a chat room for the specified Amazon Chime Enterprise account."]moduleCreateRoomMembershipResponse=structtypenonrect={roomMembership:RoomMembership.toption[@ocaml.doc"The room membership details."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ConflictExceptionofConflictException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?roomMembership=fun()->{roomMembership}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("RoomMembership",(Option.mapx.roomMembership~f:RoomMembership.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroomMembership=(Option.map~f:RoomMembership.of_xml)(Xml.childxml_arg0"RoomMembership")inmake?roomMembership()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroomMembership=field_mapjson__"RoomMembership"RoomMembership.of_jsoninmake?roomMembership()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds a member to a chat room in an Amazon Chime Enterprise account. A member can be either a user or a bot. The member role designates whether the member is a chat room administrator or a general chat room member."]moduleCreateRoomMembershipRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];roomId:NonEmptyString.t[@ocaml.doc"The room ID."];memberId:NonEmptyString.t[@ocaml.doc"The Amazon Chime member ID (user ID or bot ID)."];role:RoomMembershipRole.toption[@ocaml.doc"The role of the member."]}letcontext_="CreateRoomMembershipRequest"letmake?role=fun~accountId->fun~roomId->fun~memberId->fun()->{role;accountId;roomId;memberId}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("roomId",(Some(NonEmptyString.to_valuex.roomId)));("MemberId",(Some(NonEmptyString.to_valuex.memberId)));("Role",(Option.mapx.role~f:RoomMembershipRole.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrole=(Option.map~f:RoomMembershipRole.of_xml)(Xml.childxml_arg0"Role")inletmemberId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"MemberId")inletroomId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"roomId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake?role~memberId~roomId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrole=field_mapjson__"Role"RoomMembershipRole.of_jsoninletmemberId=field_map_exnjson__"MemberId"NonEmptyString.of_jsoninletroomId=field_map_exnjson__"RoomId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake?role~memberId~roomId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds a member to a chat room in an Amazon Chime Enterprise account. A member can be either a user or a bot. The member role designates whether the member is a chat room administrator or a general chat room member."]moduleCreatePhoneNumberOrderResponse=structtypenonrect={phoneNumberOrder:PhoneNumberOrder.toption[@ocaml.doc"The phone number order details."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?phoneNumberOrder=fun()->{phoneNumberOrder}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.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))]|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("PhoneNumberOrder",(Option.mapx.phoneNumberOrder~f:PhoneNumberOrder.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letphoneNumberOrder=(Option.map~f:PhoneNumberOrder.of_xml)(Xml.childxml_arg0"PhoneNumberOrder")inmake?phoneNumberOrder()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letphoneNumberOrder=field_mapjson__"PhoneNumberOrder"PhoneNumberOrder.of_jsoninmake?phoneNumberOrder()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an order for phone numbers to be provisioned. For toll-free numbers, you cannot use the Amazon Chime Business Calling product type. For numbers outside the U.S., you must use the Amazon Chime SIP Media Application Dial-In product type."]moduleCreatePhoneNumberOrderRequest=structtypenonrect={productType:PhoneNumberProductType.t[@ocaml.doc"The phone number product type."];e164PhoneNumbers:E164PhoneNumberList.t[@ocaml.doc"List of phone numbers, in E.164 format."]}letcontext_="CreatePhoneNumberOrderRequest"letmake~productType=fun~e164PhoneNumbers->fun()->{productType;e164PhoneNumbers}letto_valuex=structure_to_value[("ProductType",(Some(PhoneNumberProductType.to_valuex.productType)));("E164PhoneNumbers",(Some(E164PhoneNumberList.to_valuex.e164PhoneNumbers)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lete164PhoneNumbers=E164PhoneNumberList.of_xml(Xml.child_exn~context:context_xml_arg0"E164PhoneNumbers")inletproductType=PhoneNumberProductType.of_xml(Xml.child_exn~context:context_xml_arg0"ProductType")inmake~e164PhoneNumbers~productType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lete164PhoneNumbers=field_map_exnjson__"E164PhoneNumbers"E164PhoneNumberList.of_jsoninletproductType=field_map_exnjson__"ProductType"PhoneNumberProductType.of_jsoninmake~e164PhoneNumbers~productType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an order for phone numbers to be provisioned. For toll-free numbers, you cannot use the Amazon Chime Business Calling product type. For numbers outside the U.S., you must use the Amazon Chime SIP Media Application Dial-In product type."]moduleCreateMeetingDialOutResponse=structtypenonrect={transactionId:GuidString.toption[@ocaml.doc"Unique ID that tracks API calls."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?transactionId=fun()->{transactionId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.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))]|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("TransactionId",(Option.mapx.transactionId~f:GuidString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettransactionId=(Option.map~f:GuidString.of_xml)(Xml.childxml_arg0"TransactionId")inmake?transactionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettransactionId=field_mapjson__"TransactionId"GuidString.of_jsoninmake?transactionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Uses the join token and call metadata in a meeting request (From number, To number, and so forth) to initiate an outbound call to a public switched telephone network (PSTN) and join them into a Chime meeting. Also ensures that the From number belongs to the customer. To play welcome audio or implement an interactive voice response (IVR), use the CreateSipMediaApplicationCall action with the corresponding SIP media application ID. This API is not available in a dedicated namespace."]moduleCreateMeetingDialOutRequest=structtypenonrect={meetingId:GuidString.t[@ocaml.doc"The Amazon Chime SDK meeting ID."];fromPhoneNumber:E164PhoneNumber.t[@ocaml.doc"Phone number used as the caller ID when the remote party receives a call."];toPhoneNumber:E164PhoneNumber.t[@ocaml.doc"Phone number called when inviting someone to a meeting."];joinToken:JoinTokenString.t[@ocaml.doc"Token used by the Amazon Chime SDK attendee. Call the CreateAttendee action to get a join token."]}letcontext_="CreateMeetingDialOutRequest"letmake~meetingId=fun~fromPhoneNumber->fun~toPhoneNumber->fun~joinToken->fun()->{meetingId;fromPhoneNumber;toPhoneNumber;joinToken}letto_valuex=structure_to_value[("meetingId",(Some(GuidString.to_valuex.meetingId)));("FromPhoneNumber",(Some(E164PhoneNumber.to_valuex.fromPhoneNumber)));("ToPhoneNumber",(Some(E164PhoneNumber.to_valuex.toPhoneNumber)));("JoinToken",(Some(JoinTokenString.to_valuex.joinToken)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjoinToken=JoinTokenString.of_xml(Xml.child_exn~context:context_xml_arg0"JoinToken")inlettoPhoneNumber=E164PhoneNumber.of_xml(Xml.child_exn~context:context_xml_arg0"ToPhoneNumber")inletfromPhoneNumber=E164PhoneNumber.of_xml(Xml.child_exn~context:context_xml_arg0"FromPhoneNumber")inletmeetingId=GuidString.of_xml(Xml.child_exn~context:context_xml_arg0"meetingId")inmake~joinToken~toPhoneNumber~fromPhoneNumber~meetingId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjoinToken=field_map_exnjson__"JoinToken"JoinTokenString.of_jsoninlettoPhoneNumber=field_map_exnjson__"ToPhoneNumber"E164PhoneNumber.of_jsoninletfromPhoneNumber=field_map_exnjson__"FromPhoneNumber"E164PhoneNumber.of_jsoninletmeetingId=field_map_exnjson__"MeetingId"GuidString.of_jsoninmake~joinToken~toPhoneNumber~fromPhoneNumber~meetingId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Uses the join token and call metadata in a meeting request (From number, To number, and so forth) to initiate an outbound call to a public switched telephone network (PSTN) and join them into a Chime meeting. Also ensures that the From number belongs to the customer. To play welcome audio or implement an interactive voice response (IVR), use the CreateSipMediaApplicationCall action with the corresponding SIP media application ID. This API is not available in a dedicated namespace."]moduleCreateBotResponse=structtypenonrect={bot:Bot.toption[@ocaml.doc"The bot details."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?bot=fun()->{bot}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Bot",(Option.mapx.bot~f:Bot.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbot=(Option.map~f:Bot.of_xml)(Xml.childxml_arg0"Bot")inmake?bot()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbot=field_mapjson__"Bot"Bot.of_jsoninmake?bot()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a bot for an Amazon Chime Enterprise account."]moduleCreateBotRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];displayName:SensitiveString.t[@ocaml.doc"The bot display name."];domain:NonEmptyString.toption[@ocaml.doc"The domain of the Amazon Chime Enterprise account."]}letcontext_="CreateBotRequest"letmake?domain=fun~accountId->fun~displayName->fun()->{domain;accountId;displayName}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("DisplayName",(Some(SensitiveString.to_valuex.displayName)));("Domain",(Option.mapx.domain~f:NonEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdomain=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"Domain")inletdisplayName=SensitiveString.of_xml(Xml.child_exn~context:context_xml_arg0"DisplayName")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake?domain~displayName~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdomain=field_mapjson__"Domain"NonEmptyString.of_jsoninletdisplayName=field_map_exnjson__"DisplayName"SensitiveString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake?domain~displayName~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a bot for an Amazon Chime Enterprise account."]moduleCreateAccountResponse=structtypenonrect={account:Account.toption[@ocaml.doc"The Amazon Chime account details."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?account=fun()->{account}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Account",(Option.mapx.account~f:Account.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccount=(Option.map~f:Account.of_xml)(Xml.childxml_arg0"Account")inmake?account()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccount=field_mapjson__"Account"Account.of_jsoninmake?account()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an Amazon Chime account under the administrator's AWS account. Only Team account types are currently supported for this action. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide."]moduleCreateAccountRequest=structtypenonrect={name:AccountName.t[@ocaml.doc"The name of the Amazon Chime account."]}letcontext_="CreateAccountRequest"letmake~name=fun()->{name}letto_valuex=structure_to_value[("Name",(Some(AccountName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=AccountName.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"AccountName.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an Amazon Chime account under the administrator's AWS account. Only Team account types are currently supported for this action. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide."]moduleBatchUpdateUserResponse=structtypenonrect={userErrors:UserErrorList.toption[@ocaml.doc"If the BatchUpdateUser action fails for one or more of the user IDs in the request, a list of the user IDs is returned, along with error codes and error messages."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?userErrors=fun()->{userErrors}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("UserErrors",(Option.mapx.userErrors~f:UserErrorList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserErrors=(Option.map~f:UserErrorList.of_xml)(Xml.childxml_arg0"UserErrors")inmake?userErrors()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserErrors=field_mapjson__"UserErrors"UserErrorList.of_jsoninmake?userErrors()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates user details within the UpdateUserRequestItem object for up to 20 users for the specified Amazon Chime account. Currently, only LicenseType updates are supported for this action."]moduleBatchUpdateUserRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];updateUserRequestItems:UpdateUserRequestItemList.t[@ocaml.doc"The request containing the user IDs and details to update."]}letcontext_="BatchUpdateUserRequest"letmake~accountId=fun~updateUserRequestItems->fun()->{accountId;updateUserRequestItems}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("UpdateUserRequestItems",(Some(UpdateUserRequestItemList.to_valuex.updateUserRequestItems)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letupdateUserRequestItems=UpdateUserRequestItemList.of_xml(Xml.child_exn~context:context_xml_arg0"UpdateUserRequestItems")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~updateUserRequestItems~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letupdateUserRequestItems=field_map_exnjson__"UpdateUserRequestItems"UpdateUserRequestItemList.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~updateUserRequestItems~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates user details within the UpdateUserRequestItem object for up to 20 users for the specified Amazon Chime account. Currently, only LicenseType updates are supported for this action."]moduleBatchUpdatePhoneNumberResponse=structtypenonrect={phoneNumberErrors:PhoneNumberErrorList.toption[@ocaml.doc"If the action fails for one or more of the phone numbers in the request, a list of the phone numbers is returned, along with error codes and error messages."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?phoneNumberErrors=fun()->{phoneNumberErrors}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("PhoneNumberErrors",(Option.mapx.phoneNumberErrors~f:PhoneNumberErrorList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letphoneNumberErrors=(Option.map~f:PhoneNumberErrorList.of_xml)(Xml.childxml_arg0"PhoneNumberErrors")inmake?phoneNumberErrors()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letphoneNumberErrors=field_mapjson__"PhoneNumberErrors"PhoneNumberErrorList.of_jsoninmake?phoneNumberErrors()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates phone number product types or calling names. You can update one attribute at a time for each UpdatePhoneNumberRequestItem. For example, you can update the product type or the calling name. For toll-free numbers, you cannot use the Amazon Chime Business Calling product type. For numbers outside the U.S., you must use the Amazon Chime SIP Media Application Dial-In product type. Updates to outbound calling names can take up to 72 hours to complete. Pending updates to outbound calling names must be complete before you can request another update."]moduleBatchUpdatePhoneNumberRequest=structtypenonrect={updatePhoneNumberRequestItems:UpdatePhoneNumberRequestItemList.t[@ocaml.doc"The request containing the phone number IDs and product types or calling names to update."]}letcontext_="BatchUpdatePhoneNumberRequest"letmake~updatePhoneNumberRequestItems=fun()->{updatePhoneNumberRequestItems}letto_valuex=structure_to_value[("UpdatePhoneNumberRequestItems",(Some(UpdatePhoneNumberRequestItemList.to_valuex.updatePhoneNumberRequestItems)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letupdatePhoneNumberRequestItems=UpdatePhoneNumberRequestItemList.of_xml(Xml.child_exn~context:context_xml_arg0"UpdatePhoneNumberRequestItems")inmake~updatePhoneNumberRequestItems()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letupdatePhoneNumberRequestItems=field_map_exnjson__"UpdatePhoneNumberRequestItems"UpdatePhoneNumberRequestItemList.of_jsoninmake~updatePhoneNumberRequestItems()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates phone number product types or calling names. You can update one attribute at a time for each UpdatePhoneNumberRequestItem. For example, you can update the product type or the calling name. For toll-free numbers, you cannot use the Amazon Chime Business Calling product type. For numbers outside the U.S., you must use the Amazon Chime SIP Media Application Dial-In product type. Updates to outbound calling names can take up to 72 hours to complete. Pending updates to outbound calling names must be complete before you can request another update."]moduleBatchUnsuspendUserResponse=structtypenonrect={userErrors:UserErrorList.toption[@ocaml.doc"If the BatchUnsuspendUser action fails for one or more of the user IDs in the request, a list of the user IDs is returned, along with error codes and error messages."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?userErrors=fun()->{userErrors}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("UserErrors",(Option.mapx.userErrors~f:UserErrorList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserErrors=(Option.map~f:UserErrorList.of_xml)(Xml.childxml_arg0"UserErrors")inmake?userErrors()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserErrors=field_mapjson__"UserErrors"UserErrorList.of_jsoninmake?userErrors()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the suspension from up to 50 previously suspended users for the specified Amazon Chime EnterpriseLWA account. Only users on EnterpriseLWA accounts can be unsuspended using this action. For more information about different account types, see Managing Your Amazon Chime Accounts in the account types, in the Amazon Chime Administration Guide. Previously suspended users who are unsuspended using this action are returned to Registered status. Users who are not previously suspended are ignored."]moduleBatchUnsuspendUserRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];userIdList:UserIdList.t[@ocaml.doc"The request containing the user IDs to unsuspend."]}letcontext_="BatchUnsuspendUserRequest"letmake~accountId=fun~userIdList->fun()->{accountId;userIdList}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("UserIdList",(Some(UserIdList.to_valuex.userIdList)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserIdList=UserIdList.of_xml(Xml.child_exn~context:context_xml_arg0"UserIdList")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~userIdList~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserIdList=field_map_exnjson__"UserIdList"UserIdList.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~userIdList~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the suspension from up to 50 previously suspended users for the specified Amazon Chime EnterpriseLWA account. Only users on EnterpriseLWA accounts can be unsuspended using this action. For more information about different account types, see Managing Your Amazon Chime Accounts in the account types, in the Amazon Chime Administration Guide. Previously suspended users who are unsuspended using this action are returned to Registered status. Users who are not previously suspended are ignored."]moduleBatchSuspendUserResponse=structtypenonrect={userErrors:UserErrorList.toption[@ocaml.doc"If the BatchSuspendUser action fails for one or more of the user IDs in the request, a list of the user IDs is returned, along with error codes and error messages."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?userErrors=fun()->{userErrors}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("UserErrors",(Option.mapx.userErrors~f:UserErrorList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserErrors=(Option.map~f:UserErrorList.of_xml)(Xml.childxml_arg0"UserErrors")inmake?userErrors()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserErrors=field_mapjson__"UserErrors"UserErrorList.of_jsoninmake?userErrors()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Suspends up to 50 users from a Team or EnterpriseLWA Amazon Chime account. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide. Users suspended from a Team account are disassociated from the account,but they can continue to use Amazon Chime as free users. To remove the suspension from suspended Team account users, invite them to the Team account again. You can use the InviteUsers action to do so. Users suspended from an EnterpriseLWA account are immediately signed out of Amazon Chime and can no longer sign in. To remove the suspension from suspended EnterpriseLWA account users, use the BatchUnsuspendUser action. To sign out users without suspending them, use the LogoutUser action."]moduleBatchSuspendUserRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];userIdList:UserIdList.t[@ocaml.doc"The request containing the user IDs to suspend."]}letcontext_="BatchSuspendUserRequest"letmake~accountId=fun~userIdList->fun()->{accountId;userIdList}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("UserIdList",(Some(UserIdList.to_valuex.userIdList)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserIdList=UserIdList.of_xml(Xml.child_exn~context:context_xml_arg0"UserIdList")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~userIdList~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserIdList=field_map_exnjson__"UserIdList"UserIdList.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~userIdList~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Suspends up to 50 users from a Team or EnterpriseLWA Amazon Chime account. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide. Users suspended from a Team account are disassociated from the account,but they can continue to use Amazon Chime as free users. To remove the suspension from suspended Team account users, invite them to the Team account again. You can use the InviteUsers action to do so. Users suspended from an EnterpriseLWA account are immediately signed out of Amazon Chime and can no longer sign in. To remove the suspension from suspended EnterpriseLWA account users, use the BatchUnsuspendUser action. To sign out users without suspending them, use the LogoutUser action."]moduleBatchDeletePhoneNumberResponse=structtypenonrect={phoneNumberErrors:PhoneNumberErrorList.toption[@ocaml.doc"If the action fails for one or more of the phone numbers in the request, a list of the phone numbers is returned, along with error codes and error messages."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?phoneNumberErrors=fun()->{phoneNumberErrors}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("PhoneNumberErrors",(Option.mapx.phoneNumberErrors~f:PhoneNumberErrorList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letphoneNumberErrors=(Option.map~f:PhoneNumberErrorList.of_xml)(Xml.childxml_arg0"PhoneNumberErrors")inmake?phoneNumberErrors()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letphoneNumberErrors=field_mapjson__"PhoneNumberErrors"PhoneNumberErrorList.of_jsoninmake?phoneNumberErrors()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Moves phone numbers into the Deletion queue. Phone numbers must be disassociated from any users or Amazon Chime Voice Connectors before they can be deleted. Phone numbers remain in the Deletion queue for 7 days before they are deleted permanently."]moduleBatchDeletePhoneNumberRequest=structtypenonrect={phoneNumberIds:NonEmptyStringList.t[@ocaml.doc"List of phone number IDs."]}letcontext_="BatchDeletePhoneNumberRequest"letmake~phoneNumberIds=fun()->{phoneNumberIds}letto_valuex=structure_to_value[("PhoneNumberIds",(Some(NonEmptyStringList.to_valuex.phoneNumberIds)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letphoneNumberIds=NonEmptyStringList.of_xml(Xml.child_exn~context:context_xml_arg0"PhoneNumberIds")inmake~phoneNumberIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letphoneNumberIds=field_map_exnjson__"PhoneNumberIds"NonEmptyStringList.of_jsoninmake~phoneNumberIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Moves phone numbers into the Deletion queue. Phone numbers must be disassociated from any users or Amazon Chime Voice Connectors before they can be deleted. Phone numbers remain in the Deletion queue for 7 days before they are deleted permanently."]moduleBatchCreateRoomMembershipResponse=structtypenonrect={errors:MemberErrorList.toption[@ocaml.doc"If the action fails for one or more of the member IDs in the request, a list of the member IDs is returned, along with error codes and error messages."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake?errors=fun()->{errors}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.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:MemberErrorList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrors=(Option.map~f:MemberErrorList.of_xml)(Xml.childxml_arg0"Errors")inmake?errors()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrors=field_mapjson__"Errors"MemberErrorList.of_jsoninmake?errors()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds up to 50 members to a chat room in an Amazon Chime Enterprise account. Members can be users or bots. The member role designates whether the member is a chat room administrator or a general chat room member."]moduleBatchCreateRoomMembershipRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];roomId:NonEmptyString.t[@ocaml.doc"The room ID."];membershipItemList:MembershipItemList.t[@ocaml.doc"The list of membership items."]}letcontext_="BatchCreateRoomMembershipRequest"letmake~accountId=fun~roomId->fun~membershipItemList->fun()->{accountId;roomId;membershipItemList}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("roomId",(Some(NonEmptyString.to_valuex.roomId)));("MembershipItemList",(Some(MembershipItemList.to_valuex.membershipItemList)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmembershipItemList=MembershipItemList.of_xml(Xml.child_exn~context:context_xml_arg0"MembershipItemList")inletroomId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"roomId")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~membershipItemList~roomId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmembershipItemList=field_map_exnjson__"MembershipItemList"MembershipItemList.of_jsoninletroomId=field_map_exnjson__"RoomId"NonEmptyString.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~membershipItemList~roomId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds up to 50 members to a chat room in an Amazon Chime Enterprise account. Members can be users or bots. The member role designates whether the member is a chat room administrator or a general chat room member."]moduleAssociateSigninDelegateGroupsWithAccountResponse=structtypenonrect=unittypenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates the specified sign-in delegate groups with the specified Amazon Chime account."]moduleAssociateSigninDelegateGroupsWithAccountRequest=structtypenonrect={accountId:NonEmptyString.t[@ocaml.doc"The Amazon Chime account ID."];signinDelegateGroups:SigninDelegateGroupList.t[@ocaml.doc"The sign-in delegate groups."]}letcontext_="AssociateSigninDelegateGroupsWithAccountRequest"letmake~accountId=fun~signinDelegateGroups->fun()->{accountId;signinDelegateGroups}letto_valuex=structure_to_value[("accountId",(Some(NonEmptyString.to_valuex.accountId)));("SigninDelegateGroups",(Some(SigninDelegateGroupList.to_valuex.signinDelegateGroups)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsigninDelegateGroups=SigninDelegateGroupList.of_xml(Xml.child_exn~context:context_xml_arg0"SigninDelegateGroups")inletaccountId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~signinDelegateGroups~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsigninDelegateGroups=field_map_exnjson__"SigninDelegateGroups"SigninDelegateGroupList.of_jsoninletaccountId=field_map_exnjson__"AccountId"NonEmptyString.of_jsoninmake~signinDelegateGroups~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates the specified sign-in delegate groups with the specified Amazon Chime account."]moduleAssociatePhoneNumberWithUserResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`BadRequestExceptionofBadRequestException.t|`ForbiddenExceptionofForbiddenException.t|`NotFoundExceptionofNotFoundException.t|`ServiceFailureExceptionofServiceFailureException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottledClientExceptionofThrottledClientException.t|`UnauthorizedClientExceptionofUnauthorizedClientException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_jsonjson)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceFailureException"->`ServiceFailureException(ServiceFailureException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottledClientException"->`ThrottledClientException(ThrottledClientException.of_xmlxml)|"UnauthorizedClientException"->`UnauthorizedClientException(UnauthorizedClientException.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))]|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceFailureExceptione->`Assoc[("error",(`String"ServiceFailureException"));("details",(ServiceFailureException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottledClientExceptione->`Assoc[("error",(`String"ThrottledClientException"));("details",(ThrottledClientException.to_jsone))]|`UnauthorizedClientExceptione->`Assoc[("error",(`String"UnauthorizedClientException"));("details",(UnauthorizedClientException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates a phone number with the specified Amazon Chime user."]moduleAssociatePhoneNumberWithUserRequest=structtypenonrect={accountId:String_.t[@ocaml.doc"The Amazon Chime account ID."];userId:String_.t[@ocaml.doc"The user ID."];e164PhoneNumber:E164PhoneNumber.t[@ocaml.doc"The phone number, in E.164 format."]}letcontext_="AssociatePhoneNumberWithUserRequest"letmake~accountId=fun~userId->fun~e164PhoneNumber->fun()->{accountId;userId;e164PhoneNumber}letto_valuex=structure_to_value[("accountId",(Some(String_.to_valuex.accountId)));("userId",(Some(String_.to_valuex.userId)));("E164PhoneNumber",(Some(E164PhoneNumber.to_valuex.e164PhoneNumber)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lete164PhoneNumber=E164PhoneNumber.of_xml(Xml.child_exn~context:context_xml_arg0"E164PhoneNumber")inletuserId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"userId")inletaccountId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~e164PhoneNumber~userId~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lete164PhoneNumber=field_map_exnjson__"E164PhoneNumber"E164PhoneNumber.of_jsoninletuserId=field_map_exnjson__"UserId"String_.of_jsoninletaccountId=field_map_exnjson__"AccountId"String_.of_jsoninmake~e164PhoneNumber~userId~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates a phone number with the specified Amazon Chime user."]