1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747(* 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.workspacesletapiVersion="2015-04-08"letendpointPrefix="workspaces"letserviceFullName="Amazon WorkSpaces"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"lettargetPrefix="WorkspacesService"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[]))])moduleAccessEndpointType=structtypenonrect=|STREAMING_WSP|Non_static_idofstringletmakei=iletto_string=function|STREAMING_WSP->"STREAMING_WSP"|Non_static_ids->sletof_string=function|"STREAMING_WSP"->STREAMING_WSP|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 AccessEndpointType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AccessEndpointType"j)letto_json=simple_to_jsonto_valueendmoduleAlphanumericDashUnderscoreNonEmptyString=structtypenonrect=stringletcontext_="AlphanumericDashUnderscoreNonEmptyString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^[a-zA-Z0-9\\_\\-]{1,1000}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AlphanumericDashUnderscoreNonEmptyString"jletto_json=simple_to_jsonto_valueendmoduleStorageConnectorStatusEnum=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration StorageConnectorStatusEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"StorageConnectorStatusEnum"j)letto_json=simple_to_jsonto_valueendmoduleStorageConnectorTypeEnum=structtypenonrect=|HOME_FOLDER|Non_static_idofstringletmakei=iletto_string=function|HOME_FOLDER->"HOME_FOLDER"|Non_static_ids->sletof_string=function|"HOME_FOLDER"->HOME_FOLDER|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 StorageConnectorTypeEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"StorageConnectorTypeEnum"j)letto_json=simple_to_jsonto_valueendmoduleMaximumLength=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:0);iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaximumLength"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleUserSettingActionEnum=structtypenonrect=|CLIPBOARD_COPY_FROM_LOCAL_DEVICE|CLIPBOARD_COPY_TO_LOCAL_DEVICE|PRINTING_TO_LOCAL_DEVICE|SMART_CARD|Non_static_idofstringletmakei=iletto_string=function|CLIPBOARD_COPY_FROM_LOCAL_DEVICE->"CLIPBOARD_COPY_FROM_LOCAL_DEVICE"|CLIPBOARD_COPY_TO_LOCAL_DEVICE->"CLIPBOARD_COPY_TO_LOCAL_DEVICE"|PRINTING_TO_LOCAL_DEVICE->"PRINTING_TO_LOCAL_DEVICE"|SMART_CARD->"SMART_CARD"|Non_static_ids->sletof_string=function|"CLIPBOARD_COPY_FROM_LOCAL_DEVICE"->CLIPBOARD_COPY_FROM_LOCAL_DEVICE|"CLIPBOARD_COPY_TO_LOCAL_DEVICE"->CLIPBOARD_COPY_TO_LOCAL_DEVICE|"PRINTING_TO_LOCAL_DEVICE"->PRINTING_TO_LOCAL_DEVICE|"SMART_CARD"->SMART_CARD|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 UserSettingActionEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"UserSettingActionEnum"j)letto_json=simple_to_jsonto_valueendmoduleUserSettingPermissionEnum=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration UserSettingPermissionEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"UserSettingPermissionEnum"j)letto_json=simple_to_jsonto_valueendmoduleAccessEndpoint=structtypenonrect={accessEndpointType:AccessEndpointType.toption[@ocaml.doc"Indicates the type of access endpoint."];vpcEndpointId:AlphanumericDashUnderscoreNonEmptyString.toption[@ocaml.doc"Indicates the VPC endpoint to use for access."]}letmake?accessEndpointType=fun?vpcEndpointId->fun()->{accessEndpointType;vpcEndpointId}letto_valuex=structure_to_value[("AccessEndpointType",(Option.mapx.accessEndpointType~f:AccessEndpointType.to_value));("VpcEndpointId",(Option.mapx.vpcEndpointId~f:AlphanumericDashUnderscoreNonEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvpcEndpointId=(Option.map~f:AlphanumericDashUnderscoreNonEmptyString.of_xml)(Xml.childxml_arg0"VpcEndpointId")inletaccessEndpointType=(Option.map~f:AccessEndpointType.of_xml)(Xml.childxml_arg0"AccessEndpointType")inmake?vpcEndpointId?accessEndpointType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvpcEndpointId=field_mapjson__"VpcEndpointId"AlphanumericDashUnderscoreNonEmptyString.of_jsoninletaccessEndpointType=field_mapjson__"AccessEndpointType"AccessEndpointType.of_jsoninmake?vpcEndpointId?accessEndpointType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the access type and endpoint for a WorkSpace."]moduleInternetFallbackProtocol=structtypenonrect=|PCOIP|Non_static_idofstringletmakei=iletto_string=function|PCOIP->"PCOIP"|Non_static_ids->sletof_string=function|"PCOIP"->PCOIP|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 InternetFallbackProtocol"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"InternetFallbackProtocol"j)letto_json=simple_to_jsonto_valueendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:127)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith(check_string_maxi~max:255);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleAGAModeForWorkSpaceEnum=structtypenonrect=|ENABLED_AUTO|DISABLED|INHERITED|Non_static_idofstringletmakei=iletto_string=function|ENABLED_AUTO->"ENABLED_AUTO"|DISABLED->"DISABLED"|INHERITED->"INHERITED"|Non_static_ids->sletof_string=function|"ENABLED_AUTO"->ENABLED_AUTO|"DISABLED"->DISABLED|"INHERITED"->INHERITED|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 AGAModeForWorkSpaceEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AGAModeForWorkSpaceEnum"j)letto_json=simple_to_jsonto_valueendmoduleAGAPreferredProtocolForWorkSpace=structtypenonrect=|TCP|NONE|INHERITED|Non_static_idofstringletmakei=iletto_string=function|TCP->"TCP"|NONE->"NONE"|INHERITED->"INHERITED"|Non_static_ids->sletof_string=function|"TCP"->TCP|"NONE"->NONE|"INHERITED"->INHERITED|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 AGAPreferredProtocolForWorkSpace"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AGAPreferredProtocolForWorkSpace"j)letto_json=simple_to_jsonto_valueendmoduleProtocol=structtypenonrect=|PCOIP|WSP|Non_static_idofstringletmakei=iletto_string=function|PCOIP->"PCOIP"|WSP->"WSP"|Non_static_ids->sletof_string=function|"PCOIP"->PCOIP|"WSP"->WSP|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 Protocol"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Protocol"j)letto_json=simple_to_jsonto_valueendmoduleModificationResourceEnum=structtypenonrect=|ROOT_VOLUME|USER_VOLUME|COMPUTE_TYPE|PROTOCOL|Non_static_idofstringletmakei=iletto_string=function|ROOT_VOLUME->"ROOT_VOLUME"|USER_VOLUME->"USER_VOLUME"|COMPUTE_TYPE->"COMPUTE_TYPE"|PROTOCOL->"PROTOCOL"|Non_static_ids->sletof_string=function|"ROOT_VOLUME"->ROOT_VOLUME|"USER_VOLUME"->USER_VOLUME|"COMPUTE_TYPE"->COMPUTE_TYPE|"PROTOCOL"->PROTOCOL|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 ModificationResourceEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ModificationResourceEnum"j)letto_json=simple_to_jsonto_valueendmoduleModificationStateEnum=structtypenonrect=|UPDATE_INITIATED|UPDATE_IN_PROGRESS|UPDATE_FAILED|Non_static_idofstringletmakei=iletto_string=function|UPDATE_INITIATED->"UPDATE_INITIATED"|UPDATE_IN_PROGRESS->"UPDATE_IN_PROGRESS"|UPDATE_FAILED->"UPDATE_FAILED"|Non_static_ids->sletof_string=function|"UPDATE_INITIATED"->UPDATE_INITIATED|"UPDATE_IN_PROGRESS"->UPDATE_IN_PROGRESS|"UPDATE_FAILED"->UPDATE_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 ModificationStateEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ModificationStateEnum"j)letto_json=simple_to_jsonto_valueendmoduleRegion=structtypenonrect=stringletcontext_="Region"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:31)>>=(fun()->check_patterni~pattern:"^[-0-9a-z]{1,31}$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Region"jletto_json=simple_to_jsonto_valueendmoduleStandbyWorkspaceRelationshipType=structtypenonrect=|PRIMARY|STANDBY|Non_static_idofstringletmakei=iletto_string=function|PRIMARY->"PRIMARY"|STANDBY->"STANDBY"|Non_static_ids->sletof_string=function|"PRIMARY"->PRIMARY|"STANDBY"->STANDBY|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 StandbyWorkspaceRelationshipType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"StandbyWorkspaceRelationshipType"j)letto_json=simple_to_jsonto_valueendmoduleWorkspaceId=structtypenonrect=stringletcontext_="WorkspaceId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^ws-[0-9a-z]{8,63}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"WorkspaceId"jletto_json=simple_to_jsonto_valueendmoduleWorkspaceState=structtypenonrect=|PENDING|AVAILABLE|IMPAIRED|UNHEALTHY|REBOOTING|STARTING|REBUILDING|RESTORING|MAINTENANCE|ADMIN_MAINTENANCE|TERMINATING|TERMINATED|SUSPENDED|UPDATING|STOPPING|STOPPED|ERROR|Non_static_idofstringletmakei=iletto_string=function|PENDING->"PENDING"|AVAILABLE->"AVAILABLE"|IMPAIRED->"IMPAIRED"|UNHEALTHY->"UNHEALTHY"|REBOOTING->"REBOOTING"|STARTING->"STARTING"|REBUILDING->"REBUILDING"|RESTORING->"RESTORING"|MAINTENANCE->"MAINTENANCE"|ADMIN_MAINTENANCE->"ADMIN_MAINTENANCE"|TERMINATING->"TERMINATING"|TERMINATED->"TERMINATED"|SUSPENDED->"SUSPENDED"|UPDATING->"UPDATING"|STOPPING->"STOPPING"|STOPPED->"STOPPED"|ERROR->"ERROR"|Non_static_ids->sletof_string=function|"PENDING"->PENDING|"AVAILABLE"->AVAILABLE|"IMPAIRED"->IMPAIRED|"UNHEALTHY"->UNHEALTHY|"REBOOTING"->REBOOTING|"STARTING"->STARTING|"REBUILDING"->REBUILDING|"RESTORING"->RESTORING|"MAINTENANCE"->MAINTENANCE|"ADMIN_MAINTENANCE"->ADMIN_MAINTENANCE|"TERMINATING"->TERMINATING|"TERMINATED"->TERMINATED|"SUSPENDED"->SUSPENDED|"UPDATING"->UPDATING|"STOPPING"->STOPPING|"STOPPED"->STOPPED|"ERROR"->ERROR|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration WorkspaceState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WorkspaceState"j)letto_json=simple_to_jsonto_valueendmoduleDataReplication=structtypenonrect=|NO_REPLICATION|PRIMARY_AS_SOURCE|Non_static_idofstringletmakei=iletto_string=function|NO_REPLICATION->"NO_REPLICATION"|PRIMARY_AS_SOURCE->"PRIMARY_AS_SOURCE"|Non_static_ids->sletof_string=function|"NO_REPLICATION"->NO_REPLICATION|"PRIMARY_AS_SOURCE"->PRIMARY_AS_SOURCE|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 DataReplication"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DataReplication"j)letto_json=simple_to_jsonto_valueendmoduleTimestamp=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleErrorMessage=structtypenonrect=stringletcontext_="ErrorMessage"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ErrorMessage"jletto_json=simple_to_jsonto_valueendmoduleWorkspacesPoolErrorCode=structtypenonrect=|IAM_SERVICE_ROLE_IS_MISSING|IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION|IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION|IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION|NETWORK_INTERFACE_LIMIT_EXCEEDED|INTERNAL_SERVICE_ERROR|MACHINE_ROLE_IS_MISSING|STS_DISABLED_IN_REGION|SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES|IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION|SUBNET_NOT_FOUND|IMAGE_NOT_FOUND|INVALID_SUBNET_CONFIGURATION|SECURITY_GROUPS_NOT_FOUND|IGW_NOT_ATTACHED|IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION|WORKSPACES_POOL_STOPPED|WORKSPACES_POOL_INSTANCE_PROVISIONING_FAILURE|DOMAIN_JOIN_ERROR_FILE_NOT_FOUND|DOMAIN_JOIN_ERROR_ACCESS_DENIED|DOMAIN_JOIN_ERROR_LOGON_FAILURE|DOMAIN_JOIN_ERROR_INVALID_PARAMETER|DOMAIN_JOIN_ERROR_MORE_DATA|DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN|DOMAIN_JOIN_ERROR_NOT_SUPPORTED|DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME|DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED|DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED|DOMAIN_JOIN_NERR_PASSWORD_EXPIRED|DOMAIN_JOIN_INTERNAL_SERVICE_ERROR|DOMAIN_JOIN_ERROR_SECRET_ACTION_PERMISSION_IS_MISSING|DOMAIN_JOIN_ERROR_SECRET_DECRYPTION_FAILURE|DOMAIN_JOIN_ERROR_SECRET_STATE_INVALID|DOMAIN_JOIN_ERROR_SECRET_NOT_FOUND|DOMAIN_JOIN_ERROR_SECRET_VALUE_KEY_NOT_FOUND|DOMAIN_JOIN_ERROR_SECRET_INVALID|BUNDLE_NOT_FOUND|DIRECTORY_NOT_FOUND|INSUFFICIENT_PERMISSIONS_ERROR|DEFAULT_OU_IS_MISSING|Non_static_idofstringletmakei=iletto_string=function|IAM_SERVICE_ROLE_IS_MISSING->"IAM_SERVICE_ROLE_IS_MISSING"|IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION->"IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION"|IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION->"IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION"|IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION->"IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION"|NETWORK_INTERFACE_LIMIT_EXCEEDED->"NETWORK_INTERFACE_LIMIT_EXCEEDED"|INTERNAL_SERVICE_ERROR->"INTERNAL_SERVICE_ERROR"|MACHINE_ROLE_IS_MISSING->"MACHINE_ROLE_IS_MISSING"|STS_DISABLED_IN_REGION->"STS_DISABLED_IN_REGION"|SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES->"SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES"|IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION->"IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION"|SUBNET_NOT_FOUND->"SUBNET_NOT_FOUND"|IMAGE_NOT_FOUND->"IMAGE_NOT_FOUND"|INVALID_SUBNET_CONFIGURATION->"INVALID_SUBNET_CONFIGURATION"|SECURITY_GROUPS_NOT_FOUND->"SECURITY_GROUPS_NOT_FOUND"|IGW_NOT_ATTACHED->"IGW_NOT_ATTACHED"|IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION->"IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION"|WORKSPACES_POOL_STOPPED->"WORKSPACES_POOL_STOPPED"|WORKSPACES_POOL_INSTANCE_PROVISIONING_FAILURE->"WORKSPACES_POOL_INSTANCE_PROVISIONING_FAILURE"|DOMAIN_JOIN_ERROR_FILE_NOT_FOUND->"DOMAIN_JOIN_ERROR_FILE_NOT_FOUND"|DOMAIN_JOIN_ERROR_ACCESS_DENIED->"DOMAIN_JOIN_ERROR_ACCESS_DENIED"|DOMAIN_JOIN_ERROR_LOGON_FAILURE->"DOMAIN_JOIN_ERROR_LOGON_FAILURE"|DOMAIN_JOIN_ERROR_INVALID_PARAMETER->"DOMAIN_JOIN_ERROR_INVALID_PARAMETER"|DOMAIN_JOIN_ERROR_MORE_DATA->"DOMAIN_JOIN_ERROR_MORE_DATA"|DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN->"DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN"|DOMAIN_JOIN_ERROR_NOT_SUPPORTED->"DOMAIN_JOIN_ERROR_NOT_SUPPORTED"|DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME->"DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME"|DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED->"DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED"|DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED->"DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED"|DOMAIN_JOIN_NERR_PASSWORD_EXPIRED->"DOMAIN_JOIN_NERR_PASSWORD_EXPIRED"|DOMAIN_JOIN_INTERNAL_SERVICE_ERROR->"DOMAIN_JOIN_INTERNAL_SERVICE_ERROR"|DOMAIN_JOIN_ERROR_SECRET_ACTION_PERMISSION_IS_MISSING->"DOMAIN_JOIN_ERROR_SECRET_ACTION_PERMISSION_IS_MISSING"|DOMAIN_JOIN_ERROR_SECRET_DECRYPTION_FAILURE->"DOMAIN_JOIN_ERROR_SECRET_DECRYPTION_FAILURE"|DOMAIN_JOIN_ERROR_SECRET_STATE_INVALID->"DOMAIN_JOIN_ERROR_SECRET_STATE_INVALID"|DOMAIN_JOIN_ERROR_SECRET_NOT_FOUND->"DOMAIN_JOIN_ERROR_SECRET_NOT_FOUND"|DOMAIN_JOIN_ERROR_SECRET_VALUE_KEY_NOT_FOUND->"DOMAIN_JOIN_ERROR_SECRET_VALUE_KEY_NOT_FOUND"|DOMAIN_JOIN_ERROR_SECRET_INVALID->"DOMAIN_JOIN_ERROR_SECRET_INVALID"|BUNDLE_NOT_FOUND->"BUNDLE_NOT_FOUND"|DIRECTORY_NOT_FOUND->"DIRECTORY_NOT_FOUND"|INSUFFICIENT_PERMISSIONS_ERROR->"INSUFFICIENT_PERMISSIONS_ERROR"|DEFAULT_OU_IS_MISSING->"DEFAULT_OU_IS_MISSING"|Non_static_ids->sletof_string=function|"IAM_SERVICE_ROLE_IS_MISSING"->IAM_SERVICE_ROLE_IS_MISSING|"IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION"->IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION|"IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION"->IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION|"IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION"->IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION|"NETWORK_INTERFACE_LIMIT_EXCEEDED"->NETWORK_INTERFACE_LIMIT_EXCEEDED|"INTERNAL_SERVICE_ERROR"->INTERNAL_SERVICE_ERROR|"MACHINE_ROLE_IS_MISSING"->MACHINE_ROLE_IS_MISSING|"STS_DISABLED_IN_REGION"->STS_DISABLED_IN_REGION|"SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES"->SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES|"IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION"->IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION|"SUBNET_NOT_FOUND"->SUBNET_NOT_FOUND|"IMAGE_NOT_FOUND"->IMAGE_NOT_FOUND|"INVALID_SUBNET_CONFIGURATION"->INVALID_SUBNET_CONFIGURATION|"SECURITY_GROUPS_NOT_FOUND"->SECURITY_GROUPS_NOT_FOUND|"IGW_NOT_ATTACHED"->IGW_NOT_ATTACHED|"IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION"->IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION|"WORKSPACES_POOL_STOPPED"->WORKSPACES_POOL_STOPPED|"WORKSPACES_POOL_INSTANCE_PROVISIONING_FAILURE"->WORKSPACES_POOL_INSTANCE_PROVISIONING_FAILURE|"DOMAIN_JOIN_ERROR_FILE_NOT_FOUND"->DOMAIN_JOIN_ERROR_FILE_NOT_FOUND|"DOMAIN_JOIN_ERROR_ACCESS_DENIED"->DOMAIN_JOIN_ERROR_ACCESS_DENIED|"DOMAIN_JOIN_ERROR_LOGON_FAILURE"->DOMAIN_JOIN_ERROR_LOGON_FAILURE|"DOMAIN_JOIN_ERROR_INVALID_PARAMETER"->DOMAIN_JOIN_ERROR_INVALID_PARAMETER|"DOMAIN_JOIN_ERROR_MORE_DATA"->DOMAIN_JOIN_ERROR_MORE_DATA|"DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN"->DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN|"DOMAIN_JOIN_ERROR_NOT_SUPPORTED"->DOMAIN_JOIN_ERROR_NOT_SUPPORTED|"DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME"->DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME|"DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED"->DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED|"DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED"->DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED|"DOMAIN_JOIN_NERR_PASSWORD_EXPIRED"->DOMAIN_JOIN_NERR_PASSWORD_EXPIRED|"DOMAIN_JOIN_INTERNAL_SERVICE_ERROR"->DOMAIN_JOIN_INTERNAL_SERVICE_ERROR|"DOMAIN_JOIN_ERROR_SECRET_ACTION_PERMISSION_IS_MISSING"->DOMAIN_JOIN_ERROR_SECRET_ACTION_PERMISSION_IS_MISSING|"DOMAIN_JOIN_ERROR_SECRET_DECRYPTION_FAILURE"->DOMAIN_JOIN_ERROR_SECRET_DECRYPTION_FAILURE|"DOMAIN_JOIN_ERROR_SECRET_STATE_INVALID"->DOMAIN_JOIN_ERROR_SECRET_STATE_INVALID|"DOMAIN_JOIN_ERROR_SECRET_NOT_FOUND"->DOMAIN_JOIN_ERROR_SECRET_NOT_FOUND|"DOMAIN_JOIN_ERROR_SECRET_VALUE_KEY_NOT_FOUND"->DOMAIN_JOIN_ERROR_SECRET_VALUE_KEY_NOT_FOUND|"DOMAIN_JOIN_ERROR_SECRET_INVALID"->DOMAIN_JOIN_ERROR_SECRET_INVALID|"BUNDLE_NOT_FOUND"->BUNDLE_NOT_FOUND|"DIRECTORY_NOT_FOUND"->DIRECTORY_NOT_FOUND|"INSUFFICIENT_PERMISSIONS_ERROR"->INSUFFICIENT_PERMISSIONS_ERROR|"DEFAULT_OU_IS_MISSING"->DEFAULT_OU_IS_MISSING|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 WorkspacesPoolErrorCode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WorkspacesPoolErrorCode"j)letto_json=simple_to_jsonto_valueendmoduleDescription=structtypenonrect=stringletcontext_="Description"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:"Description"jletto_json=simple_to_jsonto_valueendmoduleWorkspaceImageErrorDetailCode=structtypenonrect=|OutdatedPowershellVersion|OfficeInstalled|PCoIPAgentInstalled|WindowsUpdatesEnabled|AutoMountDisabled|WorkspacesBYOLAccountNotFound|WorkspacesBYOLAccountDisabled|DHCPDisabled|DiskFreeSpace|AdditionalDrivesAttached|OSNotSupported|DomainJoined|AzureDomainJoined|FirewallEnabled|VMWareToolsInstalled|DiskSizeExceeded|IncompatiblePartitioning|PendingReboot|AutoLogonEnabled|RealTimeUniversalDisabled|MultipleBootPartition|Requires64BitOS|ZeroRearmCount|InPlaceUpgrade|AntiVirusInstalled|UEFINotSupported|UnknownError|AppXPackagesInstalled|ReservedStorageInUse|AdditionalDrivesPresent|WindowsUpdatesRequired|SysPrepFileMissing|UserProfileMissing|InsufficientDiskSpace|EnvironmentVariablesPathMissingEntries|DomainAccountServicesFound|InvalidIp|RemoteDesktopServicesDisabled|WindowsModulesInstallerDisabled|AmazonSsmAgentEnabled|UnsupportedSecurityProtocol|MultipleUserProfiles|StagedAppxPackage|UnsupportedOsUpgrade|InsufficientRearmCount|ProtocolOSIncompatibility|MemoryIntegrityIncompatibility|RestrictedDriveLetterInUse|Non_static_idofstringletmakei=iletto_string=function|OutdatedPowershellVersion->"OutdatedPowershellVersion"|OfficeInstalled->"OfficeInstalled"|PCoIPAgentInstalled->"PCoIPAgentInstalled"|WindowsUpdatesEnabled->"WindowsUpdatesEnabled"|AutoMountDisabled->"AutoMountDisabled"|WorkspacesBYOLAccountNotFound->"WorkspacesBYOLAccountNotFound"|WorkspacesBYOLAccountDisabled->"WorkspacesBYOLAccountDisabled"|DHCPDisabled->"DHCPDisabled"|DiskFreeSpace->"DiskFreeSpace"|AdditionalDrivesAttached->"AdditionalDrivesAttached"|OSNotSupported->"OSNotSupported"|DomainJoined->"DomainJoined"|AzureDomainJoined->"AzureDomainJoined"|FirewallEnabled->"FirewallEnabled"|VMWareToolsInstalled->"VMWareToolsInstalled"|DiskSizeExceeded->"DiskSizeExceeded"|IncompatiblePartitioning->"IncompatiblePartitioning"|PendingReboot->"PendingReboot"|AutoLogonEnabled->"AutoLogonEnabled"|RealTimeUniversalDisabled->"RealTimeUniversalDisabled"|MultipleBootPartition->"MultipleBootPartition"|Requires64BitOS->"Requires64BitOS"|ZeroRearmCount->"ZeroRearmCount"|InPlaceUpgrade->"InPlaceUpgrade"|AntiVirusInstalled->"AntiVirusInstalled"|UEFINotSupported->"UEFINotSupported"|UnknownError->"UnknownError"|AppXPackagesInstalled->"AppXPackagesInstalled"|ReservedStorageInUse->"ReservedStorageInUse"|AdditionalDrivesPresent->"AdditionalDrivesPresent"|WindowsUpdatesRequired->"WindowsUpdatesRequired"|SysPrepFileMissing->"SysPrepFileMissing"|UserProfileMissing->"UserProfileMissing"|InsufficientDiskSpace->"InsufficientDiskSpace"|EnvironmentVariablesPathMissingEntries->"EnvironmentVariablesPathMissingEntries"|DomainAccountServicesFound->"DomainAccountServicesFound"|InvalidIp->"InvalidIp"|RemoteDesktopServicesDisabled->"RemoteDesktopServicesDisabled"|WindowsModulesInstallerDisabled->"WindowsModulesInstallerDisabled"|AmazonSsmAgentEnabled->"AmazonSsmAgentEnabled"|UnsupportedSecurityProtocol->"UnsupportedSecurityProtocol"|MultipleUserProfiles->"MultipleUserProfiles"|StagedAppxPackage->"StagedAppxPackage"|UnsupportedOsUpgrade->"UnsupportedOsUpgrade"|InsufficientRearmCount->"InsufficientRearmCount"|ProtocolOSIncompatibility->"ProtocolOSIncompatibility"|MemoryIntegrityIncompatibility->"MemoryIntegrityIncompatibility"|RestrictedDriveLetterInUse->"RestrictedDriveLetterInUse"|Non_static_ids->sletof_string=function|"OutdatedPowershellVersion"->OutdatedPowershellVersion|"OfficeInstalled"->OfficeInstalled|"PCoIPAgentInstalled"->PCoIPAgentInstalled|"WindowsUpdatesEnabled"->WindowsUpdatesEnabled|"AutoMountDisabled"->AutoMountDisabled|"WorkspacesBYOLAccountNotFound"->WorkspacesBYOLAccountNotFound|"WorkspacesBYOLAccountDisabled"->WorkspacesBYOLAccountDisabled|"DHCPDisabled"->DHCPDisabled|"DiskFreeSpace"->DiskFreeSpace|"AdditionalDrivesAttached"->AdditionalDrivesAttached|"OSNotSupported"->OSNotSupported|"DomainJoined"->DomainJoined|"AzureDomainJoined"->AzureDomainJoined|"FirewallEnabled"->FirewallEnabled|"VMWareToolsInstalled"->VMWareToolsInstalled|"DiskSizeExceeded"->DiskSizeExceeded|"IncompatiblePartitioning"->IncompatiblePartitioning|"PendingReboot"->PendingReboot|"AutoLogonEnabled"->AutoLogonEnabled|"RealTimeUniversalDisabled"->RealTimeUniversalDisabled|"MultipleBootPartition"->MultipleBootPartition|"Requires64BitOS"->Requires64BitOS|"ZeroRearmCount"->ZeroRearmCount|"InPlaceUpgrade"->InPlaceUpgrade|"AntiVirusInstalled"->AntiVirusInstalled|"UEFINotSupported"->UEFINotSupported|"UnknownError"->UnknownError|"AppXPackagesInstalled"->AppXPackagesInstalled|"ReservedStorageInUse"->ReservedStorageInUse|"AdditionalDrivesPresent"->AdditionalDrivesPresent|"WindowsUpdatesRequired"->WindowsUpdatesRequired|"SysPrepFileMissing"->SysPrepFileMissing|"UserProfileMissing"->UserProfileMissing|"InsufficientDiskSpace"->InsufficientDiskSpace|"EnvironmentVariablesPathMissingEntries"->EnvironmentVariablesPathMissingEntries|"DomainAccountServicesFound"->DomainAccountServicesFound|"InvalidIp"->InvalidIp|"RemoteDesktopServicesDisabled"->RemoteDesktopServicesDisabled|"WindowsModulesInstallerDisabled"->WindowsModulesInstallerDisabled|"AmazonSsmAgentEnabled"->AmazonSsmAgentEnabled|"UnsupportedSecurityProtocol"->UnsupportedSecurityProtocol|"MultipleUserProfiles"->MultipleUserProfiles|"StagedAppxPackage"->StagedAppxPackage|"UnsupportedOsUpgrade"->UnsupportedOsUpgrade|"InsufficientRearmCount"->InsufficientRearmCount|"ProtocolOSIncompatibility"->ProtocolOSIncompatibility|"MemoryIntegrityIncompatibility"->MemoryIntegrityIncompatibility|"RestrictedDriveLetterInUse"->RestrictedDriveLetterInUse|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 WorkspaceImageErrorDetailCode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WorkspaceImageErrorDetailCode"j)letto_json=simple_to_jsonto_valueendmoduleAGAModeForDirectoryEnum=structtypenonrect=|ENABLED_AUTO|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED_AUTO->"ENABLED_AUTO"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED_AUTO"->ENABLED_AUTO|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration AGAModeForDirectoryEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AGAModeForDirectoryEnum"j)letto_json=simple_to_jsonto_valueendmoduleAGAPreferredProtocolForDirectory=structtypenonrect=|TCP|NONE|Non_static_idofstringletmakei=iletto_string=function|TCP->"TCP"|NONE->"NONE"|Non_static_ids->sletof_string=function|"TCP"->TCP|"NONE"->NONE|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 AGAPreferredProtocolForDirectory"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AGAPreferredProtocolForDirectory"j)letto_json=simple_to_jsonto_valueendmoduleStorageConnector=structtypenonrect={connectorType:StorageConnectorTypeEnum.t[@ocaml.doc"The type of connector used to save user files."];status:StorageConnectorStatusEnum.t[@ocaml.doc"Indicates if the storage connetor is enabled or disabled."]}letcontext_="StorageConnector"letmake~connectorType=fun~status->fun()->{connectorType;status}letto_valuex=structure_to_value[("ConnectorType",(Some(StorageConnectorTypeEnum.to_valuex.connectorType)));("Status",(Some(StorageConnectorStatusEnum.to_valuex.status)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=StorageConnectorStatusEnum.of_xml(Xml.child_exn~context:context_xml_arg0"Status")inletconnectorType=StorageConnectorTypeEnum.of_xml(Xml.child_exn~context:context_xml_arg0"ConnectorType")inmake~status~connectorType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_map_exnjson__"Status"StorageConnectorStatusEnum.of_jsoninletconnectorType=field_map_exnjson__"ConnectorType"StorageConnectorTypeEnum.of_jsoninmake~status~connectorType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the storage connector."]moduleUserSetting=structtypenonrect={action:UserSettingActionEnum.t[@ocaml.doc"Indicates the type of action."];permission:UserSettingPermissionEnum.t[@ocaml.doc"Indicates if the setting is enabled or disabled."];maximumLength:MaximumLength.toption[@ocaml.doc"Indicates the maximum character length for the specified user setting."]}letcontext_="UserSetting"letmake?maximumLength=fun~action->fun~permission->fun()->{maximumLength;action;permission}letto_valuex=structure_to_value[("Action",(Some(UserSettingActionEnum.to_valuex.action)));("Permission",(Some(UserSettingPermissionEnum.to_valuex.permission)));("MaximumLength",(Option.mapx.maximumLength~f:MaximumLength.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaximumLength=(Option.map~f:MaximumLength.of_xml)(Xml.childxml_arg0"MaximumLength")inletpermission=UserSettingPermissionEnum.of_xml(Xml.child_exn~context:context_xml_arg0"Permission")inletaction=UserSettingActionEnum.of_xml(Xml.child_exn~context:context_xml_arg0"Action")inmake?maximumLength~permission~action()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaximumLength=field_mapjson__"MaximumLength"MaximumLength.of_jsoninletpermission=field_map_exnjson__"Permission"UserSettingPermissionEnum.of_jsoninletaction=field_map_exnjson__"Action"UserSettingActionEnum.of_jsoninmake?maximumLength~permission~action()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about the user's permission settings."]moduleAccessEndpointList=structtypenonrect=AccessEndpoint.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AccessEndpoint.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:AccessEndpoint.of_xml)letof_jsonj=list_of_json~kind:"AccessEndpointList"~of_json:AccessEndpoint.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInternetFallbackProtocolList=structtypenonrect=InternetFallbackProtocol.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:InternetFallbackProtocol.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:InternetFallbackProtocol.of_xml)letof_jsonj=list_of_json~kind:"InternetFallbackProtocolList"~of_json:InternetFallbackProtocol.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleIpRule=structtypenonrect=stringletcontext_="IpRule"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:"IpRule"jletto_json=simple_to_jsonto_valueendmoduleIpRuleDesc=structtypenonrect=stringletcontext_="IpRuleDesc"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:"IpRuleDesc"jletto_json=simple_to_jsonto_valueendmoduleAssociationStatus=structtypenonrect=|NOT_ASSOCIATED|ASSOCIATED_WITH_OWNER_ACCOUNT|ASSOCIATED_WITH_SHARED_ACCOUNT|PENDING_ASSOCIATION|PENDING_DISASSOCIATION|Non_static_idofstringletmakei=iletto_string=function|NOT_ASSOCIATED->"NOT_ASSOCIATED"|ASSOCIATED_WITH_OWNER_ACCOUNT->"ASSOCIATED_WITH_OWNER_ACCOUNT"|ASSOCIATED_WITH_SHARED_ACCOUNT->"ASSOCIATED_WITH_SHARED_ACCOUNT"|PENDING_ASSOCIATION->"PENDING_ASSOCIATION"|PENDING_DISASSOCIATION->"PENDING_DISASSOCIATION"|Non_static_ids->sletof_string=function|"NOT_ASSOCIATED"->NOT_ASSOCIATED|"ASSOCIATED_WITH_OWNER_ACCOUNT"->ASSOCIATED_WITH_OWNER_ACCOUNT|"ASSOCIATED_WITH_SHARED_ACCOUNT"->ASSOCIATED_WITH_SHARED_ACCOUNT|"PENDING_ASSOCIATION"->PENDING_ASSOCIATION|"PENDING_DISASSOCIATION"->PENDING_DISASSOCIATION|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 AssociationStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AssociationStatus"j)letto_json=simple_to_jsonto_valueendmoduleAwsAccount=structtypenonrect=stringletcontext_="AwsAccount"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^\\d{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:"AwsAccount"jletto_json=simple_to_jsonto_valueendmoduleConnectionIdentifier=structtypenonrect=stringletcontext_="ConnectionIdentifier"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:20)>>=(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:"ConnectionIdentifier"jletto_json=simple_to_jsonto_valueendmoduleNonEmptyString=structtypenonrect=stringletcontext_="NonEmptyString"letmakei=letopenResultinok_or_failwith(check_string_mini~min:1);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NonEmptyString"jletto_json=simple_to_jsonto_valueendmoduleAssociationErrorCode=structtypenonrect=|ValidationError_InsufficientDiskSpace|ValidationError_InsufficientMemory|ValidationError_UnsupportedOperatingSystem|DeploymentError_InternalServerError|DeploymentError_WorkspaceUnreachable|ValidationError_ApplicationOldVersionExists|Non_static_idofstringletmakei=iletto_string=function|ValidationError_InsufficientDiskSpace->"ValidationError.InsufficientDiskSpace"|ValidationError_InsufficientMemory->"ValidationError.InsufficientMemory"|ValidationError_UnsupportedOperatingSystem->"ValidationError.UnsupportedOperatingSystem"|DeploymentError_InternalServerError->"DeploymentError.InternalServerError"|DeploymentError_WorkspaceUnreachable->"DeploymentError.WorkspaceUnreachable"|ValidationError_ApplicationOldVersionExists->"ValidationError.ApplicationOldVersionExists"|Non_static_ids->sletof_string=function|"ValidationError.InsufficientDiskSpace"->ValidationError_InsufficientDiskSpace|"ValidationError.InsufficientMemory"->ValidationError_InsufficientMemory|"ValidationError.UnsupportedOperatingSystem"->ValidationError_UnsupportedOperatingSystem|"DeploymentError.InternalServerError"->DeploymentError_InternalServerError|"DeploymentError.WorkspaceUnreachable"->DeploymentError_WorkspaceUnreachable|"ValidationError.ApplicationOldVersionExists"->ValidationError_ApplicationOldVersionExists|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 AssociationErrorCode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AssociationErrorCode"j)letto_json=simple_to_jsonto_valueendmoduleString2048=structtypenonrect=stringletcontext_="String2048"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String2048"jletto_json=simple_to_jsonto_valueendmoduleTag=structtypenonrect={key:TagKey.t[@ocaml.doc"The key of the tag."];value:TagValue.toption[@ocaml.doc"The value of the tag."]}letcontext_="Tag"letmake?value=fun~key->fun()->{value;key}letto_valuex=structure_to_value[("Key",(Some(TagKey.to_valuex.key)));("Value",(Option.mapx.value~f:TagValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:TagValue.of_xml)(Xml.childxml_arg0"Value")inletkey=TagKey.of_xml(Xml.child_exn~context:context_xml_arg0"Key")inmake?value~key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"Value"TagValue.of_jsoninletkey=field_map_exnjson__"Key"TagKey.of_jsoninmake?value~key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a tag."]moduleCompute=structtypenonrect=|VALUE|STANDARD|PERFORMANCE|POWER|GRAPHICS|POWERPRO|GENERALPURPOSE_4XLARGE|GENERALPURPOSE_8XLARGE|GRAPHICSPRO|GRAPHICS_G4DN|GRAPHICSPRO_G4DN|GRAPHICS_G6_XLARGE|GRAPHICS_G6_2XLARGE|GRAPHICS_G6_4XLARGE|GRAPHICS_G6_8XLARGE|GRAPHICS_G6_16XLARGE|GRAPHICS_GR6_4XLARGE|GRAPHICS_GR6_8XLARGE|GRAPHICS_G6F_LARGE|GRAPHICS_G6F_XLARGE|GRAPHICS_G6F_2XLARGE|GRAPHICS_G6F_4XLARGE|GRAPHICS_GR6F_4XLARGE|Non_static_idofstringletmakei=iletto_string=function|VALUE->"VALUE"|STANDARD->"STANDARD"|PERFORMANCE->"PERFORMANCE"|POWER->"POWER"|GRAPHICS->"GRAPHICS"|POWERPRO->"POWERPRO"|GENERALPURPOSE_4XLARGE->"GENERALPURPOSE_4XLARGE"|GENERALPURPOSE_8XLARGE->"GENERALPURPOSE_8XLARGE"|GRAPHICSPRO->"GRAPHICSPRO"|GRAPHICS_G4DN->"GRAPHICS_G4DN"|GRAPHICSPRO_G4DN->"GRAPHICSPRO_G4DN"|GRAPHICS_G6_XLARGE->"GRAPHICS_G6_XLARGE"|GRAPHICS_G6_2XLARGE->"GRAPHICS_G6_2XLARGE"|GRAPHICS_G6_4XLARGE->"GRAPHICS_G6_4XLARGE"|GRAPHICS_G6_8XLARGE->"GRAPHICS_G6_8XLARGE"|GRAPHICS_G6_16XLARGE->"GRAPHICS_G6_16XLARGE"|GRAPHICS_GR6_4XLARGE->"GRAPHICS_GR6_4XLARGE"|GRAPHICS_GR6_8XLARGE->"GRAPHICS_GR6_8XLARGE"|GRAPHICS_G6F_LARGE->"GRAPHICS_G6F_LARGE"|GRAPHICS_G6F_XLARGE->"GRAPHICS_G6F_XLARGE"|GRAPHICS_G6F_2XLARGE->"GRAPHICS_G6F_2XLARGE"|GRAPHICS_G6F_4XLARGE->"GRAPHICS_G6F_4XLARGE"|GRAPHICS_GR6F_4XLARGE->"GRAPHICS_GR6F_4XLARGE"|Non_static_ids->sletof_string=function|"VALUE"->VALUE|"STANDARD"->STANDARD|"PERFORMANCE"->PERFORMANCE|"POWER"->POWER|"GRAPHICS"->GRAPHICS|"POWERPRO"->POWERPRO|"GENERALPURPOSE_4XLARGE"->GENERALPURPOSE_4XLARGE|"GENERALPURPOSE_8XLARGE"->GENERALPURPOSE_8XLARGE|"GRAPHICSPRO"->GRAPHICSPRO|"GRAPHICS_G4DN"->GRAPHICS_G4DN|"GRAPHICSPRO_G4DN"->GRAPHICSPRO_G4DN|"GRAPHICS_G6_XLARGE"->GRAPHICS_G6_XLARGE|"GRAPHICS_G6_2XLARGE"->GRAPHICS_G6_2XLARGE|"GRAPHICS_G6_4XLARGE"->GRAPHICS_G6_4XLARGE|"GRAPHICS_G6_8XLARGE"->GRAPHICS_G6_8XLARGE|"GRAPHICS_G6_16XLARGE"->GRAPHICS_G6_16XLARGE|"GRAPHICS_GR6_4XLARGE"->GRAPHICS_GR6_4XLARGE|"GRAPHICS_GR6_8XLARGE"->GRAPHICS_GR6_8XLARGE|"GRAPHICS_G6F_LARGE"->GRAPHICS_G6F_LARGE|"GRAPHICS_G6F_XLARGE"->GRAPHICS_G6F_XLARGE|"GRAPHICS_G6F_2XLARGE"->GRAPHICS_G6F_2XLARGE|"GRAPHICS_G6F_4XLARGE"->GRAPHICS_G6F_4XLARGE|"GRAPHICS_GR6F_4XLARGE"->GRAPHICS_GR6F_4XLARGE|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 Compute"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Compute"j)letto_json=simple_to_jsonto_valueendmoduleGlobalAcceleratorForWorkSpace=structtypenonrect={mode:AGAModeForWorkSpaceEnum.t[@ocaml.doc"Indicates if Global Accelerator for WorkSpaces is enabled, disabled, or the same mode as the associated directory."];preferredProtocol:AGAPreferredProtocolForWorkSpace.toption[@ocaml.doc"Indicates the preferred protocol for Global Accelerator."]}letcontext_="GlobalAcceleratorForWorkSpace"letmake?preferredProtocol=fun~mode->fun()->{preferredProtocol;mode}letto_valuex=structure_to_value[("Mode",(Some(AGAModeForWorkSpaceEnum.to_valuex.mode)));("PreferredProtocol",(Option.mapx.preferredProtocol~f:AGAPreferredProtocolForWorkSpace.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpreferredProtocol=(Option.map~f:AGAPreferredProtocolForWorkSpace.of_xml)(Xml.childxml_arg0"PreferredProtocol")inletmode=AGAModeForWorkSpaceEnum.of_xml(Xml.child_exn~context:context_xml_arg0"Mode")inmake?preferredProtocol~mode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpreferredProtocol=field_mapjson__"PreferredProtocol"AGAPreferredProtocolForWorkSpace.of_jsoninletmode=field_map_exnjson__"Mode"AGAModeForWorkSpaceEnum.of_jsoninmake?preferredProtocol~mode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the Global Accelerator for WorkSpaces."]moduleOperatingSystemName=structtypenonrect=|AMAZON_LINUX_2|UBUNTU_18_04|UBUNTU_20_04|UBUNTU_22_04|UNKNOWN|WINDOWS_10|WINDOWS_11|WINDOWS_7|WINDOWS_SERVER_2016|WINDOWS_SERVER_2019|WINDOWS_SERVER_2022|WINDOWS_SERVER_2025|RHEL_8|ROCKY_8|Non_static_idofstringletmakei=iletto_string=function|AMAZON_LINUX_2->"AMAZON_LINUX_2"|UBUNTU_18_04->"UBUNTU_18_04"|UBUNTU_20_04->"UBUNTU_20_04"|UBUNTU_22_04->"UBUNTU_22_04"|UNKNOWN->"UNKNOWN"|WINDOWS_10->"WINDOWS_10"|WINDOWS_11->"WINDOWS_11"|WINDOWS_7->"WINDOWS_7"|WINDOWS_SERVER_2016->"WINDOWS_SERVER_2016"|WINDOWS_SERVER_2019->"WINDOWS_SERVER_2019"|WINDOWS_SERVER_2022->"WINDOWS_SERVER_2022"|WINDOWS_SERVER_2025->"WINDOWS_SERVER_2025"|RHEL_8->"RHEL_8"|ROCKY_8->"ROCKY_8"|Non_static_ids->sletof_string=function|"AMAZON_LINUX_2"->AMAZON_LINUX_2|"UBUNTU_18_04"->UBUNTU_18_04|"UBUNTU_20_04"->UBUNTU_20_04|"UBUNTU_22_04"->UBUNTU_22_04|"UNKNOWN"->UNKNOWN|"WINDOWS_10"->WINDOWS_10|"WINDOWS_11"->WINDOWS_11|"WINDOWS_7"->WINDOWS_7|"WINDOWS_SERVER_2016"->WINDOWS_SERVER_2016|"WINDOWS_SERVER_2019"->WINDOWS_SERVER_2019|"WINDOWS_SERVER_2022"->WINDOWS_SERVER_2022|"WINDOWS_SERVER_2025"->WINDOWS_SERVER_2025|"RHEL_8"->RHEL_8|"ROCKY_8"->ROCKY_8|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 OperatingSystemName"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"OperatingSystemName"j)letto_json=simple_to_jsonto_valueendmoduleProtocolList=structtypenonrect=Protocol.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Protocol.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:Protocol.of_xml)letof_jsonj=list_of_json~kind:"ProtocolList"~of_json:Protocol.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRootVolumeSizeGib=structtypenonrect=intletmakei=iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for RootVolumeSizeGib"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleRunningMode=structtypenonrect=|AUTO_STOP|ALWAYS_ON|MANUAL|Non_static_idofstringletmakei=iletto_string=function|AUTO_STOP->"AUTO_STOP"|ALWAYS_ON->"ALWAYS_ON"|MANUAL->"MANUAL"|Non_static_ids->sletof_string=function|"AUTO_STOP"->AUTO_STOP|"ALWAYS_ON"->ALWAYS_ON|"MANUAL"->MANUAL|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 RunningMode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RunningMode"j)letto_json=simple_to_jsonto_valueendmoduleRunningModeAutoStopTimeoutInMinutes=structtypenonrect=intletmakei=iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for RunningModeAutoStopTimeoutInMinutes"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleUserVolumeSizeGib=structtypenonrect=intletmakei=iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for UserVolumeSizeGib"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleModificationState=structtypenonrect={resource:ModificationResourceEnum.toption[@ocaml.doc"The resource."];state:ModificationStateEnum.toption[@ocaml.doc"The modification state."]}letmake?resource=fun?state->fun()->{resource;state}letto_valuex=structure_to_value[("Resource",(Option.mapx.resource~f:ModificationResourceEnum.to_value));("State",(Option.mapx.state~f:ModificationStateEnum.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstate=(Option.map~f:ModificationStateEnum.of_xml)(Xml.childxml_arg0"State")inletresource=(Option.map~f:ModificationResourceEnum.of_xml)(Xml.childxml_arg0"Resource")inmake?state?resource()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstate=field_mapjson__"State"ModificationStateEnum.of_jsoninletresource=field_mapjson__"Resource"ModificationResourceEnum.of_jsoninmake?state?resource()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a WorkSpace modification."]moduleRelatedWorkspaceProperties=structtypenonrect={workspaceId:WorkspaceId.toption[@ocaml.doc"The identifier of the related WorkSpace."];region:Region.toption[@ocaml.doc"The Region of the related WorkSpace."];state:WorkspaceState.toption[@ocaml.doc"Indicates the state of the WorkSpace."];type_:StandbyWorkspaceRelationshipType.toption[@ocaml.doc"Indicates the type of WorkSpace."]}letmake?workspaceId=fun?region->fun?state->fun?type_->fun()->{workspaceId;region;state;type_}letto_valuex=structure_to_value[("WorkspaceId",(Option.mapx.workspaceId~f:WorkspaceId.to_value));("Region",(Option.mapx.region~f:Region.to_value));("State",(Option.mapx.state~f:WorkspaceState.to_value));("Type",(Option.mapx.type_~f:StandbyWorkspaceRelationshipType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=(Option.map~f:StandbyWorkspaceRelationshipType.of_xml)(Xml.childxml_arg0"Type")inletstate=(Option.map~f:WorkspaceState.of_xml)(Xml.childxml_arg0"State")inletregion=(Option.map~f:Region.of_xml)(Xml.childxml_arg0"Region")inletworkspaceId=(Option.map~f:WorkspaceId.of_xml)(Xml.childxml_arg0"WorkspaceId")inmake?type_?state?region?workspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_mapjson__"Type"StandbyWorkspaceRelationshipType.of_jsoninletstate=field_mapjson__"State"WorkspaceState.of_jsoninletregion=field_mapjson__"Region"Region.of_jsoninletworkspaceId=field_mapjson__"WorkspaceId"WorkspaceId.of_jsoninmake?type_?state?region?workspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the related WorkSpace. The related WorkSpace could be a standby WorkSpace or primary WorkSpace related to the specified WorkSpace."]moduleStandbyWorkspacesProperties=structtypenonrect={standbyWorkspaceId:WorkspaceId.toption[@ocaml.doc"The identifier of the standby WorkSpace"];dataReplication:DataReplication.toption[@ocaml.doc"Indicates whether data replication is enabled, and if enabled, the type of data replication."];recoverySnapshotTime:Timestamp.toption[@ocaml.doc"The date and time at which the last successful snapshot was taken of the primary WorkSpace used for replicating data."]}letmake?standbyWorkspaceId=fun?dataReplication->fun?recoverySnapshotTime->fun()->{standbyWorkspaceId;dataReplication;recoverySnapshotTime}letto_valuex=structure_to_value[("StandbyWorkspaceId",(Option.mapx.standbyWorkspaceId~f:WorkspaceId.to_value));("DataReplication",(Option.mapx.dataReplication~f:DataReplication.to_value));("RecoverySnapshotTime",(Option.mapx.recoverySnapshotTime~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecoverySnapshotTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"RecoverySnapshotTime")inletdataReplication=(Option.map~f:DataReplication.of_xml)(Xml.childxml_arg0"DataReplication")inletstandbyWorkspaceId=(Option.map~f:WorkspaceId.of_xml)(Xml.childxml_arg0"StandbyWorkspaceId")inmake?recoverySnapshotTime?dataReplication?standbyWorkspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecoverySnapshotTime=field_mapjson__"RecoverySnapshotTime"Timestamp.of_jsoninletdataReplication=field_mapjson__"DataReplication"DataReplication.of_jsoninletstandbyWorkspaceId=field_mapjson__"StandbyWorkspaceId"WorkspaceId.of_jsoninmake?recoverySnapshotTime?dataReplication?standbyWorkspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the properties of the related standby WorkSpaces."]moduleApplicationSettingsStatusEnum=structtypenonrect=|DISABLED|ENABLED|Non_static_idofstringletmakei=iletto_string=function|DISABLED->"DISABLED"|ENABLED->"ENABLED"|Non_static_ids->sletof_string=function|"DISABLED"->DISABLED|"ENABLED"->ENABLED|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 ApplicationSettingsStatusEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ApplicationSettingsStatusEnum"j)letto_json=simple_to_jsonto_valueendmoduleS3BucketName=structtypenonrect=stringletcontext_="S3BucketName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:3)>>=(fun()->(check_string_maxi~max:63)>>=(fun()->check_patterni~pattern:"^[a-z0-9][\\.\\-a-z0-9]{1,61}[a-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:"S3BucketName"jletto_json=simple_to_jsonto_valueendmoduleSettingsGroup=structtypenonrect=stringletcontext_="SettingsGroup"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100)>>=(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:"SettingsGroup"jletto_json=simple_to_jsonto_valueendmoduleActiveUserSessions=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:0);iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ActiveUserSessions"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleActualUserSessions=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:0);iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ActualUserSessions"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleAvailableUserSessions=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:0);iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for AvailableUserSessions"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleDesiredUserSessions=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:0);iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for DesiredUserSessions"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleDisconnectTimeoutInSeconds=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:36000)>>=(fun()->check_int_mini~min:60));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 DisconnectTimeoutInSeconds"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleIdleDisconnectTimeoutInSeconds=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:36000)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for IdleDisconnectTimeoutInSeconds"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleMaxUserDurationInSeconds=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:432000)>>=(fun()->check_int_mini~min:600));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 MaxUserDurationInSeconds"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleWorkspacesPoolError=structtypenonrect={errorCode:WorkspacesPoolErrorCode.toption[@ocaml.doc"The error code."];errorMessage:ErrorMessage.toption[@ocaml.doc"The error message."]}letmake?errorCode=fun?errorMessage->fun()->{errorCode;errorMessage}letto_valuex=structure_to_value[("ErrorCode",(Option.mapx.errorCode~f:WorkspacesPoolErrorCode.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:WorkspacesPoolErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inmake?errorMessage?errorCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"ErrorMessage.of_jsoninleterrorCode=field_mapjson__"ErrorCode"WorkspacesPoolErrorCode.of_jsoninmake?errorMessage?errorCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a pool error."]moduleDescribeWorkspacesPoolsFilterValue=structtypenonrect=stringletcontext_="DescribeWorkspacesPoolsFilterValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^[A-Za-z0-9][A-Za-z0-9_.-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DescribeWorkspacesPoolsFilterValue"jletto_json=simple_to_jsonto_valueendmoduleErrorDetails=structtypenonrect={errorCode:WorkspaceImageErrorDetailCode.toption[@ocaml.doc"Indicates the error code returned."];errorMessage:Description.toption[@ocaml.doc"The text of the error message related the error code."]}letmake?errorCode=fun?errorMessage->fun()->{errorCode;errorMessage}letto_valuex=structure_to_value[("ErrorCode",(Option.mapx.errorCode~f:WorkspaceImageErrorDetailCode.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:Description.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:WorkspaceImageErrorDetailCode.of_xml)(Xml.childxml_arg0"ErrorCode")inmake?errorMessage?errorCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"Description.of_jsoninleterrorCode=field_mapjson__"ErrorCode"WorkspaceImageErrorDetailCode.of_jsoninmake?errorMessage?errorCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes in-depth details about the error. These details include the possible causes of the error and troubleshooting information."]moduleOperatingSystemType=structtypenonrect=|WINDOWS|LINUX|Non_static_idofstringletmakei=iletto_string=function|WINDOWS->"WINDOWS"|LINUX->"LINUX"|Non_static_ids->sletof_string=function|"WINDOWS"->WINDOWS|"LINUX"->LINUX|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 OperatingSystemType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"OperatingSystemType"j)letto_json=simple_to_jsonto_valueendmoduleBooleanObject=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_valueendmoduleUpdateDescription=structtypenonrect=stringletcontext_="UpdateDescription"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(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:"UpdateDescription"jletto_json=simple_to_jsonto_valueendmoduleDomainName=structtypenonrect=stringletcontext_="DomainName"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^([a-zA-Z0-9]+[.-])+([a-zA-Z0-9])+$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DomainName"jletto_json=simple_to_jsonto_valueendmoduleSecretsManagerArn=structtypenonrect=stringletcontext_="SecretsManagerArn"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^arn:aws[a-z-]{0,7}:secretsmanager:[A-za-z0-9_/.-]{0,63}:[A-za-z0-9_/.-]{0,63}:secret:[A-Za-z0-9][A-za-z0-9_/.-]{8,519}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SecretsManagerArn"jletto_json=simple_to_jsonto_valueendmoduleCertificateAuthorityArn=structtypenonrect=stringletcontext_="CertificateAuthorityArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:5)>>=(fun()->(check_string_maxi~max:200)>>=(fun()->check_patterni~pattern:"arn:[\\w+=/,.@-]+:[\\w+=/,.@-]+:[\\w+=/,.@-]*:[0-9]*:[\\w+=,.@-]+(/[\\w+=,.@-]+)*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CertificateAuthorityArn"jletto_json=simple_to_jsonto_valueendmoduleCertificateBasedAuthStatusEnum=structtypenonrect=|DISABLED|ENABLED|Non_static_idofstringletmakei=iletto_string=function|DISABLED->"DISABLED"|ENABLED->"ENABLED"|Non_static_ids->sletof_string=function|"DISABLED"->DISABLED|"ENABLED"->ENABLED|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 CertificateBasedAuthStatusEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CertificateBasedAuthStatusEnum"j)letto_json=simple_to_jsonto_valueendmoduleARN=structtypenonrect=stringletcontext_="ARN"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^arn:aws[a-z-]{0,7}:[A-Za-z0-9][A-za-z0-9_/.-]{0,62}:[A-za-z0-9_/.-]{0,63}:[A-za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.\\\\-]{0,1023}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ARN"jletto_json=simple_to_jsonto_valueendmoduleDefaultOu=structtypenonrect=stringletcontext_="DefaultOu"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:"DefaultOu"jletto_json=simple_to_jsonto_valueendmoduleSecurityGroupId=structtypenonrect=stringletcontext_="SecurityGroupId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:11)>>=(fun()->(check_string_maxi~max:20)>>=(fun()->check_patterni~pattern:"^(sg-([0-9a-f]{8}|[0-9a-f]{17}))$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SecurityGroupId"jletto_json=simple_to_jsonto_valueendmoduleIpAddress=structtypenonrect=stringletcontext_="IpAddress"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IpAddress"jletto_json=simple_to_jsonto_valueendmoduleIpv6Address=structtypenonrect=stringletcontext_="Ipv6Address"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^(?:[0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|[0-9a-fA-F]{1,4}(?::[0-9a-fA-F]{1,4}){0,6}::[0-9a-fA-F]{1,4}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Ipv6Address"jletto_json=simple_to_jsonto_valueendmoduleIpGroupId=structtypenonrect=stringletcontext_="IpGroupId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"wsipg-[0-9a-z]{8,63}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IpGroupId"jletto_json=simple_to_jsonto_valueendmoduleMicrosoftEntraConfigTenantId=structtypenonrect=stringletcontext_="MicrosoftEntraConfigTenantId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^[a-zA-Z0-9-]{1,100}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MicrosoftEntraConfigTenantId"jletto_json=simple_to_jsonto_valueendmoduleSamlStatusEnum=structtypenonrect=|DISABLED|ENABLED|ENABLED_WITH_DIRECTORY_LOGIN_FALLBACK|Non_static_idofstringletmakei=iletto_string=function|DISABLED->"DISABLED"|ENABLED->"ENABLED"|ENABLED_WITH_DIRECTORY_LOGIN_FALLBACK->"ENABLED_WITH_DIRECTORY_LOGIN_FALLBACK"|Non_static_ids->sletof_string=function|"DISABLED"->DISABLED|"ENABLED"->ENABLED|"ENABLED_WITH_DIRECTORY_LOGIN_FALLBACK"->ENABLED_WITH_DIRECTORY_LOGIN_FALLBACK|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 SamlStatusEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SamlStatusEnum"j)letto_json=simple_to_jsonto_valueendmoduleSamlUserAccessUrl=structtypenonrect=stringletcontext_="SamlUserAccessUrl"letmakei=letopenResultinok_or_failwith((check_string_mini~min:8)>>=(fun()->(check_string_maxi~max:200)>>=(fun()->check_patterni~pattern:"^(http|https)\\://\\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:"SamlUserAccessUrl"jletto_json=simple_to_jsonto_valueendmoduleReconnectEnum=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ReconnectEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ReconnectEnum"j)letto_json=simple_to_jsonto_valueendmoduleGlobalAcceleratorForDirectory=structtypenonrect={mode:AGAModeForDirectoryEnum.t[@ocaml.doc"Indicates if Global Accelerator for directory is enabled or disabled."];preferredProtocol:AGAPreferredProtocolForDirectory.toption[@ocaml.doc"Indicates the preferred protocol for Global Accelerator."]}letcontext_="GlobalAcceleratorForDirectory"letmake?preferredProtocol=fun~mode->fun()->{preferredProtocol;mode}letto_valuex=structure_to_value[("Mode",(Some(AGAModeForDirectoryEnum.to_valuex.mode)));("PreferredProtocol",(Option.mapx.preferredProtocol~f:AGAPreferredProtocolForDirectory.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpreferredProtocol=(Option.map~f:AGAPreferredProtocolForDirectory.of_xml)(Xml.childxml_arg0"PreferredProtocol")inletmode=AGAModeForDirectoryEnum.of_xml(Xml.child_exn~context:context_xml_arg0"Mode")inmake?preferredProtocol~mode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpreferredProtocol=field_mapjson__"PreferredProtocol"AGAPreferredProtocolForDirectory.of_jsoninletmode=field_map_exnjson__"Mode"AGAModeForDirectoryEnum.of_jsoninmake?preferredProtocol~mode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the Global Accelerator for directory"]moduleStorageConnectors=structtypenonrect=StorageConnector.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:StorageConnector.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:StorageConnector.of_xml)letof_jsonj=list_of_json~kind:"StorageConnectors"~of_json:StorageConnector.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleStreamingExperiencePreferredProtocolEnum=structtypenonrect=|TCP|UDP|Non_static_idofstringletmakei=iletto_string=function|TCP->"TCP"|UDP->"UDP"|Non_static_ids->sletof_string=function|"TCP"->TCP|"UDP"->UDP|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 StreamingExperiencePreferredProtocolEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"StreamingExperiencePreferredProtocolEnum"j)letto_json=simple_to_jsonto_valueendmoduleUserSettings=structtypenonrect=UserSetting.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:UserSetting.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:UserSetting.of_xml)letof_jsonj=list_of_json~kind:"UserSettings"~of_json:UserSetting.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSubnetId=structtypenonrect=stringletcontext_="SubnetId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:15)>>=(fun()->(check_string_maxi~max:24)>>=(fun()->check_patterni~pattern:"^(subnet-([0-9a-f]{8}|[0-9a-f]{17}))$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SubnetId"jletto_json=simple_to_jsonto_valueendmoduleAccessEndpointConfig=structtypenonrect={accessEndpoints:AccessEndpointList.t[@ocaml.doc"Indicates a list of access endpoints associated with this directory."];internetFallbackProtocols:InternetFallbackProtocolList.toption[@ocaml.doc"Indicates a list of protocols that fallback to using the public Internet when streaming over a VPC endpoint is not available."]}letcontext_="AccessEndpointConfig"letmake?internetFallbackProtocols=fun~accessEndpoints->fun()->{internetFallbackProtocols;accessEndpoints}letto_valuex=structure_to_value[("AccessEndpoints",(Some(AccessEndpointList.to_valuex.accessEndpoints)));("InternetFallbackProtocols",(Option.mapx.internetFallbackProtocols~f:InternetFallbackProtocolList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinternetFallbackProtocols=(Option.map~f:InternetFallbackProtocolList.of_xml)(Xml.childxml_arg0"InternetFallbackProtocols")inletaccessEndpoints=AccessEndpointList.of_xml(Xml.child_exn~context:context_xml_arg0"AccessEndpoints")inmake?internetFallbackProtocols~accessEndpoints()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinternetFallbackProtocols=field_mapjson__"InternetFallbackProtocols"InternetFallbackProtocolList.of_jsoninletaccessEndpoints=field_map_exnjson__"AccessEndpoints"AccessEndpointList.of_jsoninmake?internetFallbackProtocols~accessEndpoints()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the access endpoint configuration for a WorkSpace."]moduleAccessPropertyValue=structtypenonrect=|ALLOW|DENY|Non_static_idofstringletmakei=iletto_string=function|ALLOW->"ALLOW"|DENY->"DENY"|Non_static_ids->sletof_string=function|"ALLOW"->ALLOW|"DENY"->DENY|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 AccessPropertyValue"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AccessPropertyValue"j)letto_json=simple_to_jsonto_valueendmoduleDescribeWorkspaceDirectoriesFilterValue=structtypenonrect=stringletcontext_="DescribeWorkspaceDirectoriesFilterValue"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^[0-9a-zA-Z\\*\\.\\\\/\\?-_]{0,64}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DescribeWorkspaceDirectoriesFilterValue"jletto_json=simple_to_jsonto_valueendmoduleIpRuleItem=structtypenonrect={ipRule:IpRule.toption[@ocaml.doc"The IP address range, in CIDR notation."];ruleDesc:IpRuleDesc.toption[@ocaml.doc"The description."]}letmake?ipRule=fun?ruleDesc->fun()->{ipRule;ruleDesc}letto_valuex=structure_to_value[("ipRule",(Option.mapx.ipRule~f:IpRule.to_value));("ruleDesc",(Option.mapx.ruleDesc~f:IpRuleDesc.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letruleDesc=(Option.map~f:IpRuleDesc.of_xml)(Xml.childxml_arg0"ruleDesc")inletipRule=(Option.map~f:IpRule.of_xml)(Xml.childxml_arg0"ipRule")inmake?ruleDesc?ipRule()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letruleDesc=field_mapjson__"ruleDesc"IpRuleDesc.of_jsoninletipRule=field_mapjson__"ipRule"IpRule.of_jsoninmake?ruleDesc?ipRule()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a rule for an IP access control group."]moduleConnectionAliasAssociation=structtypenonrect={associationStatus:AssociationStatus.toption[@ocaml.doc"The association status of the connection alias."];associatedAccountId:AwsAccount.toption[@ocaml.doc"The identifier of the Amazon Web Services account that associated the connection alias with a directory."];resourceId:NonEmptyString.toption[@ocaml.doc"The identifier of the directory associated with a connection alias."];connectionIdentifier:ConnectionIdentifier.toption[@ocaml.doc"The identifier of the connection alias association. You use the connection identifier in the DNS TXT record when you're configuring your DNS routing policies."]}letmake?associationStatus=fun?associatedAccountId->fun?resourceId->fun?connectionIdentifier->fun()->{associationStatus;associatedAccountId;resourceId;connectionIdentifier}letto_valuex=structure_to_value[("AssociationStatus",(Option.mapx.associationStatus~f:AssociationStatus.to_value));("AssociatedAccountId",(Option.mapx.associatedAccountId~f:AwsAccount.to_value));("ResourceId",(Option.mapx.resourceId~f:NonEmptyString.to_value));("ConnectionIdentifier",(Option.mapx.connectionIdentifier~f:ConnectionIdentifier.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnectionIdentifier=(Option.map~f:ConnectionIdentifier.of_xml)(Xml.childxml_arg0"ConnectionIdentifier")inletresourceId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"ResourceId")inletassociatedAccountId=(Option.map~f:AwsAccount.of_xml)(Xml.childxml_arg0"AssociatedAccountId")inletassociationStatus=(Option.map~f:AssociationStatus.of_xml)(Xml.childxml_arg0"AssociationStatus")inmake?connectionIdentifier?resourceId?associatedAccountId?associationStatus()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnectionIdentifier=field_mapjson__"ConnectionIdentifier"ConnectionIdentifier.of_jsoninletresourceId=field_mapjson__"ResourceId"NonEmptyString.of_jsoninletassociatedAccountId=field_mapjson__"AssociatedAccountId"AwsAccount.of_jsoninletassociationStatus=field_mapjson__"AssociationStatus"AssociationStatus.of_jsoninmake?connectionIdentifier?resourceId?associatedAccountId?associationStatus()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a connection alias association that is used for cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces."]moduleLogUploadEnum=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration LogUploadEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"LogUploadEnum"j)letto_json=simple_to_jsonto_valueendmoduleAssociationState=structtypenonrect=|PENDING_INSTALL|PENDING_INSTALL_DEPLOYMENT|PENDING_UNINSTALL|PENDING_UNINSTALL_DEPLOYMENT|INSTALLING|UNINSTALLING|ERROR|COMPLETED|REMOVED|Non_static_idofstringletmakei=iletto_string=function|PENDING_INSTALL->"PENDING_INSTALL"|PENDING_INSTALL_DEPLOYMENT->"PENDING_INSTALL_DEPLOYMENT"|PENDING_UNINSTALL->"PENDING_UNINSTALL"|PENDING_UNINSTALL_DEPLOYMENT->"PENDING_UNINSTALL_DEPLOYMENT"|INSTALLING->"INSTALLING"|UNINSTALLING->"UNINSTALLING"|ERROR->"ERROR"|COMPLETED->"COMPLETED"|REMOVED->"REMOVED"|Non_static_ids->sletof_string=function|"PENDING_INSTALL"->PENDING_INSTALL|"PENDING_INSTALL_DEPLOYMENT"->PENDING_INSTALL_DEPLOYMENT|"PENDING_UNINSTALL"->PENDING_UNINSTALL|"PENDING_UNINSTALL_DEPLOYMENT"->PENDING_UNINSTALL_DEPLOYMENT|"INSTALLING"->INSTALLING|"UNINSTALLING"->UNINSTALLING|"ERROR"->ERROR|"COMPLETED"->COMPLETED|"REMOVED"->REMOVED|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 AssociationState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AssociationState"j)letto_json=simple_to_jsonto_valueendmoduleAssociationStateReason=structtypenonrect={errorCode:AssociationErrorCode.toption[@ocaml.doc"The error code of the association deployment failure."];errorMessage:String2048.toption[@ocaml.doc"The error message of the association deployment failure."]}letmake?errorCode=fun?errorMessage->fun()->{errorCode;errorMessage}letto_valuex=structure_to_value[("ErrorCode",(Option.mapx.errorCode~f:AssociationErrorCode.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:String2048.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:String2048.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:AssociationErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inmake?errorMessage?errorCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"String2048.of_jsoninleterrorCode=field_mapjson__"ErrorCode"AssociationErrorCode.of_jsoninmake?errorMessage?errorCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates the reason that the association deployment failed, including the error code and error message."]moduleWorkSpaceAssociatedResourceType=structtypenonrect=|APPLICATION|Non_static_idofstringletmakei=iletto_string=function|APPLICATION->"APPLICATION"|Non_static_ids->sletof_string=function|"APPLICATION"->APPLICATION|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 WorkSpaceAssociatedResourceType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WorkSpaceAssociatedResourceType"j)letto_json=simple_to_jsonto_valueendmoduleBundleId=structtypenonrect=stringletcontext_="BundleId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^wsb-[0-9a-z]{8,63}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"BundleId"jletto_json=simple_to_jsonto_valueendmoduleDirectoryId=structtypenonrect=stringletcontext_="DirectoryId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:10)>>=(fun()->(check_string_maxi~max:65)>>=(fun()->check_patterni~pattern:"^(d-[0-9a-f]{8,63}$)|(wsd-[0-9a-z]{8,63}$)")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DirectoryId"jletto_json=simple_to_jsonto_valueendmoduleTagList=structtypenonrect=Tag.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Tag.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Tag.of_xml)letof_jsonj=list_of_json~kind:"TagList"~of_json:Tag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUserName=structtypenonrect=stringletcontext_="UserName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:63)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"UserName"jletto_json=simple_to_jsonto_valueendmoduleVolumeEncryptionKey=structtypenonrect=stringletcontext_="VolumeEncryptionKey"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:"VolumeEncryptionKey"jletto_json=simple_to_jsonto_valueendmoduleWorkspaceName=structtypenonrect=stringletcontext_="WorkspaceName"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^[a-zA-Z0-9_()][a-zA-Z0-9_.()-]{1,63}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"WorkspaceName"jletto_json=simple_to_jsonto_valueendmoduleWorkspaceProperties=structtypenonrect={runningMode:RunningMode.toption[@ocaml.doc"The running mode. For more information, see Manage the WorkSpace Running Mode. The MANUAL value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core. Review your running mode to ensure you are using one that is optimal for your needs and budget. For more information on switching running modes, see Can I switch between hourly and monthly billing?"];runningModeAutoStopTimeoutInMinutes:RunningModeAutoStopTimeoutInMinutes.toption[@ocaml.doc"The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals."];rootVolumeSizeGib:RootVolumeSizeGib.toption[@ocaml.doc"The size of the root volume. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace."];userVolumeSizeGib:UserVolumeSizeGib.toption[@ocaml.doc"The size of the user storage. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace."];computeTypeName:Compute.toption[@ocaml.doc"The compute type. For more information, see Amazon WorkSpaces Bundles."];protocols:ProtocolList.toption[@ocaml.doc"The protocol. For more information, see Protocols for Amazon WorkSpaces. Only available for WorkSpaces created with PCoIP bundles. The Protocols property is case sensitive. Ensure you use PCOIP or DCV (formerly WSP). Unavailable for Windows 7 WorkSpaces and WorkSpaces using GPU-based bundles (Graphics, GraphicsPro, Graphics.g4dn, and GraphicsPro.g4dn)."];operatingSystemName:OperatingSystemName.toption[@ocaml.doc"The name of the operating system."];globalAccelerator:GlobalAcceleratorForWorkSpace.toption[@ocaml.doc"Indicates the Global Accelerator properties."]}letmake?runningMode=fun?runningModeAutoStopTimeoutInMinutes->fun?rootVolumeSizeGib->fun?userVolumeSizeGib->fun?computeTypeName->fun?protocols->fun?operatingSystemName->fun?globalAccelerator->fun()->{runningMode;runningModeAutoStopTimeoutInMinutes;rootVolumeSizeGib;userVolumeSizeGib;computeTypeName;protocols;operatingSystemName;globalAccelerator}letto_valuex=structure_to_value[("RunningMode",(Option.mapx.runningMode~f:RunningMode.to_value));("RunningModeAutoStopTimeoutInMinutes",(Option.mapx.runningModeAutoStopTimeoutInMinutes~f:RunningModeAutoStopTimeoutInMinutes.to_value));("RootVolumeSizeGib",(Option.mapx.rootVolumeSizeGib~f:RootVolumeSizeGib.to_value));("UserVolumeSizeGib",(Option.mapx.userVolumeSizeGib~f:UserVolumeSizeGib.to_value));("ComputeTypeName",(Option.mapx.computeTypeName~f:Compute.to_value));("Protocols",(Option.mapx.protocols~f:ProtocolList.to_value));("OperatingSystemName",(Option.mapx.operatingSystemName~f:OperatingSystemName.to_value));("GlobalAccelerator",(Option.mapx.globalAccelerator~f:GlobalAcceleratorForWorkSpace.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letglobalAccelerator=(Option.map~f:GlobalAcceleratorForWorkSpace.of_xml)(Xml.childxml_arg0"GlobalAccelerator")inletoperatingSystemName=(Option.map~f:OperatingSystemName.of_xml)(Xml.childxml_arg0"OperatingSystemName")inletprotocols=(Option.map~f:ProtocolList.of_xml)(Xml.childxml_arg0"Protocols")inletcomputeTypeName=(Option.map~f:Compute.of_xml)(Xml.childxml_arg0"ComputeTypeName")inletuserVolumeSizeGib=(Option.map~f:UserVolumeSizeGib.of_xml)(Xml.childxml_arg0"UserVolumeSizeGib")inletrootVolumeSizeGib=(Option.map~f:RootVolumeSizeGib.of_xml)(Xml.childxml_arg0"RootVolumeSizeGib")inletrunningModeAutoStopTimeoutInMinutes=(Option.map~f:RunningModeAutoStopTimeoutInMinutes.of_xml)(Xml.childxml_arg0"RunningModeAutoStopTimeoutInMinutes")inletrunningMode=(Option.map~f:RunningMode.of_xml)(Xml.childxml_arg0"RunningMode")inmake?globalAccelerator?operatingSystemName?protocols?computeTypeName?userVolumeSizeGib?rootVolumeSizeGib?runningModeAutoStopTimeoutInMinutes?runningMode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letglobalAccelerator=field_mapjson__"GlobalAccelerator"GlobalAcceleratorForWorkSpace.of_jsoninletoperatingSystemName=field_mapjson__"OperatingSystemName"OperatingSystemName.of_jsoninletprotocols=field_mapjson__"Protocols"ProtocolList.of_jsoninletcomputeTypeName=field_mapjson__"ComputeTypeName"Compute.of_jsoninletuserVolumeSizeGib=field_mapjson__"UserVolumeSizeGib"UserVolumeSizeGib.of_jsoninletrootVolumeSizeGib=field_mapjson__"RootVolumeSizeGib"RootVolumeSizeGib.of_jsoninletrunningModeAutoStopTimeoutInMinutes=field_mapjson__"RunningModeAutoStopTimeoutInMinutes"RunningModeAutoStopTimeoutInMinutes.of_jsoninletrunningMode=field_mapjson__"RunningMode"RunningMode.of_jsoninmake?globalAccelerator?operatingSystemName?protocols?computeTypeName?userVolumeSizeGib?rootVolumeSizeGib?runningModeAutoStopTimeoutInMinutes?runningMode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a WorkSpace."]moduleErrorType=structtypenonrect=stringletcontext_="ErrorType"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:"ErrorType"jletto_json=simple_to_jsonto_valueendmoduleAccountLinkStatusEnum=structtypenonrect=|LINKED|LINKING_FAILED|LINK_NOT_FOUND|PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT|REJECTED|Non_static_idofstringletmakei=iletto_string=function|LINKED->"LINKED"|LINKING_FAILED->"LINKING_FAILED"|LINK_NOT_FOUND->"LINK_NOT_FOUND"|PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT->"PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT"|REJECTED->"REJECTED"|Non_static_ids->sletof_string=function|"LINKED"->LINKED|"LINKING_FAILED"->LINKING_FAILED|"LINK_NOT_FOUND"->LINK_NOT_FOUND|"PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT"->PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT|"REJECTED"->REJECTED|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 AccountLinkStatusEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AccountLinkStatusEnum"j)letto_json=simple_to_jsonto_valueendmoduleLinkId=structtypenonrect=stringletcontext_="LinkId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^link-.{8,24}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LinkId"jletto_json=simple_to_jsonto_valueendmoduleClientLocale=structtypenonrect=stringletcontext_="ClientLocale"letmakei=letopenResultinok_or_failwith((check_string_mini~min:5)>>=(fun()->(check_string_maxi~max:5)>>=(fun()->check_patterni~pattern:"^[a-z]{2}_[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:"ClientLocale"jletto_json=simple_to_jsonto_valueendmoduleClientLoginMessage=structtypenonrect=stringletcontext_="ClientLoginMessage"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:2000)>>=(fun()->check_patterni~pattern:"^.*$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ClientLoginMessage"jletto_json=simple_to_jsonto_valueendmoduleComputerName=structtypenonrect=stringletcontext_="ComputerName"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:"ComputerName"jletto_json=simple_to_jsonto_valueendmoduleDataReplicationSettings=structtypenonrect={dataReplication:DataReplication.toption[@ocaml.doc"Indicates whether data replication is enabled, and if enabled, the type of data replication."];recoverySnapshotTime:Timestamp.toption[@ocaml.doc"The date and time at which the last successful snapshot was taken of the primary WorkSpace used for replicating data."]}letmake?dataReplication=fun?recoverySnapshotTime->fun()->{dataReplication;recoverySnapshotTime}letto_valuex=structure_to_value[("DataReplication",(Option.mapx.dataReplication~f:DataReplication.to_value));("RecoverySnapshotTime",(Option.mapx.recoverySnapshotTime~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecoverySnapshotTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"RecoverySnapshotTime")inletdataReplication=(Option.map~f:DataReplication.of_xml)(Xml.childxml_arg0"DataReplication")inmake?recoverySnapshotTime?dataReplication()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecoverySnapshotTime=field_mapjson__"RecoverySnapshotTime"Timestamp.of_jsoninletdataReplication=field_mapjson__"DataReplication"DataReplication.of_jsoninmake?recoverySnapshotTime?dataReplication()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the data replication settings."]moduleModificationStateList=structtypenonrect=ModificationState.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ModificationState.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:ModificationState.of_xml)letof_jsonj=list_of_json~kind:"ModificationStateList"~of_json:ModificationState.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRelatedWorkspaces=structtypenonrect=RelatedWorkspaceProperties.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RelatedWorkspaceProperties.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:RelatedWorkspaceProperties.of_xml)letof_jsonj=list_of_json~kind:"RelatedWorkspaces"~of_json:RelatedWorkspaceProperties.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleStandbyWorkspacesPropertiesList=structtypenonrect=StandbyWorkspacesProperties.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StandbyWorkspacesProperties.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:StandbyWorkspacesProperties.of_xml)letof_jsonj=list_of_json~kind:"StandbyWorkspacesPropertiesList"~of_json:StandbyWorkspacesProperties.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWorkspaceErrorCode=structtypenonrect=stringletcontext_="WorkspaceErrorCode"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:"WorkspaceErrorCode"jletto_json=simple_to_jsonto_valueendmoduleApplicationSettingsResponse=structtypenonrect={status:ApplicationSettingsStatusEnum.toption[@ocaml.doc"Specifies whether persistent application settings are enabled for users during their pool sessions."];settingsGroup:SettingsGroup.toption[@ocaml.doc"The path prefix for the S3 bucket where users\226\128\153 persistent application settings are stored."];s3BucketName:S3BucketName.toption[@ocaml.doc"The S3 bucket where users\226\128\153 persistent application settings are stored. When persistent application settings are enabled for the first time for an account in an Amazon Web Services Region, an S3 bucket is created. The bucket is unique to the Amazon Web Services account and the Region."]}letmake?status=fun?settingsGroup->fun?s3BucketName->fun()->{status;settingsGroup;s3BucketName}letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:ApplicationSettingsStatusEnum.to_value));("SettingsGroup",(Option.mapx.settingsGroup~f:SettingsGroup.to_value));("S3BucketName",(Option.mapx.s3BucketName~f:S3BucketName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3BucketName=(Option.map~f:S3BucketName.of_xml)(Xml.childxml_arg0"S3BucketName")inletsettingsGroup=(Option.map~f:SettingsGroup.of_xml)(Xml.childxml_arg0"SettingsGroup")inletstatus=(Option.map~f:ApplicationSettingsStatusEnum.of_xml)(Xml.childxml_arg0"Status")inmake?s3BucketName?settingsGroup?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3BucketName=field_mapjson__"S3BucketName"S3BucketName.of_jsoninletsettingsGroup=field_mapjson__"SettingsGroup"SettingsGroup.of_jsoninletstatus=field_mapjson__"Status"ApplicationSettingsStatusEnum.of_jsoninmake?s3BucketName?settingsGroup?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the persistent application settings for WorkSpaces Pools users."]moduleCapacityStatus=structtypenonrect={availableUserSessions:AvailableUserSessions.toption[@ocaml.doc"The number of user sessions currently available for streaming from your pool. AvailableUserSessions = ActualUserSessions - ActiveUserSessions"];desiredUserSessions:DesiredUserSessions.toption[@ocaml.doc"The total number of sessions slots that are either running or pending. This represents the total number of concurrent streaming sessions your pool can support in a steady state."];actualUserSessions:ActualUserSessions.toption[@ocaml.doc"The total number of user sessions that are available for streaming or are currently streaming in your pool. ActualUserSessions = AvailableUserSessions + ActiveUserSessions"];activeUserSessions:ActiveUserSessions.toption[@ocaml.doc"The number of user sessions currently being used for your pool."]}letmake?availableUserSessions=fun?desiredUserSessions->fun?actualUserSessions->fun?activeUserSessions->fun()->{availableUserSessions;desiredUserSessions;actualUserSessions;activeUserSessions}letto_valuex=structure_to_value[("AvailableUserSessions",(Option.mapx.availableUserSessions~f:AvailableUserSessions.to_value));("DesiredUserSessions",(Option.mapx.desiredUserSessions~f:DesiredUserSessions.to_value));("ActualUserSessions",(Option.mapx.actualUserSessions~f:ActualUserSessions.to_value));("ActiveUserSessions",(Option.mapx.activeUserSessions~f:ActiveUserSessions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letactiveUserSessions=(Option.map~f:ActiveUserSessions.of_xml)(Xml.childxml_arg0"ActiveUserSessions")inletactualUserSessions=(Option.map~f:ActualUserSessions.of_xml)(Xml.childxml_arg0"ActualUserSessions")inletdesiredUserSessions=(Option.map~f:DesiredUserSessions.of_xml)(Xml.childxml_arg0"DesiredUserSessions")inletavailableUserSessions=(Option.map~f:AvailableUserSessions.of_xml)(Xml.childxml_arg0"AvailableUserSessions")inmake?activeUserSessions?actualUserSessions?desiredUserSessions?availableUserSessions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letactiveUserSessions=field_mapjson__"ActiveUserSessions"ActiveUserSessions.of_jsoninletactualUserSessions=field_mapjson__"ActualUserSessions"ActualUserSessions.of_jsoninletdesiredUserSessions=field_mapjson__"DesiredUserSessions"DesiredUserSessions.of_jsoninletavailableUserSessions=field_mapjson__"AvailableUserSessions"AvailableUserSessions.of_jsoninmake?activeUserSessions?actualUserSessions?desiredUserSessions?availableUserSessions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the capacity status for a pool of WorkSpaces."]modulePoolsRunningMode=structtypenonrect=|AUTO_STOP|ALWAYS_ON|Non_static_idofstringletmakei=iletto_string=function|AUTO_STOP->"AUTO_STOP"|ALWAYS_ON->"ALWAYS_ON"|Non_static_ids->sletof_string=function|"AUTO_STOP"->AUTO_STOP|"ALWAYS_ON"->ALWAYS_ON|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 PoolsRunningMode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PoolsRunningMode"j)letto_json=simple_to_jsonto_valueendmoduleTimeoutSettings=structtypenonrect={disconnectTimeoutInSeconds:DisconnectTimeoutInSeconds.toption[@ocaml.doc"Specifies the amount of time, in seconds, that a streaming session remains active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within the time set, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance."];idleDisconnectTimeoutInSeconds:IdleDisconnectTimeoutInSeconds.toption[@ocaml.doc"The amount of time in seconds a connection will stay active while idle."];maxUserDurationInSeconds:MaxUserDurationInSeconds.toption[@ocaml.doc"Specifies the maximum amount of time, in seconds, that a streaming session can remain active. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance."]}letmake?disconnectTimeoutInSeconds=fun?idleDisconnectTimeoutInSeconds->fun?maxUserDurationInSeconds->fun()->{disconnectTimeoutInSeconds;idleDisconnectTimeoutInSeconds;maxUserDurationInSeconds}letto_valuex=structure_to_value[("DisconnectTimeoutInSeconds",(Option.mapx.disconnectTimeoutInSeconds~f:DisconnectTimeoutInSeconds.to_value));("IdleDisconnectTimeoutInSeconds",(Option.mapx.idleDisconnectTimeoutInSeconds~f:IdleDisconnectTimeoutInSeconds.to_value));("MaxUserDurationInSeconds",(Option.mapx.maxUserDurationInSeconds~f:MaxUserDurationInSeconds.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxUserDurationInSeconds=(Option.map~f:MaxUserDurationInSeconds.of_xml)(Xml.childxml_arg0"MaxUserDurationInSeconds")inletidleDisconnectTimeoutInSeconds=(Option.map~f:IdleDisconnectTimeoutInSeconds.of_xml)(Xml.childxml_arg0"IdleDisconnectTimeoutInSeconds")inletdisconnectTimeoutInSeconds=(Option.map~f:DisconnectTimeoutInSeconds.of_xml)(Xml.childxml_arg0"DisconnectTimeoutInSeconds")inmake?maxUserDurationInSeconds?idleDisconnectTimeoutInSeconds?disconnectTimeoutInSeconds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxUserDurationInSeconds=field_mapjson__"MaxUserDurationInSeconds"MaxUserDurationInSeconds.of_jsoninletidleDisconnectTimeoutInSeconds=field_mapjson__"IdleDisconnectTimeoutInSeconds"IdleDisconnectTimeoutInSeconds.of_jsoninletdisconnectTimeoutInSeconds=field_mapjson__"DisconnectTimeoutInSeconds"DisconnectTimeoutInSeconds.of_jsoninmake?maxUserDurationInSeconds?idleDisconnectTimeoutInSeconds?disconnectTimeoutInSeconds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the timeout settings for a pool of WorkSpaces."]moduleWorkspacesPoolErrors=structtypenonrect=WorkspacesPoolError.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WorkspacesPoolError.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:WorkspacesPoolError.of_xml)letof_jsonj=list_of_json~kind:"WorkspacesPoolErrors"~of_json:WorkspacesPoolError.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWorkspacesPoolId=structtypenonrect=stringletcontext_="WorkspacesPoolId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^wspool-[0-9a-z]{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:"WorkspacesPoolId"jletto_json=simple_to_jsonto_valueendmoduleWorkspacesPoolName=structtypenonrect=stringletcontext_="WorkspacesPoolName"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"WorkspacesPoolName"jletto_json=simple_to_jsonto_valueendmoduleWorkspacesPoolState=structtypenonrect=|CREATING|DELETING|RUNNING|STARTING|STOPPED|STOPPING|UPDATING|Non_static_idofstringletmakei=iletto_string=function|CREATING->"CREATING"|DELETING->"DELETING"|RUNNING->"RUNNING"|STARTING->"STARTING"|STOPPED->"STOPPED"|STOPPING->"STOPPING"|UPDATING->"UPDATING"|Non_static_ids->sletof_string=function|"CREATING"->CREATING|"DELETING"->DELETING|"RUNNING"->RUNNING|"STARTING"->STARTING|"STOPPED"->STOPPED|"STOPPING"->STOPPING|"UPDATING"->UPDATING|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 WorkspacesPoolState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WorkspacesPoolState"j)letto_json=simple_to_jsonto_valueendmoduleDescribeWorkspacesPoolsFilterName=structtypenonrect=|PoolName|Non_static_idofstringletmakei=iletto_string=function|PoolName->"PoolName"|Non_static_ids->sletof_string=function|"PoolName"->PoolName|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 DescribeWorkspacesPoolsFilterName"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DescribeWorkspacesPoolsFilterName"j)letto_json=simple_to_jsonto_valueendmoduleDescribeWorkspacesPoolsFilterOperator=structtypenonrect=|EQUALS|NOTEQUALS|CONTAINS|NOTCONTAINS|Non_static_idofstringletmakei=iletto_string=function|EQUALS->"EQUALS"|NOTEQUALS->"NOTEQUALS"|CONTAINS->"CONTAINS"|NOTCONTAINS->"NOTCONTAINS"|Non_static_ids->sletof_string=function|"EQUALS"->EQUALS|"NOTEQUALS"->NOTEQUALS|"CONTAINS"->CONTAINS|"NOTCONTAINS"->NOTCONTAINS|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 DescribeWorkspacesPoolsFilterOperator"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DescribeWorkspacesPoolsFilterOperator"j)letto_json=simple_to_jsonto_valueendmoduleDescribeWorkspacesPoolsFilterValues=structtypenonrect=DescribeWorkspacesPoolsFilterValue.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DescribeWorkspacesPoolsFilterValue.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:DescribeWorkspacesPoolsFilterValue.of_xml)letof_jsonj=list_of_json~kind:"DescribeWorkspacesPoolsFilterValues"~of_json:DescribeWorkspacesPoolsFilterValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAmazonUuid=structtypenonrect=stringletcontext_="AmazonUuid"letmakei=letopenResultinok_or_failwith((check_string_mini~min:36)>>=(fun()->(check_string_maxi~max:36)>>=(fun()->check_patterni~pattern:"[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-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:"AmazonUuid"jletto_json=simple_to_jsonto_valueendmoduleAuthenticationType=structtypenonrect=|SAML|Non_static_idofstringletmakei=iletto_string=function|SAML->"SAML"|Non_static_ids->sletof_string=function|"SAML"->SAML|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 AuthenticationType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AuthenticationType"j)letto_json=simple_to_jsonto_valueendmoduleNetworkAccessConfiguration=structtypenonrect={eniPrivateIpAddress:NonEmptyString.toption[@ocaml.doc"The private IP address of the elastic network interface that is attached to instances in your VPC."];eniId:NonEmptyString.toption[@ocaml.doc"The resource identifier of the elastic network interface that is attached to instances in your VPC. All network interfaces have the eni-xxxxxxxx resource identifier."]}letmake?eniPrivateIpAddress=fun?eniId->fun()->{eniPrivateIpAddress;eniId}letto_valuex=structure_to_value[("EniPrivateIpAddress",(Option.mapx.eniPrivateIpAddress~f:NonEmptyString.to_value));("EniId",(Option.mapx.eniId~f:NonEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteniId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"EniId")inleteniPrivateIpAddress=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"EniPrivateIpAddress")inmake?eniId?eniPrivateIpAddress()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteniId=field_mapjson__"EniId"NonEmptyString.of_jsoninleteniPrivateIpAddress=field_mapjson__"EniPrivateIpAddress"NonEmptyString.of_jsoninmake?eniId?eniPrivateIpAddress()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the network details of a WorkSpaces Pool."]moduleSessionConnectionState=structtypenonrect=|CONNECTED|NOT_CONNECTED|Non_static_idofstringletmakei=iletto_string=function|CONNECTED->"CONNECTED"|NOT_CONNECTED->"NOT_CONNECTED"|Non_static_ids->sletof_string=function|"CONNECTED"->CONNECTED|"NOT_CONNECTED"->NOT_CONNECTED|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 SessionConnectionState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SessionConnectionState"j)letto_json=simple_to_jsonto_valueendmoduleSessionInstanceId=structtypenonrect=stringletcontext_="SessionInstanceId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^i-[a-f0-9]{8}(?:[a-f0-9]{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:"SessionInstanceId"jletto_json=simple_to_jsonto_valueendmoduleWorkspacesPoolUserId=structtypenonrect=stringletcontext_="WorkspacesPoolUserId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min: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:"WorkspacesPoolUserId"jletto_json=simple_to_jsonto_valueendmoduleConnectionState=structtypenonrect=|CONNECTED|DISCONNECTED|UNKNOWN|Non_static_idofstringletmakei=iletto_string=function|CONNECTED->"CONNECTED"|DISCONNECTED->"DISCONNECTED"|UNKNOWN->"UNKNOWN"|Non_static_ids->sletof_string=function|"CONNECTED"->CONNECTED|"DISCONNECTED"->DISCONNECTED|"UNKNOWN"->UNKNOWN|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ConnectionState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ConnectionState"j)letto_json=simple_to_jsonto_valueendmoduleErrorDetailsList=structtypenonrect=ErrorDetails.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ErrorDetails.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:ErrorDetails.of_xml)letof_jsonj=list_of_json~kind:"ErrorDetailsList"~of_json:ErrorDetails.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleOperatingSystem=structtypenonrect={type_:OperatingSystemType.toption[@ocaml.doc"The operating system."]}letmake?type_=fun()->{type_}letto_valuex=structure_to_value[("Type",(Option.mapx.type_~f:OperatingSystemType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=(Option.map~f:OperatingSystemType.of_xml)(Xml.childxml_arg0"Type")inmake?type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_mapjson__"Type"OperatingSystemType.of_jsoninmake?type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The operating system that the image is running."]moduleUpdateResult=structtypenonrect={updateAvailable:BooleanObject.toption[@ocaml.doc"Indicates whether updated drivers or other components are available for the specified WorkSpace image."];description:UpdateDescription.toption[@ocaml.doc"A description of whether updates for the WorkSpace image are pending or available."]}letmake?updateAvailable=fun?description->fun()->{updateAvailable;description}letto_valuex=structure_to_value[("UpdateAvailable",(Option.mapx.updateAvailable~f:BooleanObject.to_value));("Description",(Option.mapx.description~f:UpdateDescription.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdescription=(Option.map~f:UpdateDescription.of_xml)(Xml.childxml_arg0"Description")inletupdateAvailable=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"UpdateAvailable")inmake?description?updateAvailable()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdescription=field_mapjson__"Description"UpdateDescription.of_jsoninletupdateAvailable=field_mapjson__"UpdateAvailable"BooleanObject.of_jsoninmake?description?updateAvailable()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes whether a WorkSpace image needs to be updated with the latest drivers and other components required by Amazon WorkSpaces. Only Windows 10 WorkSpace images can be programmatically updated at this time."]moduleWorkspaceImageDescription=structtypenonrect=stringletcontext_="WorkspaceImageDescription"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9_./() -]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"WorkspaceImageDescription"jletto_json=simple_to_jsonto_valueendmoduleWorkspaceImageErrorCode=structtypenonrect=stringletcontext_="WorkspaceImageErrorCode"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:"WorkspaceImageErrorCode"jletto_json=simple_to_jsonto_valueendmoduleWorkspaceImageId=structtypenonrect=stringletcontext_="WorkspaceImageId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"wsi-[0-9a-z]{9,63}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"WorkspaceImageId"jletto_json=simple_to_jsonto_valueendmoduleWorkspaceImageName=structtypenonrect=stringletcontext_="WorkspaceImageName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(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:"WorkspaceImageName"jletto_json=simple_to_jsonto_valueendmoduleWorkspaceImageRequiredTenancy=structtypenonrect=|DEFAULT|DEDICATED|Non_static_idofstringletmakei=iletto_string=function|DEFAULT->"DEFAULT"|DEDICATED->"DEDICATED"|Non_static_ids->sletof_string=function|"DEFAULT"->DEFAULT|"DEDICATED"->DEDICATED|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 WorkspaceImageRequiredTenancy"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WorkspaceImageRequiredTenancy"j)letto_json=simple_to_jsonto_valueendmoduleWorkspaceImageState=structtypenonrect=|AVAILABLE|PENDING|ERROR|Non_static_idofstringletmakei=iletto_string=function|AVAILABLE->"AVAILABLE"|PENDING->"PENDING"|ERROR->"ERROR"|Non_static_ids->sletof_string=function|"AVAILABLE"->AVAILABLE|"PENDING"->PENDING|"ERROR"->ERROR|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration WorkspaceImageState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WorkspaceImageState"j)letto_json=simple_to_jsonto_valueendmoduleActiveDirectoryConfig=structtypenonrect={domainName:DomainName.t[@ocaml.doc"The name of the domain."];serviceAccountSecretArn:SecretsManagerArn.t[@ocaml.doc"Indicates the secret ARN on the service account."]}letcontext_="ActiveDirectoryConfig"letmake~domainName=fun~serviceAccountSecretArn->fun()->{domainName;serviceAccountSecretArn}letto_valuex=structure_to_value[("DomainName",(Some(DomainName.to_valuex.domainName)));("ServiceAccountSecretArn",(Some(SecretsManagerArn.to_valuex.serviceAccountSecretArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letserviceAccountSecretArn=SecretsManagerArn.of_xml(Xml.child_exn~context:context_xml_arg0"ServiceAccountSecretArn")inletdomainName=DomainName.of_xml(Xml.child_exn~context:context_xml_arg0"DomainName")inmake~serviceAccountSecretArn~domainName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letserviceAccountSecretArn=field_map_exnjson__"ServiceAccountSecretArn"SecretsManagerArn.of_jsoninletdomainName=field_map_exnjson__"DomainName"DomainName.of_jsoninmake~serviceAccountSecretArn~domainName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about the Active Directory config."]moduleAlias=structtypenonrect=stringletcontext_="Alias"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:"Alias"jletto_json=simple_to_jsonto_valueendmoduleCertificateBasedAuthProperties=structtypenonrect={status:CertificateBasedAuthStatusEnum.toption[@ocaml.doc"The status of the certificate-based authentication properties."];certificateAuthorityArn:CertificateAuthorityArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon Web Services Certificate Manager Private CA resource."]}letmake?status=fun?certificateAuthorityArn->fun()->{status;certificateAuthorityArn}letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:CertificateBasedAuthStatusEnum.to_value));("CertificateAuthorityArn",(Option.mapx.certificateAuthorityArn~f:CertificateAuthorityArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificateAuthorityArn=(Option.map~f:CertificateAuthorityArn.of_xml)(Xml.childxml_arg0"CertificateAuthorityArn")inletstatus=(Option.map~f:CertificateBasedAuthStatusEnum.of_xml)(Xml.childxml_arg0"Status")inmake?certificateAuthorityArn?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificateAuthorityArn=field_mapjson__"CertificateAuthorityArn"CertificateAuthorityArn.of_jsoninletstatus=field_mapjson__"Status"CertificateBasedAuthStatusEnum.of_jsoninmake?certificateAuthorityArn?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the properties of the certificate-based authentication you want to use with your WorkSpaces."]moduleDefaultWorkspaceCreationProperties=structtypenonrect={enableInternetAccess:BooleanObject.toption[@ocaml.doc"Specifies whether to automatically assign an Elastic public IP address to WorkSpaces in this directory by default. If enabled, the Elastic public IP address allows outbound internet access from your WorkSpaces when you\226\128\153re using an internet gateway in the Amazon VPC in which your WorkSpaces are located. If you're using a Network Address Translation (NAT) gateway for outbound internet access from your VPC, or if your WorkSpaces are in public subnets and you manually assign them Elastic IP addresses, you should disable this setting. This setting applies to new WorkSpaces that you launch or to existing WorkSpaces that you rebuild. For more information, see Configure a VPC for Amazon WorkSpaces."];defaultOu:DefaultOu.toption[@ocaml.doc"The organizational unit (OU) in the directory for the WorkSpace machine accounts."];customSecurityGroupId:SecurityGroupId.toption[@ocaml.doc"The identifier of the default security group to apply to WorkSpaces when they are created. For more information, see Security Groups for Your WorkSpaces."];userEnabledAsLocalAdministrator:BooleanObject.toption[@ocaml.doc"Specifies whether WorkSpace users are local administrators on their WorkSpaces."];enableMaintenanceMode:BooleanObject.toption[@ocaml.doc"Specifies whether maintenance mode is enabled for WorkSpaces. For more information, see WorkSpace Maintenance."];instanceIamRoleArn:ARN.toption[@ocaml.doc"Indicates the IAM role ARN of the instance."]}letmake?enableInternetAccess=fun?defaultOu->fun?customSecurityGroupId->fun?userEnabledAsLocalAdministrator->fun?enableMaintenanceMode->fun?instanceIamRoleArn->fun()->{enableInternetAccess;defaultOu;customSecurityGroupId;userEnabledAsLocalAdministrator;enableMaintenanceMode;instanceIamRoleArn}letto_valuex=structure_to_value[("EnableInternetAccess",(Option.mapx.enableInternetAccess~f:BooleanObject.to_value));("DefaultOu",(Option.mapx.defaultOu~f:DefaultOu.to_value));("CustomSecurityGroupId",(Option.mapx.customSecurityGroupId~f:SecurityGroupId.to_value));("UserEnabledAsLocalAdministrator",(Option.mapx.userEnabledAsLocalAdministrator~f:BooleanObject.to_value));("EnableMaintenanceMode",(Option.mapx.enableMaintenanceMode~f:BooleanObject.to_value));("InstanceIamRoleArn",(Option.mapx.instanceIamRoleArn~f:ARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinstanceIamRoleArn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"InstanceIamRoleArn")inletenableMaintenanceMode=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"EnableMaintenanceMode")inletuserEnabledAsLocalAdministrator=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"UserEnabledAsLocalAdministrator")inletcustomSecurityGroupId=(Option.map~f:SecurityGroupId.of_xml)(Xml.childxml_arg0"CustomSecurityGroupId")inletdefaultOu=(Option.map~f:DefaultOu.of_xml)(Xml.childxml_arg0"DefaultOu")inletenableInternetAccess=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"EnableInternetAccess")inmake?instanceIamRoleArn?enableMaintenanceMode?userEnabledAsLocalAdministrator?customSecurityGroupId?defaultOu?enableInternetAccess()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinstanceIamRoleArn=field_mapjson__"InstanceIamRoleArn"ARN.of_jsoninletenableMaintenanceMode=field_mapjson__"EnableMaintenanceMode"BooleanObject.of_jsoninletuserEnabledAsLocalAdministrator=field_mapjson__"UserEnabledAsLocalAdministrator"BooleanObject.of_jsoninletcustomSecurityGroupId=field_mapjson__"CustomSecurityGroupId"SecurityGroupId.of_jsoninletdefaultOu=field_mapjson__"DefaultOu"DefaultOu.of_jsoninletenableInternetAccess=field_mapjson__"EnableInternetAccess"BooleanObject.of_jsoninmake?instanceIamRoleArn?enableMaintenanceMode?userEnabledAsLocalAdministrator?customSecurityGroupId?defaultOu?enableInternetAccess()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the default values that are used to create WorkSpaces. For more information, see Update Directory Details for Your WorkSpaces."]moduleDirectoryName=structtypenonrect=stringletcontext_="DirectoryName"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:"DirectoryName"jletto_json=simple_to_jsonto_valueendmoduleDnsIpAddresses=structtypenonrect=IpAddress.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:IpAddress.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:IpAddress.of_xml)letof_jsonj=list_of_json~kind:"DnsIpAddresses"~of_json:IpAddress.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDnsIpv6Addresses=structtypenonrect=Ipv6Address.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Ipv6Address.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:Ipv6Address.of_xml)letof_jsonj=list_of_json~kind:"DnsIpv6Addresses"~of_json:Ipv6Address.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEndpointEncryptionMode=structtypenonrect=|STANDARD_TLS|FIPS_VALIDATED|Non_static_idofstringletmakei=iletto_string=function|STANDARD_TLS->"STANDARD_TLS"|FIPS_VALIDATED->"FIPS_VALIDATED"|Non_static_ids->sletof_string=function|"STANDARD_TLS"->STANDARD_TLS|"FIPS_VALIDATED"->FIPS_VALIDATED|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 EndpointEncryptionMode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EndpointEncryptionMode"j)letto_json=simple_to_jsonto_valueendmoduleIDCConfig=structtypenonrect={instanceArn:ARN.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the identity center instance."];applicationArn:ARN.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the application."]}letmake?instanceArn=fun?applicationArn->fun()->{instanceArn;applicationArn}letto_valuex=structure_to_value[("InstanceArn",(Option.mapx.instanceArn~f:ARN.to_value));("ApplicationArn",(Option.mapx.applicationArn~f:ARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapplicationArn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"ApplicationArn")inletinstanceArn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"InstanceArn")inmake?applicationArn?instanceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapplicationArn=field_mapjson__"ApplicationArn"ARN.of_jsoninletinstanceArn=field_mapjson__"InstanceArn"ARN.of_jsoninmake?applicationArn?instanceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the configurations of the identity center."]moduleIpGroupIdList=structtypenonrect=IpGroupId.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:IpGroupId.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:IpGroupId.of_xml)letof_jsonj=list_of_json~kind:"IpGroupIdList"~of_json:IpGroupId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMicrosoftEntraConfig=structtypenonrect={tenantId:MicrosoftEntraConfigTenantId.toption[@ocaml.doc"The identifier of the tenant."];applicationConfigSecretArn:SecretsManagerArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the application config."]}letmake?tenantId=fun?applicationConfigSecretArn->fun()->{tenantId;applicationConfigSecretArn}letto_valuex=structure_to_value[("TenantId",(Option.mapx.tenantId~f:MicrosoftEntraConfigTenantId.to_value));("ApplicationConfigSecretArn",(Option.mapx.applicationConfigSecretArn~f:SecretsManagerArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapplicationConfigSecretArn=(Option.map~f:SecretsManagerArn.of_xml)(Xml.childxml_arg0"ApplicationConfigSecretArn")inlettenantId=(Option.map~f:MicrosoftEntraConfigTenantId.of_xml)(Xml.childxml_arg0"TenantId")inmake?applicationConfigSecretArn?tenantId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapplicationConfigSecretArn=field_mapjson__"ApplicationConfigSecretArn"SecretsManagerArn.of_jsoninlettenantId=field_mapjson__"TenantId"MicrosoftEntraConfigTenantId.of_jsoninmake?applicationConfigSecretArn?tenantId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the configurations of the Microsoft Entra."]moduleRegistrationCode=structtypenonrect=stringletcontext_="RegistrationCode"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:20)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RegistrationCode"jletto_json=simple_to_jsonto_valueendmoduleSamlProperties=structtypenonrect={status:SamlStatusEnum.toption[@ocaml.doc"Indicates the status of SAML 2.0 authentication. These statuses include the following. If the setting is DISABLED, end users will be directed to login with their directory credentials. If the setting is ENABLED, end users will be directed to login via the user access URL. Users attempting to connect to WorkSpaces from a client application that does not support SAML 2.0 authentication will not be able to connect. If the setting is ENABLED_WITH_DIRECTORY_LOGIN_FALLBACK, end users will be directed to login via the user access URL on supported client applications, but will not prevent clients that do not support SAML 2.0 authentication from connecting as if SAML 2.0 authentication was disabled."];userAccessUrl:SamlUserAccessUrl.toption[@ocaml.doc"The SAML 2.0 identity provider (IdP) user access URL is the URL a user would navigate to in their web browser in order to federate from the IdP and directly access the application, without any SAML 2.0 service provider (SP) bindings."];relayStateParameterName:NonEmptyString.toption[@ocaml.doc"The relay state parameter name supported by the SAML 2.0 identity provider (IdP). When the end user is redirected to the user access URL from the WorkSpaces client application, this relay state parameter name is appended as a query parameter to the URL along with the relay state endpoint to return the user to the client application session. To use SAML 2.0 authentication with WorkSpaces, the IdP must support IdP-initiated deep linking for the relay state URL. Consult your IdP documentation for more information."]}letmake?status=fun?userAccessUrl->fun?relayStateParameterName->fun()->{status;userAccessUrl;relayStateParameterName}letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:SamlStatusEnum.to_value));("UserAccessUrl",(Option.mapx.userAccessUrl~f:SamlUserAccessUrl.to_value));("RelayStateParameterName",(Option.mapx.relayStateParameterName~f:NonEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrelayStateParameterName=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"RelayStateParameterName")inletuserAccessUrl=(Option.map~f:SamlUserAccessUrl.of_xml)(Xml.childxml_arg0"UserAccessUrl")inletstatus=(Option.map~f:SamlStatusEnum.of_xml)(Xml.childxml_arg0"Status")inmake?relayStateParameterName?userAccessUrl?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrelayStateParameterName=field_mapjson__"RelayStateParameterName"NonEmptyString.of_jsoninletuserAccessUrl=field_mapjson__"UserAccessUrl"SamlUserAccessUrl.of_jsoninletstatus=field_mapjson__"Status"SamlStatusEnum.of_jsoninmake?relayStateParameterName?userAccessUrl?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the enablement status, user access URL, and relay state parameter name that are used for configuring federation with an SAML 2.0 identity provider."]moduleSelfservicePermissions=structtypenonrect={restartWorkspace:ReconnectEnum.toption[@ocaml.doc"Specifies whether users can restart their WorkSpace."];increaseVolumeSize:ReconnectEnum.toption[@ocaml.doc"Specifies whether users can increase the volume size of the drives on their WorkSpace."];changeComputeType:ReconnectEnum.toption[@ocaml.doc"Specifies whether users can change the compute type (bundle) for their WorkSpace."];switchRunningMode:ReconnectEnum.toption[@ocaml.doc"Specifies whether users can switch the running mode of their WorkSpace."];rebuildWorkspace:ReconnectEnum.toption[@ocaml.doc"Specifies whether users can rebuild the operating system of a WorkSpace to its original state."]}letmake?restartWorkspace=fun?increaseVolumeSize->fun?changeComputeType->fun?switchRunningMode->fun?rebuildWorkspace->fun()->{restartWorkspace;increaseVolumeSize;changeComputeType;switchRunningMode;rebuildWorkspace}letto_valuex=structure_to_value[("RestartWorkspace",(Option.mapx.restartWorkspace~f:ReconnectEnum.to_value));("IncreaseVolumeSize",(Option.mapx.increaseVolumeSize~f:ReconnectEnum.to_value));("ChangeComputeType",(Option.mapx.changeComputeType~f:ReconnectEnum.to_value));("SwitchRunningMode",(Option.mapx.switchRunningMode~f:ReconnectEnum.to_value));("RebuildWorkspace",(Option.mapx.rebuildWorkspace~f:ReconnectEnum.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrebuildWorkspace=(Option.map~f:ReconnectEnum.of_xml)(Xml.childxml_arg0"RebuildWorkspace")inletswitchRunningMode=(Option.map~f:ReconnectEnum.of_xml)(Xml.childxml_arg0"SwitchRunningMode")inletchangeComputeType=(Option.map~f:ReconnectEnum.of_xml)(Xml.childxml_arg0"ChangeComputeType")inletincreaseVolumeSize=(Option.map~f:ReconnectEnum.of_xml)(Xml.childxml_arg0"IncreaseVolumeSize")inletrestartWorkspace=(Option.map~f:ReconnectEnum.of_xml)(Xml.childxml_arg0"RestartWorkspace")inmake?rebuildWorkspace?switchRunningMode?changeComputeType?increaseVolumeSize?restartWorkspace()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrebuildWorkspace=field_mapjson__"RebuildWorkspace"ReconnectEnum.of_jsoninletswitchRunningMode=field_mapjson__"SwitchRunningMode"ReconnectEnum.of_jsoninletchangeComputeType=field_mapjson__"ChangeComputeType"ReconnectEnum.of_jsoninletincreaseVolumeSize=field_mapjson__"IncreaseVolumeSize"ReconnectEnum.of_jsoninletrestartWorkspace=field_mapjson__"RestartWorkspace"ReconnectEnum.of_jsoninmake?rebuildWorkspace?switchRunningMode?changeComputeType?increaseVolumeSize?restartWorkspace()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the self-service permissions for a directory. For more information, see Enable Self-Service WorkSpace Management Capabilities for Your Users."]moduleStreamingProperties=structtypenonrect={streamingExperiencePreferredProtocol:StreamingExperiencePreferredProtocolEnum.toption[@ocaml.doc"Indicates the type of preferred protocol for the streaming experience."];userSettings:UserSettings.toption[@ocaml.doc"Indicates the permission settings asscoiated with the user."];storageConnectors:StorageConnectors.toption[@ocaml.doc"Indicates the storage connector used"];globalAccelerator:GlobalAcceleratorForDirectory.toption[@ocaml.doc"Indicates the Global Accelerator properties."]}letmake?streamingExperiencePreferredProtocol=fun?userSettings->fun?storageConnectors->fun?globalAccelerator->fun()->{streamingExperiencePreferredProtocol;userSettings;storageConnectors;globalAccelerator}letto_valuex=structure_to_value[("StreamingExperiencePreferredProtocol",(Option.mapx.streamingExperiencePreferredProtocol~f:StreamingExperiencePreferredProtocolEnum.to_value));("UserSettings",(Option.mapx.userSettings~f:UserSettings.to_value));("StorageConnectors",(Option.mapx.storageConnectors~f:StorageConnectors.to_value));("GlobalAccelerator",(Option.mapx.globalAccelerator~f:GlobalAcceleratorForDirectory.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letglobalAccelerator=(Option.map~f:GlobalAcceleratorForDirectory.of_xml)(Xml.childxml_arg0"GlobalAccelerator")inletstorageConnectors=(Option.map~f:StorageConnectors.of_xml)(Xml.childxml_arg0"StorageConnectors")inletuserSettings=(Option.map~f:UserSettings.of_xml)(Xml.childxml_arg0"UserSettings")inletstreamingExperiencePreferredProtocol=(Option.map~f:StreamingExperiencePreferredProtocolEnum.of_xml)(Xml.childxml_arg0"StreamingExperiencePreferredProtocol")inmake?globalAccelerator?storageConnectors?userSettings?streamingExperiencePreferredProtocol()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letglobalAccelerator=field_mapjson__"GlobalAccelerator"GlobalAcceleratorForDirectory.of_jsoninletstorageConnectors=field_mapjson__"StorageConnectors"StorageConnectors.of_jsoninletuserSettings=field_mapjson__"UserSettings"UserSettings.of_jsoninletstreamingExperiencePreferredProtocol=field_mapjson__"StreamingExperiencePreferredProtocol"StreamingExperiencePreferredProtocolEnum.of_jsoninmake?globalAccelerator?storageConnectors?userSettings?streamingExperiencePreferredProtocol()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the streaming properties."]moduleSubnetIds=structtypenonrect=SubnetId.tlistletmakei=letopenResultinok_or_failwith(check_list_maxi~max:2);iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SubnetId.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:SubnetId.of_xml)letof_jsonj=list_of_json~kind:"SubnetIds"~of_json:SubnetId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTenancy=structtypenonrect=|DEDICATED|SHARED|Non_static_idofstringletmakei=iletto_string=function|DEDICATED->"DEDICATED"|SHARED->"SHARED"|Non_static_ids->sletof_string=function|"DEDICATED"->DEDICATED|"SHARED"->SHARED|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 Tenancy"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Tenancy"j)letto_json=simple_to_jsonto_valueendmoduleUserIdentityType=structtypenonrect=|CUSTOMER_MANAGED|AWS_DIRECTORY_SERVICE|AWS_IAM_IDENTITY_CENTER|Non_static_idofstringletmakei=iletto_string=function|CUSTOMER_MANAGED->"CUSTOMER_MANAGED"|AWS_DIRECTORY_SERVICE->"AWS_DIRECTORY_SERVICE"|AWS_IAM_IDENTITY_CENTER->"AWS_IAM_IDENTITY_CENTER"|Non_static_ids->sletof_string=function|"CUSTOMER_MANAGED"->CUSTOMER_MANAGED|"AWS_DIRECTORY_SERVICE"->AWS_DIRECTORY_SERVICE|"AWS_IAM_IDENTITY_CENTER"->AWS_IAM_IDENTITY_CENTER|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 UserIdentityType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"UserIdentityType"j)letto_json=simple_to_jsonto_valueendmoduleWorkspaceAccessProperties=structtypenonrect={deviceTypeWindows:AccessPropertyValue.toption[@ocaml.doc"Indicates whether users can use Windows clients to access their WorkSpaces."];deviceTypeOsx:AccessPropertyValue.toption[@ocaml.doc"Indicates whether users can use macOS clients to access their WorkSpaces."];deviceTypeWeb:AccessPropertyValue.toption[@ocaml.doc"Indicates whether users can access their WorkSpaces through a web browser."];deviceTypeIos:AccessPropertyValue.toption[@ocaml.doc"Indicates whether users can use iOS devices to access their WorkSpaces."];deviceTypeAndroid:AccessPropertyValue.toption[@ocaml.doc"Indicates whether users can use Android and Android-compatible Chrome OS devices to access their WorkSpaces."];deviceTypeChromeOs:AccessPropertyValue.toption[@ocaml.doc"Indicates whether users can use Chromebooks to access their WorkSpaces."];deviceTypeZeroClient:AccessPropertyValue.toption[@ocaml.doc"Indicates whether users can use zero client devices to access their WorkSpaces."];deviceTypeLinux:AccessPropertyValue.toption[@ocaml.doc"Indicates whether users can use Linux clients to access their WorkSpaces."];deviceTypeWorkSpacesThinClient:AccessPropertyValue.toption[@ocaml.doc"Indicates whether users can access their WorkSpaces through a WorkSpaces Thin Client."];accessEndpointConfig:AccessEndpointConfig.toption[@ocaml.doc"Specifies the configuration for accessing the WorkSpace."]}letmake?deviceTypeWindows=fun?deviceTypeOsx->fun?deviceTypeWeb->fun?deviceTypeIos->fun?deviceTypeAndroid->fun?deviceTypeChromeOs->fun?deviceTypeZeroClient->fun?deviceTypeLinux->fun?deviceTypeWorkSpacesThinClient->fun?accessEndpointConfig->fun()->{deviceTypeWindows;deviceTypeOsx;deviceTypeWeb;deviceTypeIos;deviceTypeAndroid;deviceTypeChromeOs;deviceTypeZeroClient;deviceTypeLinux;deviceTypeWorkSpacesThinClient;accessEndpointConfig}letto_valuex=structure_to_value[("DeviceTypeWindows",(Option.mapx.deviceTypeWindows~f:AccessPropertyValue.to_value));("DeviceTypeOsx",(Option.mapx.deviceTypeOsx~f:AccessPropertyValue.to_value));("DeviceTypeWeb",(Option.mapx.deviceTypeWeb~f:AccessPropertyValue.to_value));("DeviceTypeIos",(Option.mapx.deviceTypeIos~f:AccessPropertyValue.to_value));("DeviceTypeAndroid",(Option.mapx.deviceTypeAndroid~f:AccessPropertyValue.to_value));("DeviceTypeChromeOs",(Option.mapx.deviceTypeChromeOs~f:AccessPropertyValue.to_value));("DeviceTypeZeroClient",(Option.mapx.deviceTypeZeroClient~f:AccessPropertyValue.to_value));("DeviceTypeLinux",(Option.mapx.deviceTypeLinux~f:AccessPropertyValue.to_value));("DeviceTypeWorkSpacesThinClient",(Option.mapx.deviceTypeWorkSpacesThinClient~f:AccessPropertyValue.to_value));("AccessEndpointConfig",(Option.mapx.accessEndpointConfig~f:AccessEndpointConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccessEndpointConfig=(Option.map~f:AccessEndpointConfig.of_xml)(Xml.childxml_arg0"AccessEndpointConfig")inletdeviceTypeWorkSpacesThinClient=(Option.map~f:AccessPropertyValue.of_xml)(Xml.childxml_arg0"DeviceTypeWorkSpacesThinClient")inletdeviceTypeLinux=(Option.map~f:AccessPropertyValue.of_xml)(Xml.childxml_arg0"DeviceTypeLinux")inletdeviceTypeZeroClient=(Option.map~f:AccessPropertyValue.of_xml)(Xml.childxml_arg0"DeviceTypeZeroClient")inletdeviceTypeChromeOs=(Option.map~f:AccessPropertyValue.of_xml)(Xml.childxml_arg0"DeviceTypeChromeOs")inletdeviceTypeAndroid=(Option.map~f:AccessPropertyValue.of_xml)(Xml.childxml_arg0"DeviceTypeAndroid")inletdeviceTypeIos=(Option.map~f:AccessPropertyValue.of_xml)(Xml.childxml_arg0"DeviceTypeIos")inletdeviceTypeWeb=(Option.map~f:AccessPropertyValue.of_xml)(Xml.childxml_arg0"DeviceTypeWeb")inletdeviceTypeOsx=(Option.map~f:AccessPropertyValue.of_xml)(Xml.childxml_arg0"DeviceTypeOsx")inletdeviceTypeWindows=(Option.map~f:AccessPropertyValue.of_xml)(Xml.childxml_arg0"DeviceTypeWindows")inmake?accessEndpointConfig?deviceTypeWorkSpacesThinClient?deviceTypeLinux?deviceTypeZeroClient?deviceTypeChromeOs?deviceTypeAndroid?deviceTypeIos?deviceTypeWeb?deviceTypeOsx?deviceTypeWindows()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccessEndpointConfig=field_mapjson__"AccessEndpointConfig"AccessEndpointConfig.of_jsoninletdeviceTypeWorkSpacesThinClient=field_mapjson__"DeviceTypeWorkSpacesThinClient"AccessPropertyValue.of_jsoninletdeviceTypeLinux=field_mapjson__"DeviceTypeLinux"AccessPropertyValue.of_jsoninletdeviceTypeZeroClient=field_mapjson__"DeviceTypeZeroClient"AccessPropertyValue.of_jsoninletdeviceTypeChromeOs=field_mapjson__"DeviceTypeChromeOs"AccessPropertyValue.of_jsoninletdeviceTypeAndroid=field_mapjson__"DeviceTypeAndroid"AccessPropertyValue.of_jsoninletdeviceTypeIos=field_mapjson__"DeviceTypeIos"AccessPropertyValue.of_jsoninletdeviceTypeWeb=field_mapjson__"DeviceTypeWeb"AccessPropertyValue.of_jsoninletdeviceTypeOsx=field_mapjson__"DeviceTypeOsx"AccessPropertyValue.of_jsoninletdeviceTypeWindows=field_mapjson__"DeviceTypeWindows"AccessPropertyValue.of_jsoninmake?accessEndpointConfig?deviceTypeWorkSpacesThinClient?deviceTypeLinux?deviceTypeZeroClient?deviceTypeChromeOs?deviceTypeAndroid?deviceTypeIos?deviceTypeWeb?deviceTypeOsx?deviceTypeWindows()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The device types and operating systems that can be used to access a WorkSpace. For more information, see Amazon WorkSpaces Client Network Requirements."]moduleWorkspaceDirectoryDescription=structtypenonrect=stringletcontext_="WorkspaceDirectoryDescription"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^([a-zA-Z0-9_])[\\\\a-zA-Z0-9_@#%*+=:?./!\\s-]{1,255}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"WorkspaceDirectoryDescription"jletto_json=simple_to_jsonto_valueendmoduleWorkspaceDirectoryName=structtypenonrect=stringletcontext_="WorkspaceDirectoryName"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^[a-zA-Z0-9][a-zA-Z0-9_.\\s-]{1,64}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"WorkspaceDirectoryName"jletto_json=simple_to_jsonto_valueendmoduleWorkspaceDirectoryState=structtypenonrect=|REGISTERING|REGISTERED|DEREGISTERING|DEREGISTERED|ERROR|Non_static_idofstringletmakei=iletto_string=function|REGISTERING->"REGISTERING"|REGISTERED->"REGISTERED"|DEREGISTERING->"DEREGISTERING"|DEREGISTERED->"DEREGISTERED"|ERROR->"ERROR"|Non_static_ids->sletof_string=function|"REGISTERING"->REGISTERING|"REGISTERED"->REGISTERED|"DEREGISTERING"->DEREGISTERING|"DEREGISTERED"->DEREGISTERED|"ERROR"->ERROR|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration WorkspaceDirectoryState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WorkspaceDirectoryState"j)letto_json=simple_to_jsonto_valueendmoduleWorkspaceDirectoryType=structtypenonrect=|SIMPLE_AD|AD_CONNECTOR|CUSTOMER_MANAGED|AWS_IAM_IDENTITY_CENTER|Non_static_idofstringletmakei=iletto_string=function|SIMPLE_AD->"SIMPLE_AD"|AD_CONNECTOR->"AD_CONNECTOR"|CUSTOMER_MANAGED->"CUSTOMER_MANAGED"|AWS_IAM_IDENTITY_CENTER->"AWS_IAM_IDENTITY_CENTER"|Non_static_ids->sletof_string=function|"SIMPLE_AD"->SIMPLE_AD|"AD_CONNECTOR"->AD_CONNECTOR|"CUSTOMER_MANAGED"->CUSTOMER_MANAGED|"AWS_IAM_IDENTITY_CENTER"->AWS_IAM_IDENTITY_CENTER|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 WorkspaceDirectoryType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WorkspaceDirectoryType"j)letto_json=simple_to_jsonto_valueendmoduleWorkspaceType=structtypenonrect=|PERSONAL|POOLS|Non_static_idofstringletmakei=iletto_string=function|PERSONAL->"PERSONAL"|POOLS->"POOLS"|Non_static_ids->sletof_string=function|"PERSONAL"->PERSONAL|"POOLS"->POOLS|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 WorkspaceType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WorkspaceType"j)letto_json=simple_to_jsonto_valueendmoduleDescribeWorkspaceDirectoriesFilterName=structtypenonrect=|USER_IDENTITY_TYPE|WORKSPACE_TYPE|Non_static_idofstringletmakei=iletto_string=function|USER_IDENTITY_TYPE->"USER_IDENTITY_TYPE"|WORKSPACE_TYPE->"WORKSPACE_TYPE"|Non_static_ids->sletof_string=function|"USER_IDENTITY_TYPE"->USER_IDENTITY_TYPE|"WORKSPACE_TYPE"->WORKSPACE_TYPE|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 DescribeWorkspaceDirectoriesFilterName"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DescribeWorkspaceDirectoriesFilterName"j)letto_json=simple_to_jsonto_valueendmoduleDescribeWorkspaceDirectoriesFilterValues=structtypenonrect=DescribeWorkspaceDirectoriesFilterValue.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DescribeWorkspaceDirectoriesFilterValue.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:DescribeWorkspaceDirectoriesFilterValue.of_xml)letof_jsonj=list_of_json~kind:"DescribeWorkspaceDirectoriesFilterValues"~of_json:DescribeWorkspaceDirectoriesFilterValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBundleOwner=structtypenonrect=stringletcontext_="BundleOwner"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:"BundleOwner"jletto_json=simple_to_jsonto_valueendmoduleBundleType=structtypenonrect=|REGULAR|STANDBY|Non_static_idofstringletmakei=iletto_string=function|REGULAR->"REGULAR"|STANDBY->"STANDBY"|Non_static_ids->sletof_string=function|"REGULAR"->REGULAR|"STANDBY"->STANDBY|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 BundleType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"BundleType"j)letto_json=simple_to_jsonto_valueendmoduleComputeType=structtypenonrect={name:Compute.toption[@ocaml.doc"The compute type."]}letmake?name=fun()->{name}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:Compute.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=(Option.map~f:Compute.of_xml)(Xml.childxml_arg0"Name")inmake?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_mapjson__"Name"Compute.of_jsoninmake?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the compute type of the bundle."]moduleRootStorage=structtypenonrect={capacity:NonEmptyString.t[@ocaml.doc"The size of the root volume."]}letcontext_="RootStorage"letmake~capacity=fun()->{capacity}letto_valuex=structure_to_value[("Capacity",(Some(NonEmptyString.to_valuex.capacity)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcapacity=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"Capacity")inmake~capacity()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcapacity=field_map_exnjson__"Capacity"NonEmptyString.of_jsoninmake~capacity()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the root volume for a WorkSpace bundle."]moduleUserStorage=structtypenonrect={capacity:NonEmptyString.t[@ocaml.doc"The size of the user volume."]}letcontext_="UserStorage"letmake~capacity=fun()->{capacity}letto_valuex=structure_to_value[("Capacity",(Some(NonEmptyString.to_valuex.capacity)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcapacity=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"Capacity")inmake~capacity()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcapacity=field_map_exnjson__"Capacity"NonEmptyString.of_jsoninmake~capacity()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the user volume for a WorkSpace bundle."]moduleWorkspaceBundleState=structtypenonrect=|AVAILABLE|PENDING|ERROR|Non_static_idofstringletmakei=iletto_string=function|AVAILABLE->"AVAILABLE"|PENDING->"PENDING"|ERROR->"ERROR"|Non_static_ids->sletof_string=function|"AVAILABLE"->AVAILABLE|"PENDING"->PENDING|"ERROR"->ERROR|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration WorkspaceBundleState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WorkspaceBundleState"j)letto_json=simple_to_jsonto_valueendmoduleIpGroupDesc=structtypenonrect=stringletcontext_="IpGroupDesc"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:"IpGroupDesc"jletto_json=simple_to_jsonto_valueendmoduleIpGroupName=structtypenonrect=stringletcontext_="IpGroupName"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:"IpGroupName"jletto_json=simple_to_jsonto_valueendmoduleIpRuleList=structtypenonrect=IpRuleItem.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:IpRuleItem.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:IpRuleItem.of_xml)letof_jsonj=list_of_json~kind:"IpRuleList"~of_json:IpRuleItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleImageAssociatedResourceType=structtypenonrect=|APPLICATION|Non_static_idofstringletmakei=iletto_string=function|APPLICATION->"APPLICATION"|Non_static_ids->sletof_string=function|"APPLICATION"->APPLICATION|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 ImageAssociatedResourceType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ImageAssociatedResourceType"j)letto_json=simple_to_jsonto_valueendmoduleErrorCode=structtypenonrect=stringletcontext_="ErrorCode"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ErrorCode"jletto_json=simple_to_jsonto_valueendmoduleImageErrorMessage=structtypenonrect=stringletcontext_="ImageErrorMessage"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ImageErrorMessage"jletto_json=simple_to_jsonto_valueendmoduleConnectionAliasAssociationList=structtypenonrect=ConnectionAliasAssociation.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ConnectionAliasAssociation.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:ConnectionAliasAssociation.of_xml)letof_jsonj=list_of_json~kind:"ConnectionAliasAssociationList"~of_json:ConnectionAliasAssociation.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleConnectionAliasId=structtypenonrect=stringletcontext_="ConnectionAliasId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:13)>>=(fun()->(check_string_maxi~max:68)>>=(fun()->check_patterni~pattern:"^wsca-[0-9a-z]{8,63}$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ConnectionAliasId"jletto_json=simple_to_jsonto_valueendmoduleConnectionAliasState=structtypenonrect=|CREATING|CREATED|DELETING|Non_static_idofstringletmakei=iletto_string=function|CREATING->"CREATING"|CREATED->"CREATED"|DELETING->"DELETING"|Non_static_ids->sletof_string=function|"CREATING"->CREATING|"CREATED"->CREATED|"DELETING"->DELETING|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 ConnectionAliasState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ConnectionAliasState"j)letto_json=simple_to_jsonto_valueendmoduleConnectionString=structtypenonrect=stringletcontext_="ConnectionString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^[.0-9a-zA-Z\\-]{1,255}$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ConnectionString"jletto_json=simple_to_jsonto_valueendmoduleAddInName=structtypenonrect=stringletcontext_="AddInName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"^.*$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AddInName"jletto_json=simple_to_jsonto_valueendmoduleAddInUrl=structtypenonrect=stringletcontext_="AddInUrl"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:"^(http|https)\\://\\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:"AddInUrl"jletto_json=simple_to_jsonto_valueendmoduleClientProperties=structtypenonrect={reconnectEnabled:ReconnectEnum.toption[@ocaml.doc"Specifies whether users can cache their credentials on the Amazon WorkSpaces client. When enabled, users can choose to reconnect to their WorkSpaces without re-entering their credentials."];logUploadEnabled:LogUploadEnum.toption[@ocaml.doc"Specifies whether users can upload diagnostic log files of Amazon WorkSpaces client directly to WorkSpaces to troubleshoot issues when using the WorkSpaces client. When enabled, the log files will be sent to WorkSpaces automatically and will be applied to all users in the specified directory."]}letmake?reconnectEnabled=fun?logUploadEnabled->fun()->{reconnectEnabled;logUploadEnabled}letto_valuex=structure_to_value[("ReconnectEnabled",(Option.mapx.reconnectEnabled~f:ReconnectEnum.to_value));("LogUploadEnabled",(Option.mapx.logUploadEnabled~f:LogUploadEnum.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlogUploadEnabled=(Option.map~f:LogUploadEnum.of_xml)(Xml.childxml_arg0"LogUploadEnabled")inletreconnectEnabled=(Option.map~f:ReconnectEnum.of_xml)(Xml.childxml_arg0"ReconnectEnabled")inmake?logUploadEnabled?reconnectEnabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlogUploadEnabled=field_mapjson__"LogUploadEnabled"LogUploadEnum.of_jsoninletreconnectEnabled=field_mapjson__"ReconnectEnabled"ReconnectEnum.of_jsoninmake?logUploadEnabled?reconnectEnabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes an Amazon WorkSpaces client."]moduleBundleAssociatedResourceType=structtypenonrect=|APPLICATION|Non_static_idofstringletmakei=iletto_string=function|APPLICATION->"APPLICATION"|Non_static_ids->sletof_string=function|"APPLICATION"->APPLICATION|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 BundleAssociatedResourceType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"BundleAssociatedResourceType"j)letto_json=simple_to_jsonto_valueendmoduleComputeList=structtypenonrect=Compute.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Compute.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:Compute.of_xml)letof_jsonj=list_of_json~kind:"ComputeList"~of_json:Compute.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleOperatingSystemNameList=structtypenonrect=OperatingSystemName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:OperatingSystemName.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:OperatingSystemName.of_xml)letof_jsonj=list_of_json~kind:"OperatingSystemNameList"~of_json:OperatingSystemName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWorkSpaceApplicationId=structtypenonrect=stringletcontext_="WorkSpaceApplicationId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^wsa-[0-9a-z]{8,63}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"WorkSpaceApplicationId"jletto_json=simple_to_jsonto_valueendmoduleWorkSpaceApplicationLicenseType=structtypenonrect=|LICENSED|UNLICENSED|Non_static_idofstringletmakei=iletto_string=function|LICENSED->"LICENSED"|UNLICENSED->"UNLICENSED"|Non_static_ids->sletof_string=function|"LICENSED"->LICENSED|"UNLICENSED"->UNLICENSED|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 WorkSpaceApplicationLicenseType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WorkSpaceApplicationLicenseType"j)letto_json=simple_to_jsonto_valueendmoduleWorkSpaceApplicationOwner=structtypenonrect=stringletcontext_="WorkSpaceApplicationOwner"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^\\d{12}|AMAZON$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"WorkSpaceApplicationOwner"jletto_json=simple_to_jsonto_valueendmoduleWorkSpaceApplicationState=structtypenonrect=|PENDING|ERROR|AVAILABLE|UNINSTALL_ONLY|Non_static_idofstringletmakei=iletto_string=function|PENDING->"PENDING"|ERROR->"ERROR"|AVAILABLE->"AVAILABLE"|UNINSTALL_ONLY->"UNINSTALL_ONLY"|Non_static_ids->sletof_string=function|"PENDING"->PENDING|"ERROR"->ERROR|"AVAILABLE"->AVAILABLE|"UNINSTALL_ONLY"->UNINSTALL_ONLY|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 WorkSpaceApplicationState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WorkSpaceApplicationState"j)letto_json=simple_to_jsonto_valueendmoduleApplicationAssociatedResourceType=structtypenonrect=|WORKSPACE|BUNDLE|IMAGE|Non_static_idofstringletmakei=iletto_string=function|WORKSPACE->"WORKSPACE"|BUNDLE->"BUNDLE"|IMAGE->"IMAGE"|Non_static_ids->sletof_string=function|"WORKSPACE"->WORKSPACE|"BUNDLE"->BUNDLE|"IMAGE"->IMAGE|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 ApplicationAssociatedResourceType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ApplicationAssociatedResourceType"j)letto_json=simple_to_jsonto_valueendmoduleDedicatedTenancyManagementCidrRange=structtypenonrect=stringletcontext_="DedicatedTenancyManagementCidrRange"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"(^([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.0\\.0)(\\/(16$))$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DedicatedTenancyManagementCidrRange"jletto_json=simple_to_jsonto_valueendmoduleDedicatedTenancyModificationStateEnum=structtypenonrect=|PENDING|COMPLETED|FAILED|Non_static_idofstringletmakei=iletto_string=function|PENDING->"PENDING"|COMPLETED->"COMPLETED"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"PENDING"->PENDING|"COMPLETED"->COMPLETED|"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 DedicatedTenancyModificationStateEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DedicatedTenancyModificationStateEnum"j)letto_json=simple_to_jsonto_valueendmoduleDedicatedTenancySupportResultEnum=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration DedicatedTenancySupportResultEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DedicatedTenancySupportResultEnum"j)letto_json=simple_to_jsonto_valueendmoduleWorkspaceResourceAssociation=structtypenonrect={associatedResourceId:NonEmptyString.toption[@ocaml.doc"The identifier of the associated resource."];associatedResourceType:WorkSpaceAssociatedResourceType.toption[@ocaml.doc"The resource types of the associated resource."];created:Timestamp.toption[@ocaml.doc"The time the association is created."];lastUpdatedTime:Timestamp.toption[@ocaml.doc"The time the association status was last updated."];state:AssociationState.toption[@ocaml.doc"The status of the WorkSpace resource association."];stateReason:AssociationStateReason.toption[@ocaml.doc"The reason the association deployment failed."];workspaceId:WorkspaceId.toption[@ocaml.doc"The identifier of the WorkSpace."]}letmake?associatedResourceId=fun?associatedResourceType->fun?created->fun?lastUpdatedTime->fun?state->fun?stateReason->fun?workspaceId->fun()->{associatedResourceId;associatedResourceType;created;lastUpdatedTime;state;stateReason;workspaceId}letto_valuex=structure_to_value[("AssociatedResourceId",(Option.mapx.associatedResourceId~f:NonEmptyString.to_value));("AssociatedResourceType",(Option.mapx.associatedResourceType~f:WorkSpaceAssociatedResourceType.to_value));("Created",(Option.mapx.created~f:Timestamp.to_value));("LastUpdatedTime",(Option.mapx.lastUpdatedTime~f:Timestamp.to_value));("State",(Option.mapx.state~f:AssociationState.to_value));("StateReason",(Option.mapx.stateReason~f:AssociationStateReason.to_value));("WorkspaceId",(Option.mapx.workspaceId~f:WorkspaceId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkspaceId=(Option.map~f:WorkspaceId.of_xml)(Xml.childxml_arg0"WorkspaceId")inletstateReason=(Option.map~f:AssociationStateReason.of_xml)(Xml.childxml_arg0"StateReason")inletstate=(Option.map~f:AssociationState.of_xml)(Xml.childxml_arg0"State")inletlastUpdatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastUpdatedTime")inletcreated=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"Created")inletassociatedResourceType=(Option.map~f:WorkSpaceAssociatedResourceType.of_xml)(Xml.childxml_arg0"AssociatedResourceType")inletassociatedResourceId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"AssociatedResourceId")inmake?workspaceId?stateReason?state?lastUpdatedTime?created?associatedResourceType?associatedResourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkspaceId=field_mapjson__"WorkspaceId"WorkspaceId.of_jsoninletstateReason=field_mapjson__"StateReason"AssociationStateReason.of_jsoninletstate=field_mapjson__"State"AssociationState.of_jsoninletlastUpdatedTime=field_mapjson__"LastUpdatedTime"Timestamp.of_jsoninletcreated=field_mapjson__"Created"Timestamp.of_jsoninletassociatedResourceType=field_mapjson__"AssociatedResourceType"WorkSpaceAssociatedResourceType.of_jsoninletassociatedResourceId=field_mapjson__"AssociatedResourceId"NonEmptyString.of_jsoninmake?workspaceId?stateReason?state?lastUpdatedTime?created?associatedResourceType?associatedResourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the association between an application and a WorkSpace resource."]moduleWorkspaceRequest=structtypenonrect={directoryId:DirectoryId.t[@ocaml.doc"The identifier of the Directory Service directory for the WorkSpace. You can use DescribeWorkspaceDirectories to list the available directories."];userName:UserName.t[@ocaml.doc"The user name of the user for the WorkSpace. This user name must exist in the Directory Service directory for the WorkSpace. The username is not case-sensitive, but we recommend matching the case in the Directory Service directory to avoid potential incompatibilities. The reserved keyword, \\[UNDEFINED\\], is used when creating user-decoupled WorkSpaces."];bundleId:BundleId.t[@ocaml.doc"The identifier of the bundle for the WorkSpace. You can use DescribeWorkspaceBundles to list the available bundles."];volumeEncryptionKey:VolumeEncryptionKey.toption[@ocaml.doc"The ARN of the symmetric KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys."];userVolumeEncryptionEnabled:BooleanObject.toption[@ocaml.doc"Indicates whether the data stored on the user volume is encrypted."];rootVolumeEncryptionEnabled:BooleanObject.toption[@ocaml.doc"Indicates whether the data stored on the root volume is encrypted."];workspaceProperties:WorkspaceProperties.toption[@ocaml.doc"The WorkSpace properties."];tags:TagList.toption[@ocaml.doc"The tags for the WorkSpace."];workspaceName:WorkspaceName.toption[@ocaml.doc"The name of the user-decoupled WorkSpace. WorkspaceName is required if UserName is \\[UNDEFINED\\] for user-decoupled WorkSpaces. WorkspaceName is not applicable if UserName is specified for user-assigned WorkSpaces."];ipv6Address:Ipv6Address.toption[@ocaml.doc"The IPv6 address for the WorkSpace."]}letcontext_="WorkspaceRequest"letmake?volumeEncryptionKey=fun?userVolumeEncryptionEnabled->fun?rootVolumeEncryptionEnabled->fun?workspaceProperties->fun?tags->fun?workspaceName->fun?ipv6Address->fun~directoryId->fun~userName->fun~bundleId->fun()->{volumeEncryptionKey;userVolumeEncryptionEnabled;rootVolumeEncryptionEnabled;workspaceProperties;tags;workspaceName;ipv6Address;directoryId;userName;bundleId}letto_valuex=structure_to_value[("DirectoryId",(Some(DirectoryId.to_valuex.directoryId)));("UserName",(Some(UserName.to_valuex.userName)));("BundleId",(Some(BundleId.to_valuex.bundleId)));("VolumeEncryptionKey",(Option.mapx.volumeEncryptionKey~f:VolumeEncryptionKey.to_value));("UserVolumeEncryptionEnabled",(Option.mapx.userVolumeEncryptionEnabled~f:BooleanObject.to_value));("RootVolumeEncryptionEnabled",(Option.mapx.rootVolumeEncryptionEnabled~f:BooleanObject.to_value));("WorkspaceProperties",(Option.mapx.workspaceProperties~f:WorkspaceProperties.to_value));("Tags",(Option.mapx.tags~f:TagList.to_value));("WorkspaceName",(Option.mapx.workspaceName~f:WorkspaceName.to_value));("Ipv6Address",(Option.mapx.ipv6Address~f:Ipv6Address.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letipv6Address=(Option.map~f:Ipv6Address.of_xml)(Xml.childxml_arg0"Ipv6Address")inletworkspaceName=(Option.map~f:WorkspaceName.of_xml)(Xml.childxml_arg0"WorkspaceName")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletworkspaceProperties=(Option.map~f:WorkspaceProperties.of_xml)(Xml.childxml_arg0"WorkspaceProperties")inletrootVolumeEncryptionEnabled=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"RootVolumeEncryptionEnabled")inletuserVolumeEncryptionEnabled=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"UserVolumeEncryptionEnabled")inletvolumeEncryptionKey=(Option.map~f:VolumeEncryptionKey.of_xml)(Xml.childxml_arg0"VolumeEncryptionKey")inletbundleId=BundleId.of_xml(Xml.child_exn~context:context_xml_arg0"BundleId")inletuserName=UserName.of_xml(Xml.child_exn~context:context_xml_arg0"UserName")inletdirectoryId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"DirectoryId")inmake?ipv6Address?workspaceName?tags?workspaceProperties?rootVolumeEncryptionEnabled?userVolumeEncryptionEnabled?volumeEncryptionKey~bundleId~userName~directoryId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letipv6Address=field_mapjson__"Ipv6Address"Ipv6Address.of_jsoninletworkspaceName=field_mapjson__"WorkspaceName"WorkspaceName.of_jsoninlettags=field_mapjson__"Tags"TagList.of_jsoninletworkspaceProperties=field_mapjson__"WorkspaceProperties"WorkspaceProperties.of_jsoninletrootVolumeEncryptionEnabled=field_mapjson__"RootVolumeEncryptionEnabled"BooleanObject.of_jsoninletuserVolumeEncryptionEnabled=field_mapjson__"UserVolumeEncryptionEnabled"BooleanObject.of_jsoninletvolumeEncryptionKey=field_mapjson__"VolumeEncryptionKey"VolumeEncryptionKey.of_jsoninletbundleId=field_map_exnjson__"BundleId"BundleId.of_jsoninletuserName=field_map_exnjson__"UserName"UserName.of_jsoninletdirectoryId=field_map_exnjson__"DirectoryId"DirectoryId.of_jsoninmake?ipv6Address?workspaceName?tags?workspaceProperties?rootVolumeEncryptionEnabled?userVolumeEncryptionEnabled?volumeEncryptionKey~bundleId~userName~directoryId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the information used to create a WorkSpace."]moduleStandbyWorkspace=structtypenonrect={primaryWorkspaceId:WorkspaceId.t[@ocaml.doc"The identifier of the standby WorkSpace."];volumeEncryptionKey:VolumeEncryptionKey.toption[@ocaml.doc"The volume encryption key of the standby WorkSpace."];directoryId:DirectoryId.t[@ocaml.doc"The identifier of the directory for the standby WorkSpace."];tags:TagList.toption[@ocaml.doc"The tags associated with the standby WorkSpace."];dataReplication:DataReplication.toption[@ocaml.doc"Indicates whether data replication is enabled, and if enabled, the type of data replication."]}letcontext_="StandbyWorkspace"letmake?volumeEncryptionKey=fun?tags->fun?dataReplication->fun~primaryWorkspaceId->fun~directoryId->fun()->{volumeEncryptionKey;tags;dataReplication;primaryWorkspaceId;directoryId}letto_valuex=structure_to_value[("PrimaryWorkspaceId",(Some(WorkspaceId.to_valuex.primaryWorkspaceId)));("VolumeEncryptionKey",(Option.mapx.volumeEncryptionKey~f:VolumeEncryptionKey.to_value));("DirectoryId",(Some(DirectoryId.to_valuex.directoryId)));("Tags",(Option.mapx.tags~f:TagList.to_value));("DataReplication",(Option.mapx.dataReplication~f:DataReplication.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataReplication=(Option.map~f:DataReplication.of_xml)(Xml.childxml_arg0"DataReplication")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletdirectoryId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"DirectoryId")inletvolumeEncryptionKey=(Option.map~f:VolumeEncryptionKey.of_xml)(Xml.childxml_arg0"VolumeEncryptionKey")inletprimaryWorkspaceId=WorkspaceId.of_xml(Xml.child_exn~context:context_xml_arg0"PrimaryWorkspaceId")inmake?dataReplication?tags~directoryId?volumeEncryptionKey~primaryWorkspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataReplication=field_mapjson__"DataReplication"DataReplication.of_jsoninlettags=field_mapjson__"Tags"TagList.of_jsoninletdirectoryId=field_map_exnjson__"DirectoryId"DirectoryId.of_jsoninletvolumeEncryptionKey=field_mapjson__"VolumeEncryptionKey"VolumeEncryptionKey.of_jsoninletprimaryWorkspaceId=field_map_exnjson__"PrimaryWorkspaceId"WorkspaceId.of_jsoninmake?dataReplication?tags~directoryId?volumeEncryptionKey~primaryWorkspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a standby WorkSpace."]moduleExceptionMessage=structtypenonrect=stringletcontext_="ExceptionMessage"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:"ExceptionMessage"jletto_json=simple_to_jsonto_valueendmoduleExceptionErrorCode=structtypenonrect=stringletcontext_="ExceptionErrorCode"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:"ExceptionErrorCode"jletto_json=simple_to_jsonto_valueendmoduleFailedWorkspaceChangeRequest=structtypenonrect={workspaceId:WorkspaceId.toption[@ocaml.doc"The identifier of the WorkSpace."];errorCode:ErrorType.toption[@ocaml.doc"The error code that is returned if the WorkSpace cannot be rebooted."];errorMessage:Description.toption[@ocaml.doc"The text of the error message that is returned if the WorkSpace cannot be rebooted."]}letmake?workspaceId=fun?errorCode->fun?errorMessage->fun()->{workspaceId;errorCode;errorMessage}letto_valuex=structure_to_value[("WorkspaceId",(Option.mapx.workspaceId~f:WorkspaceId.to_value));("ErrorCode",(Option.mapx.errorCode~f:ErrorType.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:Description.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:ErrorType.of_xml)(Xml.childxml_arg0"ErrorCode")inletworkspaceId=(Option.map~f:WorkspaceId.of_xml)(Xml.childxml_arg0"WorkspaceId")inmake?errorMessage?errorCode?workspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"Description.of_jsoninleterrorCode=field_mapjson__"ErrorCode"ErrorType.of_jsoninletworkspaceId=field_mapjson__"WorkspaceId"WorkspaceId.of_jsoninmake?errorMessage?errorCode?workspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a WorkSpace that could not be rebooted. (RebootWorkspaces), rebuilt (RebuildWorkspaces), restored (RestoreWorkspace), terminated (TerminateWorkspaces), started (StartWorkspaces), or stopped (StopWorkspaces)."]moduleTerminateRequest=structtypenonrect={workspaceId:WorkspaceId.t[@ocaml.doc"The identifier of the WorkSpace."]}letcontext_="TerminateRequest"letmake~workspaceId=fun()->{workspaceId}letto_valuex=structure_to_value[("WorkspaceId",(Some(WorkspaceId.to_valuex.workspaceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkspaceId=WorkspaceId.of_xml(Xml.child_exn~context:context_xml_arg0"WorkspaceId")inmake~workspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkspaceId=field_map_exnjson__"WorkspaceId"WorkspaceId.of_jsoninmake~workspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the information used to terminate a WorkSpace."]moduleStopRequest=structtypenonrect={workspaceId:WorkspaceId.toption[@ocaml.doc"The identifier of the WorkSpace."]}letmake?workspaceId=fun()->{workspaceId}letto_valuex=structure_to_value[("WorkspaceId",(Option.mapx.workspaceId~f:WorkspaceId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkspaceId=(Option.map~f:WorkspaceId.of_xml)(Xml.childxml_arg0"WorkspaceId")inmake?workspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkspaceId=field_mapjson__"WorkspaceId"WorkspaceId.of_jsoninmake?workspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the information used to stop a WorkSpace."]moduleStartRequest=structtypenonrect={workspaceId:WorkspaceId.toption[@ocaml.doc"The identifier of the WorkSpace."]}letmake?workspaceId=fun()->{workspaceId}letto_valuex=structure_to_value[("WorkspaceId",(Option.mapx.workspaceId~f:WorkspaceId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkspaceId=(Option.map~f:WorkspaceId.of_xml)(Xml.childxml_arg0"WorkspaceId")inmake?workspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkspaceId=field_mapjson__"WorkspaceId"WorkspaceId.of_jsoninmake?workspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information used to start a WorkSpace."]moduleRebuildRequest=structtypenonrect={workspaceId:WorkspaceId.t[@ocaml.doc"The identifier of the WorkSpace."]}letcontext_="RebuildRequest"letmake~workspaceId=fun()->{workspaceId}letto_valuex=structure_to_value[("WorkspaceId",(Some(WorkspaceId.to_valuex.workspaceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkspaceId=WorkspaceId.of_xml(Xml.child_exn~context:context_xml_arg0"WorkspaceId")inmake~workspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkspaceId=field_map_exnjson__"WorkspaceId"WorkspaceId.of_jsoninmake~workspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the information used to rebuild a WorkSpace."]moduleRebootRequest=structtypenonrect={workspaceId:WorkspaceId.t[@ocaml.doc"The identifier of the WorkSpace."]}letcontext_="RebootRequest"letmake~workspaceId=fun()->{workspaceId}letto_valuex=structure_to_value[("WorkspaceId",(Some(WorkspaceId.to_valuex.workspaceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkspaceId=WorkspaceId.of_xml(Xml.child_exn~context:context_xml_arg0"WorkspaceId")inmake~workspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkspaceId=field_map_exnjson__"WorkspaceId"WorkspaceId.of_jsoninmake~workspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the information used to reboot a WorkSpace."]moduleDeletableSamlProperty=structtypenonrect=|SAML_PROPERTIES_USER_ACCESS_URL|SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME|Non_static_idofstringletmakei=iletto_string=function|SAML_PROPERTIES_USER_ACCESS_URL->"SAML_PROPERTIES_USER_ACCESS_URL"|SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME->"SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME"|Non_static_ids->sletof_string=function|"SAML_PROPERTIES_USER_ACCESS_URL"->SAML_PROPERTIES_USER_ACCESS_URL|"SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME"->SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME|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 DeletableSamlProperty"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DeletableSamlProperty"j)letto_json=simple_to_jsonto_valueendmoduleDeletableCertificateBasedAuthProperty=structtypenonrect=|CERTIFICATE_BASED_AUTH_PROPERTIES_CERTIFICATE_AUTHORITY_ARN|Non_static_idofstringletmakei=iletto_string=function|CERTIFICATE_BASED_AUTH_PROPERTIES_CERTIFICATE_AUTHORITY_ARN->"CERTIFICATE_BASED_AUTH_PROPERTIES_CERTIFICATE_AUTHORITY_ARN"|Non_static_ids->sletof_string=function|"CERTIFICATE_BASED_AUTH_PROPERTIES_CERTIFICATE_AUTHORITY_ARN"->CERTIFICATE_BASED_AUTH_PROPERTIES_CERTIFICATE_AUTHORITY_ARN|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 DeletableCertificateBasedAuthProperty"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DeletableCertificateBasedAuthProperty"j)letto_json=simple_to_jsonto_valueendmoduleAccountLink=structtypenonrect={accountLinkId:LinkId.toption[@ocaml.doc"The identifier of the account link."];accountLinkStatus:AccountLinkStatusEnum.toption[@ocaml.doc"The status of the account link."];sourceAccountId:AwsAccount.toption[@ocaml.doc"The identifier of the source account."];targetAccountId:AwsAccount.toption[@ocaml.doc"The identifier of the target account."]}letmake?accountLinkId=fun?accountLinkStatus->fun?sourceAccountId->fun?targetAccountId->fun()->{accountLinkId;accountLinkStatus;sourceAccountId;targetAccountId}letto_valuex=structure_to_value[("AccountLinkId",(Option.mapx.accountLinkId~f:LinkId.to_value));("AccountLinkStatus",(Option.mapx.accountLinkStatus~f:AccountLinkStatusEnum.to_value));("SourceAccountId",(Option.mapx.sourceAccountId~f:AwsAccount.to_value));("TargetAccountId",(Option.mapx.targetAccountId~f:AwsAccount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettargetAccountId=(Option.map~f:AwsAccount.of_xml)(Xml.childxml_arg0"TargetAccountId")inletsourceAccountId=(Option.map~f:AwsAccount.of_xml)(Xml.childxml_arg0"SourceAccountId")inletaccountLinkStatus=(Option.map~f:AccountLinkStatusEnum.of_xml)(Xml.childxml_arg0"AccountLinkStatus")inletaccountLinkId=(Option.map~f:LinkId.of_xml)(Xml.childxml_arg0"AccountLinkId")inmake?targetAccountId?sourceAccountId?accountLinkStatus?accountLinkId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettargetAccountId=field_mapjson__"TargetAccountId"AwsAccount.of_jsoninletsourceAccountId=field_mapjson__"SourceAccountId"AwsAccount.of_jsoninletaccountLinkStatus=field_mapjson__"AccountLinkStatus"AccountLinkStatusEnum.of_jsoninletaccountLinkId=field_mapjson__"AccountLinkId"LinkId.of_jsoninmake?targetAccountId?sourceAccountId?accountLinkStatus?accountLinkId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about about the account link."]moduleApplication=structtypenonrect=|Microsoft_Office_2016|Microsoft_Office_2019|Non_static_idofstringletmakei=iletto_string=function|Microsoft_Office_2016->"Microsoft_Office_2016"|Microsoft_Office_2019->"Microsoft_Office_2019"|Non_static_ids->sletof_string=function|"Microsoft_Office_2016"->Microsoft_Office_2016|"Microsoft_Office_2019"->Microsoft_Office_2019|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 Application"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Application"j)letto_json=simple_to_jsonto_valueendmoduleEc2ImageId=structtypenonrect=stringletcontext_="Ec2ImageId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^ami\\-([a-f0-9]{8}|[a-f0-9]{17})$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Ec2ImageId"jletto_json=simple_to_jsonto_valueendmoduleEc2ImportTaskId=structtypenonrect=stringletcontext_="Ec2ImportTaskId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:19)>>=(fun()->(check_string_maxi~max:28)>>=(fun()->check_patterni~pattern:"^import-ami\\-([a-zA-Z0-9]{8}|[a-zA-Z0-9]{17})$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Ec2ImportTaskId"jletto_json=simple_to_jsonto_valueendmoduleImageBuildVersionArn=structtypenonrect=stringletcontext_="ImageBuildVersionArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^arn:aws[^:]*:imagebuilder:[^:]+:(?:[0-9]{12}|aws(?:-[a-z-]+)?):image/[a-z0-9-_]+/(?:(?:([0-9]+|x)\\.([0-9]+|x)\\.([0-9]+|x))|(?:[0-9]+\\.[0-9]+\\.[0-9]+/[0-9]+))$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ImageBuildVersionArn"jletto_json=simple_to_jsonto_valueendmoduleClientEmail=structtypenonrect=stringletcontext_="ClientEmail"letmakei=letopenResultinok_or_failwith((check_string_mini~min:6)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ClientEmail"jletto_json=simple_to_jsonto_valueendmoduleClientUrl=structtypenonrect=stringletcontext_="ClientUrl"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:200)>>=(fun()->check_patterni~pattern:"^(http|https)\\://\\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:"ClientUrl"jletto_json=simple_to_jsonto_valueendmoduleLoginMessage=structtypenonrect=(ClientLocale.t*ClientLoginMessage.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((ClientLocale.of_stringchopped),(ClientLoginMessage.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(ClientLocale.to_valuex)|>(funx->(ClientLoginMessage.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:ClientLocale.of_string~of_json:ClientLoginMessage.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDefaultLogo=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Blobxletto_queryv=to_queryto_valuevletto_headerx=xletof_xmlxml_arg0=string_of_xml~kind:"a blob"xml_arg0letof_jsonj=string_of_json~kind:"a blob"jletto_json=simple_to_jsonto_valueendmoduleIos2XLogo=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Blobxletto_queryv=to_queryto_valuevletto_headerx=xletof_xmlxml_arg0=string_of_xml~kind:"a blob"xml_arg0letof_jsonj=string_of_json~kind:"a blob"jletto_json=simple_to_jsonto_valueendmoduleIos3XLogo=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Blobxletto_queryv=to_queryto_valuevletto_headerx=xletof_xmlxml_arg0=string_of_xml~kind:"a blob"xml_arg0letof_jsonj=string_of_json~kind:"a blob"jletto_json=simple_to_jsonto_valueendmoduleIosLogo=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Blobxletto_queryv=to_queryto_valuevletto_headerx=xletof_xmlxml_arg0=string_of_xml~kind:"a blob"xml_arg0letof_jsonj=string_of_json~kind:"a blob"jletto_json=simple_to_jsonto_valueendmoduleWorkspace=structtypenonrect={workspaceId:WorkspaceId.toption[@ocaml.doc"The identifier of the WorkSpace."];directoryId:DirectoryId.toption[@ocaml.doc"The identifier of the Directory Service directory for the WorkSpace."];userName:UserName.toption[@ocaml.doc"The user for the WorkSpace."];ipAddress:IpAddress.toption[@ocaml.doc"The IP address of the WorkSpace."];ipv6Address:Ipv6Address.toption[@ocaml.doc"The IPv6 address of the WorkSpace."];state:WorkspaceState.toption[@ocaml.doc"The operational state of the WorkSpace. PENDING \226\128\147 The WorkSpace is in a waiting state (for example, the WorkSpace is being created). AVAILABLE \226\128\147 The WorkSpace is running and has passed the health checks. IMPAIRED \226\128\147 Refer to UNHEALTHY state. UNHEALTHY \226\128\147 The WorkSpace is not responding to health checks. REBOOTING \226\128\147 The WorkSpace is being rebooted (restarted). STARTING \226\128\147 The WorkSpace is starting up and health checks are being run. REBUILDING \226\128\147 The WorkSpace is being rebuilt. RESTORING \226\128\147 The WorkSpace is being restored. MAINTENANCE \226\128\147 The WorkSpace is undergoing scheduled maintenance by Amazon Web Services. ADMIN_MAINTENANCE \226\128\147 The WorkSpace is undergoing maintenance by the WorkSpaces administrator. TERMINATING \226\128\147 The WorkSpace is being deleted. TERMINATED \226\128\147 The WorkSpace has been deleted. SUSPENDED \226\128\147 The WorkSpace has been suspended for image creation. UPDATING \226\128\147 The WorkSpace is undergoing an update. STOPPING \226\128\147 The WorkSpace is being stopped. STOPPED \226\128\147 The WorkSpace has been stopped. ERROR \226\128\147 The WorkSpace is an error state (for example, an error occurred during startup). After a WorkSpace is terminated, the TERMINATED state is returned only briefly before the WorkSpace directory metadata is cleaned up, so this state is rarely returned. To confirm that a WorkSpace is terminated, check for the WorkSpace ID by using DescribeWorkSpaces. If the WorkSpace ID isn't returned, then the WorkSpace has been successfully terminated."];bundleId:BundleId.toption[@ocaml.doc"The identifier of the bundle used to create the WorkSpace."];subnetId:SubnetId.toption[@ocaml.doc"The identifier of the subnet for the WorkSpace."];errorMessage:Description.toption[@ocaml.doc"The text of the error message that is returned if the WorkSpace cannot be created."];errorCode:WorkspaceErrorCode.toption[@ocaml.doc"The error code that is returned if the WorkSpace cannot be created."];computerName:ComputerName.toption[@ocaml.doc"The name of the WorkSpace, as seen by the operating system. The format of this name varies. For more information, see Launch a WorkSpace."];volumeEncryptionKey:VolumeEncryptionKey.toption[@ocaml.doc"The ARN of the symmetric KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys."];userVolumeEncryptionEnabled:BooleanObject.toption[@ocaml.doc"Indicates whether the data stored on the user volume is encrypted."];rootVolumeEncryptionEnabled:BooleanObject.toption[@ocaml.doc"Indicates whether the data stored on the root volume is encrypted."];workspaceName:WorkspaceName.toption[@ocaml.doc"The name of the user-decoupled WorkSpace."];workspaceProperties:WorkspaceProperties.toption[@ocaml.doc"The properties of the WorkSpace."];modificationStates:ModificationStateList.toption[@ocaml.doc"The modification states of the WorkSpace."];relatedWorkspaces:RelatedWorkspaces.toption[@ocaml.doc"The standby WorkSpace or primary WorkSpace related to the specified WorkSpace."];dataReplicationSettings:DataReplicationSettings.toption[@ocaml.doc"Indicates the settings of the data replication."];standbyWorkspacesProperties:StandbyWorkspacesPropertiesList.toption[@ocaml.doc"The properties of the standby WorkSpace"]}letmake?workspaceId=fun?directoryId->fun?userName->fun?ipAddress->fun?ipv6Address->fun?state->fun?bundleId->fun?subnetId->fun?errorMessage->fun?errorCode->fun?computerName->fun?volumeEncryptionKey->fun?userVolumeEncryptionEnabled->fun?rootVolumeEncryptionEnabled->fun?workspaceName->fun?workspaceProperties->fun?modificationStates->fun?relatedWorkspaces->fun?dataReplicationSettings->fun?standbyWorkspacesProperties->fun()->{workspaceId;directoryId;userName;ipAddress;ipv6Address;state;bundleId;subnetId;errorMessage;errorCode;computerName;volumeEncryptionKey;userVolumeEncryptionEnabled;rootVolumeEncryptionEnabled;workspaceName;workspaceProperties;modificationStates;relatedWorkspaces;dataReplicationSettings;standbyWorkspacesProperties}letto_valuex=structure_to_value[("WorkspaceId",(Option.mapx.workspaceId~f:WorkspaceId.to_value));("DirectoryId",(Option.mapx.directoryId~f:DirectoryId.to_value));("UserName",(Option.mapx.userName~f:UserName.to_value));("IpAddress",(Option.mapx.ipAddress~f:IpAddress.to_value));("Ipv6Address",(Option.mapx.ipv6Address~f:Ipv6Address.to_value));("State",(Option.mapx.state~f:WorkspaceState.to_value));("BundleId",(Option.mapx.bundleId~f:BundleId.to_value));("SubnetId",(Option.mapx.subnetId~f:SubnetId.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:Description.to_value));("ErrorCode",(Option.mapx.errorCode~f:WorkspaceErrorCode.to_value));("ComputerName",(Option.mapx.computerName~f:ComputerName.to_value));("VolumeEncryptionKey",(Option.mapx.volumeEncryptionKey~f:VolumeEncryptionKey.to_value));("UserVolumeEncryptionEnabled",(Option.mapx.userVolumeEncryptionEnabled~f:BooleanObject.to_value));("RootVolumeEncryptionEnabled",(Option.mapx.rootVolumeEncryptionEnabled~f:BooleanObject.to_value));("WorkspaceName",(Option.mapx.workspaceName~f:WorkspaceName.to_value));("WorkspaceProperties",(Option.mapx.workspaceProperties~f:WorkspaceProperties.to_value));("ModificationStates",(Option.mapx.modificationStates~f:ModificationStateList.to_value));("RelatedWorkspaces",(Option.mapx.relatedWorkspaces~f:RelatedWorkspaces.to_value));("DataReplicationSettings",(Option.mapx.dataReplicationSettings~f:DataReplicationSettings.to_value));("StandbyWorkspacesProperties",(Option.mapx.standbyWorkspacesProperties~f:StandbyWorkspacesPropertiesList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstandbyWorkspacesProperties=(Option.map~f:StandbyWorkspacesPropertiesList.of_xml)(Xml.childxml_arg0"StandbyWorkspacesProperties")inletdataReplicationSettings=(Option.map~f:DataReplicationSettings.of_xml)(Xml.childxml_arg0"DataReplicationSettings")inletrelatedWorkspaces=(Option.map~f:RelatedWorkspaces.of_xml)(Xml.childxml_arg0"RelatedWorkspaces")inletmodificationStates=(Option.map~f:ModificationStateList.of_xml)(Xml.childxml_arg0"ModificationStates")inletworkspaceProperties=(Option.map~f:WorkspaceProperties.of_xml)(Xml.childxml_arg0"WorkspaceProperties")inletworkspaceName=(Option.map~f:WorkspaceName.of_xml)(Xml.childxml_arg0"WorkspaceName")inletrootVolumeEncryptionEnabled=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"RootVolumeEncryptionEnabled")inletuserVolumeEncryptionEnabled=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"UserVolumeEncryptionEnabled")inletvolumeEncryptionKey=(Option.map~f:VolumeEncryptionKey.of_xml)(Xml.childxml_arg0"VolumeEncryptionKey")inletcomputerName=(Option.map~f:ComputerName.of_xml)(Xml.childxml_arg0"ComputerName")inleterrorCode=(Option.map~f:WorkspaceErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inleterrorMessage=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"ErrorMessage")inletsubnetId=(Option.map~f:SubnetId.of_xml)(Xml.childxml_arg0"SubnetId")inletbundleId=(Option.map~f:BundleId.of_xml)(Xml.childxml_arg0"BundleId")inletstate=(Option.map~f:WorkspaceState.of_xml)(Xml.childxml_arg0"State")inletipv6Address=(Option.map~f:Ipv6Address.of_xml)(Xml.childxml_arg0"Ipv6Address")inletipAddress=(Option.map~f:IpAddress.of_xml)(Xml.childxml_arg0"IpAddress")inletuserName=(Option.map~f:UserName.of_xml)(Xml.childxml_arg0"UserName")inletdirectoryId=(Option.map~f:DirectoryId.of_xml)(Xml.childxml_arg0"DirectoryId")inletworkspaceId=(Option.map~f:WorkspaceId.of_xml)(Xml.childxml_arg0"WorkspaceId")inmake?standbyWorkspacesProperties?dataReplicationSettings?relatedWorkspaces?modificationStates?workspaceProperties?workspaceName?rootVolumeEncryptionEnabled?userVolumeEncryptionEnabled?volumeEncryptionKey?computerName?errorCode?errorMessage?subnetId?bundleId?state?ipv6Address?ipAddress?userName?directoryId?workspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstandbyWorkspacesProperties=field_mapjson__"StandbyWorkspacesProperties"StandbyWorkspacesPropertiesList.of_jsoninletdataReplicationSettings=field_mapjson__"DataReplicationSettings"DataReplicationSettings.of_jsoninletrelatedWorkspaces=field_mapjson__"RelatedWorkspaces"RelatedWorkspaces.of_jsoninletmodificationStates=field_mapjson__"ModificationStates"ModificationStateList.of_jsoninletworkspaceProperties=field_mapjson__"WorkspaceProperties"WorkspaceProperties.of_jsoninletworkspaceName=field_mapjson__"WorkspaceName"WorkspaceName.of_jsoninletrootVolumeEncryptionEnabled=field_mapjson__"RootVolumeEncryptionEnabled"BooleanObject.of_jsoninletuserVolumeEncryptionEnabled=field_mapjson__"UserVolumeEncryptionEnabled"BooleanObject.of_jsoninletvolumeEncryptionKey=field_mapjson__"VolumeEncryptionKey"VolumeEncryptionKey.of_jsoninletcomputerName=field_mapjson__"ComputerName"ComputerName.of_jsoninleterrorCode=field_mapjson__"ErrorCode"WorkspaceErrorCode.of_jsoninleterrorMessage=field_mapjson__"ErrorMessage"Description.of_jsoninletsubnetId=field_mapjson__"SubnetId"SubnetId.of_jsoninletbundleId=field_mapjson__"BundleId"BundleId.of_jsoninletstate=field_mapjson__"State"WorkspaceState.of_jsoninletipv6Address=field_mapjson__"Ipv6Address"Ipv6Address.of_jsoninletipAddress=field_mapjson__"IpAddress"IpAddress.of_jsoninletuserName=field_mapjson__"UserName"UserName.of_jsoninletdirectoryId=field_mapjson__"DirectoryId"DirectoryId.of_jsoninletworkspaceId=field_mapjson__"WorkspaceId"WorkspaceId.of_jsoninmake?standbyWorkspacesProperties?dataReplicationSettings?relatedWorkspaces?modificationStates?workspaceProperties?workspaceName?rootVolumeEncryptionEnabled?userVolumeEncryptionEnabled?volumeEncryptionKey?computerName?errorCode?errorMessage?subnetId?bundleId?state?ipv6Address?ipAddress?userName?directoryId?workspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a WorkSpace."]moduleWorkspacesPool=structtypenonrect={poolId:WorkspacesPoolId.toption[@ocaml.doc"The identifier of a pool."];poolArn:ARN.toption[@ocaml.doc"The Amazon Resource Name (ARN) for the pool."];capacityStatus:CapacityStatus.toption[@ocaml.doc"The capacity status for the pool"];poolName:WorkspacesPoolName.toption[@ocaml.doc"The name of the pool."];description:UpdateDescription.toption[@ocaml.doc"The description of the pool."];state:WorkspacesPoolState.toption[@ocaml.doc"The current state of the pool."];createdAt:Timestamp.toption[@ocaml.doc"The time the pool was created."];bundleId:BundleId.toption[@ocaml.doc"The identifier of the bundle used by the pool."];directoryId:DirectoryId.toption[@ocaml.doc"The identifier of the directory used by the pool."];errors:WorkspacesPoolErrors.toption[@ocaml.doc"The pool errors."];applicationSettings:ApplicationSettingsResponse.toption[@ocaml.doc"The persistent application settings for users of the pool."];timeoutSettings:TimeoutSettings.toption[@ocaml.doc"The amount of time that a pool session remains active after users disconnect. If they try to reconnect to the pool session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new pool instance."];runningMode:PoolsRunningMode.toption[@ocaml.doc"The running mode of the pool."]}letmake?poolId=fun?poolArn->fun?capacityStatus->fun?poolName->fun?description->fun?state->fun?createdAt->fun?bundleId->fun?directoryId->fun?errors->fun?applicationSettings->fun?timeoutSettings->fun?runningMode->fun()->{poolId;poolArn;capacityStatus;poolName;description;state;createdAt;bundleId;directoryId;errors;applicationSettings;timeoutSettings;runningMode}letto_valuex=structure_to_value[("PoolId",(Option.mapx.poolId~f:WorkspacesPoolId.to_value));("PoolArn",(Option.mapx.poolArn~f:ARN.to_value));("CapacityStatus",(Option.mapx.capacityStatus~f:CapacityStatus.to_value));("PoolName",(Option.mapx.poolName~f:WorkspacesPoolName.to_value));("Description",(Option.mapx.description~f:UpdateDescription.to_value));("State",(Option.mapx.state~f:WorkspacesPoolState.to_value));("CreatedAt",(Option.mapx.createdAt~f:Timestamp.to_value));("BundleId",(Option.mapx.bundleId~f:BundleId.to_value));("DirectoryId",(Option.mapx.directoryId~f:DirectoryId.to_value));("Errors",(Option.mapx.errors~f:WorkspacesPoolErrors.to_value));("ApplicationSettings",(Option.mapx.applicationSettings~f:ApplicationSettingsResponse.to_value));("TimeoutSettings",(Option.mapx.timeoutSettings~f:TimeoutSettings.to_value));("RunningMode",(Option.mapx.runningMode~f:PoolsRunningMode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrunningMode=(Option.map~f:PoolsRunningMode.of_xml)(Xml.childxml_arg0"RunningMode")inlettimeoutSettings=(Option.map~f:TimeoutSettings.of_xml)(Xml.childxml_arg0"TimeoutSettings")inletapplicationSettings=(Option.map~f:ApplicationSettingsResponse.of_xml)(Xml.childxml_arg0"ApplicationSettings")inleterrors=(Option.map~f:WorkspacesPoolErrors.of_xml)(Xml.childxml_arg0"Errors")inletdirectoryId=(Option.map~f:DirectoryId.of_xml)(Xml.childxml_arg0"DirectoryId")inletbundleId=(Option.map~f:BundleId.of_xml)(Xml.childxml_arg0"BundleId")inletcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreatedAt")inletstate=(Option.map~f:WorkspacesPoolState.of_xml)(Xml.childxml_arg0"State")inletdescription=(Option.map~f:UpdateDescription.of_xml)(Xml.childxml_arg0"Description")inletpoolName=(Option.map~f:WorkspacesPoolName.of_xml)(Xml.childxml_arg0"PoolName")inletcapacityStatus=(Option.map~f:CapacityStatus.of_xml)(Xml.childxml_arg0"CapacityStatus")inletpoolArn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"PoolArn")inletpoolId=(Option.map~f:WorkspacesPoolId.of_xml)(Xml.childxml_arg0"PoolId")inmake?runningMode?timeoutSettings?applicationSettings?errors?directoryId?bundleId?createdAt?state?description?poolName?capacityStatus?poolArn?poolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrunningMode=field_mapjson__"RunningMode"PoolsRunningMode.of_jsoninlettimeoutSettings=field_mapjson__"TimeoutSettings"TimeoutSettings.of_jsoninletapplicationSettings=field_mapjson__"ApplicationSettings"ApplicationSettingsResponse.of_jsoninleterrors=field_mapjson__"Errors"WorkspacesPoolErrors.of_jsoninletdirectoryId=field_mapjson__"DirectoryId"DirectoryId.of_jsoninletbundleId=field_mapjson__"BundleId"BundleId.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Timestamp.of_jsoninletstate=field_mapjson__"State"WorkspacesPoolState.of_jsoninletdescription=field_mapjson__"Description"UpdateDescription.of_jsoninletpoolName=field_mapjson__"PoolName"WorkspacesPoolName.of_jsoninletcapacityStatus=field_mapjson__"CapacityStatus"CapacityStatus.of_jsoninletpoolArn=field_mapjson__"PoolArn"ARN.of_jsoninletpoolId=field_mapjson__"PoolId"WorkspacesPoolId.of_jsoninmake?runningMode?timeoutSettings?applicationSettings?errors?directoryId?bundleId?createdAt?state?description?poolName?capacityStatus?poolArn?poolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a pool of WorkSpaces."]moduleDescribeWorkspacesPoolsFilter=structtypenonrect={name:DescribeWorkspacesPoolsFilterName.t[@ocaml.doc"The name of the pool to filter."];values:DescribeWorkspacesPoolsFilterValues.t[@ocaml.doc"The values for filtering WorkSpaces Pools."];operator:DescribeWorkspacesPoolsFilterOperator.t[@ocaml.doc"The operator values for filtering WorkSpaces Pools."]}letcontext_="DescribeWorkspacesPoolsFilter"letmake~name=fun~values->fun~operator->fun()->{name;values;operator}letto_valuex=structure_to_value[("Name",(Some(DescribeWorkspacesPoolsFilterName.to_valuex.name)));("Values",(Some(DescribeWorkspacesPoolsFilterValues.to_valuex.values)));("Operator",(Some(DescribeWorkspacesPoolsFilterOperator.to_valuex.operator)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoperator=DescribeWorkspacesPoolsFilterOperator.of_xml(Xml.child_exn~context:context_xml_arg0"Operator")inletvalues=DescribeWorkspacesPoolsFilterValues.of_xml(Xml.child_exn~context:context_xml_arg0"Values")inletname=DescribeWorkspacesPoolsFilterName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~operator~values~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoperator=field_map_exnjson__"Operator"DescribeWorkspacesPoolsFilterOperator.of_jsoninletvalues=field_map_exnjson__"Values"DescribeWorkspacesPoolsFilterValues.of_jsoninletname=field_map_exnjson__"Name"DescribeWorkspacesPoolsFilterName.of_jsoninmake~operator~values~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the filter conditions for WorkSpaces Pools to return."]moduleWorkspacesPoolSession=structtypenonrect={authenticationType:AuthenticationType.toption[@ocaml.doc"The authentication method. The user is authenticated using a WorkSpaces Pools URL (API) or SAML 2.0 federation (SAML)."];connectionState:SessionConnectionState.toption[@ocaml.doc"Specifies whether a user is connected to the pool session."];sessionId:AmazonUuid.toption[@ocaml.doc"The identifier of the session."];instanceId:SessionInstanceId.toption[@ocaml.doc"The identifier for the instance hosting the session."];poolId:WorkspacesPoolId.toption[@ocaml.doc"The identifier of the pool."];expirationTime:Timestamp.toption[@ocaml.doc"The time that the pool session ended."];networkAccessConfiguration:NetworkAccessConfiguration.toption[@ocaml.doc"Describes the network details of the pool."];startTime:Timestamp.toption[@ocaml.doc"The time that the pool sission started."];userId:WorkspacesPoolUserId.toption[@ocaml.doc"The identifier of the user."]}letmake?authenticationType=fun?connectionState->fun?sessionId->fun?instanceId->fun?poolId->fun?expirationTime->fun?networkAccessConfiguration->fun?startTime->fun?userId->fun()->{authenticationType;connectionState;sessionId;instanceId;poolId;expirationTime;networkAccessConfiguration;startTime;userId}letto_valuex=structure_to_value[("AuthenticationType",(Option.mapx.authenticationType~f:AuthenticationType.to_value));("ConnectionState",(Option.mapx.connectionState~f:SessionConnectionState.to_value));("SessionId",(Option.mapx.sessionId~f:AmazonUuid.to_value));("InstanceId",(Option.mapx.instanceId~f:SessionInstanceId.to_value));("PoolId",(Option.mapx.poolId~f:WorkspacesPoolId.to_value));("ExpirationTime",(Option.mapx.expirationTime~f:Timestamp.to_value));("NetworkAccessConfiguration",(Option.mapx.networkAccessConfiguration~f:NetworkAccessConfiguration.to_value));("StartTime",(Option.mapx.startTime~f:Timestamp.to_value));("UserId",(Option.mapx.userId~f:WorkspacesPoolUserId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserId=(Option.map~f:WorkspacesPoolUserId.of_xml)(Xml.childxml_arg0"UserId")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StartTime")inletnetworkAccessConfiguration=(Option.map~f:NetworkAccessConfiguration.of_xml)(Xml.childxml_arg0"NetworkAccessConfiguration")inletexpirationTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"ExpirationTime")inletpoolId=(Option.map~f:WorkspacesPoolId.of_xml)(Xml.childxml_arg0"PoolId")inletinstanceId=(Option.map~f:SessionInstanceId.of_xml)(Xml.childxml_arg0"InstanceId")inletsessionId=(Option.map~f:AmazonUuid.of_xml)(Xml.childxml_arg0"SessionId")inletconnectionState=(Option.map~f:SessionConnectionState.of_xml)(Xml.childxml_arg0"ConnectionState")inletauthenticationType=(Option.map~f:AuthenticationType.of_xml)(Xml.childxml_arg0"AuthenticationType")inmake?userId?startTime?networkAccessConfiguration?expirationTime?poolId?instanceId?sessionId?connectionState?authenticationType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserId=field_mapjson__"UserId"WorkspacesPoolUserId.of_jsoninletstartTime=field_mapjson__"StartTime"Timestamp.of_jsoninletnetworkAccessConfiguration=field_mapjson__"NetworkAccessConfiguration"NetworkAccessConfiguration.of_jsoninletexpirationTime=field_mapjson__"ExpirationTime"Timestamp.of_jsoninletpoolId=field_mapjson__"PoolId"WorkspacesPoolId.of_jsoninletinstanceId=field_mapjson__"InstanceId"SessionInstanceId.of_jsoninletsessionId=field_mapjson__"SessionId"AmazonUuid.of_jsoninletconnectionState=field_mapjson__"ConnectionState"SessionConnectionState.of_jsoninletauthenticationType=field_mapjson__"AuthenticationType"AuthenticationType.of_jsoninmake?userId?startTime?networkAccessConfiguration?expirationTime?poolId?instanceId?sessionId?connectionState?authenticationType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a pool session."]moduleWorkspaceConnectionStatus=structtypenonrect={workspaceId:WorkspaceId.toption[@ocaml.doc"The identifier of the WorkSpace."];connectionState:ConnectionState.toption[@ocaml.doc"The connection state of the WorkSpace. The connection state is unknown if the WorkSpace is stopped."];connectionStateCheckTimestamp:Timestamp.toption[@ocaml.doc"The timestamp of the connection status check."];lastKnownUserConnectionTimestamp:Timestamp.toption[@ocaml.doc"The timestamp of the last known user connection."]}letmake?workspaceId=fun?connectionState->fun?connectionStateCheckTimestamp->fun?lastKnownUserConnectionTimestamp->fun()->{workspaceId;connectionState;connectionStateCheckTimestamp;lastKnownUserConnectionTimestamp}letto_valuex=structure_to_value[("WorkspaceId",(Option.mapx.workspaceId~f:WorkspaceId.to_value));("ConnectionState",(Option.mapx.connectionState~f:ConnectionState.to_value));("ConnectionStateCheckTimestamp",(Option.mapx.connectionStateCheckTimestamp~f:Timestamp.to_value));("LastKnownUserConnectionTimestamp",(Option.mapx.lastKnownUserConnectionTimestamp~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastKnownUserConnectionTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastKnownUserConnectionTimestamp")inletconnectionStateCheckTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"ConnectionStateCheckTimestamp")inletconnectionState=(Option.map~f:ConnectionState.of_xml)(Xml.childxml_arg0"ConnectionState")inletworkspaceId=(Option.map~f:WorkspaceId.of_xml)(Xml.childxml_arg0"WorkspaceId")inmake?lastKnownUserConnectionTimestamp?connectionStateCheckTimestamp?connectionState?workspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastKnownUserConnectionTimestamp=field_mapjson__"LastKnownUserConnectionTimestamp"Timestamp.of_jsoninletconnectionStateCheckTimestamp=field_mapjson__"ConnectionStateCheckTimestamp"Timestamp.of_jsoninletconnectionState=field_mapjson__"ConnectionState"ConnectionState.of_jsoninletworkspaceId=field_mapjson__"WorkspaceId"WorkspaceId.of_jsoninmake?lastKnownUserConnectionTimestamp?connectionStateCheckTimestamp?connectionState?workspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the connection status of a WorkSpace."]moduleSnapshot=structtypenonrect={snapshotTime:Timestamp.toption[@ocaml.doc"The time when the snapshot was created."]}letmake?snapshotTime=fun()->{snapshotTime}letto_valuex=structure_to_value[("SnapshotTime",(Option.mapx.snapshotTime~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsnapshotTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"SnapshotTime")inmake?snapshotTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsnapshotTime=field_mapjson__"SnapshotTime"Timestamp.of_jsoninmake?snapshotTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a snapshot."]moduleWorkspaceImage=structtypenonrect={imageId:WorkspaceImageId.toption[@ocaml.doc"The identifier of the image."];name:WorkspaceImageName.toption[@ocaml.doc"The name of the image."];description:WorkspaceImageDescription.toption[@ocaml.doc"The description of the image."];operatingSystem:OperatingSystem.toption[@ocaml.doc"The operating system that the image is running."];state:WorkspaceImageState.toption[@ocaml.doc"The status of the image."];requiredTenancy:WorkspaceImageRequiredTenancy.toption[@ocaml.doc"Specifies whether the image is running on dedicated hardware. When Bring Your Own License (BYOL) is enabled, this value is set to DEDICATED. For more information, see Bring Your Own Windows Desktop Images."];errorCode:WorkspaceImageErrorCode.toption[@ocaml.doc"The error code that is returned for the image."];errorMessage:Description.toption[@ocaml.doc"The text of the error message that is returned for the image."];created:Timestamp.toption[@ocaml.doc"The date when the image was created. If the image has been shared, the Amazon Web Services account that the image has been shared with sees the original creation date of the image."];ownerAccountId:AwsAccount.toption[@ocaml.doc"The identifier of the Amazon Web Services account that owns the image."];updates:UpdateResult.toption[@ocaml.doc"The updates (if any) that are available for the specified image."];errorDetails:ErrorDetailsList.toption[@ocaml.doc"Additional details of the error returned for the image, including the possible causes of the errors and troubleshooting information."]}letmake?imageId=fun?name->fun?description->fun?operatingSystem->fun?state->fun?requiredTenancy->fun?errorCode->fun?errorMessage->fun?created->fun?ownerAccountId->fun?updates->fun?errorDetails->fun()->{imageId;name;description;operatingSystem;state;requiredTenancy;errorCode;errorMessage;created;ownerAccountId;updates;errorDetails}letto_valuex=structure_to_value[("ImageId",(Option.mapx.imageId~f:WorkspaceImageId.to_value));("Name",(Option.mapx.name~f:WorkspaceImageName.to_value));("Description",(Option.mapx.description~f:WorkspaceImageDescription.to_value));("OperatingSystem",(Option.mapx.operatingSystem~f:OperatingSystem.to_value));("State",(Option.mapx.state~f:WorkspaceImageState.to_value));("RequiredTenancy",(Option.mapx.requiredTenancy~f:WorkspaceImageRequiredTenancy.to_value));("ErrorCode",(Option.mapx.errorCode~f:WorkspaceImageErrorCode.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:Description.to_value));("Created",(Option.mapx.created~f:Timestamp.to_value));("OwnerAccountId",(Option.mapx.ownerAccountId~f:AwsAccount.to_value));("Updates",(Option.mapx.updates~f:UpdateResult.to_value));("ErrorDetails",(Option.mapx.errorDetails~f:ErrorDetailsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorDetails=(Option.map~f:ErrorDetailsList.of_xml)(Xml.childxml_arg0"ErrorDetails")inletupdates=(Option.map~f:UpdateResult.of_xml)(Xml.childxml_arg0"Updates")inletownerAccountId=(Option.map~f:AwsAccount.of_xml)(Xml.childxml_arg0"OwnerAccountId")inletcreated=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"Created")inleterrorMessage=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:WorkspaceImageErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inletrequiredTenancy=(Option.map~f:WorkspaceImageRequiredTenancy.of_xml)(Xml.childxml_arg0"RequiredTenancy")inletstate=(Option.map~f:WorkspaceImageState.of_xml)(Xml.childxml_arg0"State")inletoperatingSystem=(Option.map~f:OperatingSystem.of_xml)(Xml.childxml_arg0"OperatingSystem")inletdescription=(Option.map~f:WorkspaceImageDescription.of_xml)(Xml.childxml_arg0"Description")inletname=(Option.map~f:WorkspaceImageName.of_xml)(Xml.childxml_arg0"Name")inletimageId=(Option.map~f:WorkspaceImageId.of_xml)(Xml.childxml_arg0"ImageId")inmake?errorDetails?updates?ownerAccountId?created?errorMessage?errorCode?requiredTenancy?state?operatingSystem?description?name?imageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorDetails=field_mapjson__"ErrorDetails"ErrorDetailsList.of_jsoninletupdates=field_mapjson__"Updates"UpdateResult.of_jsoninletownerAccountId=field_mapjson__"OwnerAccountId"AwsAccount.of_jsoninletcreated=field_mapjson__"Created"Timestamp.of_jsoninleterrorMessage=field_mapjson__"ErrorMessage"Description.of_jsoninleterrorCode=field_mapjson__"ErrorCode"WorkspaceImageErrorCode.of_jsoninletrequiredTenancy=field_mapjson__"RequiredTenancy"WorkspaceImageRequiredTenancy.of_jsoninletstate=field_mapjson__"State"WorkspaceImageState.of_jsoninletoperatingSystem=field_mapjson__"OperatingSystem"OperatingSystem.of_jsoninletdescription=field_mapjson__"Description"WorkspaceImageDescription.of_jsoninletname=field_mapjson__"Name"WorkspaceImageName.of_jsoninletimageId=field_mapjson__"ImageId"WorkspaceImageId.of_jsoninmake?errorDetails?updates?ownerAccountId?created?errorMessage?errorCode?requiredTenancy?state?operatingSystem?description?name?imageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a WorkSpace image."]moduleImagePermission=structtypenonrect={sharedAccountId:AwsAccount.toption[@ocaml.doc"The identifier of the Amazon Web Services account that an image has been shared with."]}letmake?sharedAccountId=fun()->{sharedAccountId}letto_valuex=structure_to_value[("SharedAccountId",(Option.mapx.sharedAccountId~f:AwsAccount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsharedAccountId=(Option.map~f:AwsAccount.of_xml)(Xml.childxml_arg0"SharedAccountId")inmake?sharedAccountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsharedAccountId=field_mapjson__"SharedAccountId"AwsAccount.of_jsoninmake?sharedAccountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the Amazon Web Services accounts that have been granted permission to use a shared image. For more information about sharing images, see Share or Unshare a Custom WorkSpaces Image."]moduleWorkspaceDirectory=structtypenonrect={directoryId:DirectoryId.toption[@ocaml.doc"The directory identifier."];alias:Alias.toption[@ocaml.doc"The directory alias."];directoryName:DirectoryName.toption[@ocaml.doc"The name of the directory."];registrationCode:RegistrationCode.toption[@ocaml.doc"The registration code for the directory. This is the code that users enter in their Amazon WorkSpaces client application to connect to the directory."];subnetIds:SubnetIds.toption[@ocaml.doc"The identifiers of the subnets used with the directory."];dnsIpAddresses:DnsIpAddresses.toption[@ocaml.doc"The IP addresses of the DNS servers for the directory."];dnsIpv6Addresses:DnsIpv6Addresses.toption[@ocaml.doc"The IPv6 addresses of the DNS servers for the directory."];customerUserName:UserName.toption[@ocaml.doc"The user name for the service account."];iamRoleId:ARN.toption[@ocaml.doc"The identifier of the IAM role. This is the role that allows Amazon WorkSpaces to make calls to other services, such as Amazon EC2, on your behalf."];directoryType:WorkspaceDirectoryType.toption[@ocaml.doc"The directory type."];workspaceSecurityGroupId:SecurityGroupId.toption[@ocaml.doc"The identifier of the security group that is assigned to new WorkSpaces."];state:WorkspaceDirectoryState.toption[@ocaml.doc"The state of the directory's registration with Amazon WorkSpaces. After a directory is deregistered, the DEREGISTERED state is returned very briefly before the directory metadata is cleaned up, so this state is rarely returned. To confirm that a directory is deregistered, check for the directory ID by using DescribeWorkspaceDirectories. If the directory ID isn't returned, then the directory has been successfully deregistered."];workspaceCreationProperties:DefaultWorkspaceCreationProperties.toption[@ocaml.doc"The default creation properties for all WorkSpaces in the directory."];ipGroupIds:IpGroupIdList.toption[@ocaml.doc"The identifiers of the IP access control groups associated with the directory."];workspaceAccessProperties:WorkspaceAccessProperties.toption[@ocaml.doc"The devices and operating systems that users can use to access WorkSpaces."];tenancy:Tenancy.toption[@ocaml.doc"Specifies whether the directory is dedicated or shared. To use Bring Your Own License (BYOL), this value must be set to DEDICATED. For more information, see Bring Your Own Windows Desktop Images."];selfservicePermissions:SelfservicePermissions.toption[@ocaml.doc"The default self-service permissions for WorkSpaces in the directory."];samlProperties:SamlProperties.toption[@ocaml.doc"Describes the enablement status, user access URL, and relay state parameter name that are used for configuring federation with an SAML 2.0 identity provider."];certificateBasedAuthProperties:CertificateBasedAuthProperties.toption[@ocaml.doc"The certificate-based authentication properties used to authenticate SAML 2.0 Identity Provider (IdP) user identities to Active Directory for WorkSpaces login."];endpointEncryptionMode:EndpointEncryptionMode.toption[@ocaml.doc"Endpoint encryption mode that allows you to configure the specified directory between Standard TLS and FIPS 140-2 validated mode."];microsoftEntraConfig:MicrosoftEntraConfig.toption[@ocaml.doc"Specifies details about Microsoft Entra configurations."];workspaceDirectoryName:WorkspaceDirectoryName.toption[@ocaml.doc"The name fo the WorkSpace directory."];workspaceDirectoryDescription:WorkspaceDirectoryDescription.toption[@ocaml.doc"The description of the WorkSpace directory"];userIdentityType:UserIdentityType.toption[@ocaml.doc"Indicates the identity type of the specifired user."];workspaceType:WorkspaceType.toption[@ocaml.doc"Indicates whether the directory's WorkSpace type is personal or pools."];iDCConfig:IDCConfig.toption[@ocaml.doc"Specifies details about identity center configurations."];activeDirectoryConfig:ActiveDirectoryConfig.toption[@ocaml.doc"Information about the Active Directory config."];streamingProperties:StreamingProperties.toption[@ocaml.doc"The streaming properties to configure."];errorMessage:Description.toption[@ocaml.doc"The error message returned."]}letmake?directoryId=fun?alias->fun?directoryName->fun?registrationCode->fun?subnetIds->fun?dnsIpAddresses->fun?dnsIpv6Addresses->fun?customerUserName->fun?iamRoleId->fun?directoryType->fun?workspaceSecurityGroupId->fun?state->fun?workspaceCreationProperties->fun?ipGroupIds->fun?workspaceAccessProperties->fun?tenancy->fun?selfservicePermissions->fun?samlProperties->fun?certificateBasedAuthProperties->fun?endpointEncryptionMode->fun?microsoftEntraConfig->fun?workspaceDirectoryName->fun?workspaceDirectoryDescription->fun?userIdentityType->fun?workspaceType->fun?iDCConfig->fun?activeDirectoryConfig->fun?streamingProperties->fun?errorMessage->fun()->{directoryId;alias;directoryName;registrationCode;subnetIds;dnsIpAddresses;dnsIpv6Addresses;customerUserName;iamRoleId;directoryType;workspaceSecurityGroupId;state;workspaceCreationProperties;ipGroupIds;workspaceAccessProperties;tenancy;selfservicePermissions;samlProperties;certificateBasedAuthProperties;endpointEncryptionMode;microsoftEntraConfig;workspaceDirectoryName;workspaceDirectoryDescription;userIdentityType;workspaceType;iDCConfig;activeDirectoryConfig;streamingProperties;errorMessage}letto_valuex=structure_to_value[("DirectoryId",(Option.mapx.directoryId~f:DirectoryId.to_value));("Alias",(Option.mapx.alias~f:Alias.to_value));("DirectoryName",(Option.mapx.directoryName~f:DirectoryName.to_value));("RegistrationCode",(Option.mapx.registrationCode~f:RegistrationCode.to_value));("SubnetIds",(Option.mapx.subnetIds~f:SubnetIds.to_value));("DnsIpAddresses",(Option.mapx.dnsIpAddresses~f:DnsIpAddresses.to_value));("DnsIpv6Addresses",(Option.mapx.dnsIpv6Addresses~f:DnsIpv6Addresses.to_value));("CustomerUserName",(Option.mapx.customerUserName~f:UserName.to_value));("IamRoleId",(Option.mapx.iamRoleId~f:ARN.to_value));("DirectoryType",(Option.mapx.directoryType~f:WorkspaceDirectoryType.to_value));("WorkspaceSecurityGroupId",(Option.mapx.workspaceSecurityGroupId~f:SecurityGroupId.to_value));("State",(Option.mapx.state~f:WorkspaceDirectoryState.to_value));("WorkspaceCreationProperties",(Option.mapx.workspaceCreationProperties~f:DefaultWorkspaceCreationProperties.to_value));("ipGroupIds",(Option.mapx.ipGroupIds~f:IpGroupIdList.to_value));("WorkspaceAccessProperties",(Option.mapx.workspaceAccessProperties~f:WorkspaceAccessProperties.to_value));("Tenancy",(Option.mapx.tenancy~f:Tenancy.to_value));("SelfservicePermissions",(Option.mapx.selfservicePermissions~f:SelfservicePermissions.to_value));("SamlProperties",(Option.mapx.samlProperties~f:SamlProperties.to_value));("CertificateBasedAuthProperties",(Option.mapx.certificateBasedAuthProperties~f:CertificateBasedAuthProperties.to_value));("EndpointEncryptionMode",(Option.mapx.endpointEncryptionMode~f:EndpointEncryptionMode.to_value));("MicrosoftEntraConfig",(Option.mapx.microsoftEntraConfig~f:MicrosoftEntraConfig.to_value));("WorkspaceDirectoryName",(Option.mapx.workspaceDirectoryName~f:WorkspaceDirectoryName.to_value));("WorkspaceDirectoryDescription",(Option.mapx.workspaceDirectoryDescription~f:WorkspaceDirectoryDescription.to_value));("UserIdentityType",(Option.mapx.userIdentityType~f:UserIdentityType.to_value));("WorkspaceType",(Option.mapx.workspaceType~f:WorkspaceType.to_value));("IDCConfig",(Option.mapx.iDCConfig~f:IDCConfig.to_value));("ActiveDirectoryConfig",(Option.mapx.activeDirectoryConfig~f:ActiveDirectoryConfig.to_value));("StreamingProperties",(Option.mapx.streamingProperties~f:StreamingProperties.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:Description.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"ErrorMessage")inletstreamingProperties=(Option.map~f:StreamingProperties.of_xml)(Xml.childxml_arg0"StreamingProperties")inletactiveDirectoryConfig=(Option.map~f:ActiveDirectoryConfig.of_xml)(Xml.childxml_arg0"ActiveDirectoryConfig")inletiDCConfig=(Option.map~f:IDCConfig.of_xml)(Xml.childxml_arg0"IDCConfig")inletworkspaceType=(Option.map~f:WorkspaceType.of_xml)(Xml.childxml_arg0"WorkspaceType")inletuserIdentityType=(Option.map~f:UserIdentityType.of_xml)(Xml.childxml_arg0"UserIdentityType")inletworkspaceDirectoryDescription=(Option.map~f:WorkspaceDirectoryDescription.of_xml)(Xml.childxml_arg0"WorkspaceDirectoryDescription")inletworkspaceDirectoryName=(Option.map~f:WorkspaceDirectoryName.of_xml)(Xml.childxml_arg0"WorkspaceDirectoryName")inletmicrosoftEntraConfig=(Option.map~f:MicrosoftEntraConfig.of_xml)(Xml.childxml_arg0"MicrosoftEntraConfig")inletendpointEncryptionMode=(Option.map~f:EndpointEncryptionMode.of_xml)(Xml.childxml_arg0"EndpointEncryptionMode")inletcertificateBasedAuthProperties=(Option.map~f:CertificateBasedAuthProperties.of_xml)(Xml.childxml_arg0"CertificateBasedAuthProperties")inletsamlProperties=(Option.map~f:SamlProperties.of_xml)(Xml.childxml_arg0"SamlProperties")inletselfservicePermissions=(Option.map~f:SelfservicePermissions.of_xml)(Xml.childxml_arg0"SelfservicePermissions")inlettenancy=(Option.map~f:Tenancy.of_xml)(Xml.childxml_arg0"Tenancy")inletworkspaceAccessProperties=(Option.map~f:WorkspaceAccessProperties.of_xml)(Xml.childxml_arg0"WorkspaceAccessProperties")inletipGroupIds=(Option.map~f:IpGroupIdList.of_xml)(Xml.childxml_arg0"ipGroupIds")inletworkspaceCreationProperties=(Option.map~f:DefaultWorkspaceCreationProperties.of_xml)(Xml.childxml_arg0"WorkspaceCreationProperties")inletstate=(Option.map~f:WorkspaceDirectoryState.of_xml)(Xml.childxml_arg0"State")inletworkspaceSecurityGroupId=(Option.map~f:SecurityGroupId.of_xml)(Xml.childxml_arg0"WorkspaceSecurityGroupId")inletdirectoryType=(Option.map~f:WorkspaceDirectoryType.of_xml)(Xml.childxml_arg0"DirectoryType")inletiamRoleId=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"IamRoleId")inletcustomerUserName=(Option.map~f:UserName.of_xml)(Xml.childxml_arg0"CustomerUserName")inletdnsIpv6Addresses=(Option.map~f:DnsIpv6Addresses.of_xml)(Xml.childxml_arg0"DnsIpv6Addresses")inletdnsIpAddresses=(Option.map~f:DnsIpAddresses.of_xml)(Xml.childxml_arg0"DnsIpAddresses")inletsubnetIds=(Option.map~f:SubnetIds.of_xml)(Xml.childxml_arg0"SubnetIds")inletregistrationCode=(Option.map~f:RegistrationCode.of_xml)(Xml.childxml_arg0"RegistrationCode")inletdirectoryName=(Option.map~f:DirectoryName.of_xml)(Xml.childxml_arg0"DirectoryName")inletalias=(Option.map~f:Alias.of_xml)(Xml.childxml_arg0"Alias")inletdirectoryId=(Option.map~f:DirectoryId.of_xml)(Xml.childxml_arg0"DirectoryId")inmake?errorMessage?streamingProperties?activeDirectoryConfig?iDCConfig?workspaceType?userIdentityType?workspaceDirectoryDescription?workspaceDirectoryName?microsoftEntraConfig?endpointEncryptionMode?certificateBasedAuthProperties?samlProperties?selfservicePermissions?tenancy?workspaceAccessProperties?ipGroupIds?workspaceCreationProperties?state?workspaceSecurityGroupId?directoryType?iamRoleId?customerUserName?dnsIpv6Addresses?dnsIpAddresses?subnetIds?registrationCode?directoryName?alias?directoryId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"Description.of_jsoninletstreamingProperties=field_mapjson__"StreamingProperties"StreamingProperties.of_jsoninletactiveDirectoryConfig=field_mapjson__"ActiveDirectoryConfig"ActiveDirectoryConfig.of_jsoninletiDCConfig=field_mapjson__"IDCConfig"IDCConfig.of_jsoninletworkspaceType=field_mapjson__"WorkspaceType"WorkspaceType.of_jsoninletuserIdentityType=field_mapjson__"UserIdentityType"UserIdentityType.of_jsoninletworkspaceDirectoryDescription=field_mapjson__"WorkspaceDirectoryDescription"WorkspaceDirectoryDescription.of_jsoninletworkspaceDirectoryName=field_mapjson__"WorkspaceDirectoryName"WorkspaceDirectoryName.of_jsoninletmicrosoftEntraConfig=field_mapjson__"MicrosoftEntraConfig"MicrosoftEntraConfig.of_jsoninletendpointEncryptionMode=field_mapjson__"EndpointEncryptionMode"EndpointEncryptionMode.of_jsoninletcertificateBasedAuthProperties=field_mapjson__"CertificateBasedAuthProperties"CertificateBasedAuthProperties.of_jsoninletsamlProperties=field_mapjson__"SamlProperties"SamlProperties.of_jsoninletselfservicePermissions=field_mapjson__"SelfservicePermissions"SelfservicePermissions.of_jsoninlettenancy=field_mapjson__"Tenancy"Tenancy.of_jsoninletworkspaceAccessProperties=field_mapjson__"WorkspaceAccessProperties"WorkspaceAccessProperties.of_jsoninletipGroupIds=field_mapjson__"ipGroupIds"IpGroupIdList.of_jsoninletworkspaceCreationProperties=field_mapjson__"WorkspaceCreationProperties"DefaultWorkspaceCreationProperties.of_jsoninletstate=field_mapjson__"State"WorkspaceDirectoryState.of_jsoninletworkspaceSecurityGroupId=field_mapjson__"WorkspaceSecurityGroupId"SecurityGroupId.of_jsoninletdirectoryType=field_mapjson__"DirectoryType"WorkspaceDirectoryType.of_jsoninletiamRoleId=field_mapjson__"IamRoleId"ARN.of_jsoninletcustomerUserName=field_mapjson__"CustomerUserName"UserName.of_jsoninletdnsIpv6Addresses=field_mapjson__"DnsIpv6Addresses"DnsIpv6Addresses.of_jsoninletdnsIpAddresses=field_mapjson__"DnsIpAddresses"DnsIpAddresses.of_jsoninletsubnetIds=field_mapjson__"SubnetIds"SubnetIds.of_jsoninletregistrationCode=field_mapjson__"RegistrationCode"RegistrationCode.of_jsoninletdirectoryName=field_mapjson__"DirectoryName"DirectoryName.of_jsoninletalias=field_mapjson__"Alias"Alias.of_jsoninletdirectoryId=field_mapjson__"DirectoryId"DirectoryId.of_jsoninmake?errorMessage?streamingProperties?activeDirectoryConfig?iDCConfig?workspaceType?userIdentityType?workspaceDirectoryDescription?workspaceDirectoryName?microsoftEntraConfig?endpointEncryptionMode?certificateBasedAuthProperties?samlProperties?selfservicePermissions?tenancy?workspaceAccessProperties?ipGroupIds?workspaceCreationProperties?state?workspaceSecurityGroupId?directoryType?iamRoleId?customerUserName?dnsIpv6Addresses?dnsIpAddresses?subnetIds?registrationCode?directoryName?alias?directoryId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a directory that is used with Amazon WorkSpaces."]moduleDescribeWorkspaceDirectoriesFilter=structtypenonrect={name:DescribeWorkspaceDirectoriesFilterName.t[@ocaml.doc"The name of the WorkSpaces to filter."];values:DescribeWorkspaceDirectoriesFilterValues.t[@ocaml.doc"The values for filtering WorkSpaces"]}letcontext_="DescribeWorkspaceDirectoriesFilter"letmake~name=fun~values->fun()->{name;values}letto_valuex=structure_to_value[("Name",(Some(DescribeWorkspaceDirectoriesFilterName.to_valuex.name)));("Values",(Some(DescribeWorkspaceDirectoriesFilterValues.to_valuex.values)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalues=DescribeWorkspaceDirectoriesFilterValues.of_xml(Xml.child_exn~context:context_xml_arg0"Values")inletname=DescribeWorkspaceDirectoriesFilterName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~values~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalues=field_map_exnjson__"Values"DescribeWorkspaceDirectoriesFilterValues.of_jsoninletname=field_map_exnjson__"Name"DescribeWorkspaceDirectoriesFilterName.of_jsoninmake~values~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the filter conditions for the WorkSpaces to return."]moduleWorkspaceBundle=structtypenonrect={bundleId:BundleId.toption[@ocaml.doc"The identifier of the bundle."];name:NonEmptyString.toption[@ocaml.doc"The name of the bundle."];owner:BundleOwner.toption[@ocaml.doc"The owner of the bundle. This is the account identifier of the owner, or AMAZON if the bundle is provided by Amazon Web Services."];description:Description.toption[@ocaml.doc"The description of the bundle."];imageId:WorkspaceImageId.toption[@ocaml.doc"The identifier of the image that was used to create the bundle."];rootStorage:RootStorage.toption[@ocaml.doc"The size of the root volume."];userStorage:UserStorage.toption[@ocaml.doc"The size of the user volume."];computeType:ComputeType.toption[@ocaml.doc"The compute type of the bundle. For more information, see Amazon WorkSpaces Bundles."];lastUpdatedTime:Timestamp.toption[@ocaml.doc"The last time that the bundle was updated."];creationTime:Timestamp.toption[@ocaml.doc"The time when the bundle was created."];state:WorkspaceBundleState.toption[@ocaml.doc"The state of the WorkSpace bundle."];bundleType:BundleType.toption[@ocaml.doc"The type of WorkSpace bundle."]}letmake?bundleId=fun?name->fun?owner->fun?description->fun?imageId->fun?rootStorage->fun?userStorage->fun?computeType->fun?lastUpdatedTime->fun?creationTime->fun?state->fun?bundleType->fun()->{bundleId;name;owner;description;imageId;rootStorage;userStorage;computeType;lastUpdatedTime;creationTime;state;bundleType}letto_valuex=structure_to_value[("BundleId",(Option.mapx.bundleId~f:BundleId.to_value));("Name",(Option.mapx.name~f:NonEmptyString.to_value));("Owner",(Option.mapx.owner~f:BundleOwner.to_value));("Description",(Option.mapx.description~f:Description.to_value));("ImageId",(Option.mapx.imageId~f:WorkspaceImageId.to_value));("RootStorage",(Option.mapx.rootStorage~f:RootStorage.to_value));("UserStorage",(Option.mapx.userStorage~f:UserStorage.to_value));("ComputeType",(Option.mapx.computeType~f:ComputeType.to_value));("LastUpdatedTime",(Option.mapx.lastUpdatedTime~f:Timestamp.to_value));("CreationTime",(Option.mapx.creationTime~f:Timestamp.to_value));("State",(Option.mapx.state~f:WorkspaceBundleState.to_value));("BundleType",(Option.mapx.bundleType~f:BundleType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbundleType=(Option.map~f:BundleType.of_xml)(Xml.childxml_arg0"BundleType")inletstate=(Option.map~f:WorkspaceBundleState.of_xml)(Xml.childxml_arg0"State")inletcreationTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreationTime")inletlastUpdatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastUpdatedTime")inletcomputeType=(Option.map~f:ComputeType.of_xml)(Xml.childxml_arg0"ComputeType")inletuserStorage=(Option.map~f:UserStorage.of_xml)(Xml.childxml_arg0"UserStorage")inletrootStorage=(Option.map~f:RootStorage.of_xml)(Xml.childxml_arg0"RootStorage")inletimageId=(Option.map~f:WorkspaceImageId.of_xml)(Xml.childxml_arg0"ImageId")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"Description")inletowner=(Option.map~f:BundleOwner.of_xml)(Xml.childxml_arg0"Owner")inletname=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"Name")inletbundleId=(Option.map~f:BundleId.of_xml)(Xml.childxml_arg0"BundleId")inmake?bundleType?state?creationTime?lastUpdatedTime?computeType?userStorage?rootStorage?imageId?description?owner?name?bundleId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbundleType=field_mapjson__"BundleType"BundleType.of_jsoninletstate=field_mapjson__"State"WorkspaceBundleState.of_jsoninletcreationTime=field_mapjson__"CreationTime"Timestamp.of_jsoninletlastUpdatedTime=field_mapjson__"LastUpdatedTime"Timestamp.of_jsoninletcomputeType=field_mapjson__"ComputeType"ComputeType.of_jsoninletuserStorage=field_mapjson__"UserStorage"UserStorage.of_jsoninletrootStorage=field_mapjson__"RootStorage"RootStorage.of_jsoninletimageId=field_mapjson__"ImageId"WorkspaceImageId.of_jsoninletdescription=field_mapjson__"Description"Description.of_jsoninletowner=field_mapjson__"Owner"BundleOwner.of_jsoninletname=field_mapjson__"Name"NonEmptyString.of_jsoninletbundleId=field_mapjson__"BundleId"BundleId.of_jsoninmake?bundleType?state?creationTime?lastUpdatedTime?computeType?userStorage?rootStorage?imageId?description?owner?name?bundleId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a WorkSpace bundle."]moduleWorkspacesIpGroup=structtypenonrect={groupId:IpGroupId.toption[@ocaml.doc"The identifier of the group."];groupName:IpGroupName.toption[@ocaml.doc"The name of the group."];groupDesc:IpGroupDesc.toption[@ocaml.doc"The description of the group."];userRules:IpRuleList.toption[@ocaml.doc"The rules."]}letmake?groupId=fun?groupName->fun?groupDesc->fun?userRules->fun()->{groupId;groupName;groupDesc;userRules}letto_valuex=structure_to_value[("groupId",(Option.mapx.groupId~f:IpGroupId.to_value));("groupName",(Option.mapx.groupName~f:IpGroupName.to_value));("groupDesc",(Option.mapx.groupDesc~f:IpGroupDesc.to_value));("userRules",(Option.mapx.userRules~f:IpRuleList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserRules=(Option.map~f:IpRuleList.of_xml)(Xml.childxml_arg0"userRules")inletgroupDesc=(Option.map~f:IpGroupDesc.of_xml)(Xml.childxml_arg0"groupDesc")inletgroupName=(Option.map~f:IpGroupName.of_xml)(Xml.childxml_arg0"groupName")inletgroupId=(Option.map~f:IpGroupId.of_xml)(Xml.childxml_arg0"groupId")inmake?userRules?groupDesc?groupName?groupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserRules=field_mapjson__"userRules"IpRuleList.of_jsoninletgroupDesc=field_mapjson__"groupDesc"IpGroupDesc.of_jsoninletgroupName=field_mapjson__"groupName"IpGroupName.of_jsoninletgroupId=field_mapjson__"groupId"IpGroupId.of_jsoninmake?userRules?groupDesc?groupName?groupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes an IP access control group."]moduleImageResourceAssociation=structtypenonrect={associatedResourceId:NonEmptyString.toption[@ocaml.doc"The identifier of the associated resource."];associatedResourceType:ImageAssociatedResourceType.toption[@ocaml.doc"The resource type of the associated resources."];created:Timestamp.toption[@ocaml.doc"The time the association is created."];lastUpdatedTime:Timestamp.toption[@ocaml.doc"The time the association status was last updated."];imageId:WorkspaceImageId.toption[@ocaml.doc"The identifier of the image."];state:AssociationState.toption[@ocaml.doc"The status of the image resource association."];stateReason:AssociationStateReason.toption[@ocaml.doc"The reason the association deployment failed."]}letmake?associatedResourceId=fun?associatedResourceType->fun?created->fun?lastUpdatedTime->fun?imageId->fun?state->fun?stateReason->fun()->{associatedResourceId;associatedResourceType;created;lastUpdatedTime;imageId;state;stateReason}letto_valuex=structure_to_value[("AssociatedResourceId",(Option.mapx.associatedResourceId~f:NonEmptyString.to_value));("AssociatedResourceType",(Option.mapx.associatedResourceType~f:ImageAssociatedResourceType.to_value));("Created",(Option.mapx.created~f:Timestamp.to_value));("LastUpdatedTime",(Option.mapx.lastUpdatedTime~f:Timestamp.to_value));("ImageId",(Option.mapx.imageId~f:WorkspaceImageId.to_value));("State",(Option.mapx.state~f:AssociationState.to_value));("StateReason",(Option.mapx.stateReason~f:AssociationStateReason.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstateReason=(Option.map~f:AssociationStateReason.of_xml)(Xml.childxml_arg0"StateReason")inletstate=(Option.map~f:AssociationState.of_xml)(Xml.childxml_arg0"State")inletimageId=(Option.map~f:WorkspaceImageId.of_xml)(Xml.childxml_arg0"ImageId")inletlastUpdatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastUpdatedTime")inletcreated=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"Created")inletassociatedResourceType=(Option.map~f:ImageAssociatedResourceType.of_xml)(Xml.childxml_arg0"AssociatedResourceType")inletassociatedResourceId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"AssociatedResourceId")inmake?stateReason?state?imageId?lastUpdatedTime?created?associatedResourceType?associatedResourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstateReason=field_mapjson__"StateReason"AssociationStateReason.of_jsoninletstate=field_mapjson__"State"AssociationState.of_jsoninletimageId=field_mapjson__"ImageId"WorkspaceImageId.of_jsoninletlastUpdatedTime=field_mapjson__"LastUpdatedTime"Timestamp.of_jsoninletcreated=field_mapjson__"Created"Timestamp.of_jsoninletassociatedResourceType=field_mapjson__"AssociatedResourceType"ImageAssociatedResourceType.of_jsoninletassociatedResourceId=field_mapjson__"AssociatedResourceId"NonEmptyString.of_jsoninmake?stateReason?state?imageId?lastUpdatedTime?created?associatedResourceType?associatedResourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the association between an application and an image resource."]moduleCustomWorkspaceImageImportErrorDetails=structtypenonrect={errorCode:ErrorCode.toption[@ocaml.doc"The error code that is returned for the image import."];errorMessage:ImageErrorMessage.toption[@ocaml.doc"The text of the error message that is returned for the image import."]}letmake?errorCode=fun?errorMessage->fun()->{errorCode;errorMessage}letto_valuex=structure_to_value[("ErrorCode",(Option.mapx.errorCode~f:ErrorCode.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:ImageErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:ImageErrorMessage.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inmake?errorMessage?errorCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"ImageErrorMessage.of_jsoninleterrorCode=field_mapjson__"ErrorCode"ErrorCode.of_jsoninmake?errorMessage?errorCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes in-depth details about the error. These details include the possible causes of the error and troubleshooting information."]moduleConnectionAlias=structtypenonrect={connectionString:ConnectionString.toption[@ocaml.doc"The connection string specified for the connection alias. The connection string must be in the form of a fully qualified domain name (FQDN), such as www.example.com."];aliasId:ConnectionAliasId.toption[@ocaml.doc"The identifier of the connection alias."];state:ConnectionAliasState.toption[@ocaml.doc"The current state of the connection alias."];ownerAccountId:AwsAccount.toption[@ocaml.doc"The identifier of the Amazon Web Services account that owns the connection alias."];associations:ConnectionAliasAssociationList.toption[@ocaml.doc"The association status of the connection alias."]}letmake?connectionString=fun?aliasId->fun?state->fun?ownerAccountId->fun?associations->fun()->{connectionString;aliasId;state;ownerAccountId;associations}letto_valuex=structure_to_value[("ConnectionString",(Option.mapx.connectionString~f:ConnectionString.to_value));("AliasId",(Option.mapx.aliasId~f:ConnectionAliasId.to_value));("State",(Option.mapx.state~f:ConnectionAliasState.to_value));("OwnerAccountId",(Option.mapx.ownerAccountId~f:AwsAccount.to_value));("Associations",(Option.mapx.associations~f:ConnectionAliasAssociationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassociations=(Option.map~f:ConnectionAliasAssociationList.of_xml)(Xml.childxml_arg0"Associations")inletownerAccountId=(Option.map~f:AwsAccount.of_xml)(Xml.childxml_arg0"OwnerAccountId")inletstate=(Option.map~f:ConnectionAliasState.of_xml)(Xml.childxml_arg0"State")inletaliasId=(Option.map~f:ConnectionAliasId.of_xml)(Xml.childxml_arg0"AliasId")inletconnectionString=(Option.map~f:ConnectionString.of_xml)(Xml.childxml_arg0"ConnectionString")inmake?associations?ownerAccountId?state?aliasId?connectionString()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassociations=field_mapjson__"Associations"ConnectionAliasAssociationList.of_jsoninletownerAccountId=field_mapjson__"OwnerAccountId"AwsAccount.of_jsoninletstate=field_mapjson__"State"ConnectionAliasState.of_jsoninletaliasId=field_mapjson__"AliasId"ConnectionAliasId.of_jsoninletconnectionString=field_mapjson__"ConnectionString"ConnectionString.of_jsoninmake?associations?ownerAccountId?state?aliasId?connectionString()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a connection alias. Connection aliases are used for cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces."]moduleConnectionAliasPermission=structtypenonrect={sharedAccountId:AwsAccount.t[@ocaml.doc"The identifier of the Amazon Web Services account that the connection alias is shared with."];allowAssociation:BooleanObject.t[@ocaml.doc"Indicates whether the specified Amazon Web Services account is allowed to associate the connection alias with a directory."]}letcontext_="ConnectionAliasPermission"letmake~sharedAccountId=fun~allowAssociation->fun()->{sharedAccountId;allowAssociation}letto_valuex=structure_to_value[("SharedAccountId",(Some(AwsAccount.to_valuex.sharedAccountId)));("AllowAssociation",(Some(BooleanObject.to_valuex.allowAssociation)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letallowAssociation=BooleanObject.of_xml(Xml.child_exn~context:context_xml_arg0"AllowAssociation")inletsharedAccountId=AwsAccount.of_xml(Xml.child_exn~context:context_xml_arg0"SharedAccountId")inmake~allowAssociation~sharedAccountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letallowAssociation=field_map_exnjson__"AllowAssociation"BooleanObject.of_jsoninletsharedAccountId=field_map_exnjson__"SharedAccountId"AwsAccount.of_jsoninmake~allowAssociation~sharedAccountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the permissions for a connection alias. Connection aliases are used for cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces."]moduleConnectClientAddIn=structtypenonrect={addInId:AmazonUuid.toption[@ocaml.doc"The client add-in identifier."];resourceId:DirectoryId.toption[@ocaml.doc"The directory identifier for which the client add-in is configured."];name:AddInName.toption[@ocaml.doc"The name of the client add in."];uRL:AddInUrl.toption[@ocaml.doc"The endpoint URL of the client add-in."]}letmake?addInId=fun?resourceId->fun?name->fun?uRL->fun()->{addInId;resourceId;name;uRL}letto_valuex=structure_to_value[("AddInId",(Option.mapx.addInId~f:AmazonUuid.to_value));("ResourceId",(Option.mapx.resourceId~f:DirectoryId.to_value));("Name",(Option.mapx.name~f:AddInName.to_value));("URL",(Option.mapx.uRL~f:AddInUrl.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuRL=(Option.map~f:AddInUrl.of_xml)(Xml.childxml_arg0"URL")inletname=(Option.map~f:AddInName.of_xml)(Xml.childxml_arg0"Name")inletresourceId=(Option.map~f:DirectoryId.of_xml)(Xml.childxml_arg0"ResourceId")inletaddInId=(Option.map~f:AmazonUuid.of_xml)(Xml.childxml_arg0"AddInId")inmake?uRL?name?resourceId?addInId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuRL=field_mapjson__"URL"AddInUrl.of_jsoninletname=field_mapjson__"Name"AddInName.of_jsoninletresourceId=field_mapjson__"ResourceId"DirectoryId.of_jsoninletaddInId=field_mapjson__"AddInId"AmazonUuid.of_jsoninmake?uRL?name?resourceId?addInId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes an Amazon Connect client add-in."]moduleClientPropertiesResult=structtypenonrect={resourceId:NonEmptyString.toption[@ocaml.doc"The resource identifier, in the form of a directory ID."];clientProperties:ClientProperties.toption[@ocaml.doc"Information about the Amazon WorkSpaces client."]}letmake?resourceId=fun?clientProperties->fun()->{resourceId;clientProperties}letto_valuex=structure_to_value[("ResourceId",(Option.mapx.resourceId~f:NonEmptyString.to_value));("ClientProperties",(Option.mapx.clientProperties~f:ClientProperties.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientProperties=(Option.map~f:ClientProperties.of_xml)(Xml.childxml_arg0"ClientProperties")inletresourceId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"ResourceId")inmake?clientProperties?resourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientProperties=field_mapjson__"ClientProperties"ClientProperties.of_jsoninletresourceId=field_mapjson__"ResourceId"NonEmptyString.of_jsoninmake?clientProperties?resourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about the Amazon WorkSpaces client."]moduleBundleResourceAssociation=structtypenonrect={associatedResourceId:NonEmptyString.toption[@ocaml.doc"The identifier of the associated resource."];associatedResourceType:BundleAssociatedResourceType.toption[@ocaml.doc"The resource type of the associated resources."];bundleId:BundleId.toption[@ocaml.doc"The identifier of the bundle."];created:Timestamp.toption[@ocaml.doc"The time the association is created."];lastUpdatedTime:Timestamp.toption[@ocaml.doc"The time the association status was last updated."];state:AssociationState.toption[@ocaml.doc"The status of the bundle resource association."];stateReason:AssociationStateReason.toption[@ocaml.doc"The reason the association deployment failed."]}letmake?associatedResourceId=fun?associatedResourceType->fun?bundleId->fun?created->fun?lastUpdatedTime->fun?state->fun?stateReason->fun()->{associatedResourceId;associatedResourceType;bundleId;created;lastUpdatedTime;state;stateReason}letto_valuex=structure_to_value[("AssociatedResourceId",(Option.mapx.associatedResourceId~f:NonEmptyString.to_value));("AssociatedResourceType",(Option.mapx.associatedResourceType~f:BundleAssociatedResourceType.to_value));("BundleId",(Option.mapx.bundleId~f:BundleId.to_value));("Created",(Option.mapx.created~f:Timestamp.to_value));("LastUpdatedTime",(Option.mapx.lastUpdatedTime~f:Timestamp.to_value));("State",(Option.mapx.state~f:AssociationState.to_value));("StateReason",(Option.mapx.stateReason~f:AssociationStateReason.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstateReason=(Option.map~f:AssociationStateReason.of_xml)(Xml.childxml_arg0"StateReason")inletstate=(Option.map~f:AssociationState.of_xml)(Xml.childxml_arg0"State")inletlastUpdatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastUpdatedTime")inletcreated=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"Created")inletbundleId=(Option.map~f:BundleId.of_xml)(Xml.childxml_arg0"BundleId")inletassociatedResourceType=(Option.map~f:BundleAssociatedResourceType.of_xml)(Xml.childxml_arg0"AssociatedResourceType")inletassociatedResourceId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"AssociatedResourceId")inmake?stateReason?state?lastUpdatedTime?created?bundleId?associatedResourceType?associatedResourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstateReason=field_mapjson__"StateReason"AssociationStateReason.of_jsoninletstate=field_mapjson__"State"AssociationState.of_jsoninletlastUpdatedTime=field_mapjson__"LastUpdatedTime"Timestamp.of_jsoninletcreated=field_mapjson__"Created"Timestamp.of_jsoninletbundleId=field_mapjson__"BundleId"BundleId.of_jsoninletassociatedResourceType=field_mapjson__"AssociatedResourceType"BundleAssociatedResourceType.of_jsoninletassociatedResourceId=field_mapjson__"AssociatedResourceId"NonEmptyString.of_jsoninmake?stateReason?state?lastUpdatedTime?created?bundleId?associatedResourceType?associatedResourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the association between an application and a bundle resource."]moduleWorkSpaceApplication=structtypenonrect={applicationId:WorkSpaceApplicationId.toption[@ocaml.doc"The identifier of the application."];created:Timestamp.toption[@ocaml.doc"The time the application is created."];description:String2048.toption[@ocaml.doc"The description of the WorkSpace application."];licenseType:WorkSpaceApplicationLicenseType.toption[@ocaml.doc"The license availability for the applications."];name:NonEmptyString.toption[@ocaml.doc"The name of the WorkSpace application."];owner:WorkSpaceApplicationOwner.toption[@ocaml.doc"The owner of the WorkSpace application."];state:WorkSpaceApplicationState.toption[@ocaml.doc"The status of WorkSpace application."];supportedComputeTypeNames:ComputeList.toption[@ocaml.doc"The supported compute types of the WorkSpace application."];supportedOperatingSystemNames:OperatingSystemNameList.toption[@ocaml.doc"The supported operating systems of the WorkSpace application."]}letmake?applicationId=fun?created->fun?description->fun?licenseType->fun?name->fun?owner->fun?state->fun?supportedComputeTypeNames->fun?supportedOperatingSystemNames->fun()->{applicationId;created;description;licenseType;name;owner;state;supportedComputeTypeNames;supportedOperatingSystemNames}letto_valuex=structure_to_value[("ApplicationId",(Option.mapx.applicationId~f:WorkSpaceApplicationId.to_value));("Created",(Option.mapx.created~f:Timestamp.to_value));("Description",(Option.mapx.description~f:String2048.to_value));("LicenseType",(Option.mapx.licenseType~f:WorkSpaceApplicationLicenseType.to_value));("Name",(Option.mapx.name~f:NonEmptyString.to_value));("Owner",(Option.mapx.owner~f:WorkSpaceApplicationOwner.to_value));("State",(Option.mapx.state~f:WorkSpaceApplicationState.to_value));("SupportedComputeTypeNames",(Option.mapx.supportedComputeTypeNames~f:ComputeList.to_value));("SupportedOperatingSystemNames",(Option.mapx.supportedOperatingSystemNames~f:OperatingSystemNameList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsupportedOperatingSystemNames=(Option.map~f:OperatingSystemNameList.of_xml)(Xml.childxml_arg0"SupportedOperatingSystemNames")inletsupportedComputeTypeNames=(Option.map~f:ComputeList.of_xml)(Xml.childxml_arg0"SupportedComputeTypeNames")inletstate=(Option.map~f:WorkSpaceApplicationState.of_xml)(Xml.childxml_arg0"State")inletowner=(Option.map~f:WorkSpaceApplicationOwner.of_xml)(Xml.childxml_arg0"Owner")inletname=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"Name")inletlicenseType=(Option.map~f:WorkSpaceApplicationLicenseType.of_xml)(Xml.childxml_arg0"LicenseType")inletdescription=(Option.map~f:String2048.of_xml)(Xml.childxml_arg0"Description")inletcreated=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"Created")inletapplicationId=(Option.map~f:WorkSpaceApplicationId.of_xml)(Xml.childxml_arg0"ApplicationId")inmake?supportedOperatingSystemNames?supportedComputeTypeNames?state?owner?name?licenseType?description?created?applicationId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsupportedOperatingSystemNames=field_mapjson__"SupportedOperatingSystemNames"OperatingSystemNameList.of_jsoninletsupportedComputeTypeNames=field_mapjson__"SupportedComputeTypeNames"ComputeList.of_jsoninletstate=field_mapjson__"State"WorkSpaceApplicationState.of_jsoninletowner=field_mapjson__"Owner"WorkSpaceApplicationOwner.of_jsoninletname=field_mapjson__"Name"NonEmptyString.of_jsoninletlicenseType=field_mapjson__"LicenseType"WorkSpaceApplicationLicenseType.of_jsoninletdescription=field_mapjson__"Description"String2048.of_jsoninletcreated=field_mapjson__"Created"Timestamp.of_jsoninletapplicationId=field_mapjson__"ApplicationId"WorkSpaceApplicationId.of_jsoninmake?supportedOperatingSystemNames?supportedComputeTypeNames?state?owner?name?licenseType?description?created?applicationId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the WorkSpace application."]moduleApplicationResourceAssociation=structtypenonrect={applicationId:WorkSpaceApplicationId.toption[@ocaml.doc"The identifier of the application."];associatedResourceId:NonEmptyString.toption[@ocaml.doc"The identifier of the associated resource."];associatedResourceType:ApplicationAssociatedResourceType.toption[@ocaml.doc"The resource type of the associated resource."];created:Timestamp.toption[@ocaml.doc"The time the association was created."];lastUpdatedTime:Timestamp.toption[@ocaml.doc"The time the association status was last updated."];state:AssociationState.toption[@ocaml.doc"The status of the application resource association."];stateReason:AssociationStateReason.toption[@ocaml.doc"The reason the association deployment failed."]}letmake?applicationId=fun?associatedResourceId->fun?associatedResourceType->fun?created->fun?lastUpdatedTime->fun?state->fun?stateReason->fun()->{applicationId;associatedResourceId;associatedResourceType;created;lastUpdatedTime;state;stateReason}letto_valuex=structure_to_value[("ApplicationId",(Option.mapx.applicationId~f:WorkSpaceApplicationId.to_value));("AssociatedResourceId",(Option.mapx.associatedResourceId~f:NonEmptyString.to_value));("AssociatedResourceType",(Option.mapx.associatedResourceType~f:ApplicationAssociatedResourceType.to_value));("Created",(Option.mapx.created~f:Timestamp.to_value));("LastUpdatedTime",(Option.mapx.lastUpdatedTime~f:Timestamp.to_value));("State",(Option.mapx.state~f:AssociationState.to_value));("StateReason",(Option.mapx.stateReason~f:AssociationStateReason.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstateReason=(Option.map~f:AssociationStateReason.of_xml)(Xml.childxml_arg0"StateReason")inletstate=(Option.map~f:AssociationState.of_xml)(Xml.childxml_arg0"State")inletlastUpdatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastUpdatedTime")inletcreated=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"Created")inletassociatedResourceType=(Option.map~f:ApplicationAssociatedResourceType.of_xml)(Xml.childxml_arg0"AssociatedResourceType")inletassociatedResourceId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"AssociatedResourceId")inletapplicationId=(Option.map~f:WorkSpaceApplicationId.of_xml)(Xml.childxml_arg0"ApplicationId")inmake?stateReason?state?lastUpdatedTime?created?associatedResourceType?associatedResourceId?applicationId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstateReason=field_mapjson__"StateReason"AssociationStateReason.of_jsoninletstate=field_mapjson__"State"AssociationState.of_jsoninletlastUpdatedTime=field_mapjson__"LastUpdatedTime"Timestamp.of_jsoninletcreated=field_mapjson__"Created"Timestamp.of_jsoninletassociatedResourceType=field_mapjson__"AssociatedResourceType"ApplicationAssociatedResourceType.of_jsoninletassociatedResourceId=field_mapjson__"AssociatedResourceId"NonEmptyString.of_jsoninletapplicationId=field_mapjson__"ApplicationId"WorkSpaceApplicationId.of_jsoninmake?stateReason?state?lastUpdatedTime?created?associatedResourceType?associatedResourceId?applicationId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the association between an application and an application resource."]moduleAccountModification=structtypenonrect={modificationState:DedicatedTenancyModificationStateEnum.toption[@ocaml.doc"The state of the modification to the configuration of BYOL."];dedicatedTenancySupport:DedicatedTenancySupportResultEnum.toption[@ocaml.doc"The status of BYOL (whether BYOL is being enabled or disabled)."];dedicatedTenancyManagementCidrRange:DedicatedTenancyManagementCidrRange.toption[@ocaml.doc"The IP address range, specified as an IPv4 CIDR block, for the management network interface used for the account."];startTime:Timestamp.toption[@ocaml.doc"The timestamp when the modification of the BYOL configuration was started."];errorCode:WorkspaceErrorCode.toption[@ocaml.doc"The error code that is returned if the configuration of BYOL cannot be modified."];errorMessage:Description.toption[@ocaml.doc"The text of the error message that is returned if the configuration of BYOL cannot be modified."]}letmake?modificationState=fun?dedicatedTenancySupport->fun?dedicatedTenancyManagementCidrRange->fun?startTime->fun?errorCode->fun?errorMessage->fun()->{modificationState;dedicatedTenancySupport;dedicatedTenancyManagementCidrRange;startTime;errorCode;errorMessage}letto_valuex=structure_to_value[("ModificationState",(Option.mapx.modificationState~f:DedicatedTenancyModificationStateEnum.to_value));("DedicatedTenancySupport",(Option.mapx.dedicatedTenancySupport~f:DedicatedTenancySupportResultEnum.to_value));("DedicatedTenancyManagementCidrRange",(Option.mapx.dedicatedTenancyManagementCidrRange~f:DedicatedTenancyManagementCidrRange.to_value));("StartTime",(Option.mapx.startTime~f:Timestamp.to_value));("ErrorCode",(Option.mapx.errorCode~f:WorkspaceErrorCode.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:Description.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:WorkspaceErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StartTime")inletdedicatedTenancyManagementCidrRange=(Option.map~f:DedicatedTenancyManagementCidrRange.of_xml)(Xml.childxml_arg0"DedicatedTenancyManagementCidrRange")inletdedicatedTenancySupport=(Option.map~f:DedicatedTenancySupportResultEnum.of_xml)(Xml.childxml_arg0"DedicatedTenancySupport")inletmodificationState=(Option.map~f:DedicatedTenancyModificationStateEnum.of_xml)(Xml.childxml_arg0"ModificationState")inmake?errorMessage?errorCode?startTime?dedicatedTenancyManagementCidrRange?dedicatedTenancySupport?modificationState()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"Description.of_jsoninleterrorCode=field_mapjson__"ErrorCode"WorkspaceErrorCode.of_jsoninletstartTime=field_mapjson__"StartTime"Timestamp.of_jsoninletdedicatedTenancyManagementCidrRange=field_mapjson__"DedicatedTenancyManagementCidrRange"DedicatedTenancyManagementCidrRange.of_jsoninletdedicatedTenancySupport=field_mapjson__"DedicatedTenancySupport"DedicatedTenancySupportResultEnum.of_jsoninletmodificationState=field_mapjson__"ModificationState"DedicatedTenancyModificationStateEnum.of_jsoninmake?errorMessage?errorCode?startTime?dedicatedTenancyManagementCidrRange?dedicatedTenancySupport?modificationState()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a modification to the configuration of Bring Your Own License (BYOL) for the specified account."]moduleWorkspaceResourceAssociationList=structtypenonrect=WorkspaceResourceAssociation.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WorkspaceResourceAssociation.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:WorkspaceResourceAssociation.of_xml)letof_jsonj=list_of_json~kind:"WorkspaceResourceAssociationList"~of_json:WorkspaceResourceAssociation.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleClientDeviceType=structtypenonrect=|DeviceTypeWindows|DeviceTypeOsx|DeviceTypeAndroid|DeviceTypeIos|DeviceTypeLinux|DeviceTypeWeb|Non_static_idofstringletmakei=iletto_string=function|DeviceTypeWindows->"DeviceTypeWindows"|DeviceTypeOsx->"DeviceTypeOsx"|DeviceTypeAndroid->"DeviceTypeAndroid"|DeviceTypeIos->"DeviceTypeIos"|DeviceTypeLinux->"DeviceTypeLinux"|DeviceTypeWeb->"DeviceTypeWeb"|Non_static_ids->sletof_string=function|"DeviceTypeWindows"->DeviceTypeWindows|"DeviceTypeOsx"->DeviceTypeOsx|"DeviceTypeAndroid"->DeviceTypeAndroid|"DeviceTypeIos"->DeviceTypeIos|"DeviceTypeLinux"->DeviceTypeLinux|"DeviceTypeWeb"->DeviceTypeWeb|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 ClientDeviceType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ClientDeviceType"j)letto_json=simple_to_jsonto_valueendmoduleFailedCreateWorkspaceRequest=structtypenonrect={workspaceRequest:WorkspaceRequest.toption[@ocaml.doc"Information about the WorkSpace."];errorCode:ErrorType.toption[@ocaml.doc"The error code that is returned if the WorkSpace cannot be created."];errorMessage:Description.toption[@ocaml.doc"The text of the error message that is returned if the WorkSpace cannot be created."]}letmake?workspaceRequest=fun?errorCode->fun?errorMessage->fun()->{workspaceRequest;errorCode;errorMessage}letto_valuex=structure_to_value[("WorkspaceRequest",(Option.mapx.workspaceRequest~f:WorkspaceRequest.to_value));("ErrorCode",(Option.mapx.errorCode~f:ErrorType.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:Description.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:ErrorType.of_xml)(Xml.childxml_arg0"ErrorCode")inletworkspaceRequest=(Option.map~f:WorkspaceRequest.of_xml)(Xml.childxml_arg0"WorkspaceRequest")inmake?errorMessage?errorCode?workspaceRequest()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"Description.of_jsoninleterrorCode=field_mapjson__"ErrorCode"ErrorType.of_jsoninletworkspaceRequest=field_mapjson__"WorkspaceRequest"WorkspaceRequest.of_jsoninmake?errorMessage?errorCode?workspaceRequest()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a WorkSpace that cannot be created."]moduleFailedCreateStandbyWorkspacesRequest=structtypenonrect={standbyWorkspaceRequest:StandbyWorkspace.toption[@ocaml.doc"Information about the standby WorkSpace that could not be created."];errorCode:WorkspaceErrorCode.toption[@ocaml.doc"The error code that is returned if the standby WorkSpace could not be created."];errorMessage:Description.toption[@ocaml.doc"The text of the error message that is returned if the standby WorkSpace could not be created."]}letmake?standbyWorkspaceRequest=fun?errorCode->fun?errorMessage->fun()->{standbyWorkspaceRequest;errorCode;errorMessage}letto_valuex=structure_to_value[("StandbyWorkspaceRequest",(Option.mapx.standbyWorkspaceRequest~f:StandbyWorkspace.to_value));("ErrorCode",(Option.mapx.errorCode~f:WorkspaceErrorCode.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:Description.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:WorkspaceErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inletstandbyWorkspaceRequest=(Option.map~f:StandbyWorkspace.of_xml)(Xml.childxml_arg0"StandbyWorkspaceRequest")inmake?errorMessage?errorCode?standbyWorkspaceRequest()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"Description.of_jsoninleterrorCode=field_mapjson__"ErrorCode"WorkspaceErrorCode.of_jsoninletstandbyWorkspaceRequest=field_mapjson__"StandbyWorkspaceRequest"StandbyWorkspace.of_jsoninmake?errorMessage?errorCode?standbyWorkspaceRequest()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the standby WorkSpace that could not be created."]modulePendingCreateStandbyWorkspacesRequest=structtypenonrect={userName:UserName.toption[@ocaml.doc"Describes the standby WorkSpace that was created. Because this operation is asynchronous, the identifier returned is not immediately available for use with other operations. For example, if you call DescribeWorkspaces before the WorkSpace is created, the information returned can be incomplete."];directoryId:DirectoryId.toption[@ocaml.doc"The identifier of the directory for the standby WorkSpace."];state:WorkspaceState.toption[@ocaml.doc"The operational state of the standby WorkSpace."];workspaceId:WorkspaceId.toption[@ocaml.doc"The identifier of the standby WorkSpace."]}letmake?userName=fun?directoryId->fun?state->fun?workspaceId->fun()->{userName;directoryId;state;workspaceId}letto_valuex=structure_to_value[("UserName",(Option.mapx.userName~f:UserName.to_value));("DirectoryId",(Option.mapx.directoryId~f:DirectoryId.to_value));("State",(Option.mapx.state~f:WorkspaceState.to_value));("WorkspaceId",(Option.mapx.workspaceId~f:WorkspaceId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkspaceId=(Option.map~f:WorkspaceId.of_xml)(Xml.childxml_arg0"WorkspaceId")inletstate=(Option.map~f:WorkspaceState.of_xml)(Xml.childxml_arg0"State")inletdirectoryId=(Option.map~f:DirectoryId.of_xml)(Xml.childxml_arg0"DirectoryId")inletuserName=(Option.map~f:UserName.of_xml)(Xml.childxml_arg0"UserName")inmake?workspaceId?state?directoryId?userName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkspaceId=field_mapjson__"WorkspaceId"WorkspaceId.of_jsoninletstate=field_mapjson__"State"WorkspaceState.of_jsoninletdirectoryId=field_mapjson__"DirectoryId"DirectoryId.of_jsoninletuserName=field_mapjson__"UserName"UserName.of_jsoninmake?workspaceId?state?directoryId?userName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about the standby WorkSpace."]moduleAccessDeniedException=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The user is not authorized to access a resource."]moduleInvalidParameterValuesException=structtypenonrect={message:ExceptionMessage.toption[@ocaml.doc"The exception error message."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"One or more parameter values are not valid."]moduleInvalidResourceStateException=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The state of the resource is not valid for this operation."]moduleOperationInProgressException=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The properties of this WorkSpace are currently being modified. Try again in a moment."]moduleOperationNotSupportedException=structtypenonrect={message:ExceptionMessage.toption[@ocaml.doc"The exception error message."];reason:ExceptionErrorCode.toption[@ocaml.doc"The exception error reason."]}letmake?message=fun?reason->fun()->{message;reason}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value));("reason",(Option.mapx.reason~f:ExceptionErrorCode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreason=(Option.map~f:ExceptionErrorCode.of_xml)(Xml.childxml_arg0"reason")inletmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?reason?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreason=field_mapjson__"reason"ExceptionErrorCode.of_jsoninletmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?reason?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This operation is not supported."]moduleResourceLimitExceededException=structtypenonrect={message:ExceptionMessage.toption[@ocaml.doc"The exception error message."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Your resource limits have been exceeded."]moduleResourceNotFoundException=structtypenonrect={message:ExceptionMessage.toption[@ocaml.doc"The resource could not be found."];resourceId:NonEmptyString.toption[@ocaml.doc"The ID of the resource that could not be found."]}letmake?message=fun?resourceId->fun()->{message;resourceId}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value));("ResourceId",(Option.mapx.resourceId~f:NonEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"ResourceId")inletmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceId=field_mapjson__"ResourceId"NonEmptyString.of_jsoninletmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The resource could not be found."]moduleApplicationSettingsRequest=structtypenonrect={status:ApplicationSettingsStatusEnum.t[@ocaml.doc"Enables or disables persistent application settings for users during their pool sessions."];settingsGroup:SettingsGroup.toption[@ocaml.doc"The path prefix for the S3 bucket where users\226\128\153 persistent application settings are stored. You can allow the same persistent application settings to be used across multiple pools by specifying the same settings group for each pool."]}letcontext_="ApplicationSettingsRequest"letmake?settingsGroup=fun~status->fun()->{settingsGroup;status}letto_valuex=structure_to_value[("Status",(Some(ApplicationSettingsStatusEnum.to_valuex.status)));("SettingsGroup",(Option.mapx.settingsGroup~f:SettingsGroup.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsettingsGroup=(Option.map~f:SettingsGroup.of_xml)(Xml.childxml_arg0"SettingsGroup")inletstatus=ApplicationSettingsStatusEnum.of_xml(Xml.child_exn~context:context_xml_arg0"Status")inmake?settingsGroup~status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsettingsGroup=field_mapjson__"SettingsGroup"SettingsGroup.of_jsoninletstatus=field_map_exnjson__"Status"ApplicationSettingsStatusEnum.of_jsoninmake?settingsGroup~status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The persistent application settings for WorkSpaces Pools users."]moduleCapacity=structtypenonrect={desiredUserSessions:DesiredUserSessions.t[@ocaml.doc"The desired number of user sessions for the WorkSpaces in the pool."]}letcontext_="Capacity"letmake~desiredUserSessions=fun()->{desiredUserSessions}letto_valuex=structure_to_value[("DesiredUserSessions",(Some(DesiredUserSessions.to_valuex.desiredUserSessions)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdesiredUserSessions=DesiredUserSessions.of_xml(Xml.child_exn~context:context_xml_arg0"DesiredUserSessions")inmake~desiredUserSessions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdesiredUserSessions=field_map_exnjson__"DesiredUserSessions"DesiredUserSessions.of_jsoninmake~desiredUserSessions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the user capacity for a pool of WorkSpaces."]moduleResourceUnavailableException=structtypenonrect={message:ExceptionMessage.toption[@ocaml.doc"The exception error message."];resourceId:NonEmptyString.toption[@ocaml.doc"The identifier of the resource that is not available."]}letmake?message=fun?resourceId->fun()->{message;resourceId}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value));("ResourceId",(Option.mapx.resourceId~f:NonEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"ResourceId")inletmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceId=field_mapjson__"ResourceId"NonEmptyString.of_jsoninletmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified resource is not available."]moduleResourceAssociatedException=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The resource is associated with a directory."]moduleFailedTerminateWorkspaceRequests=structtypenonrect=FailedWorkspaceChangeRequest.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FailedWorkspaceChangeRequest.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:FailedWorkspaceChangeRequest.of_xml)letof_jsonj=list_of_json~kind:"FailedTerminateWorkspaceRequests"~of_json:FailedWorkspaceChangeRequest.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTerminateWorkspaceRequests=structtypenonrect=TerminateRequest.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TerminateRequest.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:TerminateRequest.of_xml)letof_jsonj=list_of_json~kind:"TerminateWorkspaceRequests"~of_json:TerminateRequest.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFailedStopWorkspaceRequests=structtypenonrect=FailedWorkspaceChangeRequest.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FailedWorkspaceChangeRequest.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:FailedWorkspaceChangeRequest.of_xml)letof_jsonj=list_of_json~kind:"FailedStopWorkspaceRequests"~of_json:FailedWorkspaceChangeRequest.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleStopWorkspaceRequests=structtypenonrect=StopRequest.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StopRequest.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:StopRequest.of_xml)letof_jsonj=list_of_json~kind:"StopWorkspaceRequests"~of_json:StopRequest.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFailedStartWorkspaceRequests=structtypenonrect=FailedWorkspaceChangeRequest.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FailedWorkspaceChangeRequest.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:FailedWorkspaceChangeRequest.of_xml)letof_jsonj=list_of_json~kind:"FailedStartWorkspaceRequests"~of_json:FailedWorkspaceChangeRequest.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleStartWorkspaceRequests=structtypenonrect=StartRequest.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StartRequest.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:StartRequest.of_xml)letof_jsonj=list_of_json~kind:"StartWorkspaceRequests"~of_json:StartRequest.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleIpRevokedRuleList=structtypenonrect=IpRule.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:IpRule.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:IpRule.of_xml)letof_jsonj=list_of_json~kind:"IpRevokedRuleList"~of_json:IpRule.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleConflictException=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The TargetAccountId is already linked or invited."]moduleInternalServerException=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Unexpected server error occured."]moduleValidationException=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You either haven't provided a TargetAccountId or are using the same value for TargetAccountId and SourceAccountId."]moduleClientToken=structtypenonrect=stringletcontext_="ClientToken"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^.{1,64}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ClientToken"jletto_json=simple_to_jsonto_valueendmoduleResourceAlreadyExistsException=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified resource already exists."]moduleUnsupportedNetworkConfigurationException=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The configuration of this network is not supported for this operation, or your network configuration conflicts with the Amazon WorkSpaces management network IP range. For more information, see Configure a VPC for Amazon WorkSpaces."]moduleWorkspacesDefaultRoleNotFoundException=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The workspaces_DefaultRole role could not be found. If this is the first time you are registering a directory, you will need to create the workspaces_DefaultRole role before you can register a directory. For more information, see Creating the workspaces_DefaultRole Role."]moduleFailedRebuildWorkspaceRequests=structtypenonrect=FailedWorkspaceChangeRequest.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FailedWorkspaceChangeRequest.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:FailedWorkspaceChangeRequest.of_xml)letof_jsonj=list_of_json~kind:"FailedRebuildWorkspaceRequests"~of_json:FailedWorkspaceChangeRequest.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRebuildWorkspaceRequests=structtypenonrect=RebuildRequest.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RebuildRequest.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:RebuildRequest.of_xml)letof_jsonj=list_of_json~kind:"RebuildWorkspaceRequests"~of_json:RebuildRequest.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFailedRebootWorkspaceRequests=structtypenonrect=FailedWorkspaceChangeRequest.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FailedWorkspaceChangeRequest.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:FailedWorkspaceChangeRequest.of_xml)letof_jsonj=list_of_json~kind:"FailedRebootWorkspaceRequests"~of_json:FailedWorkspaceChangeRequest.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRebootWorkspaceRequests=structtypenonrect=RebootRequest.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RebootRequest.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:RebootRequest.of_xml)letof_jsonj=list_of_json~kind:"RebootWorkspaceRequests"~of_json:RebootRequest.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTargetWorkspaceState=structtypenonrect=|AVAILABLE|ADMIN_MAINTENANCE|Non_static_idofstringletmakei=iletto_string=function|AVAILABLE->"AVAILABLE"|ADMIN_MAINTENANCE->"ADMIN_MAINTENANCE"|Non_static_ids->sletof_string=function|"AVAILABLE"->AVAILABLE|"ADMIN_MAINTENANCE"->ADMIN_MAINTENANCE|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 TargetWorkspaceState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TargetWorkspaceState"j)letto_json=simple_to_jsonto_valueendmoduleUnsupportedWorkspaceConfigurationException=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The configuration of this WorkSpace is not supported for this operation. For more information, see Required Configuration and Service Components for WorkSpaces ."]moduleWorkspaceCreationProperties=structtypenonrect={enableInternetAccess:BooleanObject.toption[@ocaml.doc"Indicates whether internet access is enabled for your WorkSpaces."];defaultOu:DefaultOu.toption[@ocaml.doc"The default organizational unit (OU) for your WorkSpaces directories. This string must be the full Lightweight Directory Access Protocol (LDAP) distinguished name for the target domain and OU. It must be in the form \"OU=value,DC=value,DC=value\", where value is any string of characters, and the number of domain components (DCs) is two or more. For example, OU=WorkSpaces_machines,DC=machines,DC=example,DC=com. To avoid errors, certain characters in the distinguished name must be escaped. For more information, see Distinguished Names in the Microsoft documentation. The API doesn't validate whether the OU exists."];customSecurityGroupId:SecurityGroupId.toption[@ocaml.doc"The identifier of your custom security group."];userEnabledAsLocalAdministrator:BooleanObject.toption[@ocaml.doc"Indicates whether users are local administrators of their WorkSpaces."];enableMaintenanceMode:BooleanObject.toption[@ocaml.doc"Indicates whether maintenance mode is enabled for your WorkSpaces. For more information, see WorkSpace Maintenance."];instanceIamRoleArn:ARN.toption[@ocaml.doc"Indicates the IAM role ARN of the instance."]}letmake?enableInternetAccess=fun?defaultOu->fun?customSecurityGroupId->fun?userEnabledAsLocalAdministrator->fun?enableMaintenanceMode->fun?instanceIamRoleArn->fun()->{enableInternetAccess;defaultOu;customSecurityGroupId;userEnabledAsLocalAdministrator;enableMaintenanceMode;instanceIamRoleArn}letto_valuex=structure_to_value[("EnableInternetAccess",(Option.mapx.enableInternetAccess~f:BooleanObject.to_value));("DefaultOu",(Option.mapx.defaultOu~f:DefaultOu.to_value));("CustomSecurityGroupId",(Option.mapx.customSecurityGroupId~f:SecurityGroupId.to_value));("UserEnabledAsLocalAdministrator",(Option.mapx.userEnabledAsLocalAdministrator~f:BooleanObject.to_value));("EnableMaintenanceMode",(Option.mapx.enableMaintenanceMode~f:BooleanObject.to_value));("InstanceIamRoleArn",(Option.mapx.instanceIamRoleArn~f:ARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinstanceIamRoleArn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"InstanceIamRoleArn")inletenableMaintenanceMode=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"EnableMaintenanceMode")inletuserEnabledAsLocalAdministrator=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"UserEnabledAsLocalAdministrator")inletcustomSecurityGroupId=(Option.map~f:SecurityGroupId.of_xml)(Xml.childxml_arg0"CustomSecurityGroupId")inletdefaultOu=(Option.map~f:DefaultOu.of_xml)(Xml.childxml_arg0"DefaultOu")inletenableInternetAccess=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"EnableInternetAccess")inmake?instanceIamRoleArn?enableMaintenanceMode?userEnabledAsLocalAdministrator?customSecurityGroupId?defaultOu?enableInternetAccess()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinstanceIamRoleArn=field_mapjson__"InstanceIamRoleArn"ARN.of_jsoninletenableMaintenanceMode=field_mapjson__"EnableMaintenanceMode"BooleanObject.of_jsoninletuserEnabledAsLocalAdministrator=field_mapjson__"UserEnabledAsLocalAdministrator"BooleanObject.of_jsoninletcustomSecurityGroupId=field_mapjson__"CustomSecurityGroupId"SecurityGroupId.of_jsoninletdefaultOu=field_mapjson__"DefaultOu"DefaultOu.of_jsoninletenableInternetAccess=field_mapjson__"EnableInternetAccess"BooleanObject.of_jsoninmake?instanceIamRoleArn?enableMaintenanceMode?userEnabledAsLocalAdministrator?customSecurityGroupId?defaultOu?enableInternetAccess()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the default properties that are used for creating WorkSpaces. For more information, see Update Directory Details for Your WorkSpaces."]moduleInvalidParameterCombinationException=structtypenonrect={message:ExceptionMessage.toption[@ocaml.doc"The exception error message."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Two or more of the selected parameter values cannot be used together."]moduleDeletableSamlPropertiesList=structtypenonrect=DeletableSamlProperty.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DeletableSamlProperty.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:DeletableSamlProperty.of_xml)letof_jsonj=list_of_json~kind:"DeletableSamlPropertiesList"~of_json:DeletableSamlProperty.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDeletableCertificateBasedAuthPropertiesList=structtypenonrect=DeletableCertificateBasedAuthProperty.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DeletableCertificateBasedAuthProperty.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:DeletableCertificateBasedAuthProperty.of_xml)letof_jsonj=list_of_json~kind:"DeletableCertificateBasedAuthPropertiesList"~of_json:DeletableCertificateBasedAuthProperty.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMessage=structtypenonrect=stringletcontext_="Message"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:"Message"jletto_json=simple_to_jsonto_valueendmoduleDedicatedTenancySupportEnum=structtypenonrect=|ENABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|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 DedicatedTenancySupportEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DedicatedTenancySupportEnum"j)letto_json=simple_to_jsonto_valueendmoduleDedicatedTenancyCidrRangeList=structtypenonrect=DedicatedTenancyManagementCidrRange.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DedicatedTenancyManagementCidrRange.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:DedicatedTenancyManagementCidrRange.of_xml)letof_jsonj=list_of_json~kind:"DedicatedTenancyCidrRangeList"~of_json:DedicatedTenancyManagementCidrRange.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePaginationToken=structtypenonrect=stringletcontext_="PaginationToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PaginationToken"jletto_json=simple_to_jsonto_valueendmoduleManagementCidrRangeConstraint=structtypenonrect=stringletcontext_="ManagementCidrRangeConstraint"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(3[0-2]|[1-2][0-9]|[0-9]))$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ManagementCidrRangeConstraint"jletto_json=simple_to_jsonto_valueendmoduleManagementCidrRangeMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:5)>>=(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 ManagementCidrRangeMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleAccountLinkList=structtypenonrect=AccountLink.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AccountLink.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:AccountLink.of_xml)letof_jsonj=list_of_json~kind:"AccountLinkList"~of_json:AccountLink.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLimit=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:25)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for Limit"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleLinkStatusFilterList=structtypenonrect=AccountLinkStatusEnum.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AccountLinkStatusEnum.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:AccountLinkStatusEnum.of_xml)letof_jsonj=list_of_json~kind:"LinkStatusFilterList"~of_json:AccountLinkStatusEnum.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleApplicationList=structtypenonrect=Application.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:5)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Application.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:Application.of_xml)letof_jsonj=list_of_json~kind:"ApplicationList"~of_json:Application.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWorkspaceImageIngestionProcess=structtypenonrect=|BYOL_REGULAR|BYOL_GRAPHICS|BYOL_GRAPHICSPRO|BYOL_GRAPHICS_G4DN|BYOL_REGULAR_WSP|BYOL_GRAPHICS_G4DN_WSP|BYOL_REGULAR_BYOP|BYOL_GRAPHICS_G4DN_BYOP|Non_static_idofstringletmakei=iletto_string=function|BYOL_REGULAR->"BYOL_REGULAR"|BYOL_GRAPHICS->"BYOL_GRAPHICS"|BYOL_GRAPHICSPRO->"BYOL_GRAPHICSPRO"|BYOL_GRAPHICS_G4DN->"BYOL_GRAPHICS_G4DN"|BYOL_REGULAR_WSP->"BYOL_REGULAR_WSP"|BYOL_GRAPHICS_G4DN_WSP->"BYOL_GRAPHICS_G4DN_WSP"|BYOL_REGULAR_BYOP->"BYOL_REGULAR_BYOP"|BYOL_GRAPHICS_G4DN_BYOP->"BYOL_GRAPHICS_G4DN_BYOP"|Non_static_ids->sletof_string=function|"BYOL_REGULAR"->BYOL_REGULAR|"BYOL_GRAPHICS"->BYOL_GRAPHICS|"BYOL_GRAPHICSPRO"->BYOL_GRAPHICSPRO|"BYOL_GRAPHICS_G4DN"->BYOL_GRAPHICS_G4DN|"BYOL_REGULAR_WSP"->BYOL_REGULAR_WSP|"BYOL_GRAPHICS_G4DN_WSP"->BYOL_GRAPHICS_G4DN_WSP|"BYOL_REGULAR_BYOP"->BYOL_REGULAR_BYOP|"BYOL_GRAPHICS_G4DN_BYOP"->BYOL_GRAPHICS_G4DN_BYOP|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 WorkspaceImageIngestionProcess"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WorkspaceImageIngestionProcess"j)letto_json=simple_to_jsonto_valueendmoduleCustomWorkspaceImageImportState=structtypenonrect=|PENDING|IN_PROGRESS|PROCESSING_SOURCE_IMAGE|IMAGE_TESTING_START|UPDATING_OPERATING_SYSTEM|IMAGE_COMPATIBILITY_CHECKING|IMAGE_TESTING_GENERALIZATION|CREATING_TEST_INSTANCE|INSTALLING_COMPONENTS|GENERALIZING|VALIDATING|PUBLISHING|COMPLETED|ERROR|Non_static_idofstringletmakei=iletto_string=function|PENDING->"PENDING"|IN_PROGRESS->"IN_PROGRESS"|PROCESSING_SOURCE_IMAGE->"PROCESSING_SOURCE_IMAGE"|IMAGE_TESTING_START->"IMAGE_TESTING_START"|UPDATING_OPERATING_SYSTEM->"UPDATING_OPERATING_SYSTEM"|IMAGE_COMPATIBILITY_CHECKING->"IMAGE_COMPATIBILITY_CHECKING"|IMAGE_TESTING_GENERALIZATION->"IMAGE_TESTING_GENERALIZATION"|CREATING_TEST_INSTANCE->"CREATING_TEST_INSTANCE"|INSTALLING_COMPONENTS->"INSTALLING_COMPONENTS"|GENERALIZING->"GENERALIZING"|VALIDATING->"VALIDATING"|PUBLISHING->"PUBLISHING"|COMPLETED->"COMPLETED"|ERROR->"ERROR"|Non_static_ids->sletof_string=function|"PENDING"->PENDING|"IN_PROGRESS"->IN_PROGRESS|"PROCESSING_SOURCE_IMAGE"->PROCESSING_SOURCE_IMAGE|"IMAGE_TESTING_START"->IMAGE_TESTING_START|"UPDATING_OPERATING_SYSTEM"->UPDATING_OPERATING_SYSTEM|"IMAGE_COMPATIBILITY_CHECKING"->IMAGE_COMPATIBILITY_CHECKING|"IMAGE_TESTING_GENERALIZATION"->IMAGE_TESTING_GENERALIZATION|"CREATING_TEST_INSTANCE"->CREATING_TEST_INSTANCE|"INSTALLING_COMPONENTS"->INSTALLING_COMPONENTS|"GENERALIZING"->GENERALIZING|"VALIDATING"->VALIDATING|"PUBLISHING"->PUBLISHING|"COMPLETED"->COMPLETED|"ERROR"->ERROR|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration CustomWorkspaceImageImportState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CustomWorkspaceImageImportState"j)letto_json=simple_to_jsonto_valueendmoduleCustomImageProtocol=structtypenonrect=|PCOIP|DCV|BYOP|Non_static_idofstringletmakei=iletto_string=function|PCOIP->"PCOIP"|DCV->"DCV"|BYOP->"BYOP"|Non_static_ids->sletof_string=function|"PCOIP"->PCOIP|"DCV"->DCV|"BYOP"->BYOP|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 CustomImageProtocol"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CustomImageProtocol"j)letto_json=simple_to_jsonto_valueendmoduleImageComputeType=structtypenonrect=|BASE|GRAPHICS_G4DN|GRAPHICS_G6|Non_static_idofstringletmakei=iletto_string=function|BASE->"BASE"|GRAPHICS_G4DN->"GRAPHICS_G4DN"|GRAPHICS_G6->"GRAPHICS_G6"|Non_static_ids->sletof_string=function|"BASE"->BASE|"GRAPHICS_G4DN"->GRAPHICS_G4DN|"GRAPHICS_G6"->GRAPHICS_G6|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 ImageComputeType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ImageComputeType"j)letto_json=simple_to_jsonto_valueendmoduleImageSourceIdentifier=structtypenonrect={ec2ImportTaskId:Ec2ImportTaskId.toption[@ocaml.doc"The EC2 import task ID to import the image from the Amazon EC2 VM import process."];imageBuildVersionArn:ImageBuildVersionArn.toption[@ocaml.doc"The ARN of the EC2 Image Builder image."];ec2ImageId:Ec2ImageId.toption[@ocaml.doc"The identifier of the EC2 image."]}letmake?ec2ImportTaskId=fun?imageBuildVersionArn->fun?ec2ImageId->fun()->{ec2ImportTaskId;imageBuildVersionArn;ec2ImageId}letto_valuex=structure_to_value[("Ec2ImportTaskId",(Option.mapx.ec2ImportTaskId~f:Ec2ImportTaskId.to_value));("ImageBuildVersionArn",(Option.mapx.imageBuildVersionArn~f:ImageBuildVersionArn.to_value));("Ec2ImageId",(Option.mapx.ec2ImageId~f:Ec2ImageId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letec2ImageId=(Option.map~f:Ec2ImageId.of_xml)(Xml.childxml_arg0"Ec2ImageId")inletimageBuildVersionArn=(Option.map~f:ImageBuildVersionArn.of_xml)(Xml.childxml_arg0"ImageBuildVersionArn")inletec2ImportTaskId=(Option.map~f:Ec2ImportTaskId.of_xml)(Xml.childxml_arg0"Ec2ImportTaskId")inmake?ec2ImageId?imageBuildVersionArn?ec2ImportTaskId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letec2ImageId=field_mapjson__"Ec2ImageId"Ec2ImageId.of_jsoninletimageBuildVersionArn=field_mapjson__"ImageBuildVersionArn"ImageBuildVersionArn.of_jsoninletec2ImportTaskId=field_mapjson__"Ec2ImportTaskId"Ec2ImportTaskId.of_jsoninmake?ec2ImageId?imageBuildVersionArn?ec2ImportTaskId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the image import source."]moduleInfrastructureConfigurationArn=structtypenonrect=stringletcontext_="InfrastructureConfigurationArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^arn:aws[^:]*:imagebuilder:[^:]+:(?:[0-9]{12}|aws):infrastructure-configuration/[a-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:"InfrastructureConfigurationArn"jletto_json=simple_to_jsonto_valueendmoduleOSVersion=structtypenonrect=|Windows_10|Windows_11|Non_static_idofstringletmakei=iletto_string=function|Windows_10->"Windows_10"|Windows_11->"Windows_11"|Non_static_ids->sletof_string=function|"Windows_10"->Windows_10|"Windows_11"->Windows_11|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 OSVersion"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"OSVersion"j)letto_json=simple_to_jsonto_valueendmodulePlatform=structtypenonrect=|WINDOWS|Non_static_idofstringletmakei=iletto_string=function|WINDOWS->"WINDOWS"|Non_static_ids->sletof_string=function|"WINDOWS"->WINDOWS|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 Platform"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Platform"j)letto_json=simple_to_jsonto_valueendmoduleDefaultClientBrandingAttributes=structtypenonrect={logoUrl:ClientUrl.toption[@ocaml.doc"The logo. The only image format accepted is a binary data object that is converted from a .png file."];supportEmail:ClientEmail.toption[@ocaml.doc"The support email. The company's customer support email address. In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. The default email is workspaces-feedback\\@amazon.com."];supportLink:ClientUrl.toption[@ocaml.doc"The support link. The link for the company's customer support page for their WorkSpace. In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive.You can specify one parameter for each platform type, but not both. The default support link is workspaces-feedback\\@amazon.com."];forgotPasswordLink:ClientUrl.toption[@ocaml.doc"The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace."];loginMessage:LoginMessage.toption[@ocaml.doc"The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul."]}letmake?logoUrl=fun?supportEmail->fun?supportLink->fun?forgotPasswordLink->fun?loginMessage->fun()->{logoUrl;supportEmail;supportLink;forgotPasswordLink;loginMessage}letto_valuex=structure_to_value[("LogoUrl",(Option.mapx.logoUrl~f:ClientUrl.to_value));("SupportEmail",(Option.mapx.supportEmail~f:ClientEmail.to_value));("SupportLink",(Option.mapx.supportLink~f:ClientUrl.to_value));("ForgotPasswordLink",(Option.mapx.forgotPasswordLink~f:ClientUrl.to_value));("LoginMessage",(Option.mapx.loginMessage~f:LoginMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letloginMessage=(Option.map~f:LoginMessage.of_xml)(Xml.childxml_arg0"LoginMessage")inletforgotPasswordLink=(Option.map~f:ClientUrl.of_xml)(Xml.childxml_arg0"ForgotPasswordLink")inletsupportLink=(Option.map~f:ClientUrl.of_xml)(Xml.childxml_arg0"SupportLink")inletsupportEmail=(Option.map~f:ClientEmail.of_xml)(Xml.childxml_arg0"SupportEmail")inletlogoUrl=(Option.map~f:ClientUrl.of_xml)(Xml.childxml_arg0"LogoUrl")inmake?loginMessage?forgotPasswordLink?supportLink?supportEmail?logoUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letloginMessage=field_mapjson__"LoginMessage"LoginMessage.of_jsoninletforgotPasswordLink=field_mapjson__"ForgotPasswordLink"ClientUrl.of_jsoninletsupportLink=field_mapjson__"SupportLink"ClientUrl.of_jsoninletsupportEmail=field_mapjson__"SupportEmail"ClientEmail.of_jsoninletlogoUrl=field_mapjson__"LogoUrl"ClientUrl.of_jsoninmake?loginMessage?forgotPasswordLink?supportLink?supportEmail?logoUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns default client branding attributes that were imported. These attributes display on the client login screen. Client branding attributes are public facing. Ensure that you don't include sensitive information."]moduleIosClientBrandingAttributes=structtypenonrect={logoUrl:ClientUrl.toption[@ocaml.doc"The logo. This is the standard-resolution display that has a 1:1 pixel density (or \\@1x), where one pixel is equal to one point. The only image format accepted is a binary data object that is converted from a .png file."];logo2xUrl:ClientUrl.toption[@ocaml.doc"The \\@2x version of the logo. This is the higher resolution display that offers a scale factor of 2.0 (or \\@2x). The only image format accepted is a binary data object that is converted from a .png file. For more information about iOS image size and resolution, see Image Size and Resolution in the Apple Human Interface Guidelines."];logo3xUrl:ClientUrl.toption[@ocaml.doc"The \\@3x version of the logo. This is the higher resolution display that offers a scale factor of 3.0 (or \\@3x).The only image format accepted is a binary data object that is converted from a .png file. For more information about iOS image size and resolution, see Image Size and Resolution in the Apple Human Interface Guidelines."];supportEmail:ClientEmail.toption[@ocaml.doc"The support email. The company's customer support email address. In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. The default email is workspaces-feedback\\@amazon.com."];supportLink:ClientUrl.toption[@ocaml.doc"The support link. The link for the company's customer support page for their WorkSpace. In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. The default support link is workspaces-feedback\\@amazon.com."];forgotPasswordLink:ClientUrl.toption[@ocaml.doc"The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace."];loginMessage:LoginMessage.toption[@ocaml.doc"The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul."]}letmake?logoUrl=fun?logo2xUrl->fun?logo3xUrl->fun?supportEmail->fun?supportLink->fun?forgotPasswordLink->fun?loginMessage->fun()->{logoUrl;logo2xUrl;logo3xUrl;supportEmail;supportLink;forgotPasswordLink;loginMessage}letto_valuex=structure_to_value[("LogoUrl",(Option.mapx.logoUrl~f:ClientUrl.to_value));("Logo2xUrl",(Option.mapx.logo2xUrl~f:ClientUrl.to_value));("Logo3xUrl",(Option.mapx.logo3xUrl~f:ClientUrl.to_value));("SupportEmail",(Option.mapx.supportEmail~f:ClientEmail.to_value));("SupportLink",(Option.mapx.supportLink~f:ClientUrl.to_value));("ForgotPasswordLink",(Option.mapx.forgotPasswordLink~f:ClientUrl.to_value));("LoginMessage",(Option.mapx.loginMessage~f:LoginMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letloginMessage=(Option.map~f:LoginMessage.of_xml)(Xml.childxml_arg0"LoginMessage")inletforgotPasswordLink=(Option.map~f:ClientUrl.of_xml)(Xml.childxml_arg0"ForgotPasswordLink")inletsupportLink=(Option.map~f:ClientUrl.of_xml)(Xml.childxml_arg0"SupportLink")inletsupportEmail=(Option.map~f:ClientEmail.of_xml)(Xml.childxml_arg0"SupportEmail")inletlogo3xUrl=(Option.map~f:ClientUrl.of_xml)(Xml.childxml_arg0"Logo3xUrl")inletlogo2xUrl=(Option.map~f:ClientUrl.of_xml)(Xml.childxml_arg0"Logo2xUrl")inletlogoUrl=(Option.map~f:ClientUrl.of_xml)(Xml.childxml_arg0"LogoUrl")inmake?loginMessage?forgotPasswordLink?supportLink?supportEmail?logo3xUrl?logo2xUrl?logoUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letloginMessage=field_mapjson__"LoginMessage"LoginMessage.of_jsoninletforgotPasswordLink=field_mapjson__"ForgotPasswordLink"ClientUrl.of_jsoninletsupportLink=field_mapjson__"SupportLink"ClientUrl.of_jsoninletsupportEmail=field_mapjson__"SupportEmail"ClientEmail.of_jsoninletlogo3xUrl=field_mapjson__"Logo3xUrl"ClientUrl.of_jsoninletlogo2xUrl=field_mapjson__"Logo2xUrl"ClientUrl.of_jsoninletlogoUrl=field_mapjson__"LogoUrl"ClientUrl.of_jsoninmake?loginMessage?forgotPasswordLink?supportLink?supportEmail?logo3xUrl?logo2xUrl?logoUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The client branding attributes for iOS device types. These attributes are displayed on the iOS client login screen only. Client branding attributes are public facing. Ensure you do not include sensitive information."]moduleDefaultImportClientBrandingAttributes=structtypenonrect={logo:DefaultLogo.toption[@ocaml.doc"The logo. The only image format accepted is a binary data object that is converted from a .png file."];supportEmail:ClientEmail.toption[@ocaml.doc"The support email. The company's customer support email address. In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. The default email is workspaces-feedback\\@amazon.com."];supportLink:ClientUrl.toption[@ocaml.doc"The support link. The link for the company's customer support page for their WorkSpace. In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. The default support link is workspaces-feedback\\@amazon.com."];forgotPasswordLink:ClientUrl.toption[@ocaml.doc"The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace."];loginMessage:LoginMessage.toption[@ocaml.doc"The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul."]}letmake?logo=fun?supportEmail->fun?supportLink->fun?forgotPasswordLink->fun?loginMessage->fun()->{logo;supportEmail;supportLink;forgotPasswordLink;loginMessage}letto_valuex=structure_to_value[("Logo",(Option.mapx.logo~f:DefaultLogo.to_value));("SupportEmail",(Option.mapx.supportEmail~f:ClientEmail.to_value));("SupportLink",(Option.mapx.supportLink~f:ClientUrl.to_value));("ForgotPasswordLink",(Option.mapx.forgotPasswordLink~f:ClientUrl.to_value));("LoginMessage",(Option.mapx.loginMessage~f:LoginMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letloginMessage=(Option.map~f:LoginMessage.of_xml)(Xml.childxml_arg0"LoginMessage")inletforgotPasswordLink=(Option.map~f:ClientUrl.of_xml)(Xml.childxml_arg0"ForgotPasswordLink")inletsupportLink=(Option.map~f:ClientUrl.of_xml)(Xml.childxml_arg0"SupportLink")inletsupportEmail=(Option.map~f:ClientEmail.of_xml)(Xml.childxml_arg0"SupportEmail")inletlogo=(Option.map~f:DefaultLogo.of_xml)(Xml.childxml_arg0"Logo")inmake?loginMessage?forgotPasswordLink?supportLink?supportEmail?logo()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letloginMessage=field_mapjson__"LoginMessage"LoginMessage.of_jsoninletforgotPasswordLink=field_mapjson__"ForgotPasswordLink"ClientUrl.of_jsoninletsupportLink=field_mapjson__"SupportLink"ClientUrl.of_jsoninletsupportEmail=field_mapjson__"SupportEmail"ClientEmail.of_jsoninletlogo=field_mapjson__"Logo"DefaultLogo.of_jsoninmake?loginMessage?forgotPasswordLink?supportLink?supportEmail?logo()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The default client branding attributes to be imported. These attributes display on the client login screen. Client branding attributes are public facing. Ensure that you do not include sensitive information."]moduleIosImportClientBrandingAttributes=structtypenonrect={logo:IosLogo.toption[@ocaml.doc"The logo. This is the standard-resolution display that has a 1:1 pixel density (or \\@1x), where one pixel is equal to one point. The only image format accepted is a binary data object that is converted from a .png file."];logo2x:Ios2XLogo.toption[@ocaml.doc"The \\@2x version of the logo. This is the higher resolution display that offers a scale factor of 2.0 (or \\@2x). The only image format accepted is a binary data object that is converted from a .png file. For more information about iOS image size and resolution, see Image Size and Resolution in the Apple Human Interface Guidelines."];logo3x:Ios3XLogo.toption[@ocaml.doc"The \\@3x version of the logo. This is the higher resolution display that offers a scale factor of 3.0 (or \\@3x). The only image format accepted is a binary data object that is converted from a .png file. For more information about iOS image size and resolution, see Image Size and Resolution in the Apple Human Interface Guidelines."];supportEmail:ClientEmail.toption[@ocaml.doc"The support email. The company's customer support email address. In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. The default email is workspaces-feedback\\@amazon.com."];supportLink:ClientUrl.toption[@ocaml.doc"The support link. The link for the company's customer support page for their WorkSpace. In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. The default support link is workspaces-feedback\\@amazon.com."];forgotPasswordLink:ClientUrl.toption[@ocaml.doc"The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace."];loginMessage:LoginMessage.toption[@ocaml.doc"The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul."]}letmake?logo=fun?logo2x->fun?logo3x->fun?supportEmail->fun?supportLink->fun?forgotPasswordLink->fun?loginMessage->fun()->{logo;logo2x;logo3x;supportEmail;supportLink;forgotPasswordLink;loginMessage}letto_valuex=structure_to_value[("Logo",(Option.mapx.logo~f:IosLogo.to_value));("Logo2x",(Option.mapx.logo2x~f:Ios2XLogo.to_value));("Logo3x",(Option.mapx.logo3x~f:Ios3XLogo.to_value));("SupportEmail",(Option.mapx.supportEmail~f:ClientEmail.to_value));("SupportLink",(Option.mapx.supportLink~f:ClientUrl.to_value));("ForgotPasswordLink",(Option.mapx.forgotPasswordLink~f:ClientUrl.to_value));("LoginMessage",(Option.mapx.loginMessage~f:LoginMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letloginMessage=(Option.map~f:LoginMessage.of_xml)(Xml.childxml_arg0"LoginMessage")inletforgotPasswordLink=(Option.map~f:ClientUrl.of_xml)(Xml.childxml_arg0"ForgotPasswordLink")inletsupportLink=(Option.map~f:ClientUrl.of_xml)(Xml.childxml_arg0"SupportLink")inletsupportEmail=(Option.map~f:ClientEmail.of_xml)(Xml.childxml_arg0"SupportEmail")inletlogo3x=(Option.map~f:Ios3XLogo.of_xml)(Xml.childxml_arg0"Logo3x")inletlogo2x=(Option.map~f:Ios2XLogo.of_xml)(Xml.childxml_arg0"Logo2x")inletlogo=(Option.map~f:IosLogo.of_xml)(Xml.childxml_arg0"Logo")inmake?loginMessage?forgotPasswordLink?supportLink?supportEmail?logo3x?logo2x?logo()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letloginMessage=field_mapjson__"LoginMessage"LoginMessage.of_jsoninletforgotPasswordLink=field_mapjson__"ForgotPasswordLink"ClientUrl.of_jsoninletsupportLink=field_mapjson__"SupportLink"ClientUrl.of_jsoninletsupportEmail=field_mapjson__"SupportEmail"ClientEmail.of_jsoninletlogo3x=field_mapjson__"Logo3x"Ios3XLogo.of_jsoninletlogo2x=field_mapjson__"Logo2x"Ios2XLogo.of_jsoninletlogo=field_mapjson__"Logo"IosLogo.of_jsoninmake?loginMessage?forgotPasswordLink?supportLink?supportEmail?logo3x?logo2x?logo()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The client branding attributes to import for iOS device types. These attributes are displayed on the iOS client login screen. Client branding attributes are public facing. Ensure you do not include sensitive information."]moduleResourceInUseException=structtypenonrect={message:ExceptionMessage.toption;resourceId:NonEmptyString.toption[@ocaml.doc"The ID of the resource that is in use."]}letmake?message=fun?resourceId->fun()->{message;resourceId}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value));("ResourceId",(Option.mapx.resourceId~f:NonEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"ResourceId")inletmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceId=field_mapjson__"ResourceId"NonEmptyString.of_jsoninletmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified resource is currently in use."]moduleWorkspaceList=structtypenonrect=Workspace.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Workspace.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:Workspace.of_xml)letof_jsonj=list_of_json~kind:"WorkspaceList"~of_json:Workspace.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWorkspaceIdList=structtypenonrect=WorkspaceId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WorkspaceId.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:WorkspaceId.of_xml)letof_jsonj=list_of_json~kind:"WorkspaceIdList"~of_json:WorkspaceId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWorkspacesPools=structtypenonrect=WorkspacesPool.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WorkspacesPool.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:WorkspacesPool.of_xml)letof_jsonj=list_of_json~kind:"WorkspacesPools"~of_json:WorkspacesPool.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDescribeWorkspacesPoolsFilters=structtypenonrect=DescribeWorkspacesPoolsFilter.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DescribeWorkspacesPoolsFilter.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:DescribeWorkspacesPoolsFilter.of_xml)letof_jsonj=list_of_json~kind:"DescribeWorkspacesPoolsFilters"~of_json:DescribeWorkspacesPoolsFilter.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWorkspacesPoolIds=structtypenonrect=WorkspacesPoolId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WorkspacesPoolId.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:WorkspacesPoolId.of_xml)letof_jsonj=list_of_json~kind:"WorkspacesPoolIds"~of_json:WorkspacesPoolId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWorkspacesPoolSessions=structtypenonrect=WorkspacesPoolSession.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WorkspacesPoolSession.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:WorkspacesPoolSession.of_xml)letof_jsonj=list_of_json~kind:"WorkspacesPoolSessions"~of_json:WorkspacesPoolSession.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLimit50=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(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 Limit50"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleWorkspaceConnectionStatusList=structtypenonrect=WorkspaceConnectionStatus.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WorkspaceConnectionStatus.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:WorkspaceConnectionStatus.of_xml)letof_jsonj=list_of_json~kind:"WorkspaceConnectionStatusList"~of_json:WorkspaceConnectionStatus.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSnapshotList=structtypenonrect=Snapshot.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Snapshot.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:Snapshot.of_xml)letof_jsonj=list_of_json~kind:"SnapshotList"~of_json:Snapshot.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWorkspaceImageList=structtypenonrect=WorkspaceImage.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WorkspaceImage.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:WorkspaceImage.of_xml)letof_jsonj=list_of_json~kind:"WorkspaceImageList"~of_json:WorkspaceImage.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleImageType=structtypenonrect=|OWNED|SHARED|Non_static_idofstringletmakei=iletto_string=function|OWNED->"OWNED"|SHARED->"SHARED"|Non_static_ids->sletof_string=function|"OWNED"->OWNED|"SHARED"->SHARED|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 ImageType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ImageType"j)letto_json=simple_to_jsonto_valueendmoduleWorkspaceImageIdList=structtypenonrect=WorkspaceImageId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WorkspaceImageId.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:WorkspaceImageId.of_xml)letof_jsonj=list_of_json~kind:"WorkspaceImageIdList"~of_json:WorkspaceImageId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleImagePermissions=structtypenonrect=ImagePermission.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ImagePermission.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:ImagePermission.of_xml)letof_jsonj=list_of_json~kind:"ImagePermissions"~of_json:ImagePermission.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDirectoryList=structtypenonrect=WorkspaceDirectory.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WorkspaceDirectory.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:WorkspaceDirectory.of_xml)letof_jsonj=list_of_json~kind:"DirectoryList"~of_json:WorkspaceDirectory.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDescribeWorkspaceDirectoriesFilterList=structtypenonrect=DescribeWorkspaceDirectoriesFilter.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DescribeWorkspaceDirectoriesFilter.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:DescribeWorkspaceDirectoriesFilter.of_xml)letof_jsonj=list_of_json~kind:"DescribeWorkspaceDirectoriesFilterList"~of_json:DescribeWorkspaceDirectoriesFilter.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDirectoryIdList=structtypenonrect=DirectoryId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DirectoryId.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:DirectoryId.of_xml)letof_jsonj=list_of_json~kind:"DirectoryIdList"~of_json:DirectoryId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWorkspaceDirectoryNameList=structtypenonrect=WorkspaceDirectoryName.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WorkspaceDirectoryName.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:WorkspaceDirectoryName.of_xml)letof_jsonj=list_of_json~kind:"WorkspaceDirectoryNameList"~of_json:WorkspaceDirectoryName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBundleList=structtypenonrect=WorkspaceBundle.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WorkspaceBundle.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:WorkspaceBundle.of_xml)letof_jsonj=list_of_json~kind:"BundleList"~of_json:WorkspaceBundle.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBundleIdList=structtypenonrect=BundleId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:BundleId.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:BundleId.of_xml)letof_jsonj=list_of_json~kind:"BundleIdList"~of_json:BundleId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWorkSpaceAssociatedResourceTypeList=structtypenonrect=WorkSpaceAssociatedResourceType.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WorkSpaceAssociatedResourceType.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:WorkSpaceAssociatedResourceType.of_xml)letof_jsonj=list_of_json~kind:"WorkSpaceAssociatedResourceTypeList"~of_json:WorkSpaceAssociatedResourceType.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWorkspacesIpGroupsList=structtypenonrect=WorkspacesIpGroup.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WorkspacesIpGroup.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:WorkspacesIpGroup.of_xml)letof_jsonj=list_of_json~kind:"WorkspacesIpGroupsList"~of_json:WorkspacesIpGroup.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleImageResourceAssociationList=structtypenonrect=ImageResourceAssociation.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ImageResourceAssociation.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:ImageResourceAssociation.of_xml)letof_jsonj=list_of_json~kind:"ImageResourceAssociationList"~of_json:ImageResourceAssociation.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleImageAssociatedResourceTypeList=structtypenonrect=ImageAssociatedResourceType.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ImageAssociatedResourceType.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:ImageAssociatedResourceType.of_xml)letof_jsonj=list_of_json~kind:"ImageAssociatedResourceTypeList"~of_json:ImageAssociatedResourceType.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCustomWorkspaceImageImportErrorDetailsList=structtypenonrect=CustomWorkspaceImageImportErrorDetails.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CustomWorkspaceImageImportErrorDetails.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:CustomWorkspaceImageImportErrorDetails.of_xml)letof_jsonj=list_of_json~kind:"CustomWorkspaceImageImportErrorDetailsList"~of_json:CustomWorkspaceImageImportErrorDetails.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePercentage=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for Percentage"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleWorkflowStateMessage=structtypenonrect=stringletcontext_="WorkflowStateMessage"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1000)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"WorkflowStateMessage"jletto_json=simple_to_jsonto_valueendmoduleConnectionAliasList=structtypenonrect=ConnectionAlias.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ConnectionAlias.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:ConnectionAlias.of_xml)letof_jsonj=list_of_json~kind:"ConnectionAliasList"~of_json:ConnectionAlias.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleConnectionAliasIdList=structtypenonrect=ConnectionAliasId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ConnectionAliasId.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:ConnectionAliasId.of_xml)letof_jsonj=list_of_json~kind:"ConnectionAliasIdList"~of_json:ConnectionAliasId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleConnectionAliasPermissions=structtypenonrect=ConnectionAliasPermission.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ConnectionAliasPermission.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:ConnectionAliasPermission.of_xml)letof_jsonj=list_of_json~kind:"ConnectionAliasPermissions"~of_json:ConnectionAliasPermission.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleConnectClientAddInList=structtypenonrect=ConnectClientAddIn.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ConnectClientAddIn.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:ConnectClientAddIn.of_xml)letof_jsonj=list_of_json~kind:"ConnectClientAddInList"~of_json:ConnectClientAddIn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleClientPropertiesList=structtypenonrect=ClientPropertiesResult.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ClientPropertiesResult.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:ClientPropertiesResult.of_xml)letof_jsonj=list_of_json~kind:"ClientPropertiesList"~of_json:ClientPropertiesResult.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResourceIdList=structtypenonrect=NonEmptyString.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f: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:"ResourceIdList"~of_json:NonEmptyString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBundleResourceAssociationList=structtypenonrect=BundleResourceAssociation.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:BundleResourceAssociation.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:BundleResourceAssociation.of_xml)letof_jsonj=list_of_json~kind:"BundleResourceAssociationList"~of_json:BundleResourceAssociation.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBundleAssociatedResourceTypeList=structtypenonrect=BundleAssociatedResourceType.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:BundleAssociatedResourceType.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:BundleAssociatedResourceType.of_xml)letof_jsonj=list_of_json~kind:"BundleAssociatedResourceTypeList"~of_json:BundleAssociatedResourceType.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWorkSpaceApplicationList=structtypenonrect=WorkSpaceApplication.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WorkSpaceApplication.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:WorkSpaceApplication.of_xml)letof_jsonj=list_of_json~kind:"WorkSpaceApplicationList"~of_json:WorkSpaceApplication.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWorkSpaceApplicationIdList=structtypenonrect=WorkSpaceApplicationId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WorkSpaceApplicationId.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:WorkSpaceApplicationId.of_xml)letof_jsonj=list_of_json~kind:"WorkSpaceApplicationIdList"~of_json:WorkSpaceApplicationId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleApplicationResourceAssociationList=structtypenonrect=ApplicationResourceAssociation.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ApplicationResourceAssociation.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:ApplicationResourceAssociation.of_xml)letof_jsonj=list_of_json~kind:"ApplicationResourceAssociationList"~of_json:ApplicationResourceAssociation.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleApplicationAssociatedResourceTypeList=structtypenonrect=ApplicationAssociatedResourceType.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ApplicationAssociatedResourceType.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:ApplicationAssociatedResourceType.of_xml)letof_jsonj=list_of_json~kind:"ApplicationAssociatedResourceTypeList"~of_json:ApplicationAssociatedResourceType.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDedicatedTenancyAccountType=structtypenonrect=|SOURCE_ACCOUNT|TARGET_ACCOUNT|Non_static_idofstringletmakei=iletto_string=function|SOURCE_ACCOUNT->"SOURCE_ACCOUNT"|TARGET_ACCOUNT->"TARGET_ACCOUNT"|Non_static_ids->sletof_string=function|"SOURCE_ACCOUNT"->SOURCE_ACCOUNT|"TARGET_ACCOUNT"->TARGET_ACCOUNT|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 DedicatedTenancyAccountType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DedicatedTenancyAccountType"j)letto_json=simple_to_jsonto_valueendmoduleAccountModificationList=structtypenonrect=AccountModification.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AccountModification.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:AccountModification.of_xml)letof_jsonj=list_of_json~kind:"AccountModificationList"~of_json:AccountModification.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleIncompatibleApplicationsException=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified application is not compatible with the resource."]moduleWorkSpaceApplicationDeployment=structtypenonrect={associations:WorkspaceResourceAssociationList.toption[@ocaml.doc"The associations between the applications and the associated resources."]}letmake?associations=fun()->{associations}letto_valuex=structure_to_value[("Associations",(Option.mapx.associations~f:WorkspaceResourceAssociationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassociations=(Option.map~f:WorkspaceResourceAssociationList.of_xml)(Xml.childxml_arg0"Associations")inmake?associations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassociations=field_mapjson__"Associations"WorkspaceResourceAssociationList.of_jsoninmake?associations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the WorkSpace application deployment."]moduleTagKeyList=structtypenonrect=NonEmptyString.tlistletmakei=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:"TagKeyList"~of_json:NonEmptyString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleClientDeviceTypeList=structtypenonrect=ClientDeviceType.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:6)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ClientDeviceType.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:ClientDeviceType.of_xml)letof_jsonj=list_of_json~kind:"ClientDeviceTypeList"~of_json:ClientDeviceType.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFailedCreateWorkspaceRequests=structtypenonrect=FailedCreateWorkspaceRequest.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FailedCreateWorkspaceRequest.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:FailedCreateWorkspaceRequest.of_xml)letof_jsonj=list_of_json~kind:"FailedCreateWorkspaceRequests"~of_json:FailedCreateWorkspaceRequest.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWorkspaceRequestList=structtypenonrect=WorkspaceRequest.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WorkspaceRequest.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:WorkspaceRequest.of_xml)letof_jsonj=list_of_json~kind:"WorkspaceRequestList"~of_json:WorkspaceRequest.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWorkspaceBundleDescription=structtypenonrect=stringletcontext_="WorkspaceBundleDescription"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(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:"WorkspaceBundleDescription"jletto_json=simple_to_jsonto_valueendmoduleWorkspaceBundleName=structtypenonrect=stringletcontext_="WorkspaceBundleName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(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:"WorkspaceBundleName"jletto_json=simple_to_jsonto_valueendmoduleFailedCreateStandbyWorkspacesRequestList=structtypenonrect=FailedCreateStandbyWorkspacesRequest.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FailedCreateStandbyWorkspacesRequest.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:FailedCreateStandbyWorkspacesRequest.of_xml)letof_jsonj=list_of_json~kind:"FailedCreateStandbyWorkspacesRequestList"~of_json:FailedCreateStandbyWorkspacesRequest.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePendingCreateStandbyWorkspacesRequestList=structtypenonrect=PendingCreateStandbyWorkspacesRequest.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PendingCreateStandbyWorkspacesRequest.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:PendingCreateStandbyWorkspacesRequest.of_xml)letof_jsonj=list_of_json~kind:"PendingCreateStandbyWorkspacesRequestList"~of_json:PendingCreateStandbyWorkspacesRequest.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleStandbyWorkspacesList=structtypenonrect=StandbyWorkspace.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StandbyWorkspace.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:StandbyWorkspace.of_xml)letof_jsonj=list_of_json~kind:"StandbyWorkspacesList"~of_json:StandbyWorkspace.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResourceCreationFailedException=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The resource could not be created."]moduleApplicationNotSupportedException=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified application is not supported."]moduleComputeNotCompatibleException=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The compute type of the WorkSpace is not compatible with the application."]moduleOperatingSystemNotCompatibleException=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The operating system of the WorkSpace is not compatible with the application."]moduleUpdateWorkspacesPoolResult=structtypenonrect={workspacesPool:WorkspacesPool.toption[@ocaml.doc"Describes the specified pool."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`OperationInProgressExceptionofOperationInProgressException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?workspacesPool=fun()->{workspacesPool}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"OperationInProgressException"->`OperationInProgressException(OperationInProgressException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"OperationInProgressException"->`OperationInProgressException(OperationInProgressException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`OperationInProgressExceptione->`Assoc[("error",(`String"OperationInProgressException"));("details",(OperationInProgressException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("WorkspacesPool",(Option.mapx.workspacesPool~f:WorkspacesPool.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkspacesPool=(Option.map~f:WorkspacesPool.of_xml)(Xml.childxml_arg0"WorkspacesPool")inmake?workspacesPool()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkspacesPool=field_mapjson__"WorkspacesPool"WorkspacesPool.of_jsoninmake?workspacesPool()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the specified pool."]moduleUpdateWorkspacesPoolRequest=structtypenonrect={poolId:WorkspacesPoolId.t[@ocaml.doc"The identifier of the specified pool to update."];description:UpdateDescription.toption[@ocaml.doc"Describes the specified pool to update."];bundleId:BundleId.toption[@ocaml.doc"The identifier of the bundle."];directoryId:DirectoryId.toption[@ocaml.doc"The identifier of the directory."];capacity:Capacity.toption[@ocaml.doc"The desired capacity for the pool."];applicationSettings:ApplicationSettingsRequest.toption[@ocaml.doc"The persistent application settings for users in the pool."];timeoutSettings:TimeoutSettings.toption[@ocaml.doc"Indicates the timeout settings of the specified pool."];runningMode:PoolsRunningMode.toption[@ocaml.doc"The desired running mode for the pool. The running mode can only be updated when the pool is in a stopped state."]}letcontext_="UpdateWorkspacesPoolRequest"letmake?description=fun?bundleId->fun?directoryId->fun?capacity->fun?applicationSettings->fun?timeoutSettings->fun?runningMode->fun~poolId->fun()->{description;bundleId;directoryId;capacity;applicationSettings;timeoutSettings;runningMode;poolId}letto_valuex=structure_to_value[("PoolId",(Some(WorkspacesPoolId.to_valuex.poolId)));("Description",(Option.mapx.description~f:UpdateDescription.to_value));("BundleId",(Option.mapx.bundleId~f:BundleId.to_value));("DirectoryId",(Option.mapx.directoryId~f:DirectoryId.to_value));("Capacity",(Option.mapx.capacity~f:Capacity.to_value));("ApplicationSettings",(Option.mapx.applicationSettings~f:ApplicationSettingsRequest.to_value));("TimeoutSettings",(Option.mapx.timeoutSettings~f:TimeoutSettings.to_value));("RunningMode",(Option.mapx.runningMode~f:PoolsRunningMode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrunningMode=(Option.map~f:PoolsRunningMode.of_xml)(Xml.childxml_arg0"RunningMode")inlettimeoutSettings=(Option.map~f:TimeoutSettings.of_xml)(Xml.childxml_arg0"TimeoutSettings")inletapplicationSettings=(Option.map~f:ApplicationSettingsRequest.of_xml)(Xml.childxml_arg0"ApplicationSettings")inletcapacity=(Option.map~f:Capacity.of_xml)(Xml.childxml_arg0"Capacity")inletdirectoryId=(Option.map~f:DirectoryId.of_xml)(Xml.childxml_arg0"DirectoryId")inletbundleId=(Option.map~f:BundleId.of_xml)(Xml.childxml_arg0"BundleId")inletdescription=(Option.map~f:UpdateDescription.of_xml)(Xml.childxml_arg0"Description")inletpoolId=WorkspacesPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"PoolId")inmake?runningMode?timeoutSettings?applicationSettings?capacity?directoryId?bundleId?description~poolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrunningMode=field_mapjson__"RunningMode"PoolsRunningMode.of_jsoninlettimeoutSettings=field_mapjson__"TimeoutSettings"TimeoutSettings.of_jsoninletapplicationSettings=field_mapjson__"ApplicationSettings"ApplicationSettingsRequest.of_jsoninletcapacity=field_mapjson__"Capacity"Capacity.of_jsoninletdirectoryId=field_mapjson__"DirectoryId"DirectoryId.of_jsoninletbundleId=field_mapjson__"BundleId"BundleId.of_jsoninletdescription=field_mapjson__"Description"UpdateDescription.of_jsoninletpoolId=field_map_exnjson__"PoolId"WorkspacesPoolId.of_jsoninmake?runningMode?timeoutSettings?applicationSettings?capacity?directoryId?bundleId?description~poolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the specified pool."]moduleUpdateWorkspaceImagePermissionResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ResourceUnavailableExceptionofResourceUnavailableException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ResourceUnavailableException"->`ResourceUnavailableException(ResourceUnavailableException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ResourceUnavailableException"->`ResourceUnavailableException(ResourceUnavailableException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ResourceUnavailableExceptione->`Assoc[("error",(`String"ResourceUnavailableException"));("details",(ResourceUnavailableException.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"Shares or unshares an image with one account in the same Amazon Web Services Region by specifying whether that account has permission to copy the image. If the copy image permission is granted, the image is shared with that account. If the copy image permission is revoked, the image is unshared with the account. After an image has been shared, the recipient account can copy the image to other Regions as needed. In the China (Ningxia) Region, you can copy images only within the same Region. In Amazon Web Services GovCloud (US), to copy images to and from other Regions, contact Amazon Web Services Support. For more information about sharing images, see Share or Unshare a Custom WorkSpaces Image. To delete an image that has been shared, you must unshare the image before you delete it. Sharing Bring Your Own License (BYOL) images across Amazon Web Services accounts isn't supported at this time in Amazon Web Services GovCloud (US). To share BYOL images across accounts in Amazon Web Services GovCloud (US), contact Amazon Web Services Support."]moduleUpdateWorkspaceImagePermissionRequest=structtypenonrect={imageId:WorkspaceImageId.t[@ocaml.doc"The identifier of the image."];allowCopyImage:BooleanObject.t[@ocaml.doc"The permission to copy the image. This permission can be revoked only after an image has been shared."];sharedAccountId:AwsAccount.t[@ocaml.doc"The identifier of the Amazon Web Services account to share or unshare the image with. Before sharing the image, confirm that you are sharing to the correct Amazon Web Services account ID."]}letcontext_="UpdateWorkspaceImagePermissionRequest"letmake~imageId=fun~allowCopyImage->fun~sharedAccountId->fun()->{imageId;allowCopyImage;sharedAccountId}letto_valuex=structure_to_value[("ImageId",(Some(WorkspaceImageId.to_valuex.imageId)));("AllowCopyImage",(Some(BooleanObject.to_valuex.allowCopyImage)));("SharedAccountId",(Some(AwsAccount.to_valuex.sharedAccountId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsharedAccountId=AwsAccount.of_xml(Xml.child_exn~context:context_xml_arg0"SharedAccountId")inletallowCopyImage=BooleanObject.of_xml(Xml.child_exn~context:context_xml_arg0"AllowCopyImage")inletimageId=WorkspaceImageId.of_xml(Xml.child_exn~context:context_xml_arg0"ImageId")inmake~sharedAccountId~allowCopyImage~imageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsharedAccountId=field_map_exnjson__"SharedAccountId"AwsAccount.of_jsoninletallowCopyImage=field_map_exnjson__"AllowCopyImage"BooleanObject.of_jsoninletimageId=field_map_exnjson__"ImageId"WorkspaceImageId.of_jsoninmake~sharedAccountId~allowCopyImage~imageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Shares or unshares an image with one account in the same Amazon Web Services Region by specifying whether that account has permission to copy the image. If the copy image permission is granted, the image is shared with that account. If the copy image permission is revoked, the image is unshared with the account. After an image has been shared, the recipient account can copy the image to other Regions as needed. In the China (Ningxia) Region, you can copy images only within the same Region. In Amazon Web Services GovCloud (US), to copy images to and from other Regions, contact Amazon Web Services Support. For more information about sharing images, see Share or Unshare a Custom WorkSpaces Image. To delete an image that has been shared, you must unshare the image before you delete it. Sharing Bring Your Own License (BYOL) images across Amazon Web Services accounts isn't supported at this time in Amazon Web Services GovCloud (US). To share BYOL images across accounts in Amazon Web Services GovCloud (US), contact Amazon Web Services Support."]moduleUpdateWorkspaceBundleResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ResourceUnavailableExceptionofResourceUnavailableException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ResourceUnavailableException"->`ResourceUnavailableException(ResourceUnavailableException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ResourceUnavailableException"->`ResourceUnavailableException(ResourceUnavailableException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ResourceUnavailableExceptione->`Assoc[("error",(`String"ResourceUnavailableException"));("details",(ResourceUnavailableException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a WorkSpace bundle with a new image. For more information about updating WorkSpace bundles, see Update a Custom WorkSpaces Bundle. Existing WorkSpaces aren't automatically updated when you update the bundle that they're based on. To update existing WorkSpaces that are based on a bundle that you've updated, you must either rebuild the WorkSpaces or delete and recreate them."]moduleUpdateWorkspaceBundleRequest=structtypenonrect={bundleId:BundleId.toption[@ocaml.doc"The identifier of the bundle."];imageId:WorkspaceImageId.toption[@ocaml.doc"The identifier of the image."]}letmake?bundleId=fun?imageId->fun()->{bundleId;imageId}letto_valuex=structure_to_value[("BundleId",(Option.mapx.bundleId~f:BundleId.to_value));("ImageId",(Option.mapx.imageId~f:WorkspaceImageId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letimageId=(Option.map~f:WorkspaceImageId.of_xml)(Xml.childxml_arg0"ImageId")inletbundleId=(Option.map~f:BundleId.of_xml)(Xml.childxml_arg0"BundleId")inmake?imageId?bundleId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letimageId=field_mapjson__"ImageId"WorkspaceImageId.of_jsoninletbundleId=field_mapjson__"BundleId"BundleId.of_jsoninmake?imageId?bundleId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a WorkSpace bundle with a new image. For more information about updating WorkSpace bundles, see Update a Custom WorkSpaces Bundle. Existing WorkSpaces aren't automatically updated when you update the bundle that they're based on. To update existing WorkSpaces that are based on a bundle that you've updated, you must either rebuild the WorkSpaces or delete and recreate them."]moduleUpdateRulesOfIpGroupResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Replaces the current rules of the specified IP access control group with the specified rules."]moduleUpdateRulesOfIpGroupRequest=structtypenonrect={groupId:IpGroupId.t[@ocaml.doc"The identifier of the group."];userRules:IpRuleList.t[@ocaml.doc"One or more rules."]}letcontext_="UpdateRulesOfIpGroupRequest"letmake~groupId=fun~userRules->fun()->{groupId;userRules}letto_valuex=structure_to_value[("GroupId",(Some(IpGroupId.to_valuex.groupId)));("UserRules",(Some(IpRuleList.to_valuex.userRules)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserRules=IpRuleList.of_xml(Xml.child_exn~context:context_xml_arg0"UserRules")inletgroupId=IpGroupId.of_xml(Xml.child_exn~context:context_xml_arg0"GroupId")inmake~userRules~groupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserRules=field_map_exnjson__"UserRules"IpRuleList.of_jsoninletgroupId=field_map_exnjson__"GroupId"IpGroupId.of_jsoninmake~userRules~groupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Replaces the current rules of the specified IP access control group with the specified rules."]moduleUpdateConnectionAliasPermissionResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceAssociatedExceptionofResourceAssociatedException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceAssociatedException"->`ResourceAssociatedException(ResourceAssociatedException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceAssociatedException"->`ResourceAssociatedException(ResourceAssociatedException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceAssociatedExceptione->`Assoc[("error",(`String"ResourceAssociatedException"));("details",(ResourceAssociatedException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Shares or unshares a connection alias with one account by specifying whether that account has permission to associate the connection alias with a directory. If the association permission is granted, the connection alias is shared with that account. If the association permission is revoked, the connection alias is unshared with the account. For more information, see Cross-Region Redirection for Amazon WorkSpaces. Before performing this operation, call DescribeConnectionAliases to make sure that the current state of the connection alias is CREATED. To delete a connection alias that has been shared, the shared account must first disassociate the connection alias from any directories it has been associated with. Then you must unshare the connection alias from the account it has been shared with. You can delete a connection alias only after it is no longer shared with any accounts or associated with any directories."]moduleUpdateConnectionAliasPermissionRequest=structtypenonrect={aliasId:ConnectionAliasId.t[@ocaml.doc"The identifier of the connection alias that you want to update permissions for."];connectionAliasPermission:ConnectionAliasPermission.t[@ocaml.doc"Indicates whether to share or unshare the connection alias with the specified Amazon Web Services account."]}letcontext_="UpdateConnectionAliasPermissionRequest"letmake~aliasId=fun~connectionAliasPermission->fun()->{aliasId;connectionAliasPermission}letto_valuex=structure_to_value[("AliasId",(Some(ConnectionAliasId.to_valuex.aliasId)));("ConnectionAliasPermission",(Some(ConnectionAliasPermission.to_valuex.connectionAliasPermission)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnectionAliasPermission=ConnectionAliasPermission.of_xml(Xml.child_exn~context:context_xml_arg0"ConnectionAliasPermission")inletaliasId=ConnectionAliasId.of_xml(Xml.child_exn~context:context_xml_arg0"AliasId")inmake~connectionAliasPermission~aliasId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnectionAliasPermission=field_map_exnjson__"ConnectionAliasPermission"ConnectionAliasPermission.of_jsoninletaliasId=field_map_exnjson__"AliasId"ConnectionAliasId.of_jsoninmake~connectionAliasPermission~aliasId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Shares or unshares a connection alias with one account by specifying whether that account has permission to associate the connection alias with a directory. If the association permission is granted, the connection alias is shared with that account. If the association permission is revoked, the connection alias is unshared with the account. For more information, see Cross-Region Redirection for Amazon WorkSpaces. Before performing this operation, call DescribeConnectionAliases to make sure that the current state of the connection alias is CREATED. To delete a connection alias that has been shared, the shared account must first disassociate the connection alias from any directories it has been associated with. Then you must unshare the connection alias from the account it has been shared with. You can delete a connection alias only after it is no longer shared with any accounts or associated with any directories."]moduleUpdateConnectClientAddInResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a Amazon Connect client add-in. Use this action to update the name and endpoint URL of a Amazon Connect client add-in."]moduleUpdateConnectClientAddInRequest=structtypenonrect={addInId:AmazonUuid.t[@ocaml.doc"The identifier of the client add-in to update."];resourceId:DirectoryId.t[@ocaml.doc"The directory identifier for which the client add-in is configured."];name:AddInName.toption[@ocaml.doc"The name of the client add-in."];uRL:AddInUrl.toption[@ocaml.doc"The endpoint URL of the Amazon Connect client add-in."]}letcontext_="UpdateConnectClientAddInRequest"letmake?name=fun?uRL->fun~addInId->fun~resourceId->fun()->{name;uRL;addInId;resourceId}letto_valuex=structure_to_value[("AddInId",(Some(AmazonUuid.to_valuex.addInId)));("ResourceId",(Some(DirectoryId.to_valuex.resourceId)));("Name",(Option.mapx.name~f:AddInName.to_value));("URL",(Option.mapx.uRL~f:AddInUrl.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuRL=(Option.map~f:AddInUrl.of_xml)(Xml.childxml_arg0"URL")inletname=(Option.map~f:AddInName.of_xml)(Xml.childxml_arg0"Name")inletresourceId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceId")inletaddInId=AmazonUuid.of_xml(Xml.child_exn~context:context_xml_arg0"AddInId")inmake?uRL?name~resourceId~addInId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuRL=field_mapjson__"URL"AddInUrl.of_jsoninletname=field_mapjson__"Name"AddInName.of_jsoninletresourceId=field_map_exnjson__"ResourceId"DirectoryId.of_jsoninletaddInId=field_map_exnjson__"AddInId"AmazonUuid.of_jsoninmake?uRL?name~resourceId~addInId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a Amazon Connect client add-in. Use this action to update the name and endpoint URL of a Amazon Connect client add-in."]moduleTerminateWorkspacesResult=structtypenonrect={failedRequests:FailedTerminateWorkspaceRequests.toption[@ocaml.doc"Information about the WorkSpaces that could not be terminated."]}typenonrecerror=[`Unknown_operation_errorof(string*stringoption)]letmake?failedRequests=fun()->{failedRequests}leterror_of_jsonnamejson=matchnamewith|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("FailedRequests",(Option.mapx.failedRequests~f:FailedTerminateWorkspaceRequests.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfailedRequests=(Option.map~f:FailedTerminateWorkspaceRequests.of_xml)(Xml.childxml_arg0"FailedRequests")inmake?failedRequests()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfailedRequests=field_mapjson__"FailedRequests"FailedTerminateWorkspaceRequests.of_jsoninmake?failedRequests()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Terminates the specified WorkSpaces. Terminating a WorkSpace is a permanent action and cannot be undone. The user's data is destroyed. If you need to archive any user data, contact Amazon Web Services Support before terminating the WorkSpace. You can terminate a WorkSpace that is in any state except SUSPENDED. This operation is asynchronous and returns before the WorkSpaces have been completely terminated. After a WorkSpace is terminated, the TERMINATED state is returned only briefly before the WorkSpace directory metadata is cleaned up, so this state is rarely returned. To confirm that a WorkSpace is terminated, check for the WorkSpace ID by using DescribeWorkSpaces. If the WorkSpace ID isn't returned, then the WorkSpace has been successfully terminated. Simple AD and AD Connector are made available to you free of charge to use with WorkSpaces. If there are no WorkSpaces being used with your Simple AD or AD Connector directory for 30 consecutive days, this directory will be automatically deregistered for use with Amazon WorkSpaces, and you will be charged for this directory as per the Directory Service pricing terms. To delete empty directories, see Delete the Directory for Your WorkSpaces. If you delete your Simple AD or AD Connector directory, you can always create a new one when you want to start using WorkSpaces again."]moduleTerminateWorkspacesRequest=structtypenonrect={terminateWorkspaceRequests:TerminateWorkspaceRequests.t[@ocaml.doc"The WorkSpaces to terminate. You can specify up to 25 WorkSpaces."]}letcontext_="TerminateWorkspacesRequest"letmake~terminateWorkspaceRequests=fun()->{terminateWorkspaceRequests}letto_valuex=structure_to_value[("TerminateWorkspaceRequests",(Some(TerminateWorkspaceRequests.to_valuex.terminateWorkspaceRequests)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letterminateWorkspaceRequests=TerminateWorkspaceRequests.of_xml(Xml.child_exn~context:context_xml_arg0"TerminateWorkspaceRequests")inmake~terminateWorkspaceRequests()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letterminateWorkspaceRequests=field_map_exnjson__"TerminateWorkspaceRequests"TerminateWorkspaceRequests.of_jsoninmake~terminateWorkspaceRequests()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Terminates the specified WorkSpaces. Terminating a WorkSpace is a permanent action and cannot be undone. The user's data is destroyed. If you need to archive any user data, contact Amazon Web Services Support before terminating the WorkSpace. You can terminate a WorkSpace that is in any state except SUSPENDED. This operation is asynchronous and returns before the WorkSpaces have been completely terminated. After a WorkSpace is terminated, the TERMINATED state is returned only briefly before the WorkSpace directory metadata is cleaned up, so this state is rarely returned. To confirm that a WorkSpace is terminated, check for the WorkSpace ID by using DescribeWorkSpaces. If the WorkSpace ID isn't returned, then the WorkSpace has been successfully terminated. Simple AD and AD Connector are made available to you free of charge to use with WorkSpaces. If there are no WorkSpaces being used with your Simple AD or AD Connector directory for 30 consecutive days, this directory will be automatically deregistered for use with Amazon WorkSpaces, and you will be charged for this directory as per the Directory Service pricing terms. To delete empty directories, see Delete the Directory for Your WorkSpaces. If you delete your Simple AD or AD Connector directory, you can always create a new one when you want to start using WorkSpaces again."]moduleTerminateWorkspacesPoolSessionResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationInProgressExceptionofOperationInProgressException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationInProgressException"->`OperationInProgressException(OperationInProgressException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationInProgressException"->`OperationInProgressException(OperationInProgressException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationInProgressExceptione->`Assoc[("error",(`String"OperationInProgressException"));("details",(OperationInProgressException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Terminates the pool session."]moduleTerminateWorkspacesPoolSessionRequest=structtypenonrect={sessionId:AmazonUuid.t[@ocaml.doc"The identifier of the pool session."]}letcontext_="TerminateWorkspacesPoolSessionRequest"letmake~sessionId=fun()->{sessionId}letto_valuex=structure_to_value[("SessionId",(Some(AmazonUuid.to_valuex.sessionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionId=AmazonUuid.of_xml(Xml.child_exn~context:context_xml_arg0"SessionId")inmake~sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionId=field_map_exnjson__"SessionId"AmazonUuid.of_jsoninmake~sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Terminates the pool session."]moduleTerminateWorkspacesPoolResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`OperationInProgressExceptionofOperationInProgressException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"OperationInProgressException"->`OperationInProgressException(OperationInProgressException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"OperationInProgressException"->`OperationInProgressException(OperationInProgressException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`OperationInProgressExceptione->`Assoc[("error",(`String"OperationInProgressException"));("details",(OperationInProgressException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Terminates the specified pool."]moduleTerminateWorkspacesPoolRequest=structtypenonrect={poolId:WorkspacesPoolId.t[@ocaml.doc"The identifier of the pool."]}letcontext_="TerminateWorkspacesPoolRequest"letmake~poolId=fun()->{poolId}letto_valuex=structure_to_value[("PoolId",(Some(WorkspacesPoolId.to_valuex.poolId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpoolId=WorkspacesPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"PoolId")inmake~poolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpoolId=field_map_exnjson__"PoolId"WorkspacesPoolId.of_jsoninmake~poolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Terminates the specified pool."]moduleStopWorkspacesResult=structtypenonrect={failedRequests:FailedStopWorkspaceRequests.toption[@ocaml.doc"Information about the WorkSpaces that could not be stopped."]}typenonrecerror=[`Unknown_operation_errorof(string*stringoption)]letmake?failedRequests=fun()->{failedRequests}leterror_of_jsonnamejson=matchnamewith|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("FailedRequests",(Option.mapx.failedRequests~f:FailedStopWorkspaceRequests.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfailedRequests=(Option.map~f:FailedStopWorkspaceRequests.of_xml)(Xml.childxml_arg0"FailedRequests")inmake?failedRequests()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfailedRequests=field_mapjson__"FailedRequests"FailedStopWorkspaceRequests.of_jsoninmake?failedRequests()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops the specified WorkSpaces. You cannot stop a WorkSpace unless it has a running mode of AutoStop or Manual and a state of AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR."]moduleStopWorkspacesRequest=structtypenonrect={stopWorkspaceRequests:StopWorkspaceRequests.t[@ocaml.doc"The WorkSpaces to stop. You can specify up to 25 WorkSpaces."]}letcontext_="StopWorkspacesRequest"letmake~stopWorkspaceRequests=fun()->{stopWorkspaceRequests}letto_valuex=structure_to_value[("StopWorkspaceRequests",(Some(StopWorkspaceRequests.to_valuex.stopWorkspaceRequests)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstopWorkspaceRequests=StopWorkspaceRequests.of_xml(Xml.child_exn~context:context_xml_arg0"StopWorkspaceRequests")inmake~stopWorkspaceRequests()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstopWorkspaceRequests=field_map_exnjson__"StopWorkspaceRequests"StopWorkspaceRequests.of_jsoninmake~stopWorkspaceRequests()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops the specified WorkSpaces. You cannot stop a WorkSpace unless it has a running mode of AutoStop or Manual and a state of AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR."]moduleStopWorkspacesPoolResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`OperationInProgressExceptionofOperationInProgressException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"OperationInProgressException"->`OperationInProgressException(OperationInProgressException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"OperationInProgressException"->`OperationInProgressException(OperationInProgressException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`OperationInProgressExceptione->`Assoc[("error",(`String"OperationInProgressException"));("details",(OperationInProgressException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Stops the specified pool. You cannot stop a WorkSpace pool unless it has a running mode of AutoStop and a state of AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR."]moduleStopWorkspacesPoolRequest=structtypenonrect={poolId:WorkspacesPoolId.t[@ocaml.doc"The identifier of the pool."]}letcontext_="StopWorkspacesPoolRequest"letmake~poolId=fun()->{poolId}letto_valuex=structure_to_value[("PoolId",(Some(WorkspacesPoolId.to_valuex.poolId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpoolId=WorkspacesPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"PoolId")inmake~poolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpoolId=field_map_exnjson__"PoolId"WorkspacesPoolId.of_jsoninmake~poolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops the specified pool. You cannot stop a WorkSpace pool unless it has a running mode of AutoStop and a state of AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR."]moduleStartWorkspacesResult=structtypenonrect={failedRequests:FailedStartWorkspaceRequests.toption[@ocaml.doc"Information about the WorkSpaces that could not be started."]}typenonrecerror=[`Unknown_operation_errorof(string*stringoption)]letmake?failedRequests=fun()->{failedRequests}leterror_of_jsonnamejson=matchnamewith|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("FailedRequests",(Option.mapx.failedRequests~f:FailedStartWorkspaceRequests.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfailedRequests=(Option.map~f:FailedStartWorkspaceRequests.of_xml)(Xml.childxml_arg0"FailedRequests")inmake?failedRequests()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfailedRequests=field_mapjson__"FailedRequests"FailedStartWorkspaceRequests.of_jsoninmake?failedRequests()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts the specified WorkSpaces. You cannot start a WorkSpace unless it has a running mode of AutoStop or Manual and a state of STOPPED."]moduleStartWorkspacesRequest=structtypenonrect={startWorkspaceRequests:StartWorkspaceRequests.t[@ocaml.doc"The WorkSpaces to start. You can specify up to 25 WorkSpaces."]}letcontext_="StartWorkspacesRequest"letmake~startWorkspaceRequests=fun()->{startWorkspaceRequests}letto_valuex=structure_to_value[("StartWorkspaceRequests",(Some(StartWorkspaceRequests.to_valuex.startWorkspaceRequests)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstartWorkspaceRequests=StartWorkspaceRequests.of_xml(Xml.child_exn~context:context_xml_arg0"StartWorkspaceRequests")inmake~startWorkspaceRequests()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstartWorkspaceRequests=field_map_exnjson__"StartWorkspaceRequests"StartWorkspaceRequests.of_jsoninmake~startWorkspaceRequests()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts the specified WorkSpaces. You cannot start a WorkSpace unless it has a running mode of AutoStop or Manual and a state of STOPPED."]moduleStartWorkspacesPoolResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`OperationInProgressExceptionofOperationInProgressException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"OperationInProgressException"->`OperationInProgressException(OperationInProgressException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"OperationInProgressException"->`OperationInProgressException(OperationInProgressException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`OperationInProgressExceptione->`Assoc[("error",(`String"OperationInProgressException"));("details",(OperationInProgressException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Starts the specified pool. You cannot start a pool unless it has a running mode of AutoStop and a state of STOPPED."]moduleStartWorkspacesPoolRequest=structtypenonrect={poolId:WorkspacesPoolId.t[@ocaml.doc"The identifier of the pool."]}letcontext_="StartWorkspacesPoolRequest"letmake~poolId=fun()->{poolId}letto_valuex=structure_to_value[("PoolId",(Some(WorkspacesPoolId.to_valuex.poolId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpoolId=WorkspacesPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"PoolId")inmake~poolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpoolId=field_map_exnjson__"PoolId"WorkspacesPoolId.of_jsoninmake~poolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts the specified pool. You cannot start a pool unless it has a running mode of AutoStop and a state of STOPPED."]moduleRevokeIpRulesResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes one or more rules from the specified IP access control group."]moduleRevokeIpRulesRequest=structtypenonrect={groupId:IpGroupId.t[@ocaml.doc"The identifier of the group."];userRules:IpRevokedRuleList.t[@ocaml.doc"The rules to remove from the group."]}letcontext_="RevokeIpRulesRequest"letmake~groupId=fun~userRules->fun()->{groupId;userRules}letto_valuex=structure_to_value[("GroupId",(Some(IpGroupId.to_valuex.groupId)));("UserRules",(Some(IpRevokedRuleList.to_valuex.userRules)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserRules=IpRevokedRuleList.of_xml(Xml.child_exn~context:context_xml_arg0"UserRules")inletgroupId=IpGroupId.of_xml(Xml.child_exn~context:context_xml_arg0"GroupId")inmake~userRules~groupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserRules=field_map_exnjson__"UserRules"IpRevokedRuleList.of_jsoninletgroupId=field_map_exnjson__"GroupId"IpGroupId.of_jsoninmake~userRules~groupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes one or more rules from the specified IP access control group."]moduleRestoreWorkspaceResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Restores the specified WorkSpace to its last known healthy state. You cannot restore a WorkSpace unless its state is AVAILABLE, ERROR, UNHEALTHY, or STOPPED. Restoring a WorkSpace is a potentially destructive action that can result in the loss of data. For more information, see Restore a WorkSpace. This operation is asynchronous and returns before the WorkSpace is completely restored."]moduleRestoreWorkspaceRequest=structtypenonrect={workspaceId:WorkspaceId.t[@ocaml.doc"The identifier of the WorkSpace."]}letcontext_="RestoreWorkspaceRequest"letmake~workspaceId=fun()->{workspaceId}letto_valuex=structure_to_value[("WorkspaceId",(Some(WorkspaceId.to_valuex.workspaceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkspaceId=WorkspaceId.of_xml(Xml.child_exn~context:context_xml_arg0"WorkspaceId")inmake~workspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkspaceId=field_map_exnjson__"WorkspaceId"WorkspaceId.of_jsoninmake~workspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Restores the specified WorkSpace to its last known healthy state. You cannot restore a WorkSpace unless its state is AVAILABLE, ERROR, UNHEALTHY, or STOPPED. Restoring a WorkSpace is a potentially destructive action that can result in the loss of data. For more information, see Restore a WorkSpace. This operation is asynchronous and returns before the WorkSpace is completely restored."]moduleRejectAccountLinkInvitationResult=structtypenonrect={accountLink:AccountLink.toption[@ocaml.doc"Information about the account link."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accountLink=fun()->{accountLink}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AccountLink",(Option.mapx.accountLink~f:AccountLink.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountLink=(Option.map~f:AccountLink.of_xml)(Xml.childxml_arg0"AccountLink")inmake?accountLink()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountLink=field_mapjson__"AccountLink"AccountLink.of_jsoninmake?accountLink()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Rejects the account link invitation."]moduleRejectAccountLinkInvitationRequest=structtypenonrect={linkId:LinkId.t[@ocaml.doc"The identifier of the account link"];clientToken:ClientToken.toption[@ocaml.doc"The client token of the account link invitation to reject."]}letcontext_="RejectAccountLinkInvitationRequest"letmake?clientToken=fun~linkId->fun()->{clientToken;linkId}letto_valuex=structure_to_value[("LinkId",(Some(LinkId.to_valuex.linkId)));("ClientToken",(Option.mapx.clientToken~f:ClientToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"ClientToken")inletlinkId=LinkId.of_xml(Xml.child_exn~context:context_xml_arg0"LinkId")inmake?clientToken~linkId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"ClientToken"ClientToken.of_jsoninletlinkId=field_map_exnjson__"LinkId"LinkId.of_jsoninmake?clientToken~linkId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Rejects the account link invitation."]moduleRegisterWorkspaceDirectoryResult=structtypenonrect={directoryId:DirectoryId.toption[@ocaml.doc"The identifier of the directory."];state:WorkspaceDirectoryState.toption[@ocaml.doc"The registration status of the WorkSpace directory."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceAlreadyExistsExceptionofResourceAlreadyExistsException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`UnsupportedNetworkConfigurationExceptionofUnsupportedNetworkConfigurationException.t|`WorkspacesDefaultRoleNotFoundExceptionofWorkspacesDefaultRoleNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?directoryId=fun?state->fun()->{directoryId;state}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"UnsupportedNetworkConfigurationException"->`UnsupportedNetworkConfigurationException(UnsupportedNetworkConfigurationException.of_jsonjson)|"WorkspacesDefaultRoleNotFoundException"->`WorkspacesDefaultRoleNotFoundException(WorkspacesDefaultRoleNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"UnsupportedNetworkConfigurationException"->`UnsupportedNetworkConfigurationException(UnsupportedNetworkConfigurationException.of_xmlxml)|"WorkspacesDefaultRoleNotFoundException"->`WorkspacesDefaultRoleNotFoundException(WorkspacesDefaultRoleNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceAlreadyExistsExceptione->`Assoc[("error",(`String"ResourceAlreadyExistsException"));("details",(ResourceAlreadyExistsException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`UnsupportedNetworkConfigurationExceptione->`Assoc[("error",(`String"UnsupportedNetworkConfigurationException"));("details",(UnsupportedNetworkConfigurationException.to_jsone))]|`WorkspacesDefaultRoleNotFoundExceptione->`Assoc[("error",(`String"WorkspacesDefaultRoleNotFoundException"));("details",(WorkspacesDefaultRoleNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("DirectoryId",(Option.mapx.directoryId~f:DirectoryId.to_value));("State",(Option.mapx.state~f:WorkspaceDirectoryState.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstate=(Option.map~f:WorkspaceDirectoryState.of_xml)(Xml.childxml_arg0"State")inletdirectoryId=(Option.map~f:DirectoryId.of_xml)(Xml.childxml_arg0"DirectoryId")inmake?state?directoryId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstate=field_mapjson__"State"WorkspaceDirectoryState.of_jsoninletdirectoryId=field_mapjson__"DirectoryId"DirectoryId.of_jsoninmake?state?directoryId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Registers the specified directory. This operation is asynchronous and returns before the WorkSpace directory is registered. If this is the first time you are registering a directory, you will need to create the workspaces_DefaultRole role before you can register a directory. For more information, see Creating the workspaces_DefaultRole Role."]moduleRegisterWorkspaceDirectoryRequest=structtypenonrect={directoryId:DirectoryId.toption[@ocaml.doc"The identifier of the directory. You cannot register a directory if it does not have a status of Active. If the directory does not have a status of Active, you will receive an InvalidResourceStateException error. If you have already registered the maximum number of directories that you can register with Amazon WorkSpaces, you will receive a ResourceLimitExceededException error. Deregister directories that you are not using for WorkSpaces, and try again."];subnetIds:SubnetIds.toption[@ocaml.doc"The identifiers of the subnets for your virtual private cloud (VPC). Make sure that the subnets are in supported Availability Zones. The subnets must also be in separate Availability Zones. If these conditions are not met, you will receive an OperationNotSupportedException error."];enableSelfService:BooleanObject.toption[@ocaml.doc"Indicates whether self-service capabilities are enabled or disabled."];tenancy:Tenancy.toption[@ocaml.doc"Indicates whether your WorkSpace directory is dedicated or shared. To use Bring Your Own License (BYOL) images, this value must be set to DEDICATED and your Amazon Web Services account must be enabled for BYOL. If your account has not been enabled for BYOL, you will receive an InvalidParameterValuesException error. For more information about BYOL images, see Bring Your Own Windows Desktop Images."];tags:TagList.toption[@ocaml.doc"The tags associated with the directory."];workspaceDirectoryName:WorkspaceDirectoryName.toption[@ocaml.doc"The name of the directory to register."];workspaceDirectoryDescription:WorkspaceDirectoryDescription.toption[@ocaml.doc"Description of the directory to register."];userIdentityType:UserIdentityType.toption[@ocaml.doc"The type of identity management the user is using."];idcInstanceArn:ARN.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the identity center instance."];microsoftEntraConfig:MicrosoftEntraConfig.toption[@ocaml.doc"The details about Microsoft Entra config."];workspaceType:WorkspaceType.toption[@ocaml.doc"Indicates whether the directory's WorkSpace type is personal or pools."];activeDirectoryConfig:ActiveDirectoryConfig.toption[@ocaml.doc"The active directory config of the directory."]}letmake?directoryId=fun?subnetIds->fun?enableSelfService->fun?tenancy->fun?tags->fun?workspaceDirectoryName->fun?workspaceDirectoryDescription->fun?userIdentityType->fun?idcInstanceArn->fun?microsoftEntraConfig->fun?workspaceType->fun?activeDirectoryConfig->fun()->{directoryId;subnetIds;enableSelfService;tenancy;tags;workspaceDirectoryName;workspaceDirectoryDescription;userIdentityType;idcInstanceArn;microsoftEntraConfig;workspaceType;activeDirectoryConfig}letto_valuex=structure_to_value[("DirectoryId",(Option.mapx.directoryId~f:DirectoryId.to_value));("SubnetIds",(Option.mapx.subnetIds~f:SubnetIds.to_value));("EnableSelfService",(Option.mapx.enableSelfService~f:BooleanObject.to_value));("Tenancy",(Option.mapx.tenancy~f:Tenancy.to_value));("Tags",(Option.mapx.tags~f:TagList.to_value));("WorkspaceDirectoryName",(Option.mapx.workspaceDirectoryName~f:WorkspaceDirectoryName.to_value));("WorkspaceDirectoryDescription",(Option.mapx.workspaceDirectoryDescription~f:WorkspaceDirectoryDescription.to_value));("UserIdentityType",(Option.mapx.userIdentityType~f:UserIdentityType.to_value));("IdcInstanceArn",(Option.mapx.idcInstanceArn~f:ARN.to_value));("MicrosoftEntraConfig",(Option.mapx.microsoftEntraConfig~f:MicrosoftEntraConfig.to_value));("WorkspaceType",(Option.mapx.workspaceType~f:WorkspaceType.to_value));("ActiveDirectoryConfig",(Option.mapx.activeDirectoryConfig~f:ActiveDirectoryConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letactiveDirectoryConfig=(Option.map~f:ActiveDirectoryConfig.of_xml)(Xml.childxml_arg0"ActiveDirectoryConfig")inletworkspaceType=(Option.map~f:WorkspaceType.of_xml)(Xml.childxml_arg0"WorkspaceType")inletmicrosoftEntraConfig=(Option.map~f:MicrosoftEntraConfig.of_xml)(Xml.childxml_arg0"MicrosoftEntraConfig")inletidcInstanceArn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"IdcInstanceArn")inletuserIdentityType=(Option.map~f:UserIdentityType.of_xml)(Xml.childxml_arg0"UserIdentityType")inletworkspaceDirectoryDescription=(Option.map~f:WorkspaceDirectoryDescription.of_xml)(Xml.childxml_arg0"WorkspaceDirectoryDescription")inletworkspaceDirectoryName=(Option.map~f:WorkspaceDirectoryName.of_xml)(Xml.childxml_arg0"WorkspaceDirectoryName")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inlettenancy=(Option.map~f:Tenancy.of_xml)(Xml.childxml_arg0"Tenancy")inletenableSelfService=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"EnableSelfService")inletsubnetIds=(Option.map~f:SubnetIds.of_xml)(Xml.childxml_arg0"SubnetIds")inletdirectoryId=(Option.map~f:DirectoryId.of_xml)(Xml.childxml_arg0"DirectoryId")inmake?activeDirectoryConfig?workspaceType?microsoftEntraConfig?idcInstanceArn?userIdentityType?workspaceDirectoryDescription?workspaceDirectoryName?tags?tenancy?enableSelfService?subnetIds?directoryId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letactiveDirectoryConfig=field_mapjson__"ActiveDirectoryConfig"ActiveDirectoryConfig.of_jsoninletworkspaceType=field_mapjson__"WorkspaceType"WorkspaceType.of_jsoninletmicrosoftEntraConfig=field_mapjson__"MicrosoftEntraConfig"MicrosoftEntraConfig.of_jsoninletidcInstanceArn=field_mapjson__"IdcInstanceArn"ARN.of_jsoninletuserIdentityType=field_mapjson__"UserIdentityType"UserIdentityType.of_jsoninletworkspaceDirectoryDescription=field_mapjson__"WorkspaceDirectoryDescription"WorkspaceDirectoryDescription.of_jsoninletworkspaceDirectoryName=field_mapjson__"WorkspaceDirectoryName"WorkspaceDirectoryName.of_jsoninlettags=field_mapjson__"Tags"TagList.of_jsoninlettenancy=field_mapjson__"Tenancy"Tenancy.of_jsoninletenableSelfService=field_mapjson__"EnableSelfService"BooleanObject.of_jsoninletsubnetIds=field_mapjson__"SubnetIds"SubnetIds.of_jsoninletdirectoryId=field_mapjson__"DirectoryId"DirectoryId.of_jsoninmake?activeDirectoryConfig?workspaceType?microsoftEntraConfig?idcInstanceArn?userIdentityType?workspaceDirectoryDescription?workspaceDirectoryName?tags?tenancy?enableSelfService?subnetIds?directoryId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Registers the specified directory. This operation is asynchronous and returns before the WorkSpace directory is registered. If this is the first time you are registering a directory, you will need to create the workspaces_DefaultRole role before you can register a directory. For more information, see Creating the workspaces_DefaultRole Role."]moduleRebuildWorkspacesResult=structtypenonrect={failedRequests:FailedRebuildWorkspaceRequests.toption[@ocaml.doc"Information about the WorkSpace that could not be rebuilt."]}typenonrecerror=[`OperationNotSupportedExceptionofOperationNotSupportedException.t|`Unknown_operation_errorof(string*stringoption)]letmake?failedRequests=fun()->{failedRequests}leterror_of_jsonnamejson=matchnamewith|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("FailedRequests",(Option.mapx.failedRequests~f:FailedRebuildWorkspaceRequests.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfailedRequests=(Option.map~f:FailedRebuildWorkspaceRequests.of_xml)(Xml.childxml_arg0"FailedRequests")inmake?failedRequests()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfailedRequests=field_mapjson__"FailedRequests"FailedRebuildWorkspaceRequests.of_jsoninmake?failedRequests()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Rebuilds the specified WorkSpace. You cannot rebuild a WorkSpace unless its state is AVAILABLE, ERROR, UNHEALTHY, STOPPED, or REBOOTING. Rebuilding a WorkSpace is a potentially destructive action that can result in the loss of data. For more information, see Rebuild a WorkSpace. This operation is asynchronous and returns before the WorkSpaces have been completely rebuilt."]moduleRebuildWorkspacesRequest=structtypenonrect={rebuildWorkspaceRequests:RebuildWorkspaceRequests.t[@ocaml.doc"The WorkSpace to rebuild. You can specify a single WorkSpace."]}letcontext_="RebuildWorkspacesRequest"letmake~rebuildWorkspaceRequests=fun()->{rebuildWorkspaceRequests}letto_valuex=structure_to_value[("RebuildWorkspaceRequests",(Some(RebuildWorkspaceRequests.to_valuex.rebuildWorkspaceRequests)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrebuildWorkspaceRequests=RebuildWorkspaceRequests.of_xml(Xml.child_exn~context:context_xml_arg0"RebuildWorkspaceRequests")inmake~rebuildWorkspaceRequests()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrebuildWorkspaceRequests=field_map_exnjson__"RebuildWorkspaceRequests"RebuildWorkspaceRequests.of_jsoninmake~rebuildWorkspaceRequests()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Rebuilds the specified WorkSpace. You cannot rebuild a WorkSpace unless its state is AVAILABLE, ERROR, UNHEALTHY, STOPPED, or REBOOTING. Rebuilding a WorkSpace is a potentially destructive action that can result in the loss of data. For more information, see Rebuild a WorkSpace. This operation is asynchronous and returns before the WorkSpaces have been completely rebuilt."]moduleRebootWorkspacesResult=structtypenonrect={failedRequests:FailedRebootWorkspaceRequests.toption[@ocaml.doc"Information about the WorkSpaces that could not be rebooted."]}typenonrecerror=[`OperationNotSupportedExceptionofOperationNotSupportedException.t|`Unknown_operation_errorof(string*stringoption)]letmake?failedRequests=fun()->{failedRequests}leterror_of_jsonnamejson=matchnamewith|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("FailedRequests",(Option.mapx.failedRequests~f:FailedRebootWorkspaceRequests.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfailedRequests=(Option.map~f:FailedRebootWorkspaceRequests.of_xml)(Xml.childxml_arg0"FailedRequests")inmake?failedRequests()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfailedRequests=field_mapjson__"FailedRequests"FailedRebootWorkspaceRequests.of_jsoninmake?failedRequests()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Reboots the specified WorkSpaces. You cannot reboot a WorkSpace unless its state is AVAILABLE, UNHEALTHY, or REBOOTING. Reboot a WorkSpace in the REBOOTING state only if your WorkSpace has been stuck in the REBOOTING state for over 20 minutes. This operation is asynchronous and returns before the WorkSpaces have rebooted."]moduleRebootWorkspacesRequest=structtypenonrect={rebootWorkspaceRequests:RebootWorkspaceRequests.t[@ocaml.doc"The WorkSpaces to reboot. You can specify up to 25 WorkSpaces."]}letcontext_="RebootWorkspacesRequest"letmake~rebootWorkspaceRequests=fun()->{rebootWorkspaceRequests}letto_valuex=structure_to_value[("RebootWorkspaceRequests",(Some(RebootWorkspaceRequests.to_valuex.rebootWorkspaceRequests)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrebootWorkspaceRequests=RebootWorkspaceRequests.of_xml(Xml.child_exn~context:context_xml_arg0"RebootWorkspaceRequests")inmake~rebootWorkspaceRequests()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrebootWorkspaceRequests=field_map_exnjson__"RebootWorkspaceRequests"RebootWorkspaceRequests.of_jsoninmake~rebootWorkspaceRequests()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Reboots the specified WorkSpaces. You cannot reboot a WorkSpace unless its state is AVAILABLE, UNHEALTHY, or REBOOTING. Reboot a WorkSpace in the REBOOTING state only if your WorkSpace has been stuck in the REBOOTING state for over 20 minutes. This operation is asynchronous and returns before the WorkSpaces have rebooted."]moduleModifyWorkspaceStateResult=structtypenonrect=unittypenonrecerror=[`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Sets the state of the specified WorkSpace. To maintain a WorkSpace without being interrupted, set the WorkSpace state to ADMIN_MAINTENANCE. WorkSpaces in this state do not respond to requests to reboot, stop, start, rebuild, or restore. An AutoStop WorkSpace in this state is not stopped. Users cannot log into a WorkSpace in the ADMIN_MAINTENANCE state."]moduleModifyWorkspaceStateRequest=structtypenonrect={workspaceId:WorkspaceId.t[@ocaml.doc"The identifier of the WorkSpace."];workspaceState:TargetWorkspaceState.t[@ocaml.doc"The WorkSpace state."]}letcontext_="ModifyWorkspaceStateRequest"letmake~workspaceId=fun~workspaceState->fun()->{workspaceId;workspaceState}letto_valuex=structure_to_value[("WorkspaceId",(Some(WorkspaceId.to_valuex.workspaceId)));("WorkspaceState",(Some(TargetWorkspaceState.to_valuex.workspaceState)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkspaceState=TargetWorkspaceState.of_xml(Xml.child_exn~context:context_xml_arg0"WorkspaceState")inletworkspaceId=WorkspaceId.of_xml(Xml.child_exn~context:context_xml_arg0"WorkspaceId")inmake~workspaceState~workspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkspaceState=field_map_exnjson__"WorkspaceState"TargetWorkspaceState.of_jsoninletworkspaceId=field_map_exnjson__"WorkspaceId"WorkspaceId.of_jsoninmake~workspaceState~workspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Sets the state of the specified WorkSpace. To maintain a WorkSpace without being interrupted, set the WorkSpace state to ADMIN_MAINTENANCE. WorkSpaces in this state do not respond to requests to reboot, stop, start, rebuild, or restore. An AutoStop WorkSpace in this state is not stopped. Users cannot log into a WorkSpace in the ADMIN_MAINTENANCE state."]moduleModifyWorkspacePropertiesResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`OperationInProgressExceptionofOperationInProgressException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ResourceUnavailableExceptionofResourceUnavailableException.t|`UnsupportedWorkspaceConfigurationExceptionofUnsupportedWorkspaceConfigurationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"OperationInProgressException"->`OperationInProgressException(OperationInProgressException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ResourceUnavailableException"->`ResourceUnavailableException(ResourceUnavailableException.of_jsonjson)|"UnsupportedWorkspaceConfigurationException"->`UnsupportedWorkspaceConfigurationException(UnsupportedWorkspaceConfigurationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"OperationInProgressException"->`OperationInProgressException(OperationInProgressException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ResourceUnavailableException"->`ResourceUnavailableException(ResourceUnavailableException.of_xmlxml)|"UnsupportedWorkspaceConfigurationException"->`UnsupportedWorkspaceConfigurationException(UnsupportedWorkspaceConfigurationException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`OperationInProgressExceptione->`Assoc[("error",(`String"OperationInProgressException"));("details",(OperationInProgressException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ResourceUnavailableExceptione->`Assoc[("error",(`String"ResourceUnavailableException"));("details",(ResourceUnavailableException.to_jsone))]|`UnsupportedWorkspaceConfigurationExceptione->`Assoc[("error",(`String"UnsupportedWorkspaceConfigurationException"));("details",(UnsupportedWorkspaceConfigurationException.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"Modifies the specified WorkSpace properties. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace. The MANUAL running mode value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core."]moduleModifyWorkspacePropertiesRequest=structtypenonrect={workspaceId:WorkspaceId.t[@ocaml.doc"The identifier of the WorkSpace."];workspaceProperties:WorkspaceProperties.toption[@ocaml.doc"The properties of the WorkSpace."];dataReplication:DataReplication.toption[@ocaml.doc"Indicates the data replication status."]}letcontext_="ModifyWorkspacePropertiesRequest"letmake?workspaceProperties=fun?dataReplication->fun~workspaceId->fun()->{workspaceProperties;dataReplication;workspaceId}letto_valuex=structure_to_value[("WorkspaceId",(Some(WorkspaceId.to_valuex.workspaceId)));("WorkspaceProperties",(Option.mapx.workspaceProperties~f:WorkspaceProperties.to_value));("DataReplication",(Option.mapx.dataReplication~f:DataReplication.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataReplication=(Option.map~f:DataReplication.of_xml)(Xml.childxml_arg0"DataReplication")inletworkspaceProperties=(Option.map~f:WorkspaceProperties.of_xml)(Xml.childxml_arg0"WorkspaceProperties")inletworkspaceId=WorkspaceId.of_xml(Xml.child_exn~context:context_xml_arg0"WorkspaceId")inmake?dataReplication?workspaceProperties~workspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataReplication=field_mapjson__"DataReplication"DataReplication.of_jsoninletworkspaceProperties=field_mapjson__"WorkspaceProperties"WorkspaceProperties.of_jsoninletworkspaceId=field_map_exnjson__"WorkspaceId"WorkspaceId.of_jsoninmake?dataReplication?workspaceProperties~workspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the specified WorkSpace properties. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace. The MANUAL running mode value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core."]moduleModifyWorkspaceCreationPropertiesResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Modify the default properties used to create WorkSpaces."]moduleModifyWorkspaceCreationPropertiesRequest=structtypenonrect={resourceId:DirectoryId.t[@ocaml.doc"The identifier of the directory."];workspaceCreationProperties:WorkspaceCreationProperties.t[@ocaml.doc"The default properties for creating WorkSpaces."]}letcontext_="ModifyWorkspaceCreationPropertiesRequest"letmake~resourceId=fun~workspaceCreationProperties->fun()->{resourceId;workspaceCreationProperties}letto_valuex=structure_to_value[("ResourceId",(Some(DirectoryId.to_valuex.resourceId)));("WorkspaceCreationProperties",(Some(WorkspaceCreationProperties.to_valuex.workspaceCreationProperties)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkspaceCreationProperties=WorkspaceCreationProperties.of_xml(Xml.child_exn~context:context_xml_arg0"WorkspaceCreationProperties")inletresourceId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceId")inmake~workspaceCreationProperties~resourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkspaceCreationProperties=field_map_exnjson__"WorkspaceCreationProperties"WorkspaceCreationProperties.of_jsoninletresourceId=field_map_exnjson__"ResourceId"DirectoryId.of_jsoninmake~workspaceCreationProperties~resourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modify the default properties used to create WorkSpaces."]moduleModifyWorkspaceAccessPropertiesResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterCombinationExceptionofInvalidParameterCombinationException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterCombinationException"->`InvalidParameterCombinationException(InvalidParameterCombinationException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterCombinationException"->`InvalidParameterCombinationException(InvalidParameterCombinationException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterCombinationExceptione->`Assoc[("error",(`String"InvalidParameterCombinationException"));("details",(InvalidParameterCombinationException.to_jsone))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Specifies which devices and operating systems users can use to access their WorkSpaces. For more information, see Control Device Access."]moduleModifyWorkspaceAccessPropertiesRequest=structtypenonrect={resourceId:DirectoryId.t[@ocaml.doc"The identifier of the directory."];workspaceAccessProperties:WorkspaceAccessProperties.t[@ocaml.doc"The device types and operating systems to enable or disable for access."]}letcontext_="ModifyWorkspaceAccessPropertiesRequest"letmake~resourceId=fun~workspaceAccessProperties->fun()->{resourceId;workspaceAccessProperties}letto_valuex=structure_to_value[("ResourceId",(Some(DirectoryId.to_valuex.resourceId)));("WorkspaceAccessProperties",(Some(WorkspaceAccessProperties.to_valuex.workspaceAccessProperties)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkspaceAccessProperties=WorkspaceAccessProperties.of_xml(Xml.child_exn~context:context_xml_arg0"WorkspaceAccessProperties")inletresourceId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceId")inmake~workspaceAccessProperties~resourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkspaceAccessProperties=field_map_exnjson__"WorkspaceAccessProperties"WorkspaceAccessProperties.of_jsoninletresourceId=field_map_exnjson__"ResourceId"DirectoryId.of_jsoninmake~workspaceAccessProperties~resourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies which devices and operating systems users can use to access their WorkSpaces. For more information, see Control Device Access."]moduleModifyStreamingPropertiesResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Modifies the specified streaming properties."]moduleModifyStreamingPropertiesRequest=structtypenonrect={resourceId:DirectoryId.t[@ocaml.doc"The identifier of the resource."];streamingProperties:StreamingProperties.toption[@ocaml.doc"The streaming properties to configure."]}letcontext_="ModifyStreamingPropertiesRequest"letmake?streamingProperties=fun~resourceId->fun()->{streamingProperties;resourceId}letto_valuex=structure_to_value[("ResourceId",(Some(DirectoryId.to_valuex.resourceId)));("StreamingProperties",(Option.mapx.streamingProperties~f:StreamingProperties.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamingProperties=(Option.map~f:StreamingProperties.of_xml)(Xml.childxml_arg0"StreamingProperties")inletresourceId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceId")inmake?streamingProperties~resourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamingProperties=field_mapjson__"StreamingProperties"StreamingProperties.of_jsoninletresourceId=field_map_exnjson__"ResourceId"DirectoryId.of_jsoninmake?streamingProperties~resourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the specified streaming properties."]moduleModifySelfservicePermissionsResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Modifies the self-service WorkSpace management capabilities for your users. For more information, see Enable Self-Service WorkSpace Management Capabilities for Your Users."]moduleModifySelfservicePermissionsRequest=structtypenonrect={resourceId:DirectoryId.t[@ocaml.doc"The identifier of the directory."];selfservicePermissions:SelfservicePermissions.t[@ocaml.doc"The permissions to enable or disable self-service capabilities."]}letcontext_="ModifySelfservicePermissionsRequest"letmake~resourceId=fun~selfservicePermissions->fun()->{resourceId;selfservicePermissions}letto_valuex=structure_to_value[("ResourceId",(Some(DirectoryId.to_valuex.resourceId)));("SelfservicePermissions",(Some(SelfservicePermissions.to_valuex.selfservicePermissions)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letselfservicePermissions=SelfservicePermissions.of_xml(Xml.child_exn~context:context_xml_arg0"SelfservicePermissions")inletresourceId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceId")inmake~selfservicePermissions~resourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letselfservicePermissions=field_map_exnjson__"SelfservicePermissions"SelfservicePermissions.of_jsoninletresourceId=field_map_exnjson__"ResourceId"DirectoryId.of_jsoninmake~selfservicePermissions~resourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the self-service WorkSpace management capabilities for your users. For more information, see Enable Self-Service WorkSpace Management Capabilities for Your Users."]moduleModifySamlPropertiesResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Modifies multiple properties related to SAML 2.0 authentication, including the enablement status, user access URL, and relay state parameter name that are used for configuring federation with an SAML 2.0 identity provider."]moduleModifySamlPropertiesRequest=structtypenonrect={resourceId:DirectoryId.t[@ocaml.doc"The directory identifier for which you want to configure SAML properties."];samlProperties:SamlProperties.toption[@ocaml.doc"The properties for configuring SAML 2.0 authentication."];propertiesToDelete:DeletableSamlPropertiesList.toption[@ocaml.doc"The SAML properties to delete as part of your request. Specify one of the following options: SAML_PROPERTIES_USER_ACCESS_URL to delete the user access URL. SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME to delete the relay state parameter name."]}letcontext_="ModifySamlPropertiesRequest"letmake?samlProperties=fun?propertiesToDelete->fun~resourceId->fun()->{samlProperties;propertiesToDelete;resourceId}letto_valuex=structure_to_value[("ResourceId",(Some(DirectoryId.to_valuex.resourceId)));("SamlProperties",(Option.mapx.samlProperties~f:SamlProperties.to_value));("PropertiesToDelete",(Option.mapx.propertiesToDelete~f:DeletableSamlPropertiesList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpropertiesToDelete=(Option.map~f:DeletableSamlPropertiesList.of_xml)(Xml.childxml_arg0"PropertiesToDelete")inletsamlProperties=(Option.map~f:SamlProperties.of_xml)(Xml.childxml_arg0"SamlProperties")inletresourceId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceId")inmake?propertiesToDelete?samlProperties~resourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpropertiesToDelete=field_mapjson__"PropertiesToDelete"DeletableSamlPropertiesList.of_jsoninletsamlProperties=field_mapjson__"SamlProperties"SamlProperties.of_jsoninletresourceId=field_map_exnjson__"ResourceId"DirectoryId.of_jsoninmake?propertiesToDelete?samlProperties~resourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies multiple properties related to SAML 2.0 authentication, including the enablement status, user access URL, and relay state parameter name that are used for configuring federation with an SAML 2.0 identity provider."]moduleModifyEndpointEncryptionModeResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Modifies the endpoint encryption mode that allows you to configure the specified directory between Standard TLS and FIPS 140-2 validated mode."]moduleModifyEndpointEncryptionModeRequest=structtypenonrect={directoryId:DirectoryId.t[@ocaml.doc"The identifier of the directory."];endpointEncryptionMode:EndpointEncryptionMode.t[@ocaml.doc"The encryption mode used for endpoint connections when streaming to WorkSpaces Personal or WorkSpace Pools."]}letcontext_="ModifyEndpointEncryptionModeRequest"letmake~directoryId=fun~endpointEncryptionMode->fun()->{directoryId;endpointEncryptionMode}letto_valuex=structure_to_value[("DirectoryId",(Some(DirectoryId.to_valuex.directoryId)));("EndpointEncryptionMode",(Some(EndpointEncryptionMode.to_valuex.endpointEncryptionMode)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendpointEncryptionMode=EndpointEncryptionMode.of_xml(Xml.child_exn~context:context_xml_arg0"EndpointEncryptionMode")inletdirectoryId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"DirectoryId")inmake~endpointEncryptionMode~directoryId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendpointEncryptionMode=field_map_exnjson__"EndpointEncryptionMode"EndpointEncryptionMode.of_jsoninletdirectoryId=field_map_exnjson__"DirectoryId"DirectoryId.of_jsoninmake~endpointEncryptionMode~directoryId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the endpoint encryption mode that allows you to configure the specified directory between Standard TLS and FIPS 140-2 validated mode."]moduleModifyClientPropertiesResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Modifies the properties of the specified Amazon WorkSpaces clients."]moduleModifyClientPropertiesRequest=structtypenonrect={resourceId:NonEmptyString.t[@ocaml.doc"The resource identifiers, in the form of directory IDs."];clientProperties:ClientProperties.t[@ocaml.doc"Information about the Amazon WorkSpaces client."]}letcontext_="ModifyClientPropertiesRequest"letmake~resourceId=fun~clientProperties->fun()->{resourceId;clientProperties}letto_valuex=structure_to_value[("ResourceId",(Some(NonEmptyString.to_valuex.resourceId)));("ClientProperties",(Some(ClientProperties.to_valuex.clientProperties)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientProperties=ClientProperties.of_xml(Xml.child_exn~context:context_xml_arg0"ClientProperties")inletresourceId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceId")inmake~clientProperties~resourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientProperties=field_map_exnjson__"ClientProperties"ClientProperties.of_jsoninletresourceId=field_map_exnjson__"ResourceId"NonEmptyString.of_jsoninmake~clientProperties~resourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the properties of the specified Amazon WorkSpaces clients."]moduleModifyCertificateBasedAuthPropertiesResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Modifies the properties of the certificate-based authentication you want to use with your WorkSpaces."]moduleModifyCertificateBasedAuthPropertiesRequest=structtypenonrect={resourceId:DirectoryId.t[@ocaml.doc"The resource identifiers, in the form of directory IDs."];certificateBasedAuthProperties:CertificateBasedAuthProperties.toption[@ocaml.doc"The properties of the certificate-based authentication."];propertiesToDelete:DeletableCertificateBasedAuthPropertiesList.toption[@ocaml.doc"The properties of the certificate-based authentication you want to delete."]}letcontext_="ModifyCertificateBasedAuthPropertiesRequest"letmake?certificateBasedAuthProperties=fun?propertiesToDelete->fun~resourceId->fun()->{certificateBasedAuthProperties;propertiesToDelete;resourceId}letto_valuex=structure_to_value[("ResourceId",(Some(DirectoryId.to_valuex.resourceId)));("CertificateBasedAuthProperties",(Option.mapx.certificateBasedAuthProperties~f:CertificateBasedAuthProperties.to_value));("PropertiesToDelete",(Option.mapx.propertiesToDelete~f:DeletableCertificateBasedAuthPropertiesList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpropertiesToDelete=(Option.map~f:DeletableCertificateBasedAuthPropertiesList.of_xml)(Xml.childxml_arg0"PropertiesToDelete")inletcertificateBasedAuthProperties=(Option.map~f:CertificateBasedAuthProperties.of_xml)(Xml.childxml_arg0"CertificateBasedAuthProperties")inletresourceId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceId")inmake?propertiesToDelete?certificateBasedAuthProperties~resourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpropertiesToDelete=field_mapjson__"PropertiesToDelete"DeletableCertificateBasedAuthPropertiesList.of_jsoninletcertificateBasedAuthProperties=field_mapjson__"CertificateBasedAuthProperties"CertificateBasedAuthProperties.of_jsoninletresourceId=field_map_exnjson__"ResourceId"DirectoryId.of_jsoninmake?propertiesToDelete?certificateBasedAuthProperties~resourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the properties of the certificate-based authentication you want to use with your WorkSpaces."]moduleModifyAccountResult=structtypenonrect={message:Message.toption[@ocaml.doc"The text message to describe the status of BYOL modification."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ResourceUnavailableExceptionofResourceUnavailableException.t|`Unknown_operation_errorof(string*stringoption)]letmake?message=fun()->{message}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ResourceUnavailableException"->`ResourceUnavailableException(ResourceUnavailableException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ResourceUnavailableException"->`ResourceUnavailableException(ResourceUnavailableException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ResourceUnavailableExceptione->`Assoc[("error",(`String"ResourceUnavailableException"));("details",(ResourceUnavailableException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:Message.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Message.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Message.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the configuration of Bring Your Own License (BYOL) for the specified account."]moduleModifyAccountRequest=structtypenonrect={dedicatedTenancySupport:DedicatedTenancySupportEnum.toption[@ocaml.doc"The status of BYOL."];dedicatedTenancyManagementCidrRange:DedicatedTenancyManagementCidrRange.toption[@ocaml.doc"The IP address range, specified as an IPv4 CIDR block, for the management network interface. Specify an IP address range that is compatible with your network and in CIDR notation (that is, specify the range as an IPv4 CIDR block). The CIDR block size must be /16 (for example, 203.0.113.25/16). It must also be specified as available by the ListAvailableManagementCidrRanges operation."]}letmake?dedicatedTenancySupport=fun?dedicatedTenancyManagementCidrRange->fun()->{dedicatedTenancySupport;dedicatedTenancyManagementCidrRange}letto_valuex=structure_to_value[("DedicatedTenancySupport",(Option.mapx.dedicatedTenancySupport~f:DedicatedTenancySupportEnum.to_value));("DedicatedTenancyManagementCidrRange",(Option.mapx.dedicatedTenancyManagementCidrRange~f:DedicatedTenancyManagementCidrRange.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdedicatedTenancyManagementCidrRange=(Option.map~f:DedicatedTenancyManagementCidrRange.of_xml)(Xml.childxml_arg0"DedicatedTenancyManagementCidrRange")inletdedicatedTenancySupport=(Option.map~f:DedicatedTenancySupportEnum.of_xml)(Xml.childxml_arg0"DedicatedTenancySupport")inmake?dedicatedTenancyManagementCidrRange?dedicatedTenancySupport()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdedicatedTenancyManagementCidrRange=field_mapjson__"DedicatedTenancyManagementCidrRange"DedicatedTenancyManagementCidrRange.of_jsoninletdedicatedTenancySupport=field_mapjson__"DedicatedTenancySupport"DedicatedTenancySupportEnum.of_jsoninmake?dedicatedTenancyManagementCidrRange?dedicatedTenancySupport()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the configuration of Bring Your Own License (BYOL) for the specified account."]moduleMigrateWorkspaceResult=structtypenonrect={sourceWorkspaceId:WorkspaceId.toption[@ocaml.doc"The original identifier of the WorkSpace that is being migrated."];targetWorkspaceId:WorkspaceId.toption[@ocaml.doc"The new identifier of the WorkSpace that is being migrated. If the migration does not succeed, the target WorkSpace ID will not be used, and the WorkSpace will still have the original WorkSpace ID."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationInProgressExceptionofOperationInProgressException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ResourceUnavailableExceptionofResourceUnavailableException.t|`Unknown_operation_errorof(string*stringoption)]letmake?sourceWorkspaceId=fun?targetWorkspaceId->fun()->{sourceWorkspaceId;targetWorkspaceId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationInProgressException"->`OperationInProgressException(OperationInProgressException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ResourceUnavailableException"->`ResourceUnavailableException(ResourceUnavailableException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationInProgressException"->`OperationInProgressException(OperationInProgressException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ResourceUnavailableException"->`ResourceUnavailableException(ResourceUnavailableException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationInProgressExceptione->`Assoc[("error",(`String"OperationInProgressException"));("details",(OperationInProgressException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ResourceUnavailableExceptione->`Assoc[("error",(`String"ResourceUnavailableException"));("details",(ResourceUnavailableException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("SourceWorkspaceId",(Option.mapx.sourceWorkspaceId~f:WorkspaceId.to_value));("TargetWorkspaceId",(Option.mapx.targetWorkspaceId~f:WorkspaceId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettargetWorkspaceId=(Option.map~f:WorkspaceId.of_xml)(Xml.childxml_arg0"TargetWorkspaceId")inletsourceWorkspaceId=(Option.map~f:WorkspaceId.of_xml)(Xml.childxml_arg0"SourceWorkspaceId")inmake?targetWorkspaceId?sourceWorkspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettargetWorkspaceId=field_mapjson__"TargetWorkspaceId"WorkspaceId.of_jsoninletsourceWorkspaceId=field_mapjson__"SourceWorkspaceId"WorkspaceId.of_jsoninmake?targetWorkspaceId?sourceWorkspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Migrates a WorkSpace from one operating system or bundle type to another, while retaining the data on the user volume. The migration process recreates the WorkSpace by using a new root volume from the target bundle image and the user volume from the last available snapshot of the original WorkSpace. During migration, the original D:\\Users\\%USERNAME% user profile folder is renamed to D:\\Users\\%USERNAME%MMddyyTHHmmss%.NotMigrated. A new D:\\Users\\%USERNAME%\\ folder is generated by the new OS. Certain files in the old user profile are moved to the new user profile. For available migration scenarios, details about what happens during migration, and best practices, see Migrate a WorkSpace."]moduleMigrateWorkspaceRequest=structtypenonrect={sourceWorkspaceId:WorkspaceId.t[@ocaml.doc"The identifier of the WorkSpace to migrate from."];bundleId:BundleId.t[@ocaml.doc"The identifier of the target bundle type to migrate the WorkSpace to."]}letcontext_="MigrateWorkspaceRequest"letmake~sourceWorkspaceId=fun~bundleId->fun()->{sourceWorkspaceId;bundleId}letto_valuex=structure_to_value[("SourceWorkspaceId",(Some(WorkspaceId.to_valuex.sourceWorkspaceId)));("BundleId",(Some(BundleId.to_valuex.bundleId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbundleId=BundleId.of_xml(Xml.child_exn~context:context_xml_arg0"BundleId")inletsourceWorkspaceId=WorkspaceId.of_xml(Xml.child_exn~context:context_xml_arg0"SourceWorkspaceId")inmake~bundleId~sourceWorkspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbundleId=field_map_exnjson__"BundleId"BundleId.of_jsoninletsourceWorkspaceId=field_map_exnjson__"SourceWorkspaceId"WorkspaceId.of_jsoninmake~bundleId~sourceWorkspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Migrates a WorkSpace from one operating system or bundle type to another, while retaining the data on the user volume. The migration process recreates the WorkSpace by using a new root volume from the target bundle image and the user volume from the last available snapshot of the original WorkSpace. During migration, the original D:\\Users\\%USERNAME% user profile folder is renamed to D:\\Users\\%USERNAME%MMddyyTHHmmss%.NotMigrated. A new D:\\Users\\%USERNAME%\\ folder is generated by the new OS. Certain files in the old user profile are moved to the new user profile. For available migration scenarios, details about what happens during migration, and best practices, see Migrate a WorkSpace."]moduleListAvailableManagementCidrRangesResult=structtypenonrect={managementCidrRanges:DedicatedTenancyCidrRangeList.toption[@ocaml.doc"The list of available IP address ranges, specified as IPv4 CIDR blocks."];nextToken:PaginationToken.toption[@ocaml.doc"The token to use to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`Unknown_operation_errorof(string*stringoption)]letmake?managementCidrRanges=fun?nextToken->fun()->{managementCidrRanges;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ManagementCidrRanges",(Option.mapx.managementCidrRanges~f:DedicatedTenancyCidrRangeList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletmanagementCidrRanges=(Option.map~f:DedicatedTenancyCidrRangeList.of_xml)(Xml.childxml_arg0"ManagementCidrRanges")inmake?nextToken?managementCidrRanges()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletmanagementCidrRanges=field_mapjson__"ManagementCidrRanges"DedicatedTenancyCidrRangeList.of_jsoninmake?nextToken?managementCidrRanges()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of IP address ranges, specified as IPv4 CIDR blocks, that you can use for the network management interface when you enable Bring Your Own License (BYOL). This operation can be run only by Amazon Web Services accounts that are enabled for BYOL. If your account isn't enabled for BYOL, you'll receive an AccessDeniedException error. The management network interface is connected to a secure Amazon WorkSpaces management network. It is used for interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and to allow Amazon WorkSpaces to manage the WorkSpace."]moduleListAvailableManagementCidrRangesRequest=structtypenonrect={managementCidrRangeConstraint:ManagementCidrRangeConstraint.t[@ocaml.doc"The IP address range to search. Specify an IP address range that is compatible with your network and in CIDR notation (that is, specify the range as an IPv4 CIDR block)."];maxResults:ManagementCidrRangeMaxResults.toption[@ocaml.doc"The maximum number of items to return."];nextToken:PaginationToken.toption[@ocaml.doc"If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results."]}letcontext_="ListAvailableManagementCidrRangesRequest"letmake?maxResults=fun?nextToken->fun~managementCidrRangeConstraint->fun()->{maxResults;nextToken;managementCidrRangeConstraint}letto_valuex=structure_to_value[("ManagementCidrRangeConstraint",(Some(ManagementCidrRangeConstraint.to_valuex.managementCidrRangeConstraint)));("MaxResults",(Option.mapx.maxResults~f:ManagementCidrRangeMaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:ManagementCidrRangeMaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletmanagementCidrRangeConstraint=ManagementCidrRangeConstraint.of_xml(Xml.child_exn~context:context_xml_arg0"ManagementCidrRangeConstraint")inmake?nextToken?maxResults~managementCidrRangeConstraint()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"ManagementCidrRangeMaxResults.of_jsoninletmanagementCidrRangeConstraint=field_map_exnjson__"ManagementCidrRangeConstraint"ManagementCidrRangeConstraint.of_jsoninmake?nextToken?maxResults~managementCidrRangeConstraint()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of IP address ranges, specified as IPv4 CIDR blocks, that you can use for the network management interface when you enable Bring Your Own License (BYOL). This operation can be run only by Amazon Web Services accounts that are enabled for BYOL. If your account isn't enabled for BYOL, you'll receive an AccessDeniedException error. The management network interface is connected to a secure Amazon WorkSpaces management network. It is used for interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and to allow Amazon WorkSpaces to manage the WorkSpace."]moduleListAccountLinksResult=structtypenonrect={accountLinks:AccountLinkList.toption[@ocaml.doc"Information about the account links."];nextToken:PaginationToken.toption[@ocaml.doc"The token to use to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accountLinks=fun?nextToken->fun()->{accountLinks;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AccountLinks",(Option.mapx.accountLinks~f:AccountLinkList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletaccountLinks=(Option.map~f:AccountLinkList.of_xml)(Xml.childxml_arg0"AccountLinks")inmake?nextToken?accountLinks()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletaccountLinks=field_mapjson__"AccountLinks"AccountLinkList.of_jsoninmake?nextToken?accountLinks()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all account links."]moduleListAccountLinksRequest=structtypenonrect={linkStatusFilter:LinkStatusFilterList.toption[@ocaml.doc"Filters the account based on their link status."];nextToken:PaginationToken.toption[@ocaml.doc"The token to use to retrieve the next page of results. This value is null when there are no more results to return."];maxResults:Limit.toption[@ocaml.doc"The maximum number of accounts to return."]}letmake?linkStatusFilter=fun?nextToken->fun?maxResults->fun()->{linkStatusFilter;nextToken;maxResults}letto_valuex=structure_to_value[("LinkStatusFilter",(Option.mapx.linkStatusFilter~f:LinkStatusFilterList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:Limit.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:Limit.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletlinkStatusFilter=(Option.map~f:LinkStatusFilterList.of_xml)(Xml.childxml_arg0"LinkStatusFilter")inmake?maxResults?nextToken?linkStatusFilter()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"Limit.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletlinkStatusFilter=field_mapjson__"LinkStatusFilter"LinkStatusFilterList.of_jsoninmake?maxResults?nextToken?linkStatusFilter()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all account links."]moduleImportWorkspaceImageResult=structtypenonrect={imageId:WorkspaceImageId.toption[@ocaml.doc"The identifier of the WorkSpace image."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceAlreadyExistsExceptionofResourceAlreadyExistsException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?imageId=fun()->{imageId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceAlreadyExistsExceptione->`Assoc[("error",(`String"ResourceAlreadyExistsException"));("details",(ResourceAlreadyExistsException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ImageId",(Option.mapx.imageId~f:WorkspaceImageId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letimageId=(Option.map~f:WorkspaceImageId.of_xml)(Xml.childxml_arg0"ImageId")inmake?imageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letimageId=field_mapjson__"ImageId"WorkspaceImageId.of_jsoninmake?imageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Imports the specified Windows 10 or 11 Bring Your Own License (BYOL) image into Amazon WorkSpaces. The image must be an already licensed Amazon EC2 image that is in your Amazon Web Services account, and you must own the image. For more information about creating BYOL images, see Bring Your Own Windows Desktop Licenses."]moduleImportWorkspaceImageRequest=structtypenonrect={ec2ImageId:Ec2ImageId.t[@ocaml.doc"The identifier of the EC2 image."];ingestionProcess:WorkspaceImageIngestionProcess.t[@ocaml.doc"The ingestion process to be used when importing the image, depending on which protocol you want to use for your BYOL Workspace image, either PCoIP, WSP, or bring your own protocol (BYOP). To use DCV, specify a value that ends in _WSP. To use PCoIP, specify a value that does not end in _WSP. To use BYOP, specify a value that ends in _BYOP. For non-GPU-enabled bundles (bundles other than Graphics or GraphicsPro), specify BYOL_REGULAR, BYOL_REGULAR_WSP, or BYOL_REGULAR_BYOP, depending on the protocol. The BYOL_REGULAR_BYOP and BYOL_GRAPHICS_G4DN_BYOP values are only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use these values. For more information, see Amazon WorkSpaces Core."];imageName:WorkspaceImageName.t[@ocaml.doc"The name of the WorkSpace image."];imageDescription:WorkspaceImageDescription.t[@ocaml.doc"The description of the WorkSpace image."];tags:TagList.toption[@ocaml.doc"The tags. Each WorkSpaces resource can have a maximum of 50 tags."];applications:ApplicationList.toption[@ocaml.doc"If specified, the version of Microsoft Office to subscribe to. Valid only for Windows 10 and 11 BYOL images. For more information about subscribing to Office for BYOL images, see Bring Your Own Windows Desktop Licenses. Although this parameter is an array, only one item is allowed at this time. During the image import process, non-GPU DCV (formerly WSP) WorkSpaces with Windows 11 support only Microsoft_Office_2019. GPU DCV (formerly WSP) WorkSpaces with Windows 11 do not support Office installation."]}letcontext_="ImportWorkspaceImageRequest"letmake?tags=fun?applications->fun~ec2ImageId->fun~ingestionProcess->fun~imageName->fun~imageDescription->fun()->{tags;applications;ec2ImageId;ingestionProcess;imageName;imageDescription}letto_valuex=structure_to_value[("Ec2ImageId",(Some(Ec2ImageId.to_valuex.ec2ImageId)));("IngestionProcess",(Some(WorkspaceImageIngestionProcess.to_valuex.ingestionProcess)));("ImageName",(Some(WorkspaceImageName.to_valuex.imageName)));("ImageDescription",(Some(WorkspaceImageDescription.to_valuex.imageDescription)));("Tags",(Option.mapx.tags~f:TagList.to_value));("Applications",(Option.mapx.applications~f:ApplicationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapplications=(Option.map~f:ApplicationList.of_xml)(Xml.childxml_arg0"Applications")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletimageDescription=WorkspaceImageDescription.of_xml(Xml.child_exn~context:context_xml_arg0"ImageDescription")inletimageName=WorkspaceImageName.of_xml(Xml.child_exn~context:context_xml_arg0"ImageName")inletingestionProcess=WorkspaceImageIngestionProcess.of_xml(Xml.child_exn~context:context_xml_arg0"IngestionProcess")inletec2ImageId=Ec2ImageId.of_xml(Xml.child_exn~context:context_xml_arg0"Ec2ImageId")inmake?applications?tags~imageDescription~imageName~ingestionProcess~ec2ImageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapplications=field_mapjson__"Applications"ApplicationList.of_jsoninlettags=field_mapjson__"Tags"TagList.of_jsoninletimageDescription=field_map_exnjson__"ImageDescription"WorkspaceImageDescription.of_jsoninletimageName=field_map_exnjson__"ImageName"WorkspaceImageName.of_jsoninletingestionProcess=field_map_exnjson__"IngestionProcess"WorkspaceImageIngestionProcess.of_jsoninletec2ImageId=field_map_exnjson__"Ec2ImageId"Ec2ImageId.of_jsoninmake?applications?tags~imageDescription~imageName~ingestionProcess~ec2ImageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Imports the specified Windows 10 or 11 Bring Your Own License (BYOL) image into Amazon WorkSpaces. The image must be an already licensed Amazon EC2 image that is in your Amazon Web Services account, and you must own the image. For more information about creating BYOL images, see Bring Your Own Windows Desktop Licenses."]moduleImportCustomWorkspaceImageResult=structtypenonrect={imageId:WorkspaceImageId.toption[@ocaml.doc"The identifier of the WorkSpace image."];state:CustomWorkspaceImageImportState.toption[@ocaml.doc"The state of the WorkSpace image."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceAlreadyExistsExceptionofResourceAlreadyExistsException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?imageId=fun?state->fun()->{imageId;state}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceAlreadyExistsExceptione->`Assoc[("error",(`String"ResourceAlreadyExistsException"));("details",(ResourceAlreadyExistsException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ImageId",(Option.mapx.imageId~f:WorkspaceImageId.to_value));("State",(Option.mapx.state~f:CustomWorkspaceImageImportState.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstate=(Option.map~f:CustomWorkspaceImageImportState.of_xml)(Xml.childxml_arg0"State")inletimageId=(Option.map~f:WorkspaceImageId.of_xml)(Xml.childxml_arg0"ImageId")inmake?state?imageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstate=field_mapjson__"State"CustomWorkspaceImageImportState.of_jsoninletimageId=field_mapjson__"ImageId"WorkspaceImageId.of_jsoninmake?state?imageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Imports the specified Windows 10 or 11 Bring Your Own License (BYOL) image into Amazon WorkSpaces using EC2 Image Builder. The image must be an already licensed image that is in your Amazon Web Services account, and you must own the image. For more information about creating BYOL images, see Bring Your Own Windows Desktop Licenses."]moduleImportCustomWorkspaceImageRequest=structtypenonrect={imageName:WorkspaceImageName.t[@ocaml.doc"The name of the WorkSpace image."];imageDescription:WorkspaceImageDescription.t[@ocaml.doc"The description of the WorkSpace image."];computeType:ImageComputeType.t[@ocaml.doc"The supported compute type for the WorkSpace image."];protocol:CustomImageProtocol.t[@ocaml.doc"The supported protocol for the WorkSpace image. Windows 11 does not support PCOIP protocol."];imageSource:ImageSourceIdentifier.t[@ocaml.doc"The options for image import source."];infrastructureConfigurationArn:InfrastructureConfigurationArn.t[@ocaml.doc"The infrastructure configuration ARN that specifies how the WorkSpace image is built."];platform:Platform.t[@ocaml.doc"The platform for the WorkSpace image source."];osVersion:OSVersion.t[@ocaml.doc"The OS version for the WorkSpace image source."];tags:TagList.toption[@ocaml.doc"The resource tags. Each WorkSpaces resource can have a maximum of 50 tags."]}letcontext_="ImportCustomWorkspaceImageRequest"letmake?tags=fun~imageName->fun~imageDescription->fun~computeType->fun~protocol->fun~imageSource->fun~infrastructureConfigurationArn->fun~platform->fun~osVersion->fun()->{tags;imageName;imageDescription;computeType;protocol;imageSource;infrastructureConfigurationArn;platform;osVersion}letto_valuex=structure_to_value[("ImageName",(Some(WorkspaceImageName.to_valuex.imageName)));("ImageDescription",(Some(WorkspaceImageDescription.to_valuex.imageDescription)));("ComputeType",(Some(ImageComputeType.to_valuex.computeType)));("Protocol",(Some(CustomImageProtocol.to_valuex.protocol)));("ImageSource",(Some(ImageSourceIdentifier.to_valuex.imageSource)));("InfrastructureConfigurationArn",(Some(InfrastructureConfigurationArn.to_valuex.infrastructureConfigurationArn)));("Platform",(Some(Platform.to_valuex.platform)));("OsVersion",(Some(OSVersion.to_valuex.osVersion)));("Tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletosVersion=OSVersion.of_xml(Xml.child_exn~context:context_xml_arg0"OsVersion")inletplatform=Platform.of_xml(Xml.child_exn~context:context_xml_arg0"Platform")inletinfrastructureConfigurationArn=InfrastructureConfigurationArn.of_xml(Xml.child_exn~context:context_xml_arg0"InfrastructureConfigurationArn")inletimageSource=ImageSourceIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"ImageSource")inletprotocol=CustomImageProtocol.of_xml(Xml.child_exn~context:context_xml_arg0"Protocol")inletcomputeType=ImageComputeType.of_xml(Xml.child_exn~context:context_xml_arg0"ComputeType")inletimageDescription=WorkspaceImageDescription.of_xml(Xml.child_exn~context:context_xml_arg0"ImageDescription")inletimageName=WorkspaceImageName.of_xml(Xml.child_exn~context:context_xml_arg0"ImageName")inmake?tags~osVersion~platform~infrastructureConfigurationArn~imageSource~protocol~computeType~imageDescription~imageName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninletosVersion=field_map_exnjson__"OsVersion"OSVersion.of_jsoninletplatform=field_map_exnjson__"Platform"Platform.of_jsoninletinfrastructureConfigurationArn=field_map_exnjson__"InfrastructureConfigurationArn"InfrastructureConfigurationArn.of_jsoninletimageSource=field_map_exnjson__"ImageSource"ImageSourceIdentifier.of_jsoninletprotocol=field_map_exnjson__"Protocol"CustomImageProtocol.of_jsoninletcomputeType=field_map_exnjson__"ComputeType"ImageComputeType.of_jsoninletimageDescription=field_map_exnjson__"ImageDescription"WorkspaceImageDescription.of_jsoninletimageName=field_map_exnjson__"ImageName"WorkspaceImageName.of_jsoninmake?tags~osVersion~platform~infrastructureConfigurationArn~imageSource~protocol~computeType~imageDescription~imageName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Imports the specified Windows 10 or 11 Bring Your Own License (BYOL) image into Amazon WorkSpaces using EC2 Image Builder. The image must be an already licensed image that is in your Amazon Web Services account, and you must own the image. For more information about creating BYOL images, see Bring Your Own Windows Desktop Licenses."]moduleImportClientBrandingResult=structtypenonrect={deviceTypeWindows:DefaultClientBrandingAttributes.toption[@ocaml.doc"The branding information configured for Windows devices."];deviceTypeOsx:DefaultClientBrandingAttributes.toption[@ocaml.doc"The branding information configured for macOS devices."];deviceTypeAndroid:DefaultClientBrandingAttributes.toption[@ocaml.doc"The branding information configured for Android devices."];deviceTypeIos:IosClientBrandingAttributes.toption[@ocaml.doc"The branding information configured for iOS devices."];deviceTypeLinux:DefaultClientBrandingAttributes.toption[@ocaml.doc"The branding information configured for Linux devices."];deviceTypeWeb:DefaultClientBrandingAttributes.toption[@ocaml.doc"The branding information configured for web access."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?deviceTypeWindows=fun?deviceTypeOsx->fun?deviceTypeAndroid->fun?deviceTypeIos->fun?deviceTypeLinux->fun?deviceTypeWeb->fun()->{deviceTypeWindows;deviceTypeOsx;deviceTypeAndroid;deviceTypeIos;deviceTypeLinux;deviceTypeWeb}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("DeviceTypeWindows",(Option.mapx.deviceTypeWindows~f:DefaultClientBrandingAttributes.to_value));("DeviceTypeOsx",(Option.mapx.deviceTypeOsx~f:DefaultClientBrandingAttributes.to_value));("DeviceTypeAndroid",(Option.mapx.deviceTypeAndroid~f:DefaultClientBrandingAttributes.to_value));("DeviceTypeIos",(Option.mapx.deviceTypeIos~f:IosClientBrandingAttributes.to_value));("DeviceTypeLinux",(Option.mapx.deviceTypeLinux~f:DefaultClientBrandingAttributes.to_value));("DeviceTypeWeb",(Option.mapx.deviceTypeWeb~f:DefaultClientBrandingAttributes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeviceTypeWeb=(Option.map~f:DefaultClientBrandingAttributes.of_xml)(Xml.childxml_arg0"DeviceTypeWeb")inletdeviceTypeLinux=(Option.map~f:DefaultClientBrandingAttributes.of_xml)(Xml.childxml_arg0"DeviceTypeLinux")inletdeviceTypeIos=(Option.map~f:IosClientBrandingAttributes.of_xml)(Xml.childxml_arg0"DeviceTypeIos")inletdeviceTypeAndroid=(Option.map~f:DefaultClientBrandingAttributes.of_xml)(Xml.childxml_arg0"DeviceTypeAndroid")inletdeviceTypeOsx=(Option.map~f:DefaultClientBrandingAttributes.of_xml)(Xml.childxml_arg0"DeviceTypeOsx")inletdeviceTypeWindows=(Option.map~f:DefaultClientBrandingAttributes.of_xml)(Xml.childxml_arg0"DeviceTypeWindows")inmake?deviceTypeWeb?deviceTypeLinux?deviceTypeIos?deviceTypeAndroid?deviceTypeOsx?deviceTypeWindows()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeviceTypeWeb=field_mapjson__"DeviceTypeWeb"DefaultClientBrandingAttributes.of_jsoninletdeviceTypeLinux=field_mapjson__"DeviceTypeLinux"DefaultClientBrandingAttributes.of_jsoninletdeviceTypeIos=field_mapjson__"DeviceTypeIos"IosClientBrandingAttributes.of_jsoninletdeviceTypeAndroid=field_mapjson__"DeviceTypeAndroid"DefaultClientBrandingAttributes.of_jsoninletdeviceTypeOsx=field_mapjson__"DeviceTypeOsx"DefaultClientBrandingAttributes.of_jsoninletdeviceTypeWindows=field_mapjson__"DeviceTypeWindows"DefaultClientBrandingAttributes.of_jsoninmake?deviceTypeWeb?deviceTypeLinux?deviceTypeIos?deviceTypeAndroid?deviceTypeOsx?deviceTypeWindows()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Imports client branding. Client branding allows you to customize your WorkSpace's client login portal. You can tailor your login portal company logo, the support email address, support link, link to reset password, and a custom message for users trying to sign in. After you import client branding, the default branding experience for the specified platform type is replaced with the imported experience You must specify at least one platform type when importing client branding. You can import up to 6 MB of data with each request. If your request exceeds this limit, you can import client branding for different platform types using separate requests. In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify only one parameter for each platform type, but not both. Imported data can take up to a minute to appear in the WorkSpaces client."]moduleImportClientBrandingRequest=structtypenonrect={resourceId:DirectoryId.t[@ocaml.doc"The directory identifier of the WorkSpace for which you want to import client branding."];deviceTypeWindows:DefaultImportClientBrandingAttributes.toption[@ocaml.doc"The branding information to import for Windows devices."];deviceTypeOsx:DefaultImportClientBrandingAttributes.toption[@ocaml.doc"The branding information to import for macOS devices."];deviceTypeAndroid:DefaultImportClientBrandingAttributes.toption[@ocaml.doc"The branding information to import for Android devices."];deviceTypeIos:IosImportClientBrandingAttributes.toption[@ocaml.doc"The branding information to import for iOS devices."];deviceTypeLinux:DefaultImportClientBrandingAttributes.toption[@ocaml.doc"The branding information to import for Linux devices."];deviceTypeWeb:DefaultImportClientBrandingAttributes.toption[@ocaml.doc"The branding information to import for web access."]}letcontext_="ImportClientBrandingRequest"letmake?deviceTypeWindows=fun?deviceTypeOsx->fun?deviceTypeAndroid->fun?deviceTypeIos->fun?deviceTypeLinux->fun?deviceTypeWeb->fun~resourceId->fun()->{deviceTypeWindows;deviceTypeOsx;deviceTypeAndroid;deviceTypeIos;deviceTypeLinux;deviceTypeWeb;resourceId}letto_valuex=structure_to_value[("ResourceId",(Some(DirectoryId.to_valuex.resourceId)));("DeviceTypeWindows",(Option.mapx.deviceTypeWindows~f:DefaultImportClientBrandingAttributes.to_value));("DeviceTypeOsx",(Option.mapx.deviceTypeOsx~f:DefaultImportClientBrandingAttributes.to_value));("DeviceTypeAndroid",(Option.mapx.deviceTypeAndroid~f:DefaultImportClientBrandingAttributes.to_value));("DeviceTypeIos",(Option.mapx.deviceTypeIos~f:IosImportClientBrandingAttributes.to_value));("DeviceTypeLinux",(Option.mapx.deviceTypeLinux~f:DefaultImportClientBrandingAttributes.to_value));("DeviceTypeWeb",(Option.mapx.deviceTypeWeb~f:DefaultImportClientBrandingAttributes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeviceTypeWeb=(Option.map~f:DefaultImportClientBrandingAttributes.of_xml)(Xml.childxml_arg0"DeviceTypeWeb")inletdeviceTypeLinux=(Option.map~f:DefaultImportClientBrandingAttributes.of_xml)(Xml.childxml_arg0"DeviceTypeLinux")inletdeviceTypeIos=(Option.map~f:IosImportClientBrandingAttributes.of_xml)(Xml.childxml_arg0"DeviceTypeIos")inletdeviceTypeAndroid=(Option.map~f:DefaultImportClientBrandingAttributes.of_xml)(Xml.childxml_arg0"DeviceTypeAndroid")inletdeviceTypeOsx=(Option.map~f:DefaultImportClientBrandingAttributes.of_xml)(Xml.childxml_arg0"DeviceTypeOsx")inletdeviceTypeWindows=(Option.map~f:DefaultImportClientBrandingAttributes.of_xml)(Xml.childxml_arg0"DeviceTypeWindows")inletresourceId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceId")inmake?deviceTypeWeb?deviceTypeLinux?deviceTypeIos?deviceTypeAndroid?deviceTypeOsx?deviceTypeWindows~resourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeviceTypeWeb=field_mapjson__"DeviceTypeWeb"DefaultImportClientBrandingAttributes.of_jsoninletdeviceTypeLinux=field_mapjson__"DeviceTypeLinux"DefaultImportClientBrandingAttributes.of_jsoninletdeviceTypeIos=field_mapjson__"DeviceTypeIos"IosImportClientBrandingAttributes.of_jsoninletdeviceTypeAndroid=field_mapjson__"DeviceTypeAndroid"DefaultImportClientBrandingAttributes.of_jsoninletdeviceTypeOsx=field_mapjson__"DeviceTypeOsx"DefaultImportClientBrandingAttributes.of_jsoninletdeviceTypeWindows=field_mapjson__"DeviceTypeWindows"DefaultImportClientBrandingAttributes.of_jsoninletresourceId=field_map_exnjson__"ResourceId"DirectoryId.of_jsoninmake?deviceTypeWeb?deviceTypeLinux?deviceTypeIos?deviceTypeAndroid?deviceTypeOsx?deviceTypeWindows~resourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Imports client branding. Client branding allows you to customize your WorkSpace's client login portal. You can tailor your login portal company logo, the support email address, support link, link to reset password, and a custom message for users trying to sign in. After you import client branding, the default branding experience for the specified platform type is replaced with the imported experience You must specify at least one platform type when importing client branding. You can import up to 6 MB of data with each request. If your request exceeds this limit, you can import client branding for different platform types using separate requests. In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify only one parameter for each platform type, but not both. Imported data can take up to a minute to appear in the WorkSpaces client."]moduleGetAccountLinkResult=structtypenonrect={accountLink:AccountLink.toption[@ocaml.doc"The account link of the account link to retrieve."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accountLink=fun()->{accountLink}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AccountLink",(Option.mapx.accountLink~f:AccountLink.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountLink=(Option.map~f:AccountLink.of_xml)(Xml.childxml_arg0"AccountLink")inmake?accountLink()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountLink=field_mapjson__"AccountLink"AccountLink.of_jsoninmake?accountLink()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves account link information."]moduleGetAccountLinkRequest=structtypenonrect={linkId:LinkId.toption[@ocaml.doc"The identifier of the account to link."];linkedAccountId:AwsAccount.toption[@ocaml.doc"The identifier of the account link"]}letmake?linkId=fun?linkedAccountId->fun()->{linkId;linkedAccountId}letto_valuex=structure_to_value[("LinkId",(Option.mapx.linkId~f:LinkId.to_value));("LinkedAccountId",(Option.mapx.linkedAccountId~f:AwsAccount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlinkedAccountId=(Option.map~f:AwsAccount.of_xml)(Xml.childxml_arg0"LinkedAccountId")inletlinkId=(Option.map~f:LinkId.of_xml)(Xml.childxml_arg0"LinkId")inmake?linkedAccountId?linkId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlinkedAccountId=field_mapjson__"LinkedAccountId"AwsAccount.of_jsoninletlinkId=field_mapjson__"LinkId"LinkId.of_jsoninmake?linkedAccountId?linkId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves account link information."]moduleDisassociateWorkspaceApplicationResult=structtypenonrect={association:WorkspaceResourceAssociation.toption[@ocaml.doc"Information about the targeted association."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?association=fun()->{association}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Association",(Option.mapx.association~f:WorkspaceResourceAssociation.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassociation=(Option.map~f:WorkspaceResourceAssociation.of_xml)(Xml.childxml_arg0"Association")inmake?association()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassociation=field_mapjson__"Association"WorkspaceResourceAssociation.of_jsoninmake?association()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disassociates the specified application from a WorkSpace."]moduleDisassociateWorkspaceApplicationRequest=structtypenonrect={workspaceId:WorkspaceId.t[@ocaml.doc"The identifier of the WorkSpace."];applicationId:WorkSpaceApplicationId.t[@ocaml.doc"The identifier of the application."]}letcontext_="DisassociateWorkspaceApplicationRequest"letmake~workspaceId=fun~applicationId->fun()->{workspaceId;applicationId}letto_valuex=structure_to_value[("WorkspaceId",(Some(WorkspaceId.to_valuex.workspaceId)));("ApplicationId",(Some(WorkSpaceApplicationId.to_valuex.applicationId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapplicationId=WorkSpaceApplicationId.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationId")inletworkspaceId=WorkspaceId.of_xml(Xml.child_exn~context:context_xml_arg0"WorkspaceId")inmake~applicationId~workspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapplicationId=field_map_exnjson__"ApplicationId"WorkSpaceApplicationId.of_jsoninletworkspaceId=field_map_exnjson__"WorkspaceId"WorkspaceId.of_jsoninmake~applicationId~workspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disassociates the specified application from a WorkSpace."]moduleDisassociateIpGroupsResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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 IP access control group from the specified directory."]moduleDisassociateIpGroupsRequest=structtypenonrect={directoryId:DirectoryId.t[@ocaml.doc"The identifier of the directory."];groupIds:IpGroupIdList.t[@ocaml.doc"The identifiers of one or more IP access control groups."]}letcontext_="DisassociateIpGroupsRequest"letmake~directoryId=fun~groupIds->fun()->{directoryId;groupIds}letto_valuex=structure_to_value[("DirectoryId",(Some(DirectoryId.to_valuex.directoryId)));("GroupIds",(Some(IpGroupIdList.to_valuex.groupIds)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgroupIds=IpGroupIdList.of_xml(Xml.child_exn~context:context_xml_arg0"GroupIds")inletdirectoryId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"DirectoryId")inmake~groupIds~directoryId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgroupIds=field_map_exnjson__"GroupIds"IpGroupIdList.of_jsoninletdirectoryId=field_map_exnjson__"DirectoryId"DirectoryId.of_jsoninmake~groupIds~directoryId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disassociates the specified IP access control group from the specified directory."]moduleDisassociateConnectionAliasResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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 a connection alias from a directory. Disassociating a connection alias disables cross-Region redirection between two directories in different Regions. For more information, see Cross-Region Redirection for Amazon WorkSpaces. Before performing this operation, call DescribeConnectionAliases to make sure that the current state of the connection alias is CREATED."]moduleDisassociateConnectionAliasRequest=structtypenonrect={aliasId:ConnectionAliasId.t[@ocaml.doc"The identifier of the connection alias to disassociate."]}letcontext_="DisassociateConnectionAliasRequest"letmake~aliasId=fun()->{aliasId}letto_valuex=structure_to_value[("AliasId",(Some(ConnectionAliasId.to_valuex.aliasId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaliasId=ConnectionAliasId.of_xml(Xml.child_exn~context:context_xml_arg0"AliasId")inmake~aliasId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaliasId=field_map_exnjson__"AliasId"ConnectionAliasId.of_jsoninmake~aliasId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disassociates a connection alias from a directory. Disassociating a connection alias disables cross-Region redirection between two directories in different Regions. For more information, see Cross-Region Redirection for Amazon WorkSpaces. Before performing this operation, call DescribeConnectionAliases to make sure that the current state of the connection alias is CREATED."]moduleDescribeWorkspacesResult=structtypenonrect={workspaces:WorkspaceList.toption[@ocaml.doc"Information about the WorkSpaces. Because CreateWorkspaces is an asynchronous operation, some of the returned information could be incomplete."];nextToken:PaginationToken.toption[@ocaml.doc"The token to use to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceUnavailableExceptionofResourceUnavailableException.t|`Unknown_operation_errorof(string*stringoption)]letmake?workspaces=fun?nextToken->fun()->{workspaces;nextToken}leterror_of_jsonnamejson=matchnamewith|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceUnavailableException"->`ResourceUnavailableException(ResourceUnavailableException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceUnavailableException"->`ResourceUnavailableException(ResourceUnavailableException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceUnavailableExceptione->`Assoc[("error",(`String"ResourceUnavailableException"));("details",(ResourceUnavailableException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Workspaces",(Option.mapx.workspaces~f:WorkspaceList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletworkspaces=(Option.map~f:WorkspaceList.of_xml)(Xml.childxml_arg0"Workspaces")inmake?nextToken?workspaces()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletworkspaces=field_mapjson__"Workspaces"WorkspaceList.of_jsoninmake?nextToken?workspaces()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the specified WorkSpaces. You can filter the results by using the bundle identifier, directory identifier, or owner, but you can specify only one filter at a time."]moduleDescribeWorkspacesRequest=structtypenonrect={workspaceIds:WorkspaceIdList.toption[@ocaml.doc"The identifiers of the WorkSpaces. You cannot combine this parameter with any other filter. Because the CreateWorkspaces operation is asynchronous, the identifier it returns is not immediately available. If you immediately call DescribeWorkspaces with this identifier, no information is returned."];directoryId:DirectoryId.toption[@ocaml.doc"The identifier of the directory. In addition, you can optionally specify a specific directory user (see UserName). You cannot combine this parameter with any other filter."];userName:UserName.toption[@ocaml.doc"The name of the directory user. You must specify this parameter with DirectoryId."];bundleId:BundleId.toption[@ocaml.doc"The identifier of the bundle. All WorkSpaces that are created from this bundle are retrieved. You cannot combine this parameter with any other filter."];limit:Limit.toption[@ocaml.doc"The maximum number of items to return."];nextToken:PaginationToken.toption[@ocaml.doc"If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results."];workspaceName:WorkspaceName.toption[@ocaml.doc"The name of the user-decoupled WorkSpace."]}letmake?workspaceIds=fun?directoryId->fun?userName->fun?bundleId->fun?limit->fun?nextToken->fun?workspaceName->fun()->{workspaceIds;directoryId;userName;bundleId;limit;nextToken;workspaceName}letto_valuex=structure_to_value[("WorkspaceIds",(Option.mapx.workspaceIds~f:WorkspaceIdList.to_value));("DirectoryId",(Option.mapx.directoryId~f:DirectoryId.to_value));("UserName",(Option.mapx.userName~f:UserName.to_value));("BundleId",(Option.mapx.bundleId~f:BundleId.to_value));("Limit",(Option.mapx.limit~f:Limit.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("WorkspaceName",(Option.mapx.workspaceName~f:WorkspaceName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkspaceName=(Option.map~f:WorkspaceName.of_xml)(Xml.childxml_arg0"WorkspaceName")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletlimit=(Option.map~f:Limit.of_xml)(Xml.childxml_arg0"Limit")inletbundleId=(Option.map~f:BundleId.of_xml)(Xml.childxml_arg0"BundleId")inletuserName=(Option.map~f:UserName.of_xml)(Xml.childxml_arg0"UserName")inletdirectoryId=(Option.map~f:DirectoryId.of_xml)(Xml.childxml_arg0"DirectoryId")inletworkspaceIds=(Option.map~f:WorkspaceIdList.of_xml)(Xml.childxml_arg0"WorkspaceIds")inmake?workspaceName?nextToken?limit?bundleId?userName?directoryId?workspaceIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkspaceName=field_mapjson__"WorkspaceName"WorkspaceName.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletlimit=field_mapjson__"Limit"Limit.of_jsoninletbundleId=field_mapjson__"BundleId"BundleId.of_jsoninletuserName=field_mapjson__"UserName"UserName.of_jsoninletdirectoryId=field_mapjson__"DirectoryId"DirectoryId.of_jsoninletworkspaceIds=field_mapjson__"WorkspaceIds"WorkspaceIdList.of_jsoninmake?workspaceName?nextToken?limit?bundleId?userName?directoryId?workspaceIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the specified WorkSpaces. You can filter the results by using the bundle identifier, directory identifier, or owner, but you can specify only one filter at a time."]moduleDescribeWorkspacesPoolsResult=structtypenonrect={workspacesPools:WorkspacesPools.toption[@ocaml.doc"Information about the WorkSpaces Pools."];nextToken:PaginationToken.toption[@ocaml.doc"If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?workspacesPools=fun?nextToken->fun()->{workspacesPools;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("WorkspacesPools",(Option.mapx.workspacesPools~f:WorkspacesPools.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletworkspacesPools=(Option.map~f:WorkspacesPools.of_xml)(Xml.childxml_arg0"WorkspacesPools")inmake?nextToken?workspacesPools()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletworkspacesPools=field_mapjson__"WorkspacesPools"WorkspacesPools.of_jsoninmake?nextToken?workspacesPools()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the specified WorkSpaces Pools."]moduleDescribeWorkspacesPoolsRequest=structtypenonrect={poolIds:WorkspacesPoolIds.toption[@ocaml.doc"The identifier of the WorkSpaces Pools."];filters:DescribeWorkspacesPoolsFilters.toption[@ocaml.doc"The filter conditions for the WorkSpaces Pool to return."];limit:Limit.toption[@ocaml.doc"The maximum number of items to return."];nextToken:PaginationToken.toption[@ocaml.doc"If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results."]}letmake?poolIds=fun?filters->fun?limit->fun?nextToken->fun()->{poolIds;filters;limit;nextToken}letto_valuex=structure_to_value[("PoolIds",(Option.mapx.poolIds~f:WorkspacesPoolIds.to_value));("Filters",(Option.mapx.filters~f:DescribeWorkspacesPoolsFilters.to_value));("Limit",(Option.mapx.limit~f:Limit.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletlimit=(Option.map~f:Limit.of_xml)(Xml.childxml_arg0"Limit")inletfilters=(Option.map~f:DescribeWorkspacesPoolsFilters.of_xml)(Xml.childxml_arg0"Filters")inletpoolIds=(Option.map~f:WorkspacesPoolIds.of_xml)(Xml.childxml_arg0"PoolIds")inmake?nextToken?limit?filters?poolIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletlimit=field_mapjson__"Limit"Limit.of_jsoninletfilters=field_mapjson__"Filters"DescribeWorkspacesPoolsFilters.of_jsoninletpoolIds=field_mapjson__"PoolIds"WorkspacesPoolIds.of_jsoninmake?nextToken?limit?filters?poolIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the specified WorkSpaces Pools."]moduleDescribeWorkspacesPoolSessionsResult=structtypenonrect={sessions:WorkspacesPoolSessions.toption[@ocaml.doc"Describes the pool sessions."];nextToken:PaginationToken.toption[@ocaml.doc"If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?sessions=fun?nextToken->fun()->{sessions;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Sessions",(Option.mapx.sessions~f:WorkspacesPoolSessions.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletsessions=(Option.map~f:WorkspacesPoolSessions.of_xml)(Xml.childxml_arg0"Sessions")inmake?nextToken?sessions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletsessions=field_mapjson__"Sessions"WorkspacesPoolSessions.of_jsoninmake?nextToken?sessions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list that describes the streaming sessions for a specified pool."]moduleDescribeWorkspacesPoolSessionsRequest=structtypenonrect={poolId:WorkspacesPoolId.t[@ocaml.doc"The identifier of the pool."];userId:WorkspacesPoolUserId.toption[@ocaml.doc"The identifier of the user."];limit:Limit50.toption[@ocaml.doc"The maximum size of each page of results. The default value is 20 and the maximum value is 50."];nextToken:PaginationToken.toption[@ocaml.doc"If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results."]}letcontext_="DescribeWorkspacesPoolSessionsRequest"letmake?userId=fun?limit->fun?nextToken->fun~poolId->fun()->{userId;limit;nextToken;poolId}letto_valuex=structure_to_value[("PoolId",(Some(WorkspacesPoolId.to_valuex.poolId)));("UserId",(Option.mapx.userId~f:WorkspacesPoolUserId.to_value));("Limit",(Option.mapx.limit~f:Limit50.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletlimit=(Option.map~f:Limit50.of_xml)(Xml.childxml_arg0"Limit")inletuserId=(Option.map~f:WorkspacesPoolUserId.of_xml)(Xml.childxml_arg0"UserId")inletpoolId=WorkspacesPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"PoolId")inmake?nextToken?limit?userId~poolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletlimit=field_mapjson__"Limit"Limit50.of_jsoninletuserId=field_mapjson__"UserId"WorkspacesPoolUserId.of_jsoninletpoolId=field_map_exnjson__"PoolId"WorkspacesPoolId.of_jsoninmake?nextToken?limit?userId~poolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list that describes the streaming sessions for a specified pool."]moduleDescribeWorkspacesConnectionStatusResult=structtypenonrect={workspacesConnectionStatus:WorkspaceConnectionStatusList.toption[@ocaml.doc"Information about the connection status of the WorkSpace."];nextToken:PaginationToken.toption[@ocaml.doc"The token to use to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`Unknown_operation_errorof(string*stringoption)]letmake?workspacesConnectionStatus=fun?nextToken->fun()->{workspacesConnectionStatus;nextToken}leterror_of_jsonnamejson=matchnamewith|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("WorkspacesConnectionStatus",(Option.mapx.workspacesConnectionStatus~f:WorkspaceConnectionStatusList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletworkspacesConnectionStatus=(Option.map~f:WorkspaceConnectionStatusList.of_xml)(Xml.childxml_arg0"WorkspacesConnectionStatus")inmake?nextToken?workspacesConnectionStatus()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletworkspacesConnectionStatus=field_mapjson__"WorkspacesConnectionStatus"WorkspaceConnectionStatusList.of_jsoninmake?nextToken?workspacesConnectionStatus()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the connection status of the specified WorkSpaces."]moduleDescribeWorkspacesConnectionStatusRequest=structtypenonrect={workspaceIds:WorkspaceIdList.toption[@ocaml.doc"The identifiers of the WorkSpaces. You can specify up to 25 WorkSpaces."];nextToken:PaginationToken.toption[@ocaml.doc"If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results."]}letmake?workspaceIds=fun?nextToken->fun()->{workspaceIds;nextToken}letto_valuex=structure_to_value[("WorkspaceIds",(Option.mapx.workspaceIds~f:WorkspaceIdList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletworkspaceIds=(Option.map~f:WorkspaceIdList.of_xml)(Xml.childxml_arg0"WorkspaceIds")inmake?nextToken?workspaceIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletworkspaceIds=field_mapjson__"WorkspaceIds"WorkspaceIdList.of_jsoninmake?nextToken?workspaceIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the connection status of the specified WorkSpaces."]moduleDescribeWorkspaceSnapshotsResult=structtypenonrect={rebuildSnapshots:SnapshotList.toption[@ocaml.doc"Information about the snapshots that can be used to rebuild a WorkSpace. These snapshots include the user volume."];restoreSnapshots:SnapshotList.toption[@ocaml.doc"Information about the snapshots that can be used to restore a WorkSpace. These snapshots include both the root volume and the user volume."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?rebuildSnapshots=fun?restoreSnapshots->fun()->{rebuildSnapshots;restoreSnapshots}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("RebuildSnapshots",(Option.mapx.rebuildSnapshots~f:SnapshotList.to_value));("RestoreSnapshots",(Option.mapx.restoreSnapshots~f:SnapshotList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrestoreSnapshots=(Option.map~f:SnapshotList.of_xml)(Xml.childxml_arg0"RestoreSnapshots")inletrebuildSnapshots=(Option.map~f:SnapshotList.of_xml)(Xml.childxml_arg0"RebuildSnapshots")inmake?restoreSnapshots?rebuildSnapshots()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrestoreSnapshots=field_mapjson__"RestoreSnapshots"SnapshotList.of_jsoninletrebuildSnapshots=field_mapjson__"RebuildSnapshots"SnapshotList.of_jsoninmake?restoreSnapshots?rebuildSnapshots()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the snapshots for the specified WorkSpace."]moduleDescribeWorkspaceSnapshotsRequest=structtypenonrect={workspaceId:WorkspaceId.t[@ocaml.doc"The identifier of the WorkSpace."]}letcontext_="DescribeWorkspaceSnapshotsRequest"letmake~workspaceId=fun()->{workspaceId}letto_valuex=structure_to_value[("WorkspaceId",(Some(WorkspaceId.to_valuex.workspaceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkspaceId=WorkspaceId.of_xml(Xml.child_exn~context:context_xml_arg0"WorkspaceId")inmake~workspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkspaceId=field_map_exnjson__"WorkspaceId"WorkspaceId.of_jsoninmake~workspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the snapshots for the specified WorkSpace."]moduleDescribeWorkspaceImagesResult=structtypenonrect={images:WorkspaceImageList.toption[@ocaml.doc"Information about the images."];nextToken:PaginationToken.toption[@ocaml.doc"The token to use to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`Unknown_operation_errorof(string*stringoption)]letmake?images=fun?nextToken->fun()->{images;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.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))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Images",(Option.mapx.images~f:WorkspaceImageList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletimages=(Option.map~f:WorkspaceImageList.of_xml)(Xml.childxml_arg0"Images")inmake?nextToken?images()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletimages=field_mapjson__"Images"WorkspaceImageList.of_jsoninmake?nextToken?images()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list that describes one or more specified images, if the image identifiers are provided. Otherwise, all images in the account are described."]moduleDescribeWorkspaceImagesRequest=structtypenonrect={imageIds:WorkspaceImageIdList.toption[@ocaml.doc"The identifier of the image."];imageType:ImageType.toption[@ocaml.doc"The type (owned or shared) of the image."];nextToken:PaginationToken.toption[@ocaml.doc"If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results."];maxResults:Limit.toption[@ocaml.doc"The maximum number of items to return."]}letmake?imageIds=fun?imageType->fun?nextToken->fun?maxResults->fun()->{imageIds;imageType;nextToken;maxResults}letto_valuex=structure_to_value[("ImageIds",(Option.mapx.imageIds~f:WorkspaceImageIdList.to_value));("ImageType",(Option.mapx.imageType~f:ImageType.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:Limit.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:Limit.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletimageType=(Option.map~f:ImageType.of_xml)(Xml.childxml_arg0"ImageType")inletimageIds=(Option.map~f:WorkspaceImageIdList.of_xml)(Xml.childxml_arg0"ImageIds")inmake?maxResults?nextToken?imageType?imageIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"Limit.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletimageType=field_mapjson__"ImageType"ImageType.of_jsoninletimageIds=field_mapjson__"ImageIds"WorkspaceImageIdList.of_jsoninmake?maxResults?nextToken?imageType?imageIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list that describes one or more specified images, if the image identifiers are provided. Otherwise, all images in the account are described."]moduleDescribeWorkspaceImagePermissionsResult=structtypenonrect={imageId:WorkspaceImageId.toption[@ocaml.doc"The identifier of the image."];imagePermissions:ImagePermissions.toption[@ocaml.doc"The identifiers of the Amazon Web Services accounts that the image has been shared with."];nextToken:PaginationToken.toption[@ocaml.doc"The token to use to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?imageId=fun?imagePermissions->fun?nextToken->fun()->{imageId;imagePermissions;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ImageId",(Option.mapx.imageId~f:WorkspaceImageId.to_value));("ImagePermissions",(Option.mapx.imagePermissions~f:ImagePermissions.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletimagePermissions=(Option.map~f:ImagePermissions.of_xml)(Xml.childxml_arg0"ImagePermissions")inletimageId=(Option.map~f:WorkspaceImageId.of_xml)(Xml.childxml_arg0"ImageId")inmake?nextToken?imagePermissions?imageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletimagePermissions=field_mapjson__"ImagePermissions"ImagePermissions.of_jsoninletimageId=field_mapjson__"ImageId"WorkspaceImageId.of_jsoninmake?nextToken?imagePermissions?imageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the permissions that the owner of an image has granted to other Amazon Web Services accounts for an image."]moduleDescribeWorkspaceImagePermissionsRequest=structtypenonrect={imageId:WorkspaceImageId.t[@ocaml.doc"The identifier of the image."];nextToken:PaginationToken.toption[@ocaml.doc"If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results."];maxResults:Limit.toption[@ocaml.doc"The maximum number of items to return."]}letcontext_="DescribeWorkspaceImagePermissionsRequest"letmake?nextToken=fun?maxResults->fun~imageId->fun()->{nextToken;maxResults;imageId}letto_valuex=structure_to_value[("ImageId",(Some(WorkspaceImageId.to_valuex.imageId)));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:Limit.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:Limit.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletimageId=WorkspaceImageId.of_xml(Xml.child_exn~context:context_xml_arg0"ImageId")inmake?maxResults?nextToken~imageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"Limit.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletimageId=field_map_exnjson__"ImageId"WorkspaceImageId.of_jsoninmake?maxResults?nextToken~imageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the permissions that the owner of an image has granted to other Amazon Web Services accounts for an image."]moduleDescribeWorkspaceDirectoriesResult=structtypenonrect={directories:DirectoryList.toption[@ocaml.doc"Information about the directories."];nextToken:PaginationToken.toption[@ocaml.doc"The token to use to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`Unknown_operation_errorof(string*stringoption)]letmake?directories=fun?nextToken->fun()->{directories;nextToken}leterror_of_jsonnamejson=matchnamewith|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Directories",(Option.mapx.directories~f:DirectoryList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletdirectories=(Option.map~f:DirectoryList.of_xml)(Xml.childxml_arg0"Directories")inmake?nextToken?directories()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletdirectories=field_mapjson__"Directories"DirectoryList.of_jsoninmake?nextToken?directories()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the available directories that are registered with Amazon WorkSpaces."]moduleDescribeWorkspaceDirectoriesRequest=structtypenonrect={directoryIds:DirectoryIdList.toption[@ocaml.doc"The identifiers of the directories. If the value is null, all directories are retrieved."];workspaceDirectoryNames:WorkspaceDirectoryNameList.toption[@ocaml.doc"The names of the WorkSpace directories."];limit:Limit.toption[@ocaml.doc"The maximum number of directories to return."];nextToken:PaginationToken.toption[@ocaml.doc"If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results."];filters:DescribeWorkspaceDirectoriesFilterList.toption[@ocaml.doc"The filter condition for the WorkSpaces."]}letmake?directoryIds=fun?workspaceDirectoryNames->fun?limit->fun?nextToken->fun?filters->fun()->{directoryIds;workspaceDirectoryNames;limit;nextToken;filters}letto_valuex=structure_to_value[("DirectoryIds",(Option.mapx.directoryIds~f:DirectoryIdList.to_value));("WorkspaceDirectoryNames",(Option.mapx.workspaceDirectoryNames~f:WorkspaceDirectoryNameList.to_value));("Limit",(Option.mapx.limit~f:Limit.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("Filters",(Option.mapx.filters~f:DescribeWorkspaceDirectoriesFilterList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfilters=(Option.map~f:DescribeWorkspaceDirectoriesFilterList.of_xml)(Xml.childxml_arg0"Filters")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletlimit=(Option.map~f:Limit.of_xml)(Xml.childxml_arg0"Limit")inletworkspaceDirectoryNames=(Option.map~f:WorkspaceDirectoryNameList.of_xml)(Xml.childxml_arg0"WorkspaceDirectoryNames")inletdirectoryIds=(Option.map~f:DirectoryIdList.of_xml)(Xml.childxml_arg0"DirectoryIds")inmake?filters?nextToken?limit?workspaceDirectoryNames?directoryIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfilters=field_mapjson__"Filters"DescribeWorkspaceDirectoriesFilterList.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletlimit=field_mapjson__"Limit"Limit.of_jsoninletworkspaceDirectoryNames=field_mapjson__"WorkspaceDirectoryNames"WorkspaceDirectoryNameList.of_jsoninletdirectoryIds=field_mapjson__"DirectoryIds"DirectoryIdList.of_jsoninmake?filters?nextToken?limit?workspaceDirectoryNames?directoryIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the available directories that are registered with Amazon WorkSpaces."]moduleDescribeWorkspaceBundlesResult=structtypenonrect={bundles:BundleList.toption[@ocaml.doc"Information about the bundles."];nextToken:PaginationToken.toption[@ocaml.doc"The token to use to retrieve the next page of results. This value is null when there are no more results to return. This token is valid for one day and must be used within that time frame."]}typenonrecerror=[`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`Unknown_operation_errorof(string*stringoption)]letmake?bundles=fun?nextToken->fun()->{bundles;nextToken}leterror_of_jsonnamejson=matchnamewith|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Bundles",(Option.mapx.bundles~f:BundleList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletbundles=(Option.map~f:BundleList.of_xml)(Xml.childxml_arg0"Bundles")inmake?nextToken?bundles()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletbundles=field_mapjson__"Bundles"BundleList.of_jsoninmake?nextToken?bundles()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list that describes the available WorkSpace bundles. You can filter the results using either bundle ID or owner, but not both."]moduleDescribeWorkspaceBundlesRequest=structtypenonrect={bundleIds:BundleIdList.toption[@ocaml.doc"The identifiers of the bundles. You cannot combine this parameter with any other filter."];owner:BundleOwner.toption[@ocaml.doc"The owner of the bundles. You cannot combine this parameter with any other filter. To describe the bundles provided by Amazon Web Services, specify AMAZON. To describe the bundles that belong to your account, don't specify a value."];nextToken:PaginationToken.toption[@ocaml.doc"The token for the next set of results. (You received this token from a previous call.)"]}letmake?bundleIds=fun?owner->fun?nextToken->fun()->{bundleIds;owner;nextToken}letto_valuex=structure_to_value[("BundleIds",(Option.mapx.bundleIds~f:BundleIdList.to_value));("Owner",(Option.mapx.owner~f:BundleOwner.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletowner=(Option.map~f:BundleOwner.of_xml)(Xml.childxml_arg0"Owner")inletbundleIds=(Option.map~f:BundleIdList.of_xml)(Xml.childxml_arg0"BundleIds")inmake?nextToken?owner?bundleIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletowner=field_mapjson__"Owner"BundleOwner.of_jsoninletbundleIds=field_mapjson__"BundleIds"BundleIdList.of_jsoninmake?nextToken?owner?bundleIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list that describes the available WorkSpace bundles. You can filter the results using either bundle ID or owner, but not both."]moduleDescribeWorkspaceAssociationsResult=structtypenonrect={associations:WorkspaceResourceAssociationList.toption[@ocaml.doc"List of information about the specified associations."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?associations=fun()->{associations}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Associations",(Option.mapx.associations~f:WorkspaceResourceAssociationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassociations=(Option.map~f:WorkspaceResourceAssociationList.of_xml)(Xml.childxml_arg0"Associations")inmake?associations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassociations=field_mapjson__"Associations"WorkspaceResourceAssociationList.of_jsoninmake?associations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the associations betweens applications and the specified WorkSpace."]moduleDescribeWorkspaceAssociationsRequest=structtypenonrect={workspaceId:WorkspaceId.t[@ocaml.doc"The identifier of the WorkSpace."];associatedResourceTypes:WorkSpaceAssociatedResourceTypeList.t[@ocaml.doc"The resource types of the associated resources."]}letcontext_="DescribeWorkspaceAssociationsRequest"letmake~workspaceId=fun~associatedResourceTypes->fun()->{workspaceId;associatedResourceTypes}letto_valuex=structure_to_value[("WorkspaceId",(Some(WorkspaceId.to_valuex.workspaceId)));("AssociatedResourceTypes",(Some(WorkSpaceAssociatedResourceTypeList.to_valuex.associatedResourceTypes)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassociatedResourceTypes=WorkSpaceAssociatedResourceTypeList.of_xml(Xml.child_exn~context:context_xml_arg0"AssociatedResourceTypes")inletworkspaceId=WorkspaceId.of_xml(Xml.child_exn~context:context_xml_arg0"WorkspaceId")inmake~associatedResourceTypes~workspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassociatedResourceTypes=field_map_exnjson__"AssociatedResourceTypes"WorkSpaceAssociatedResourceTypeList.of_jsoninletworkspaceId=field_map_exnjson__"WorkspaceId"WorkspaceId.of_jsoninmake~associatedResourceTypes~workspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the associations betweens applications and the specified WorkSpace."]moduleDescribeTagsResult=structtypenonrect={tagList:TagList.toption[@ocaml.doc"The tags."]}typenonrecerror=[`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tagList=fun()->{tagList}leterror_of_jsonnamejson=matchnamewith|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("TagList",(Option.mapx.tagList~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagList=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"TagList")inmake?tagList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagList=field_mapjson__"TagList"TagList.of_jsoninmake?tagList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the specified tags for the specified WorkSpaces resource."]moduleDescribeTagsRequest=structtypenonrect={resourceId:NonEmptyString.t[@ocaml.doc"The identifier of the WorkSpaces resource. The supported resource types are WorkSpaces, registered directories, images, custom bundles, IP access control groups, and connection aliases."]}letcontext_="DescribeTagsRequest"letmake~resourceId=fun()->{resourceId}letto_valuex=structure_to_value[("ResourceId",(Some(NonEmptyString.to_valuex.resourceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceId")inmake~resourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceId=field_map_exnjson__"ResourceId"NonEmptyString.of_jsoninmake~resourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the specified tags for the specified WorkSpaces resource."]moduleDescribeIpGroupsResult=structtypenonrect={result:WorkspacesIpGroupsList.toption[@ocaml.doc"Information about the IP access control groups."];nextToken:PaginationToken.toption[@ocaml.doc"The token to use to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`Unknown_operation_errorof(string*stringoption)]letmake?result=fun?nextToken->fun()->{result;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Result",(Option.mapx.result~f:WorkspacesIpGroupsList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletresult=(Option.map~f:WorkspacesIpGroupsList.of_xml)(Xml.childxml_arg0"Result")inmake?nextToken?result()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletresult=field_mapjson__"Result"WorkspacesIpGroupsList.of_jsoninmake?nextToken?result()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes one or more of your IP access control groups."]moduleDescribeIpGroupsRequest=structtypenonrect={groupIds:IpGroupIdList.toption[@ocaml.doc"The identifiers of one or more IP access control groups."];nextToken:PaginationToken.toption[@ocaml.doc"If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results."];maxResults:Limit.toption[@ocaml.doc"The maximum number of items to return."]}letmake?groupIds=fun?nextToken->fun?maxResults->fun()->{groupIds;nextToken;maxResults}letto_valuex=structure_to_value[("GroupIds",(Option.mapx.groupIds~f:IpGroupIdList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:Limit.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:Limit.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletgroupIds=(Option.map~f:IpGroupIdList.of_xml)(Xml.childxml_arg0"GroupIds")inmake?maxResults?nextToken?groupIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"Limit.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletgroupIds=field_mapjson__"GroupIds"IpGroupIdList.of_jsoninmake?maxResults?nextToken?groupIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes one or more of your IP access control groups."]moduleDescribeImageAssociationsResult=structtypenonrect={associations:ImageResourceAssociationList.toption[@ocaml.doc"List of information about the specified associations."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?associations=fun()->{associations}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Associations",(Option.mapx.associations~f:ImageResourceAssociationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassociations=(Option.map~f:ImageResourceAssociationList.of_xml)(Xml.childxml_arg0"Associations")inmake?associations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassociations=field_mapjson__"Associations"ImageResourceAssociationList.of_jsoninmake?associations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the associations between the applications and the specified image."]moduleDescribeImageAssociationsRequest=structtypenonrect={imageId:WorkspaceImageId.t[@ocaml.doc"The identifier of the image."];associatedResourceTypes:ImageAssociatedResourceTypeList.t[@ocaml.doc"The resource types of the associated resource."]}letcontext_="DescribeImageAssociationsRequest"letmake~imageId=fun~associatedResourceTypes->fun()->{imageId;associatedResourceTypes}letto_valuex=structure_to_value[("ImageId",(Some(WorkspaceImageId.to_valuex.imageId)));("AssociatedResourceTypes",(Some(ImageAssociatedResourceTypeList.to_valuex.associatedResourceTypes)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassociatedResourceTypes=ImageAssociatedResourceTypeList.of_xml(Xml.child_exn~context:context_xml_arg0"AssociatedResourceTypes")inletimageId=WorkspaceImageId.of_xml(Xml.child_exn~context:context_xml_arg0"ImageId")inmake~associatedResourceTypes~imageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassociatedResourceTypes=field_map_exnjson__"AssociatedResourceTypes"ImageAssociatedResourceTypeList.of_jsoninletimageId=field_map_exnjson__"ImageId"WorkspaceImageId.of_jsoninmake~associatedResourceTypes~imageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the associations between the applications and the specified image."]moduleDescribeCustomWorkspaceImageImportResult=structtypenonrect={imageId:WorkspaceImageId.toption[@ocaml.doc"The identifier of the WorkSpace image."];infrastructureConfigurationArn:InfrastructureConfigurationArn.toption[@ocaml.doc"The infrastructure configuration ARN that specifies how the WorkSpace image is built."];state:CustomWorkspaceImageImportState.toption[@ocaml.doc"The state of the WorkSpace image."];stateMessage:WorkflowStateMessage.toption[@ocaml.doc"The state message of the WorkSpace image import workflow."];progressPercentage:Percentage.toption[@ocaml.doc"The estimated progress percentage of the WorkSpace image import workflow."];created:Timestamp.toption[@ocaml.doc"The timestamp when the WorkSpace image import was created."];lastUpdatedTime:Timestamp.toption[@ocaml.doc"The timestamp when the WorkSpace image import was last updated."];imageSource:ImageSourceIdentifier.toption[@ocaml.doc"Describes the image import source."];imageBuilderInstanceId:NonEmptyString.toption[@ocaml.doc"The image builder instance ID of the WorkSpace image."];errorDetails:CustomWorkspaceImageImportErrorDetailsList.toption[@ocaml.doc"Describes in-depth details about the error. These details include the possible causes of the error and troubleshooting information."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?imageId=fun?infrastructureConfigurationArn->fun?state->fun?stateMessage->fun?progressPercentage->fun?created->fun?lastUpdatedTime->fun?imageSource->fun?imageBuilderInstanceId->fun?errorDetails->fun()->{imageId;infrastructureConfigurationArn;state;stateMessage;progressPercentage;created;lastUpdatedTime;imageSource;imageBuilderInstanceId;errorDetails}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ImageId",(Option.mapx.imageId~f:WorkspaceImageId.to_value));("InfrastructureConfigurationArn",(Option.mapx.infrastructureConfigurationArn~f:InfrastructureConfigurationArn.to_value));("State",(Option.mapx.state~f:CustomWorkspaceImageImportState.to_value));("StateMessage",(Option.mapx.stateMessage~f:WorkflowStateMessage.to_value));("ProgressPercentage",(Option.mapx.progressPercentage~f:Percentage.to_value));("Created",(Option.mapx.created~f:Timestamp.to_value));("LastUpdatedTime",(Option.mapx.lastUpdatedTime~f:Timestamp.to_value));("ImageSource",(Option.mapx.imageSource~f:ImageSourceIdentifier.to_value));("ImageBuilderInstanceId",(Option.mapx.imageBuilderInstanceId~f:NonEmptyString.to_value));("ErrorDetails",(Option.mapx.errorDetails~f:CustomWorkspaceImageImportErrorDetailsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorDetails=(Option.map~f:CustomWorkspaceImageImportErrorDetailsList.of_xml)(Xml.childxml_arg0"ErrorDetails")inletimageBuilderInstanceId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"ImageBuilderInstanceId")inletimageSource=(Option.map~f:ImageSourceIdentifier.of_xml)(Xml.childxml_arg0"ImageSource")inletlastUpdatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastUpdatedTime")inletcreated=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"Created")inletprogressPercentage=(Option.map~f:Percentage.of_xml)(Xml.childxml_arg0"ProgressPercentage")inletstateMessage=(Option.map~f:WorkflowStateMessage.of_xml)(Xml.childxml_arg0"StateMessage")inletstate=(Option.map~f:CustomWorkspaceImageImportState.of_xml)(Xml.childxml_arg0"State")inletinfrastructureConfigurationArn=(Option.map~f:InfrastructureConfigurationArn.of_xml)(Xml.childxml_arg0"InfrastructureConfigurationArn")inletimageId=(Option.map~f:WorkspaceImageId.of_xml)(Xml.childxml_arg0"ImageId")inmake?errorDetails?imageBuilderInstanceId?imageSource?lastUpdatedTime?created?progressPercentage?stateMessage?state?infrastructureConfigurationArn?imageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorDetails=field_mapjson__"ErrorDetails"CustomWorkspaceImageImportErrorDetailsList.of_jsoninletimageBuilderInstanceId=field_mapjson__"ImageBuilderInstanceId"NonEmptyString.of_jsoninletimageSource=field_mapjson__"ImageSource"ImageSourceIdentifier.of_jsoninletlastUpdatedTime=field_mapjson__"LastUpdatedTime"Timestamp.of_jsoninletcreated=field_mapjson__"Created"Timestamp.of_jsoninletprogressPercentage=field_mapjson__"ProgressPercentage"Percentage.of_jsoninletstateMessage=field_mapjson__"StateMessage"WorkflowStateMessage.of_jsoninletstate=field_mapjson__"State"CustomWorkspaceImageImportState.of_jsoninletinfrastructureConfigurationArn=field_mapjson__"InfrastructureConfigurationArn"InfrastructureConfigurationArn.of_jsoninletimageId=field_mapjson__"ImageId"WorkspaceImageId.of_jsoninmake?errorDetails?imageBuilderInstanceId?imageSource?lastUpdatedTime?created?progressPercentage?stateMessage?state?infrastructureConfigurationArn?imageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves information about a WorkSpace BYOL image being imported via ImportCustomWorkspaceImage."]moduleDescribeCustomWorkspaceImageImportRequest=structtypenonrect={imageId:WorkspaceImageId.t[@ocaml.doc"The identifier of the WorkSpace image."]}letcontext_="DescribeCustomWorkspaceImageImportRequest"letmake~imageId=fun()->{imageId}letto_valuex=structure_to_value[("ImageId",(Some(WorkspaceImageId.to_valuex.imageId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letimageId=WorkspaceImageId.of_xml(Xml.child_exn~context:context_xml_arg0"ImageId")inmake~imageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letimageId=field_map_exnjson__"ImageId"WorkspaceImageId.of_jsoninmake~imageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves information about a WorkSpace BYOL image being imported via ImportCustomWorkspaceImage."]moduleDescribeConnectionAliasesResult=structtypenonrect={connectionAliases:ConnectionAliasList.toption[@ocaml.doc"Information about the specified connection aliases."];nextToken:PaginationToken.toption[@ocaml.doc"The token to use to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`Unknown_operation_errorof(string*stringoption)]letmake?connectionAliases=fun?nextToken->fun()->{connectionAliases;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ConnectionAliases",(Option.mapx.connectionAliases~f:ConnectionAliasList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletconnectionAliases=(Option.map~f:ConnectionAliasList.of_xml)(Xml.childxml_arg0"ConnectionAliases")inmake?nextToken?connectionAliases()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletconnectionAliases=field_mapjson__"ConnectionAliases"ConnectionAliasList.of_jsoninmake?nextToken?connectionAliases()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list that describes the connection aliases used for cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces."]moduleDescribeConnectionAliasesRequest=structtypenonrect={aliasIds:ConnectionAliasIdList.toption[@ocaml.doc"The identifiers of the connection aliases to describe."];resourceId:NonEmptyString.toption[@ocaml.doc"The identifier of the directory associated with the connection alias."];limit:Limit.toption[@ocaml.doc"The maximum number of connection aliases to return."];nextToken:PaginationToken.toption[@ocaml.doc"If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results."]}letmake?aliasIds=fun?resourceId->fun?limit->fun?nextToken->fun()->{aliasIds;resourceId;limit;nextToken}letto_valuex=structure_to_value[("AliasIds",(Option.mapx.aliasIds~f:ConnectionAliasIdList.to_value));("ResourceId",(Option.mapx.resourceId~f:NonEmptyString.to_value));("Limit",(Option.mapx.limit~f:Limit.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletlimit=(Option.map~f:Limit.of_xml)(Xml.childxml_arg0"Limit")inletresourceId=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"ResourceId")inletaliasIds=(Option.map~f:ConnectionAliasIdList.of_xml)(Xml.childxml_arg0"AliasIds")inmake?nextToken?limit?resourceId?aliasIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletlimit=field_mapjson__"Limit"Limit.of_jsoninletresourceId=field_mapjson__"ResourceId"NonEmptyString.of_jsoninletaliasIds=field_mapjson__"AliasIds"ConnectionAliasIdList.of_jsoninmake?nextToken?limit?resourceId?aliasIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list that describes the connection aliases used for cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces."]moduleDescribeConnectionAliasPermissionsResult=structtypenonrect={aliasId:ConnectionAliasId.toption[@ocaml.doc"The identifier of the connection alias."];connectionAliasPermissions:ConnectionAliasPermissions.toption[@ocaml.doc"The permissions associated with a connection alias."];nextToken:PaginationToken.toption[@ocaml.doc"The token to use to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?aliasId=fun?connectionAliasPermissions->fun?nextToken->fun()->{aliasId;connectionAliasPermissions;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AliasId",(Option.mapx.aliasId~f:ConnectionAliasId.to_value));("ConnectionAliasPermissions",(Option.mapx.connectionAliasPermissions~f:ConnectionAliasPermissions.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletconnectionAliasPermissions=(Option.map~f:ConnectionAliasPermissions.of_xml)(Xml.childxml_arg0"ConnectionAliasPermissions")inletaliasId=(Option.map~f:ConnectionAliasId.of_xml)(Xml.childxml_arg0"AliasId")inmake?nextToken?connectionAliasPermissions?aliasId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletconnectionAliasPermissions=field_mapjson__"ConnectionAliasPermissions"ConnectionAliasPermissions.of_jsoninletaliasId=field_mapjson__"AliasId"ConnectionAliasId.of_jsoninmake?nextToken?connectionAliasPermissions?aliasId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the permissions that the owner of a connection alias has granted to another Amazon Web Services account for the specified connection alias. For more information, see Cross-Region Redirection for Amazon WorkSpaces."]moduleDescribeConnectionAliasPermissionsRequest=structtypenonrect={aliasId:ConnectionAliasId.t[@ocaml.doc"The identifier of the connection alias."];nextToken:PaginationToken.toption[@ocaml.doc"If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results."];maxResults:Limit.toption[@ocaml.doc"The maximum number of results to return."]}letcontext_="DescribeConnectionAliasPermissionsRequest"letmake?nextToken=fun?maxResults->fun~aliasId->fun()->{nextToken;maxResults;aliasId}letto_valuex=structure_to_value[("AliasId",(Some(ConnectionAliasId.to_valuex.aliasId)));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:Limit.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:Limit.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletaliasId=ConnectionAliasId.of_xml(Xml.child_exn~context:context_xml_arg0"AliasId")inmake?maxResults?nextToken~aliasId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"Limit.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletaliasId=field_map_exnjson__"AliasId"ConnectionAliasId.of_jsoninmake?maxResults?nextToken~aliasId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the permissions that the owner of a connection alias has granted to another Amazon Web Services account for the specified connection alias. For more information, see Cross-Region Redirection for Amazon WorkSpaces."]moduleDescribeConnectClientAddInsResult=structtypenonrect={addIns:ConnectClientAddInList.toption[@ocaml.doc"Information about client add-ins."];nextToken:PaginationToken.toption[@ocaml.doc"The token to use to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?addIns=fun?nextToken->fun()->{addIns;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AddIns",(Option.mapx.addIns~f:ConnectClientAddInList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletaddIns=(Option.map~f:ConnectClientAddInList.of_xml)(Xml.childxml_arg0"AddIns")inmake?nextToken?addIns()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletaddIns=field_mapjson__"AddIns"ConnectClientAddInList.of_jsoninmake?nextToken?addIns()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of Amazon Connect client add-ins that have been created."]moduleDescribeConnectClientAddInsRequest=structtypenonrect={resourceId:DirectoryId.t[@ocaml.doc"The directory identifier for which the client add-in is configured."];nextToken:PaginationToken.toption[@ocaml.doc"If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results."];maxResults:Limit.toption[@ocaml.doc"The maximum number of items to return."]}letcontext_="DescribeConnectClientAddInsRequest"letmake?nextToken=fun?maxResults->fun~resourceId->fun()->{nextToken;maxResults;resourceId}letto_valuex=structure_to_value[("ResourceId",(Some(DirectoryId.to_valuex.resourceId)));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:Limit.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:Limit.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletresourceId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceId")inmake?maxResults?nextToken~resourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"Limit.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletresourceId=field_map_exnjson__"ResourceId"DirectoryId.of_jsoninmake?maxResults?nextToken~resourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of Amazon Connect client add-ins that have been created."]moduleDescribeClientPropertiesResult=structtypenonrect={clientPropertiesList:ClientPropertiesList.toption[@ocaml.doc"Information about the specified Amazon WorkSpaces clients."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?clientPropertiesList=fun()->{clientPropertiesList}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ClientPropertiesList",(Option.mapx.clientPropertiesList~f:ClientPropertiesList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientPropertiesList=(Option.map~f:ClientPropertiesList.of_xml)(Xml.childxml_arg0"ClientPropertiesList")inmake?clientPropertiesList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientPropertiesList=field_mapjson__"ClientPropertiesList"ClientPropertiesList.of_jsoninmake?clientPropertiesList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list that describes one or more specified Amazon WorkSpaces clients."]moduleDescribeClientPropertiesRequest=structtypenonrect={resourceIds:ResourceIdList.t[@ocaml.doc"The resource identifier, in the form of directory IDs."]}letcontext_="DescribeClientPropertiesRequest"letmake~resourceIds=fun()->{resourceIds}letto_valuex=structure_to_value[("ResourceIds",(Some(ResourceIdList.to_valuex.resourceIds)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceIds=ResourceIdList.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceIds")inmake~resourceIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceIds=field_map_exnjson__"ResourceIds"ResourceIdList.of_jsoninmake~resourceIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list that describes one or more specified Amazon WorkSpaces clients."]moduleDescribeClientBrandingResult=structtypenonrect={deviceTypeWindows:DefaultClientBrandingAttributes.toption[@ocaml.doc"The branding information for Windows devices."];deviceTypeOsx:DefaultClientBrandingAttributes.toption[@ocaml.doc"The branding information for macOS devices."];deviceTypeAndroid:DefaultClientBrandingAttributes.toption[@ocaml.doc"The branding information for Android devices."];deviceTypeIos:IosClientBrandingAttributes.toption[@ocaml.doc"The branding information for iOS devices."];deviceTypeLinux:DefaultClientBrandingAttributes.toption[@ocaml.doc"The branding information for Linux devices."];deviceTypeWeb:DefaultClientBrandingAttributes.toption[@ocaml.doc"The branding information for Web access."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?deviceTypeWindows=fun?deviceTypeOsx->fun?deviceTypeAndroid->fun?deviceTypeIos->fun?deviceTypeLinux->fun?deviceTypeWeb->fun()->{deviceTypeWindows;deviceTypeOsx;deviceTypeAndroid;deviceTypeIos;deviceTypeLinux;deviceTypeWeb}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("DeviceTypeWindows",(Option.mapx.deviceTypeWindows~f:DefaultClientBrandingAttributes.to_value));("DeviceTypeOsx",(Option.mapx.deviceTypeOsx~f:DefaultClientBrandingAttributes.to_value));("DeviceTypeAndroid",(Option.mapx.deviceTypeAndroid~f:DefaultClientBrandingAttributes.to_value));("DeviceTypeIos",(Option.mapx.deviceTypeIos~f:IosClientBrandingAttributes.to_value));("DeviceTypeLinux",(Option.mapx.deviceTypeLinux~f:DefaultClientBrandingAttributes.to_value));("DeviceTypeWeb",(Option.mapx.deviceTypeWeb~f:DefaultClientBrandingAttributes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeviceTypeWeb=(Option.map~f:DefaultClientBrandingAttributes.of_xml)(Xml.childxml_arg0"DeviceTypeWeb")inletdeviceTypeLinux=(Option.map~f:DefaultClientBrandingAttributes.of_xml)(Xml.childxml_arg0"DeviceTypeLinux")inletdeviceTypeIos=(Option.map~f:IosClientBrandingAttributes.of_xml)(Xml.childxml_arg0"DeviceTypeIos")inletdeviceTypeAndroid=(Option.map~f:DefaultClientBrandingAttributes.of_xml)(Xml.childxml_arg0"DeviceTypeAndroid")inletdeviceTypeOsx=(Option.map~f:DefaultClientBrandingAttributes.of_xml)(Xml.childxml_arg0"DeviceTypeOsx")inletdeviceTypeWindows=(Option.map~f:DefaultClientBrandingAttributes.of_xml)(Xml.childxml_arg0"DeviceTypeWindows")inmake?deviceTypeWeb?deviceTypeLinux?deviceTypeIos?deviceTypeAndroid?deviceTypeOsx?deviceTypeWindows()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeviceTypeWeb=field_mapjson__"DeviceTypeWeb"DefaultClientBrandingAttributes.of_jsoninletdeviceTypeLinux=field_mapjson__"DeviceTypeLinux"DefaultClientBrandingAttributes.of_jsoninletdeviceTypeIos=field_mapjson__"DeviceTypeIos"IosClientBrandingAttributes.of_jsoninletdeviceTypeAndroid=field_mapjson__"DeviceTypeAndroid"DefaultClientBrandingAttributes.of_jsoninletdeviceTypeOsx=field_mapjson__"DeviceTypeOsx"DefaultClientBrandingAttributes.of_jsoninletdeviceTypeWindows=field_mapjson__"DeviceTypeWindows"DefaultClientBrandingAttributes.of_jsoninmake?deviceTypeWeb?deviceTypeLinux?deviceTypeIos?deviceTypeAndroid?deviceTypeOsx?deviceTypeWindows()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the specified client branding. Client branding allows you to customize the log in page of various device types for your users. You can add your company logo, the support email address, support link, link to reset password, and a custom message for users trying to sign in. Only device types that have branding information configured will be shown in the response."]moduleDescribeClientBrandingRequest=structtypenonrect={resourceId:DirectoryId.t[@ocaml.doc"The directory identifier of the WorkSpace for which you want to view client branding information."]}letcontext_="DescribeClientBrandingRequest"letmake~resourceId=fun()->{resourceId}letto_valuex=structure_to_value[("ResourceId",(Some(DirectoryId.to_valuex.resourceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceId")inmake~resourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceId=field_map_exnjson__"ResourceId"DirectoryId.of_jsoninmake~resourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the specified client branding. Client branding allows you to customize the log in page of various device types for your users. You can add your company logo, the support email address, support link, link to reset password, and a custom message for users trying to sign in. Only device types that have branding information configured will be shown in the response."]moduleDescribeBundleAssociationsResult=structtypenonrect={associations:BundleResourceAssociationList.toption[@ocaml.doc"List of information about the specified associations."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?associations=fun()->{associations}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Associations",(Option.mapx.associations~f:BundleResourceAssociationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassociations=(Option.map~f:BundleResourceAssociationList.of_xml)(Xml.childxml_arg0"Associations")inmake?associations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassociations=field_mapjson__"Associations"BundleResourceAssociationList.of_jsoninmake?associations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the associations between the applications and the specified bundle."]moduleDescribeBundleAssociationsRequest=structtypenonrect={bundleId:BundleId.t[@ocaml.doc"The identifier of the bundle."];associatedResourceTypes:BundleAssociatedResourceTypeList.t[@ocaml.doc"The resource types of the associated resource."]}letcontext_="DescribeBundleAssociationsRequest"letmake~bundleId=fun~associatedResourceTypes->fun()->{bundleId;associatedResourceTypes}letto_valuex=structure_to_value[("BundleId",(Some(BundleId.to_valuex.bundleId)));("AssociatedResourceTypes",(Some(BundleAssociatedResourceTypeList.to_valuex.associatedResourceTypes)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassociatedResourceTypes=BundleAssociatedResourceTypeList.of_xml(Xml.child_exn~context:context_xml_arg0"AssociatedResourceTypes")inletbundleId=BundleId.of_xml(Xml.child_exn~context:context_xml_arg0"BundleId")inmake~associatedResourceTypes~bundleId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassociatedResourceTypes=field_map_exnjson__"AssociatedResourceTypes"BundleAssociatedResourceTypeList.of_jsoninletbundleId=field_map_exnjson__"BundleId"BundleId.of_jsoninmake~associatedResourceTypes~bundleId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the associations between the applications and the specified bundle."]moduleDescribeApplicationsResult=structtypenonrect={applications:WorkSpaceApplicationList.toption[@ocaml.doc"List of information about the specified applications."];nextToken:PaginationToken.toption[@ocaml.doc"If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?applications=fun?nextToken->fun()->{applications;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Applications",(Option.mapx.applications~f:WorkSpaceApplicationList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletapplications=(Option.map~f:WorkSpaceApplicationList.of_xml)(Xml.childxml_arg0"Applications")inmake?nextToken?applications()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletapplications=field_mapjson__"Applications"WorkSpaceApplicationList.of_jsoninmake?nextToken?applications()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the specified applications by filtering based on their compute types, license availability, operating systems, and owners."]moduleDescribeApplicationsRequest=structtypenonrect={applicationIds:WorkSpaceApplicationIdList.toption[@ocaml.doc"The identifiers of one or more applications."];computeTypeNames:ComputeList.toption[@ocaml.doc"The compute types supported by the applications."];licenseType:WorkSpaceApplicationLicenseType.toption[@ocaml.doc"The license availability for the applications."];operatingSystemNames:OperatingSystemNameList.toption[@ocaml.doc"The operating systems supported by the applications."];owner:WorkSpaceApplicationOwner.toption[@ocaml.doc"The owner of the applications."];maxResults:Limit.toption[@ocaml.doc"The maximum number of applications to return."];nextToken:PaginationToken.toption[@ocaml.doc"If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results."]}letmake?applicationIds=fun?computeTypeNames->fun?licenseType->fun?operatingSystemNames->fun?owner->fun?maxResults->fun?nextToken->fun()->{applicationIds;computeTypeNames;licenseType;operatingSystemNames;owner;maxResults;nextToken}letto_valuex=structure_to_value[("ApplicationIds",(Option.mapx.applicationIds~f:WorkSpaceApplicationIdList.to_value));("ComputeTypeNames",(Option.mapx.computeTypeNames~f:ComputeList.to_value));("LicenseType",(Option.mapx.licenseType~f:WorkSpaceApplicationLicenseType.to_value));("OperatingSystemNames",(Option.mapx.operatingSystemNames~f:OperatingSystemNameList.to_value));("Owner",(Option.mapx.owner~f:WorkSpaceApplicationOwner.to_value));("MaxResults",(Option.mapx.maxResults~f:Limit.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:Limit.of_xml)(Xml.childxml_arg0"MaxResults")inletowner=(Option.map~f:WorkSpaceApplicationOwner.of_xml)(Xml.childxml_arg0"Owner")inletoperatingSystemNames=(Option.map~f:OperatingSystemNameList.of_xml)(Xml.childxml_arg0"OperatingSystemNames")inletlicenseType=(Option.map~f:WorkSpaceApplicationLicenseType.of_xml)(Xml.childxml_arg0"LicenseType")inletcomputeTypeNames=(Option.map~f:ComputeList.of_xml)(Xml.childxml_arg0"ComputeTypeNames")inletapplicationIds=(Option.map~f:WorkSpaceApplicationIdList.of_xml)(Xml.childxml_arg0"ApplicationIds")inmake?nextToken?maxResults?owner?operatingSystemNames?licenseType?computeTypeNames?applicationIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"Limit.of_jsoninletowner=field_mapjson__"Owner"WorkSpaceApplicationOwner.of_jsoninletoperatingSystemNames=field_mapjson__"OperatingSystemNames"OperatingSystemNameList.of_jsoninletlicenseType=field_mapjson__"LicenseType"WorkSpaceApplicationLicenseType.of_jsoninletcomputeTypeNames=field_mapjson__"ComputeTypeNames"ComputeList.of_jsoninletapplicationIds=field_mapjson__"ApplicationIds"WorkSpaceApplicationIdList.of_jsoninmake?nextToken?maxResults?owner?operatingSystemNames?licenseType?computeTypeNames?applicationIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the specified applications by filtering based on their compute types, license availability, operating systems, and owners."]moduleDescribeApplicationAssociationsResult=structtypenonrect={associations:ApplicationResourceAssociationList.toption[@ocaml.doc"List of associations and information about them."];nextToken:PaginationToken.toption[@ocaml.doc"If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?associations=fun?nextToken->fun()->{associations;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Associations",(Option.mapx.associations~f:ApplicationResourceAssociationList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletassociations=(Option.map~f:ApplicationResourceAssociationList.of_xml)(Xml.childxml_arg0"Associations")inmake?nextToken?associations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletassociations=field_mapjson__"Associations"ApplicationResourceAssociationList.of_jsoninmake?nextToken?associations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the associations between the application and the specified associated resources."]moduleDescribeApplicationAssociationsRequest=structtypenonrect={maxResults:Limit.toption[@ocaml.doc"The maximum number of associations to return."];nextToken:PaginationToken.toption[@ocaml.doc"If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results."];applicationId:WorkSpaceApplicationId.t[@ocaml.doc"The identifier of the specified application."];associatedResourceTypes:ApplicationAssociatedResourceTypeList.t[@ocaml.doc"The resource type of the associated resources."]}letcontext_="DescribeApplicationAssociationsRequest"letmake?maxResults=fun?nextToken->fun~applicationId->fun~associatedResourceTypes->fun()->{maxResults;nextToken;applicationId;associatedResourceTypes}letto_valuex=structure_to_value[("MaxResults",(Option.mapx.maxResults~f:Limit.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("ApplicationId",(Some(WorkSpaceApplicationId.to_valuex.applicationId)));("AssociatedResourceTypes",(Some(ApplicationAssociatedResourceTypeList.to_valuex.associatedResourceTypes)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassociatedResourceTypes=ApplicationAssociatedResourceTypeList.of_xml(Xml.child_exn~context:context_xml_arg0"AssociatedResourceTypes")inletapplicationId=WorkSpaceApplicationId.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationId")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:Limit.of_xml)(Xml.childxml_arg0"MaxResults")inmake~associatedResourceTypes~applicationId?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassociatedResourceTypes=field_map_exnjson__"AssociatedResourceTypes"ApplicationAssociatedResourceTypeList.of_jsoninletapplicationId=field_map_exnjson__"ApplicationId"WorkSpaceApplicationId.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"Limit.of_jsoninmake~associatedResourceTypes~applicationId?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the associations between the application and the specified associated resources."]moduleDescribeAccountResult=structtypenonrect={dedicatedTenancySupport:DedicatedTenancySupportResultEnum.toption[@ocaml.doc"The status of BYOL (whether BYOL is enabled or disabled)."];dedicatedTenancyManagementCidrRange:DedicatedTenancyManagementCidrRange.toption[@ocaml.doc"The IP address range, specified as an IPv4 CIDR block, used for the management network interface. The management network interface is connected to a secure Amazon WorkSpaces management network. It is used for interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and to allow Amazon WorkSpaces to manage the WorkSpace."];dedicatedTenancyAccountType:DedicatedTenancyAccountType.toption[@ocaml.doc"The type of linked account."];message:Message.toption[@ocaml.doc"The text message to describe the status of BYOL."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`Unknown_operation_errorof(string*stringoption)]letmake?dedicatedTenancySupport=fun?dedicatedTenancyManagementCidrRange->fun?dedicatedTenancyAccountType->fun?message->fun()->{dedicatedTenancySupport;dedicatedTenancyManagementCidrRange;dedicatedTenancyAccountType;message}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.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))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("DedicatedTenancySupport",(Option.mapx.dedicatedTenancySupport~f:DedicatedTenancySupportResultEnum.to_value));("DedicatedTenancyManagementCidrRange",(Option.mapx.dedicatedTenancyManagementCidrRange~f:DedicatedTenancyManagementCidrRange.to_value));("DedicatedTenancyAccountType",(Option.mapx.dedicatedTenancyAccountType~f:DedicatedTenancyAccountType.to_value));("Message",(Option.mapx.message~f:Message.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Message.of_xml)(Xml.childxml_arg0"Message")inletdedicatedTenancyAccountType=(Option.map~f:DedicatedTenancyAccountType.of_xml)(Xml.childxml_arg0"DedicatedTenancyAccountType")inletdedicatedTenancyManagementCidrRange=(Option.map~f:DedicatedTenancyManagementCidrRange.of_xml)(Xml.childxml_arg0"DedicatedTenancyManagementCidrRange")inletdedicatedTenancySupport=(Option.map~f:DedicatedTenancySupportResultEnum.of_xml)(Xml.childxml_arg0"DedicatedTenancySupport")inmake?message?dedicatedTenancyAccountType?dedicatedTenancyManagementCidrRange?dedicatedTenancySupport()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Message.of_jsoninletdedicatedTenancyAccountType=field_mapjson__"DedicatedTenancyAccountType"DedicatedTenancyAccountType.of_jsoninletdedicatedTenancyManagementCidrRange=field_mapjson__"DedicatedTenancyManagementCidrRange"DedicatedTenancyManagementCidrRange.of_jsoninletdedicatedTenancySupport=field_mapjson__"DedicatedTenancySupport"DedicatedTenancySupportResultEnum.of_jsoninmake?message?dedicatedTenancyAccountType?dedicatedTenancyManagementCidrRange?dedicatedTenancySupport()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list that describes the configuration of Bring Your Own License (BYOL) for the specified account."]moduleDescribeAccountRequest=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list that describes the configuration of Bring Your Own License (BYOL) for the specified account."]moduleDescribeAccountModificationsResult=structtypenonrect={accountModifications:AccountModificationList.toption[@ocaml.doc"The list of modifications to the configuration of BYOL."];nextToken:PaginationToken.toption[@ocaml.doc"The token to use to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accountModifications=fun?nextToken->fun()->{accountModifications;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.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))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AccountModifications",(Option.mapx.accountModifications~f:AccountModificationList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletaccountModifications=(Option.map~f:AccountModificationList.of_xml)(Xml.childxml_arg0"AccountModifications")inmake?nextToken?accountModifications()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletaccountModifications=field_mapjson__"AccountModifications"AccountModificationList.of_jsoninmake?nextToken?accountModifications()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list that describes modifications to the configuration of Bring Your Own License (BYOL) for the specified account."]moduleDescribeAccountModificationsRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results."]}letmake?nextToken=fun()->{nextToken}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list that describes modifications to the configuration of Bring Your Own License (BYOL) for the specified account."]moduleDeregisterWorkspaceDirectoryResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Deregisters the specified directory. This operation is asynchronous and returns before the WorkSpace directory is deregistered. If any WorkSpaces are registered to this directory, you must remove them before you can deregister the directory. Simple AD and AD Connector are made available to you free of charge to use with WorkSpaces. If there are no WorkSpaces being used with your Simple AD or AD Connector directory for 30 consecutive days, this directory will be automatically deregistered for use with Amazon WorkSpaces, and you will be charged for this directory as per the Directory Service pricing terms. To delete empty directories, see Delete the Directory for Your WorkSpaces. If you delete your Simple AD or AD Connector directory, you can always create a new one when you want to start using WorkSpaces again."]moduleDeregisterWorkspaceDirectoryRequest=structtypenonrect={directoryId:DirectoryId.t[@ocaml.doc"The identifier of the directory. If any WorkSpaces are registered to this directory, you must remove them before you deregister the directory, or you will receive an OperationNotSupportedException error."]}letcontext_="DeregisterWorkspaceDirectoryRequest"letmake~directoryId=fun()->{directoryId}letto_valuex=structure_to_value[("DirectoryId",(Some(DirectoryId.to_valuex.directoryId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdirectoryId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"DirectoryId")inmake~directoryId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdirectoryId=field_map_exnjson__"DirectoryId"DirectoryId.of_jsoninmake~directoryId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deregisters the specified directory. This operation is asynchronous and returns before the WorkSpace directory is deregistered. If any WorkSpaces are registered to this directory, you must remove them before you can deregister the directory. Simple AD and AD Connector are made available to you free of charge to use with WorkSpaces. If there are no WorkSpaces being used with your Simple AD or AD Connector directory for 30 consecutive days, this directory will be automatically deregistered for use with Amazon WorkSpaces, and you will be charged for this directory as per the Directory Service pricing terms. To delete empty directories, see Delete the Directory for Your WorkSpaces. If you delete your Simple AD or AD Connector directory, you can always create a new one when you want to start using WorkSpaces again."]moduleDeployWorkspaceApplicationsResult=structtypenonrect={deployment:WorkSpaceApplicationDeployment.toption[@ocaml.doc"The list of deployed associations and information about them."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`IncompatibleApplicationsExceptionofIncompatibleApplicationsException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?deployment=fun()->{deployment}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"IncompatibleApplicationsException"->`IncompatibleApplicationsException(IncompatibleApplicationsException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"IncompatibleApplicationsException"->`IncompatibleApplicationsException(IncompatibleApplicationsException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`IncompatibleApplicationsExceptione->`Assoc[("error",(`String"IncompatibleApplicationsException"));("details",(IncompatibleApplicationsException.to_jsone))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Deployment",(Option.mapx.deployment~f:WorkSpaceApplicationDeployment.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeployment=(Option.map~f:WorkSpaceApplicationDeployment.of_xml)(Xml.childxml_arg0"Deployment")inmake?deployment()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeployment=field_mapjson__"Deployment"WorkSpaceApplicationDeployment.of_jsoninmake?deployment()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deploys associated applications to the specified WorkSpace"]moduleDeployWorkspaceApplicationsRequest=structtypenonrect={workspaceId:WorkspaceId.t[@ocaml.doc"The identifier of the WorkSpace."];force:BooleanObject.toption[@ocaml.doc"Indicates whether the force flag is applied for the specified WorkSpace. When the force flag is enabled, it allows previously failed deployments to be retried."]}letcontext_="DeployWorkspaceApplicationsRequest"letmake?force=fun~workspaceId->fun()->{force;workspaceId}letto_valuex=structure_to_value[("WorkspaceId",(Some(WorkspaceId.to_valuex.workspaceId)));("Force",(Option.mapx.force~f:BooleanObject.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letforce=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"Force")inletworkspaceId=WorkspaceId.of_xml(Xml.child_exn~context:context_xml_arg0"WorkspaceId")inmake?force~workspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letforce=field_mapjson__"Force"BooleanObject.of_jsoninletworkspaceId=field_map_exnjson__"WorkspaceId"WorkspaceId.of_jsoninmake?force~workspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deploys associated applications to the specified WorkSpace"]moduleDeleteWorkspaceImageResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`ResourceAssociatedExceptionofResourceAssociatedException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"ResourceAssociatedException"->`ResourceAssociatedException(ResourceAssociatedException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"ResourceAssociatedException"->`ResourceAssociatedException(ResourceAssociatedException.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))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`ResourceAssociatedExceptione->`Assoc[("error",(`String"ResourceAssociatedException"));("details",(ResourceAssociatedException.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 image from your account. To delete an image, you must first delete any bundles that are associated with the image and unshare the image if it is shared with other accounts."]moduleDeleteWorkspaceImageRequest=structtypenonrect={imageId:WorkspaceImageId.t[@ocaml.doc"The identifier of the image."]}letcontext_="DeleteWorkspaceImageRequest"letmake~imageId=fun()->{imageId}letto_valuex=structure_to_value[("ImageId",(Some(WorkspaceImageId.to_valuex.imageId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letimageId=WorkspaceImageId.of_xml(Xml.child_exn~context:context_xml_arg0"ImageId")inmake~imageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letimageId=field_map_exnjson__"ImageId"WorkspaceImageId.of_jsoninmake~imageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified image from your account. To delete an image, you must first delete any bundles that are associated with the image and unshare the image if it is shared with other accounts."]moduleDeleteWorkspaceBundleResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceAssociatedExceptionofResourceAssociatedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceAssociatedException"->`ResourceAssociatedException(ResourceAssociatedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceAssociatedException"->`ResourceAssociatedException(ResourceAssociatedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceAssociatedExceptione->`Assoc[("error",(`String"ResourceAssociatedException"));("details",(ResourceAssociatedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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 WorkSpace bundle. For more information about deleting WorkSpace bundles, see Delete a Custom WorkSpaces Bundle or Image."]moduleDeleteWorkspaceBundleRequest=structtypenonrect={bundleId:BundleId.toption[@ocaml.doc"The identifier of the bundle."]}letmake?bundleId=fun()->{bundleId}letto_valuex=structure_to_value[("BundleId",(Option.mapx.bundleId~f:BundleId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbundleId=(Option.map~f:BundleId.of_xml)(Xml.childxml_arg0"BundleId")inmake?bundleId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbundleId=field_mapjson__"BundleId"BundleId.of_jsoninmake?bundleId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified WorkSpace bundle. For more information about deleting WorkSpace bundles, see Delete a Custom WorkSpaces Bundle or Image."]moduleDeleteTagsResult=structtypenonrect=unittypenonrecerror=[`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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 tags from the specified WorkSpaces resource."]moduleDeleteTagsRequest=structtypenonrect={resourceId:NonEmptyString.t[@ocaml.doc"The identifier of the WorkSpaces resource. The supported resource types are WorkSpaces, registered directories, images, custom bundles, IP access control groups, and connection aliases."];tagKeys:TagKeyList.t[@ocaml.doc"The tag keys."]}letcontext_="DeleteTagsRequest"letmake~resourceId=fun~tagKeys->fun()->{resourceId;tagKeys}letto_valuex=structure_to_value[("ResourceId",(Some(NonEmptyString.to_valuex.resourceId)));("TagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"TagKeys")inletresourceId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceId")inmake~tagKeys~resourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"TagKeys"TagKeyList.of_jsoninletresourceId=field_map_exnjson__"ResourceId"NonEmptyString.of_jsoninmake~tagKeys~resourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified tags from the specified WorkSpaces resource."]moduleDeleteIpGroupResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceAssociatedExceptionofResourceAssociatedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceAssociatedException"->`ResourceAssociatedException(ResourceAssociatedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceAssociatedException"->`ResourceAssociatedException(ResourceAssociatedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceAssociatedExceptione->`Assoc[("error",(`String"ResourceAssociatedException"));("details",(ResourceAssociatedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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 IP access control group. You cannot delete an IP access control group that is associated with a directory."]moduleDeleteIpGroupRequest=structtypenonrect={groupId:IpGroupId.t[@ocaml.doc"The identifier of the IP access control group."]}letcontext_="DeleteIpGroupRequest"letmake~groupId=fun()->{groupId}letto_valuex=structure_to_value[("GroupId",(Some(IpGroupId.to_valuex.groupId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgroupId=IpGroupId.of_xml(Xml.child_exn~context:context_xml_arg0"GroupId")inmake~groupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgroupId=field_map_exnjson__"GroupId"IpGroupId.of_jsoninmake~groupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified IP access control group. You cannot delete an IP access control group that is associated with a directory."]moduleDeleteConnectionAliasResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceAssociatedExceptionofResourceAssociatedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceAssociatedException"->`ResourceAssociatedException(ResourceAssociatedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceAssociatedException"->`ResourceAssociatedException(ResourceAssociatedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceAssociatedExceptione->`Assoc[("error",(`String"ResourceAssociatedException"));("details",(ResourceAssociatedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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 connection alias. For more information, see Cross-Region Redirection for Amazon WorkSpaces. If you will no longer be using a fully qualified domain name (FQDN) as the registration code for your WorkSpaces users, you must take certain precautions to prevent potential security issues. For more information, see Security Considerations if You Stop Using Cross-Region Redirection. To delete a connection alias that has been shared, the shared account must first disassociate the connection alias from any directories it has been associated with. Then you must unshare the connection alias from the account it has been shared with. You can delete a connection alias only after it is no longer shared with any accounts or associated with any directories."]moduleDeleteConnectionAliasRequest=structtypenonrect={aliasId:ConnectionAliasId.t[@ocaml.doc"The identifier of the connection alias to delete."]}letcontext_="DeleteConnectionAliasRequest"letmake~aliasId=fun()->{aliasId}letto_valuex=structure_to_value[("AliasId",(Some(ConnectionAliasId.to_valuex.aliasId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaliasId=ConnectionAliasId.of_xml(Xml.child_exn~context:context_xml_arg0"AliasId")inmake~aliasId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaliasId=field_map_exnjson__"AliasId"ConnectionAliasId.of_jsoninmake~aliasId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified connection alias. For more information, see Cross-Region Redirection for Amazon WorkSpaces. If you will no longer be using a fully qualified domain name (FQDN) as the registration code for your WorkSpaces users, you must take certain precautions to prevent potential security issues. For more information, see Security Considerations if You Stop Using Cross-Region Redirection. To delete a connection alias that has been shared, the shared account must first disassociate the connection alias from any directories it has been associated with. Then you must unshare the connection alias from the account it has been shared with. You can delete a connection alias only after it is no longer shared with any accounts or associated with any directories."]moduleDeleteConnectClientAddInResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a client-add-in for Amazon Connect that is configured within a directory."]moduleDeleteConnectClientAddInRequest=structtypenonrect={addInId:AmazonUuid.t[@ocaml.doc"The identifier of the client add-in to delete."];resourceId:DirectoryId.t[@ocaml.doc"The directory identifier for which the client add-in is configured."]}letcontext_="DeleteConnectClientAddInRequest"letmake~addInId=fun~resourceId->fun()->{addInId;resourceId}letto_valuex=structure_to_value[("AddInId",(Some(AmazonUuid.to_valuex.addInId)));("ResourceId",(Some(DirectoryId.to_valuex.resourceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceId")inletaddInId=AmazonUuid.of_xml(Xml.child_exn~context:context_xml_arg0"AddInId")inmake~resourceId~addInId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceId=field_map_exnjson__"ResourceId"DirectoryId.of_jsoninletaddInId=field_map_exnjson__"AddInId"AmazonUuid.of_jsoninmake~resourceId~addInId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a client-add-in for Amazon Connect that is configured within a directory."]moduleDeleteClientBrandingResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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 customized client branding. Client branding allows you to customize your WorkSpace's client login portal. You can tailor your login portal company logo, the support email address, support link, link to reset password, and a custom message for users trying to sign in. After you delete your customized client branding, your login portal reverts to the default client branding."]moduleDeleteClientBrandingRequest=structtypenonrect={resourceId:DirectoryId.t[@ocaml.doc"The directory identifier of the WorkSpace for which you want to delete client branding."];platforms:ClientDeviceTypeList.t[@ocaml.doc"The device type for which you want to delete client branding."]}letcontext_="DeleteClientBrandingRequest"letmake~resourceId=fun~platforms->fun()->{resourceId;platforms}letto_valuex=structure_to_value[("ResourceId",(Some(DirectoryId.to_valuex.resourceId)));("Platforms",(Some(ClientDeviceTypeList.to_valuex.platforms)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letplatforms=ClientDeviceTypeList.of_xml(Xml.child_exn~context:context_xml_arg0"Platforms")inletresourceId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceId")inmake~platforms~resourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letplatforms=field_map_exnjson__"Platforms"ClientDeviceTypeList.of_jsoninletresourceId=field_map_exnjson__"ResourceId"DirectoryId.of_jsoninmake~platforms~resourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes customized client branding. Client branding allows you to customize your WorkSpace's client login portal. You can tailor your login portal company logo, the support email address, support link, link to reset password, and a custom message for users trying to sign in. After you delete your customized client branding, your login portal reverts to the default client branding."]moduleDeleteAccountLinkInvitationResult=structtypenonrect={accountLink:AccountLink.toption[@ocaml.doc"Information about the account link."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accountLink=fun()->{accountLink}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AccountLink",(Option.mapx.accountLink~f:AccountLink.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountLink=(Option.map~f:AccountLink.of_xml)(Xml.childxml_arg0"AccountLink")inmake?accountLink()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountLink=field_mapjson__"AccountLink"AccountLink.of_jsoninmake?accountLink()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the account link invitation."]moduleDeleteAccountLinkInvitationRequest=structtypenonrect={linkId:LinkId.t[@ocaml.doc"The identifier of the account link."];clientToken:ClientToken.toption[@ocaml.doc"A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure idempotent creation."]}letcontext_="DeleteAccountLinkInvitationRequest"letmake?clientToken=fun~linkId->fun()->{clientToken;linkId}letto_valuex=structure_to_value[("LinkId",(Some(LinkId.to_valuex.linkId)));("ClientToken",(Option.mapx.clientToken~f:ClientToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"ClientToken")inletlinkId=LinkId.of_xml(Xml.child_exn~context:context_xml_arg0"LinkId")inmake?clientToken~linkId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"ClientToken"ClientToken.of_jsoninletlinkId=field_map_exnjson__"LinkId"LinkId.of_jsoninmake?clientToken~linkId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the account link invitation."]moduleCreateWorkspacesResult=structtypenonrect={failedRequests:FailedCreateWorkspaceRequests.toption[@ocaml.doc"Information about the WorkSpaces that could not be created."];pendingRequests:WorkspaceList.toption[@ocaml.doc"Information about the WorkSpaces that were created. Because this operation is asynchronous, the identifier returned is not immediately available for use with other operations. For example, if you call DescribeWorkspaces before the WorkSpace is created, the information returned can be incomplete."]}typenonrecerror=[`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`Unknown_operation_errorof(string*stringoption)]letmake?failedRequests=fun?pendingRequests->fun()->{failedRequests;pendingRequests}leterror_of_jsonnamejson=matchnamewith|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("FailedRequests",(Option.mapx.failedRequests~f:FailedCreateWorkspaceRequests.to_value));("PendingRequests",(Option.mapx.pendingRequests~f:WorkspaceList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpendingRequests=(Option.map~f:WorkspaceList.of_xml)(Xml.childxml_arg0"PendingRequests")inletfailedRequests=(Option.map~f:FailedCreateWorkspaceRequests.of_xml)(Xml.childxml_arg0"FailedRequests")inmake?pendingRequests?failedRequests()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpendingRequests=field_mapjson__"PendingRequests"WorkspaceList.of_jsoninletfailedRequests=field_mapjson__"FailedRequests"FailedCreateWorkspaceRequests.of_jsoninmake?pendingRequests?failedRequests()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates one or more WorkSpaces. This operation is asynchronous and returns before the WorkSpaces are created. The MANUAL running mode value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core. You don't need to specify the PCOIP protocol for Linux bundles because DCV (formerly WSP) is the default protocol for those bundles. User-decoupled WorkSpaces are only supported by Amazon WorkSpaces Core. Review your running mode to ensure you are using one that is optimal for your needs and budget. For more information on switching running modes, see Can I switch between hourly and monthly billing?"]moduleCreateWorkspacesRequest=structtypenonrect={workspaces:WorkspaceRequestList.t[@ocaml.doc"The WorkSpaces to create. You can specify up to 25 WorkSpaces."]}letcontext_="CreateWorkspacesRequest"letmake~workspaces=fun()->{workspaces}letto_valuex=structure_to_value[("Workspaces",(Some(WorkspaceRequestList.to_valuex.workspaces)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkspaces=WorkspaceRequestList.of_xml(Xml.child_exn~context:context_xml_arg0"Workspaces")inmake~workspaces()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkspaces=field_map_exnjson__"Workspaces"WorkspaceRequestList.of_jsoninmake~workspaces()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates one or more WorkSpaces. This operation is asynchronous and returns before the WorkSpaces are created. The MANUAL running mode value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core. You don't need to specify the PCOIP protocol for Linux bundles because DCV (formerly WSP) is the default protocol for those bundles. User-decoupled WorkSpaces are only supported by Amazon WorkSpaces Core. Review your running mode to ensure you are using one that is optimal for your needs and budget. For more information on switching running modes, see Can I switch between hourly and monthly billing?"]moduleCreateWorkspacesPoolResult=structtypenonrect={workspacesPool:WorkspacesPool.toption[@ocaml.doc"Indicates the pool to create."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceAlreadyExistsExceptionofResourceAlreadyExistsException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?workspacesPool=fun()->{workspacesPool}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceAlreadyExistsExceptione->`Assoc[("error",(`String"ResourceAlreadyExistsException"));("details",(ResourceAlreadyExistsException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("WorkspacesPool",(Option.mapx.workspacesPool~f:WorkspacesPool.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkspacesPool=(Option.map~f:WorkspacesPool.of_xml)(Xml.childxml_arg0"WorkspacesPool")inmake?workspacesPool()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkspacesPool=field_mapjson__"WorkspacesPool"WorkspacesPool.of_jsoninmake?workspacesPool()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a pool of WorkSpaces."]moduleCreateWorkspacesPoolRequest=structtypenonrect={poolName:WorkspacesPoolName.t[@ocaml.doc"The name of the pool."];description:UpdateDescription.t[@ocaml.doc"The pool description."];bundleId:BundleId.t[@ocaml.doc"The identifier of the bundle for the pool."];directoryId:DirectoryId.t[@ocaml.doc"The identifier of the directory for the pool."];capacity:Capacity.t[@ocaml.doc"The user capacity of the pool."];tags:TagList.toption[@ocaml.doc"The tags for the pool."];applicationSettings:ApplicationSettingsRequest.toption[@ocaml.doc"Indicates the application settings of the pool."];timeoutSettings:TimeoutSettings.toption[@ocaml.doc"Indicates the timeout settings of the pool."];runningMode:PoolsRunningMode.toption[@ocaml.doc"The running mode for the pool."]}letcontext_="CreateWorkspacesPoolRequest"letmake?tags=fun?applicationSettings->fun?timeoutSettings->fun?runningMode->fun~poolName->fun~description->fun~bundleId->fun~directoryId->fun~capacity->fun()->{tags;applicationSettings;timeoutSettings;runningMode;poolName;description;bundleId;directoryId;capacity}letto_valuex=structure_to_value[("PoolName",(Some(WorkspacesPoolName.to_valuex.poolName)));("Description",(Some(UpdateDescription.to_valuex.description)));("BundleId",(Some(BundleId.to_valuex.bundleId)));("DirectoryId",(Some(DirectoryId.to_valuex.directoryId)));("Capacity",(Some(Capacity.to_valuex.capacity)));("Tags",(Option.mapx.tags~f:TagList.to_value));("ApplicationSettings",(Option.mapx.applicationSettings~f:ApplicationSettingsRequest.to_value));("TimeoutSettings",(Option.mapx.timeoutSettings~f:TimeoutSettings.to_value));("RunningMode",(Option.mapx.runningMode~f:PoolsRunningMode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrunningMode=(Option.map~f:PoolsRunningMode.of_xml)(Xml.childxml_arg0"RunningMode")inlettimeoutSettings=(Option.map~f:TimeoutSettings.of_xml)(Xml.childxml_arg0"TimeoutSettings")inletapplicationSettings=(Option.map~f:ApplicationSettingsRequest.of_xml)(Xml.childxml_arg0"ApplicationSettings")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletcapacity=Capacity.of_xml(Xml.child_exn~context:context_xml_arg0"Capacity")inletdirectoryId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"DirectoryId")inletbundleId=BundleId.of_xml(Xml.child_exn~context:context_xml_arg0"BundleId")inletdescription=UpdateDescription.of_xml(Xml.child_exn~context:context_xml_arg0"Description")inletpoolName=WorkspacesPoolName.of_xml(Xml.child_exn~context:context_xml_arg0"PoolName")inmake?runningMode?timeoutSettings?applicationSettings?tags~capacity~directoryId~bundleId~description~poolName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrunningMode=field_mapjson__"RunningMode"PoolsRunningMode.of_jsoninlettimeoutSettings=field_mapjson__"TimeoutSettings"TimeoutSettings.of_jsoninletapplicationSettings=field_mapjson__"ApplicationSettings"ApplicationSettingsRequest.of_jsoninlettags=field_mapjson__"Tags"TagList.of_jsoninletcapacity=field_map_exnjson__"Capacity"Capacity.of_jsoninletdirectoryId=field_map_exnjson__"DirectoryId"DirectoryId.of_jsoninletbundleId=field_map_exnjson__"BundleId"BundleId.of_jsoninletdescription=field_map_exnjson__"Description"UpdateDescription.of_jsoninletpoolName=field_map_exnjson__"PoolName"WorkspacesPoolName.of_jsoninmake?runningMode?timeoutSettings?applicationSettings?tags~capacity~directoryId~bundleId~description~poolName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a pool of WorkSpaces."]moduleCreateWorkspaceImageResult=structtypenonrect={imageId:WorkspaceImageId.toption[@ocaml.doc"The identifier of the new WorkSpace image."];name:WorkspaceImageName.toption[@ocaml.doc"The name of the image."];description:WorkspaceImageDescription.toption[@ocaml.doc"The description of the image."];operatingSystem:OperatingSystem.toption[@ocaml.doc"The operating system that the image is running."];state:WorkspaceImageState.toption[@ocaml.doc"The availability status of the image."];requiredTenancy:WorkspaceImageRequiredTenancy.toption[@ocaml.doc"Specifies whether the image is running on dedicated hardware. When Bring Your Own License (BYOL) is enabled, this value is set to DEDICATED. For more information, see Bring Your Own Windows Desktop Images.."];created:Timestamp.toption[@ocaml.doc"The date when the image was created."];ownerAccountId:AwsAccount.toption[@ocaml.doc"The identifier of the Amazon Web Services account that owns the image."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceAlreadyExistsExceptionofResourceAlreadyExistsException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?imageId=fun?name->fun?description->fun?operatingSystem->fun?state->fun?requiredTenancy->fun?created->fun?ownerAccountId->fun()->{imageId;name;description;operatingSystem;state;requiredTenancy;created;ownerAccountId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceAlreadyExistsExceptione->`Assoc[("error",(`String"ResourceAlreadyExistsException"));("details",(ResourceAlreadyExistsException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ImageId",(Option.mapx.imageId~f:WorkspaceImageId.to_value));("Name",(Option.mapx.name~f:WorkspaceImageName.to_value));("Description",(Option.mapx.description~f:WorkspaceImageDescription.to_value));("OperatingSystem",(Option.mapx.operatingSystem~f:OperatingSystem.to_value));("State",(Option.mapx.state~f:WorkspaceImageState.to_value));("RequiredTenancy",(Option.mapx.requiredTenancy~f:WorkspaceImageRequiredTenancy.to_value));("Created",(Option.mapx.created~f:Timestamp.to_value));("OwnerAccountId",(Option.mapx.ownerAccountId~f:AwsAccount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letownerAccountId=(Option.map~f:AwsAccount.of_xml)(Xml.childxml_arg0"OwnerAccountId")inletcreated=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"Created")inletrequiredTenancy=(Option.map~f:WorkspaceImageRequiredTenancy.of_xml)(Xml.childxml_arg0"RequiredTenancy")inletstate=(Option.map~f:WorkspaceImageState.of_xml)(Xml.childxml_arg0"State")inletoperatingSystem=(Option.map~f:OperatingSystem.of_xml)(Xml.childxml_arg0"OperatingSystem")inletdescription=(Option.map~f:WorkspaceImageDescription.of_xml)(Xml.childxml_arg0"Description")inletname=(Option.map~f:WorkspaceImageName.of_xml)(Xml.childxml_arg0"Name")inletimageId=(Option.map~f:WorkspaceImageId.of_xml)(Xml.childxml_arg0"ImageId")inmake?ownerAccountId?created?requiredTenancy?state?operatingSystem?description?name?imageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letownerAccountId=field_mapjson__"OwnerAccountId"AwsAccount.of_jsoninletcreated=field_mapjson__"Created"Timestamp.of_jsoninletrequiredTenancy=field_mapjson__"RequiredTenancy"WorkspaceImageRequiredTenancy.of_jsoninletstate=field_mapjson__"State"WorkspaceImageState.of_jsoninletoperatingSystem=field_mapjson__"OperatingSystem"OperatingSystem.of_jsoninletdescription=field_mapjson__"Description"WorkspaceImageDescription.of_jsoninletname=field_mapjson__"Name"WorkspaceImageName.of_jsoninletimageId=field_mapjson__"ImageId"WorkspaceImageId.of_jsoninmake?ownerAccountId?created?requiredTenancy?state?operatingSystem?description?name?imageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new WorkSpace image from an existing WorkSpace."]moduleCreateWorkspaceImageRequest=structtypenonrect={name:WorkspaceImageName.t[@ocaml.doc"The name of the new WorkSpace image."];description:WorkspaceImageDescription.t[@ocaml.doc"The description of the new WorkSpace image."];workspaceId:WorkspaceId.t[@ocaml.doc"The identifier of the source WorkSpace"];tags:TagList.toption[@ocaml.doc"The tags that you want to add to the new WorkSpace image. To add tags when you're creating the image, you must create an IAM policy that grants your IAM user permission to use workspaces:CreateTags."]}letcontext_="CreateWorkspaceImageRequest"letmake?tags=fun~name->fun~description->fun~workspaceId->fun()->{tags;name;description;workspaceId}letto_valuex=structure_to_value[("Name",(Some(WorkspaceImageName.to_valuex.name)));("Description",(Some(WorkspaceImageDescription.to_valuex.description)));("WorkspaceId",(Some(WorkspaceId.to_valuex.workspaceId)));("Tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletworkspaceId=WorkspaceId.of_xml(Xml.child_exn~context:context_xml_arg0"WorkspaceId")inletdescription=WorkspaceImageDescription.of_xml(Xml.child_exn~context:context_xml_arg0"Description")inletname=WorkspaceImageName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?tags~workspaceId~description~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninletworkspaceId=field_map_exnjson__"WorkspaceId"WorkspaceId.of_jsoninletdescription=field_map_exnjson__"Description"WorkspaceImageDescription.of_jsoninletname=field_map_exnjson__"Name"WorkspaceImageName.of_jsoninmake?tags~workspaceId~description~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new WorkSpace image from an existing WorkSpace."]moduleCreateWorkspaceBundleResult=structtypenonrect={workspaceBundle:WorkspaceBundle.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceAlreadyExistsExceptionofResourceAlreadyExistsException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ResourceUnavailableExceptionofResourceUnavailableException.t|`Unknown_operation_errorof(string*stringoption)]letmake?workspaceBundle=fun()->{workspaceBundle}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ResourceUnavailableException"->`ResourceUnavailableException(ResourceUnavailableException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ResourceUnavailableException"->`ResourceUnavailableException(ResourceUnavailableException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceAlreadyExistsExceptione->`Assoc[("error",(`String"ResourceAlreadyExistsException"));("details",(ResourceAlreadyExistsException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ResourceUnavailableExceptione->`Assoc[("error",(`String"ResourceUnavailableException"));("details",(ResourceUnavailableException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("WorkspaceBundle",(Option.mapx.workspaceBundle~f:WorkspaceBundle.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkspaceBundle=(Option.map~f:WorkspaceBundle.of_xml)(Xml.childxml_arg0"WorkspaceBundle")inmake?workspaceBundle()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkspaceBundle=field_mapjson__"WorkspaceBundle"WorkspaceBundle.of_jsoninmake?workspaceBundle()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates the specified WorkSpace bundle. For more information about creating WorkSpace bundles, see Create a Custom WorkSpaces Image and Bundle."]moduleCreateWorkspaceBundleRequest=structtypenonrect={bundleName:WorkspaceBundleName.t[@ocaml.doc"The name of the bundle."];bundleDescription:WorkspaceBundleDescription.t[@ocaml.doc"The description of the bundle."];imageId:WorkspaceImageId.t[@ocaml.doc"The identifier of the image that is used to create the bundle."];computeType:ComputeType.t;userStorage:UserStorage.t;rootStorage:RootStorage.toption;tags:TagList.toption[@ocaml.doc"The tags associated with the bundle. To add tags at the same time when you're creating the bundle, you must create an IAM policy that grants your IAM user permissions to use workspaces:CreateTags."]}letcontext_="CreateWorkspaceBundleRequest"letmake?rootStorage=fun?tags->fun~bundleName->fun~bundleDescription->fun~imageId->fun~computeType->fun~userStorage->fun()->{rootStorage;tags;bundleName;bundleDescription;imageId;computeType;userStorage}letto_valuex=structure_to_value[("BundleName",(Some(WorkspaceBundleName.to_valuex.bundleName)));("BundleDescription",(Some(WorkspaceBundleDescription.to_valuex.bundleDescription)));("ImageId",(Some(WorkspaceImageId.to_valuex.imageId)));("ComputeType",(Some(ComputeType.to_valuex.computeType)));("UserStorage",(Some(UserStorage.to_valuex.userStorage)));("RootStorage",(Option.mapx.rootStorage~f:RootStorage.to_value));("Tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletrootStorage=(Option.map~f:RootStorage.of_xml)(Xml.childxml_arg0"RootStorage")inletuserStorage=UserStorage.of_xml(Xml.child_exn~context:context_xml_arg0"UserStorage")inletcomputeType=ComputeType.of_xml(Xml.child_exn~context:context_xml_arg0"ComputeType")inletimageId=WorkspaceImageId.of_xml(Xml.child_exn~context:context_xml_arg0"ImageId")inletbundleDescription=WorkspaceBundleDescription.of_xml(Xml.child_exn~context:context_xml_arg0"BundleDescription")inletbundleName=WorkspaceBundleName.of_xml(Xml.child_exn~context:context_xml_arg0"BundleName")inmake?tags?rootStorage~userStorage~computeType~imageId~bundleDescription~bundleName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninletrootStorage=field_mapjson__"RootStorage"RootStorage.of_jsoninletuserStorage=field_map_exnjson__"UserStorage"UserStorage.of_jsoninletcomputeType=field_map_exnjson__"ComputeType"ComputeType.of_jsoninletimageId=field_map_exnjson__"ImageId"WorkspaceImageId.of_jsoninletbundleDescription=field_map_exnjson__"BundleDescription"WorkspaceBundleDescription.of_jsoninletbundleName=field_map_exnjson__"BundleName"WorkspaceBundleName.of_jsoninmake?tags?rootStorage~userStorage~computeType~imageId~bundleDescription~bundleName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates the specified WorkSpace bundle. For more information about creating WorkSpace bundles, see Create a Custom WorkSpaces Image and Bundle."]moduleCreateUpdatedWorkspaceImageResult=structtypenonrect={imageId:WorkspaceImageId.toption[@ocaml.doc"The identifier of the new updated WorkSpace image."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceAlreadyExistsExceptionofResourceAlreadyExistsException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?imageId=fun()->{imageId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceAlreadyExistsExceptione->`Assoc[("error",(`String"ResourceAlreadyExistsException"));("details",(ResourceAlreadyExistsException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ImageId",(Option.mapx.imageId~f:WorkspaceImageId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letimageId=(Option.map~f:WorkspaceImageId.of_xml)(Xml.childxml_arg0"ImageId")inmake?imageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letimageId=field_mapjson__"ImageId"WorkspaceImageId.of_jsoninmake?imageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new updated WorkSpace image based on the specified source image. The new updated WorkSpace image has the latest drivers and other updates required by the Amazon WorkSpaces components. To determine which WorkSpace images need to be updated with the latest Amazon WorkSpaces requirements, use DescribeWorkspaceImages. Only Windows 10, Windows Server 2016, and Windows Server 2019 WorkSpace images can be programmatically updated at this time. Microsoft Windows updates and other application updates are not included in the update process. The source WorkSpace image is not deleted. You can delete the source image after you've verified your new updated image and created a new bundle."]moduleCreateUpdatedWorkspaceImageRequest=structtypenonrect={name:WorkspaceImageName.t[@ocaml.doc"The name of the new updated WorkSpace image."];description:WorkspaceImageDescription.t[@ocaml.doc"A description of whether updates for the WorkSpace image are available."];sourceImageId:WorkspaceImageId.t[@ocaml.doc"The identifier of the source WorkSpace image."];tags:TagList.toption[@ocaml.doc"The tags that you want to add to the new updated WorkSpace image. To add tags at the same time when you're creating the updated image, you must create an IAM policy that grants your IAM user permissions to use workspaces:CreateTags."]}letcontext_="CreateUpdatedWorkspaceImageRequest"letmake?tags=fun~name->fun~description->fun~sourceImageId->fun()->{tags;name;description;sourceImageId}letto_valuex=structure_to_value[("Name",(Some(WorkspaceImageName.to_valuex.name)));("Description",(Some(WorkspaceImageDescription.to_valuex.description)));("SourceImageId",(Some(WorkspaceImageId.to_valuex.sourceImageId)));("Tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletsourceImageId=WorkspaceImageId.of_xml(Xml.child_exn~context:context_xml_arg0"SourceImageId")inletdescription=WorkspaceImageDescription.of_xml(Xml.child_exn~context:context_xml_arg0"Description")inletname=WorkspaceImageName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?tags~sourceImageId~description~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninletsourceImageId=field_map_exnjson__"SourceImageId"WorkspaceImageId.of_jsoninletdescription=field_map_exnjson__"Description"WorkspaceImageDescription.of_jsoninletname=field_map_exnjson__"Name"WorkspaceImageName.of_jsoninmake?tags~sourceImageId~description~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new updated WorkSpace image based on the specified source image. The new updated WorkSpace image has the latest drivers and other updates required by the Amazon WorkSpaces components. To determine which WorkSpace images need to be updated with the latest Amazon WorkSpaces requirements, use DescribeWorkspaceImages. Only Windows 10, Windows Server 2016, and Windows Server 2019 WorkSpace images can be programmatically updated at this time. Microsoft Windows updates and other application updates are not included in the update process. The source WorkSpace image is not deleted. You can delete the source image after you've verified your new updated image and created a new bundle."]moduleCreateTagsResult=structtypenonrect=unittypenonrecerror=[`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Creates the specified tags for the specified WorkSpaces resource."]moduleCreateTagsRequest=structtypenonrect={resourceId:NonEmptyString.t[@ocaml.doc"The identifier of the WorkSpaces resource. The supported resource types are WorkSpaces, registered directories, images, custom bundles, IP access control groups, and connection aliases."];tags:TagList.t[@ocaml.doc"The tags. Each WorkSpaces resource can have a maximum of 50 tags."]}letcontext_="CreateTagsRequest"letmake~resourceId=fun~tags->fun()->{resourceId;tags}letto_valuex=structure_to_value[("ResourceId",(Some(NonEmptyString.to_valuex.resourceId)));("Tags",(Some(TagList.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagList.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inletresourceId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceId")inmake~tags~resourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"TagList.of_jsoninletresourceId=field_map_exnjson__"ResourceId"NonEmptyString.of_jsoninmake~tags~resourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates the specified tags for the specified WorkSpaces resource."]moduleCreateStandbyWorkspacesResult=structtypenonrect={failedStandbyRequests:FailedCreateStandbyWorkspacesRequestList.toption[@ocaml.doc"Information about the standby WorkSpace that could not be created."];pendingStandbyRequests:PendingCreateStandbyWorkspacesRequestList.toption[@ocaml.doc"Information about the standby WorkSpace that was created."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?failedStandbyRequests=fun?pendingStandbyRequests->fun()->{failedStandbyRequests;pendingStandbyRequests}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("FailedStandbyRequests",(Option.mapx.failedStandbyRequests~f:FailedCreateStandbyWorkspacesRequestList.to_value));("PendingStandbyRequests",(Option.mapx.pendingStandbyRequests~f:PendingCreateStandbyWorkspacesRequestList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpendingStandbyRequests=(Option.map~f:PendingCreateStandbyWorkspacesRequestList.of_xml)(Xml.childxml_arg0"PendingStandbyRequests")inletfailedStandbyRequests=(Option.map~f:FailedCreateStandbyWorkspacesRequestList.of_xml)(Xml.childxml_arg0"FailedStandbyRequests")inmake?pendingStandbyRequests?failedStandbyRequests()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpendingStandbyRequests=field_mapjson__"PendingStandbyRequests"PendingCreateStandbyWorkspacesRequestList.of_jsoninletfailedStandbyRequests=field_mapjson__"FailedStandbyRequests"FailedCreateStandbyWorkspacesRequestList.of_jsoninmake?pendingStandbyRequests?failedStandbyRequests()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a standby WorkSpace in a secondary Region."]moduleCreateStandbyWorkspacesRequest=structtypenonrect={primaryRegion:Region.t[@ocaml.doc"The Region of the primary WorkSpace."];standbyWorkspaces:StandbyWorkspacesList.t[@ocaml.doc"Information about the standby WorkSpace to be created."]}letcontext_="CreateStandbyWorkspacesRequest"letmake~primaryRegion=fun~standbyWorkspaces->fun()->{primaryRegion;standbyWorkspaces}letto_valuex=structure_to_value[("PrimaryRegion",(Some(Region.to_valuex.primaryRegion)));("StandbyWorkspaces",(Some(StandbyWorkspacesList.to_valuex.standbyWorkspaces)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstandbyWorkspaces=StandbyWorkspacesList.of_xml(Xml.child_exn~context:context_xml_arg0"StandbyWorkspaces")inletprimaryRegion=Region.of_xml(Xml.child_exn~context:context_xml_arg0"PrimaryRegion")inmake~standbyWorkspaces~primaryRegion()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstandbyWorkspaces=field_map_exnjson__"StandbyWorkspaces"StandbyWorkspacesList.of_jsoninletprimaryRegion=field_map_exnjson__"PrimaryRegion"Region.of_jsoninmake~standbyWorkspaces~primaryRegion()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a standby WorkSpace in a secondary Region."]moduleCreateIpGroupResult=structtypenonrect={groupId:IpGroupId.toption[@ocaml.doc"The identifier of the group."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceAlreadyExistsExceptionofResourceAlreadyExistsException.t|`ResourceCreationFailedExceptionofResourceCreationFailedException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`Unknown_operation_errorof(string*stringoption)]letmake?groupId=fun()->{groupId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_jsonjson)|"ResourceCreationFailedException"->`ResourceCreationFailedException(ResourceCreationFailedException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_xmlxml)|"ResourceCreationFailedException"->`ResourceCreationFailedException(ResourceCreationFailedException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceAlreadyExistsExceptione->`Assoc[("error",(`String"ResourceAlreadyExistsException"));("details",(ResourceAlreadyExistsException.to_jsone))]|`ResourceCreationFailedExceptione->`Assoc[("error",(`String"ResourceCreationFailedException"));("details",(ResourceCreationFailedException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("GroupId",(Option.mapx.groupId~f:IpGroupId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgroupId=(Option.map~f:IpGroupId.of_xml)(Xml.childxml_arg0"GroupId")inmake?groupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgroupId=field_mapjson__"GroupId"IpGroupId.of_jsoninmake?groupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an IP access control group. An IP access control group provides you with the ability to control the IP addresses from which users are allowed to access their WorkSpaces. To specify the CIDR address ranges, add rules to your IP access control group and then associate the group with your directory. You can add rules when you create the group or at any time using AuthorizeIpRules. There is a default IP access control group associated with your directory. If you don't associate an IP access control group with your directory, the default group is used. The default group includes a default rule that allows users to access their WorkSpaces from anywhere. You cannot modify the default IP access control group for your directory."]moduleCreateIpGroupRequest=structtypenonrect={groupName:IpGroupName.t[@ocaml.doc"The name of the group."];groupDesc:IpGroupDesc.toption[@ocaml.doc"The description of the group."];userRules:IpRuleList.toption[@ocaml.doc"The rules to add to the group."];tags:TagList.toption[@ocaml.doc"The tags. Each WorkSpaces resource can have a maximum of 50 tags."]}letcontext_="CreateIpGroupRequest"letmake?groupDesc=fun?userRules->fun?tags->fun~groupName->fun()->{groupDesc;userRules;tags;groupName}letto_valuex=structure_to_value[("GroupName",(Some(IpGroupName.to_valuex.groupName)));("GroupDesc",(Option.mapx.groupDesc~f:IpGroupDesc.to_value));("UserRules",(Option.mapx.userRules~f:IpRuleList.to_value));("Tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletuserRules=(Option.map~f:IpRuleList.of_xml)(Xml.childxml_arg0"UserRules")inletgroupDesc=(Option.map~f:IpGroupDesc.of_xml)(Xml.childxml_arg0"GroupDesc")inletgroupName=IpGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"GroupName")inmake?tags?userRules?groupDesc~groupName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninletuserRules=field_mapjson__"UserRules"IpRuleList.of_jsoninletgroupDesc=field_mapjson__"GroupDesc"IpGroupDesc.of_jsoninletgroupName=field_map_exnjson__"GroupName"IpGroupName.of_jsoninmake?tags?userRules?groupDesc~groupName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an IP access control group. An IP access control group provides you with the ability to control the IP addresses from which users are allowed to access their WorkSpaces. To specify the CIDR address ranges, add rules to your IP access control group and then associate the group with your directory. You can add rules when you create the group or at any time using AuthorizeIpRules. There is a default IP access control group associated with your directory. If you don't associate an IP access control group with your directory, the default group is used. The default group includes a default rule that allows users to access their WorkSpaces from anywhere. You cannot modify the default IP access control group for your directory."]moduleCreateConnectionAliasResult=structtypenonrect={aliasId:ConnectionAliasId.toption[@ocaml.doc"The identifier of the connection alias."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceAlreadyExistsExceptionofResourceAlreadyExistsException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`Unknown_operation_errorof(string*stringoption)]letmake?aliasId=fun()->{aliasId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceAlreadyExistsExceptione->`Assoc[("error",(`String"ResourceAlreadyExistsException"));("details",(ResourceAlreadyExistsException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AliasId",(Option.mapx.aliasId~f:ConnectionAliasId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaliasId=(Option.map~f:ConnectionAliasId.of_xml)(Xml.childxml_arg0"AliasId")inmake?aliasId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaliasId=field_mapjson__"AliasId"ConnectionAliasId.of_jsoninmake?aliasId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates the specified connection alias for use with cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces."]moduleCreateConnectionAliasRequest=structtypenonrect={connectionString:ConnectionString.t[@ocaml.doc"A connection string in the form of a fully qualified domain name (FQDN), such as www.example.com. After you create a connection string, it is always associated to your Amazon Web Services account. You cannot recreate the same connection string with a different account, even if you delete all instances of it from the original account. The connection string is globally reserved for your account."];tags:TagList.toption[@ocaml.doc"The tags to associate with the connection alias."]}letcontext_="CreateConnectionAliasRequest"letmake?tags=fun~connectionString->fun()->{tags;connectionString}letto_valuex=structure_to_value[("ConnectionString",(Some(ConnectionString.to_valuex.connectionString)));("Tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletconnectionString=ConnectionString.of_xml(Xml.child_exn~context:context_xml_arg0"ConnectionString")inmake?tags~connectionString()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninletconnectionString=field_map_exnjson__"ConnectionString"ConnectionString.of_jsoninmake?tags~connectionString()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates the specified connection alias for use with cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces."]moduleCreateConnectClientAddInResult=structtypenonrect={addInId:AmazonUuid.toption[@ocaml.doc"The client add-in identifier."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`ResourceAlreadyExistsExceptionofResourceAlreadyExistsException.t|`ResourceCreationFailedExceptionofResourceCreationFailedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?addInId=fun()->{addInId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_jsonjson)|"ResourceCreationFailedException"->`ResourceCreationFailedException(ResourceCreationFailedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_xmlxml)|"ResourceCreationFailedException"->`ResourceCreationFailedException(ResourceCreationFailedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`ResourceAlreadyExistsExceptione->`Assoc[("error",(`String"ResourceAlreadyExistsException"));("details",(ResourceAlreadyExistsException.to_jsone))]|`ResourceCreationFailedExceptione->`Assoc[("error",(`String"ResourceCreationFailedException"));("details",(ResourceCreationFailedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AddInId",(Option.mapx.addInId~f:AmazonUuid.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaddInId=(Option.map~f:AmazonUuid.of_xml)(Xml.childxml_arg0"AddInId")inmake?addInId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaddInId=field_mapjson__"AddInId"AmazonUuid.of_jsoninmake?addInId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a client-add-in for Amazon Connect within a directory. You can create only one Amazon Connect client add-in within a directory. This client add-in allows WorkSpaces users to seamlessly connect to Amazon Connect."]moduleCreateConnectClientAddInRequest=structtypenonrect={resourceId:DirectoryId.t[@ocaml.doc"The directory identifier for which to configure the client add-in."];name:AddInName.t[@ocaml.doc"The name of the client add-in."];uRL:AddInUrl.t[@ocaml.doc"The endpoint URL of the Amazon Connect client add-in."]}letcontext_="CreateConnectClientAddInRequest"letmake~resourceId=fun~name->fun~uRL->fun()->{resourceId;name;uRL}letto_valuex=structure_to_value[("ResourceId",(Some(DirectoryId.to_valuex.resourceId)));("Name",(Some(AddInName.to_valuex.name)));("URL",(Some(AddInUrl.to_valuex.uRL)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuRL=AddInUrl.of_xml(Xml.child_exn~context:context_xml_arg0"URL")inletname=AddInName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inletresourceId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceId")inmake~uRL~name~resourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuRL=field_map_exnjson__"URL"AddInUrl.of_jsoninletname=field_map_exnjson__"Name"AddInName.of_jsoninletresourceId=field_map_exnjson__"ResourceId"DirectoryId.of_jsoninmake~uRL~name~resourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a client-add-in for Amazon Connect within a directory. You can create only one Amazon Connect client add-in within a directory. This client add-in allows WorkSpaces users to seamlessly connect to Amazon Connect."]moduleCreateAccountLinkInvitationResult=structtypenonrect={accountLink:AccountLink.toption[@ocaml.doc"Information about the account link."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accountLink=fun()->{accountLink}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AccountLink",(Option.mapx.accountLink~f:AccountLink.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountLink=(Option.map~f:AccountLink.of_xml)(Xml.childxml_arg0"AccountLink")inmake?accountLink()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountLink=field_mapjson__"AccountLink"AccountLink.of_jsoninmake?accountLink()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates the account link invitation."]moduleCreateAccountLinkInvitationRequest=structtypenonrect={targetAccountId:AwsAccount.t[@ocaml.doc"The identifier of the target account."];clientToken:ClientToken.toption[@ocaml.doc"A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure idempotent creation."]}letcontext_="CreateAccountLinkInvitationRequest"letmake?clientToken=fun~targetAccountId->fun()->{clientToken;targetAccountId}letto_valuex=structure_to_value[("TargetAccountId",(Some(AwsAccount.to_valuex.targetAccountId)));("ClientToken",(Option.mapx.clientToken~f:ClientToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"ClientToken")inlettargetAccountId=AwsAccount.of_xml(Xml.child_exn~context:context_xml_arg0"TargetAccountId")inmake?clientToken~targetAccountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"ClientToken"ClientToken.of_jsoninlettargetAccountId=field_map_exnjson__"TargetAccountId"AwsAccount.of_jsoninmake?clientToken~targetAccountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates the account link invitation."]moduleCopyWorkspaceImageResult=structtypenonrect={imageId:WorkspaceImageId.toption[@ocaml.doc"The identifier of the image."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceAlreadyExistsExceptionofResourceAlreadyExistsException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ResourceUnavailableExceptionofResourceUnavailableException.t|`Unknown_operation_errorof(string*stringoption)]letmake?imageId=fun()->{imageId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ResourceUnavailableException"->`ResourceUnavailableException(ResourceUnavailableException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ResourceUnavailableException"->`ResourceUnavailableException(ResourceUnavailableException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceAlreadyExistsExceptione->`Assoc[("error",(`String"ResourceAlreadyExistsException"));("details",(ResourceAlreadyExistsException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ResourceUnavailableExceptione->`Assoc[("error",(`String"ResourceUnavailableException"));("details",(ResourceUnavailableException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ImageId",(Option.mapx.imageId~f:WorkspaceImageId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letimageId=(Option.map~f:WorkspaceImageId.of_xml)(Xml.childxml_arg0"ImageId")inmake?imageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letimageId=field_mapjson__"ImageId"WorkspaceImageId.of_jsoninmake?imageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Copies the specified image from the specified Region to the current Region. For more information about copying images, see Copy a Custom WorkSpaces Image. In the China (Ningxia) Region, you can copy images only within the same Region. In Amazon Web Services GovCloud (US), to copy images to and from other Regions, contact Amazon Web Services Support. Before copying a shared image, be sure to verify that it has been shared from the correct Amazon Web Services account. To determine if an image has been shared and to see the ID of the Amazon Web Services account that owns an image, use the DescribeWorkSpaceImages and DescribeWorkspaceImagePermissions API operations."]moduleCopyWorkspaceImageRequest=structtypenonrect={name:WorkspaceImageName.t[@ocaml.doc"The name of the image."];description:WorkspaceImageDescription.toption[@ocaml.doc"A description of the image."];sourceImageId:WorkspaceImageId.t[@ocaml.doc"The identifier of the source image."];sourceRegion:Region.t[@ocaml.doc"The identifier of the source Region."];tags:TagList.toption[@ocaml.doc"The tags for the image."]}letcontext_="CopyWorkspaceImageRequest"letmake?description=fun?tags->fun~name->fun~sourceImageId->fun~sourceRegion->fun()->{description;tags;name;sourceImageId;sourceRegion}letto_valuex=structure_to_value[("Name",(Some(WorkspaceImageName.to_valuex.name)));("Description",(Option.mapx.description~f:WorkspaceImageDescription.to_value));("SourceImageId",(Some(WorkspaceImageId.to_valuex.sourceImageId)));("SourceRegion",(Some(Region.to_valuex.sourceRegion)));("Tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletsourceRegion=Region.of_xml(Xml.child_exn~context:context_xml_arg0"SourceRegion")inletsourceImageId=WorkspaceImageId.of_xml(Xml.child_exn~context:context_xml_arg0"SourceImageId")inletdescription=(Option.map~f:WorkspaceImageDescription.of_xml)(Xml.childxml_arg0"Description")inletname=WorkspaceImageName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?tags~sourceRegion~sourceImageId?description~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninletsourceRegion=field_map_exnjson__"SourceRegion"Region.of_jsoninletsourceImageId=field_map_exnjson__"SourceImageId"WorkspaceImageId.of_jsoninletdescription=field_mapjson__"Description"WorkspaceImageDescription.of_jsoninletname=field_map_exnjson__"Name"WorkspaceImageName.of_jsoninmake?tags~sourceRegion~sourceImageId?description~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Copies the specified image from the specified Region to the current Region. For more information about copying images, see Copy a Custom WorkSpaces Image. In the China (Ningxia) Region, you can copy images only within the same Region. In Amazon Web Services GovCloud (US), to copy images to and from other Regions, contact Amazon Web Services Support. Before copying a shared image, be sure to verify that it has been shared from the correct Amazon Web Services account. To determine if an image has been shared and to see the ID of the Amazon Web Services account that owns an image, use the DescribeWorkSpaceImages and DescribeWorkspaceImagePermissions API operations."]moduleAuthorizeIpRulesResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds one or more rules to the specified IP access control group. This action gives users permission to access their WorkSpaces from the CIDR address ranges specified in the rules."]moduleAuthorizeIpRulesRequest=structtypenonrect={groupId:IpGroupId.t[@ocaml.doc"The identifier of the group."];userRules:IpRuleList.t[@ocaml.doc"The rules to add to the group."]}letcontext_="AuthorizeIpRulesRequest"letmake~groupId=fun~userRules->fun()->{groupId;userRules}letto_valuex=structure_to_value[("GroupId",(Some(IpGroupId.to_valuex.groupId)));("UserRules",(Some(IpRuleList.to_valuex.userRules)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserRules=IpRuleList.of_xml(Xml.child_exn~context:context_xml_arg0"UserRules")inletgroupId=IpGroupId.of_xml(Xml.child_exn~context:context_xml_arg0"GroupId")inmake~userRules~groupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserRules=field_map_exnjson__"UserRules"IpRuleList.of_jsoninletgroupId=field_map_exnjson__"GroupId"IpGroupId.of_jsoninmake~userRules~groupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds one or more rules to the specified IP access control group. This action gives users permission to access their WorkSpaces from the CIDR address ranges specified in the rules."]moduleAssociateWorkspaceApplicationResult=structtypenonrect={association:WorkspaceResourceAssociation.toption[@ocaml.doc"Information about the association between the specified WorkSpace and the specified application."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ApplicationNotSupportedExceptionofApplicationNotSupportedException.t|`ComputeNotCompatibleExceptionofComputeNotCompatibleException.t|`IncompatibleApplicationsExceptionofIncompatibleApplicationsException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`OperatingSystemNotCompatibleExceptionofOperatingSystemNotCompatibleException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceAlreadyExistsExceptionofResourceAlreadyExistsException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?association=fun()->{association}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ApplicationNotSupportedException"->`ApplicationNotSupportedException(ApplicationNotSupportedException.of_jsonjson)|"ComputeNotCompatibleException"->`ComputeNotCompatibleException(ComputeNotCompatibleException.of_jsonjson)|"IncompatibleApplicationsException"->`IncompatibleApplicationsException(IncompatibleApplicationsException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"OperatingSystemNotCompatibleException"->`OperatingSystemNotCompatibleException(OperatingSystemNotCompatibleException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ApplicationNotSupportedException"->`ApplicationNotSupportedException(ApplicationNotSupportedException.of_xmlxml)|"ComputeNotCompatibleException"->`ComputeNotCompatibleException(ComputeNotCompatibleException.of_xmlxml)|"IncompatibleApplicationsException"->`IncompatibleApplicationsException(IncompatibleApplicationsException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"OperatingSystemNotCompatibleException"->`OperatingSystemNotCompatibleException(OperatingSystemNotCompatibleException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`ApplicationNotSupportedExceptione->`Assoc[("error",(`String"ApplicationNotSupportedException"));("details",(ApplicationNotSupportedException.to_jsone))]|`ComputeNotCompatibleExceptione->`Assoc[("error",(`String"ComputeNotCompatibleException"));("details",(ComputeNotCompatibleException.to_jsone))]|`IncompatibleApplicationsExceptione->`Assoc[("error",(`String"IncompatibleApplicationsException"));("details",(IncompatibleApplicationsException.to_jsone))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`OperatingSystemNotCompatibleExceptione->`Assoc[("error",(`String"OperatingSystemNotCompatibleException"));("details",(OperatingSystemNotCompatibleException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceAlreadyExistsExceptione->`Assoc[("error",(`String"ResourceAlreadyExistsException"));("details",(ResourceAlreadyExistsException.to_jsone))]|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Association",(Option.mapx.association~f:WorkspaceResourceAssociation.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassociation=(Option.map~f:WorkspaceResourceAssociation.of_xml)(Xml.childxml_arg0"Association")inmake?association()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassociation=field_mapjson__"Association"WorkspaceResourceAssociation.of_jsoninmake?association()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates the specified application to the specified WorkSpace."]moduleAssociateWorkspaceApplicationRequest=structtypenonrect={workspaceId:WorkspaceId.t[@ocaml.doc"The identifier of the WorkSpace."];applicationId:WorkSpaceApplicationId.t[@ocaml.doc"The identifier of the application."]}letcontext_="AssociateWorkspaceApplicationRequest"letmake~workspaceId=fun~applicationId->fun()->{workspaceId;applicationId}letto_valuex=structure_to_value[("WorkspaceId",(Some(WorkspaceId.to_valuex.workspaceId)));("ApplicationId",(Some(WorkSpaceApplicationId.to_valuex.applicationId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapplicationId=WorkSpaceApplicationId.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationId")inletworkspaceId=WorkspaceId.of_xml(Xml.child_exn~context:context_xml_arg0"WorkspaceId")inmake~applicationId~workspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapplicationId=field_map_exnjson__"ApplicationId"WorkSpaceApplicationId.of_jsoninletworkspaceId=field_map_exnjson__"WorkspaceId"WorkspaceId.of_jsoninmake~applicationId~workspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates the specified application to the specified WorkSpace."]moduleAssociateIpGroupsResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceLimitExceededExceptionofResourceLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceLimitExceededException"->`ResourceLimitExceededException(ResourceLimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceLimitExceededExceptione->`Assoc[("error",(`String"ResourceLimitExceededException"));("details",(ResourceLimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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 IP access control group with the specified directory."]moduleAssociateIpGroupsRequest=structtypenonrect={directoryId:DirectoryId.t[@ocaml.doc"The identifier of the directory."];groupIds:IpGroupIdList.t[@ocaml.doc"The identifiers of one or more IP access control groups."]}letcontext_="AssociateIpGroupsRequest"letmake~directoryId=fun~groupIds->fun()->{directoryId;groupIds}letto_valuex=structure_to_value[("DirectoryId",(Some(DirectoryId.to_valuex.directoryId)));("GroupIds",(Some(IpGroupIdList.to_valuex.groupIds)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgroupIds=IpGroupIdList.of_xml(Xml.child_exn~context:context_xml_arg0"GroupIds")inletdirectoryId=DirectoryId.of_xml(Xml.child_exn~context:context_xml_arg0"DirectoryId")inmake~groupIds~directoryId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgroupIds=field_map_exnjson__"GroupIds"IpGroupIdList.of_jsoninletdirectoryId=field_map_exnjson__"DirectoryId"DirectoryId.of_jsoninmake~groupIds~directoryId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates the specified IP access control group with the specified directory."]moduleAssociateConnectionAliasResult=structtypenonrect={connectionIdentifier:ConnectionIdentifier.toption[@ocaml.doc"The identifier of the connection alias association. You use the connection identifier in the DNS TXT record when you're configuring your DNS routing policies."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidParameterValuesExceptionofInvalidParameterValuesException.t|`InvalidResourceStateExceptionofInvalidResourceStateException.t|`OperationNotSupportedExceptionofOperationNotSupportedException.t|`ResourceAssociatedExceptionofResourceAssociatedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?connectionIdentifier=fun()->{connectionIdentifier}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_jsonjson)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_jsonjson)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_jsonjson)|"ResourceAssociatedException"->`ResourceAssociatedException(ResourceAssociatedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidParameterValuesException"->`InvalidParameterValuesException(InvalidParameterValuesException.of_xmlxml)|"InvalidResourceStateException"->`InvalidResourceStateException(InvalidResourceStateException.of_xmlxml)|"OperationNotSupportedException"->`OperationNotSupportedException(OperationNotSupportedException.of_xmlxml)|"ResourceAssociatedException"->`ResourceAssociatedException(ResourceAssociatedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InvalidParameterValuesExceptione->`Assoc[("error",(`String"InvalidParameterValuesException"));("details",(InvalidParameterValuesException.to_jsone))]|`InvalidResourceStateExceptione->`Assoc[("error",(`String"InvalidResourceStateException"));("details",(InvalidResourceStateException.to_jsone))]|`OperationNotSupportedExceptione->`Assoc[("error",(`String"OperationNotSupportedException"));("details",(OperationNotSupportedException.to_jsone))]|`ResourceAssociatedExceptione->`Assoc[("error",(`String"ResourceAssociatedException"));("details",(ResourceAssociatedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ConnectionIdentifier",(Option.mapx.connectionIdentifier~f:ConnectionIdentifier.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnectionIdentifier=(Option.map~f:ConnectionIdentifier.of_xml)(Xml.childxml_arg0"ConnectionIdentifier")inmake?connectionIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnectionIdentifier=field_mapjson__"ConnectionIdentifier"ConnectionIdentifier.of_jsoninmake?connectionIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates the specified connection alias with the specified directory to enable cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces. Before performing this operation, call DescribeConnectionAliases to make sure that the current state of the connection alias is CREATED."]moduleAssociateConnectionAliasRequest=structtypenonrect={aliasId:ConnectionAliasId.t[@ocaml.doc"The identifier of the connection alias."];resourceId:NonEmptyString.t[@ocaml.doc"The identifier of the directory to associate the connection alias with."]}letcontext_="AssociateConnectionAliasRequest"letmake~aliasId=fun~resourceId->fun()->{aliasId;resourceId}letto_valuex=structure_to_value[("AliasId",(Some(ConnectionAliasId.to_valuex.aliasId)));("ResourceId",(Some(NonEmptyString.to_valuex.resourceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceId=NonEmptyString.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceId")inletaliasId=ConnectionAliasId.of_xml(Xml.child_exn~context:context_xml_arg0"AliasId")inmake~resourceId~aliasId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceId=field_map_exnjson__"ResourceId"NonEmptyString.of_jsoninletaliasId=field_map_exnjson__"AliasId"ConnectionAliasId.of_jsoninmake~resourceId~aliasId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates the specified connection alias with the specified directory to enable cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces. Before performing this operation, call DescribeConnectionAliases to make sure that the current state of the connection alias is CREATED."]moduleAcceptAccountLinkInvitationResult=structtypenonrect={accountLink:AccountLink.toption[@ocaml.doc"Information about the account link."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accountLink=fun()->{accountLink}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AccountLink",(Option.mapx.accountLink~f:AccountLink.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountLink=(Option.map~f:AccountLink.of_xml)(Xml.childxml_arg0"AccountLink")inmake?accountLink()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountLink=field_mapjson__"AccountLink"AccountLink.of_jsoninmake?accountLink()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Accepts the account link invitation. There's currently no unlinking capability after you accept the account linking invitation."]moduleAcceptAccountLinkInvitationRequest=structtypenonrect={linkId:LinkId.t[@ocaml.doc"The identifier of the account link."];clientToken:ClientToken.toption[@ocaml.doc"A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure idempotent creation."]}letcontext_="AcceptAccountLinkInvitationRequest"letmake?clientToken=fun~linkId->fun()->{clientToken;linkId}letto_valuex=structure_to_value[("LinkId",(Some(LinkId.to_valuex.linkId)));("ClientToken",(Option.mapx.clientToken~f:ClientToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"ClientToken")inletlinkId=LinkId.of_xml(Xml.child_exn~context:context_xml_arg0"LinkId")inmake?clientToken~linkId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"ClientToken"ClientToken.of_jsoninletlinkId=field_map_exnjson__"LinkId"LinkId.of_jsoninmake?clientToken~linkId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Accepts the account link invitation. There's currently no unlinking capability after you accept the account linking invitation."]