1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875(* 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.appintegrationsletapiVersion="2020-07-29"letendpointPrefix="app-integrations"letserviceFullName="Amazon AppIntegrations Service"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letsimple_to_jsonto_valuex=Botodata.Json.value_to_json_scalar(to_valuex)letcomposed_to_jsonto_valuex=Botodata.Json.value_to_json(to_valuex)letto_queryto_valuex=Client.Query.of_value(to_valuex)letstructure_to_value_auxst~f=letfilter=function|(k,Somev)->Some(k,v)|_->Noneinletpairkv=(k,v)inletdefer_value(k,dv)=pairkdvin((List.filter_mapst~f:filter)|>(List.map~f:defer_value))|>(funx->`Structure(fx))letstructure_to_value=structure_to_value_aux~f:Fn.idletstructure_to_wrapped_value~wrapper~response=structure_to_value_aux~f:(funx->[(wrapper,(`Structurex));(response,(`Structure[]))])moduleNonBlankString=structtypenonrect=stringletcontext_="NonBlankString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:".*\\S.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NonBlankString"jletto_json=simple_to_jsonto_valueendmoduleObject=structtypenonrect=stringletcontext_="Object"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9\\/\\._\\-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Object"jletto_json=simple_to_jsonto_valueendmoduleApplicationTrustedSource=structtypenonrect=stringletcontext_="ApplicationTrustedSource"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^\\w+\\:\\/\\/.*$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ApplicationTrustedSource"jletto_json=simple_to_jsonto_valueendmoduleSource=structtypenonrect=stringletcontext_="Source"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"^(aws\\.(partner\\/.*|cases|cases\\-test))|Pipe\\s.[a-zA-Z0-9\\/\\._\\-]+$|app\\-integrations\\.webhooks\\/[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:"Source"jletto_json=simple_to_jsonto_valueendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^(?!aws:)[a-zA-Z+-=._:/]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith(check_string_maxi~max:256);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_valueendmoduleExecutionMode=structtypenonrect=|ON_DEMAND|SCHEDULED|Non_static_idofstringletmakei=iletto_string=function|ON_DEMAND->"ON_DEMAND"|SCHEDULED->"SCHEDULED"|Non_static_ids->sletof_string=function|"ON_DEMAND"->ON_DEMAND|"SCHEDULED"->SCHEDULED|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 ExecutionMode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ExecutionMode"j)letto_json=simple_to_jsonto_valueendmoduleOnDemandConfiguration=structtypenonrect={startTime:NonBlankString.t[@ocaml.doc"The start time for data pull from the source as an Unix/epoch string in milliseconds"];endTime:NonBlankString.toption[@ocaml.doc"The end time for data pull from the source as an Unix/epoch string in milliseconds"]}letcontext_="OnDemandConfiguration"letmake?endTime=fun~startTime->fun()->{endTime;startTime}letto_valuex=structure_to_value[("StartTime",(Some(NonBlankString.to_valuex.startTime)));("EndTime",(Option.mapx.endTime~f:NonBlankString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendTime=(Option.map~f:NonBlankString.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=NonBlankString.of_xml(Xml.child_exn~context:context_xml_arg0"StartTime")inmake?endTime~startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendTime=field_mapjson__"EndTime"NonBlankString.of_jsoninletstartTime=field_map_exnjson__"StartTime"NonBlankString.of_jsoninmake?endTime~startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The start and end time for data pull from the source."]moduleScheduleConfiguration=structtypenonrect={firstExecutionFrom:NonBlankString.toption[@ocaml.doc"The start date for objects to import in the first flow run as an Unix/epoch timestamp in milliseconds or in ISO-8601 format."];object_:Object.toption[@ocaml.doc"The name of the object to pull from the data source."];scheduleExpression:NonBlankString.t[@ocaml.doc"How often the data should be pulled from data source."]}letcontext_="ScheduleConfiguration"letmake?firstExecutionFrom=fun?object_->fun~scheduleExpression->fun()->{firstExecutionFrom;object_;scheduleExpression}letto_valuex=structure_to_value[("FirstExecutionFrom",(Option.mapx.firstExecutionFrom~f:NonBlankString.to_value));("Object",(Option.mapx.object_~f:Object.to_value));("ScheduleExpression",(Some(NonBlankString.to_valuex.scheduleExpression)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letscheduleExpression=NonBlankString.of_xml(Xml.child_exn~context:context_xml_arg0"ScheduleExpression")inletobject_=(Option.map~f:Object.of_xml)(Xml.childxml_arg0"Object")inletfirstExecutionFrom=(Option.map~f:NonBlankString.of_xml)(Xml.childxml_arg0"FirstExecutionFrom")inmake~scheduleExpression?object_?firstExecutionFrom()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letscheduleExpression=field_map_exnjson__"ScheduleExpression"NonBlankString.of_jsoninletobject_=field_mapjson__"Object"Object.of_jsoninletfirstExecutionFrom=field_mapjson__"FirstExecutionFrom"NonBlankString.of_jsoninmake~scheduleExpression?object_?firstExecutionFrom()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The name of the data and how often it should be pulled from the source."]moduleExecutionStatus=structtypenonrect=|COMPLETED|IN_PROGRESS|FAILED|Non_static_idofstringletmakei=iletto_string=function|COMPLETED->"COMPLETED"|IN_PROGRESS->"IN_PROGRESS"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"COMPLETED"->COMPLETED|"IN_PROGRESS"->IN_PROGRESS|"FAILED"->FAILED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ExecutionStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ExecutionStatus"j)letto_json=simple_to_jsonto_valueendmoduleFields=structtypenonrect=stringletcontext_="Fields"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9\\/\\._\\-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Fields"jletto_json=simple_to_jsonto_valueendmoduleContactHandlingScope=structtypenonrect=|CROSS_CONTACTS|PER_CONTACT|Non_static_idofstringletmakei=iletto_string=function|CROSS_CONTACTS->"CROSS_CONTACTS"|PER_CONTACT->"PER_CONTACT"|Non_static_ids->sletof_string=function|"CROSS_CONTACTS"->CROSS_CONTACTS|"PER_CONTACT"->PER_CONTACT|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 ContactHandlingScope"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ContactHandlingScope"j)letto_json=simple_to_jsonto_valueendmoduleApplicationApprovedOrigins=structtypenonrect=ApplicationTrustedSource.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ApplicationTrustedSource.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:ApplicationTrustedSource.of_xml)letof_jsonj=list_of_json~kind:"ApplicationApprovedOrigins"~of_json:ApplicationTrustedSource.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleURL=structtypenonrect=stringletcontext_="URL"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1000)>>=(fun()->check_patterni~pattern:"^\\w+\\:\\/\\/.*$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"URL"jletto_json=simple_to_jsonto_valueendmoduleIframePermission=structtypenonrect=string[@@ocaml.doc"A permission for the iframe."]letcontext_="IframePermission"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(fun()->check_patterni~pattern:"^[a-z-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IframePermission"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"A permission for the iframe."]moduleDescription=structtypenonrect=stringletcontext_="Description"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:1000)>>=(fun()->check_patterni~pattern:".*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Description"jletto_json=simple_to_jsonto_valueendmoduleEventDefinitionSchema=structtypenonrect=stringletcontext_="EventDefinitionSchema"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:10240)>>=(fun()->check_patterni~pattern:"^.*$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EventDefinitionSchema"jletto_json=simple_to_jsonto_valueendmoduleEventName=structtypenonrect=stringletcontext_="EventName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9\\/\\._\\-]+::[a-zA-Z0-9\\/\\._\\-]+(?:\\*)?$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EventName"jletto_json=simple_to_jsonto_valueendmoduleArn=structtypenonrect=stringletcontext_="Arn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^arn:aws:[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Arn"jletto_json=simple_to_jsonto_valueendmoduleEventBridgeBus=structtypenonrect=stringletcontext_="EventBridgeBus"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9\\/\\._\\-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EventBridgeBus"jletto_json=simple_to_jsonto_valueendmoduleEventFilter=structtypenonrect={source:Source.t[@ocaml.doc"The source of the events."]}letcontext_="EventFilter"letmake~source=fun()->{source}letto_valuex=structure_to_value[("Source",(Some(Source.to_valuex.source)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsource=Source.of_xml(Xml.child_exn~context:context_xml_arg0"Source")inmake~source()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsource=field_map_exnjson__"Source"Source.of_jsoninmake~source()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The event filter."]moduleName=structtypenonrect=stringletcontext_="Name"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9\\/\\._\\-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Name"jletto_json=simple_to_jsonto_valueendmoduleTagMap=structtypenonrect=(TagKey.t*TagValue.t)listletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:1));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_valuevendmoduleClientAssociationMetadata=structtypenonrect=(NonBlankString.t*NonBlankString.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((NonBlankString.of_stringchopped),(NonBlankString.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(NonBlankString.to_valuex)|>(funx->(NonBlankString.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:NonBlankString.of_string~of_json:NonBlankString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleClientId=structtypenonrect=stringletcontext_="ClientId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:".*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ClientId"jletto_json=simple_to_jsonto_valueendmoduleEventBridgeRuleName=structtypenonrect=stringletcontext_="EventBridgeRuleName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9\\/\\._\\-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EventBridgeRuleName"jletto_json=simple_to_jsonto_valueendmoduleUUID=structtypenonrect=stringletcontext_="UUID"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"UUID"jletto_json=simple_to_jsonto_valueendmoduleSourceURI=structtypenonrect=stringletcontext_="SourceURI"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1000)>>=(fun()->check_patterni~pattern:"^(\\w+\\:\\/\\/[\\w.-]+[\\w/!@#+=.-]+$)|(\\w+\\:\\/\\/[\\w.-]+[\\w/!@#+=.-]+[\\w/!@#+=.-]+[\\w/!@#+=.,-]+$)")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SourceURI"jletto_json=simple_to_jsonto_valueendmoduleDestinationURI=structtypenonrect=stringletcontext_="DestinationURI"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1000)>>=(fun()->check_patterni~pattern:"^(\\w+\\:\\/\\/[\\w.-]+[\\w/!@#+=.-]+$)|(\\w+\\:\\/\\/[\\w.-]+[\\w/!@#+=.-]+[\\w/!@#+=.-]+[\\w/!@#+=.,-]+$)")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DestinationURI"jletto_json=simple_to_jsonto_valueendmoduleExecutionConfiguration=structtypenonrect={executionMode:ExecutionMode.t[@ocaml.doc"The mode for data import/export execution."];onDemandConfiguration:OnDemandConfiguration.toption;scheduleConfiguration:ScheduleConfiguration.toption}letcontext_="ExecutionConfiguration"letmake?onDemandConfiguration=fun?scheduleConfiguration->fun~executionMode->fun()->{onDemandConfiguration;scheduleConfiguration;executionMode}letto_valuex=structure_to_value[("ExecutionMode",(Some(ExecutionMode.to_valuex.executionMode)));("OnDemandConfiguration",(Option.mapx.onDemandConfiguration~f:OnDemandConfiguration.to_value));("ScheduleConfiguration",(Option.mapx.scheduleConfiguration~f:ScheduleConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letscheduleConfiguration=(Option.map~f:ScheduleConfiguration.of_xml)(Xml.childxml_arg0"ScheduleConfiguration")inletonDemandConfiguration=(Option.map~f:OnDemandConfiguration.of_xml)(Xml.childxml_arg0"OnDemandConfiguration")inletexecutionMode=ExecutionMode.of_xml(Xml.child_exn~context:context_xml_arg0"ExecutionMode")inmake?scheduleConfiguration?onDemandConfiguration~executionMode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letscheduleConfiguration=field_mapjson__"ScheduleConfiguration"ScheduleConfiguration.of_jsoninletonDemandConfiguration=field_mapjson__"OnDemandConfiguration"OnDemandConfiguration.of_jsoninletexecutionMode=field_map_exnjson__"ExecutionMode"ExecutionMode.of_jsoninmake?scheduleConfiguration?onDemandConfiguration~executionMode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The configuration for how the files should be pulled from the source."]moduleLastExecutionStatus=structtypenonrect={executionStatus:ExecutionStatus.toption[@ocaml.doc"The job status enum string."];statusMessage:NonBlankString.toption[@ocaml.doc"The status message of a job."]}letmake?executionStatus=fun?statusMessage->fun()->{executionStatus;statusMessage}letto_valuex=structure_to_value[("ExecutionStatus",(Option.mapx.executionStatus~f:ExecutionStatus.to_value));("StatusMessage",(Option.mapx.statusMessage~f:NonBlankString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatusMessage=(Option.map~f:NonBlankString.of_xml)(Xml.childxml_arg0"StatusMessage")inletexecutionStatus=(Option.map~f:ExecutionStatus.of_xml)(Xml.childxml_arg0"ExecutionStatus")inmake?statusMessage?executionStatus()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatusMessage=field_mapjson__"StatusMessage"NonBlankString.of_jsoninletexecutionStatus=field_mapjson__"ExecutionStatus"ExecutionStatus.of_jsoninmake?statusMessage?executionStatus()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The execution status of the last job."]moduleApplicationName=structtypenonrect=stringletcontext_="ApplicationName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9\\/\\._ \\-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ApplicationName"jletto_json=simple_to_jsonto_valueendmoduleApplicationNamespace=structtypenonrect=stringletcontext_="ApplicationNamespace"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:211)>>=(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:"ApplicationNamespace"jletto_json=simple_to_jsonto_valueendmoduleApplicationType=structtypenonrect=|STANDARD|SERVICE|MCP_SERVER|Non_static_idofstringletmakei=iletto_string=function|STANDARD->"STANDARD"|SERVICE->"SERVICE"|MCP_SERVER->"MCP_SERVER"|Non_static_ids->sletof_string=function|"STANDARD"->STANDARD|"SERVICE"->SERVICE|"MCP_SERVER"->MCP_SERVER|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 ApplicationType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ApplicationType"j)letto_json=simple_to_jsonto_valueendmoduleBoolean=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleTimestamp=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleFieldsList=structtypenonrect=Fields.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:2048)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Fields.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:Fields.of_xml)letof_jsonj=list_of_json~kind:"FieldsList"~of_json:Fields.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNonBlankLongString=structtypenonrect=stringletcontext_="NonBlankLongString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:200)>>=(fun()->check_patterni~pattern:".*\\S.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NonBlankLongString"jletto_json=simple_to_jsonto_valueendmoduleMessage=structtypenonrect=stringletcontext_="Message"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Message"jletto_json=simple_to_jsonto_valueendmoduleContactHandling=structtypenonrect={scope:ContactHandlingScope.toption[@ocaml.doc"Indicates whether the application refreshes for each contact or refreshes only with each new browser session."]}letmake?scope=fun()->{scope}letto_valuex=structure_to_value[("Scope",(Option.mapx.scope~f:ContactHandlingScope.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letscope=(Option.map~f:ContactHandlingScope.of_xml)(Xml.childxml_arg0"Scope")inmake?scope()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letscope=field_mapjson__"Scope"ContactHandlingScope.of_jsoninmake?scope()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The contact handling configuration for the application."]moduleExternalUrlConfig=structtypenonrect={accessUrl:URL.t[@ocaml.doc"The URL to access the application."];approvedOrigins:ApplicationApprovedOrigins.toption[@ocaml.doc"Additional URLs to allow list if different than the access URL."]}letcontext_="ExternalUrlConfig"letmake?approvedOrigins=fun~accessUrl->fun()->{approvedOrigins;accessUrl}letto_valuex=structure_to_value[("AccessUrl",(Some(URL.to_valuex.accessUrl)));("ApprovedOrigins",(Option.mapx.approvedOrigins~f:ApplicationApprovedOrigins.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapprovedOrigins=(Option.map~f:ApplicationApprovedOrigins.of_xml)(Xml.childxml_arg0"ApprovedOrigins")inletaccessUrl=URL.of_xml(Xml.child_exn~context:context_xml_arg0"AccessUrl")inmake?approvedOrigins~accessUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapprovedOrigins=field_mapjson__"ApprovedOrigins"ApplicationApprovedOrigins.of_jsoninletaccessUrl=field_map_exnjson__"AccessUrl"URL.of_jsoninmake?approvedOrigins~accessUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The external URL source for the application."]moduleIframePermissionList=structtypenonrect=IframePermission.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:IframePermission.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:IframePermission.of_xml)letof_jsonj=list_of_json~kind:"IframePermissionList"~of_json:IframePermission.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePermission=structtypenonrect=string[@@ocaml.doc"The permission of an event or request that the application has access to."]letcontext_="Permission"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9\\/\\._\\-\\*]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Permission"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"The permission of an event or request that the application has access to."]modulePublication=structtypenonrect={event:EventName.t[@ocaml.doc"The name of the publication."];schema:EventDefinitionSchema.t[@ocaml.doc"The JSON schema of the publication event."];description:Description.toption[@ocaml.doc"The description of the publication."]}letcontext_="Publication"letmake?description=fun~event->fun~schema->fun()->{description;event;schema}letto_valuex=structure_to_value[("Event",(Some(EventName.to_valuex.event)));("Schema",(Some(EventDefinitionSchema.to_valuex.schema)));("Description",(Option.mapx.description~f:Description.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"Description")inletschema=EventDefinitionSchema.of_xml(Xml.child_exn~context:context_xml_arg0"Schema")inletevent=EventName.of_xml(Xml.child_exn~context:context_xml_arg0"Event")inmake?description~schema~event()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdescription=field_mapjson__"Description"Description.of_jsoninletschema=field_map_exnjson__"Schema"EventDefinitionSchema.of_jsoninletevent=field_map_exnjson__"Event"EventName.of_jsoninmake?description~schema~event()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The configuration of an event that the application publishes."]moduleSubscription=structtypenonrect={event:EventName.t[@ocaml.doc"The name of the subscription."];description:Description.toption[@ocaml.doc"The description of the subscription."]}letcontext_="Subscription"letmake?description=fun~event->fun()->{description;event}letto_valuex=structure_to_value[("Event",(Some(EventName.to_valuex.event)));("Description",(Option.mapx.description~f:Description.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"Description")inletevent=EventName.of_xml(Xml.child_exn~context:context_xml_arg0"Event")inmake?description~event()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdescription=field_mapjson__"Description"Description.of_jsoninletevent=field_map_exnjson__"Event"EventName.of_jsoninmake?description~event()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The configuration of an event that the application subscribes."]moduleEventIntegration=structtypenonrect={eventIntegrationArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the event integration."];name:Name.toption[@ocaml.doc"The name of the event integration."];description:Description.toption[@ocaml.doc"The event integration description."];eventFilter:EventFilter.toption[@ocaml.doc"The event integration filter."];eventBridgeBus:EventBridgeBus.toption[@ocaml.doc"The Amazon EventBridge bus for the event integration."];tags:TagMap.toption[@ocaml.doc"The tags used to organize, track, or control access for this resource. For example, \\{ \"tags\": \\{\"key1\":\"value1\", \"key2\":\"value2\"\\} \\}."]}letmake?eventIntegrationArn=fun?name->fun?description->fun?eventFilter->fun?eventBridgeBus->fun?tags->fun()->{eventIntegrationArn;name;description;eventFilter;eventBridgeBus;tags}letto_valuex=structure_to_value[("EventIntegrationArn",(Option.mapx.eventIntegrationArn~f:Arn.to_value));("Name",(Option.mapx.name~f:Name.to_value));("Description",(Option.mapx.description~f:Description.to_value));("EventFilter",(Option.mapx.eventFilter~f:EventFilter.to_value));("EventBridgeBus",(Option.mapx.eventBridgeBus~f:EventBridgeBus.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inleteventBridgeBus=(Option.map~f:EventBridgeBus.of_xml)(Xml.childxml_arg0"EventBridgeBus")inleteventFilter=(Option.map~f:EventFilter.of_xml)(Xml.childxml_arg0"EventFilter")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"Description")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"Name")inleteventIntegrationArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"EventIntegrationArn")inmake?tags?eventBridgeBus?eventFilter?description?name?eventIntegrationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagMap.of_jsoninleteventBridgeBus=field_mapjson__"EventBridgeBus"EventBridgeBus.of_jsoninleteventFilter=field_mapjson__"EventFilter"EventFilter.of_jsoninletdescription=field_mapjson__"Description"Description.of_jsoninletname=field_mapjson__"Name"Name.of_jsoninleteventIntegrationArn=field_mapjson__"EventIntegrationArn"Arn.of_jsoninmake?tags?eventBridgeBus?eventFilter?description?name?eventIntegrationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The event integration."]moduleEventIntegrationAssociation=structtypenonrect={eventIntegrationAssociationArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) for the event integration association."];eventIntegrationAssociationId:UUID.toption[@ocaml.doc"The identifier for the event integration association."];eventIntegrationName:Name.toption[@ocaml.doc"The name of the event integration."];clientId:ClientId.toption[@ocaml.doc"The identifier for the client that is associated with the event integration."];eventBridgeRuleName:EventBridgeRuleName.toption[@ocaml.doc"The name of the EventBridge rule."];clientAssociationMetadata:ClientAssociationMetadata.toption[@ocaml.doc"The metadata associated with the client."]}letmake?eventIntegrationAssociationArn=fun?eventIntegrationAssociationId->fun?eventIntegrationName->fun?clientId->fun?eventBridgeRuleName->fun?clientAssociationMetadata->fun()->{eventIntegrationAssociationArn;eventIntegrationAssociationId;eventIntegrationName;clientId;eventBridgeRuleName;clientAssociationMetadata}letto_valuex=structure_to_value[("EventIntegrationAssociationArn",(Option.mapx.eventIntegrationAssociationArn~f:Arn.to_value));("EventIntegrationAssociationId",(Option.mapx.eventIntegrationAssociationId~f:UUID.to_value));("EventIntegrationName",(Option.mapx.eventIntegrationName~f:Name.to_value));("ClientId",(Option.mapx.clientId~f:ClientId.to_value));("EventBridgeRuleName",(Option.mapx.eventBridgeRuleName~f:EventBridgeRuleName.to_value));("ClientAssociationMetadata",(Option.mapx.clientAssociationMetadata~f:ClientAssociationMetadata.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientAssociationMetadata=(Option.map~f:ClientAssociationMetadata.of_xml)(Xml.childxml_arg0"ClientAssociationMetadata")inleteventBridgeRuleName=(Option.map~f:EventBridgeRuleName.of_xml)(Xml.childxml_arg0"EventBridgeRuleName")inletclientId=(Option.map~f:ClientId.of_xml)(Xml.childxml_arg0"ClientId")inleteventIntegrationName=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"EventIntegrationName")inleteventIntegrationAssociationId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"EventIntegrationAssociationId")inleteventIntegrationAssociationArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"EventIntegrationAssociationArn")inmake?clientAssociationMetadata?eventBridgeRuleName?clientId?eventIntegrationName?eventIntegrationAssociationId?eventIntegrationAssociationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientAssociationMetadata=field_mapjson__"ClientAssociationMetadata"ClientAssociationMetadata.of_jsoninleteventBridgeRuleName=field_mapjson__"EventBridgeRuleName"EventBridgeRuleName.of_jsoninletclientId=field_mapjson__"ClientId"ClientId.of_jsoninleteventIntegrationName=field_mapjson__"EventIntegrationName"Name.of_jsoninleteventIntegrationAssociationId=field_mapjson__"EventIntegrationAssociationId"UUID.of_jsoninleteventIntegrationAssociationArn=field_mapjson__"EventIntegrationAssociationArn"Arn.of_jsoninmake?clientAssociationMetadata?eventBridgeRuleName?clientId?eventIntegrationName?eventIntegrationAssociationId?eventIntegrationAssociationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The event integration association."]moduleDataIntegrationSummary=structtypenonrect={arn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the DataIntegration."];name:Name.toption[@ocaml.doc"The name of the DataIntegration."];sourceURI:SourceURI.toption[@ocaml.doc"The URI of the data source."]}letmake?arn=fun?name->fun?sourceURI->fun()->{arn;name;sourceURI}letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:Arn.to_value));("Name",(Option.mapx.name~f:Name.to_value));("SourceURI",(Option.mapx.sourceURI~f:SourceURI.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsourceURI=(Option.map~f:SourceURI.of_xml)(Xml.childxml_arg0"SourceURI")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"Name")inletarn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"Arn")inmake?sourceURI?name?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsourceURI=field_mapjson__"SourceURI"SourceURI.of_jsoninletname=field_mapjson__"Name"Name.of_jsoninletarn=field_mapjson__"Arn"Arn.of_jsoninmake?sourceURI?name?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summary information about the DataIntegration."]moduleDataIntegrationAssociationSummary=structtypenonrect={dataIntegrationAssociationArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the DataIntegration association."];dataIntegrationArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the DataIntegration."];clientId:ClientId.toption[@ocaml.doc"The identifier for the client that is associated with the DataIntegration association."];destinationURI:DestinationURI.toption[@ocaml.doc"The URI of the data destination."];lastExecutionStatus:LastExecutionStatus.toption[@ocaml.doc"The execution status of the last job."];executionConfiguration:ExecutionConfiguration.toption}letmake?dataIntegrationAssociationArn=fun?dataIntegrationArn->fun?clientId->fun?destinationURI->fun?lastExecutionStatus->fun?executionConfiguration->fun()->{dataIntegrationAssociationArn;dataIntegrationArn;clientId;destinationURI;lastExecutionStatus;executionConfiguration}letto_valuex=structure_to_value[("DataIntegrationAssociationArn",(Option.mapx.dataIntegrationAssociationArn~f:Arn.to_value));("DataIntegrationArn",(Option.mapx.dataIntegrationArn~f:Arn.to_value));("ClientId",(Option.mapx.clientId~f:ClientId.to_value));("DestinationURI",(Option.mapx.destinationURI~f:DestinationURI.to_value));("LastExecutionStatus",(Option.mapx.lastExecutionStatus~f:LastExecutionStatus.to_value));("ExecutionConfiguration",(Option.mapx.executionConfiguration~f:ExecutionConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexecutionConfiguration=(Option.map~f:ExecutionConfiguration.of_xml)(Xml.childxml_arg0"ExecutionConfiguration")inletlastExecutionStatus=(Option.map~f:LastExecutionStatus.of_xml)(Xml.childxml_arg0"LastExecutionStatus")inletdestinationURI=(Option.map~f:DestinationURI.of_xml)(Xml.childxml_arg0"DestinationURI")inletclientId=(Option.map~f:ClientId.of_xml)(Xml.childxml_arg0"ClientId")inletdataIntegrationArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"DataIntegrationArn")inletdataIntegrationAssociationArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"DataIntegrationAssociationArn")inmake?executionConfiguration?lastExecutionStatus?destinationURI?clientId?dataIntegrationArn?dataIntegrationAssociationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexecutionConfiguration=field_mapjson__"ExecutionConfiguration"ExecutionConfiguration.of_jsoninletlastExecutionStatus=field_mapjson__"LastExecutionStatus"LastExecutionStatus.of_jsoninletdestinationURI=field_mapjson__"DestinationURI"DestinationURI.of_jsoninletclientId=field_mapjson__"ClientId"ClientId.of_jsoninletdataIntegrationArn=field_mapjson__"DataIntegrationArn"Arn.of_jsoninletdataIntegrationAssociationArn=field_mapjson__"DataIntegrationAssociationArn"Arn.of_jsoninmake?executionConfiguration?lastExecutionStatus?destinationURI?clientId?dataIntegrationArn?dataIntegrationAssociationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summary information about the DataIntegration association."]moduleApplicationSummary=structtypenonrect={arn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Application."];id:UUID.toption[@ocaml.doc"A unique identifier for the Application."];name:ApplicationName.toption[@ocaml.doc"The name of the application."];namespace:ApplicationNamespace.toption[@ocaml.doc"The namespace of the application."];createdTime:Timestamp.toption[@ocaml.doc"The time when the application was created."];lastModifiedTime:Timestamp.toption[@ocaml.doc"The time when the application was last modified."];isService:Boolean.toption[@ocaml.doc"Indicates whether the application is a service."];applicationType:ApplicationType.toption[@ocaml.doc"The type of application."]}letmake?arn=fun?id->fun?name->fun?namespace->fun?createdTime->fun?lastModifiedTime->fun?isService->fun?applicationType->fun()->{arn;id;name;namespace;createdTime;lastModifiedTime;isService;applicationType}letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:Arn.to_value));("Id",(Option.mapx.id~f:UUID.to_value));("Name",(Option.mapx.name~f:ApplicationName.to_value));("Namespace",(Option.mapx.namespace~f:ApplicationNamespace.to_value));("CreatedTime",(Option.mapx.createdTime~f:Timestamp.to_value));("LastModifiedTime",(Option.mapx.lastModifiedTime~f:Timestamp.to_value));("IsService",(Option.mapx.isService~f:Boolean.to_value));("ApplicationType",(Option.mapx.applicationType~f:ApplicationType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapplicationType=(Option.map~f:ApplicationType.of_xml)(Xml.childxml_arg0"ApplicationType")inletisService=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"IsService")inletlastModifiedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastModifiedTime")inletcreatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreatedTime")inletnamespace=(Option.map~f:ApplicationNamespace.of_xml)(Xml.childxml_arg0"Namespace")inletname=(Option.map~f:ApplicationName.of_xml)(Xml.childxml_arg0"Name")inletid=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"Id")inletarn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"Arn")inmake?applicationType?isService?lastModifiedTime?createdTime?namespace?name?id?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapplicationType=field_mapjson__"ApplicationType"ApplicationType.of_jsoninletisService=field_mapjson__"IsService"Boolean.of_jsoninletlastModifiedTime=field_mapjson__"LastModifiedTime"Timestamp.of_jsoninletcreatedTime=field_mapjson__"CreatedTime"Timestamp.of_jsoninletnamespace=field_mapjson__"Namespace"ApplicationNamespace.of_jsoninletname=field_mapjson__"Name"ApplicationName.of_jsoninletid=field_mapjson__"Id"UUID.of_jsoninletarn=field_mapjson__"Arn"Arn.of_jsoninmake?applicationType?isService?lastModifiedTime?createdTime?namespace?name?id?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summary information about the Application."]moduleApplicationAssociationSummary=structtypenonrect={applicationAssociationArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Application Association."];applicationArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Application."];clientId:ClientId.toption[@ocaml.doc"The identifier for the client that is associated with the Application Association."]}letmake?applicationAssociationArn=fun?applicationArn->fun?clientId->fun()->{applicationAssociationArn;applicationArn;clientId}letto_valuex=structure_to_value[("ApplicationAssociationArn",(Option.mapx.applicationAssociationArn~f:Arn.to_value));("ApplicationArn",(Option.mapx.applicationArn~f:Arn.to_value));("ClientId",(Option.mapx.clientId~f:ClientId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientId=(Option.map~f:ClientId.of_xml)(Xml.childxml_arg0"ClientId")inletapplicationArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"ApplicationArn")inletapplicationAssociationArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"ApplicationAssociationArn")inmake?clientId?applicationArn?applicationAssociationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientId=field_mapjson__"ClientId"ClientId.of_jsoninletapplicationArn=field_mapjson__"ApplicationArn"Arn.of_jsoninletapplicationAssociationArn=field_mapjson__"ApplicationAssociationArn"Arn.of_jsoninmake?clientId?applicationArn?applicationAssociationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summary information about the Application Association."]moduleFieldsMap=structtypenonrect=(NonBlankString.t*FieldsList.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types NonBlankString FieldsList"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(NonBlankString.to_valuex)|>(funx->(FieldsList.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:NonBlankString.of_string~of_json:FieldsList.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFolderList=structtypenonrect=NonBlankLongString.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:NonBlankLongString.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:NonBlankLongString.of_xml)letof_jsonj=list_of_json~kind:"FolderList"~of_json:NonBlankLongString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccessDeniedException=structtypenonrect={message:Message.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:Message.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Message.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Message.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You do not have sufficient access to perform this action."]moduleInternalServiceError=structtypenonrect={message:Message.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:Message.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Message.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Message.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request processing failed due to an error or failure with the service."]moduleInvalidRequestException=structtypenonrect={message:Message.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:Message.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Message.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Message.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request is not valid."]moduleResourceNotFoundException=structtypenonrect={message:Message.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:Message.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Message.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Message.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified resource was not found."]moduleThrottlingException=structtypenonrect={message:Message.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:Message.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Message.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Message.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The throttling limit has been exceeded."]moduleIdentifier=structtypenonrect=stringletcontext_="Identifier"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:".*\\S.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Identifier"jletto_json=simple_to_jsonto_valueendmoduleUnsupportedOperationException=structtypenonrect={message:Message.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:Message.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Message.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Message.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The operation is not supported."]moduleApplicationConfig=structtypenonrect={contactHandling:ContactHandling.toption[@ocaml.doc"The contact handling configuration for the application."]}letmake?contactHandling=fun()->{contactHandling}letto_valuex=structure_to_value[("ContactHandling",(Option.mapx.contactHandling~f:ContactHandling.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontactHandling=(Option.map~f:ContactHandling.of_xml)(Xml.childxml_arg0"ContactHandling")inmake?contactHandling()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontactHandling=field_mapjson__"ContactHandling"ContactHandling.of_jsoninmake?contactHandling()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The configuration settings for the application."]moduleApplicationSourceConfig=structtypenonrect={externalUrlConfig:ExternalUrlConfig.toption[@ocaml.doc"The external URL source for the application."]}letmake?externalUrlConfig=fun()->{externalUrlConfig}letto_valuex=structure_to_value[("ExternalUrlConfig",(Option.mapx.externalUrlConfig~f:ExternalUrlConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexternalUrlConfig=(Option.map~f:ExternalUrlConfig.of_xml)(Xml.childxml_arg0"ExternalUrlConfig")inmake?externalUrlConfig()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexternalUrlConfig=field_mapjson__"ExternalUrlConfig"ExternalUrlConfig.of_jsoninmake?externalUrlConfig()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The configuration for where the application should be loaded from."]moduleArnOrUUID=structtypenonrect=stringletcontext_="ArnOrUUID"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^(arn:aws:[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}|[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})(:[\\w\\$]+)?$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ArnOrUUID"jletto_json=simple_to_jsonto_valueendmoduleIframeConfig=structtypenonrect={allow:IframePermissionList.toption[@ocaml.doc"The list of features that are allowed in the iframe."];sandbox:IframePermissionList.toption[@ocaml.doc"The list of sandbox attributes for the iframe."]}letmake?allow=fun?sandbox->fun()->{allow;sandbox}letto_valuex=structure_to_value[("Allow",(Option.mapx.allow~f:IframePermissionList.to_value));("Sandbox",(Option.mapx.sandbox~f:IframePermissionList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsandbox=(Option.map~f:IframePermissionList.of_xml)(Xml.childxml_arg0"Sandbox")inletallow=(Option.map~f:IframePermissionList.of_xml)(Xml.childxml_arg0"Allow")inmake?sandbox?allow()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsandbox=field_mapjson__"Sandbox"IframePermissionList.of_jsoninletallow=field_mapjson__"Allow"IframePermissionList.of_jsoninmake?sandbox?allow()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The iframe configuration for the application."]moduleInitializationTimeout=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:600000)>>=(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 InitializationTimeout"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmodulePermissionList=structtypenonrect=Permission.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:150)>>=(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:Permission.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:Permission.of_xml)letof_jsonj=list_of_json~kind:"PermissionList"~of_json:Permission.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePublicationList=structtypenonrect=Publication.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:Publication.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:Publication.of_xml)letof_jsonj=list_of_json~kind:"PublicationList"~of_json:Publication.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSubscriptionList=structtypenonrect=Subscription.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:Subscription.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:Subscription.of_xml)letof_jsonj=list_of_json~kind:"SubscriptionList"~of_json:Subscription.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f: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_valuevendmoduleEventIntegrationsList=structtypenonrect=EventIntegration.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EventIntegration.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:EventIntegration.of_xml)letof_jsonj=list_of_json~kind:"EventIntegrationsList"~of_json:EventIntegration.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNextToken=structtypenonrect=stringletcontext_="NextToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1000)>>=(fun()->check_patterni~pattern:".*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NextToken"jletto_json=simple_to_jsonto_valueendmoduleMaxResults=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 MaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleEventIntegrationAssociationsList=structtypenonrect=EventIntegrationAssociation.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EventIntegrationAssociation.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:EventIntegrationAssociation.of_xml)letof_jsonj=list_of_json~kind:"EventIntegrationAssociationsList"~of_json:EventIntegrationAssociation.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDataIntegrationsList=structtypenonrect=DataIntegrationSummary.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DataIntegrationSummary.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:DataIntegrationSummary.of_xml)letof_jsonj=list_of_json~kind:"DataIntegrationsList"~of_json:DataIntegrationSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDataIntegrationAssociationsList=structtypenonrect=DataIntegrationAssociationSummary.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DataIntegrationAssociationSummary.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:DataIntegrationAssociationSummary.of_xml)letof_jsonj=list_of_json~kind:"DataIntegrationAssociationsList"~of_json:DataIntegrationAssociationSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleApplicationsList=structtypenonrect=ApplicationSummary.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ApplicationSummary.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:ApplicationSummary.of_xml)letof_jsonj=list_of_json~kind:"ApplicationsList"~of_json:ApplicationSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleApplicationAssociationsList=structtypenonrect=ApplicationAssociationSummary.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ApplicationAssociationSummary.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:ApplicationAssociationSummary.of_xml)letof_jsonj=list_of_json~kind:"ApplicationAssociationsList"~of_json:ApplicationAssociationSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFileConfiguration=structtypenonrect={folders:FolderList.t[@ocaml.doc"Identifiers for the source folders to pull all files from recursively."];filters:FieldsMap.toption[@ocaml.doc"Restrictions for what files should be pulled from the source."]}letcontext_="FileConfiguration"letmake?filters=fun~folders->fun()->{filters;folders}letto_valuex=structure_to_value[("Folders",(Some(FolderList.to_valuex.folders)));("Filters",(Option.mapx.filters~f:FieldsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfilters=(Option.map~f:FieldsMap.of_xml)(Xml.childxml_arg0"Filters")inletfolders=FolderList.of_xml(Xml.child_exn~context:context_xml_arg0"Folders")inmake?filters~folders()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfilters=field_mapjson__"Filters"FieldsMap.of_jsoninletfolders=field_map_exnjson__"Folders"FolderList.of_jsoninmake?filters~folders()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The configuration for what files should be pulled from the source."]moduleObjectConfiguration=structtypenonrect=(NonBlankString.t*FieldsMap.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types NonBlankString FieldsMap"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(NonBlankString.to_valuex)|>(funx->(FieldsMap.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:NonBlankString.of_string~of_json:FieldsMap.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDuplicateResourceException=structtypenonrect={message:Message.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:Message.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Message.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Message.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A resource with the specified name already exists."]moduleResourceQuotaExceededException=structtypenonrect={message:Message.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:Message.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Message.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Message.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The allowed quota for the resource has been exceeded."]moduleIdempotencyToken=structtypenonrect=stringletcontext_="IdempotencyToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:".*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IdempotencyToken"jletto_json=simple_to_jsonto_valueendmoduleUpdateEventIntegrationResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the description of an event integration."]moduleUpdateEventIntegrationRequest=structtypenonrect={name:Name.t[@ocaml.doc"The name of the event integration."];description:Description.toption[@ocaml.doc"The description of the event integration."]}letcontext_="UpdateEventIntegrationRequest"letmake?description=fun~name->fun()->{description;name}letto_valuex=structure_to_value[("Name",(Some(Name.to_valuex.name)));("Description",(Option.mapx.description~f:Description.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"Description")inletname=Name.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?description~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdescription=field_mapjson__"Description"Description.of_jsoninletname=field_map_exnjson__"Name"Name.of_jsoninmake?description~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the description of an event integration."]moduleUpdateDataIntegrationResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the description of a DataIntegration. You cannot create a DataIntegration association for a DataIntegration that has been previously associated. Use a different DataIntegration, or recreate the DataIntegration using the CreateDataIntegration API."]moduleUpdateDataIntegrationRequest=structtypenonrect={identifier:Identifier.t[@ocaml.doc"A unique identifier for the DataIntegration."];name:Name.toption[@ocaml.doc"The name of the DataIntegration."];description:Description.toption[@ocaml.doc"A description of the DataIntegration."]}letcontext_="UpdateDataIntegrationRequest"letmake?name=fun?description->fun~identifier->fun()->{name;description;identifier}letto_valuex=structure_to_value[("Identifier",(Some(Identifier.to_valuex.identifier)));("Name",(Option.mapx.name~f:Name.to_value));("Description",(Option.mapx.description~f:Description.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"Description")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"Name")inletidentifier=Identifier.of_xml(Xml.child_exn~context:context_xml_arg0"Identifier")inmake?description?name~identifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdescription=field_mapjson__"Description"Description.of_jsoninletname=field_mapjson__"Name"Name.of_jsoninletidentifier=field_map_exnjson__"Identifier"Identifier.of_jsoninmake?description?name~identifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the description of a DataIntegration. You cannot create a DataIntegration association for a DataIntegration that has been previously associated. Use a different DataIntegration, or recreate the DataIntegration using the CreateDataIntegration API."]moduleUpdateDataIntegrationAssociationResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates and persists a DataIntegrationAssociation resource. Updating a DataIntegrationAssociation with ExecutionConfiguration will rerun the on-demand job."]moduleUpdateDataIntegrationAssociationRequest=structtypenonrect={dataIntegrationIdentifier:Identifier.t[@ocaml.doc"A unique identifier for the DataIntegration."];dataIntegrationAssociationIdentifier:Identifier.t[@ocaml.doc"A unique identifier. of the DataIntegrationAssociation resource"];executionConfiguration:ExecutionConfiguration.t[@ocaml.doc"The configuration for how the files should be pulled from the source."]}letcontext_="UpdateDataIntegrationAssociationRequest"letmake~dataIntegrationIdentifier=fun~dataIntegrationAssociationIdentifier->fun~executionConfiguration->fun()->{dataIntegrationIdentifier;dataIntegrationAssociationIdentifier;executionConfiguration}letto_valuex=structure_to_value[("Identifier",(Some(Identifier.to_valuex.dataIntegrationIdentifier)));("DataIntegrationAssociationIdentifier",(Some(Identifier.to_valuex.dataIntegrationAssociationIdentifier)));("ExecutionConfiguration",(Some(ExecutionConfiguration.to_valuex.executionConfiguration)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexecutionConfiguration=ExecutionConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"ExecutionConfiguration")inletdataIntegrationAssociationIdentifier=Identifier.of_xml(Xml.child_exn~context:context_xml_arg0"DataIntegrationAssociationIdentifier")inletdataIntegrationIdentifier=Identifier.of_xml(Xml.child_exn~context:context_xml_arg0"Identifier")inmake~executionConfiguration~dataIntegrationAssociationIdentifier~dataIntegrationIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexecutionConfiguration=field_map_exnjson__"ExecutionConfiguration"ExecutionConfiguration.of_jsoninletdataIntegrationAssociationIdentifier=field_map_exnjson__"DataIntegrationAssociationIdentifier"Identifier.of_jsoninletdataIntegrationIdentifier=field_map_exnjson__"DataIntegrationIdentifier"Identifier.of_jsoninmake~executionConfiguration~dataIntegrationAssociationIdentifier~dataIntegrationIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates and persists a DataIntegrationAssociation resource. Updating a DataIntegrationAssociation with ExecutionConfiguration will rerun the on-demand job."]moduleUpdateApplicationResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`UnsupportedOperationExceptionofUnsupportedOperationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.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))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnsupportedOperationExceptione->`Assoc[("error",(`String"UnsupportedOperationException"));("details",(UnsupportedOperationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates and persists an Application resource."]moduleUpdateApplicationRequest=structtypenonrect={arn:ArnOrUUID.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Application."];name:ApplicationName.toption[@ocaml.doc"The name of the application."];description:Description.toption[@ocaml.doc"The description of the application."];applicationSourceConfig:ApplicationSourceConfig.toption[@ocaml.doc"The configuration for where the application should be loaded from."];subscriptions:SubscriptionList.toption[@ocaml.doc"The events that the application subscribes."];publications:PublicationList.toption[@ocaml.doc"The events that the application publishes."];permissions:PermissionList.toption[@ocaml.doc"The configuration of events or requests that the application has access to."];isService:Boolean.toption[@ocaml.doc"Indicates whether the application is a service."];initializationTimeout:InitializationTimeout.toption[@ocaml.doc"The maximum time in milliseconds allowed to establish a connection with the workspace."];applicationConfig:ApplicationConfig.toption[@ocaml.doc"The configuration settings for the application."];iframeConfig:IframeConfig.toption[@ocaml.doc"The iframe configuration for the application."];applicationType:ApplicationType.toption[@ocaml.doc"The type of application."]}letcontext_="UpdateApplicationRequest"letmake?name=fun?description->fun?applicationSourceConfig->fun?subscriptions->fun?publications->fun?permissions->fun?isService->fun?initializationTimeout->fun?applicationConfig->fun?iframeConfig->fun?applicationType->fun~arn->fun()->{name;description;applicationSourceConfig;subscriptions;publications;permissions;isService;initializationTimeout;applicationConfig;iframeConfig;applicationType;arn}letto_valuex=structure_to_value[("ApplicationIdentifier",(Some(ArnOrUUID.to_valuex.arn)));("Name",(Option.mapx.name~f:ApplicationName.to_value));("Description",(Option.mapx.description~f:Description.to_value));("ApplicationSourceConfig",(Option.mapx.applicationSourceConfig~f:ApplicationSourceConfig.to_value));("Subscriptions",(Option.mapx.subscriptions~f:SubscriptionList.to_value));("Publications",(Option.mapx.publications~f:PublicationList.to_value));("Permissions",(Option.mapx.permissions~f:PermissionList.to_value));("IsService",(Option.mapx.isService~f:Boolean.to_value));("InitializationTimeout",(Option.mapx.initializationTimeout~f:InitializationTimeout.to_value));("ApplicationConfig",(Option.mapx.applicationConfig~f:ApplicationConfig.to_value));("IframeConfig",(Option.mapx.iframeConfig~f:IframeConfig.to_value));("ApplicationType",(Option.mapx.applicationType~f:ApplicationType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapplicationType=(Option.map~f:ApplicationType.of_xml)(Xml.childxml_arg0"ApplicationType")inletiframeConfig=(Option.map~f:IframeConfig.of_xml)(Xml.childxml_arg0"IframeConfig")inletapplicationConfig=(Option.map~f:ApplicationConfig.of_xml)(Xml.childxml_arg0"ApplicationConfig")inletinitializationTimeout=(Option.map~f:InitializationTimeout.of_xml)(Xml.childxml_arg0"InitializationTimeout")inletisService=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"IsService")inletpermissions=(Option.map~f:PermissionList.of_xml)(Xml.childxml_arg0"Permissions")inletpublications=(Option.map~f:PublicationList.of_xml)(Xml.childxml_arg0"Publications")inletsubscriptions=(Option.map~f:SubscriptionList.of_xml)(Xml.childxml_arg0"Subscriptions")inletapplicationSourceConfig=(Option.map~f:ApplicationSourceConfig.of_xml)(Xml.childxml_arg0"ApplicationSourceConfig")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"Description")inletname=(Option.map~f:ApplicationName.of_xml)(Xml.childxml_arg0"Name")inletarn=ArnOrUUID.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationIdentifier")inmake?applicationType?iframeConfig?applicationConfig?initializationTimeout?isService?permissions?publications?subscriptions?applicationSourceConfig?description?name~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapplicationType=field_mapjson__"ApplicationType"ApplicationType.of_jsoninletiframeConfig=field_mapjson__"IframeConfig"IframeConfig.of_jsoninletapplicationConfig=field_mapjson__"ApplicationConfig"ApplicationConfig.of_jsoninletinitializationTimeout=field_mapjson__"InitializationTimeout"InitializationTimeout.of_jsoninletisService=field_mapjson__"IsService"Boolean.of_jsoninletpermissions=field_mapjson__"Permissions"PermissionList.of_jsoninletpublications=field_mapjson__"Publications"PublicationList.of_jsoninletsubscriptions=field_mapjson__"Subscriptions"SubscriptionList.of_jsoninletapplicationSourceConfig=field_mapjson__"ApplicationSourceConfig"ApplicationSourceConfig.of_jsoninletdescription=field_mapjson__"Description"Description.of_jsoninletname=field_mapjson__"Name"ApplicationName.of_jsoninletarn=field_map_exnjson__"Arn"ArnOrUUID.of_jsoninmake?applicationType?iframeConfig?applicationConfig?initializationTimeout?isService?permissions?publications?subscriptions?applicationSourceConfig?description?name~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates and persists an Application resource."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the specified tags from the specified resource."]moduleUntagResourceRequest=structtypenonrect={resourceArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource."];tagKeys:TagKeyList.t[@ocaml.doc"The tag keys."]}letcontext_="UntagResourceRequest"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("resourceArn",(Some(Arn.to_valuex.resourceArn)));("tagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletresourceArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake~tagKeys~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"tagKeys"TagKeyList.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"Arn.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the specified tags from the specified resource."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds the specified tags to the specified resource."]moduleTagResourceRequest=structtypenonrect={resourceArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource."];tags:TagMap.t[@ocaml.doc"The tags used to organize, track, or control access for this resource. For example, \\{ \"tags\": \\{\"key1\":\"value1\", \"key2\":\"value2\"\\} \\}."]}letcontext_="TagResourceRequest"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("resourceArn",(Some(Arn.to_valuex.resourceArn)));("tags",(Some(TagMap.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagMap.of_xml(Xml.child_exn~context:context_xml_arg0"tags")inletresourceArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake~tags~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"tags"TagMap.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"Arn.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds the specified tags to the specified resource."]moduleListTagsForResourceResponse=structtypenonrect={tags:TagMap.toption[@ocaml.doc"Information about the tags."]}typenonrecerror=[`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagMap.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the tags for the specified resource."]moduleListTagsForResourceRequest=structtypenonrect={resourceArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource."]}letcontext_="ListTagsForResourceRequest"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("resourceArn",(Some(Arn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_map_exnjson__"resourceArn"Arn.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the tags for the specified resource."]moduleListEventIntegrationsResponse=structtypenonrect={eventIntegrations:EventIntegrationsList.toption[@ocaml.doc"The event integrations."];nextToken:NextToken.toption[@ocaml.doc"If there are additional results, this is the token for the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?eventIntegrations=fun?nextToken->fun()->{eventIntegrations;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("EventIntegrations",(Option.mapx.eventIntegrations~f:EventIntegrationsList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inleteventIntegrations=(Option.map~f:EventIntegrationsList.of_xml)(Xml.childxml_arg0"EventIntegrations")inmake?nextToken?eventIntegrations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninleteventIntegrations=field_mapjson__"EventIntegrations"EventIntegrationsList.of_jsoninmake?nextToken?eventIntegrations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a paginated list of event integrations in the account."]moduleListEventIntegrationsRequest=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of results to return per page."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:NextToken.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"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a paginated list of event integrations in the account."]moduleListEventIntegrationAssociationsResponse=structtypenonrect={eventIntegrationAssociations:EventIntegrationAssociationsList.toption[@ocaml.doc"The event integration associations."];nextToken:NextToken.toption[@ocaml.doc"If there are additional results, this is the token for the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?eventIntegrationAssociations=fun?nextToken->fun()->{eventIntegrationAssociations;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("EventIntegrationAssociations",(Option.mapx.eventIntegrationAssociations~f:EventIntegrationAssociationsList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inleteventIntegrationAssociations=(Option.map~f:EventIntegrationAssociationsList.of_xml)(Xml.childxml_arg0"EventIntegrationAssociations")inmake?nextToken?eventIntegrationAssociations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninleteventIntegrationAssociations=field_mapjson__"EventIntegrationAssociations"EventIntegrationAssociationsList.of_jsoninmake?nextToken?eventIntegrationAssociations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a paginated list of event integration associations in the account."]moduleListEventIntegrationAssociationsRequest=structtypenonrect={eventIntegrationName:Name.t[@ocaml.doc"The name of the event integration."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of results to return per page."]}letcontext_="ListEventIntegrationAssociationsRequest"letmake?nextToken=fun?maxResults->fun~eventIntegrationName->fun()->{nextToken;maxResults;eventIntegrationName}letto_valuex=structure_to_value[("Name",(Some(Name.to_valuex.eventIntegrationName)));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inleteventIntegrationName=Name.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?maxResults?nextToken~eventIntegrationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninleteventIntegrationName=field_map_exnjson__"EventIntegrationName"Name.of_jsoninmake?maxResults?nextToken~eventIntegrationName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a paginated list of event integration associations in the account."]moduleListDataIntegrationsResponse=structtypenonrect={dataIntegrations:DataIntegrationsList.toption[@ocaml.doc"The DataIntegrations associated with this account."];nextToken:NextToken.toption[@ocaml.doc"If there are additional results, this is the token for the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?dataIntegrations=fun?nextToken->fun()->{dataIntegrations;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("DataIntegrations",(Option.mapx.dataIntegrations~f:DataIntegrationsList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletdataIntegrations=(Option.map~f:DataIntegrationsList.of_xml)(Xml.childxml_arg0"DataIntegrations")inmake?nextToken?dataIntegrations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletdataIntegrations=field_mapjson__"DataIntegrations"DataIntegrationsList.of_jsoninmake?nextToken?dataIntegrations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a paginated list of DataIntegrations in the account. You cannot create a DataIntegration association for a DataIntegration that has been previously associated. Use a different DataIntegration, or recreate the DataIntegration using the CreateDataIntegration API."]moduleListDataIntegrationsRequest=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of results to return per page."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:NextToken.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"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a paginated list of DataIntegrations in the account. You cannot create a DataIntegration association for a DataIntegration that has been previously associated. Use a different DataIntegration, or recreate the DataIntegration using the CreateDataIntegration API."]moduleListDataIntegrationAssociationsResponse=structtypenonrect={dataIntegrationAssociations:DataIntegrationAssociationsList.toption[@ocaml.doc"The Amazon Resource Name (ARN) and unique ID of the DataIntegration association."];nextToken:NextToken.toption[@ocaml.doc"If there are additional results, this is the token for the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?dataIntegrationAssociations=fun?nextToken->fun()->{dataIntegrationAssociations;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("DataIntegrationAssociations",(Option.mapx.dataIntegrationAssociations~f:DataIntegrationAssociationsList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletdataIntegrationAssociations=(Option.map~f:DataIntegrationAssociationsList.of_xml)(Xml.childxml_arg0"DataIntegrationAssociations")inmake?nextToken?dataIntegrationAssociations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletdataIntegrationAssociations=field_mapjson__"DataIntegrationAssociations"DataIntegrationAssociationsList.of_jsoninmake?nextToken?dataIntegrationAssociations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a paginated list of DataIntegration associations in the account. You cannot create a DataIntegration association for a DataIntegration that has been previously associated. Use a different DataIntegration, or recreate the DataIntegration using the CreateDataIntegration API."]moduleListDataIntegrationAssociationsRequest=structtypenonrect={dataIntegrationIdentifier:Identifier.t[@ocaml.doc"A unique identifier for the DataIntegration."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of results to return per page."]}letcontext_="ListDataIntegrationAssociationsRequest"letmake?nextToken=fun?maxResults->fun~dataIntegrationIdentifier->fun()->{nextToken;maxResults;dataIntegrationIdentifier}letto_valuex=structure_to_value[("Identifier",(Some(Identifier.to_valuex.dataIntegrationIdentifier)));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletdataIntegrationIdentifier=Identifier.of_xml(Xml.child_exn~context:context_xml_arg0"Identifier")inmake?maxResults?nextToken~dataIntegrationIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletdataIntegrationIdentifier=field_map_exnjson__"DataIntegrationIdentifier"Identifier.of_jsoninmake?maxResults?nextToken~dataIntegrationIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a paginated list of DataIntegration associations in the account. You cannot create a DataIntegration association for a DataIntegration that has been previously associated. Use a different DataIntegration, or recreate the DataIntegration using the CreateDataIntegration API."]moduleListApplicationsResponse=structtypenonrect={applications:ApplicationsList.toption[@ocaml.doc"The Applications associated with this account."];nextToken:NextToken.toption[@ocaml.doc"If there are additional results, this is the token for the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?applications=fun?nextToken->fun()->{applications;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Applications",(Option.mapx.applications~f:ApplicationsList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletapplications=(Option.map~f:ApplicationsList.of_xml)(Xml.childxml_arg0"Applications")inmake?nextToken?applications()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletapplications=field_mapjson__"Applications"ApplicationsList.of_jsoninmake?nextToken?applications()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists applications in the account."]moduleListApplicationsRequest=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of results to return per page."];applicationType:ApplicationType.toption[@ocaml.doc"The type of application."]}letmake?nextToken=fun?maxResults->fun?applicationType->fun()->{nextToken;maxResults;applicationType}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("applicationType",(Option.mapx.applicationType~f:ApplicationType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapplicationType=(Option.map~f:ApplicationType.of_xml)(Xml.childxml_arg0"applicationType")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?applicationType?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapplicationType=field_mapjson__"ApplicationType"ApplicationType.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninmake?applicationType?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists applications in the account."]moduleListApplicationAssociationsResponse=structtypenonrect={applicationAssociations:ApplicationAssociationsList.toption[@ocaml.doc"List of Application Associations for the Application."];nextToken:NextToken.toption[@ocaml.doc"If there are additional results, this is the token for the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?applicationAssociations=fun?nextToken->fun()->{applicationAssociations;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ApplicationAssociations",(Option.mapx.applicationAssociations~f:ApplicationAssociationsList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletapplicationAssociations=(Option.map~f:ApplicationAssociationsList.of_xml)(Xml.childxml_arg0"ApplicationAssociations")inmake?nextToken?applicationAssociations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletapplicationAssociations=field_mapjson__"ApplicationAssociations"ApplicationAssociationsList.of_jsoninmake?nextToken?applicationAssociations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a paginated list of application associations for an application."]moduleListApplicationAssociationsRequest=structtypenonrect={applicationId:ArnOrUUID.t[@ocaml.doc"A unique identifier for the Application."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of results to return per page."]}letcontext_="ListApplicationAssociationsRequest"letmake?nextToken=fun?maxResults->fun~applicationId->fun()->{nextToken;maxResults;applicationId}letto_valuex=structure_to_value[("ApplicationIdentifier",(Some(ArnOrUUID.to_valuex.applicationId)));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletapplicationId=ArnOrUUID.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationIdentifier")inmake?maxResults?nextToken~applicationId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletapplicationId=field_map_exnjson__"ApplicationId"ArnOrUUID.of_jsoninmake?maxResults?nextToken~applicationId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a paginated list of application associations for an application."]moduleGetEventIntegrationResponse=structtypenonrect={name:Name.toption[@ocaml.doc"The name of the event integration."];description:Description.toption[@ocaml.doc"The description of the event integration."];eventIntegrationArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) for the event integration."];eventBridgeBus:EventBridgeBus.toption[@ocaml.doc"The EventBridge bus."];eventFilter:EventFilter.toption[@ocaml.doc"The event filter."];tags:TagMap.toption[@ocaml.doc"The tags used to organize, track, or control access for this resource. For example, \\{ \"tags\": \\{\"key1\":\"value1\", \"key2\":\"value2\"\\} \\}."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?name=fun?description->fun?eventIntegrationArn->fun?eventBridgeBus->fun?eventFilter->fun?tags->fun()->{name;description;eventIntegrationArn;eventBridgeBus;eventFilter;tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:Name.to_value));("Description",(Option.mapx.description~f:Description.to_value));("EventIntegrationArn",(Option.mapx.eventIntegrationArn~f:Arn.to_value));("EventBridgeBus",(Option.mapx.eventBridgeBus~f:EventBridgeBus.to_value));("EventFilter",(Option.mapx.eventFilter~f:EventFilter.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inleteventFilter=(Option.map~f:EventFilter.of_xml)(Xml.childxml_arg0"EventFilter")inleteventBridgeBus=(Option.map~f:EventBridgeBus.of_xml)(Xml.childxml_arg0"EventBridgeBus")inleteventIntegrationArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"EventIntegrationArn")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"Description")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"Name")inmake?tags?eventFilter?eventBridgeBus?eventIntegrationArn?description?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagMap.of_jsoninleteventFilter=field_mapjson__"EventFilter"EventFilter.of_jsoninleteventBridgeBus=field_mapjson__"EventBridgeBus"EventBridgeBus.of_jsoninleteventIntegrationArn=field_mapjson__"EventIntegrationArn"Arn.of_jsoninletdescription=field_mapjson__"Description"Description.of_jsoninletname=field_mapjson__"Name"Name.of_jsoninmake?tags?eventFilter?eventBridgeBus?eventIntegrationArn?description?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about the event integration."]moduleGetEventIntegrationRequest=structtypenonrect={name:Name.t[@ocaml.doc"The name of the event integration."]}letcontext_="GetEventIntegrationRequest"letmake~name=fun()->{name}letto_valuex=structure_to_value[("Name",(Some(Name.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=Name.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"Name"Name.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about the event integration."]moduleGetDataIntegrationResponse=structtypenonrect={arn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) for the DataIntegration."];id:UUID.toption[@ocaml.doc"A unique identifier."];name:Name.toption[@ocaml.doc"The name of the DataIntegration."];description:Description.toption[@ocaml.doc"The KMS key ARN for the DataIntegration."];kmsKey:NonBlankString.toption[@ocaml.doc"The KMS key ARN for the DataIntegration."];sourceURI:SourceURI.toption[@ocaml.doc"The URI of the data source."];scheduleConfiguration:ScheduleConfiguration.toption[@ocaml.doc"The name of the data and how often it should be pulled from the source."];tags:TagMap.toption[@ocaml.doc"The tags used to organize, track, or control access for this resource. For example, \\{ \"tags\": \\{\"key1\":\"value1\", \"key2\":\"value2\"\\} \\}."];fileConfiguration:FileConfiguration.toption[@ocaml.doc"The configuration for what files should be pulled from the source."];objectConfiguration:ObjectConfiguration.toption[@ocaml.doc"The configuration for what data should be pulled from the source."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?id->fun?name->fun?description->fun?kmsKey->fun?sourceURI->fun?scheduleConfiguration->fun?tags->fun?fileConfiguration->fun?objectConfiguration->fun()->{arn;id;name;description;kmsKey;sourceURI;scheduleConfiguration;tags;fileConfiguration;objectConfiguration}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:Arn.to_value));("Id",(Option.mapx.id~f:UUID.to_value));("Name",(Option.mapx.name~f:Name.to_value));("Description",(Option.mapx.description~f:Description.to_value));("KmsKey",(Option.mapx.kmsKey~f:NonBlankString.to_value));("SourceURI",(Option.mapx.sourceURI~f:SourceURI.to_value));("ScheduleConfiguration",(Option.mapx.scheduleConfiguration~f:ScheduleConfiguration.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value));("FileConfiguration",(Option.mapx.fileConfiguration~f:FileConfiguration.to_value));("ObjectConfiguration",(Option.mapx.objectConfiguration~f:ObjectConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letobjectConfiguration=(Option.map~f:ObjectConfiguration.of_xml)(Xml.childxml_arg0"ObjectConfiguration")inletfileConfiguration=(Option.map~f:FileConfiguration.of_xml)(Xml.childxml_arg0"FileConfiguration")inlettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletscheduleConfiguration=(Option.map~f:ScheduleConfiguration.of_xml)(Xml.childxml_arg0"ScheduleConfiguration")inletsourceURI=(Option.map~f:SourceURI.of_xml)(Xml.childxml_arg0"SourceURI")inletkmsKey=(Option.map~f:NonBlankString.of_xml)(Xml.childxml_arg0"KmsKey")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"Description")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"Name")inletid=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"Id")inletarn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"Arn")inmake?objectConfiguration?fileConfiguration?tags?scheduleConfiguration?sourceURI?kmsKey?description?name?id?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letobjectConfiguration=field_mapjson__"ObjectConfiguration"ObjectConfiguration.of_jsoninletfileConfiguration=field_mapjson__"FileConfiguration"FileConfiguration.of_jsoninlettags=field_mapjson__"Tags"TagMap.of_jsoninletscheduleConfiguration=field_mapjson__"ScheduleConfiguration"ScheduleConfiguration.of_jsoninletsourceURI=field_mapjson__"SourceURI"SourceURI.of_jsoninletkmsKey=field_mapjson__"KmsKey"NonBlankString.of_jsoninletdescription=field_mapjson__"Description"Description.of_jsoninletname=field_mapjson__"Name"Name.of_jsoninletid=field_mapjson__"Id"UUID.of_jsoninletarn=field_mapjson__"Arn"Arn.of_jsoninmake?objectConfiguration?fileConfiguration?tags?scheduleConfiguration?sourceURI?kmsKey?description?name?id?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about the DataIntegration. You cannot create a DataIntegration association for a DataIntegration that has been previously associated. Use a different DataIntegration, or recreate the DataIntegration using the CreateDataIntegration API."]moduleGetDataIntegrationRequest=structtypenonrect={identifier:Identifier.t[@ocaml.doc"A unique identifier."]}letcontext_="GetDataIntegrationRequest"letmake~identifier=fun()->{identifier}letto_valuex=structure_to_value[("Identifier",(Some(Identifier.to_valuex.identifier)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentifier=Identifier.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"Identifier.of_jsoninmake~identifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about the DataIntegration. You cannot create a DataIntegration association for a DataIntegration that has been previously associated. Use a different DataIntegration, or recreate the DataIntegration using the CreateDataIntegration API."]moduleGetApplicationResponse=structtypenonrect={arn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Application."];id:UUID.toption[@ocaml.doc"A unique identifier for the Application."];name:ApplicationName.toption[@ocaml.doc"The name of the application."];namespace:ApplicationNamespace.toption[@ocaml.doc"The namespace of the application."];description:Description.toption[@ocaml.doc"The description of the application."];applicationSourceConfig:ApplicationSourceConfig.toption[@ocaml.doc"The configuration for where the application should be loaded from."];subscriptions:SubscriptionList.toption[@ocaml.doc"The events that the application subscribes."];publications:PublicationList.toption[@ocaml.doc"The events that the application publishes."];createdTime:Timestamp.toption[@ocaml.doc"The created time of the Application."];lastModifiedTime:Timestamp.toption[@ocaml.doc"The last modified time of the Application."];tags:TagMap.toption[@ocaml.doc"The tags used to organize, track, or control access for this resource. For example, \\{ \"tags\": \\{\"key1\":\"value1\", \"key2\":\"value2\"\\} \\}."];permissions:PermissionList.toption[@ocaml.doc"The configuration of events or requests that the application has access to."];isService:Boolean.toption[@ocaml.doc"Indicates whether the application is a service."];initializationTimeout:InitializationTimeout.toption[@ocaml.doc"The maximum time in milliseconds allowed to establish a connection with the workspace."];applicationConfig:ApplicationConfig.toption[@ocaml.doc"The configuration settings for the application."];iframeConfig:IframeConfig.toption[@ocaml.doc"The iframe configuration for the application."];applicationType:ApplicationType.toption[@ocaml.doc"The type of application."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?id->fun?name->fun?namespace->fun?description->fun?applicationSourceConfig->fun?subscriptions->fun?publications->fun?createdTime->fun?lastModifiedTime->fun?tags->fun?permissions->fun?isService->fun?initializationTimeout->fun?applicationConfig->fun?iframeConfig->fun?applicationType->fun()->{arn;id;name;namespace;description;applicationSourceConfig;subscriptions;publications;createdTime;lastModifiedTime;tags;permissions;isService;initializationTimeout;applicationConfig;iframeConfig;applicationType}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:Arn.to_value));("Id",(Option.mapx.id~f:UUID.to_value));("Name",(Option.mapx.name~f:ApplicationName.to_value));("Namespace",(Option.mapx.namespace~f:ApplicationNamespace.to_value));("Description",(Option.mapx.description~f:Description.to_value));("ApplicationSourceConfig",(Option.mapx.applicationSourceConfig~f:ApplicationSourceConfig.to_value));("Subscriptions",(Option.mapx.subscriptions~f:SubscriptionList.to_value));("Publications",(Option.mapx.publications~f:PublicationList.to_value));("CreatedTime",(Option.mapx.createdTime~f:Timestamp.to_value));("LastModifiedTime",(Option.mapx.lastModifiedTime~f:Timestamp.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value));("Permissions",(Option.mapx.permissions~f:PermissionList.to_value));("IsService",(Option.mapx.isService~f:Boolean.to_value));("InitializationTimeout",(Option.mapx.initializationTimeout~f:InitializationTimeout.to_value));("ApplicationConfig",(Option.mapx.applicationConfig~f:ApplicationConfig.to_value));("IframeConfig",(Option.mapx.iframeConfig~f:IframeConfig.to_value));("ApplicationType",(Option.mapx.applicationType~f:ApplicationType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapplicationType=(Option.map~f:ApplicationType.of_xml)(Xml.childxml_arg0"ApplicationType")inletiframeConfig=(Option.map~f:IframeConfig.of_xml)(Xml.childxml_arg0"IframeConfig")inletapplicationConfig=(Option.map~f:ApplicationConfig.of_xml)(Xml.childxml_arg0"ApplicationConfig")inletinitializationTimeout=(Option.map~f:InitializationTimeout.of_xml)(Xml.childxml_arg0"InitializationTimeout")inletisService=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"IsService")inletpermissions=(Option.map~f:PermissionList.of_xml)(Xml.childxml_arg0"Permissions")inlettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletlastModifiedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastModifiedTime")inletcreatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreatedTime")inletpublications=(Option.map~f:PublicationList.of_xml)(Xml.childxml_arg0"Publications")inletsubscriptions=(Option.map~f:SubscriptionList.of_xml)(Xml.childxml_arg0"Subscriptions")inletapplicationSourceConfig=(Option.map~f:ApplicationSourceConfig.of_xml)(Xml.childxml_arg0"ApplicationSourceConfig")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"Description")inletnamespace=(Option.map~f:ApplicationNamespace.of_xml)(Xml.childxml_arg0"Namespace")inletname=(Option.map~f:ApplicationName.of_xml)(Xml.childxml_arg0"Name")inletid=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"Id")inletarn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"Arn")inmake?applicationType?iframeConfig?applicationConfig?initializationTimeout?isService?permissions?tags?lastModifiedTime?createdTime?publications?subscriptions?applicationSourceConfig?description?namespace?name?id?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapplicationType=field_mapjson__"ApplicationType"ApplicationType.of_jsoninletiframeConfig=field_mapjson__"IframeConfig"IframeConfig.of_jsoninletapplicationConfig=field_mapjson__"ApplicationConfig"ApplicationConfig.of_jsoninletinitializationTimeout=field_mapjson__"InitializationTimeout"InitializationTimeout.of_jsoninletisService=field_mapjson__"IsService"Boolean.of_jsoninletpermissions=field_mapjson__"Permissions"PermissionList.of_jsoninlettags=field_mapjson__"Tags"TagMap.of_jsoninletlastModifiedTime=field_mapjson__"LastModifiedTime"Timestamp.of_jsoninletcreatedTime=field_mapjson__"CreatedTime"Timestamp.of_jsoninletpublications=field_mapjson__"Publications"PublicationList.of_jsoninletsubscriptions=field_mapjson__"Subscriptions"SubscriptionList.of_jsoninletapplicationSourceConfig=field_mapjson__"ApplicationSourceConfig"ApplicationSourceConfig.of_jsoninletdescription=field_mapjson__"Description"Description.of_jsoninletnamespace=field_mapjson__"Namespace"ApplicationNamespace.of_jsoninletname=field_mapjson__"Name"ApplicationName.of_jsoninletid=field_mapjson__"Id"UUID.of_jsoninletarn=field_mapjson__"Arn"Arn.of_jsoninmake?applicationType?iframeConfig?applicationConfig?initializationTimeout?isService?permissions?tags?lastModifiedTime?createdTime?publications?subscriptions?applicationSourceConfig?description?namespace?name?id?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Get an Application resource."]moduleGetApplicationRequest=structtypenonrect={arn:ArnOrUUID.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Application."]}letcontext_="GetApplicationRequest"letmake~arn=fun()->{arn}letto_valuex=structure_to_value[("ApplicationIdentifier",(Some(ArnOrUUID.to_valuex.arn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=ArnOrUUID.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationIdentifier")inmake~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_map_exnjson__"Arn"ArnOrUUID.of_jsoninmake~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Get an Application resource."]moduleDeleteEventIntegrationResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified existing event integration. If the event integration is associated with clients, the request is rejected."]moduleDeleteEventIntegrationRequest=structtypenonrect={name:Name.t[@ocaml.doc"The name of the event integration."]}letcontext_="DeleteEventIntegrationRequest"letmake~name=fun()->{name}letto_valuex=structure_to_value[("Name",(Some(Name.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=Name.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"Name"Name.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified existing event integration. If the event integration is associated with clients, the request is rejected."]moduleDeleteDataIntegrationResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the DataIntegration. Only DataIntegrations that don't have any DataIntegrationAssociations can be deleted. Deleting a DataIntegration also deletes the underlying Amazon AppFlow flow and service linked role. You cannot create a DataIntegration association for a DataIntegration that has been previously associated. Use a different DataIntegration, or recreate the DataIntegration using the CreateDataIntegration API."]moduleDeleteDataIntegrationRequest=structtypenonrect={dataIntegrationIdentifier:Identifier.t[@ocaml.doc"A unique identifier for the DataIntegration."]}letcontext_="DeleteDataIntegrationRequest"letmake~dataIntegrationIdentifier=fun()->{dataIntegrationIdentifier}letto_valuex=structure_to_value[("Identifier",(Some(Identifier.to_valuex.dataIntegrationIdentifier)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataIntegrationIdentifier=Identifier.of_xml(Xml.child_exn~context:context_xml_arg0"Identifier")inmake~dataIntegrationIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataIntegrationIdentifier=field_map_exnjson__"DataIntegrationIdentifier"Identifier.of_jsoninmake~dataIntegrationIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the DataIntegration. Only DataIntegrations that don't have any DataIntegrationAssociations can be deleted. Deleting a DataIntegration also deletes the underlying Amazon AppFlow flow and service linked role. You cannot create a DataIntegration association for a DataIntegration that has been previously associated. Use a different DataIntegration, or recreate the DataIntegration using the CreateDataIntegration API."]moduleDeleteApplicationResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the Application. Only Applications that don't have any Application Associations can be deleted."]moduleDeleteApplicationRequest=structtypenonrect={arn:ArnOrUUID.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Application."]}letcontext_="DeleteApplicationRequest"letmake~arn=fun()->{arn}letto_valuex=structure_to_value[("ApplicationIdentifier",(Some(ArnOrUUID.to_valuex.arn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=ArnOrUUID.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationIdentifier")inmake~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_map_exnjson__"Arn"ArnOrUUID.of_jsoninmake~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the Application. Only Applications that don't have any Application Associations can be deleted."]moduleCreateEventIntegrationResponse=structtypenonrect={eventIntegrationArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the event integration."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DuplicateResourceExceptionofDuplicateResourceException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceQuotaExceededExceptionofResourceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?eventIntegrationArn=fun()->{eventIntegrationArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DuplicateResourceException"->`DuplicateResourceException(DuplicateResourceException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceQuotaExceededException"->`ResourceQuotaExceededException(ResourceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DuplicateResourceException"->`DuplicateResourceException(DuplicateResourceException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceQuotaExceededException"->`ResourceQuotaExceededException(ResourceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DuplicateResourceExceptione->`Assoc[("error",(`String"DuplicateResourceException"));("details",(DuplicateResourceException.to_jsone))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceQuotaExceededExceptione->`Assoc[("error",(`String"ResourceQuotaExceededException"));("details",(ResourceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("EventIntegrationArn",(Option.mapx.eventIntegrationArn~f:Arn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteventIntegrationArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"EventIntegrationArn")inmake?eventIntegrationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteventIntegrationArn=field_mapjson__"EventIntegrationArn"Arn.of_jsoninmake?eventIntegrationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an EventIntegration, given a specified name, description, and a reference to an Amazon EventBridge bus in your account and a partner event source that pushes events to that bus. No objects are created in the your account, only metadata that is persisted on the EventIntegration control plane."]moduleCreateEventIntegrationRequest=structtypenonrect={name:Name.t[@ocaml.doc"The name of the event integration."];description:Description.toption[@ocaml.doc"The description of the event integration."];eventFilter:EventFilter.t[@ocaml.doc"The event filter."];eventBridgeBus:EventBridgeBus.t[@ocaml.doc"The EventBridge bus."];clientToken:IdempotencyToken.toption[@ocaml.doc"A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs."];tags:TagMap.toption[@ocaml.doc"The tags used to organize, track, or control access for this resource. For example, \\{ \"tags\": \\{\"key1\":\"value1\", \"key2\":\"value2\"\\} \\}."]}letcontext_="CreateEventIntegrationRequest"letmake?description=fun?clientToken->fun?tags->fun~name->fun~eventFilter->fun~eventBridgeBus->fun()->{description;clientToken;tags;name;eventFilter;eventBridgeBus}letto_valuex=structure_to_value[("Name",(Some(Name.to_valuex.name)));("Description",(Option.mapx.description~f:Description.to_value));("EventFilter",(Some(EventFilter.to_valuex.eventFilter)));("EventBridgeBus",(Some(EventBridgeBus.to_valuex.eventBridgeBus)));("ClientToken",(Option.mapx.clientToken~f:IdempotencyToken.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletclientToken=(Option.map~f:IdempotencyToken.of_xml)(Xml.childxml_arg0"ClientToken")inleteventBridgeBus=EventBridgeBus.of_xml(Xml.child_exn~context:context_xml_arg0"EventBridgeBus")inleteventFilter=EventFilter.of_xml(Xml.child_exn~context:context_xml_arg0"EventFilter")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"Description")inletname=Name.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?tags?clientToken~eventBridgeBus~eventFilter?description~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagMap.of_jsoninletclientToken=field_mapjson__"ClientToken"IdempotencyToken.of_jsoninleteventBridgeBus=field_map_exnjson__"EventBridgeBus"EventBridgeBus.of_jsoninleteventFilter=field_map_exnjson__"EventFilter"EventFilter.of_jsoninletdescription=field_mapjson__"Description"Description.of_jsoninletname=field_map_exnjson__"Name"Name.of_jsoninmake?tags?clientToken~eventBridgeBus~eventFilter?description~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an EventIntegration, given a specified name, description, and a reference to an Amazon EventBridge bus in your account and a partner event source that pushes events to that bus. No objects are created in the your account, only metadata that is persisted on the EventIntegration control plane."]moduleCreateDataIntegrationResponse=structtypenonrect={arn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN)"];id:UUID.toption[@ocaml.doc"A unique identifier."];name:Name.toption[@ocaml.doc"The name of the DataIntegration."];description:Description.toption[@ocaml.doc"A description of the DataIntegration."];kmsKey:NonBlankString.toption[@ocaml.doc"The KMS key ARN for the DataIntegration."];sourceURI:SourceURI.toption[@ocaml.doc"The URI of the data source."];scheduleConfiguration:ScheduleConfiguration.toption[@ocaml.doc"The name of the data and how often it should be pulled from the source."];tags:TagMap.toption[@ocaml.doc"The tags used to organize, track, or control access for this resource. For example, \\{ \"tags\": \\{\"key1\":\"value1\", \"key2\":\"value2\"\\} \\}."];clientToken:IdempotencyToken.toption[@ocaml.doc"A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs."];fileConfiguration:FileConfiguration.toption[@ocaml.doc"The configuration for what files should be pulled from the source."];objectConfiguration:ObjectConfiguration.toption[@ocaml.doc"The configuration for what data should be pulled from the source."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DuplicateResourceExceptionofDuplicateResourceException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceQuotaExceededExceptionofResourceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?id->fun?name->fun?description->fun?kmsKey->fun?sourceURI->fun?scheduleConfiguration->fun?tags->fun?clientToken->fun?fileConfiguration->fun?objectConfiguration->fun()->{arn;id;name;description;kmsKey;sourceURI;scheduleConfiguration;tags;clientToken;fileConfiguration;objectConfiguration}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DuplicateResourceException"->`DuplicateResourceException(DuplicateResourceException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceQuotaExceededException"->`ResourceQuotaExceededException(ResourceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DuplicateResourceException"->`DuplicateResourceException(DuplicateResourceException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceQuotaExceededException"->`ResourceQuotaExceededException(ResourceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DuplicateResourceExceptione->`Assoc[("error",(`String"DuplicateResourceException"));("details",(DuplicateResourceException.to_jsone))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceQuotaExceededExceptione->`Assoc[("error",(`String"ResourceQuotaExceededException"));("details",(ResourceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.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:Arn.to_value));("Id",(Option.mapx.id~f:UUID.to_value));("Name",(Option.mapx.name~f:Name.to_value));("Description",(Option.mapx.description~f:Description.to_value));("KmsKey",(Option.mapx.kmsKey~f:NonBlankString.to_value));("SourceURI",(Option.mapx.sourceURI~f:SourceURI.to_value));("ScheduleConfiguration",(Option.mapx.scheduleConfiguration~f:ScheduleConfiguration.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value));("ClientToken",(Option.mapx.clientToken~f:IdempotencyToken.to_value));("FileConfiguration",(Option.mapx.fileConfiguration~f:FileConfiguration.to_value));("ObjectConfiguration",(Option.mapx.objectConfiguration~f:ObjectConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letobjectConfiguration=(Option.map~f:ObjectConfiguration.of_xml)(Xml.childxml_arg0"ObjectConfiguration")inletfileConfiguration=(Option.map~f:FileConfiguration.of_xml)(Xml.childxml_arg0"FileConfiguration")inletclientToken=(Option.map~f:IdempotencyToken.of_xml)(Xml.childxml_arg0"ClientToken")inlettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletscheduleConfiguration=(Option.map~f:ScheduleConfiguration.of_xml)(Xml.childxml_arg0"ScheduleConfiguration")inletsourceURI=(Option.map~f:SourceURI.of_xml)(Xml.childxml_arg0"SourceURI")inletkmsKey=(Option.map~f:NonBlankString.of_xml)(Xml.childxml_arg0"KmsKey")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"Description")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"Name")inletid=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"Id")inletarn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"Arn")inmake?objectConfiguration?fileConfiguration?clientToken?tags?scheduleConfiguration?sourceURI?kmsKey?description?name?id?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letobjectConfiguration=field_mapjson__"ObjectConfiguration"ObjectConfiguration.of_jsoninletfileConfiguration=field_mapjson__"FileConfiguration"FileConfiguration.of_jsoninletclientToken=field_mapjson__"ClientToken"IdempotencyToken.of_jsoninlettags=field_mapjson__"Tags"TagMap.of_jsoninletscheduleConfiguration=field_mapjson__"ScheduleConfiguration"ScheduleConfiguration.of_jsoninletsourceURI=field_mapjson__"SourceURI"SourceURI.of_jsoninletkmsKey=field_mapjson__"KmsKey"NonBlankString.of_jsoninletdescription=field_mapjson__"Description"Description.of_jsoninletname=field_mapjson__"Name"Name.of_jsoninletid=field_mapjson__"Id"UUID.of_jsoninletarn=field_mapjson__"Arn"Arn.of_jsoninmake?objectConfiguration?fileConfiguration?clientToken?tags?scheduleConfiguration?sourceURI?kmsKey?description?name?id?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates and persists a DataIntegration resource. You cannot create a DataIntegration association for a DataIntegration that has been previously associated. Use a different DataIntegration, or recreate the DataIntegration using the CreateDataIntegration API."]moduleCreateDataIntegrationRequest=structtypenonrect={name:Name.t[@ocaml.doc"The name of the DataIntegration."];description:Description.toption[@ocaml.doc"A description of the DataIntegration."];kmsKey:NonBlankString.t[@ocaml.doc"The KMS key ARN for the DataIntegration."];sourceURI:SourceURI.toption[@ocaml.doc"The URI of the data source."];scheduleConfig:ScheduleConfiguration.toption[@ocaml.doc"The name of the data and how often it should be pulled from the source."];tags:TagMap.toption[@ocaml.doc"The tags used to organize, track, or control access for this resource. For example, \\{ \"tags\": \\{\"key1\":\"value1\", \"key2\":\"value2\"\\} \\}."];clientToken:IdempotencyToken.toption[@ocaml.doc"A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs."];fileConfiguration:FileConfiguration.toption[@ocaml.doc"The configuration for what files should be pulled from the source."];objectConfiguration:ObjectConfiguration.toption[@ocaml.doc"The configuration for what data should be pulled from the source."]}letcontext_="CreateDataIntegrationRequest"letmake?description=fun?sourceURI->fun?scheduleConfig->fun?tags->fun?clientToken->fun?fileConfiguration->fun?objectConfiguration->fun~name->fun~kmsKey->fun()->{description;sourceURI;scheduleConfig;tags;clientToken;fileConfiguration;objectConfiguration;name;kmsKey}letto_valuex=structure_to_value[("Name",(Some(Name.to_valuex.name)));("Description",(Option.mapx.description~f:Description.to_value));("KmsKey",(Some(NonBlankString.to_valuex.kmsKey)));("SourceURI",(Option.mapx.sourceURI~f:SourceURI.to_value));("ScheduleConfig",(Option.mapx.scheduleConfig~f:ScheduleConfiguration.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value));("ClientToken",(Option.mapx.clientToken~f:IdempotencyToken.to_value));("FileConfiguration",(Option.mapx.fileConfiguration~f:FileConfiguration.to_value));("ObjectConfiguration",(Option.mapx.objectConfiguration~f:ObjectConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letobjectConfiguration=(Option.map~f:ObjectConfiguration.of_xml)(Xml.childxml_arg0"ObjectConfiguration")inletfileConfiguration=(Option.map~f:FileConfiguration.of_xml)(Xml.childxml_arg0"FileConfiguration")inletclientToken=(Option.map~f:IdempotencyToken.of_xml)(Xml.childxml_arg0"ClientToken")inlettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletscheduleConfig=(Option.map~f:ScheduleConfiguration.of_xml)(Xml.childxml_arg0"ScheduleConfig")inletsourceURI=(Option.map~f:SourceURI.of_xml)(Xml.childxml_arg0"SourceURI")inletkmsKey=NonBlankString.of_xml(Xml.child_exn~context:context_xml_arg0"KmsKey")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"Description")inletname=Name.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?objectConfiguration?fileConfiguration?clientToken?tags?scheduleConfig?sourceURI~kmsKey?description~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letobjectConfiguration=field_mapjson__"ObjectConfiguration"ObjectConfiguration.of_jsoninletfileConfiguration=field_mapjson__"FileConfiguration"FileConfiguration.of_jsoninletclientToken=field_mapjson__"ClientToken"IdempotencyToken.of_jsoninlettags=field_mapjson__"Tags"TagMap.of_jsoninletscheduleConfig=field_mapjson__"ScheduleConfig"ScheduleConfiguration.of_jsoninletsourceURI=field_mapjson__"SourceURI"SourceURI.of_jsoninletkmsKey=field_map_exnjson__"KmsKey"NonBlankString.of_jsoninletdescription=field_mapjson__"Description"Description.of_jsoninletname=field_map_exnjson__"Name"Name.of_jsoninmake?objectConfiguration?fileConfiguration?clientToken?tags?scheduleConfig?sourceURI~kmsKey?description~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates and persists a DataIntegration resource. You cannot create a DataIntegration association for a DataIntegration that has been previously associated. Use a different DataIntegration, or recreate the DataIntegration using the CreateDataIntegration API."]moduleCreateDataIntegrationAssociationResponse=structtypenonrect={dataIntegrationAssociationId:UUID.toption[@ocaml.doc"A unique identifier. for the DataIntegrationAssociation."];dataIntegrationArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) for the DataIntegration."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ResourceQuotaExceededExceptionofResourceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?dataIntegrationAssociationId=fun?dataIntegrationArn->fun()->{dataIntegrationAssociationId;dataIntegrationArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ResourceQuotaExceededException"->`ResourceQuotaExceededException(ResourceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ResourceQuotaExceededException"->`ResourceQuotaExceededException(ResourceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ResourceQuotaExceededExceptione->`Assoc[("error",(`String"ResourceQuotaExceededException"));("details",(ResourceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("DataIntegrationAssociationId",(Option.mapx.dataIntegrationAssociationId~f:UUID.to_value));("DataIntegrationArn",(Option.mapx.dataIntegrationArn~f:Arn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataIntegrationArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"DataIntegrationArn")inletdataIntegrationAssociationId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"DataIntegrationAssociationId")inmake?dataIntegrationArn?dataIntegrationAssociationId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataIntegrationArn=field_mapjson__"DataIntegrationArn"Arn.of_jsoninletdataIntegrationAssociationId=field_mapjson__"DataIntegrationAssociationId"UUID.of_jsoninmake?dataIntegrationArn?dataIntegrationAssociationId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates and persists a DataIntegrationAssociation resource."]moduleCreateDataIntegrationAssociationRequest=structtypenonrect={dataIntegrationIdentifier:Identifier.t[@ocaml.doc"A unique identifier for the DataIntegration."];clientId:ClientId.toption[@ocaml.doc"The identifier for the client that is associated with the DataIntegration association."];objectConfiguration:ObjectConfiguration.toption;destinationURI:DestinationURI.toption[@ocaml.doc"The URI of the data destination."];clientAssociationMetadata:ClientAssociationMetadata.toption[@ocaml.doc"The mapping of metadata to be extracted from the data."];clientToken:IdempotencyToken.toption[@ocaml.doc"A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs."];executionConfiguration:ExecutionConfiguration.toption[@ocaml.doc"The configuration for how the files should be pulled from the source."]}letcontext_="CreateDataIntegrationAssociationRequest"letmake?clientId=fun?objectConfiguration->fun?destinationURI->fun?clientAssociationMetadata->fun?clientToken->fun?executionConfiguration->fun~dataIntegrationIdentifier->fun()->{clientId;objectConfiguration;destinationURI;clientAssociationMetadata;clientToken;executionConfiguration;dataIntegrationIdentifier}letto_valuex=structure_to_value[("Identifier",(Some(Identifier.to_valuex.dataIntegrationIdentifier)));("ClientId",(Option.mapx.clientId~f:ClientId.to_value));("ObjectConfiguration",(Option.mapx.objectConfiguration~f:ObjectConfiguration.to_value));("DestinationURI",(Option.mapx.destinationURI~f:DestinationURI.to_value));("ClientAssociationMetadata",(Option.mapx.clientAssociationMetadata~f:ClientAssociationMetadata.to_value));("ClientToken",(Option.mapx.clientToken~f:IdempotencyToken.to_value));("ExecutionConfiguration",(Option.mapx.executionConfiguration~f:ExecutionConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexecutionConfiguration=(Option.map~f:ExecutionConfiguration.of_xml)(Xml.childxml_arg0"ExecutionConfiguration")inletclientToken=(Option.map~f:IdempotencyToken.of_xml)(Xml.childxml_arg0"ClientToken")inletclientAssociationMetadata=(Option.map~f:ClientAssociationMetadata.of_xml)(Xml.childxml_arg0"ClientAssociationMetadata")inletdestinationURI=(Option.map~f:DestinationURI.of_xml)(Xml.childxml_arg0"DestinationURI")inletobjectConfiguration=(Option.map~f:ObjectConfiguration.of_xml)(Xml.childxml_arg0"ObjectConfiguration")inletclientId=(Option.map~f:ClientId.of_xml)(Xml.childxml_arg0"ClientId")inletdataIntegrationIdentifier=Identifier.of_xml(Xml.child_exn~context:context_xml_arg0"Identifier")inmake?executionConfiguration?clientToken?clientAssociationMetadata?destinationURI?objectConfiguration?clientId~dataIntegrationIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexecutionConfiguration=field_mapjson__"ExecutionConfiguration"ExecutionConfiguration.of_jsoninletclientToken=field_mapjson__"ClientToken"IdempotencyToken.of_jsoninletclientAssociationMetadata=field_mapjson__"ClientAssociationMetadata"ClientAssociationMetadata.of_jsoninletdestinationURI=field_mapjson__"DestinationURI"DestinationURI.of_jsoninletobjectConfiguration=field_mapjson__"ObjectConfiguration"ObjectConfiguration.of_jsoninletclientId=field_mapjson__"ClientId"ClientId.of_jsoninletdataIntegrationIdentifier=field_map_exnjson__"DataIntegrationIdentifier"Identifier.of_jsoninmake?executionConfiguration?clientToken?clientAssociationMetadata?destinationURI?objectConfiguration?clientId~dataIntegrationIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates and persists a DataIntegrationAssociation resource."]moduleCreateApplicationResponse=structtypenonrect={arn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Application."];id:UUID.toption[@ocaml.doc"A unique identifier for the Application."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DuplicateResourceExceptionofDuplicateResourceException.t|`InternalServiceErrorofInternalServiceError.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceQuotaExceededExceptionofResourceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`UnsupportedOperationExceptionofUnsupportedOperationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?id->fun()->{arn;id}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DuplicateResourceException"->`DuplicateResourceException(DuplicateResourceException.of_jsonjson)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceQuotaExceededException"->`ResourceQuotaExceededException(ResourceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DuplicateResourceException"->`DuplicateResourceException(DuplicateResourceException.of_xmlxml)|"InternalServiceError"->`InternalServiceError(InternalServiceError.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceQuotaExceededException"->`ResourceQuotaExceededException(ResourceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.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))]|`DuplicateResourceExceptione->`Assoc[("error",(`String"DuplicateResourceException"));("details",(DuplicateResourceException.to_jsone))]|`InternalServiceErrore->`Assoc[("error",(`String"InternalServiceError"));("details",(InternalServiceError.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceQuotaExceededExceptione->`Assoc[("error",(`String"ResourceQuotaExceededException"));("details",(ResourceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`UnsupportedOperationExceptione->`Assoc[("error",(`String"UnsupportedOperationException"));("details",(UnsupportedOperationException.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:Arn.to_value));("Id",(Option.mapx.id~f:UUID.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"Id")inletarn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"Arn")inmake?id?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_mapjson__"Id"UUID.of_jsoninletarn=field_mapjson__"Arn"Arn.of_jsoninmake?id?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates and persists an Application resource."]moduleCreateApplicationRequest=structtypenonrect={name:ApplicationName.t[@ocaml.doc"The name of the application."];namespace:ApplicationNamespace.t[@ocaml.doc"The namespace of the application."];description:Description.toption[@ocaml.doc"The description of the application."];applicationSourceConfig:ApplicationSourceConfig.t[@ocaml.doc"The configuration for where the application should be loaded from."];subscriptions:SubscriptionList.toption[@ocaml.doc"The events that the application subscribes."];publications:PublicationList.toption[@ocaml.doc"The events that the application publishes."];clientToken:IdempotencyToken.toption[@ocaml.doc"A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs."];tags:TagMap.toption[@ocaml.doc"The tags used to organize, track, or control access for this resource. For example, \\{ \"tags\": \\{\"key1\":\"value1\", \"key2\":\"value2\"\\} \\}."];permissions:PermissionList.toption[@ocaml.doc"The configuration of events or requests that the application has access to."];isService:Boolean.toption[@ocaml.doc"Indicates whether the application is a service."];initializationTimeout:InitializationTimeout.toption[@ocaml.doc"The maximum time in milliseconds allowed to establish a connection with the workspace."];applicationConfig:ApplicationConfig.toption[@ocaml.doc"The configuration settings for the application."];iframeConfig:IframeConfig.toption[@ocaml.doc"The iframe configuration for the application."];applicationType:ApplicationType.toption[@ocaml.doc"The type of application."]}letcontext_="CreateApplicationRequest"letmake?description=fun?subscriptions->fun?publications->fun?clientToken->fun?tags->fun?permissions->fun?isService->fun?initializationTimeout->fun?applicationConfig->fun?iframeConfig->fun?applicationType->fun~name->fun~namespace->fun~applicationSourceConfig->fun()->{description;subscriptions;publications;clientToken;tags;permissions;isService;initializationTimeout;applicationConfig;iframeConfig;applicationType;name;namespace;applicationSourceConfig}letto_valuex=structure_to_value[("Name",(Some(ApplicationName.to_valuex.name)));("Namespace",(Some(ApplicationNamespace.to_valuex.namespace)));("Description",(Option.mapx.description~f:Description.to_value));("ApplicationSourceConfig",(Some(ApplicationSourceConfig.to_valuex.applicationSourceConfig)));("Subscriptions",(Option.mapx.subscriptions~f:SubscriptionList.to_value));("Publications",(Option.mapx.publications~f:PublicationList.to_value));("ClientToken",(Option.mapx.clientToken~f:IdempotencyToken.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value));("Permissions",(Option.mapx.permissions~f:PermissionList.to_value));("IsService",(Option.mapx.isService~f:Boolean.to_value));("InitializationTimeout",(Option.mapx.initializationTimeout~f:InitializationTimeout.to_value));("ApplicationConfig",(Option.mapx.applicationConfig~f:ApplicationConfig.to_value));("IframeConfig",(Option.mapx.iframeConfig~f:IframeConfig.to_value));("ApplicationType",(Option.mapx.applicationType~f:ApplicationType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapplicationType=(Option.map~f:ApplicationType.of_xml)(Xml.childxml_arg0"ApplicationType")inletiframeConfig=(Option.map~f:IframeConfig.of_xml)(Xml.childxml_arg0"IframeConfig")inletapplicationConfig=(Option.map~f:ApplicationConfig.of_xml)(Xml.childxml_arg0"ApplicationConfig")inletinitializationTimeout=(Option.map~f:InitializationTimeout.of_xml)(Xml.childxml_arg0"InitializationTimeout")inletisService=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"IsService")inletpermissions=(Option.map~f:PermissionList.of_xml)(Xml.childxml_arg0"Permissions")inlettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletclientToken=(Option.map~f:IdempotencyToken.of_xml)(Xml.childxml_arg0"ClientToken")inletpublications=(Option.map~f:PublicationList.of_xml)(Xml.childxml_arg0"Publications")inletsubscriptions=(Option.map~f:SubscriptionList.of_xml)(Xml.childxml_arg0"Subscriptions")inletapplicationSourceConfig=ApplicationSourceConfig.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationSourceConfig")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"Description")inletnamespace=ApplicationNamespace.of_xml(Xml.child_exn~context:context_xml_arg0"Namespace")inletname=ApplicationName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?applicationType?iframeConfig?applicationConfig?initializationTimeout?isService?permissions?tags?clientToken?publications?subscriptions~applicationSourceConfig?description~namespace~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapplicationType=field_mapjson__"ApplicationType"ApplicationType.of_jsoninletiframeConfig=field_mapjson__"IframeConfig"IframeConfig.of_jsoninletapplicationConfig=field_mapjson__"ApplicationConfig"ApplicationConfig.of_jsoninletinitializationTimeout=field_mapjson__"InitializationTimeout"InitializationTimeout.of_jsoninletisService=field_mapjson__"IsService"Boolean.of_jsoninletpermissions=field_mapjson__"Permissions"PermissionList.of_jsoninlettags=field_mapjson__"Tags"TagMap.of_jsoninletclientToken=field_mapjson__"ClientToken"IdempotencyToken.of_jsoninletpublications=field_mapjson__"Publications"PublicationList.of_jsoninletsubscriptions=field_mapjson__"Subscriptions"SubscriptionList.of_jsoninletapplicationSourceConfig=field_map_exnjson__"ApplicationSourceConfig"ApplicationSourceConfig.of_jsoninletdescription=field_mapjson__"Description"Description.of_jsoninletnamespace=field_map_exnjson__"Namespace"ApplicationNamespace.of_jsoninletname=field_map_exnjson__"Name"ApplicationName.of_jsoninmake?applicationType?iframeConfig?applicationConfig?initializationTimeout?isService?permissions?tags?clientToken?publications?subscriptions~applicationSourceConfig?description~namespace~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates and persists an Application resource."]