1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165(* 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.ivschatletapiVersion="2020-07-14"letendpointPrefix="ivschat"letserviceFullName="Amazon Interactive Video Service Chat"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="ivschat"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[]))])moduleLogGroupName=structtypenonrect=stringletcontext_="LogGroupName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:512)>>=(fun()->check_patterni~pattern:"[\\.\\-_/#A-Za-z0-9]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LogGroupName"jletto_json=simple_to_jsonto_valueendmoduleDeliveryStreamName=structtypenonrect=stringletcontext_="DeliveryStreamName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9_.-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DeliveryStreamName"jletto_json=simple_to_jsonto_valueendmoduleBucketName=structtypenonrect=stringletcontext_="BucketName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:3)>>=(fun()->(check_string_maxi~max:63)>>=(fun()->check_patterni~pattern:"[a-z0-9-.]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"BucketName"jletto_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_valueendmoduleFieldName=structtypenonrect=stringletcontext_="FieldName"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:"FieldName"jletto_json=simple_to_jsonto_valueendmoduleLoggingConfigurationIdentifier=structtypenonrect=stringletcontext_="LoggingConfigurationIdentifier"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"arn:aws:ivschat:[a-z0-9-]+:[0-9]+:logging-configuration/[a-zA-Z0-9-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LoggingConfigurationIdentifier"jletto_json=simple_to_jsonto_valueendmoduleFallbackResult=structtypenonrect=|ALLOW|DENY|Non_static_idofstringletmakei=iletto_string=function|ALLOW->"ALLOW"|DENY->"DENY"|Non_static_ids->sletof_string=function|"ALLOW"->ALLOW|"DENY"->DENY|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration FallbackResult"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FallbackResult"j)letto_json=simple_to_jsonto_valueendmoduleLambdaArn=structtypenonrect=stringletcontext_="LambdaArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:170)>>=(fun()->check_patterni~pattern:"$|^arn:aws:lambda:[a-z0-9-]+:[0-9]{12}:function:.+.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LambdaArn"jletto_json=simple_to_jsonto_valueendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleCloudWatchLogsDestinationConfiguration=structtypenonrect={logGroupName:LogGroupName.t[@ocaml.doc"Name of the Amazon Cloudwatch Logs destination where chat activity will be logged."]}letcontext_="CloudWatchLogsDestinationConfiguration"letmake~logGroupName=fun()->{logGroupName}letto_valuex=structure_to_value[("logGroupName",(Some(LogGroupName.to_valuex.logGroupName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlogGroupName=LogGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"logGroupName")inmake~logGroupName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlogGroupName=field_map_exnjson__"logGroupName"LogGroupName.of_jsoninmake~logGroupName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies a CloudWatch Logs location where chat logs will be stored."]moduleFirehoseDestinationConfiguration=structtypenonrect={deliveryStreamName:DeliveryStreamName.t[@ocaml.doc"Name of the Amazon Kinesis Firehose delivery stream where chat activity will be logged."]}letcontext_="FirehoseDestinationConfiguration"letmake~deliveryStreamName=fun()->{deliveryStreamName}letto_valuex=structure_to_value[("deliveryStreamName",(Some(DeliveryStreamName.to_valuex.deliveryStreamName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeliveryStreamName=DeliveryStreamName.of_xml(Xml.child_exn~context:context_xml_arg0"deliveryStreamName")inmake~deliveryStreamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeliveryStreamName=field_map_exnjson__"deliveryStreamName"DeliveryStreamName.of_jsoninmake~deliveryStreamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies a Kinesis Firehose location where chat logs will be stored."]moduleS3DestinationConfiguration=structtypenonrect={bucketName:BucketName.t[@ocaml.doc"Name of the Amazon S3 bucket where chat activity will be logged."]}letcontext_="S3DestinationConfiguration"letmake~bucketName=fun()->{bucketName}letto_valuex=structure_to_value[("bucketName",(Some(BucketName.to_valuex.bucketName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbucketName=BucketName.of_xml(Xml.child_exn~context:context_xml_arg0"bucketName")inmake~bucketName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbucketName=field_map_exnjson__"bucketName"BucketName.of_jsoninmake~bucketName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies an S3 location where chat logs will be stored."]moduleValidationExceptionField=structtypenonrect={name:FieldName.toption[@ocaml.doc"Name of the field which failed validation."];message:ErrorMessage.toption[@ocaml.doc"Explanation of the reason for the validation error."]}letmake?name=fun?message->fun()->{name;message}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:FieldName.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")inletname=(Option.map~f:FieldName.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"ErrorMessage.of_jsoninletname=field_mapjson__"name"FieldName.of_jsoninmake?message?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This object is used in the ValidationException error."]moduleLoggingConfigurationIdentifierList=structtypenonrect=LoggingConfigurationIdentifier.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:3)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:LoggingConfigurationIdentifier.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:LoggingConfigurationIdentifier.of_xml)letof_jsonj=list_of_json~kind:"LoggingConfigurationIdentifierList"~of_json:LoggingConfigurationIdentifier.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMessageReviewHandler=structtypenonrect={uri:LambdaArn.toption[@ocaml.doc"Identifier of the message review handler. Currently this must be an ARN of a lambda function."];fallbackResult:FallbackResult.toption[@ocaml.doc"Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return a valid response, encounters an error, or times out. (For the timeout period, see Service Quotas.) If allowed, the message is delivered with returned content to all users connected to the room. If denied, the message is not delivered to any user. Default: ALLOW."]}letmake?uri=fun?fallbackResult->fun()->{uri;fallbackResult}letto_valuex=structure_to_value[("uri",(Option.mapx.uri~f:LambdaArn.to_value));("fallbackResult",(Option.mapx.fallbackResult~f:FallbackResult.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfallbackResult=(Option.map~f:FallbackResult.of_xml)(Xml.childxml_arg0"fallbackResult")inleturi=(Option.map~f:LambdaArn.of_xml)(Xml.childxml_arg0"uri")inmake?fallbackResult?uri()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfallbackResult=field_mapjson__"fallbackResult"FallbackResult.of_jsoninleturi=field_mapjson__"uri"LambdaArn.of_jsoninmake?fallbackResult?uri()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration information for optional message review."]moduleRoomArn=structtypenonrect=stringletcontext_="RoomArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"arn:aws:ivschat:[a-z0-9-]+:[0-9]+:room/[a-zA-Z0-9-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RoomArn"jletto_json=simple_to_jsonto_valueendmoduleRoomID=structtypenonrect=stringletcontext_="RoomID"letmakei=letopenResultinok_or_failwith((check_string_mini~min:12)>>=(fun()->(check_string_maxi~max:12)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RoomID"jletto_json=simple_to_jsonto_valueendmoduleRoomName=structtypenonrect=stringletcontext_="RoomName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9-_]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RoomName"jletto_json=simple_to_jsonto_valueendmoduleTags=structtypenonrect=(TagKey.t*TagValue.t)listletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:0));iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((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_valuevendmoduleTime=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_valueendmoduleDestinationConfiguration=structtypenonrect={s3:S3DestinationConfiguration.toption[@ocaml.doc"An Amazon S3 destination configuration where chat activity will be logged."];cloudWatchLogs:CloudWatchLogsDestinationConfiguration.toption[@ocaml.doc"An Amazon CloudWatch Logs destination configuration where chat activity will be logged."];firehose:FirehoseDestinationConfiguration.toption[@ocaml.doc"An Amazon Kinesis Data Firehose destination configuration where chat activity will be logged."]}letmake?s3=fun?cloudWatchLogs->fun?firehose->fun()->{s3;cloudWatchLogs;firehose}letto_valuex=structure_to_value[("s3",(Option.mapx.s3~f:S3DestinationConfiguration.to_value));("cloudWatchLogs",(Option.mapx.cloudWatchLogs~f:CloudWatchLogsDestinationConfiguration.to_value));("firehose",(Option.mapx.firehose~f:FirehoseDestinationConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfirehose=(Option.map~f:FirehoseDestinationConfiguration.of_xml)(Xml.childxml_arg0"firehose")inletcloudWatchLogs=(Option.map~f:CloudWatchLogsDestinationConfiguration.of_xml)(Xml.childxml_arg0"cloudWatchLogs")inlets3=(Option.map~f:S3DestinationConfiguration.of_xml)(Xml.childxml_arg0"s3")inmake?firehose?cloudWatchLogs?s3()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfirehose=field_mapjson__"firehose"FirehoseDestinationConfiguration.of_jsoninletcloudWatchLogs=field_mapjson__"cloudWatchLogs"CloudWatchLogsDestinationConfiguration.of_jsoninlets3=field_mapjson__"s3"S3DestinationConfiguration.of_jsoninmake?firehose?cloudWatchLogs?s3()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A complex type that describes a location where chat logs will be stored. Each member represents the configuration of one log destination. For logging, you define only one type of destination (for CloudWatch Logs, Kinesis Firehose, or S3)."]moduleLoggingConfigurationArn=structtypenonrect=stringletcontext_="LoggingConfigurationArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"arn:aws:ivschat:[a-z0-9-]+:[0-9]+:logging-configuration/[a-zA-Z0-9-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LoggingConfigurationArn"jletto_json=simple_to_jsonto_valueendmoduleLoggingConfigurationID=structtypenonrect=stringletcontext_="LoggingConfigurationID"letmakei=letopenResultinok_or_failwith((check_string_mini~min:12)>>=(fun()->(check_string_maxi~max:12)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LoggingConfigurationID"jletto_json=simple_to_jsonto_valueendmoduleLoggingConfigurationName=structtypenonrect=stringletcontext_="LoggingConfigurationName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9-_]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LoggingConfigurationName"jletto_json=simple_to_jsonto_valueendmoduleLoggingConfigurationState=structtypenonrect=|CREATING|CREATE_FAILED|DELETING|DELETE_FAILED|UPDATING|UPDATE_FAILED|ACTIVE|Non_static_idofstringletmakei=iletto_string=function|CREATING->"CREATING"|CREATE_FAILED->"CREATE_FAILED"|DELETING->"DELETING"|DELETE_FAILED->"DELETE_FAILED"|UPDATING->"UPDATING"|UPDATE_FAILED->"UPDATE_FAILED"|ACTIVE->"ACTIVE"|Non_static_ids->sletof_string=function|"CREATING"->CREATING|"CREATE_FAILED"->CREATE_FAILED|"DELETING"->DELETING|"DELETE_FAILED"->DELETE_FAILED|"UPDATING"->UPDATING|"UPDATE_FAILED"->UPDATE_FAILED|"ACTIVE"->ACTIVE|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration LoggingConfigurationState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"LoggingConfigurationState"j)letto_json=simple_to_jsonto_valueendmoduleResourceId=structtypenonrect=stringletcontext_="ResourceId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ResourceId"jletto_json=simple_to_jsonto_valueendmoduleResourceType=structtypenonrect=|ROOM|Non_static_idofstringletmakei=iletto_string=function|ROOM->"ROOM"|Non_static_ids->sletof_string=function|"ROOM"->ROOM|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 ResourceType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ResourceType"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=|UNKNOWN_OPERATION|FIELD_VALIDATION_FAILED|OTHER|Non_static_idofstringletmakei=iletto_string=function|UNKNOWN_OPERATION->"UNKNOWN_OPERATION"|FIELD_VALIDATION_FAILED->"FIELD_VALIDATION_FAILED"|OTHER->"OTHER"|Non_static_ids->sletof_string=function|"UNKNOWN_OPERATION"->UNKNOWN_OPERATION|"FIELD_VALIDATION_FAILED"->FIELD_VALIDATION_FAILED|"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_valueendmoduleLimit=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 Limit"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleRoomSummary=structtypenonrect={arn:RoomArn.toption[@ocaml.doc"Room ARN."];id:RoomID.toption[@ocaml.doc"Room ID, generated by the system. This is a relative identifier, the part of the ARN that uniquely identifies the room."];name:RoomName.toption[@ocaml.doc"Room name. The value does not need to be unique."];messageReviewHandler:MessageReviewHandler.toption[@ocaml.doc"Configuration information for optional review of messages."];createTime:Time.toption[@ocaml.doc"Time when the room was created. This is an ISO 8601 timestamp; note that this is returned as a string."];updateTime:Time.toption[@ocaml.doc"Time of the room\226\128\153s last update. This is an ISO 8601 timestamp; note that this is returned as a string."];tags:Tags.toption[@ocaml.doc"Tags attached to the resource. Array of maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS Chat has no constraints beyond what is documented there."];loggingConfigurationIdentifiers:LoggingConfigurationIdentifierList.toption[@ocaml.doc"List of logging-configuration identifiers attached to the room."]}letmake?arn=fun?id->fun?name->fun?messageReviewHandler->fun?createTime->fun?updateTime->fun?tags->fun?loggingConfigurationIdentifiers->fun()->{arn;id;name;messageReviewHandler;createTime;updateTime;tags;loggingConfigurationIdentifiers}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:RoomArn.to_value));("id",(Option.mapx.id~f:RoomID.to_value));("name",(Option.mapx.name~f:RoomName.to_value));("messageReviewHandler",(Option.mapx.messageReviewHandler~f:MessageReviewHandler.to_value));("createTime",(Option.mapx.createTime~f:Time.to_value));("updateTime",(Option.mapx.updateTime~f:Time.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("loggingConfigurationIdentifiers",(Option.mapx.loggingConfigurationIdentifiers~f:LoggingConfigurationIdentifierList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letloggingConfigurationIdentifiers=(Option.map~f:LoggingConfigurationIdentifierList.of_xml)(Xml.childxml_arg0"loggingConfigurationIdentifiers")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletupdateTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"updateTime")inletcreateTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"createTime")inletmessageReviewHandler=(Option.map~f:MessageReviewHandler.of_xml)(Xml.childxml_arg0"messageReviewHandler")inletname=(Option.map~f:RoomName.of_xml)(Xml.childxml_arg0"name")inletid=(Option.map~f:RoomID.of_xml)(Xml.childxml_arg0"id")inletarn=(Option.map~f:RoomArn.of_xml)(Xml.childxml_arg0"arn")inmake?loggingConfigurationIdentifiers?tags?updateTime?createTime?messageReviewHandler?name?id?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letloggingConfigurationIdentifiers=field_mapjson__"loggingConfigurationIdentifiers"LoggingConfigurationIdentifierList.of_jsoninlettags=field_mapjson__"tags"Tags.of_jsoninletupdateTime=field_mapjson__"updateTime"Time.of_jsoninletcreateTime=field_mapjson__"createTime"Time.of_jsoninletmessageReviewHandler=field_mapjson__"messageReviewHandler"MessageReviewHandler.of_jsoninletname=field_mapjson__"name"RoomName.of_jsoninletid=field_mapjson__"id"RoomID.of_jsoninletarn=field_mapjson__"arn"RoomArn.of_jsoninmake?loggingConfigurationIdentifiers?tags?updateTime?createTime?messageReviewHandler?name?id?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summary information about a room."]moduleLoggingConfigurationSummary=structtypenonrect={arn:LoggingConfigurationArn.toption[@ocaml.doc"Logging-configuration ARN."];id:LoggingConfigurationID.toption[@ocaml.doc"Logging-configuration ID, generated by the system. This is a relative identifier, the part of the ARN that uniquely identifies the room."];createTime:Time.toption[@ocaml.doc"Time when the logging configuration was created. This is an ISO 8601 timestamp; note that this is returned as a string."];updateTime:Time.toption[@ocaml.doc"Time of the logging configuration\226\128\153s last update. This is an ISO 8601 timestamp; note that this is returned as a string."];name:LoggingConfigurationName.toption[@ocaml.doc"Logging-configuration name. The value does not need to be unique."];destinationConfiguration:DestinationConfiguration.toption[@ocaml.doc"A complex type that contains a destination configuration for where chat content will be logged."];state:LoggingConfigurationState.toption[@ocaml.doc"The state of the logging configuration. When this is ACTIVE, the configuration is ready for logging chat content."];tags:Tags.toption[@ocaml.doc"Tags to attach to the resource. Array of maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS Chat has no constraints on tags beyond what is documented there."]}letmake?arn=fun?id->fun?createTime->fun?updateTime->fun?name->fun?destinationConfiguration->fun?state->fun?tags->fun()->{arn;id;createTime;updateTime;name;destinationConfiguration;state;tags}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:LoggingConfigurationArn.to_value));("id",(Option.mapx.id~f:LoggingConfigurationID.to_value));("createTime",(Option.mapx.createTime~f:Time.to_value));("updateTime",(Option.mapx.updateTime~f:Time.to_value));("name",(Option.mapx.name~f:LoggingConfigurationName.to_value));("destinationConfiguration",(Option.mapx.destinationConfiguration~f:DestinationConfiguration.to_value));("state",(Option.mapx.state~f:LoggingConfigurationState.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")inletstate=(Option.map~f:LoggingConfigurationState.of_xml)(Xml.childxml_arg0"state")inletdestinationConfiguration=(Option.map~f:DestinationConfiguration.of_xml)(Xml.childxml_arg0"destinationConfiguration")inletname=(Option.map~f:LoggingConfigurationName.of_xml)(Xml.childxml_arg0"name")inletupdateTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"updateTime")inletcreateTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"createTime")inletid=(Option.map~f:LoggingConfigurationID.of_xml)(Xml.childxml_arg0"id")inletarn=(Option.map~f:LoggingConfigurationArn.of_xml)(Xml.childxml_arg0"arn")inmake?tags?state?destinationConfiguration?name?updateTime?createTime?id?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletstate=field_mapjson__"state"LoggingConfigurationState.of_jsoninletdestinationConfiguration=field_mapjson__"destinationConfiguration"DestinationConfiguration.of_jsoninletname=field_mapjson__"name"LoggingConfigurationName.of_jsoninletupdateTime=field_mapjson__"updateTime"Time.of_jsoninletcreateTime=field_mapjson__"createTime"Time.of_jsoninletid=field_mapjson__"id"LoggingConfigurationID.of_jsoninletarn=field_mapjson__"arn"LoggingConfigurationArn.of_jsoninmake?tags?state?destinationConfiguration?name?updateTime?createTime?id?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summary information about a logging configuration."]moduleChatTokenCapability=structtypenonrect=|SEND_MESSAGE|DISCONNECT_USER|DELETE_MESSAGE|Non_static_idofstringletmakei=iletto_string=function|SEND_MESSAGE->"SEND_MESSAGE"|DISCONNECT_USER->"DISCONNECT_USER"|DELETE_MESSAGE->"DELETE_MESSAGE"|Non_static_ids->sletof_string=function|"SEND_MESSAGE"->SEND_MESSAGE|"DISCONNECT_USER"->DISCONNECT_USER|"DELETE_MESSAGE"->DELETE_MESSAGE|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 ChatTokenCapability"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ChatTokenCapability"j)letto_json=simple_to_jsonto_valueendmoduleAccessDeniedException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevendmodulePendingVerification=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevendmoduleResourceNotFoundException=structtypenonrect={message:ErrorMessage.toption;resourceId:ResourceId.toption;resourceType:ResourceType.toption}letmake?message=fun?resourceId->fun?resourceType->fun()->{message;resourceId;resourceType}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value));("resourceId",(Option.mapx.resourceId~f:ResourceId.to_value));("resourceType",(Option.mapx.resourceType~f:ResourceType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:ResourceType.of_xml)(Xml.childxml_arg0"resourceType")inletresourceId=(Option.map~f:ResourceId.of_xml)(Xml.childxml_arg0"resourceId")inletmessage=(Option.map~f:ErrorMessage.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"ResourceType.of_jsoninletresourceId=field_mapjson__"resourceId"ResourceId.of_jsoninletmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevendmoduleRoomMaxMessageLength=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:500)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for RoomMaxMessageLength"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleRoomMaxMessageRatePerSecond=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 RoomMaxMessageRatePerSecond"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleValidationException=structtypenonrect={message:ErrorMessage.toption;reason:ValidationExceptionReason.toption;fieldList:ValidationExceptionFieldList.toption}letmake?message=fun?reason->fun?fieldList->fun()->{message;reason;fieldList}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.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:ErrorMessage.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"ErrorMessage.of_jsoninmake?fieldList?reason?message()letto_jsonv=composed_to_jsonto_valuevendmoduleRoomIdentifier=structtypenonrect=stringletcontext_="RoomIdentifier"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"arn:aws:ivschat:[a-z0-9-]+:[0-9]+:room/[a-zA-Z0-9-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RoomIdentifier"jletto_json=simple_to_jsonto_valueendmoduleConflictException=structtypenonrect={message:ErrorMessage.toption;resourceId:ResourceId.toption;resourceType:ResourceType.toption}letmake?message=fun?resourceId->fun?resourceType->fun()->{message;resourceId;resourceType}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value));("resourceId",(Option.mapx.resourceId~f:ResourceId.to_value));("resourceType",(Option.mapx.resourceType~f:ResourceType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:ResourceType.of_xml)(Xml.childxml_arg0"resourceType")inletresourceId=(Option.map~f:ResourceId.of_xml)(Xml.childxml_arg0"resourceId")inletmessage=(Option.map~f:ErrorMessage.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"ResourceType.of_jsoninletresourceId=field_mapjson__"resourceId"ResourceId.of_jsoninletmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevendmoduleUpdateLoggingConfigurationState=structtypenonrect=|ACTIVE|Non_static_idofstringletmakei=iletto_string=function|ACTIVE->"ACTIVE"|Non_static_ids->sletof_string=function|"ACTIVE"->ACTIVE|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration UpdateLoggingConfigurationState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"UpdateLoggingConfigurationState"j)letto_json=simple_to_jsonto_valueendmoduleInternalServerException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevendmoduleResourceArn=structtypenonrect=stringletcontext_="ResourceArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"arn:aws:ivschat:[a-z0-9-]+:[0-9]+:[a-z-]/[a-zA-Z0-9-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ResourceArn"jletto_json=simple_to_jsonto_valueendmoduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleID=structtypenonrect=stringletcontext_="ID"letmakei=letopenResultinok_or_failwith((check_string_mini~min:12)>>=(fun()->(check_string_maxi~max:12)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ID"jletto_json=simple_to_jsonto_valueendmoduleThrottlingException=structtypenonrect={message:ErrorMessage.toption;resourceId:ResourceId.toption;resourceType:ResourceType.toption;limit:Limit.toption}letmake?message=fun?resourceId->fun?resourceType->fun?limit->fun()->{message;resourceId;resourceType;limit}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value));("resourceId",(Option.mapx.resourceId~f:ResourceId.to_value));("resourceType",(Option.mapx.resourceType~f:ResourceType.to_value));("limit",(Option.mapx.limit~f:Limit.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlimit=(Option.map~f:Limit.of_xml)(Xml.childxml_arg0"limit")inletresourceType=(Option.map~f:ResourceType.of_xml)(Xml.childxml_arg0"resourceType")inletresourceId=(Option.map~f:ResourceId.of_xml)(Xml.childxml_arg0"resourceId")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?limit?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlimit=field_mapjson__"limit"Limit.of_jsoninletresourceType=field_mapjson__"resourceType"ResourceType.of_jsoninletresourceId=field_mapjson__"resourceId"ResourceId.of_jsoninletmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?limit?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevendmoduleEventAttributes=structtypenonrect=(String_.t*String_.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((String_.of_stringchopped),(String_.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(String_.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:String_.of_string~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEventName=structtypenonrect=stringletcontext_="EventName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EventName"jletto_json=simple_to_jsonto_valueendmodulePaginationToken=structtypenonrect=stringletcontext_="PaginationToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PaginationToken"jletto_json=simple_to_jsonto_valueendmoduleRoomList=structtypenonrect=RoomSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RoomSummary.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:RoomSummary.of_xml)letof_jsonj=list_of_json~kind:"RoomList"~of_json:RoomSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxRoomResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxRoomResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleLoggingConfigurationList=structtypenonrect=LoggingConfigurationSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:LoggingConfigurationSummary.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:LoggingConfigurationSummary.of_xml)letof_jsonj=list_of_json~kind:"LoggingConfigurationList"~of_json:LoggingConfigurationSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxLoggingConfigurationResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxLoggingConfigurationResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleReason=structtypenonrect=stringletcontext_="Reason"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:"Reason"jletto_json=simple_to_jsonto_valueendmoduleUserID=structtypenonrect=stringletcontext_="UserID"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"UserID"jletto_json=simple_to_jsonto_valueendmoduleMessageID=structtypenonrect=stringletcontext_="MessageID"letmakei=letopenResultinok_or_failwith((check_string_mini~min:12)>>=(fun()->(check_string_maxi~max:12)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MessageID"jletto_json=simple_to_jsonto_valueendmoduleServiceQuotaExceededException=structtypenonrect={message:ErrorMessage.toption;resourceId:ResourceId.toption;resourceType:ResourceType.toption;limit:Limit.toption}letmake?message=fun?resourceId->fun?resourceType->fun?limit->fun()->{message;resourceId;resourceType;limit}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value));("resourceId",(Option.mapx.resourceId~f:ResourceId.to_value));("resourceType",(Option.mapx.resourceType~f:ResourceType.to_value));("limit",(Option.mapx.limit~f:Limit.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlimit=(Option.map~f:Limit.of_xml)(Xml.childxml_arg0"limit")inletresourceType=(Option.map~f:ResourceType.of_xml)(Xml.childxml_arg0"resourceType")inletresourceId=(Option.map~f:ResourceId.of_xml)(Xml.childxml_arg0"resourceId")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?limit?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlimit=field_mapjson__"limit"Limit.of_jsoninletresourceType=field_mapjson__"resourceType"ResourceType.of_jsoninletresourceId=field_mapjson__"resourceId"ResourceId.of_jsoninletmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?limit?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevendmoduleCreateLoggingConfigurationState=structtypenonrect=|ACTIVE|Non_static_idofstringletmakei=iletto_string=function|ACTIVE->"ACTIVE"|Non_static_ids->sletof_string=function|"ACTIVE"->ACTIVE|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration CreateLoggingConfigurationState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CreateLoggingConfigurationState"j)letto_json=simple_to_jsonto_valueendmoduleChatToken=structtypenonrect=stringletcontext_="ChatToken"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:"ChatToken"jletto_json=simple_to_jsonto_valueendmoduleChatTokenAttributes=structtypenonrect=(String_.t*String_.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((String_.of_stringchopped),(String_.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(String_.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:String_.of_string~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleChatTokenCapabilities=structtypenonrect=ChatTokenCapability.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ChatTokenCapability.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:ChatTokenCapability.of_xml)letof_jsonj=list_of_json~kind:"ChatTokenCapabilities"~of_json:ChatTokenCapability.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSessionDurationInMinutes=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:180)>>=(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 SessionDurationInMinutes"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleUpdateRoomResponse=structtypenonrect={arn:RoomArn.toption[@ocaml.doc"Room ARN, from the request (if identifier was an ARN)."];id:RoomID.toption[@ocaml.doc"Room ID, generated by the system. This is a relative identifier, the part of the ARN that uniquely identifies the room."];name:RoomName.toption[@ocaml.doc"Room name, from the request (if specified)."];createTime:Time.toption[@ocaml.doc"Time when the room was created. This is an ISO 8601 timestamp; note that this is returned as a string."];updateTime:Time.toption[@ocaml.doc"Time of the room\226\128\153s last update. This is an ISO 8601 timestamp; note that this is returned as a string."];maximumMessageRatePerSecond:RoomMaxMessageRatePerSecond.toption[@ocaml.doc"Maximum number of messages per second that can be sent to the room (by all clients), from the request (if specified)."];maximumMessageLength:RoomMaxMessageLength.toption[@ocaml.doc"Maximum number of characters in a single message, from the request (if specified)."];messageReviewHandler:MessageReviewHandler.toption[@ocaml.doc"Configuration information for optional review of messages."];tags:Tags.toption[@ocaml.doc"Tags attached to the resource. Array of maps, each of the form string:string (key:value)."];loggingConfigurationIdentifiers:LoggingConfigurationIdentifierList.toption[@ocaml.doc"Array of logging configurations attached to the room, from the request (if specified)."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`PendingVerificationofPendingVerification.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?id->fun?name->fun?createTime->fun?updateTime->fun?maximumMessageRatePerSecond->fun?maximumMessageLength->fun?messageReviewHandler->fun?tags->fun?loggingConfigurationIdentifiers->fun()->{arn;id;name;createTime;updateTime;maximumMessageRatePerSecond;maximumMessageLength;messageReviewHandler;tags;loggingConfigurationIdentifiers}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"PendingVerification"->`PendingVerification(PendingVerification.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:RoomArn.to_value));("id",(Option.mapx.id~f:RoomID.to_value));("name",(Option.mapx.name~f:RoomName.to_value));("createTime",(Option.mapx.createTime~f:Time.to_value));("updateTime",(Option.mapx.updateTime~f:Time.to_value));("maximumMessageRatePerSecond",(Option.mapx.maximumMessageRatePerSecond~f:RoomMaxMessageRatePerSecond.to_value));("maximumMessageLength",(Option.mapx.maximumMessageLength~f:RoomMaxMessageLength.to_value));("messageReviewHandler",(Option.mapx.messageReviewHandler~f:MessageReviewHandler.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("loggingConfigurationIdentifiers",(Option.mapx.loggingConfigurationIdentifiers~f:LoggingConfigurationIdentifierList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letloggingConfigurationIdentifiers=(Option.map~f:LoggingConfigurationIdentifierList.of_xml)(Xml.childxml_arg0"loggingConfigurationIdentifiers")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletmessageReviewHandler=(Option.map~f:MessageReviewHandler.of_xml)(Xml.childxml_arg0"messageReviewHandler")inletmaximumMessageLength=(Option.map~f:RoomMaxMessageLength.of_xml)(Xml.childxml_arg0"maximumMessageLength")inletmaximumMessageRatePerSecond=(Option.map~f:RoomMaxMessageRatePerSecond.of_xml)(Xml.childxml_arg0"maximumMessageRatePerSecond")inletupdateTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"updateTime")inletcreateTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"createTime")inletname=(Option.map~f:RoomName.of_xml)(Xml.childxml_arg0"name")inletid=(Option.map~f:RoomID.of_xml)(Xml.childxml_arg0"id")inletarn=(Option.map~f:RoomArn.of_xml)(Xml.childxml_arg0"arn")inmake?loggingConfigurationIdentifiers?tags?messageReviewHandler?maximumMessageLength?maximumMessageRatePerSecond?updateTime?createTime?name?id?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letloggingConfigurationIdentifiers=field_mapjson__"loggingConfigurationIdentifiers"LoggingConfigurationIdentifierList.of_jsoninlettags=field_mapjson__"tags"Tags.of_jsoninletmessageReviewHandler=field_mapjson__"messageReviewHandler"MessageReviewHandler.of_jsoninletmaximumMessageLength=field_mapjson__"maximumMessageLength"RoomMaxMessageLength.of_jsoninletmaximumMessageRatePerSecond=field_mapjson__"maximumMessageRatePerSecond"RoomMaxMessageRatePerSecond.of_jsoninletupdateTime=field_mapjson__"updateTime"Time.of_jsoninletcreateTime=field_mapjson__"createTime"Time.of_jsoninletname=field_mapjson__"name"RoomName.of_jsoninletid=field_mapjson__"id"RoomID.of_jsoninletarn=field_mapjson__"arn"RoomArn.of_jsoninmake?loggingConfigurationIdentifiers?tags?messageReviewHandler?maximumMessageLength?maximumMessageRatePerSecond?updateTime?createTime?name?id?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a room\226\128\153s configuration."]moduleUpdateRoomRequest=structtypenonrect={identifier:RoomIdentifier.t[@ocaml.doc"Identifier of the room to be updated. Currently this must be an ARN."];name:RoomName.toption[@ocaml.doc"Room name. The value does not need to be unique."];maximumMessageRatePerSecond:RoomMaxMessageRatePerSecond.toption[@ocaml.doc"Maximum number of messages per second that can be sent to the room (by all clients). Default: 10."];maximumMessageLength:RoomMaxMessageLength.toption[@ocaml.doc"The maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes. Default: 500."];messageReviewHandler:MessageReviewHandler.toption[@ocaml.doc"Configuration information for optional review of messages. Specify an empty uri string to disassociate a message review handler from the specified room."];loggingConfigurationIdentifiers:LoggingConfigurationIdentifierList.toption[@ocaml.doc"Array of logging-configuration identifiers attached to the room."]}letcontext_="UpdateRoomRequest"letmake?name=fun?maximumMessageRatePerSecond->fun?maximumMessageLength->fun?messageReviewHandler->fun?loggingConfigurationIdentifiers->fun~identifier->fun()->{name;maximumMessageRatePerSecond;maximumMessageLength;messageReviewHandler;loggingConfigurationIdentifiers;identifier}letto_valuex=structure_to_value[("identifier",(Some(RoomIdentifier.to_valuex.identifier)));("name",(Option.mapx.name~f:RoomName.to_value));("maximumMessageRatePerSecond",(Option.mapx.maximumMessageRatePerSecond~f:RoomMaxMessageRatePerSecond.to_value));("maximumMessageLength",(Option.mapx.maximumMessageLength~f:RoomMaxMessageLength.to_value));("messageReviewHandler",(Option.mapx.messageReviewHandler~f:MessageReviewHandler.to_value));("loggingConfigurationIdentifiers",(Option.mapx.loggingConfigurationIdentifiers~f:LoggingConfigurationIdentifierList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letloggingConfigurationIdentifiers=(Option.map~f:LoggingConfigurationIdentifierList.of_xml)(Xml.childxml_arg0"loggingConfigurationIdentifiers")inletmessageReviewHandler=(Option.map~f:MessageReviewHandler.of_xml)(Xml.childxml_arg0"messageReviewHandler")inletmaximumMessageLength=(Option.map~f:RoomMaxMessageLength.of_xml)(Xml.childxml_arg0"maximumMessageLength")inletmaximumMessageRatePerSecond=(Option.map~f:RoomMaxMessageRatePerSecond.of_xml)(Xml.childxml_arg0"maximumMessageRatePerSecond")inletname=(Option.map~f:RoomName.of_xml)(Xml.childxml_arg0"name")inletidentifier=RoomIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"identifier")inmake?loggingConfigurationIdentifiers?messageReviewHandler?maximumMessageLength?maximumMessageRatePerSecond?name~identifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letloggingConfigurationIdentifiers=field_mapjson__"loggingConfigurationIdentifiers"LoggingConfigurationIdentifierList.of_jsoninletmessageReviewHandler=field_mapjson__"messageReviewHandler"MessageReviewHandler.of_jsoninletmaximumMessageLength=field_mapjson__"maximumMessageLength"RoomMaxMessageLength.of_jsoninletmaximumMessageRatePerSecond=field_mapjson__"maximumMessageRatePerSecond"RoomMaxMessageRatePerSecond.of_jsoninletname=field_mapjson__"name"RoomName.of_jsoninletidentifier=field_map_exnjson__"identifier"RoomIdentifier.of_jsoninmake?loggingConfigurationIdentifiers?messageReviewHandler?maximumMessageLength?maximumMessageRatePerSecond?name~identifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a room\226\128\153s configuration."]moduleUpdateLoggingConfigurationResponse=structtypenonrect={arn:LoggingConfigurationArn.toption[@ocaml.doc"Logging-configuration ARN, from the request (if identifier was an ARN)."];id:LoggingConfigurationID.toption[@ocaml.doc"Logging-configuration ID, generated by the system. This is a relative identifier, the part of the ARN that uniquely identifies the room."];createTime:Time.toption[@ocaml.doc"Time when the logging configuration was created. This is an ISO 8601 timestamp; note that this is returned as a string."];updateTime:Time.toption[@ocaml.doc"Time of the logging configuration\226\128\153s last update. This is an ISO 8601 timestamp; note that this is returned as a string."];name:LoggingConfigurationName.toption[@ocaml.doc"Logging-configuration name, from the request (if specified)."];destinationConfiguration:DestinationConfiguration.toption[@ocaml.doc"A complex type that contains a destination configuration for where chat content will be logged, from the request. There is only one type of destination (cloudWatchLogs, firehose, or s3) in a destinationConfiguration."];state:UpdateLoggingConfigurationState.toption[@ocaml.doc"The state of the logging configuration. When the state is ACTIVE, the configuration is ready to log chat content."];tags:Tags.toption[@ocaml.doc"Tags attached to the resource. Array of maps, each of the form string:string (key:value)."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`PendingVerificationofPendingVerification.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?id->fun?createTime->fun?updateTime->fun?name->fun?destinationConfiguration->fun?state->fun?tags->fun()->{arn;id;createTime;updateTime;name;destinationConfiguration;state;tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"PendingVerification"->`PendingVerification(PendingVerification.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:LoggingConfigurationArn.to_value));("id",(Option.mapx.id~f:LoggingConfigurationID.to_value));("createTime",(Option.mapx.createTime~f:Time.to_value));("updateTime",(Option.mapx.updateTime~f:Time.to_value));("name",(Option.mapx.name~f:LoggingConfigurationName.to_value));("destinationConfiguration",(Option.mapx.destinationConfiguration~f:DestinationConfiguration.to_value));("state",(Option.mapx.state~f:UpdateLoggingConfigurationState.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")inletstate=(Option.map~f:UpdateLoggingConfigurationState.of_xml)(Xml.childxml_arg0"state")inletdestinationConfiguration=(Option.map~f:DestinationConfiguration.of_xml)(Xml.childxml_arg0"destinationConfiguration")inletname=(Option.map~f:LoggingConfigurationName.of_xml)(Xml.childxml_arg0"name")inletupdateTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"updateTime")inletcreateTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"createTime")inletid=(Option.map~f:LoggingConfigurationID.of_xml)(Xml.childxml_arg0"id")inletarn=(Option.map~f:LoggingConfigurationArn.of_xml)(Xml.childxml_arg0"arn")inmake?tags?state?destinationConfiguration?name?updateTime?createTime?id?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletstate=field_mapjson__"state"UpdateLoggingConfigurationState.of_jsoninletdestinationConfiguration=field_mapjson__"destinationConfiguration"DestinationConfiguration.of_jsoninletname=field_mapjson__"name"LoggingConfigurationName.of_jsoninletupdateTime=field_mapjson__"updateTime"Time.of_jsoninletcreateTime=field_mapjson__"createTime"Time.of_jsoninletid=field_mapjson__"id"LoggingConfigurationID.of_jsoninletarn=field_mapjson__"arn"LoggingConfigurationArn.of_jsoninmake?tags?state?destinationConfiguration?name?updateTime?createTime?id?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a specified logging configuration."]moduleUpdateLoggingConfigurationRequest=structtypenonrect={identifier:LoggingConfigurationIdentifier.t[@ocaml.doc"Identifier of the logging configuration to be updated."];name:LoggingConfigurationName.toption[@ocaml.doc"Logging-configuration name. The value does not need to be unique."];destinationConfiguration:DestinationConfiguration.toption[@ocaml.doc"A complex type that contains a destination configuration for where chat content will be logged. There can be only one type of destination (cloudWatchLogs, firehose, or s3) in a destinationConfiguration."]}letcontext_="UpdateLoggingConfigurationRequest"letmake?name=fun?destinationConfiguration->fun~identifier->fun()->{name;destinationConfiguration;identifier}letto_valuex=structure_to_value[("identifier",(Some(LoggingConfigurationIdentifier.to_valuex.identifier)));("name",(Option.mapx.name~f:LoggingConfigurationName.to_value));("destinationConfiguration",(Option.mapx.destinationConfiguration~f:DestinationConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdestinationConfiguration=(Option.map~f:DestinationConfiguration.of_xml)(Xml.childxml_arg0"destinationConfiguration")inletname=(Option.map~f:LoggingConfigurationName.of_xml)(Xml.childxml_arg0"name")inletidentifier=LoggingConfigurationIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"identifier")inmake?destinationConfiguration?name~identifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdestinationConfiguration=field_mapjson__"destinationConfiguration"DestinationConfiguration.of_jsoninletname=field_mapjson__"name"LoggingConfigurationName.of_jsoninletidentifier=field_map_exnjson__"identifier"LoggingConfigurationIdentifier.of_jsoninmake?destinationConfiguration?name~identifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a specified logging configuration."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))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 tags from the resource with the specified ARN."]moduleUntagResourceRequest=structtypenonrect={resourceArn:ResourceArn.t[@ocaml.doc"The ARN of the resource to be untagged. The ARN must be URL-encoded."];tagKeys:TagKeyList.t[@ocaml.doc"Array of tags to be removed. Array of maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS Chat has no constraints beyond what is documented there."]}letcontext_="UntagResourceRequest"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("resourceArn",(Some(ResourceArn.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=ResourceArn.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"ResourceArn.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes tags from the resource with the specified ARN."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds or updates tags for the AWS resource with the specified ARN."]moduleTagResourceRequest=structtypenonrect={resourceArn:ResourceArn.t[@ocaml.doc"The ARN of the resource to be tagged. The ARN must be URL-encoded."];tags:Tags.t[@ocaml.doc"Array of tags to be added or updated. Array of maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS Chat has no constraints beyond what is documented there."]}letcontext_="TagResourceRequest"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("resourceArn",(Some(ResourceArn.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=ResourceArn.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"ResourceArn.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds or updates tags for the AWS resource with the specified ARN."]moduleSendEventResponse=structtypenonrect={id:ID.toption[@ocaml.doc"An identifier generated by Amazon IVS Chat. This identifier must be used in subsequent operations for this message, such as DeleteMessage."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`PendingVerificationofPendingVerification.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?id=fun()->{id}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.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)|"PendingVerification"->`PendingVerification(PendingVerification.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))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.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[("id",(Option.mapx.id~f:ID.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=(Option.map~f:ID.of_xml)(Xml.childxml_arg0"id")inmake?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_mapjson__"id"ID.of_jsoninmake?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Sends an event to a room. Use this within your application\226\128\153s business logic to send events to clients of a room; e.g., to notify clients to change the way the chat UI is rendered."]moduleSendEventRequest=structtypenonrect={roomIdentifier:RoomIdentifier.t[@ocaml.doc"Identifier of the room to which the event will be sent. Currently this must be an ARN."];eventName:EventName.t[@ocaml.doc"Application-defined name of the event to send to clients."];attributes:EventAttributes.toption[@ocaml.doc"Application-defined metadata to attach to the event sent to clients. The maximum length of the metadata is 1 KB total."]}letcontext_="SendEventRequest"letmake?attributes=fun~roomIdentifier->fun~eventName->fun()->{attributes;roomIdentifier;eventName}letto_valuex=structure_to_value[("roomIdentifier",(Some(RoomIdentifier.to_valuex.roomIdentifier)));("eventName",(Some(EventName.to_valuex.eventName)));("attributes",(Option.mapx.attributes~f:EventAttributes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributes=(Option.map~f:EventAttributes.of_xml)(Xml.childxml_arg0"attributes")inleteventName=EventName.of_xml(Xml.child_exn~context:context_xml_arg0"eventName")inletroomIdentifier=RoomIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"roomIdentifier")inmake?attributes~eventName~roomIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_mapjson__"attributes"EventAttributes.of_jsoninleteventName=field_map_exnjson__"eventName"EventName.of_jsoninletroomIdentifier=field_map_exnjson__"roomIdentifier"RoomIdentifier.of_jsoninmake?attributes~eventName~roomIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Sends an event to a room. Use this within your application\226\128\153s business logic to send events to clients of a room; e.g., to notify clients to change the way the chat UI is rendered."]moduleListTagsForResourceResponse=structtypenonrect={tags:Tags.toption[@ocaml.doc"Tags attached to the resource. Array of maps, each of the form string:string (key:value)."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("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"Gets information about AWS tags for the specified ARN."]moduleListTagsForResourceRequest=structtypenonrect={resourceArn:ResourceArn.t[@ocaml.doc"The ARN of the resource to be retrieved. The ARN must be URL-encoded."]}letcontext_="ListTagsForResourceRequest"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("resourceArn",(Some(ResourceArn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=ResourceArn.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"ResourceArn.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets information about AWS tags for the specified ARN."]moduleListRoomsResponse=structtypenonrect={rooms:RoomList.toption[@ocaml.doc"List of the matching rooms (summary information only)."];nextToken:PaginationToken.toption[@ocaml.doc"If there are more rooms than maxResults, use nextToken in the request to get the next set."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?rooms=fun?nextToken->fun()->{rooms;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("rooms",(Option.mapx.rooms~f:RoomList.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletrooms=(Option.map~f:RoomList.of_xml)(Xml.childxml_arg0"rooms")inmake?nextToken?rooms()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletrooms=field_mapjson__"rooms"RoomList.of_jsoninmake?nextToken?rooms()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets summary information about all your rooms in the AWS region where the API request is processed. Results are sorted in descending order of updateTime."]moduleListRoomsRequest=structtypenonrect={name:RoomName.toption[@ocaml.doc"Filters the list to match the specified room name."];nextToken:PaginationToken.toption[@ocaml.doc"The first room to retrieve. This is used for pagination; see the nextToken response field."];maxResults:MaxRoomResults.toption[@ocaml.doc"Maximum number of rooms to return. Default: 50."];messageReviewHandlerUri:LambdaArn.toption[@ocaml.doc"Filters the list to match the specified message review handler URI."];loggingConfigurationIdentifier:LoggingConfigurationIdentifier.toption[@ocaml.doc"Logging-configuration identifier."]}letmake?name=fun?nextToken->fun?maxResults->fun?messageReviewHandlerUri->fun?loggingConfigurationIdentifier->fun()->{name;nextToken;maxResults;messageReviewHandlerUri;loggingConfigurationIdentifier}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:RoomName.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxRoomResults.to_value));("messageReviewHandlerUri",(Option.mapx.messageReviewHandlerUri~f:LambdaArn.to_value));("loggingConfigurationIdentifier",(Option.mapx.loggingConfigurationIdentifier~f:LoggingConfigurationIdentifier.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letloggingConfigurationIdentifier=(Option.map~f:LoggingConfigurationIdentifier.of_xml)(Xml.childxml_arg0"loggingConfigurationIdentifier")inletmessageReviewHandlerUri=(Option.map~f:LambdaArn.of_xml)(Xml.childxml_arg0"messageReviewHandlerUri")inletmaxResults=(Option.map~f:MaxRoomResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletname=(Option.map~f:RoomName.of_xml)(Xml.childxml_arg0"name")inmake?loggingConfigurationIdentifier?messageReviewHandlerUri?maxResults?nextToken?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letloggingConfigurationIdentifier=field_mapjson__"loggingConfigurationIdentifier"LoggingConfigurationIdentifier.of_jsoninletmessageReviewHandlerUri=field_mapjson__"messageReviewHandlerUri"LambdaArn.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxRoomResults.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletname=field_mapjson__"name"RoomName.of_jsoninmake?loggingConfigurationIdentifier?messageReviewHandlerUri?maxResults?nextToken?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets summary information about all your rooms in the AWS region where the API request is processed. Results are sorted in descending order of updateTime."]moduleListLoggingConfigurationsResponse=structtypenonrect={loggingConfigurations:LoggingConfigurationList.toption[@ocaml.doc"List of the matching logging configurations (summary information only). There is only one type of destination (cloudWatchLogs, firehose, or s3) in a destinationConfiguration."];nextToken:PaginationToken.toption[@ocaml.doc"If there are more logging configurations than maxResults, use nextToken in the request to get the next set."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?loggingConfigurations=fun?nextToken->fun()->{loggingConfigurations;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.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)|"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))]|`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[("loggingConfigurations",(Option.mapx.loggingConfigurations~f:LoggingConfigurationList.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletloggingConfigurations=(Option.map~f:LoggingConfigurationList.of_xml)(Xml.childxml_arg0"loggingConfigurations")inmake?nextToken?loggingConfigurations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletloggingConfigurations=field_mapjson__"loggingConfigurations"LoggingConfigurationList.of_jsoninmake?nextToken?loggingConfigurations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets summary information about all your logging configurations in the AWS region where the API request is processed."]moduleListLoggingConfigurationsRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The first logging configurations to retrieve. This is used for pagination; see the nextToken response field."];maxResults:MaxLoggingConfigurationResults.toption[@ocaml.doc"Maximum number of logging configurations to return. Default: 50."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxLoggingConfigurationResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxLoggingConfigurationResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:PaginationToken.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"MaxLoggingConfigurationResults.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets summary information about all your logging configurations in the AWS region where the API request is processed."]moduleGetRoomResponse=structtypenonrect={arn:RoomArn.toption[@ocaml.doc"Room ARN, from the request (if identifier was an ARN)."];id:RoomID.toption[@ocaml.doc"Room ID, generated by the system. This is a relative identifier, the part of the ARN that uniquely identifies the room."];name:RoomName.toption[@ocaml.doc"Room name. The value does not need to be unique."];createTime:Time.toption[@ocaml.doc"Time when the room was created. This is an ISO 8601 timestamp; note that this is returned as a string."];updateTime:Time.toption[@ocaml.doc"Time of the room\226\128\153s last update. This is an ISO 8601 timestamp; note that this is returned as a string."];maximumMessageRatePerSecond:RoomMaxMessageRatePerSecond.toption[@ocaml.doc"Maximum number of messages per second that can be sent to the room (by all clients). Default: 10."];maximumMessageLength:RoomMaxMessageLength.toption[@ocaml.doc"Maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes. Default: 500."];messageReviewHandler:MessageReviewHandler.toption[@ocaml.doc"Configuration information for optional review of messages."];tags:Tags.toption[@ocaml.doc"Tags attached to the resource. Array of maps, each of the form string:string (key:value)."];loggingConfigurationIdentifiers:LoggingConfigurationIdentifierList.toption[@ocaml.doc"Array of logging configurations attached to the room."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?id->fun?name->fun?createTime->fun?updateTime->fun?maximumMessageRatePerSecond->fun?maximumMessageLength->fun?messageReviewHandler->fun?tags->fun?loggingConfigurationIdentifiers->fun()->{arn;id;name;createTime;updateTime;maximumMessageRatePerSecond;maximumMessageLength;messageReviewHandler;tags;loggingConfigurationIdentifiers}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:RoomArn.to_value));("id",(Option.mapx.id~f:RoomID.to_value));("name",(Option.mapx.name~f:RoomName.to_value));("createTime",(Option.mapx.createTime~f:Time.to_value));("updateTime",(Option.mapx.updateTime~f:Time.to_value));("maximumMessageRatePerSecond",(Option.mapx.maximumMessageRatePerSecond~f:RoomMaxMessageRatePerSecond.to_value));("maximumMessageLength",(Option.mapx.maximumMessageLength~f:RoomMaxMessageLength.to_value));("messageReviewHandler",(Option.mapx.messageReviewHandler~f:MessageReviewHandler.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("loggingConfigurationIdentifiers",(Option.mapx.loggingConfigurationIdentifiers~f:LoggingConfigurationIdentifierList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letloggingConfigurationIdentifiers=(Option.map~f:LoggingConfigurationIdentifierList.of_xml)(Xml.childxml_arg0"loggingConfigurationIdentifiers")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletmessageReviewHandler=(Option.map~f:MessageReviewHandler.of_xml)(Xml.childxml_arg0"messageReviewHandler")inletmaximumMessageLength=(Option.map~f:RoomMaxMessageLength.of_xml)(Xml.childxml_arg0"maximumMessageLength")inletmaximumMessageRatePerSecond=(Option.map~f:RoomMaxMessageRatePerSecond.of_xml)(Xml.childxml_arg0"maximumMessageRatePerSecond")inletupdateTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"updateTime")inletcreateTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"createTime")inletname=(Option.map~f:RoomName.of_xml)(Xml.childxml_arg0"name")inletid=(Option.map~f:RoomID.of_xml)(Xml.childxml_arg0"id")inletarn=(Option.map~f:RoomArn.of_xml)(Xml.childxml_arg0"arn")inmake?loggingConfigurationIdentifiers?tags?messageReviewHandler?maximumMessageLength?maximumMessageRatePerSecond?updateTime?createTime?name?id?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letloggingConfigurationIdentifiers=field_mapjson__"loggingConfigurationIdentifiers"LoggingConfigurationIdentifierList.of_jsoninlettags=field_mapjson__"tags"Tags.of_jsoninletmessageReviewHandler=field_mapjson__"messageReviewHandler"MessageReviewHandler.of_jsoninletmaximumMessageLength=field_mapjson__"maximumMessageLength"RoomMaxMessageLength.of_jsoninletmaximumMessageRatePerSecond=field_mapjson__"maximumMessageRatePerSecond"RoomMaxMessageRatePerSecond.of_jsoninletupdateTime=field_mapjson__"updateTime"Time.of_jsoninletcreateTime=field_mapjson__"createTime"Time.of_jsoninletname=field_mapjson__"name"RoomName.of_jsoninletid=field_mapjson__"id"RoomID.of_jsoninletarn=field_mapjson__"arn"RoomArn.of_jsoninmake?loggingConfigurationIdentifiers?tags?messageReviewHandler?maximumMessageLength?maximumMessageRatePerSecond?updateTime?createTime?name?id?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the specified room."]moduleGetRoomRequest=structtypenonrect={identifier:RoomIdentifier.t[@ocaml.doc"Identifier of the room for which the configuration is to be retrieved. Currently this must be an ARN."]}letcontext_="GetRoomRequest"letmake~identifier=fun()->{identifier}letto_valuex=structure_to_value[("identifier",(Some(RoomIdentifier.to_valuex.identifier)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentifier=RoomIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"identifier")inmake~identifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentifier=field_map_exnjson__"identifier"RoomIdentifier.of_jsoninmake~identifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the specified room."]moduleGetLoggingConfigurationResponse=structtypenonrect={arn:LoggingConfigurationArn.toption[@ocaml.doc"Logging-configuration ARN, from the request (if identifier was an ARN)."];id:LoggingConfigurationID.toption[@ocaml.doc"Logging-configuration ID, generated by the system. This is a relative identifier, the part of the ARN that uniquely identifies the logging configuration."];createTime:Time.toption[@ocaml.doc"Time when the logging configuration was created. This is an ISO 8601 timestamp; note that this is returned as a string."];updateTime:Time.toption[@ocaml.doc"Time of the logging configuration\226\128\153s last update. This is an ISO 8601 timestamp; note that this is returned as a string."];name:LoggingConfigurationName.toption[@ocaml.doc"Logging-configuration name. This value does not need to be unique."];destinationConfiguration:DestinationConfiguration.toption[@ocaml.doc"A complex type that contains a destination configuration for where chat content will be logged. There is only one type of destination (cloudWatchLogs, firehose, or s3) in a destinationConfiguration."];state:LoggingConfigurationState.toption[@ocaml.doc"The state of the logging configuration. When the state is ACTIVE, the configuration is ready to log chat content."];tags:Tags.toption[@ocaml.doc"Tags attached to the resource. Array of maps, each of the form string:string (key:value)."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?id->fun?createTime->fun?updateTime->fun?name->fun?destinationConfiguration->fun?state->fun?tags->fun()->{arn;id;createTime;updateTime;name;destinationConfiguration;state;tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:LoggingConfigurationArn.to_value));("id",(Option.mapx.id~f:LoggingConfigurationID.to_value));("createTime",(Option.mapx.createTime~f:Time.to_value));("updateTime",(Option.mapx.updateTime~f:Time.to_value));("name",(Option.mapx.name~f:LoggingConfigurationName.to_value));("destinationConfiguration",(Option.mapx.destinationConfiguration~f:DestinationConfiguration.to_value));("state",(Option.mapx.state~f:LoggingConfigurationState.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")inletstate=(Option.map~f:LoggingConfigurationState.of_xml)(Xml.childxml_arg0"state")inletdestinationConfiguration=(Option.map~f:DestinationConfiguration.of_xml)(Xml.childxml_arg0"destinationConfiguration")inletname=(Option.map~f:LoggingConfigurationName.of_xml)(Xml.childxml_arg0"name")inletupdateTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"updateTime")inletcreateTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"createTime")inletid=(Option.map~f:LoggingConfigurationID.of_xml)(Xml.childxml_arg0"id")inletarn=(Option.map~f:LoggingConfigurationArn.of_xml)(Xml.childxml_arg0"arn")inmake?tags?state?destinationConfiguration?name?updateTime?createTime?id?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletstate=field_mapjson__"state"LoggingConfigurationState.of_jsoninletdestinationConfiguration=field_mapjson__"destinationConfiguration"DestinationConfiguration.of_jsoninletname=field_mapjson__"name"LoggingConfigurationName.of_jsoninletupdateTime=field_mapjson__"updateTime"Time.of_jsoninletcreateTime=field_mapjson__"createTime"Time.of_jsoninletid=field_mapjson__"id"LoggingConfigurationID.of_jsoninletarn=field_mapjson__"arn"LoggingConfigurationArn.of_jsoninmake?tags?state?destinationConfiguration?name?updateTime?createTime?id?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the specified logging configuration."]moduleGetLoggingConfigurationRequest=structtypenonrect={identifier:LoggingConfigurationIdentifier.t[@ocaml.doc"Identifier of the logging configuration to be retrieved."]}letcontext_="GetLoggingConfigurationRequest"letmake~identifier=fun()->{identifier}letto_valuex=structure_to_value[("identifier",(Some(LoggingConfigurationIdentifier.to_valuex.identifier)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentifier=LoggingConfigurationIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"identifier")inmake~identifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentifier=field_map_exnjson__"identifier"LoggingConfigurationIdentifier.of_jsoninmake~identifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the specified logging configuration."]moduleDisconnectUserResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`PendingVerificationofPendingVerification.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.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)|"PendingVerification"->`PendingVerification(PendingVerification.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))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.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"Disconnects all connections using a specified user ID from a room. This replicates the DisconnectUser WebSocket operation in the Amazon IVS Chat Messaging API."]moduleDisconnectUserRequest=structtypenonrect={roomIdentifier:RoomIdentifier.t[@ocaml.doc"Identifier of the room from which the user's clients should be disconnected. Currently this must be an ARN."];userId:UserID.t[@ocaml.doc"ID of the user (connection) to disconnect from the room."];reason:Reason.toption[@ocaml.doc"Reason for disconnecting the user."]}letcontext_="DisconnectUserRequest"letmake?reason=fun~roomIdentifier->fun~userId->fun()->{reason;roomIdentifier;userId}letto_valuex=structure_to_value[("roomIdentifier",(Some(RoomIdentifier.to_valuex.roomIdentifier)));("userId",(Some(UserID.to_valuex.userId)));("reason",(Option.mapx.reason~f:Reason.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreason=(Option.map~f:Reason.of_xml)(Xml.childxml_arg0"reason")inletuserId=UserID.of_xml(Xml.child_exn~context:context_xml_arg0"userId")inletroomIdentifier=RoomIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"roomIdentifier")inmake?reason~userId~roomIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreason=field_mapjson__"reason"Reason.of_jsoninletuserId=field_map_exnjson__"userId"UserID.of_jsoninletroomIdentifier=field_map_exnjson__"roomIdentifier"RoomIdentifier.of_jsoninmake?reason~userId~roomIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disconnects all connections using a specified user ID from a room. This replicates the DisconnectUser WebSocket operation in the Amazon IVS Chat Messaging API."]moduleDeleteRoomRequest=structtypenonrect={identifier:RoomIdentifier.t[@ocaml.doc"Identifier of the room to be deleted. Currently this must be an ARN."]}letcontext_="DeleteRoomRequest"letmake~identifier=fun()->{identifier}letto_valuex=structure_to_value[("identifier",(Some(RoomIdentifier.to_valuex.identifier)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentifier=RoomIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"identifier")inmake~identifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentifier=field_map_exnjson__"identifier"RoomIdentifier.of_jsoninmake~identifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified room."]moduleDeleteMessageResponse=structtypenonrect={id:ID.toption[@ocaml.doc"Operation identifier, generated by Amazon IVS Chat."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`PendingVerificationofPendingVerification.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?id=fun()->{id}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.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)|"PendingVerification"->`PendingVerification(PendingVerification.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))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.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[("id",(Option.mapx.id~f:ID.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=(Option.map~f:ID.of_xml)(Xml.childxml_arg0"id")inmake?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_mapjson__"id"ID.of_jsoninmake?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Sends an event to a specific room which directs clients to delete a specific message; that is, unrender it from view and delete it from the client\226\128\153s chat history. This event\226\128\153s EventName is aws:DELETE_MESSAGE. This replicates the DeleteMessage WebSocket operation in the Amazon IVS Chat Messaging API."]moduleDeleteMessageRequest=structtypenonrect={roomIdentifier:RoomIdentifier.t[@ocaml.doc"Identifier of the room where the message should be deleted. Currently this must be an ARN."];id:MessageID.t[@ocaml.doc"ID of the message to be deleted. This is the Id field in the received message (see Message (Subscribe) in the Chat Messaging API)."];reason:Reason.toption[@ocaml.doc"Reason for deleting the message."]}letcontext_="DeleteMessageRequest"letmake?reason=fun~roomIdentifier->fun~id->fun()->{reason;roomIdentifier;id}letto_valuex=structure_to_value[("roomIdentifier",(Some(RoomIdentifier.to_valuex.roomIdentifier)));("id",(Some(MessageID.to_valuex.id)));("reason",(Option.mapx.reason~f:Reason.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreason=(Option.map~f:Reason.of_xml)(Xml.childxml_arg0"reason")inletid=MessageID.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletroomIdentifier=RoomIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"roomIdentifier")inmake?reason~id~roomIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreason=field_mapjson__"reason"Reason.of_jsoninletid=field_map_exnjson__"id"MessageID.of_jsoninletroomIdentifier=field_map_exnjson__"roomIdentifier"RoomIdentifier.of_jsoninmake?reason~id~roomIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Sends an event to a specific room which directs clients to delete a specific message; that is, unrender it from view and delete it from the client\226\128\153s chat history. This event\226\128\153s EventName is aws:DELETE_MESSAGE. This replicates the DeleteMessage WebSocket operation in the Amazon IVS Chat Messaging API."]moduleDeleteLoggingConfigurationRequest=structtypenonrect={identifier:LoggingConfigurationIdentifier.t[@ocaml.doc"Identifier of the logging configuration to be deleted."]}letcontext_="DeleteLoggingConfigurationRequest"letmake~identifier=fun()->{identifier}letto_valuex=structure_to_value[("identifier",(Some(LoggingConfigurationIdentifier.to_valuex.identifier)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentifier=LoggingConfigurationIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"identifier")inmake~identifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentifier=field_map_exnjson__"identifier"LoggingConfigurationIdentifier.of_jsoninmake~identifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified logging configuration."]moduleCreateRoomResponse=structtypenonrect={arn:RoomArn.toption[@ocaml.doc"Room ARN, assigned by the system."];id:RoomID.toption[@ocaml.doc"Room ID, generated by the system. This is a relative identifier, the part of the ARN that uniquely identifies the room."];name:RoomName.toption[@ocaml.doc"Room name, from the request (if specified)."];createTime:Time.toption[@ocaml.doc"Time when the room was created. This is an ISO 8601 timestamp; note that this is returned as a string."];updateTime:Time.toption[@ocaml.doc"Time of the room\226\128\153s last update. This is an ISO 8601 timestamp; note that this is returned as a string."];maximumMessageRatePerSecond:RoomMaxMessageRatePerSecond.toption[@ocaml.doc"Maximum number of messages per second that can be sent to the room (by all clients), from the request (if specified)."];maximumMessageLength:RoomMaxMessageLength.toption[@ocaml.doc"Maximum number of characters in a single message, from the request (if specified)."];messageReviewHandler:MessageReviewHandler.toption[@ocaml.doc"Configuration information for optional review of messages."];tags:Tags.toption[@ocaml.doc"Tags attached to the resource, from the request (if specified)."];loggingConfigurationIdentifiers:LoggingConfigurationIdentifierList.toption[@ocaml.doc"Array of logging configurations attached to the room, from the request (if specified)."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`PendingVerificationofPendingVerification.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?id->fun?name->fun?createTime->fun?updateTime->fun?maximumMessageRatePerSecond->fun?maximumMessageLength->fun?messageReviewHandler->fun?tags->fun?loggingConfigurationIdentifiers->fun()->{arn;id;name;createTime;updateTime;maximumMessageRatePerSecond;maximumMessageLength;messageReviewHandler;tags;loggingConfigurationIdentifiers}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.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)|"PendingVerification"->`PendingVerification(PendingVerification.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.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))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.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[("arn",(Option.mapx.arn~f:RoomArn.to_value));("id",(Option.mapx.id~f:RoomID.to_value));("name",(Option.mapx.name~f:RoomName.to_value));("createTime",(Option.mapx.createTime~f:Time.to_value));("updateTime",(Option.mapx.updateTime~f:Time.to_value));("maximumMessageRatePerSecond",(Option.mapx.maximumMessageRatePerSecond~f:RoomMaxMessageRatePerSecond.to_value));("maximumMessageLength",(Option.mapx.maximumMessageLength~f:RoomMaxMessageLength.to_value));("messageReviewHandler",(Option.mapx.messageReviewHandler~f:MessageReviewHandler.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("loggingConfigurationIdentifiers",(Option.mapx.loggingConfigurationIdentifiers~f:LoggingConfigurationIdentifierList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letloggingConfigurationIdentifiers=(Option.map~f:LoggingConfigurationIdentifierList.of_xml)(Xml.childxml_arg0"loggingConfigurationIdentifiers")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletmessageReviewHandler=(Option.map~f:MessageReviewHandler.of_xml)(Xml.childxml_arg0"messageReviewHandler")inletmaximumMessageLength=(Option.map~f:RoomMaxMessageLength.of_xml)(Xml.childxml_arg0"maximumMessageLength")inletmaximumMessageRatePerSecond=(Option.map~f:RoomMaxMessageRatePerSecond.of_xml)(Xml.childxml_arg0"maximumMessageRatePerSecond")inletupdateTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"updateTime")inletcreateTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"createTime")inletname=(Option.map~f:RoomName.of_xml)(Xml.childxml_arg0"name")inletid=(Option.map~f:RoomID.of_xml)(Xml.childxml_arg0"id")inletarn=(Option.map~f:RoomArn.of_xml)(Xml.childxml_arg0"arn")inmake?loggingConfigurationIdentifiers?tags?messageReviewHandler?maximumMessageLength?maximumMessageRatePerSecond?updateTime?createTime?name?id?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letloggingConfigurationIdentifiers=field_mapjson__"loggingConfigurationIdentifiers"LoggingConfigurationIdentifierList.of_jsoninlettags=field_mapjson__"tags"Tags.of_jsoninletmessageReviewHandler=field_mapjson__"messageReviewHandler"MessageReviewHandler.of_jsoninletmaximumMessageLength=field_mapjson__"maximumMessageLength"RoomMaxMessageLength.of_jsoninletmaximumMessageRatePerSecond=field_mapjson__"maximumMessageRatePerSecond"RoomMaxMessageRatePerSecond.of_jsoninletupdateTime=field_mapjson__"updateTime"Time.of_jsoninletcreateTime=field_mapjson__"createTime"Time.of_jsoninletname=field_mapjson__"name"RoomName.of_jsoninletid=field_mapjson__"id"RoomID.of_jsoninletarn=field_mapjson__"arn"RoomArn.of_jsoninmake?loggingConfigurationIdentifiers?tags?messageReviewHandler?maximumMessageLength?maximumMessageRatePerSecond?updateTime?createTime?name?id?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a room that allows clients to connect and pass messages."]moduleCreateRoomRequest=structtypenonrect={name:RoomName.toption[@ocaml.doc"Room name. The value does not need to be unique."];maximumMessageRatePerSecond:RoomMaxMessageRatePerSecond.toption[@ocaml.doc"Maximum number of messages per second that can be sent to the room (by all clients). Default: 10."];maximumMessageLength:RoomMaxMessageLength.toption[@ocaml.doc"Maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes. Default: 500."];messageReviewHandler:MessageReviewHandler.toption[@ocaml.doc"Configuration information for optional review of messages."];tags:Tags.toption[@ocaml.doc"Tags to attach to the resource. Array of maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS Chat has no constraints beyond what is documented there."];loggingConfigurationIdentifiers:LoggingConfigurationIdentifierList.toption[@ocaml.doc"Array of logging-configuration identifiers attached to the room."]}letmake?name=fun?maximumMessageRatePerSecond->fun?maximumMessageLength->fun?messageReviewHandler->fun?tags->fun?loggingConfigurationIdentifiers->fun()->{name;maximumMessageRatePerSecond;maximumMessageLength;messageReviewHandler;tags;loggingConfigurationIdentifiers}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:RoomName.to_value));("maximumMessageRatePerSecond",(Option.mapx.maximumMessageRatePerSecond~f:RoomMaxMessageRatePerSecond.to_value));("maximumMessageLength",(Option.mapx.maximumMessageLength~f:RoomMaxMessageLength.to_value));("messageReviewHandler",(Option.mapx.messageReviewHandler~f:MessageReviewHandler.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("loggingConfigurationIdentifiers",(Option.mapx.loggingConfigurationIdentifiers~f:LoggingConfigurationIdentifierList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letloggingConfigurationIdentifiers=(Option.map~f:LoggingConfigurationIdentifierList.of_xml)(Xml.childxml_arg0"loggingConfigurationIdentifiers")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletmessageReviewHandler=(Option.map~f:MessageReviewHandler.of_xml)(Xml.childxml_arg0"messageReviewHandler")inletmaximumMessageLength=(Option.map~f:RoomMaxMessageLength.of_xml)(Xml.childxml_arg0"maximumMessageLength")inletmaximumMessageRatePerSecond=(Option.map~f:RoomMaxMessageRatePerSecond.of_xml)(Xml.childxml_arg0"maximumMessageRatePerSecond")inletname=(Option.map~f:RoomName.of_xml)(Xml.childxml_arg0"name")inmake?loggingConfigurationIdentifiers?tags?messageReviewHandler?maximumMessageLength?maximumMessageRatePerSecond?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letloggingConfigurationIdentifiers=field_mapjson__"loggingConfigurationIdentifiers"LoggingConfigurationIdentifierList.of_jsoninlettags=field_mapjson__"tags"Tags.of_jsoninletmessageReviewHandler=field_mapjson__"messageReviewHandler"MessageReviewHandler.of_jsoninletmaximumMessageLength=field_mapjson__"maximumMessageLength"RoomMaxMessageLength.of_jsoninletmaximumMessageRatePerSecond=field_mapjson__"maximumMessageRatePerSecond"RoomMaxMessageRatePerSecond.of_jsoninletname=field_mapjson__"name"RoomName.of_jsoninmake?loggingConfigurationIdentifiers?tags?messageReviewHandler?maximumMessageLength?maximumMessageRatePerSecond?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a room that allows clients to connect and pass messages."]moduleCreateLoggingConfigurationResponse=structtypenonrect={arn:LoggingConfigurationArn.toption[@ocaml.doc"Logging-configuration ARN, assigned by the system."];id:LoggingConfigurationID.toption[@ocaml.doc"Logging-configuration ID, generated by the system. This is a relative identifier, the part of the ARN that uniquely identifies the logging configuration."];createTime:Time.toption[@ocaml.doc"Time when the logging configuration was created. This is an ISO 8601 timestamp; note that this is returned as a string."];updateTime:Time.toption[@ocaml.doc"Time of the logging configuration\226\128\153s last update. This is an ISO 8601 timestamp; note that this is returned as a string."];name:LoggingConfigurationName.toption[@ocaml.doc"Logging-configuration name, from the request (if specified)."];destinationConfiguration:DestinationConfiguration.toption[@ocaml.doc"A complex type that contains a destination configuration for where chat content will be logged, from the request. There is only one type of destination (cloudWatchLogs, firehose, or s3) in a destinationConfiguration."];state:CreateLoggingConfigurationState.toption[@ocaml.doc"The state of the logging configuration. When the state is ACTIVE, the configuration is ready to log chat content."];tags:Tags.toption[@ocaml.doc"Tags attached to the resource, from the request (if specified). Array of maps, each of the form string:string (key:value)."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`PendingVerificationofPendingVerification.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?id->fun?createTime->fun?updateTime->fun?name->fun?destinationConfiguration->fun?state->fun?tags->fun()->{arn;id;createTime;updateTime;name;destinationConfiguration;state;tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.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)|"PendingVerification"->`PendingVerification(PendingVerification.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.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))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.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[("arn",(Option.mapx.arn~f:LoggingConfigurationArn.to_value));("id",(Option.mapx.id~f:LoggingConfigurationID.to_value));("createTime",(Option.mapx.createTime~f:Time.to_value));("updateTime",(Option.mapx.updateTime~f:Time.to_value));("name",(Option.mapx.name~f:LoggingConfigurationName.to_value));("destinationConfiguration",(Option.mapx.destinationConfiguration~f:DestinationConfiguration.to_value));("state",(Option.mapx.state~f:CreateLoggingConfigurationState.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")inletstate=(Option.map~f:CreateLoggingConfigurationState.of_xml)(Xml.childxml_arg0"state")inletdestinationConfiguration=(Option.map~f:DestinationConfiguration.of_xml)(Xml.childxml_arg0"destinationConfiguration")inletname=(Option.map~f:LoggingConfigurationName.of_xml)(Xml.childxml_arg0"name")inletupdateTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"updateTime")inletcreateTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"createTime")inletid=(Option.map~f:LoggingConfigurationID.of_xml)(Xml.childxml_arg0"id")inletarn=(Option.map~f:LoggingConfigurationArn.of_xml)(Xml.childxml_arg0"arn")inmake?tags?state?destinationConfiguration?name?updateTime?createTime?id?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletstate=field_mapjson__"state"CreateLoggingConfigurationState.of_jsoninletdestinationConfiguration=field_mapjson__"destinationConfiguration"DestinationConfiguration.of_jsoninletname=field_mapjson__"name"LoggingConfigurationName.of_jsoninletupdateTime=field_mapjson__"updateTime"Time.of_jsoninletcreateTime=field_mapjson__"createTime"Time.of_jsoninletid=field_mapjson__"id"LoggingConfigurationID.of_jsoninletarn=field_mapjson__"arn"LoggingConfigurationArn.of_jsoninmake?tags?state?destinationConfiguration?name?updateTime?createTime?id?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a logging configuration that allows clients to store and record sent messages."]moduleCreateLoggingConfigurationRequest=structtypenonrect={name:LoggingConfigurationName.toption[@ocaml.doc"Logging-configuration name. The value does not need to be unique."];destinationConfiguration:DestinationConfiguration.t[@ocaml.doc"A complex type that contains a destination configuration for where chat content will be logged. There can be only one type of destination (cloudWatchLogs, firehose, or s3) in a destinationConfiguration."];tags:Tags.toption[@ocaml.doc"Tags to attach to the resource. Array of maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS Chat has no constraints on tags beyond what is documented there."]}letcontext_="CreateLoggingConfigurationRequest"letmake?name=fun?tags->fun~destinationConfiguration->fun()->{name;tags;destinationConfiguration}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:LoggingConfigurationName.to_value));("destinationConfiguration",(Some(DestinationConfiguration.to_valuex.destinationConfiguration)));("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")inletdestinationConfiguration=DestinationConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"destinationConfiguration")inletname=(Option.map~f:LoggingConfigurationName.of_xml)(Xml.childxml_arg0"name")inmake?tags~destinationConfiguration?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletdestinationConfiguration=field_map_exnjson__"destinationConfiguration"DestinationConfiguration.of_jsoninletname=field_mapjson__"name"LoggingConfigurationName.of_jsoninmake?tags~destinationConfiguration?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a logging configuration that allows clients to store and record sent messages."]moduleCreateChatTokenResponse=structtypenonrect={token:ChatToken.toption[@ocaml.doc"The issued client token, encrypted."];tokenExpirationTime:Time.toption[@ocaml.doc"Time after which the token is no longer valid and cannot be used to connect to a room. This is an ISO 8601 timestamp; note that this is returned as a string."];sessionExpirationTime:Time.toption[@ocaml.doc"Time after which an end user's session is no longer valid. This is an ISO 8601 timestamp; note that this is returned as a string."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`PendingVerificationofPendingVerification.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?token=fun?tokenExpirationTime->fun?sessionExpirationTime->fun()->{token;tokenExpirationTime;sessionExpirationTime}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"PendingVerification"->`PendingVerification(PendingVerification.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("token",(Option.mapx.token~f:ChatToken.to_value));("tokenExpirationTime",(Option.mapx.tokenExpirationTime~f:Time.to_value));("sessionExpirationTime",(Option.mapx.sessionExpirationTime~f:Time.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionExpirationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"sessionExpirationTime")inlettokenExpirationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"tokenExpirationTime")inlettoken=(Option.map~f:ChatToken.of_xml)(Xml.childxml_arg0"token")inmake?sessionExpirationTime?tokenExpirationTime?token()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionExpirationTime=field_mapjson__"sessionExpirationTime"Time.of_jsoninlettokenExpirationTime=field_mapjson__"tokenExpirationTime"Time.of_jsoninlettoken=field_mapjson__"token"ChatToken.of_jsoninmake?sessionExpirationTime?tokenExpirationTime?token()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an encrypted token that is used by a chat participant to establish an individual WebSocket chat connection to a room. When the token is used to connect to chat, the connection is valid for the session duration specified in the request. The token becomes invalid at the token-expiration timestamp included in the response. Use the capabilities field to permit an end user to send messages or moderate a room. The attributes field securely attaches structured data to the chat session; the data is included within each message sent by the end user and received by other participants in the room. Common use cases for attributes include passing end-user profile data like an icon, display name, colors, badges, and other display features. Encryption keys are owned by Amazon IVS Chat and never used directly by your application."]moduleCreateChatTokenRequest=structtypenonrect={roomIdentifier:RoomIdentifier.t[@ocaml.doc"Identifier of the room that the client is trying to access. Currently this must be an ARN."];userId:UserID.t[@ocaml.doc"Application-provided ID that uniquely identifies the user associated with this token. This can be any UTF-8 encoded text."];capabilities:ChatTokenCapabilities.toption[@ocaml.doc"Set of capabilities that the user is allowed to perform in the room. Default: None (the capability to view messages is implicitly included in all requests)."];sessionDurationInMinutes:SessionDurationInMinutes.toption[@ocaml.doc"Session duration (in minutes), after which the session expires. Default: 60 (1 hour)."];attributes:ChatTokenAttributes.toption[@ocaml.doc"Application-provided attributes to encode into the token and attach to a chat session. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total."]}letcontext_="CreateChatTokenRequest"letmake?capabilities=fun?sessionDurationInMinutes->fun?attributes->fun~roomIdentifier->fun~userId->fun()->{capabilities;sessionDurationInMinutes;attributes;roomIdentifier;userId}letto_valuex=structure_to_value[("roomIdentifier",(Some(RoomIdentifier.to_valuex.roomIdentifier)));("userId",(Some(UserID.to_valuex.userId)));("capabilities",(Option.mapx.capabilities~f:ChatTokenCapabilities.to_value));("sessionDurationInMinutes",(Option.mapx.sessionDurationInMinutes~f:SessionDurationInMinutes.to_value));("attributes",(Option.mapx.attributes~f:ChatTokenAttributes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributes=(Option.map~f:ChatTokenAttributes.of_xml)(Xml.childxml_arg0"attributes")inletsessionDurationInMinutes=(Option.map~f:SessionDurationInMinutes.of_xml)(Xml.childxml_arg0"sessionDurationInMinutes")inletcapabilities=(Option.map~f:ChatTokenCapabilities.of_xml)(Xml.childxml_arg0"capabilities")inletuserId=UserID.of_xml(Xml.child_exn~context:context_xml_arg0"userId")inletroomIdentifier=RoomIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"roomIdentifier")inmake?attributes?sessionDurationInMinutes?capabilities~userId~roomIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_mapjson__"attributes"ChatTokenAttributes.of_jsoninletsessionDurationInMinutes=field_mapjson__"sessionDurationInMinutes"SessionDurationInMinutes.of_jsoninletcapabilities=field_mapjson__"capabilities"ChatTokenCapabilities.of_jsoninletuserId=field_map_exnjson__"userId"UserID.of_jsoninletroomIdentifier=field_map_exnjson__"roomIdentifier"RoomIdentifier.of_jsoninmake?attributes?sessionDurationInMinutes?capabilities~userId~roomIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an encrypted token that is used by a chat participant to establish an individual WebSocket chat connection to a room. When the token is used to connect to chat, the connection is valid for the session duration specified in the request. The token becomes invalid at the token-expiration timestamp included in the response. Use the capabilities field to permit an end user to send messages or moderate a room. The attributes field securely attaches structured data to the chat session; the data is included within each message sent by the end user and received by other participants in the room. Common use cases for attributes include passing end-user profile data like an icon, display name, colors, badges, and other display features. Encryption keys are owned by Amazon IVS Chat and never used directly by your application."]