1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153(* 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.repostspaceletapiVersion="2022-05-13"letendpointPrefix="repostspace"letserviceFullName="AWS re:Post Private"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letsimple_to_jsonto_valuex=Botodata.Json.value_to_json_scalar(to_valuex)letcomposed_to_jsonto_valuex=Botodata.Json.value_to_json(to_valuex)letto_queryto_valuex=Client.Query.of_value(to_valuex)letstructure_to_value_auxst~f=letfilter=function|(k,Somev)->Some(k,v)|_->Noneinletpairkv=(k,v)inletdefer_value(k,dv)=pairkdvin((List.filter_mapst~f:filter)|>(List.map~f:defer_value))|>(funx->`Structure(fx))letstructure_to_value=structure_to_value_aux~f:Fn.idletstructure_to_wrapped_value~wrapper~response=structure_to_value_aux~f:(funx->[(wrapper,(`Structurex));(response,(`Structure[]))])moduleEmailDomain=structtypenonrect=stringletcontext_="EmailDomain"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(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:"EmailDomain"jletto_json=simple_to_jsonto_valueendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleAllowedDomainsList=structtypenonrect=EmailDomain.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EmailDomain.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:EmailDomain.of_xml)letof_jsonj=list_of_json~kind:"AllowedDomainsList"~of_json:EmailDomain.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFeatureEnableStatus=structtypenonrect=|ENABLED|DISABLED|NOT_ALLOWED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|NOT_ALLOWED->"NOT_ALLOWED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|"NOT_ALLOWED"->NOT_ALLOWED|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 FeatureEnableStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FeatureEnableStatus"j)letto_json=simple_to_jsonto_valueendmoduleValidationExceptionField=structtypenonrect={name:String_.toption[@ocaml.doc"Message describing why the field failed validation."];message:String_.toption[@ocaml.doc"The name of the field."]}letmake?name=fun?message->fun()->{name;message}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:String_.to_value));("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inmake?message?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninletname=field_mapjson__"name"String_.of_jsoninmake?message?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stores information about a field that\226\128\153s passed inside a request that resulted in an exception."]moduleArn=structtypenonrect=stringletcontext_="Arn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:20));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_valueendmoduleConfigurationStatus=structtypenonrect=|CONFIGURED|UNCONFIGURED|Non_static_idofstringletmakei=iletto_string=function|CONFIGURED->"CONFIGURED"|UNCONFIGURED->"UNCONFIGURED"|Non_static_ids->sletof_string=function|"CONFIGURED"->CONFIGURED|"UNCONFIGURED"->UNCONFIGURED|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 ConfigurationStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ConfigurationStatus"j)letto_json=simple_to_jsonto_valueendmoduleContentSize=structtypenonrect=Int64.tletmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleKMSKey=structtypenonrect=stringletcontext_="KMSKey"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:"KMSKey"jletto_json=simple_to_jsonto_valueendmoduleProvisioningStatus=structtypenonrect=stringletcontext_="ProvisioningStatus"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:30)>>=(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:"ProvisioningStatus"jletto_json=simple_to_jsonto_valueendmoduleSpaceDescription=structtypenonrect=stringletcontext_="SpaceDescription"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(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:"SpaceDescription"jletto_json=simple_to_jsonto_valueendmoduleSpaceId=structtypenonrect=stringletcontext_="SpaceId"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:"SpaceId"jletto_json=simple_to_jsonto_valueendmoduleSpaceName=structtypenonrect=stringletcontext_="SpaceName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:30)>>=(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:"SpaceName"jletto_json=simple_to_jsonto_valueendmoduleStorageLimit=structtypenonrect=Int64.tletmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleSupportedEmailDomainsStatus=structtypenonrect={enabled:FeatureEnableStatus.toption;allowedDomains:AllowedDomainsList.toption}letmake?enabled=fun?allowedDomains->fun()->{enabled;allowedDomains}letto_valuex=structure_to_value[("enabled",(Option.mapx.enabled~f:FeatureEnableStatus.to_value));("allowedDomains",(Option.mapx.allowedDomains~f:AllowedDomainsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letallowedDomains=(Option.map~f:AllowedDomainsList.of_xml)(Xml.childxml_arg0"allowedDomains")inletenabled=(Option.map~f:FeatureEnableStatus.of_xml)(Xml.childxml_arg0"enabled")inmake?allowedDomains?enabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letallowedDomains=field_mapjson__"allowedDomains"AllowedDomainsList.of_jsoninletenabled=field_mapjson__"enabled"FeatureEnableStatus.of_jsoninmake?allowedDomains?enabled()letto_jsonv=composed_to_jsonto_valuevendmoduleSyntheticTimestamp_date_time=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_valueendmoduleTierLevel=structtypenonrect=|BASIC|STANDARD|Non_static_idofstringletmakei=iletto_string=function|BASIC->"BASIC"|STANDARD->"STANDARD"|Non_static_ids->sletof_string=function|"BASIC"->BASIC|"STANDARD"->STANDARD|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 TierLevel"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TierLevel"j)letto_json=simple_to_jsonto_valueendmoduleUrl=structtypenonrect=stringletcontext_="Url"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:"Url"jletto_json=simple_to_jsonto_valueendmoduleUserCount=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 UserCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleVanityDomainStatus=structtypenonrect=|PENDING|APPROVED|UNAPPROVED|Non_static_idofstringletmakei=iletto_string=function|PENDING->"PENDING"|APPROVED->"APPROVED"|UNAPPROVED->"UNAPPROVED"|Non_static_ids->sletof_string=function|"PENDING"->PENDING|"APPROVED"->APPROVED|"UNAPPROVED"->UNAPPROVED|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 VanityDomainStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"VanityDomainStatus"j)letto_json=simple_to_jsonto_valueendmoduleChannelDescription=structtypenonrect=stringletcontext_="ChannelDescription"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(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:"ChannelDescription"jletto_json=simple_to_jsonto_valueendmoduleChannelId=structtypenonrect=stringletcontext_="ChannelId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:24)>>=(fun()->check_string_mini~min: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:"ChannelId"jletto_json=simple_to_jsonto_valueendmoduleChannelName=structtypenonrect=stringletcontext_="ChannelName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:64)>>=(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:"ChannelName"jletto_json=simple_to_jsonto_valueendmoduleChannelStatus=structtypenonrect=|CREATED|CREATING|CREATE_FAILED|DELETED|DELETING|DELETE_FAILED|Non_static_idofstringletmakei=iletto_string=function|CREATED->"CREATED"|CREATING->"CREATING"|CREATE_FAILED->"CREATE_FAILED"|DELETED->"DELETED"|DELETING->"DELETING"|DELETE_FAILED->"DELETE_FAILED"|Non_static_ids->sletof_string=function|"CREATED"->CREATED|"CREATING"->CREATING|"CREATE_FAILED"->CREATE_FAILED|"DELETED"->DELETED|"DELETING"->DELETING|"DELETE_FAILED"->DELETE_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 ChannelStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ChannelStatus"j)letto_json=simple_to_jsonto_valueendmoduleGroupCount=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 GroupCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleRole=structtypenonrect=|EXPERT|MODERATOR|ADMINISTRATOR|SUPPORTREQUESTOR|Non_static_idofstringletmakei=iletto_string=function|EXPERT->"EXPERT"|MODERATOR->"MODERATOR"|ADMINISTRATOR->"ADMINISTRATOR"|SUPPORTREQUESTOR->"SUPPORTREQUESTOR"|Non_static_ids->sletof_string=function|"EXPERT"->EXPERT|"MODERATOR"->MODERATOR|"ADMINISTRATOR"->ADMINISTRATOR|"SUPPORTREQUESTOR"->SUPPORTREQUESTOR|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 Role"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Role"j)letto_json=simple_to_jsonto_valueendmoduleChannelRole=structtypenonrect=|ASKER|EXPERT|MODERATOR|SUPPORTREQUESTOR|Non_static_idofstringletmakei=iletto_string=function|ASKER->"ASKER"|EXPERT->"EXPERT"|MODERATOR->"MODERATOR"|SUPPORTREQUESTOR->"SUPPORTREQUESTOR"|Non_static_ids->sletof_string=function|"ASKER"->ASKER|"EXPERT"->EXPERT|"MODERATOR"->MODERATOR|"SUPPORTREQUESTOR"->SUPPORTREQUESTOR|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 ChannelRole"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ChannelRole"j)letto_json=simple_to_jsonto_valueendmoduleAccessorId=structtypenonrect=stringletcontext_="AccessorId"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:"AccessorId"jletto_json=simple_to_jsonto_valueendmoduleErrorCode=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 ErrorCode"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_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_valueendmoduleFeatureEnableParameter=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 FeatureEnableParameter"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FeatureEnableParameter"j)letto_json=simple_to_jsonto_valueendmoduleInteger=structtypenonrect=intletmakei=iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for Integer"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleValidationExceptionFieldList=structtypenonrect=ValidationExceptionField.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ValidationExceptionField.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:ValidationExceptionField.of_xml)letof_jsonj=list_of_json~kind:"ValidationExceptionFieldList"~of_json:ValidationExceptionField.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleValidationExceptionReason=structtypenonrect=|UnknownOperation|CannotParse|FieldValidationFailed|Other|Non_static_idofstringletmakei=iletto_string=function|UnknownOperation->"unknownOperation"|CannotParse->"cannotParse"|FieldValidationFailed->"fieldValidationFailed"|Other->"other"|Non_static_ids->sletof_string=function|"unknownOperation"->UnknownOperation|"cannotParse"->CannotParse|"fieldValidationFailed"->FieldValidationFailed|"other"->Other|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 ValidationExceptionReason"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ValidationExceptionReason"j)letto_json=simple_to_jsonto_valueendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"(?!aws:)[a-zA-Z+-=._:/]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"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:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleSpaceData=structtypenonrect={spaceId:SpaceId.toption[@ocaml.doc"The unique ID of the private re:Post."];arn:Arn.toption[@ocaml.doc"The ARN of the private re:Post."];name:SpaceName.toption[@ocaml.doc"The name for the private re:Post."];description:SpaceDescription.toption[@ocaml.doc"The description for the private re:Post. This is used only to help you identify this private re:Post."];status:ProvisioningStatus.toption[@ocaml.doc"The creation/deletion status of the private re:Post."];configurationStatus:ConfigurationStatus.toption[@ocaml.doc"The configuration status of the private re:Post."];vanityDomainStatus:VanityDomainStatus.toption[@ocaml.doc"This approval status of the custom subdomain."];vanityDomain:Url.toption[@ocaml.doc"This custom subdomain that you use to access your private re:Post. All custom subdomains must be approved by AWS before use."];randomDomain:Url.toption[@ocaml.doc"The AWS generated subdomain of the private re:Post."];tier:TierLevel.toption[@ocaml.doc"The pricing tier of the private re:Post."];storageLimit:StorageLimit.toption[@ocaml.doc"The storage limit of the private re:Post."];createDateTime:SyntheticTimestamp_date_time.toption[@ocaml.doc"The date when the private re:Post was created."];deleteDateTime:SyntheticTimestamp_date_time.toption[@ocaml.doc"The date when the private re:Post was deleted."];userKMSKey:KMSKey.toption[@ocaml.doc"The custom AWS KMS key ARN that\226\128\153s used for the AWS KMS encryption."];userCount:UserCount.toption[@ocaml.doc"The number of onboarded users to the private re:Post."];contentSize:ContentSize.toption[@ocaml.doc"The content size of the private re:Post."];supportedEmailDomains:SupportedEmailDomainsStatus.toption}letmake?spaceId=fun?arn->fun?name->fun?description->fun?status->fun?configurationStatus->fun?vanityDomainStatus->fun?vanityDomain->fun?randomDomain->fun?tier->fun?storageLimit->fun?createDateTime->fun?deleteDateTime->fun?userKMSKey->fun?userCount->fun?contentSize->fun?supportedEmailDomains->fun()->{spaceId;arn;name;description;status;configurationStatus;vanityDomainStatus;vanityDomain;randomDomain;tier;storageLimit;createDateTime;deleteDateTime;userKMSKey;userCount;contentSize;supportedEmailDomains}letto_valuex=structure_to_value[("spaceId",(Option.mapx.spaceId~f:SpaceId.to_value));("arn",(Option.mapx.arn~f:Arn.to_value));("name",(Option.mapx.name~f:SpaceName.to_value));("description",(Option.mapx.description~f:SpaceDescription.to_value));("status",(Option.mapx.status~f:ProvisioningStatus.to_value));("configurationStatus",(Option.mapx.configurationStatus~f:ConfigurationStatus.to_value));("vanityDomainStatus",(Option.mapx.vanityDomainStatus~f:VanityDomainStatus.to_value));("vanityDomain",(Option.mapx.vanityDomain~f:Url.to_value));("randomDomain",(Option.mapx.randomDomain~f:Url.to_value));("tier",(Option.mapx.tier~f:TierLevel.to_value));("storageLimit",(Option.mapx.storageLimit~f:StorageLimit.to_value));("createDateTime",(Option.mapx.createDateTime~f:SyntheticTimestamp_date_time.to_value));("deleteDateTime",(Option.mapx.deleteDateTime~f:SyntheticTimestamp_date_time.to_value));("userKMSKey",(Option.mapx.userKMSKey~f:KMSKey.to_value));("userCount",(Option.mapx.userCount~f:UserCount.to_value));("contentSize",(Option.mapx.contentSize~f:ContentSize.to_value));("supportedEmailDomains",(Option.mapx.supportedEmailDomains~f:SupportedEmailDomainsStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsupportedEmailDomains=(Option.map~f:SupportedEmailDomainsStatus.of_xml)(Xml.childxml_arg0"supportedEmailDomains")inletcontentSize=(Option.map~f:ContentSize.of_xml)(Xml.childxml_arg0"contentSize")inletuserCount=(Option.map~f:UserCount.of_xml)(Xml.childxml_arg0"userCount")inletuserKMSKey=(Option.map~f:KMSKey.of_xml)(Xml.childxml_arg0"userKMSKey")inletdeleteDateTime=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"deleteDateTime")inletcreateDateTime=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"createDateTime")inletstorageLimit=(Option.map~f:StorageLimit.of_xml)(Xml.childxml_arg0"storageLimit")inlettier=(Option.map~f:TierLevel.of_xml)(Xml.childxml_arg0"tier")inletrandomDomain=(Option.map~f:Url.of_xml)(Xml.childxml_arg0"randomDomain")inletvanityDomain=(Option.map~f:Url.of_xml)(Xml.childxml_arg0"vanityDomain")inletvanityDomainStatus=(Option.map~f:VanityDomainStatus.of_xml)(Xml.childxml_arg0"vanityDomainStatus")inletconfigurationStatus=(Option.map~f:ConfigurationStatus.of_xml)(Xml.childxml_arg0"configurationStatus")inletstatus=(Option.map~f:ProvisioningStatus.of_xml)(Xml.childxml_arg0"status")inletdescription=(Option.map~f:SpaceDescription.of_xml)(Xml.childxml_arg0"description")inletname=(Option.map~f:SpaceName.of_xml)(Xml.childxml_arg0"name")inletarn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"arn")inletspaceId=(Option.map~f:SpaceId.of_xml)(Xml.childxml_arg0"spaceId")inmake?supportedEmailDomains?contentSize?userCount?userKMSKey?deleteDateTime?createDateTime?storageLimit?tier?randomDomain?vanityDomain?vanityDomainStatus?configurationStatus?status?description?name?arn?spaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsupportedEmailDomains=field_mapjson__"supportedEmailDomains"SupportedEmailDomainsStatus.of_jsoninletcontentSize=field_mapjson__"contentSize"ContentSize.of_jsoninletuserCount=field_mapjson__"userCount"UserCount.of_jsoninletuserKMSKey=field_mapjson__"userKMSKey"KMSKey.of_jsoninletdeleteDateTime=field_mapjson__"deleteDateTime"SyntheticTimestamp_date_time.of_jsoninletcreateDateTime=field_mapjson__"createDateTime"SyntheticTimestamp_date_time.of_jsoninletstorageLimit=field_mapjson__"storageLimit"StorageLimit.of_jsoninlettier=field_mapjson__"tier"TierLevel.of_jsoninletrandomDomain=field_mapjson__"randomDomain"Url.of_jsoninletvanityDomain=field_mapjson__"vanityDomain"Url.of_jsoninletvanityDomainStatus=field_mapjson__"vanityDomainStatus"VanityDomainStatus.of_jsoninletconfigurationStatus=field_mapjson__"configurationStatus"ConfigurationStatus.of_jsoninletstatus=field_mapjson__"status"ProvisioningStatus.of_jsoninletdescription=field_mapjson__"description"SpaceDescription.of_jsoninletname=field_mapjson__"name"SpaceName.of_jsoninletarn=field_mapjson__"arn"Arn.of_jsoninletspaceId=field_mapjson__"spaceId"SpaceId.of_jsoninmake?supportedEmailDomains?contentSize?userCount?userKMSKey?deleteDateTime?createDateTime?storageLimit?tier?randomDomain?vanityDomain?vanityDomainStatus?configurationStatus?status?description?name?arn?spaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains some information about a private re:Post in the account."]moduleChannelData=structtypenonrect={spaceId:SpaceId.toption[@ocaml.doc"The unique ID of the private re:Post."];channelId:ChannelId.toption[@ocaml.doc"The unique ID of the private re:Post channel."];channelName:ChannelName.toption[@ocaml.doc"The name for the channel. This must be unique per private re:Post."];channelDescription:ChannelDescription.toption[@ocaml.doc"A description for the channel. This is used only to help you identify this channel."];createDateTime:SyntheticTimestamp_date_time.toption[@ocaml.doc"The date when the channel was created."];deleteDateTime:SyntheticTimestamp_date_time.toption[@ocaml.doc"The date when the channel was deleted."];channelStatus:ChannelStatus.toption[@ocaml.doc"The status pf the channel."];userCount:UserCount.toption[@ocaml.doc"The number of users that are part of the channel."];groupCount:GroupCount.toption[@ocaml.doc"The number of groups that are part of the channel."]}letmake?spaceId=fun?channelId->fun?channelName->fun?channelDescription->fun?createDateTime->fun?deleteDateTime->fun?channelStatus->fun?userCount->fun?groupCount->fun()->{spaceId;channelId;channelName;channelDescription;createDateTime;deleteDateTime;channelStatus;userCount;groupCount}letto_valuex=structure_to_value[("spaceId",(Option.mapx.spaceId~f:SpaceId.to_value));("channelId",(Option.mapx.channelId~f:ChannelId.to_value));("channelName",(Option.mapx.channelName~f:ChannelName.to_value));("channelDescription",(Option.mapx.channelDescription~f:ChannelDescription.to_value));("createDateTime",(Option.mapx.createDateTime~f:SyntheticTimestamp_date_time.to_value));("deleteDateTime",(Option.mapx.deleteDateTime~f:SyntheticTimestamp_date_time.to_value));("channelStatus",(Option.mapx.channelStatus~f:ChannelStatus.to_value));("userCount",(Option.mapx.userCount~f:UserCount.to_value));("groupCount",(Option.mapx.groupCount~f:GroupCount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgroupCount=(Option.map~f:GroupCount.of_xml)(Xml.childxml_arg0"groupCount")inletuserCount=(Option.map~f:UserCount.of_xml)(Xml.childxml_arg0"userCount")inletchannelStatus=(Option.map~f:ChannelStatus.of_xml)(Xml.childxml_arg0"channelStatus")inletdeleteDateTime=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"deleteDateTime")inletcreateDateTime=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"createDateTime")inletchannelDescription=(Option.map~f:ChannelDescription.of_xml)(Xml.childxml_arg0"channelDescription")inletchannelName=(Option.map~f:ChannelName.of_xml)(Xml.childxml_arg0"channelName")inletchannelId=(Option.map~f:ChannelId.of_xml)(Xml.childxml_arg0"channelId")inletspaceId=(Option.map~f:SpaceId.of_xml)(Xml.childxml_arg0"spaceId")inmake?groupCount?userCount?channelStatus?deleteDateTime?createDateTime?channelDescription?channelName?channelId?spaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgroupCount=field_mapjson__"groupCount"GroupCount.of_jsoninletuserCount=field_mapjson__"userCount"UserCount.of_jsoninletchannelStatus=field_mapjson__"channelStatus"ChannelStatus.of_jsoninletdeleteDateTime=field_mapjson__"deleteDateTime"SyntheticTimestamp_date_time.of_jsoninletcreateDateTime=field_mapjson__"createDateTime"SyntheticTimestamp_date_time.of_jsoninletchannelDescription=field_mapjson__"channelDescription"ChannelDescription.of_jsoninletchannelName=field_mapjson__"channelName"ChannelName.of_jsoninletchannelId=field_mapjson__"channelId"ChannelId.of_jsoninletspaceId=field_mapjson__"spaceId"SpaceId.of_jsoninmake?groupCount?userCount?channelStatus?deleteDateTime?createDateTime?channelDescription?channelName?channelId?spaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains some information about a channel in a private re:Post."]moduleAdminId=structtypenonrect=stringletcontext_="AdminId"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:"AdminId"jletto_json=simple_to_jsonto_valueendmoduleRoleList=structtypenonrect=Role.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Role.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:Role.of_xml)letof_jsonj=list_of_json~kind:"RoleList"~of_json:Role.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleChannelRoleList=structtypenonrect=ChannelRole.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ChannelRole.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:ChannelRole.of_xml)letof_jsonj=list_of_json~kind:"ChannelRoleList"~of_json:ChannelRole.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchError=structtypenonrect={accessorId:AccessorId.toption[@ocaml.doc"The accessor identifier that's related to the error."];error:ErrorCode.toption[@ocaml.doc"The error code."];message:ErrorMessage.toption[@ocaml.doc"Description of the error."]}letmake?accessorId=fun?error->fun?message->fun()->{accessorId;error;message}letto_valuex=structure_to_value[("accessorId",(Option.mapx.accessorId~f:AccessorId.to_value));("error",(Option.mapx.error~f:ErrorCode.to_value));("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inleterror=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"error")inletaccessorId=(Option.map~f:AccessorId.of_xml)(Xml.childxml_arg0"accessorId")inmake?message?error?accessorId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninleterror=field_mapjson__"error"ErrorCode.of_jsoninletaccessorId=field_mapjson__"accessorId"AccessorId.of_jsoninmake?message?error?accessorId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An error that occurred during a batch operation."]moduleSupportedEmailDomainsParameters=structtypenonrect={enabled:FeatureEnableParameter.toption;allowedDomains:AllowedDomainsList.toption}letmake?enabled=fun?allowedDomains->fun()->{enabled;allowedDomains}letto_valuex=structure_to_value[("enabled",(Option.mapx.enabled~f:FeatureEnableParameter.to_value));("allowedDomains",(Option.mapx.allowedDomains~f:AllowedDomainsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letallowedDomains=(Option.map~f:AllowedDomainsList.of_xml)(Xml.childxml_arg0"allowedDomains")inletenabled=(Option.map~f:FeatureEnableParameter.of_xml)(Xml.childxml_arg0"enabled")inmake?allowedDomains?enabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letallowedDomains=field_mapjson__"allowedDomains"AllowedDomainsList.of_jsoninletenabled=field_mapjson__"enabled"FeatureEnableParameter.of_jsoninmake?allowedDomains?enabled()letto_jsonv=composed_to_jsonto_valuevendmoduleAccessDeniedException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"User does not have sufficient access to perform this action."]moduleConflictException=structtypenonrect={message:String_.toption;resourceId:String_.toption[@ocaml.doc"The ID of the resource."];resourceType:String_.toption[@ocaml.doc"The type of the resource."]}letmake?message=fun?resourceId->fun?resourceType->fun()->{message;resourceId;resourceType}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("resourceId",(Option.mapx.resourceId~f:String_.to_value));("resourceType",(Option.mapx.resourceType~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceType")inletresourceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceId")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"resourceType"String_.of_jsoninletresourceId=field_mapjson__"resourceId"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updating or deleting a resource can cause an inconsistent state."]moduleInternalServerException=structtypenonrect={message:String_.toption;retryAfterSeconds:Integer.toption[@ocaml.doc"Advice to clients on when the call can be safely retried."]}letmake?message=fun?retryAfterSeconds->fun()->{message;retryAfterSeconds}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("Retry-After",(Option.mapx.retryAfterSeconds~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretryAfterSeconds=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"Retry-After")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?retryAfterSeconds?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretryAfterSeconds=field_mapjson__"retryAfterSeconds"Integer.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?retryAfterSeconds?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Unexpected error during processing of request."]moduleResourceNotFoundException=structtypenonrect={message:String_.toption;resourceId:String_.toption[@ocaml.doc"The ID of the resource."];resourceType:String_.toption[@ocaml.doc"The type of the resource."]}letmake?message=fun?resourceId->fun?resourceType->fun()->{message;resourceId;resourceType}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("resourceId",(Option.mapx.resourceId~f:String_.to_value));("resourceType",(Option.mapx.resourceType~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceType")inletresourceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceId")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"resourceType"String_.of_jsoninletresourceId=field_mapjson__"resourceId"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request references a resource which does not exist."]moduleThrottlingException=structtypenonrect={message:String_.toption;serviceCode:String_.toption[@ocaml.doc"The code to identify the service."];quotaCode:String_.toption[@ocaml.doc"The code to identify the quota."];retryAfterSeconds:Integer.toption[@ocaml.doc"Advice to clients on when the call can be safely retried."]}letmake?message=fun?serviceCode->fun?quotaCode->fun?retryAfterSeconds->fun()->{message;serviceCode;quotaCode;retryAfterSeconds}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("serviceCode",(Option.mapx.serviceCode~f:String_.to_value));("quotaCode",(Option.mapx.quotaCode~f:String_.to_value));("Retry-After",(Option.mapx.retryAfterSeconds~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretryAfterSeconds=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"Retry-After")inletquotaCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"quotaCode")inletserviceCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceCode")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?retryAfterSeconds?quotaCode?serviceCode?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretryAfterSeconds=field_mapjson__"retryAfterSeconds"Integer.of_jsoninletquotaCode=field_mapjson__"quotaCode"String_.of_jsoninletserviceCode=field_mapjson__"serviceCode"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?retryAfterSeconds?quotaCode?serviceCode?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request was denied due to request throttling."]moduleValidationException=structtypenonrect={message:String_.toption;reason:ValidationExceptionReason.toption[@ocaml.doc"The reason why the request failed validation."];fieldList:ValidationExceptionFieldList.toption[@ocaml.doc"The field that caused the error, if applicable."]}letmake?message=fun?reason->fun?fieldList->fun()->{message;reason;fieldList}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("reason",(Option.mapx.reason~f:ValidationExceptionReason.to_value));("fieldList",(Option.mapx.fieldList~f:ValidationExceptionFieldList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfieldList=(Option.map~f:ValidationExceptionFieldList.of_xml)(Xml.childxml_arg0"fieldList")inletreason=(Option.map~f:ValidationExceptionReason.of_xml)(Xml.childxml_arg0"reason")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?fieldList?reason?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfieldList=field_mapjson__"fieldList"ValidationExceptionFieldList.of_jsoninletreason=field_mapjson__"reason"ValidationExceptionReason.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?fieldList?reason?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input fails to satisfy the constraints specified by an AWS service."]moduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTags=structtypenonrect=(TagKey.t*TagValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((TagKey.of_stringchopped),(TagValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(TagKey.to_valuex)|>(funx->(TagValue.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:TagKey.of_string~of_json:TagValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccessorIdList=structtypenonrect=AccessorId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1000)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AccessorId.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:AccessorId.of_xml)letof_jsonj=list_of_json~kind:"AccessorIdList"~of_json:AccessorId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInviteBody=structtypenonrect=stringletcontext_="InviteBody"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:600)>>=(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:"InviteBody"jletto_json=simple_to_jsonto_valueendmoduleInviteTitle=structtypenonrect=stringletcontext_="InviteTitle"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:200)>>=(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:"InviteTitle"jletto_json=simple_to_jsonto_valueendmoduleSpacesList=structtypenonrect=SpaceData.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SpaceData.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:SpaceData.of_xml)letof_jsonj=list_of_json~kind:"SpacesList"~of_json:SpaceData.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListSpacesLimit=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListSpacesLimit"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleChannelsList=structtypenonrect=ChannelData.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ChannelData.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:ChannelData.of_xml)letof_jsonj=list_of_json~kind:"ChannelsList"~of_json:ChannelData.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListChannelsLimit=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListChannelsLimit"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleClientId=structtypenonrect=stringletcontext_="ClientId"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:"ClientId"jletto_json=simple_to_jsonto_valueendmoduleGroupAdmins=structtypenonrect=AdminId.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AdminId.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:AdminId.of_xml)letof_jsonj=list_of_json~kind:"GroupAdmins"~of_json:AdminId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleIdentityStoreId=structtypenonrect=stringletcontext_="IdentityStoreId"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:"IdentityStoreId"jletto_json=simple_to_jsonto_valueendmoduleRoles=structtypenonrect=(AccessorId.t*RoleList.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types AccessorId RoleList"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(AccessorId.to_valuex)|>(funx->(RoleList.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:AccessorId.of_string~of_json:RoleList.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUserAdmins=structtypenonrect=AdminId.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AdminId.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:AdminId.of_xml)letof_jsonj=list_of_json~kind:"UserAdmins"~of_json:AdminId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleChannelRoles=structtypenonrect=(AccessorId.t*ChannelRoleList.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types AccessorId ChannelRoleList"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(AccessorId.to_valuex)|>(funx->(ChannelRoleList.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:AccessorId.of_string~of_json:ChannelRoleList.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceQuotaExceededException=structtypenonrect={message:String_.toption;resourceId:String_.toption[@ocaml.doc"The id of the resource."];resourceType:String_.toption[@ocaml.doc"The type of the resource."];serviceCode:String_.toption[@ocaml.doc"The code to identify the service."];quotaCode:String_.toption[@ocaml.doc"The code to identify the quota."]}letmake?message=fun?resourceId->fun?resourceType->fun?serviceCode->fun?quotaCode->fun()->{message;resourceId;resourceType;serviceCode;quotaCode}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("resourceId",(Option.mapx.resourceId~f:String_.to_value));("resourceType",(Option.mapx.resourceType~f:String_.to_value));("serviceCode",(Option.mapx.serviceCode~f:String_.to_value));("quotaCode",(Option.mapx.quotaCode~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letquotaCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"quotaCode")inletserviceCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceCode")inletresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceType")inletresourceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceId")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?quotaCode?serviceCode?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letquotaCode=field_mapjson__"quotaCode"String_.of_jsoninletserviceCode=field_mapjson__"serviceCode"String_.of_jsoninletresourceType=field_mapjson__"resourceType"String_.of_jsoninletresourceId=field_mapjson__"resourceId"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?quotaCode?serviceCode?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request would cause a service quota to be exceeded."]moduleSpaceSubdomain=structtypenonrect=stringletcontext_="SpaceSubdomain"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:"SpaceSubdomain"jletto_json=simple_to_jsonto_valueendmoduleBatchErrorList=structtypenonrect=BatchError.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:BatchError.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:BatchError.of_xml)letof_jsonj=list_of_json~kind:"BatchErrorList"~of_json:BatchError.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUpdateSpaceInput=structtypenonrect={spaceId:SpaceId.t[@ocaml.doc"The unique ID of this private re:Post."];description:SpaceDescription.toption[@ocaml.doc"A description for the private re:Post. This is used only to help you identify this private re:Post."];tier:TierLevel.toption[@ocaml.doc"The pricing tier of this private re:Post."];roleArn:Arn.toption[@ocaml.doc"The IAM role that grants permissions to the private re:Post to convert unanswered questions into AWS support tickets."];supportedEmailDomains:SupportedEmailDomainsParameters.toption}letcontext_="UpdateSpaceInput"letmake?description=fun?tier->fun?roleArn->fun?supportedEmailDomains->fun~spaceId->fun()->{description;tier;roleArn;supportedEmailDomains;spaceId}letto_valuex=structure_to_value[("spaceId",(Some(SpaceId.to_valuex.spaceId)));("description",(Option.mapx.description~f:SpaceDescription.to_value));("tier",(Option.mapx.tier~f:TierLevel.to_value));("roleArn",(Option.mapx.roleArn~f:Arn.to_value));("supportedEmailDomains",(Option.mapx.supportedEmailDomains~f:SupportedEmailDomainsParameters.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsupportedEmailDomains=(Option.map~f:SupportedEmailDomainsParameters.of_xml)(Xml.childxml_arg0"supportedEmailDomains")inletroleArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"roleArn")inlettier=(Option.map~f:TierLevel.of_xml)(Xml.childxml_arg0"tier")inletdescription=(Option.map~f:SpaceDescription.of_xml)(Xml.childxml_arg0"description")inletspaceId=SpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"spaceId")inmake?supportedEmailDomains?roleArn?tier?description~spaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsupportedEmailDomains=field_mapjson__"supportedEmailDomains"SupportedEmailDomainsParameters.of_jsoninletroleArn=field_mapjson__"roleArn"Arn.of_jsoninlettier=field_mapjson__"tier"TierLevel.of_jsoninletdescription=field_mapjson__"description"SpaceDescription.of_jsoninletspaceId=field_map_exnjson__"spaceId"SpaceId.of_jsoninmake?supportedEmailDomains?roleArn?tier?description~spaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies an existing AWS re:Post Private private re:Post."]moduleUpdateChannelOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies an existing channel."]moduleUpdateChannelInput=structtypenonrect={spaceId:SpaceId.t[@ocaml.doc"The unique ID of the private re:Post."];channelId:ChannelId.t[@ocaml.doc"The unique ID of the private re:Post channel."];channelName:ChannelName.t[@ocaml.doc"The name for the channel. This must be unique per private re:Post."];channelDescription:ChannelDescription.toption[@ocaml.doc"A description for the channel. This is used only to help you identify this channel."]}letcontext_="UpdateChannelInput"letmake?channelDescription=fun~spaceId->fun~channelId->fun~channelName->fun()->{channelDescription;spaceId;channelId;channelName}letto_valuex=structure_to_value[("spaceId",(Some(SpaceId.to_valuex.spaceId)));("channelId",(Some(ChannelId.to_valuex.channelId)));("channelName",(Some(ChannelName.to_valuex.channelName)));("channelDescription",(Option.mapx.channelDescription~f:ChannelDescription.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchannelDescription=(Option.map~f:ChannelDescription.of_xml)(Xml.childxml_arg0"channelDescription")inletchannelName=ChannelName.of_xml(Xml.child_exn~context:context_xml_arg0"channelName")inletchannelId=ChannelId.of_xml(Xml.child_exn~context:context_xml_arg0"channelId")inletspaceId=SpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"spaceId")inmake?channelDescription~channelName~channelId~spaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchannelDescription=field_mapjson__"channelDescription"ChannelDescription.of_jsoninletchannelName=field_map_exnjson__"channelName"ChannelName.of_jsoninletchannelId=field_map_exnjson__"channelId"ChannelId.of_jsoninletspaceId=field_map_exnjson__"spaceId"SpaceId.of_jsoninmake?channelDescription~channelName~channelId~spaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies an existing channel."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the association of the tag with the AWS re:Post Private resource."]moduleUntagResourceRequest=structtypenonrect={resourceArn:Arn.t[@ocaml.doc"The ARN of the resource."];tagKeys:TagKeyList.t[@ocaml.doc"The key values of the tag."]}letcontext_="UntagResourceRequest"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("resourceArn",(Some(Arn.to_valuex.resourceArn)));("tagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletresourceArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake~tagKeys~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"tagKeys"TagKeyList.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"Arn.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the association of the tag with the AWS re:Post Private resource."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates tags with an AWS re:Post Private resource. Currently, the only resource that can be tagged is the private re:Post. If you specify a new tag key for the resource, the tag is appended to the list of tags that are associated with the resource. If you specify a tag key that\226\128\153s already associated with the resource, the new tag value that you specify replaces the previous value for that tag."]moduleTagResourceRequest=structtypenonrect={resourceArn:Arn.t[@ocaml.doc"The ARN of the resource that the tag is associated with."];tags:Tags.t[@ocaml.doc"The list of tag keys and values that must be associated with the resource. You can associate tag keys only, tags (key and values) only, or a combination of tag keys and tags."]}letcontext_="TagResourceRequest"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("resourceArn",(Some(Arn.to_valuex.resourceArn)));("tags",(Some(Tags.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=Tags.of_xml(Xml.child_exn~context:context_xml_arg0"tags")inletresourceArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake~tags~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"tags"Tags.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"Arn.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates tags with an AWS re:Post Private resource. Currently, the only resource that can be tagged is the private re:Post. If you specify a new tag key for the resource, the tag is appended to the list of tags that are associated with the resource. If you specify a tag key that\226\128\153s already associated with the resource, the new tag value that you specify replaces the previous value for that tag."]moduleSendInvitesInput=structtypenonrect={spaceId:SpaceId.t[@ocaml.doc"The ID of the private re:Post."];accessorIds:AccessorIdList.t[@ocaml.doc"The array of identifiers for the users and groups."];title:InviteTitle.t[@ocaml.doc"The title of the invite."];body:InviteBody.t[@ocaml.doc"The body of the invite."]}letcontext_="SendInvitesInput"letmake~spaceId=fun~accessorIds->fun~title->fun~body->fun()->{spaceId;accessorIds;title;body}letto_valuex=structure_to_value[("spaceId",(Some(SpaceId.to_valuex.spaceId)));("accessorIds",(Some(AccessorIdList.to_valuex.accessorIds)));("title",(Some(InviteTitle.to_valuex.title)));("body",(Some(InviteBody.to_valuex.body)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbody=InviteBody.of_xml(Xml.child_exn~context:context_xml_arg0"body")inlettitle=InviteTitle.of_xml(Xml.child_exn~context:context_xml_arg0"title")inletaccessorIds=AccessorIdList.of_xml(Xml.child_exn~context:context_xml_arg0"accessorIds")inletspaceId=SpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"spaceId")inmake~body~title~accessorIds~spaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbody=field_map_exnjson__"body"InviteBody.of_jsoninlettitle=field_map_exnjson__"title"InviteTitle.of_jsoninletaccessorIds=field_map_exnjson__"accessorIds"AccessorIdList.of_jsoninletspaceId=field_map_exnjson__"spaceId"SpaceId.of_jsoninmake~body~title~accessorIds~spaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Sends an invitation email to selected users and groups."]moduleRegisterAdminInput=structtypenonrect={spaceId:SpaceId.t[@ocaml.doc"The ID of the private re:Post."];adminId:AdminId.t[@ocaml.doc"The ID of the administrator."]}letcontext_="RegisterAdminInput"letmake~spaceId=fun~adminId->fun()->{spaceId;adminId}letto_valuex=structure_to_value[("spaceId",(Some(SpaceId.to_valuex.spaceId)));("adminId",(Some(AdminId.to_valuex.adminId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letadminId=AdminId.of_xml(Xml.child_exn~context:context_xml_arg0"adminId")inletspaceId=SpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"spaceId")inmake~adminId~spaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letadminId=field_map_exnjson__"adminId"AdminId.of_jsoninletspaceId=field_map_exnjson__"spaceId"SpaceId.of_jsoninmake~adminId~spaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds a user or group to the list of administrators of the private re:Post."]moduleListTagsForResourceResponse=structtypenonrect={tags:Tags.toption[@ocaml.doc"The list of tags that are associated with the resource."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the tags that are associated with the AWS re:Post Private resource specified by the resourceArn. The only resource that can be tagged is a private re:Post."]moduleListTagsForResourceRequest=structtypenonrect={resourceArn:Arn.t[@ocaml.doc"The ARN of the resource that the tags are associated with."]}letcontext_="ListTagsForResourceRequest"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("resourceArn",(Some(Arn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_map_exnjson__"resourceArn"Arn.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the tags that are associated with the AWS re:Post Private resource specified by the resourceArn. The only resource that can be tagged is a private re:Post."]moduleListSpacesOutput=structtypenonrect={spaces:SpacesList.toption[@ocaml.doc"An array of structures that contain some information about the private re:Posts in the account."];nextToken:String_.toption[@ocaml.doc"The token that you use when you request the next set of private re:Posts."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?spaces=fun?nextToken->fun()->{spaces;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("spaces",(Option.mapx.spaces~f:SpacesList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletspaces=(Option.map~f:SpacesList.of_xml)(Xml.childxml_arg0"spaces")inmake?nextToken?spaces()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletspaces=field_mapjson__"spaces"SpacesList.of_jsoninmake?nextToken?spaces()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of AWS re:Post Private private re:Posts in the account with some information about each private re:Post."]moduleListSpacesInput=structtypenonrect={nextToken:String_.toption[@ocaml.doc"The token for the next set of private re:Posts to return. You receive this token from a previous ListSpaces operation."];maxResults:ListSpacesLimit.toption[@ocaml.doc"The maximum number of private re:Posts to include in the results."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:String_.to_value));("maxResults",(Option.mapx.maxResults~f:ListSpacesLimit.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:ListSpacesLimit.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"ListSpacesLimit.of_jsoninletnextToken=field_mapjson__"nextToken"String_.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of AWS re:Post Private private re:Posts in the account with some information about each private re:Post."]moduleListChannelsOutput=structtypenonrect={channels:ChannelsList.toption[@ocaml.doc"An array of structures that contain some information about the channels in the private re:Post."];nextToken:String_.toption[@ocaml.doc"The token that you use when you request the next set of channels."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?channels=fun?nextToken->fun()->{channels;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("channels",(Option.mapx.channels~f:ChannelsList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletchannels=(Option.map~f:ChannelsList.of_xml)(Xml.childxml_arg0"channels")inmake?nextToken?channels()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletchannels=field_mapjson__"channels"ChannelsList.of_jsoninmake?nextToken?channels()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the list of channel within a private re:Post with some information about each channel."]moduleListChannelsInput=structtypenonrect={spaceId:SpaceId.t[@ocaml.doc"The unique ID of the private re:Post."];nextToken:String_.toption[@ocaml.doc"The token for the next set of channel to return. You receive this token from a previous ListChannels operation."];maxResults:ListChannelsLimit.toption[@ocaml.doc"The maximum number of channels to include in the results."]}letcontext_="ListChannelsInput"letmake?nextToken=fun?maxResults->fun~spaceId->fun()->{nextToken;maxResults;spaceId}letto_valuex=structure_to_value[("spaceId",(Some(SpaceId.to_valuex.spaceId)));("nextToken",(Option.mapx.nextToken~f:String_.to_value));("maxResults",(Option.mapx.maxResults~f:ListChannelsLimit.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:ListChannelsLimit.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletspaceId=SpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"spaceId")inmake?maxResults?nextToken~spaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"ListChannelsLimit.of_jsoninletnextToken=field_mapjson__"nextToken"String_.of_jsoninletspaceId=field_map_exnjson__"spaceId"SpaceId.of_jsoninmake?maxResults?nextToken~spaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the list of channel within a private re:Post with some information about each channel."]moduleGetSpaceOutput=structtypenonrect={spaceId:SpaceId.toption[@ocaml.doc"The unique ID of the private re:Post."];arn:Arn.toption[@ocaml.doc"The ARN of the private re:Post."];name:SpaceName.toption[@ocaml.doc"The name of the private re:Post."];status:ProvisioningStatus.toption[@ocaml.doc"The creation or deletion status of the private re:Post."];configurationStatus:ConfigurationStatus.toption[@ocaml.doc"The configuration status of the private re:Post."];clientId:ClientId.toption[@ocaml.doc"The Identity Center identifier for the Application Instance."];identityStoreId:IdentityStoreId.toption;applicationArn:Arn.toption;description:SpaceDescription.toption[@ocaml.doc"The description of the private re:Post."];vanityDomainStatus:VanityDomainStatus.toption[@ocaml.doc"The approval status of the custom subdomain."];vanityDomain:Url.toption[@ocaml.doc"The custom subdomain that you use to access your private re:Post. All custom subdomains must be approved by AWS before use."];randomDomain:Url.toption[@ocaml.doc"The AWS generated subdomain of the private re:Post"];customerRoleArn:Arn.toption[@ocaml.doc"The IAM role that grants permissions to the private re:Post to convert unanswered questions into AWS support tickets."];createDateTime:SyntheticTimestamp_date_time.toption[@ocaml.doc"The date when the private re:Post was created."];deleteDateTime:SyntheticTimestamp_date_time.toption[@ocaml.doc"The date when the private re:Post was deleted."];tier:TierLevel.toption[@ocaml.doc"The pricing tier of the private re:Post."];storageLimit:StorageLimit.toption[@ocaml.doc"The storage limit of the private re:Post."];userAdmins:UserAdmins.toption[@ocaml.doc"The list of users that are administrators of the private re:Post."];groupAdmins:GroupAdmins.toption[@ocaml.doc"The list of groups that are administrators of the private re:Post."];roles:Roles.toption[@ocaml.doc"A map of accessor identifiers and their roles."];userKMSKey:KMSKey.toption[@ocaml.doc"The custom AWS KMS key ARN that\226\128\153s used for the AWS KMS encryption."];userCount:UserCount.toption[@ocaml.doc"The number of users that have onboarded to the private re:Post."];contentSize:ContentSize.toption[@ocaml.doc"The content size of the private re:Post."];supportedEmailDomains:SupportedEmailDomainsStatus.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?spaceId=fun?arn->fun?name->fun?status->fun?configurationStatus->fun?clientId->fun?identityStoreId->fun?applicationArn->fun?description->fun?vanityDomainStatus->fun?vanityDomain->fun?randomDomain->fun?customerRoleArn->fun?createDateTime->fun?deleteDateTime->fun?tier->fun?storageLimit->fun?userAdmins->fun?groupAdmins->fun?roles->fun?userKMSKey->fun?userCount->fun?contentSize->fun?supportedEmailDomains->fun()->{spaceId;arn;name;status;configurationStatus;clientId;identityStoreId;applicationArn;description;vanityDomainStatus;vanityDomain;randomDomain;customerRoleArn;createDateTime;deleteDateTime;tier;storageLimit;userAdmins;groupAdmins;roles;userKMSKey;userCount;contentSize;supportedEmailDomains}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("spaceId",(Option.mapx.spaceId~f:SpaceId.to_value));("arn",(Option.mapx.arn~f:Arn.to_value));("name",(Option.mapx.name~f:SpaceName.to_value));("status",(Option.mapx.status~f:ProvisioningStatus.to_value));("configurationStatus",(Option.mapx.configurationStatus~f:ConfigurationStatus.to_value));("clientId",(Option.mapx.clientId~f:ClientId.to_value));("identityStoreId",(Option.mapx.identityStoreId~f:IdentityStoreId.to_value));("applicationArn",(Option.mapx.applicationArn~f:Arn.to_value));("description",(Option.mapx.description~f:SpaceDescription.to_value));("vanityDomainStatus",(Option.mapx.vanityDomainStatus~f:VanityDomainStatus.to_value));("vanityDomain",(Option.mapx.vanityDomain~f:Url.to_value));("randomDomain",(Option.mapx.randomDomain~f:Url.to_value));("customerRoleArn",(Option.mapx.customerRoleArn~f:Arn.to_value));("createDateTime",(Option.mapx.createDateTime~f:SyntheticTimestamp_date_time.to_value));("deleteDateTime",(Option.mapx.deleteDateTime~f:SyntheticTimestamp_date_time.to_value));("tier",(Option.mapx.tier~f:TierLevel.to_value));("storageLimit",(Option.mapx.storageLimit~f:StorageLimit.to_value));("userAdmins",(Option.mapx.userAdmins~f:UserAdmins.to_value));("groupAdmins",(Option.mapx.groupAdmins~f:GroupAdmins.to_value));("roles",(Option.mapx.roles~f:Roles.to_value));("userKMSKey",(Option.mapx.userKMSKey~f:KMSKey.to_value));("userCount",(Option.mapx.userCount~f:UserCount.to_value));("contentSize",(Option.mapx.contentSize~f:ContentSize.to_value));("supportedEmailDomains",(Option.mapx.supportedEmailDomains~f:SupportedEmailDomainsStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsupportedEmailDomains=(Option.map~f:SupportedEmailDomainsStatus.of_xml)(Xml.childxml_arg0"supportedEmailDomains")inletcontentSize=(Option.map~f:ContentSize.of_xml)(Xml.childxml_arg0"contentSize")inletuserCount=(Option.map~f:UserCount.of_xml)(Xml.childxml_arg0"userCount")inletuserKMSKey=(Option.map~f:KMSKey.of_xml)(Xml.childxml_arg0"userKMSKey")inletroles=(Option.map~f:Roles.of_xml)(Xml.childxml_arg0"roles")inletgroupAdmins=(Option.map~f:GroupAdmins.of_xml)(Xml.childxml_arg0"groupAdmins")inletuserAdmins=(Option.map~f:UserAdmins.of_xml)(Xml.childxml_arg0"userAdmins")inletstorageLimit=(Option.map~f:StorageLimit.of_xml)(Xml.childxml_arg0"storageLimit")inlettier=(Option.map~f:TierLevel.of_xml)(Xml.childxml_arg0"tier")inletdeleteDateTime=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"deleteDateTime")inletcreateDateTime=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"createDateTime")inletcustomerRoleArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"customerRoleArn")inletrandomDomain=(Option.map~f:Url.of_xml)(Xml.childxml_arg0"randomDomain")inletvanityDomain=(Option.map~f:Url.of_xml)(Xml.childxml_arg0"vanityDomain")inletvanityDomainStatus=(Option.map~f:VanityDomainStatus.of_xml)(Xml.childxml_arg0"vanityDomainStatus")inletdescription=(Option.map~f:SpaceDescription.of_xml)(Xml.childxml_arg0"description")inletapplicationArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"applicationArn")inletidentityStoreId=(Option.map~f:IdentityStoreId.of_xml)(Xml.childxml_arg0"identityStoreId")inletclientId=(Option.map~f:ClientId.of_xml)(Xml.childxml_arg0"clientId")inletconfigurationStatus=(Option.map~f:ConfigurationStatus.of_xml)(Xml.childxml_arg0"configurationStatus")inletstatus=(Option.map~f:ProvisioningStatus.of_xml)(Xml.childxml_arg0"status")inletname=(Option.map~f:SpaceName.of_xml)(Xml.childxml_arg0"name")inletarn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"arn")inletspaceId=(Option.map~f:SpaceId.of_xml)(Xml.childxml_arg0"spaceId")inmake?supportedEmailDomains?contentSize?userCount?userKMSKey?roles?groupAdmins?userAdmins?storageLimit?tier?deleteDateTime?createDateTime?customerRoleArn?randomDomain?vanityDomain?vanityDomainStatus?description?applicationArn?identityStoreId?clientId?configurationStatus?status?name?arn?spaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsupportedEmailDomains=field_mapjson__"supportedEmailDomains"SupportedEmailDomainsStatus.of_jsoninletcontentSize=field_mapjson__"contentSize"ContentSize.of_jsoninletuserCount=field_mapjson__"userCount"UserCount.of_jsoninletuserKMSKey=field_mapjson__"userKMSKey"KMSKey.of_jsoninletroles=field_mapjson__"roles"Roles.of_jsoninletgroupAdmins=field_mapjson__"groupAdmins"GroupAdmins.of_jsoninletuserAdmins=field_mapjson__"userAdmins"UserAdmins.of_jsoninletstorageLimit=field_mapjson__"storageLimit"StorageLimit.of_jsoninlettier=field_mapjson__"tier"TierLevel.of_jsoninletdeleteDateTime=field_mapjson__"deleteDateTime"SyntheticTimestamp_date_time.of_jsoninletcreateDateTime=field_mapjson__"createDateTime"SyntheticTimestamp_date_time.of_jsoninletcustomerRoleArn=field_mapjson__"customerRoleArn"Arn.of_jsoninletrandomDomain=field_mapjson__"randomDomain"Url.of_jsoninletvanityDomain=field_mapjson__"vanityDomain"Url.of_jsoninletvanityDomainStatus=field_mapjson__"vanityDomainStatus"VanityDomainStatus.of_jsoninletdescription=field_mapjson__"description"SpaceDescription.of_jsoninletapplicationArn=field_mapjson__"applicationArn"Arn.of_jsoninletidentityStoreId=field_mapjson__"identityStoreId"IdentityStoreId.of_jsoninletclientId=field_mapjson__"clientId"ClientId.of_jsoninletconfigurationStatus=field_mapjson__"configurationStatus"ConfigurationStatus.of_jsoninletstatus=field_mapjson__"status"ProvisioningStatus.of_jsoninletname=field_mapjson__"name"SpaceName.of_jsoninletarn=field_mapjson__"arn"Arn.of_jsoninletspaceId=field_mapjson__"spaceId"SpaceId.of_jsoninmake?supportedEmailDomains?contentSize?userCount?userKMSKey?roles?groupAdmins?userAdmins?storageLimit?tier?deleteDateTime?createDateTime?customerRoleArn?randomDomain?vanityDomain?vanityDomainStatus?description?applicationArn?identityStoreId?clientId?configurationStatus?status?name?arn?spaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Displays information about the AWS re:Post Private private re:Post."]moduleGetSpaceInput=structtypenonrect={spaceId:SpaceId.t[@ocaml.doc"The ID of the private re:Post."]}letcontext_="GetSpaceInput"letmake~spaceId=fun()->{spaceId}letto_valuex=structure_to_value[("spaceId",(Some(SpaceId.to_valuex.spaceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letspaceId=SpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"spaceId")inmake~spaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letspaceId=field_map_exnjson__"spaceId"SpaceId.of_jsoninmake~spaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Displays information about the AWS re:Post Private private re:Post."]moduleGetChannelOutput=structtypenonrect={spaceId:SpaceId.toption[@ocaml.doc"The unique ID of the private re:Post."];channelId:ChannelId.toption[@ocaml.doc"The unique ID of the private re:Post channel."];channelName:ChannelName.toption[@ocaml.doc"The name for the channel. This must be unique per private re:Post."];channelDescription:ChannelDescription.toption[@ocaml.doc"A description for the channel. This is used only to help you identify this channel."];createDateTime:SyntheticTimestamp_date_time.toption[@ocaml.doc"The date when the channel was created."];deleteDateTime:SyntheticTimestamp_date_time.toption[@ocaml.doc"The date when the channel was deleted."];channelRoles:ChannelRoles.toption[@ocaml.doc"The channel roles associated to the users and groups of the channel."];channelStatus:ChannelStatus.toption[@ocaml.doc"The status pf the channel."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?spaceId=fun?channelId->fun?channelName->fun?channelDescription->fun?createDateTime->fun?deleteDateTime->fun?channelRoles->fun?channelStatus->fun()->{spaceId;channelId;channelName;channelDescription;createDateTime;deleteDateTime;channelRoles;channelStatus}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("spaceId",(Option.mapx.spaceId~f:SpaceId.to_value));("channelId",(Option.mapx.channelId~f:ChannelId.to_value));("channelName",(Option.mapx.channelName~f:ChannelName.to_value));("channelDescription",(Option.mapx.channelDescription~f:ChannelDescription.to_value));("createDateTime",(Option.mapx.createDateTime~f:SyntheticTimestamp_date_time.to_value));("deleteDateTime",(Option.mapx.deleteDateTime~f:SyntheticTimestamp_date_time.to_value));("channelRoles",(Option.mapx.channelRoles~f:ChannelRoles.to_value));("channelStatus",(Option.mapx.channelStatus~f:ChannelStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchannelStatus=(Option.map~f:ChannelStatus.of_xml)(Xml.childxml_arg0"channelStatus")inletchannelRoles=(Option.map~f:ChannelRoles.of_xml)(Xml.childxml_arg0"channelRoles")inletdeleteDateTime=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"deleteDateTime")inletcreateDateTime=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"createDateTime")inletchannelDescription=(Option.map~f:ChannelDescription.of_xml)(Xml.childxml_arg0"channelDescription")inletchannelName=(Option.map~f:ChannelName.of_xml)(Xml.childxml_arg0"channelName")inletchannelId=(Option.map~f:ChannelId.of_xml)(Xml.childxml_arg0"channelId")inletspaceId=(Option.map~f:SpaceId.of_xml)(Xml.childxml_arg0"spaceId")inmake?channelStatus?channelRoles?deleteDateTime?createDateTime?channelDescription?channelName?channelId?spaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchannelStatus=field_mapjson__"channelStatus"ChannelStatus.of_jsoninletchannelRoles=field_mapjson__"channelRoles"ChannelRoles.of_jsoninletdeleteDateTime=field_mapjson__"deleteDateTime"SyntheticTimestamp_date_time.of_jsoninletcreateDateTime=field_mapjson__"createDateTime"SyntheticTimestamp_date_time.of_jsoninletchannelDescription=field_mapjson__"channelDescription"ChannelDescription.of_jsoninletchannelName=field_mapjson__"channelName"ChannelName.of_jsoninletchannelId=field_mapjson__"channelId"ChannelId.of_jsoninletspaceId=field_mapjson__"spaceId"SpaceId.of_jsoninmake?channelStatus?channelRoles?deleteDateTime?createDateTime?channelDescription?channelName?channelId?spaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Displays information about a channel in a private re:Post."]moduleGetChannelInput=structtypenonrect={spaceId:SpaceId.t[@ocaml.doc"The unique ID of the private re:Post."];channelId:ChannelId.t[@ocaml.doc"The unique ID of the private re:Post channel."]}letcontext_="GetChannelInput"letmake~spaceId=fun~channelId->fun()->{spaceId;channelId}letto_valuex=structure_to_value[("spaceId",(Some(SpaceId.to_valuex.spaceId)));("channelId",(Some(ChannelId.to_valuex.channelId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchannelId=ChannelId.of_xml(Xml.child_exn~context:context_xml_arg0"channelId")inletspaceId=SpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"spaceId")inmake~channelId~spaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchannelId=field_map_exnjson__"channelId"ChannelId.of_jsoninletspaceId=field_map_exnjson__"spaceId"SpaceId.of_jsoninmake~channelId~spaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Displays information about a channel in a private re:Post."]moduleDeregisterAdminInput=structtypenonrect={spaceId:SpaceId.t[@ocaml.doc"The ID of the private re:Post to remove the admin from."];adminId:AdminId.t[@ocaml.doc"The ID of the admin to remove."]}letcontext_="DeregisterAdminInput"letmake~spaceId=fun~adminId->fun()->{spaceId;adminId}letto_valuex=structure_to_value[("spaceId",(Some(SpaceId.to_valuex.spaceId)));("adminId",(Some(AdminId.to_valuex.adminId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letadminId=AdminId.of_xml(Xml.child_exn~context:context_xml_arg0"adminId")inletspaceId=SpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"spaceId")inmake~adminId~spaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letadminId=field_map_exnjson__"adminId"AdminId.of_jsoninletspaceId=field_map_exnjson__"spaceId"SpaceId.of_jsoninmake~adminId~spaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the user or group from the list of administrators of the private re:Post."]moduleDeleteSpaceInput=structtypenonrect={spaceId:SpaceId.t[@ocaml.doc"The unique ID of the private re:Post."]}letcontext_="DeleteSpaceInput"letmake~spaceId=fun()->{spaceId}letto_valuex=structure_to_value[("spaceId",(Some(SpaceId.to_valuex.spaceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letspaceId=SpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"spaceId")inmake~spaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letspaceId=field_map_exnjson__"spaceId"SpaceId.of_jsoninmake~spaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an AWS re:Post Private private re:Post."]moduleCreateSpaceOutput=structtypenonrect={spaceId:SpaceId.toption[@ocaml.doc"The unique ID of the private re:Post."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?spaceId=fun()->{spaceId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("spaceId",(Option.mapx.spaceId~f:SpaceId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letspaceId=(Option.map~f:SpaceId.of_xml)(Xml.childxml_arg0"spaceId")inmake?spaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letspaceId=field_mapjson__"spaceId"SpaceId.of_jsoninmake?spaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an AWS re:Post Private private re:Post."]moduleCreateSpaceInput=structtypenonrect={name:SpaceName.t[@ocaml.doc"The name for the private re:Post. This must be unique in your account."];subdomain:SpaceSubdomain.t[@ocaml.doc"The subdomain that you use to access your AWS re:Post Private private re:Post. All custom subdomains must be approved by AWS before use. In addition to your custom subdomain, all private re:Posts are issued an AWS generated subdomain for immediate use."];tier:TierLevel.t[@ocaml.doc"The pricing tier for the private re:Post."];description:SpaceDescription.toption[@ocaml.doc"A description for the private re:Post. This is used only to help you identify this private re:Post."];userKMSKey:KMSKey.toption[@ocaml.doc"The AWS KMS key ARN that\226\128\153s used for the AWS KMS encryption. If you don't provide a key, your data is encrypted by default with a key that AWS owns and manages for you."];tags:Tags.toption[@ocaml.doc"The list of tags associated with the private re:Post."];roleArn:Arn.toption[@ocaml.doc"The IAM role that grants permissions to the private re:Post to convert unanswered questions into AWS support tickets."];supportedEmailDomains:SupportedEmailDomainsParameters.toption}letcontext_="CreateSpaceInput"letmake?description=fun?userKMSKey->fun?tags->fun?roleArn->fun?supportedEmailDomains->fun~name->fun~subdomain->fun~tier->fun()->{description;userKMSKey;tags;roleArn;supportedEmailDomains;name;subdomain;tier}letto_valuex=structure_to_value[("name",(Some(SpaceName.to_valuex.name)));("subdomain",(Some(SpaceSubdomain.to_valuex.subdomain)));("tier",(Some(TierLevel.to_valuex.tier)));("description",(Option.mapx.description~f:SpaceDescription.to_value));("userKMSKey",(Option.mapx.userKMSKey~f:KMSKey.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("roleArn",(Option.mapx.roleArn~f:Arn.to_value));("supportedEmailDomains",(Option.mapx.supportedEmailDomains~f:SupportedEmailDomainsParameters.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsupportedEmailDomains=(Option.map~f:SupportedEmailDomainsParameters.of_xml)(Xml.childxml_arg0"supportedEmailDomains")inletroleArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"roleArn")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletuserKMSKey=(Option.map~f:KMSKey.of_xml)(Xml.childxml_arg0"userKMSKey")inletdescription=(Option.map~f:SpaceDescription.of_xml)(Xml.childxml_arg0"description")inlettier=TierLevel.of_xml(Xml.child_exn~context:context_xml_arg0"tier")inletsubdomain=SpaceSubdomain.of_xml(Xml.child_exn~context:context_xml_arg0"subdomain")inletname=SpaceName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake?supportedEmailDomains?roleArn?tags?userKMSKey?description~tier~subdomain~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsupportedEmailDomains=field_mapjson__"supportedEmailDomains"SupportedEmailDomainsParameters.of_jsoninletroleArn=field_mapjson__"roleArn"Arn.of_jsoninlettags=field_mapjson__"tags"Tags.of_jsoninletuserKMSKey=field_mapjson__"userKMSKey"KMSKey.of_jsoninletdescription=field_mapjson__"description"SpaceDescription.of_jsoninlettier=field_map_exnjson__"tier"TierLevel.of_jsoninletsubdomain=field_map_exnjson__"subdomain"SpaceSubdomain.of_jsoninletname=field_map_exnjson__"name"SpaceName.of_jsoninmake?supportedEmailDomains?roleArn?tags?userKMSKey?description~tier~subdomain~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an AWS re:Post Private private re:Post."]moduleCreateChannelOutput=structtypenonrect={channelId:ChannelId.toption[@ocaml.doc"The unique ID of the private re:Post channel."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?channelId=fun()->{channelId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("channelId",(Option.mapx.channelId~f:ChannelId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchannelId=(Option.map~f:ChannelId.of_xml)(Xml.childxml_arg0"channelId")inmake?channelId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchannelId=field_mapjson__"channelId"ChannelId.of_jsoninmake?channelId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a channel in an AWS re:Post Private private re:Post."]moduleCreateChannelInput=structtypenonrect={spaceId:SpaceId.t[@ocaml.doc"The unique ID of the private re:Post."];channelName:ChannelName.t[@ocaml.doc"The name for the channel. This must be unique per private re:Post."];channelDescription:ChannelDescription.toption[@ocaml.doc"A description for the channel. This is used only to help you identify this channel."]}letcontext_="CreateChannelInput"letmake?channelDescription=fun~spaceId->fun~channelName->fun()->{channelDescription;spaceId;channelName}letto_valuex=structure_to_value[("spaceId",(Some(SpaceId.to_valuex.spaceId)));("channelName",(Some(ChannelName.to_valuex.channelName)));("channelDescription",(Option.mapx.channelDescription~f:ChannelDescription.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchannelDescription=(Option.map~f:ChannelDescription.of_xml)(Xml.childxml_arg0"channelDescription")inletchannelName=ChannelName.of_xml(Xml.child_exn~context:context_xml_arg0"channelName")inletspaceId=SpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"spaceId")inmake?channelDescription~channelName~spaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchannelDescription=field_mapjson__"channelDescription"ChannelDescription.of_jsoninletchannelName=field_map_exnjson__"channelName"ChannelName.of_jsoninletspaceId=field_map_exnjson__"spaceId"SpaceId.of_jsoninmake?channelDescription~channelName~spaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a channel in an AWS re:Post Private private re:Post."]moduleBatchRemoveRoleOutput=structtypenonrect={removedAccessorIds:AccessorIdList.toption[@ocaml.doc"An array of successfully updated accessor identifiers."];errors:BatchErrorList.toption[@ocaml.doc"An array of errors that occurred when roles were removed."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?removedAccessorIds=fun?errors->fun()->{removedAccessorIds;errors}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("removedAccessorIds",(Option.mapx.removedAccessorIds~f:AccessorIdList.to_value));("errors",(Option.mapx.errors~f:BatchErrorList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrors=(Option.map~f:BatchErrorList.of_xml)(Xml.childxml_arg0"errors")inletremovedAccessorIds=(Option.map~f:AccessorIdList.of_xml)(Xml.childxml_arg0"removedAccessorIds")inmake?errors?removedAccessorIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrors=field_mapjson__"errors"BatchErrorList.of_jsoninletremovedAccessorIds=field_mapjson__"removedAccessorIds"AccessorIdList.of_jsoninmake?errors?removedAccessorIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Remove a role from multiple users or groups in a private re:Post."]moduleBatchRemoveRoleInput=structtypenonrect={spaceId:SpaceId.t[@ocaml.doc"The unique ID of the private re:Post."];accessorIds:AccessorIdList.t[@ocaml.doc"The user or group accessor identifiers to remove the role from."];role:Role.t[@ocaml.doc"The role to remove from the users or groups."]}letcontext_="BatchRemoveRoleInput"letmake~spaceId=fun~accessorIds->fun~role->fun()->{spaceId;accessorIds;role}letto_valuex=structure_to_value[("spaceId",(Some(SpaceId.to_valuex.spaceId)));("accessorIds",(Some(AccessorIdList.to_valuex.accessorIds)));("role",(Some(Role.to_valuex.role)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrole=Role.of_xml(Xml.child_exn~context:context_xml_arg0"role")inletaccessorIds=AccessorIdList.of_xml(Xml.child_exn~context:context_xml_arg0"accessorIds")inletspaceId=SpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"spaceId")inmake~role~accessorIds~spaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrole=field_map_exnjson__"role"Role.of_jsoninletaccessorIds=field_map_exnjson__"accessorIds"AccessorIdList.of_jsoninletspaceId=field_map_exnjson__"spaceId"SpaceId.of_jsoninmake~role~accessorIds~spaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Remove a role from multiple users or groups in a private re:Post."]moduleBatchRemoveChannelRoleFromAccessorsOutput=structtypenonrect={removedAccessorIds:AccessorIdList.toption[@ocaml.doc"An array of successfully updated identifiers."];errors:BatchErrorList.toption[@ocaml.doc"An array of errors that occurred when roles were removed."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?removedAccessorIds=fun?errors->fun()->{removedAccessorIds;errors}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("removedAccessorIds",(Option.mapx.removedAccessorIds~f:AccessorIdList.to_value));("errors",(Option.mapx.errors~f:BatchErrorList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrors=(Option.map~f:BatchErrorList.of_xml)(Xml.childxml_arg0"errors")inletremovedAccessorIds=(Option.map~f:AccessorIdList.of_xml)(Xml.childxml_arg0"removedAccessorIds")inmake?errors?removedAccessorIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrors=field_mapjson__"errors"BatchErrorList.of_jsoninletremovedAccessorIds=field_mapjson__"removedAccessorIds"AccessorIdList.of_jsoninmake?errors?removedAccessorIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Remove a role from multiple users or groups in a private re:Post channel."]moduleBatchRemoveChannelRoleFromAccessorsInput=structtypenonrect={spaceId:SpaceId.t[@ocaml.doc"The unique ID of the private re:Post."];channelId:ChannelId.t[@ocaml.doc"The unique ID of the private re:Post channel."];accessorIds:AccessorIdList.t[@ocaml.doc"The users or groups identifiers to remove the role from."];channelRole:ChannelRole.t[@ocaml.doc"The channel role to remove from the users or groups."]}letcontext_="BatchRemoveChannelRoleFromAccessorsInput"letmake~spaceId=fun~channelId->fun~accessorIds->fun~channelRole->fun()->{spaceId;channelId;accessorIds;channelRole}letto_valuex=structure_to_value[("spaceId",(Some(SpaceId.to_valuex.spaceId)));("channelId",(Some(ChannelId.to_valuex.channelId)));("accessorIds",(Some(AccessorIdList.to_valuex.accessorIds)));("channelRole",(Some(ChannelRole.to_valuex.channelRole)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchannelRole=ChannelRole.of_xml(Xml.child_exn~context:context_xml_arg0"channelRole")inletaccessorIds=AccessorIdList.of_xml(Xml.child_exn~context:context_xml_arg0"accessorIds")inletchannelId=ChannelId.of_xml(Xml.child_exn~context:context_xml_arg0"channelId")inletspaceId=SpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"spaceId")inmake~channelRole~accessorIds~channelId~spaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchannelRole=field_map_exnjson__"channelRole"ChannelRole.of_jsoninletaccessorIds=field_map_exnjson__"accessorIds"AccessorIdList.of_jsoninletchannelId=field_map_exnjson__"channelId"ChannelId.of_jsoninletspaceId=field_map_exnjson__"spaceId"SpaceId.of_jsoninmake~channelRole~accessorIds~channelId~spaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Remove a role from multiple users or groups in a private re:Post channel."]moduleBatchAddRoleOutput=structtypenonrect={addedAccessorIds:AccessorIdList.toption[@ocaml.doc"An array of successfully updated accessor identifiers."];errors:BatchErrorList.toption[@ocaml.doc"An array of errors that occurred when roles were added."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?addedAccessorIds=fun?errors->fun()->{addedAccessorIds;errors}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("addedAccessorIds",(Option.mapx.addedAccessorIds~f:AccessorIdList.to_value));("errors",(Option.mapx.errors~f:BatchErrorList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrors=(Option.map~f:BatchErrorList.of_xml)(Xml.childxml_arg0"errors")inletaddedAccessorIds=(Option.map~f:AccessorIdList.of_xml)(Xml.childxml_arg0"addedAccessorIds")inmake?errors?addedAccessorIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrors=field_mapjson__"errors"BatchErrorList.of_jsoninletaddedAccessorIds=field_mapjson__"addedAccessorIds"AccessorIdList.of_jsoninmake?errors?addedAccessorIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Add a role to multiple users or groups in a private re:Post."]moduleBatchAddRoleInput=structtypenonrect={spaceId:SpaceId.t[@ocaml.doc"The unique ID of the private re:Post."];accessorIds:AccessorIdList.t[@ocaml.doc"The user or group accessor identifiers to add the role to."];role:Role.t[@ocaml.doc"The role to add to the users or groups."]}letcontext_="BatchAddRoleInput"letmake~spaceId=fun~accessorIds->fun~role->fun()->{spaceId;accessorIds;role}letto_valuex=structure_to_value[("spaceId",(Some(SpaceId.to_valuex.spaceId)));("accessorIds",(Some(AccessorIdList.to_valuex.accessorIds)));("role",(Some(Role.to_valuex.role)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrole=Role.of_xml(Xml.child_exn~context:context_xml_arg0"role")inletaccessorIds=AccessorIdList.of_xml(Xml.child_exn~context:context_xml_arg0"accessorIds")inletspaceId=SpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"spaceId")inmake~role~accessorIds~spaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrole=field_map_exnjson__"role"Role.of_jsoninletaccessorIds=field_map_exnjson__"accessorIds"AccessorIdList.of_jsoninletspaceId=field_map_exnjson__"spaceId"SpaceId.of_jsoninmake~role~accessorIds~spaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Add a role to multiple users or groups in a private re:Post."]moduleBatchAddChannelRoleToAccessorsOutput=structtypenonrect={addedAccessorIds:AccessorIdList.toption[@ocaml.doc"An array of successfully updated identifiers."];errors:BatchErrorList.toption[@ocaml.doc"An array of errors that occurred when roles were added."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?addedAccessorIds=fun?errors->fun()->{addedAccessorIds;errors}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("addedAccessorIds",(Option.mapx.addedAccessorIds~f:AccessorIdList.to_value));("errors",(Option.mapx.errors~f:BatchErrorList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrors=(Option.map~f:BatchErrorList.of_xml)(Xml.childxml_arg0"errors")inletaddedAccessorIds=(Option.map~f:AccessorIdList.of_xml)(Xml.childxml_arg0"addedAccessorIds")inmake?errors?addedAccessorIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrors=field_mapjson__"errors"BatchErrorList.of_jsoninletaddedAccessorIds=field_mapjson__"addedAccessorIds"AccessorIdList.of_jsoninmake?errors?addedAccessorIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Add role to multiple users or groups in a private re:Post channel."]moduleBatchAddChannelRoleToAccessorsInput=structtypenonrect={spaceId:SpaceId.t[@ocaml.doc"The unique ID of the private re:Post."];channelId:ChannelId.t[@ocaml.doc"The unique ID of the private re:Post channel."];accessorIds:AccessorIdList.t[@ocaml.doc"The user or group identifiers to add the role to."];channelRole:ChannelRole.t[@ocaml.doc"The channel role to add to the users or groups."]}letcontext_="BatchAddChannelRoleToAccessorsInput"letmake~spaceId=fun~channelId->fun~accessorIds->fun~channelRole->fun()->{spaceId;channelId;accessorIds;channelRole}letto_valuex=structure_to_value[("spaceId",(Some(SpaceId.to_valuex.spaceId)));("channelId",(Some(ChannelId.to_valuex.channelId)));("accessorIds",(Some(AccessorIdList.to_valuex.accessorIds)));("channelRole",(Some(ChannelRole.to_valuex.channelRole)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchannelRole=ChannelRole.of_xml(Xml.child_exn~context:context_xml_arg0"channelRole")inletaccessorIds=AccessorIdList.of_xml(Xml.child_exn~context:context_xml_arg0"accessorIds")inletchannelId=ChannelId.of_xml(Xml.child_exn~context:context_xml_arg0"channelId")inletspaceId=SpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"spaceId")inmake~channelRole~accessorIds~channelId~spaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchannelRole=field_map_exnjson__"channelRole"ChannelRole.of_jsoninletaccessorIds=field_map_exnjson__"accessorIds"AccessorIdList.of_jsoninletchannelId=field_map_exnjson__"channelId"ChannelId.of_jsoninletspaceId=field_map_exnjson__"spaceId"SpaceId.of_jsoninmake~channelRole~accessorIds~channelId~spaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Add role to multiple users or groups in a private re:Post channel."]