1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152(* 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.osisletapiVersion="2022-01-01"letendpointPrefix="osis"letserviceFullName="Amazon OpenSearch Ingestion"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[]))])moduleSecurityGroupId=structtypenonrect=stringletcontext_="SecurityGroupId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:11)>>=(fun()->(check_string_maxi~max:20)>>=(fun()->check_patterni~pattern:"sg-\\w{8}(\\w{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:"SecurityGroupId"jletto_json=simple_to_jsonto_valueendmoduleSubnetId=structtypenonrect=stringletcontext_="SubnetId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:15)>>=(fun()->(check_string_maxi~max:24)>>=(fun()->check_patterni~pattern:"subnet-\\w{8}(\\w{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:"SubnetId"jletto_json=simple_to_jsonto_valueendmoduleBoolean=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleCidrBlock=structtypenonrect=stringletcontext_="CidrBlock"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/24$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CidrBlock"jletto_json=simple_to_jsonto_valueendmoduleSecurityGroupIds=structtypenonrect=SecurityGroupId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:12)>>=(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:SecurityGroupId.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:SecurityGroupId.of_xml)letof_jsonj=list_of_json~kind:"SecurityGroupIds"~of_json:SecurityGroupId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSubnetIds=structtypenonrect=SubnetId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:12)>>=(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:SubnetId.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:SubnetId.of_xml)letof_jsonj=list_of_json~kind:"SubnetIds"~of_json:SubnetId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleVpcAttachmentOptions=structtypenonrect={attachToVpc:Boolean.t[@ocaml.doc"Whether a VPC is attached to the pipeline."];cidrBlock:CidrBlock.toption[@ocaml.doc"The CIDR block to be reserved for OpenSearch Ingestion to create elastic network interfaces (ENIs)."]}letcontext_="VpcAttachmentOptions"letmake?cidrBlock=fun~attachToVpc->fun()->{cidrBlock;attachToVpc}letto_valuex=structure_to_value[("AttachToVpc",(Some(Boolean.to_valuex.attachToVpc)));("CidrBlock",(Option.mapx.cidrBlock~f:CidrBlock.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcidrBlock=(Option.map~f:CidrBlock.of_xml)(Xml.childxml_arg0"CidrBlock")inletattachToVpc=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"AttachToVpc")inmake?cidrBlock~attachToVpc()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcidrBlock=field_mapjson__"CidrBlock"CidrBlock.of_jsoninletattachToVpc=field_map_exnjson__"AttachToVpc"Boolean.of_jsoninmake?cidrBlock~attachToVpc()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Options for attaching a VPC to pipeline."]moduleVpcEndpointManagement=structtypenonrect=|CUSTOMER|SERVICE|Non_static_idofstringletmakei=iletto_string=function|CUSTOMER->"CUSTOMER"|SERVICE->"SERVICE"|Non_static_ids->sletof_string=function|"CUSTOMER"->CUSTOMER|"SERVICE"->SERVICE|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 VpcEndpointManagement"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"VpcEndpointManagement"j)letto_json=simple_to_jsonto_valueendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(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:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:256)>>=(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:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleChangeProgressStageStatuses=structtypenonrect=|PENDING|IN_PROGRESS|COMPLETED|FAILED|Non_static_idofstringletmakei=iletto_string=function|PENDING->"PENDING"|IN_PROGRESS->"IN_PROGRESS"|COMPLETED->"COMPLETED"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"PENDING"->PENDING|"IN_PROGRESS"->IN_PROGRESS|"COMPLETED"->COMPLETED|"FAILED"->FAILED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ChangeProgressStageStatuses"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ChangeProgressStageStatuses"j)letto_json=simple_to_jsonto_valueendmoduleTimestamp=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleLogGroup=structtypenonrect=stringletcontext_="LogGroup"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:512)>>=(fun()->check_patterni~pattern:"\\/aws\\/vendedlogs\\/[\\.\\-_/#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:"LogGroup"jletto_json=simple_to_jsonto_valueendmoduleVpcEndpointServiceName=structtypenonrect=|OPENSEARCH_SERVERLESS|Non_static_idofstringletmakei=iletto_string=function|OPENSEARCH_SERVERLESS->"OPENSEARCH_SERVERLESS"|Non_static_ids->sletof_string=function|"OPENSEARCH_SERVERLESS"->OPENSEARCH_SERVERLESS|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 VpcEndpointServiceName"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"VpcEndpointServiceName"j)letto_json=simple_to_jsonto_valueendmoduleVpcOptions=structtypenonrect={subnetIds:SubnetIds.t[@ocaml.doc"A list of subnet IDs associated with the VPC endpoint."];securityGroupIds:SecurityGroupIds.toption[@ocaml.doc"A list of security groups associated with the VPC endpoint."];vpcAttachmentOptions:VpcAttachmentOptions.toption[@ocaml.doc"Options for attaching a VPC to a pipeline."];vpcEndpointManagement:VpcEndpointManagement.toption[@ocaml.doc"Defines whether you or Amazon OpenSearch Ingestion service create and manage the VPC endpoint configured for the pipeline."]}letcontext_="VpcOptions"letmake?securityGroupIds=fun?vpcAttachmentOptions->fun?vpcEndpointManagement->fun~subnetIds->fun()->{securityGroupIds;vpcAttachmentOptions;vpcEndpointManagement;subnetIds}letto_valuex=structure_to_value[("SubnetIds",(Some(SubnetIds.to_valuex.subnetIds)));("SecurityGroupIds",(Option.mapx.securityGroupIds~f:SecurityGroupIds.to_value));("VpcAttachmentOptions",(Option.mapx.vpcAttachmentOptions~f:VpcAttachmentOptions.to_value));("VpcEndpointManagement",(Option.mapx.vpcEndpointManagement~f:VpcEndpointManagement.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvpcEndpointManagement=(Option.map~f:VpcEndpointManagement.of_xml)(Xml.childxml_arg0"VpcEndpointManagement")inletvpcAttachmentOptions=(Option.map~f:VpcAttachmentOptions.of_xml)(Xml.childxml_arg0"VpcAttachmentOptions")inletsecurityGroupIds=(Option.map~f:SecurityGroupIds.of_xml)(Xml.childxml_arg0"SecurityGroupIds")inletsubnetIds=SubnetIds.of_xml(Xml.child_exn~context:context_xml_arg0"SubnetIds")inmake?vpcEndpointManagement?vpcAttachmentOptions?securityGroupIds~subnetIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvpcEndpointManagement=field_mapjson__"VpcEndpointManagement"VpcEndpointManagement.of_jsoninletvpcAttachmentOptions=field_mapjson__"VpcAttachmentOptions"VpcAttachmentOptions.of_jsoninletsecurityGroupIds=field_mapjson__"SecurityGroupIds"SecurityGroupIds.of_jsoninletsubnetIds=field_map_exnjson__"SubnetIds"SubnetIds.of_jsoninmake?vpcEndpointManagement?vpcAttachmentOptions?securityGroupIds~subnetIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Options that specify the subnets and security groups for an OpenSearch Ingestion VPC endpoint."]modulePipelineDestination=structtypenonrect={serviceName:String_.toption[@ocaml.doc"The name of the service receiving data from the pipeline."];endpoint:String_.toption[@ocaml.doc"The endpoint receiving data from the pipeline."]}letmake?serviceName=fun?endpoint->fun()->{serviceName;endpoint}letto_valuex=structure_to_value[("ServiceName",(Option.mapx.serviceName~f:String_.to_value));("Endpoint",(Option.mapx.endpoint~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendpoint=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Endpoint")inletserviceName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ServiceName")inmake?endpoint?serviceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendpoint=field_mapjson__"Endpoint"String_.of_jsoninletserviceName=field_mapjson__"ServiceName"String_.of_jsoninmake?endpoint?serviceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object representing the destination of a pipeline."]moduleTag=structtypenonrect={key:TagKey.t[@ocaml.doc"The tag key. Tag keys must be unique for the pipeline to which they are attached."];value:TagValue.t[@ocaml.doc"The value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key value pair in a tag set of project : Trinity and cost-center : Trinity"]}letcontext_="Tag"letmake~key=fun~value->fun()->{key;value}letto_valuex=structure_to_value[("Key",(Some(TagKey.to_valuex.key)));("Value",(Some(TagValue.to_valuex.value)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=TagValue.of_xml(Xml.child_exn~context:context_xml_arg0"Value")inletkey=TagKey.of_xml(Xml.child_exn~context:context_xml_arg0"Key")inmake~value~key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_map_exnjson__"Value"TagValue.of_jsoninletkey=field_map_exnjson__"Key"TagKey.of_jsoninmake~value~key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A tag (key-value pair) for an OpenSearch Ingestion pipeline."]moduleChangeProgressStage=structtypenonrect={name:String_.toption[@ocaml.doc"The name of the stage."];status:ChangeProgressStageStatuses.toption[@ocaml.doc"The current status of the stage that the change is in."];description:String_.toption[@ocaml.doc"A description of the stage."];lastUpdatedAt:Timestamp.toption[@ocaml.doc"The most recent updated timestamp of the stage."]}letmake?name=fun?status->fun?description->fun?lastUpdatedAt->fun()->{name;status;description;lastUpdatedAt}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:String_.to_value));("Status",(Option.mapx.status~f:ChangeProgressStageStatuses.to_value));("Description",(Option.mapx.description~f:String_.to_value));("LastUpdatedAt",(Option.mapx.lastUpdatedAt~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastUpdatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastUpdatedAt")inletdescription=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Description")inletstatus=(Option.map~f:ChangeProgressStageStatuses.of_xml)(Xml.childxml_arg0"Status")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Name")inmake?lastUpdatedAt?description?status?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastUpdatedAt=field_mapjson__"LastUpdatedAt"Timestamp.of_jsoninletdescription=field_mapjson__"Description"String_.of_jsoninletstatus=field_mapjson__"Status"ChangeProgressStageStatuses.of_jsoninletname=field_mapjson__"Name"String_.of_jsoninmake?lastUpdatedAt?description?status?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Progress details for a specific stage of a pipeline configuration change."]moduleKmsKeyArn=structtypenonrect=stringletcontext_="KmsKeyArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:7));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"KmsKeyArn"jletto_json=simple_to_jsonto_valueendmoduleCloudWatchLogDestination=structtypenonrect={logGroup:LogGroup.t[@ocaml.doc"The name of the CloudWatch Logs group to send pipeline logs to. You can specify an existing log group or create a new one. For example, /aws/vendedlogs/OpenSearchService/pipelines."]}letcontext_="CloudWatchLogDestination"letmake~logGroup=fun()->{logGroup}letto_valuex=structure_to_value[("LogGroup",(Some(LogGroup.to_valuex.logGroup)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlogGroup=LogGroup.of_xml(Xml.child_exn~context:context_xml_arg0"LogGroup")inmake~logGroup()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlogGroup=field_map_exnjson__"LogGroup"LogGroup.of_jsoninmake~logGroup()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch."]moduleServiceVpcEndpoint=structtypenonrect={serviceName:VpcEndpointServiceName.toption[@ocaml.doc"The name of the service for which a VPC endpoint was created."];vpcEndpointId:String_.toption[@ocaml.doc"The unique identifier of the VPC endpoint that was created."]}letmake?serviceName=fun?vpcEndpointId->fun()->{serviceName;vpcEndpointId}letto_valuex=structure_to_value[("ServiceName",(Option.mapx.serviceName~f:VpcEndpointServiceName.to_value));("VpcEndpointId",(Option.mapx.vpcEndpointId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvpcEndpointId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"VpcEndpointId")inletserviceName=(Option.map~f:VpcEndpointServiceName.of_xml)(Xml.childxml_arg0"ServiceName")inmake?vpcEndpointId?serviceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvpcEndpointId=field_mapjson__"VpcEndpointId"String_.of_jsoninletserviceName=field_mapjson__"ServiceName"VpcEndpointServiceName.of_jsoninmake?vpcEndpointId?serviceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A container for information about VPC endpoints that were created to other services"]moduleVpcEndpoint=structtypenonrect={vpcEndpointId:String_.toption[@ocaml.doc"The unique identifier of the endpoint."];vpcId:String_.toption[@ocaml.doc"The ID for your VPC. Amazon Web Services PrivateLink generates this value when you create a VPC."];vpcOptions:VpcOptions.toption[@ocaml.doc"Information about the VPC, including associated subnets and security groups."]}letmake?vpcEndpointId=fun?vpcId->fun?vpcOptions->fun()->{vpcEndpointId;vpcId;vpcOptions}letto_valuex=structure_to_value[("VpcEndpointId",(Option.mapx.vpcEndpointId~f:String_.to_value));("VpcId",(Option.mapx.vpcId~f:String_.to_value));("VpcOptions",(Option.mapx.vpcOptions~f:VpcOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvpcOptions=(Option.map~f:VpcOptions.of_xml)(Xml.childxml_arg0"VpcOptions")inletvpcId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"VpcId")inletvpcEndpointId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"VpcEndpointId")inmake?vpcOptions?vpcId?vpcEndpointId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvpcOptions=field_mapjson__"VpcOptions"VpcOptions.of_jsoninletvpcId=field_mapjson__"VpcId"String_.of_jsoninletvpcEndpointId=field_mapjson__"VpcEndpointId"String_.of_jsoninmake?vpcOptions?vpcId?vpcEndpointId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An OpenSearch Ingestion-managed VPC endpoint that will access one or more pipelines."]modulePipelineArn=structtypenonrect=stringletcontext_="PipelineArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:46)>>=(fun()->(check_string_maxi~max:76)>>=(fun()->check_patterni~pattern:"^arn:(aws|aws\\-cn|aws\\-us\\-gov|aws\\-iso|aws\\-iso\\-b):osis:.+:pipeline\\/.+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PipelineArn"jletto_json=simple_to_jsonto_valueendmodulePipelineDestinationList=structtypenonrect=PipelineDestination.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PipelineDestination.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:PipelineDestination.of_xml)letof_jsonj=list_of_json~kind:"PipelineDestinationList"~of_json:PipelineDestination.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePipelineName=structtypenonrect=stringletcontext_="PipelineName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:3)>>=(fun()->(check_string_maxi~max:28)>>=(fun()->check_patterni~pattern:"[a-z][a-z0-9\\-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PipelineName"jletto_json=simple_to_jsonto_valueendmodulePipelineStatus=structtypenonrect=|CREATING|ACTIVE|UPDATING|DELETING|CREATE_FAILED|UPDATE_FAILED|STARTING|START_FAILED|STOPPING|STOPPED|Non_static_idofstringletmakei=iletto_string=function|CREATING->"CREATING"|ACTIVE->"ACTIVE"|UPDATING->"UPDATING"|DELETING->"DELETING"|CREATE_FAILED->"CREATE_FAILED"|UPDATE_FAILED->"UPDATE_FAILED"|STARTING->"STARTING"|START_FAILED->"START_FAILED"|STOPPING->"STOPPING"|STOPPED->"STOPPED"|Non_static_ids->sletof_string=function|"CREATING"->CREATING|"ACTIVE"->ACTIVE|"UPDATING"->UPDATING|"DELETING"->DELETING|"CREATE_FAILED"->CREATE_FAILED|"UPDATE_FAILED"->UPDATE_FAILED|"STARTING"->STARTING|"START_FAILED"->START_FAILED|"STOPPING"->STOPPING|"STOPPED"->STOPPED|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 PipelineStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PipelineStatus"j)letto_json=simple_to_jsonto_valueendmodulePipelineStatusReason=structtypenonrect={description:String_.toption[@ocaml.doc"A description of why a pipeline has a certain status."]}letmake?description=fun()->{description}letto_valuex=structure_to_value[("Description",(Option.mapx.description~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdescription=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Description")inmake?description()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdescription=field_mapjson__"Description"String_.of_jsoninmake?description()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about a pipeline's current status."]modulePipelineUnits=structtypenonrect=intletmakei=letopenResultinok_or_failwith(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 PipelineUnits"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleTagList=structtypenonrect=Tag.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Tag.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Tag.of_xml)letof_jsonj=list_of_json~kind:"TagList"~of_json:Tag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePipelineEndpointId=structtypenonrect=stringletcontext_="PipelineEndpointId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:3)>>=(fun()->(check_string_maxi~max:512)>>=(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:"PipelineEndpointId"jletto_json=simple_to_jsonto_valueendmodulePipelineEndpointStatus=structtypenonrect=|CREATING|ACTIVE|CREATE_FAILED|DELETING|REVOKING|REVOKED|Non_static_idofstringletmakei=iletto_string=function|CREATING->"CREATING"|ACTIVE->"ACTIVE"|CREATE_FAILED->"CREATE_FAILED"|DELETING->"DELETING"|REVOKING->"REVOKING"|REVOKED->"REVOKED"|Non_static_ids->sletof_string=function|"CREATING"->CREATING|"ACTIVE"->ACTIVE|"CREATE_FAILED"->CREATE_FAILED|"DELETING"->DELETING|"REVOKING"->REVOKING|"REVOKED"->REVOKED|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 PipelineEndpointStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PipelineEndpointStatus"j)letto_json=simple_to_jsonto_valueendmodulePipelineEndpointVpcOptions=structtypenonrect={subnetIds:SubnetIds.toption[@ocaml.doc"A list of subnet IDs where the pipeline endpoint network interfaces are created."];securityGroupIds:SecurityGroupIds.toption[@ocaml.doc"A list of security group IDs that control network access to the pipeline endpoint."]}letmake?subnetIds=fun?securityGroupIds->fun()->{subnetIds;securityGroupIds}letto_valuex=structure_to_value[("SubnetIds",(Option.mapx.subnetIds~f:SubnetIds.to_value));("SecurityGroupIds",(Option.mapx.securityGroupIds~f:SecurityGroupIds.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsecurityGroupIds=(Option.map~f:SecurityGroupIds.of_xml)(Xml.childxml_arg0"SecurityGroupIds")inletsubnetIds=(Option.map~f:SubnetIds.of_xml)(Xml.childxml_arg0"SubnetIds")inmake?securityGroupIds?subnetIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsecurityGroupIds=field_mapjson__"SecurityGroupIds"SecurityGroupIds.of_jsoninletsubnetIds=field_mapjson__"SubnetIds"SubnetIds.of_jsoninmake?securityGroupIds?subnetIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration settings for the VPC endpoint, specifying network access controls."]moduleAwsAccountId=structtypenonrect=stringletcontext_="AwsAccountId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:12)>>=(fun()->(check_string_maxi~max:12)>>=(fun()->check_patterni~pattern:"^\\\\d{12}$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AwsAccountId"jletto_json=simple_to_jsonto_valueendmoduleChangeProgressStageList=structtypenonrect=ChangeProgressStage.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ChangeProgressStage.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:ChangeProgressStage.of_xml)letof_jsonj=list_of_json~kind:"ChangeProgressStageList"~of_json:ChangeProgressStage.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleChangeProgressStatuses=structtypenonrect=|PENDING|IN_PROGRESS|COMPLETED|FAILED|Non_static_idofstringletmakei=iletto_string=function|PENDING->"PENDING"|IN_PROGRESS->"IN_PROGRESS"|COMPLETED->"COMPLETED"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"PENDING"->PENDING|"IN_PROGRESS"->IN_PROGRESS|"COMPLETED"->COMPLETED|"FAILED"->FAILED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ChangeProgressStatuses"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ChangeProgressStatuses"j)letto_json=simple_to_jsonto_valueendmoduleInteger=structtypenonrect=intletmakei=iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for Integer"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleValidationMessage=structtypenonrect={message:String_.toption[@ocaml.doc"The validation message."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A validation message associated with a ValidatePipeline request in OpenSearch Ingestion."]moduleBufferOptions=structtypenonrect={persistentBufferEnabled:Boolean.t[@ocaml.doc"Whether persistent buffering should be enabled."]}letcontext_="BufferOptions"letmake~persistentBufferEnabled=fun()->{persistentBufferEnabled}letto_valuex=structure_to_value[("PersistentBufferEnabled",(Some(Boolean.to_valuex.persistentBufferEnabled)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpersistentBufferEnabled=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"PersistentBufferEnabled")inmake~persistentBufferEnabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpersistentBufferEnabled=field_map_exnjson__"PersistentBufferEnabled"Boolean.of_jsoninmake~persistentBufferEnabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Options that specify the configuration of a persistent buffer. To configure how OpenSearch Ingestion encrypts this data, set the EncryptionAtRestOptions. For more information, see Persistent buffering."]moduleEncryptionAtRestOptions=structtypenonrect={kmsKeyArn:KmsKeyArn.t[@ocaml.doc"The ARN of the KMS key used to encrypt buffer data. By default, data is encrypted using an Amazon Web Services owned key."]}letcontext_="EncryptionAtRestOptions"letmake~kmsKeyArn=fun()->{kmsKeyArn}letto_valuex=structure_to_value[("KmsKeyArn",(Some(KmsKeyArn.to_valuex.kmsKeyArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkmsKeyArn=KmsKeyArn.of_xml(Xml.child_exn~context:context_xml_arg0"KmsKeyArn")inmake~kmsKeyArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkmsKeyArn=field_map_exnjson__"KmsKeyArn"KmsKeyArn.of_jsoninmake~kmsKeyArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Options to control how OpenSearch encrypts buffer data."]moduleIngestEndpointUrlsList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"IngestEndpointUrlsList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLogPublishingOptions=structtypenonrect={isLoggingEnabled:Boolean.toption[@ocaml.doc"Whether logs should be published."];cloudWatchLogDestination:CloudWatchLogDestination.toption[@ocaml.doc"The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs. This parameter is required if IsLoggingEnabled is set to true."]}letmake?isLoggingEnabled=fun?cloudWatchLogDestination->fun()->{isLoggingEnabled;cloudWatchLogDestination}letto_valuex=structure_to_value[("IsLoggingEnabled",(Option.mapx.isLoggingEnabled~f:Boolean.to_value));("CloudWatchLogDestination",(Option.mapx.cloudWatchLogDestination~f:CloudWatchLogDestination.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcloudWatchLogDestination=(Option.map~f:CloudWatchLogDestination.of_xml)(Xml.childxml_arg0"CloudWatchLogDestination")inletisLoggingEnabled=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"IsLoggingEnabled")inmake?cloudWatchLogDestination?isLoggingEnabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcloudWatchLogDestination=field_mapjson__"CloudWatchLogDestination"CloudWatchLogDestination.of_jsoninletisLoggingEnabled=field_mapjson__"IsLoggingEnabled"Boolean.of_jsoninmake?cloudWatchLogDestination?isLoggingEnabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Container for the values required to configure logging for the pipeline. If you don't specify these values, OpenSearch Ingestion will not publish logs from your application to CloudWatch Logs."]modulePipelineRoleArn=structtypenonrect=stringletcontext_="PipelineRoleArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:20)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^arn:(aws|aws\\-cn|aws\\-us\\-gov|aws\\-iso|aws\\-iso\\-b|aws\\-iso\\-e|aws\\-iso\\-f):iam::[0-9]+:role\\/.*$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PipelineRoleArn"jletto_json=simple_to_jsonto_valueendmoduleServiceVpcEndpointsList=structtypenonrect=ServiceVpcEndpoint.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ServiceVpcEndpoint.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:ServiceVpcEndpoint.of_xml)letof_jsonj=list_of_json~kind:"ServiceVpcEndpointsList"~of_json:ServiceVpcEndpoint.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleVpcEndpointsList=structtypenonrect=VpcEndpoint.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:VpcEndpoint.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:VpcEndpoint.of_xml)letof_jsonj=list_of_json~kind:"VpcEndpointsList"~of_json:VpcEndpoint.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePipelineSummary=structtypenonrect={status:PipelineStatus.toption[@ocaml.doc"The current status of the pipeline."];statusReason:PipelineStatusReason.toption;pipelineName:PipelineName.toption[@ocaml.doc"The name of the pipeline."];pipelineArn:PipelineArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the pipeline."];minUnits:PipelineUnits.toption[@ocaml.doc"The minimum pipeline capacity, in Ingestion Compute Units (ICUs)."];maxUnits:PipelineUnits.toption[@ocaml.doc"The maximum pipeline capacity, in Ingestion Compute Units (ICUs)."];createdAt:Timestamp.toption[@ocaml.doc"The date and time when the pipeline was created."];lastUpdatedAt:Timestamp.toption[@ocaml.doc"The date and time when the pipeline was last updated."];destinations:PipelineDestinationList.toption[@ocaml.doc"A list of destinations to which the pipeline writes data."];tags:TagList.toption[@ocaml.doc"A list of tags associated with the given pipeline."]}letmake?status=fun?statusReason->fun?pipelineName->fun?pipelineArn->fun?minUnits->fun?maxUnits->fun?createdAt->fun?lastUpdatedAt->fun?destinations->fun?tags->fun()->{status;statusReason;pipelineName;pipelineArn;minUnits;maxUnits;createdAt;lastUpdatedAt;destinations;tags}letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:PipelineStatus.to_value));("StatusReason",(Option.mapx.statusReason~f:PipelineStatusReason.to_value));("PipelineName",(Option.mapx.pipelineName~f:PipelineName.to_value));("PipelineArn",(Option.mapx.pipelineArn~f:PipelineArn.to_value));("MinUnits",(Option.mapx.minUnits~f:PipelineUnits.to_value));("MaxUnits",(Option.mapx.maxUnits~f:PipelineUnits.to_value));("CreatedAt",(Option.mapx.createdAt~f:Timestamp.to_value));("LastUpdatedAt",(Option.mapx.lastUpdatedAt~f:Timestamp.to_value));("Destinations",(Option.mapx.destinations~f:PipelineDestinationList.to_value));("Tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletdestinations=(Option.map~f:PipelineDestinationList.of_xml)(Xml.childxml_arg0"Destinations")inletlastUpdatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastUpdatedAt")inletcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreatedAt")inletmaxUnits=(Option.map~f:PipelineUnits.of_xml)(Xml.childxml_arg0"MaxUnits")inletminUnits=(Option.map~f:PipelineUnits.of_xml)(Xml.childxml_arg0"MinUnits")inletpipelineArn=(Option.map~f:PipelineArn.of_xml)(Xml.childxml_arg0"PipelineArn")inletpipelineName=(Option.map~f:PipelineName.of_xml)(Xml.childxml_arg0"PipelineName")inletstatusReason=(Option.map~f:PipelineStatusReason.of_xml)(Xml.childxml_arg0"StatusReason")inletstatus=(Option.map~f:PipelineStatus.of_xml)(Xml.childxml_arg0"Status")inmake?tags?destinations?lastUpdatedAt?createdAt?maxUnits?minUnits?pipelineArn?pipelineName?statusReason?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninletdestinations=field_mapjson__"Destinations"PipelineDestinationList.of_jsoninletlastUpdatedAt=field_mapjson__"LastUpdatedAt"Timestamp.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Timestamp.of_jsoninletmaxUnits=field_mapjson__"MaxUnits"PipelineUnits.of_jsoninletminUnits=field_mapjson__"MinUnits"PipelineUnits.of_jsoninletpipelineArn=field_mapjson__"PipelineArn"PipelineArn.of_jsoninletpipelineName=field_mapjson__"PipelineName"PipelineName.of_jsoninletstatusReason=field_mapjson__"StatusReason"PipelineStatusReason.of_jsoninletstatus=field_mapjson__"Status"PipelineStatus.of_jsoninmake?tags?destinations?lastUpdatedAt?createdAt?maxUnits?minUnits?pipelineArn?pipelineName?statusReason?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summary information for an OpenSearch Ingestion pipeline."]modulePipelineEndpoint=structtypenonrect={pipelineArn:PipelineArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the pipeline associated with this endpoint."];endpointId:PipelineEndpointId.toption[@ocaml.doc"The unique identifier for the pipeline endpoint."];status:PipelineEndpointStatus.toption[@ocaml.doc"The current status of the pipeline endpoint."];vpcId:String_.toption[@ocaml.doc"The ID of the VPC where the pipeline endpoint is created."];vpcOptions:PipelineEndpointVpcOptions.toption[@ocaml.doc"Configuration options for the VPC endpoint, including subnet and security group settings."];ingestEndpointUrl:String_.toption[@ocaml.doc"The URL used to ingest data to the pipeline through the VPC endpoint."]}letmake?pipelineArn=fun?endpointId->fun?status->fun?vpcId->fun?vpcOptions->fun?ingestEndpointUrl->fun()->{pipelineArn;endpointId;status;vpcId;vpcOptions;ingestEndpointUrl}letto_valuex=structure_to_value[("PipelineArn",(Option.mapx.pipelineArn~f:PipelineArn.to_value));("EndpointId",(Option.mapx.endpointId~f:PipelineEndpointId.to_value));("Status",(Option.mapx.status~f:PipelineEndpointStatus.to_value));("VpcId",(Option.mapx.vpcId~f:String_.to_value));("VpcOptions",(Option.mapx.vpcOptions~f:PipelineEndpointVpcOptions.to_value));("IngestEndpointUrl",(Option.mapx.ingestEndpointUrl~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letingestEndpointUrl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"IngestEndpointUrl")inletvpcOptions=(Option.map~f:PipelineEndpointVpcOptions.of_xml)(Xml.childxml_arg0"VpcOptions")inletvpcId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"VpcId")inletstatus=(Option.map~f:PipelineEndpointStatus.of_xml)(Xml.childxml_arg0"Status")inletendpointId=(Option.map~f:PipelineEndpointId.of_xml)(Xml.childxml_arg0"EndpointId")inletpipelineArn=(Option.map~f:PipelineArn.of_xml)(Xml.childxml_arg0"PipelineArn")inmake?ingestEndpointUrl?vpcOptions?vpcId?status?endpointId?pipelineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letingestEndpointUrl=field_mapjson__"IngestEndpointUrl"String_.of_jsoninletvpcOptions=field_mapjson__"VpcOptions"PipelineEndpointVpcOptions.of_jsoninletvpcId=field_mapjson__"VpcId"String_.of_jsoninletstatus=field_mapjson__"Status"PipelineEndpointStatus.of_jsoninletendpointId=field_mapjson__"EndpointId"PipelineEndpointId.of_jsoninletpipelineArn=field_mapjson__"PipelineArn"PipelineArn.of_jsoninmake?ingestEndpointUrl?vpcOptions?vpcId?status?endpointId?pipelineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a VPC endpoint for an OpenSearch Ingestion pipeline, enabling private connectivity between your VPC and the pipeline."]modulePipelineEndpointConnection=structtypenonrect={pipelineArn:PipelineArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the pipeline in the endpoint connection."];endpointId:PipelineEndpointId.toption[@ocaml.doc"The unique identifier of the endpoint in the connection."];status:PipelineEndpointStatus.toption[@ocaml.doc"The current status of the pipeline endpoint connection."];vpcEndpointOwner:AwsAccountId.toption[@ocaml.doc"The Amazon Web Services account ID that owns the VPC endpoint used in this connection."]}letmake?pipelineArn=fun?endpointId->fun?status->fun?vpcEndpointOwner->fun()->{pipelineArn;endpointId;status;vpcEndpointOwner}letto_valuex=structure_to_value[("PipelineArn",(Option.mapx.pipelineArn~f:PipelineArn.to_value));("EndpointId",(Option.mapx.endpointId~f:PipelineEndpointId.to_value));("Status",(Option.mapx.status~f:PipelineEndpointStatus.to_value));("VpcEndpointOwner",(Option.mapx.vpcEndpointOwner~f:AwsAccountId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvpcEndpointOwner=(Option.map~f:AwsAccountId.of_xml)(Xml.childxml_arg0"VpcEndpointOwner")inletstatus=(Option.map~f:PipelineEndpointStatus.of_xml)(Xml.childxml_arg0"Status")inletendpointId=(Option.map~f:PipelineEndpointId.of_xml)(Xml.childxml_arg0"EndpointId")inletpipelineArn=(Option.map~f:PipelineArn.of_xml)(Xml.childxml_arg0"PipelineArn")inmake?vpcEndpointOwner?status?endpointId?pipelineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvpcEndpointOwner=field_mapjson__"VpcEndpointOwner"AwsAccountId.of_jsoninletstatus=field_mapjson__"Status"PipelineEndpointStatus.of_jsoninletendpointId=field_mapjson__"EndpointId"PipelineEndpointId.of_jsoninletpipelineArn=field_mapjson__"PipelineArn"PipelineArn.of_jsoninmake?vpcEndpointOwner?status?endpointId?pipelineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a connection to a pipeline endpoint, containing details about the endpoint association."]modulePipelineBlueprintSummary=structtypenonrect={blueprintName:String_.toption[@ocaml.doc"The name of the blueprint."];displayName:String_.toption[@ocaml.doc"The display name of the blueprint."];displayDescription:String_.toption[@ocaml.doc"A description of the blueprint."];service:String_.toption[@ocaml.doc"The name of the service that the blueprint is associated with."];useCase:String_.toption[@ocaml.doc"The use case that the blueprint relates to."]}letmake?blueprintName=fun?displayName->fun?displayDescription->fun?service->fun?useCase->fun()->{blueprintName;displayName;displayDescription;service;useCase}letto_valuex=structure_to_value[("BlueprintName",(Option.mapx.blueprintName~f:String_.to_value));("DisplayName",(Option.mapx.displayName~f:String_.to_value));("DisplayDescription",(Option.mapx.displayDescription~f:String_.to_value));("Service",(Option.mapx.service~f:String_.to_value));("UseCase",(Option.mapx.useCase~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuseCase=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"UseCase")inletservice=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Service")inletdisplayDescription=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"DisplayDescription")inletdisplayName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"DisplayName")inletblueprintName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"BlueprintName")inmake?useCase?service?displayDescription?displayName?blueprintName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuseCase=field_mapjson__"UseCase"String_.of_jsoninletservice=field_mapjson__"Service"String_.of_jsoninletdisplayDescription=field_mapjson__"DisplayDescription"String_.of_jsoninletdisplayName=field_mapjson__"DisplayName"String_.of_jsoninletblueprintName=field_mapjson__"BlueprintName"String_.of_jsoninmake?useCase?service?displayDescription?displayName?blueprintName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A summary of an OpenSearch Ingestion blueprint."]moduleChangeProgressStatus=structtypenonrect={startTime:Timestamp.toption[@ocaml.doc"The time at which the configuration change is made on the pipeline."];status:ChangeProgressStatuses.toption[@ocaml.doc"The overall status of the pipeline configuration change."];totalNumberOfStages:Integer.toption[@ocaml.doc"The total number of stages required for the pipeline configuration change."];changeProgressStages:ChangeProgressStageList.toption[@ocaml.doc"Information about the stages that the pipeline is going through to perform the configuration change."]}letmake?startTime=fun?status->fun?totalNumberOfStages->fun?changeProgressStages->fun()->{startTime;status;totalNumberOfStages;changeProgressStages}letto_valuex=structure_to_value[("StartTime",(Option.mapx.startTime~f:Timestamp.to_value));("Status",(Option.mapx.status~f:ChangeProgressStatuses.to_value));("TotalNumberOfStages",(Option.mapx.totalNumberOfStages~f:Integer.to_value));("ChangeProgressStages",(Option.mapx.changeProgressStages~f:ChangeProgressStageList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchangeProgressStages=(Option.map~f:ChangeProgressStageList.of_xml)(Xml.childxml_arg0"ChangeProgressStages")inlettotalNumberOfStages=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"TotalNumberOfStages")inletstatus=(Option.map~f:ChangeProgressStatuses.of_xml)(Xml.childxml_arg0"Status")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StartTime")inmake?changeProgressStages?totalNumberOfStages?status?startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchangeProgressStages=field_mapjson__"ChangeProgressStages"ChangeProgressStageList.of_jsoninlettotalNumberOfStages=field_mapjson__"TotalNumberOfStages"Integer.of_jsoninletstatus=field_mapjson__"Status"ChangeProgressStatuses.of_jsoninletstartTime=field_mapjson__"StartTime"Timestamp.of_jsoninmake?changeProgressStages?totalNumberOfStages?status?startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The progress details of a pipeline configuration change."]moduleAccessDeniedException=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You don't have permissions to access the resource."]moduleDisabledOperationException=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Exception is thrown when an operation has been disabled."]moduleInternalException=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request failed because of an unknown error, exception, or failure (the failure is internal to the service)."]moduleValidationException=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An exception for missing or invalid input fields."]moduleValidationMessageList=structtypenonrect=ValidationMessage.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ValidationMessage.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:ValidationMessage.of_xml)letof_jsonj=list_of_json~kind:"ValidationMessageList"~of_json:ValidationMessage.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePipelineConfigurationBody=structtypenonrect=stringletcontext_="PipelineConfigurationBody"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100000)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PipelineConfigurationBody"jletto_json=simple_to_jsonto_valueendmoduleConflictException=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The client attempted to remove a resource that is currently in use."]modulePipeline=structtypenonrect={pipelineName:String_.toption[@ocaml.doc"The name of the pipeline."];pipelineArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the pipeline."];minUnits:Integer.toption[@ocaml.doc"The minimum pipeline capacity, in Ingestion Compute Units (ICUs)."];maxUnits:Integer.toption[@ocaml.doc"The maximum pipeline capacity, in Ingestion Compute Units (ICUs)."];status:PipelineStatus.toption[@ocaml.doc"The current status of the pipeline."];statusReason:PipelineStatusReason.toption[@ocaml.doc"The reason for the current status of the pipeline."];pipelineConfigurationBody:String_.toption[@ocaml.doc"The Data Prepper pipeline configuration in YAML format."];createdAt:Timestamp.toption[@ocaml.doc"The date and time when the pipeline was created."];lastUpdatedAt:Timestamp.toption[@ocaml.doc"The date and time when the pipeline was last updated."];ingestEndpointUrls:IngestEndpointUrlsList.toption[@ocaml.doc"The ingestion endpoints for the pipeline, which you can send data to."];logPublishingOptions:LogPublishingOptions.toption[@ocaml.doc"Key-value pairs that represent log publishing settings."];vpcEndpoints:VpcEndpointsList.toption[@ocaml.doc"The VPC interface endpoints that have access to the pipeline."];bufferOptions:BufferOptions.toption;encryptionAtRestOptions:EncryptionAtRestOptions.toption;vpcEndpointService:String_.toption[@ocaml.doc"The VPC endpoint service name for the pipeline."];serviceVpcEndpoints:ServiceVpcEndpointsList.toption[@ocaml.doc"A list of VPC endpoints that OpenSearch Ingestion has created to other Amazon Web Services services."];destinations:PipelineDestinationList.toption[@ocaml.doc"Destinations to which the pipeline writes data."];tags:TagList.toption[@ocaml.doc"A list of tags associated with the given pipeline."];pipelineRoleArn:PipelineRoleArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the IAM role that the pipeline uses to access AWS resources."]}letmake?pipelineName=fun?pipelineArn->fun?minUnits->fun?maxUnits->fun?status->fun?statusReason->fun?pipelineConfigurationBody->fun?createdAt->fun?lastUpdatedAt->fun?ingestEndpointUrls->fun?logPublishingOptions->fun?vpcEndpoints->fun?bufferOptions->fun?encryptionAtRestOptions->fun?vpcEndpointService->fun?serviceVpcEndpoints->fun?destinations->fun?tags->fun?pipelineRoleArn->fun()->{pipelineName;pipelineArn;minUnits;maxUnits;status;statusReason;pipelineConfigurationBody;createdAt;lastUpdatedAt;ingestEndpointUrls;logPublishingOptions;vpcEndpoints;bufferOptions;encryptionAtRestOptions;vpcEndpointService;serviceVpcEndpoints;destinations;tags;pipelineRoleArn}letto_valuex=structure_to_value[("PipelineName",(Option.mapx.pipelineName~f:String_.to_value));("PipelineArn",(Option.mapx.pipelineArn~f:String_.to_value));("MinUnits",(Option.mapx.minUnits~f:Integer.to_value));("MaxUnits",(Option.mapx.maxUnits~f:Integer.to_value));("Status",(Option.mapx.status~f:PipelineStatus.to_value));("StatusReason",(Option.mapx.statusReason~f:PipelineStatusReason.to_value));("PipelineConfigurationBody",(Option.mapx.pipelineConfigurationBody~f:String_.to_value));("CreatedAt",(Option.mapx.createdAt~f:Timestamp.to_value));("LastUpdatedAt",(Option.mapx.lastUpdatedAt~f:Timestamp.to_value));("IngestEndpointUrls",(Option.mapx.ingestEndpointUrls~f:IngestEndpointUrlsList.to_value));("LogPublishingOptions",(Option.mapx.logPublishingOptions~f:LogPublishingOptions.to_value));("VpcEndpoints",(Option.mapx.vpcEndpoints~f:VpcEndpointsList.to_value));("BufferOptions",(Option.mapx.bufferOptions~f:BufferOptions.to_value));("EncryptionAtRestOptions",(Option.mapx.encryptionAtRestOptions~f:EncryptionAtRestOptions.to_value));("VpcEndpointService",(Option.mapx.vpcEndpointService~f:String_.to_value));("ServiceVpcEndpoints",(Option.mapx.serviceVpcEndpoints~f:ServiceVpcEndpointsList.to_value));("Destinations",(Option.mapx.destinations~f:PipelineDestinationList.to_value));("Tags",(Option.mapx.tags~f:TagList.to_value));("PipelineRoleArn",(Option.mapx.pipelineRoleArn~f:PipelineRoleArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpipelineRoleArn=(Option.map~f:PipelineRoleArn.of_xml)(Xml.childxml_arg0"PipelineRoleArn")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletdestinations=(Option.map~f:PipelineDestinationList.of_xml)(Xml.childxml_arg0"Destinations")inletserviceVpcEndpoints=(Option.map~f:ServiceVpcEndpointsList.of_xml)(Xml.childxml_arg0"ServiceVpcEndpoints")inletvpcEndpointService=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"VpcEndpointService")inletencryptionAtRestOptions=(Option.map~f:EncryptionAtRestOptions.of_xml)(Xml.childxml_arg0"EncryptionAtRestOptions")inletbufferOptions=(Option.map~f:BufferOptions.of_xml)(Xml.childxml_arg0"BufferOptions")inletvpcEndpoints=(Option.map~f:VpcEndpointsList.of_xml)(Xml.childxml_arg0"VpcEndpoints")inletlogPublishingOptions=(Option.map~f:LogPublishingOptions.of_xml)(Xml.childxml_arg0"LogPublishingOptions")inletingestEndpointUrls=(Option.map~f:IngestEndpointUrlsList.of_xml)(Xml.childxml_arg0"IngestEndpointUrls")inletlastUpdatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastUpdatedAt")inletcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreatedAt")inletpipelineConfigurationBody=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"PipelineConfigurationBody")inletstatusReason=(Option.map~f:PipelineStatusReason.of_xml)(Xml.childxml_arg0"StatusReason")inletstatus=(Option.map~f:PipelineStatus.of_xml)(Xml.childxml_arg0"Status")inletmaxUnits=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"MaxUnits")inletminUnits=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"MinUnits")inletpipelineArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"PipelineArn")inletpipelineName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"PipelineName")inmake?pipelineRoleArn?tags?destinations?serviceVpcEndpoints?vpcEndpointService?encryptionAtRestOptions?bufferOptions?vpcEndpoints?logPublishingOptions?ingestEndpointUrls?lastUpdatedAt?createdAt?pipelineConfigurationBody?statusReason?status?maxUnits?minUnits?pipelineArn?pipelineName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpipelineRoleArn=field_mapjson__"PipelineRoleArn"PipelineRoleArn.of_jsoninlettags=field_mapjson__"Tags"TagList.of_jsoninletdestinations=field_mapjson__"Destinations"PipelineDestinationList.of_jsoninletserviceVpcEndpoints=field_mapjson__"ServiceVpcEndpoints"ServiceVpcEndpointsList.of_jsoninletvpcEndpointService=field_mapjson__"VpcEndpointService"String_.of_jsoninletencryptionAtRestOptions=field_mapjson__"EncryptionAtRestOptions"EncryptionAtRestOptions.of_jsoninletbufferOptions=field_mapjson__"BufferOptions"BufferOptions.of_jsoninletvpcEndpoints=field_mapjson__"VpcEndpoints"VpcEndpointsList.of_jsoninletlogPublishingOptions=field_mapjson__"LogPublishingOptions"LogPublishingOptions.of_jsoninletingestEndpointUrls=field_mapjson__"IngestEndpointUrls"IngestEndpointUrlsList.of_jsoninletlastUpdatedAt=field_mapjson__"LastUpdatedAt"Timestamp.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Timestamp.of_jsoninletpipelineConfigurationBody=field_mapjson__"PipelineConfigurationBody"String_.of_jsoninletstatusReason=field_mapjson__"StatusReason"PipelineStatusReason.of_jsoninletstatus=field_mapjson__"Status"PipelineStatus.of_jsoninletmaxUnits=field_mapjson__"MaxUnits"Integer.of_jsoninletminUnits=field_mapjson__"MinUnits"Integer.of_jsoninletpipelineArn=field_mapjson__"PipelineArn"String_.of_jsoninletpipelineName=field_mapjson__"PipelineName"String_.of_jsoninmake?pipelineRoleArn?tags?destinations?serviceVpcEndpoints?vpcEndpointService?encryptionAtRestOptions?bufferOptions?vpcEndpoints?logPublishingOptions?ingestEndpointUrls?lastUpdatedAt?createdAt?pipelineConfigurationBody?statusReason?status?maxUnits?minUnits?pipelineArn?pipelineName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about an existing OpenSearch Ingestion pipeline."]moduleResourceNotFoundException=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You attempted to access or delete a resource that does not exist."]moduleStringList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"StringList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLimitExceededException=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You attempted to create more than the allowed number of tags."]modulePipelineEndpointIdsList=structtypenonrect=PipelineEndpointId.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PipelineEndpointId.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:PipelineEndpointId.of_xml)letof_jsonj=list_of_json~kind:"PipelineEndpointIdsList"~of_json:PipelineEndpointId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResourcePolicy=structtypenonrect=stringletcontext_="ResourcePolicy"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:204800)>>=(fun()->check_string_mini~min:2));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ResourcePolicy"jletto_json=simple_to_jsonto_valueendmoduleInvalidPaginationTokenException=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An invalid pagination token provided in the request."]moduleNextToken=structtypenonrect=stringletcontext_="NextToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:3000)>>=(fun()->check_patterni~pattern:"^([\\s\\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:"NextToken"jletto_json=simple_to_jsonto_valueendmodulePipelineSummaryList=structtypenonrect=PipelineSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PipelineSummary.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:PipelineSummary.of_xml)letof_jsonj=list_of_json~kind:"PipelineSummaryList"~of_json:PipelineSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmodulePipelineEndpointsSummaryList=structtypenonrect=PipelineEndpoint.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PipelineEndpoint.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:PipelineEndpoint.of_xml)letof_jsonj=list_of_json~kind:"PipelineEndpointsSummaryList"~of_json:PipelineEndpoint.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePipelineEndpointConnectionsSummaryList=structtypenonrect=PipelineEndpointConnection.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PipelineEndpointConnection.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:PipelineEndpointConnection.of_xml)letof_jsonj=list_of_json~kind:"PipelineEndpointConnectionsSummaryList"~of_json:PipelineEndpointConnection.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePipelineBlueprintsSummaryList=structtypenonrect=PipelineBlueprintSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PipelineBlueprintSummary.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:PipelineBlueprintSummary.of_xml)letof_jsonj=list_of_json~kind:"PipelineBlueprintsSummaryList"~of_json:PipelineBlueprintSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleChangeProgressStatusList=structtypenonrect=ChangeProgressStatus.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ChangeProgressStatus.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:ChangeProgressStatus.of_xml)letof_jsonj=list_of_json~kind:"ChangeProgressStatusList"~of_json:ChangeProgressStatus.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePipelineBlueprint=structtypenonrect={blueprintName:String_.toption[@ocaml.doc"The name of the blueprint."];pipelineConfigurationBody:String_.toption[@ocaml.doc"The YAML configuration of the blueprint."];displayName:String_.toption[@ocaml.doc"The display name of the blueprint."];displayDescription:String_.toption[@ocaml.doc"A description of the blueprint."];service:String_.toption[@ocaml.doc"The name of the service that the blueprint is associated with."];useCase:String_.toption[@ocaml.doc"The use case that the blueprint relates to."]}letmake?blueprintName=fun?pipelineConfigurationBody->fun?displayName->fun?displayDescription->fun?service->fun?useCase->fun()->{blueprintName;pipelineConfigurationBody;displayName;displayDescription;service;useCase}letto_valuex=structure_to_value[("BlueprintName",(Option.mapx.blueprintName~f:String_.to_value));("PipelineConfigurationBody",(Option.mapx.pipelineConfigurationBody~f:String_.to_value));("DisplayName",(Option.mapx.displayName~f:String_.to_value));("DisplayDescription",(Option.mapx.displayDescription~f:String_.to_value));("Service",(Option.mapx.service~f:String_.to_value));("UseCase",(Option.mapx.useCase~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuseCase=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"UseCase")inletservice=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Service")inletdisplayDescription=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"DisplayDescription")inletdisplayName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"DisplayName")inletpipelineConfigurationBody=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"PipelineConfigurationBody")inletblueprintName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"BlueprintName")inmake?useCase?service?displayDescription?displayName?pipelineConfigurationBody?blueprintName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuseCase=field_mapjson__"UseCase"String_.of_jsoninletservice=field_mapjson__"Service"String_.of_jsoninletdisplayDescription=field_mapjson__"DisplayDescription"String_.of_jsoninletdisplayName=field_mapjson__"DisplayName"String_.of_jsoninletpipelineConfigurationBody=field_mapjson__"PipelineConfigurationBody"String_.of_jsoninletblueprintName=field_mapjson__"BlueprintName"String_.of_jsoninmake?useCase?service?displayDescription?displayName?pipelineConfigurationBody?blueprintName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Container for information about an OpenSearch Ingestion blueprint."]moduleBlueprintFormat=structtypenonrect=stringletcontext_="BlueprintFormat"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"(YAML|JSON)");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"BlueprintFormat"jletto_json=simple_to_jsonto_valueendmoduleResourceAlreadyExistsException=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You attempted to create a resource that already exists."]moduleValidatePipelineResponse=structtypenonrect={isValid:Boolean.toption[@ocaml.doc"A boolean indicating whether or not the pipeline configuration is valid."];errors:ValidationMessageList.toption[@ocaml.doc"A list of errors if the configuration is invalid."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?isValid=fun?errors->fun()->{isValid;errors}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("isValid",(Option.mapx.isValid~f:Boolean.to_value));("Errors",(Option.mapx.errors~f:ValidationMessageList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrors=(Option.map~f:ValidationMessageList.of_xml)(Xml.childxml_arg0"Errors")inletisValid=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isValid")inmake?errors?isValid()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrors=field_mapjson__"Errors"ValidationMessageList.of_jsoninletisValid=field_mapjson__"isValid"Boolean.of_jsoninmake?errors?isValid()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Checks whether an OpenSearch Ingestion pipeline configuration is valid prior to creation. For more information, see Creating Amazon OpenSearch Ingestion pipelines."]moduleValidatePipelineRequest=structtypenonrect={pipelineConfigurationBody:PipelineConfigurationBody.t[@ocaml.doc"The pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with \\n."]}letcontext_="ValidatePipelineRequest"letmake~pipelineConfigurationBody=fun()->{pipelineConfigurationBody}letto_valuex=structure_to_value[("PipelineConfigurationBody",(Some(PipelineConfigurationBody.to_valuex.pipelineConfigurationBody)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpipelineConfigurationBody=PipelineConfigurationBody.of_xml(Xml.child_exn~context:context_xml_arg0"PipelineConfigurationBody")inmake~pipelineConfigurationBody()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpipelineConfigurationBody=field_map_exnjson__"PipelineConfigurationBody"PipelineConfigurationBody.of_jsoninmake~pipelineConfigurationBody()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Checks whether an OpenSearch Ingestion pipeline configuration is valid prior to creation. For more information, see Creating Amazon OpenSearch Ingestion pipelines."]moduleUpdatePipelineResponse=structtypenonrect={pipeline:Pipeline.toption[@ocaml.doc"Container for information about the updated pipeline."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?pipeline=fun()->{pipeline}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Pipeline",(Option.mapx.pipeline~f:Pipeline.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpipeline=(Option.map~f:Pipeline.of_xml)(Xml.childxml_arg0"Pipeline")inmake?pipeline()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpipeline=field_mapjson__"Pipeline"Pipeline.of_jsoninmake?pipeline()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an OpenSearch Ingestion pipeline. For more information, see Updating Amazon OpenSearch Ingestion pipelines."]moduleUpdatePipelineRequest=structtypenonrect={pipelineName:PipelineName.t[@ocaml.doc"The name of the pipeline to update."];minUnits:PipelineUnits.toption[@ocaml.doc"The minimum pipeline capacity, in Ingestion Compute Units (ICUs)."];maxUnits:PipelineUnits.toption[@ocaml.doc"The maximum pipeline capacity, in Ingestion Compute Units (ICUs)"];pipelineConfigurationBody:PipelineConfigurationBody.toption[@ocaml.doc"The pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with \\n."];logPublishingOptions:LogPublishingOptions.toption[@ocaml.doc"Key-value pairs to configure log publishing."];bufferOptions:BufferOptions.toption[@ocaml.doc"Key-value pairs to configure persistent buffering for the pipeline."];encryptionAtRestOptions:EncryptionAtRestOptions.toption[@ocaml.doc"Key-value pairs to configure encryption for data that is written to a persistent buffer."];pipelineRoleArn:PipelineRoleArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the IAM role that grants the pipeline permission to access Amazon Web Services resources."]}letcontext_="UpdatePipelineRequest"letmake?minUnits=fun?maxUnits->fun?pipelineConfigurationBody->fun?logPublishingOptions->fun?bufferOptions->fun?encryptionAtRestOptions->fun?pipelineRoleArn->fun~pipelineName->fun()->{minUnits;maxUnits;pipelineConfigurationBody;logPublishingOptions;bufferOptions;encryptionAtRestOptions;pipelineRoleArn;pipelineName}letto_valuex=structure_to_value[("PipelineName",(Some(PipelineName.to_valuex.pipelineName)));("MinUnits",(Option.mapx.minUnits~f:PipelineUnits.to_value));("MaxUnits",(Option.mapx.maxUnits~f:PipelineUnits.to_value));("PipelineConfigurationBody",(Option.mapx.pipelineConfigurationBody~f:PipelineConfigurationBody.to_value));("LogPublishingOptions",(Option.mapx.logPublishingOptions~f:LogPublishingOptions.to_value));("BufferOptions",(Option.mapx.bufferOptions~f:BufferOptions.to_value));("EncryptionAtRestOptions",(Option.mapx.encryptionAtRestOptions~f:EncryptionAtRestOptions.to_value));("PipelineRoleArn",(Option.mapx.pipelineRoleArn~f:PipelineRoleArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpipelineRoleArn=(Option.map~f:PipelineRoleArn.of_xml)(Xml.childxml_arg0"PipelineRoleArn")inletencryptionAtRestOptions=(Option.map~f:EncryptionAtRestOptions.of_xml)(Xml.childxml_arg0"EncryptionAtRestOptions")inletbufferOptions=(Option.map~f:BufferOptions.of_xml)(Xml.childxml_arg0"BufferOptions")inletlogPublishingOptions=(Option.map~f:LogPublishingOptions.of_xml)(Xml.childxml_arg0"LogPublishingOptions")inletpipelineConfigurationBody=(Option.map~f:PipelineConfigurationBody.of_xml)(Xml.childxml_arg0"PipelineConfigurationBody")inletmaxUnits=(Option.map~f:PipelineUnits.of_xml)(Xml.childxml_arg0"MaxUnits")inletminUnits=(Option.map~f:PipelineUnits.of_xml)(Xml.childxml_arg0"MinUnits")inletpipelineName=PipelineName.of_xml(Xml.child_exn~context:context_xml_arg0"PipelineName")inmake?pipelineRoleArn?encryptionAtRestOptions?bufferOptions?logPublishingOptions?pipelineConfigurationBody?maxUnits?minUnits~pipelineName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpipelineRoleArn=field_mapjson__"PipelineRoleArn"PipelineRoleArn.of_jsoninletencryptionAtRestOptions=field_mapjson__"EncryptionAtRestOptions"EncryptionAtRestOptions.of_jsoninletbufferOptions=field_mapjson__"BufferOptions"BufferOptions.of_jsoninletlogPublishingOptions=field_mapjson__"LogPublishingOptions"LogPublishingOptions.of_jsoninletpipelineConfigurationBody=field_mapjson__"PipelineConfigurationBody"PipelineConfigurationBody.of_jsoninletmaxUnits=field_mapjson__"MaxUnits"PipelineUnits.of_jsoninletminUnits=field_mapjson__"MinUnits"PipelineUnits.of_jsoninletpipelineName=field_map_exnjson__"PipelineName"PipelineName.of_jsoninmake?pipelineRoleArn?encryptionAtRestOptions?bufferOptions?logPublishingOptions?pipelineConfigurationBody?maxUnits?minUnits~pipelineName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an OpenSearch Ingestion pipeline. For more information, see Updating Amazon OpenSearch Ingestion pipelines."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes one or more tags from an OpenSearch Ingestion pipeline. For more information, see Tagging Amazon OpenSearch Ingestion pipelines."]moduleUntagResourceRequest=structtypenonrect={arn:PipelineArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the pipeline to remove tags from."];tagKeys:StringList.t[@ocaml.doc"The tag keys to remove."]}letcontext_="UntagResourceRequest"letmake~arn=fun~tagKeys->fun()->{arn;tagKeys}letto_valuex=structure_to_value[("arn",(Some(PipelineArn.to_valuex.arn)));("TagKeys",(Some(StringList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=StringList.of_xml(Xml.child_exn~context:context_xml_arg0"TagKeys")inletarn=PipelineArn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~tagKeys~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"TagKeys"StringList.of_jsoninletarn=field_map_exnjson__"Arn"PipelineArn.of_jsoninmake~tagKeys~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes one or more tags from an OpenSearch Ingestion pipeline. For more information, see Tagging Amazon OpenSearch Ingestion pipelines."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Tags an OpenSearch Ingestion pipeline. For more information, see Tagging Amazon OpenSearch Ingestion pipelines."]moduleTagResourceRequest=structtypenonrect={arn:PipelineArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the pipeline to tag."];tags:TagList.t[@ocaml.doc"The list of key-value tags to add to the pipeline."]}letcontext_="TagResourceRequest"letmake~arn=fun~tags->fun()->{arn;tags}letto_valuex=structure_to_value[("arn",(Some(PipelineArn.to_valuex.arn)));("Tags",(Some(TagList.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagList.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inletarn=PipelineArn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~tags~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"TagList.of_jsoninletarn=field_map_exnjson__"Arn"PipelineArn.of_jsoninmake~tags~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Tags an OpenSearch Ingestion pipeline. For more information, see Tagging Amazon OpenSearch Ingestion pipelines."]moduleStopPipelineResponse=structtypenonrect={pipeline:Pipeline.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?pipeline=fun()->{pipeline}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Pipeline",(Option.mapx.pipeline~f:Pipeline.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpipeline=(Option.map~f:Pipeline.of_xml)(Xml.childxml_arg0"Pipeline")inmake?pipeline()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpipeline=field_mapjson__"Pipeline"Pipeline.of_jsoninmake?pipeline()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops an OpenSearch Ingestion pipeline. For more information, see Stopping an OpenSearch Ingestion pipeline."]moduleStopPipelineRequest=structtypenonrect={pipelineName:PipelineName.t[@ocaml.doc"The name of the pipeline to stop."]}letcontext_="StopPipelineRequest"letmake~pipelineName=fun()->{pipelineName}letto_valuex=structure_to_value[("PipelineName",(Some(PipelineName.to_valuex.pipelineName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpipelineName=PipelineName.of_xml(Xml.child_exn~context:context_xml_arg0"PipelineName")inmake~pipelineName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpipelineName=field_map_exnjson__"PipelineName"PipelineName.of_jsoninmake~pipelineName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops an OpenSearch Ingestion pipeline. For more information, see Stopping an OpenSearch Ingestion pipeline."]moduleStartPipelineResponse=structtypenonrect={pipeline:Pipeline.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?pipeline=fun()->{pipeline}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Pipeline",(Option.mapx.pipeline~f:Pipeline.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpipeline=(Option.map~f:Pipeline.of_xml)(Xml.childxml_arg0"Pipeline")inmake?pipeline()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpipeline=field_mapjson__"Pipeline"Pipeline.of_jsoninmake?pipeline()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts an OpenSearch Ingestion pipeline. For more information, see Starting an OpenSearch Ingestion pipeline."]moduleStartPipelineRequest=structtypenonrect={pipelineName:PipelineName.t[@ocaml.doc"The name of the pipeline to start."]}letcontext_="StartPipelineRequest"letmake~pipelineName=fun()->{pipelineName}letto_valuex=structure_to_value[("PipelineName",(Some(PipelineName.to_valuex.pipelineName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpipelineName=PipelineName.of_xml(Xml.child_exn~context:context_xml_arg0"PipelineName")inmake~pipelineName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpipelineName=field_map_exnjson__"PipelineName"PipelineName.of_jsoninmake~pipelineName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts an OpenSearch Ingestion pipeline. For more information, see Starting an OpenSearch Ingestion pipeline."]moduleRevokePipelineEndpointConnectionsResponse=structtypenonrect={pipelineArn:PipelineArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the pipeline from which endpoint connections were revoked."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`LimitExceededExceptionofLimitExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?pipelineArn=fun()->{pipelineArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("PipelineArn",(Option.mapx.pipelineArn~f:PipelineArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpipelineArn=(Option.map~f:PipelineArn.of_xml)(Xml.childxml_arg0"PipelineArn")inmake?pipelineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpipelineArn=field_mapjson__"PipelineArn"PipelineArn.of_jsoninmake?pipelineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Revokes pipeline endpoints from specified endpoint IDs."]moduleRevokePipelineEndpointConnectionsRequest=structtypenonrect={pipelineArn:PipelineArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the pipeline from which to revoke endpoint connections."];endpointIds:PipelineEndpointIdsList.t[@ocaml.doc"A list of endpoint IDs for which to revoke access to the pipeline."]}letcontext_="RevokePipelineEndpointConnectionsRequest"letmake~pipelineArn=fun~endpointIds->fun()->{pipelineArn;endpointIds}letto_valuex=structure_to_value[("PipelineArn",(Some(PipelineArn.to_valuex.pipelineArn)));("EndpointIds",(Some(PipelineEndpointIdsList.to_valuex.endpointIds)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendpointIds=PipelineEndpointIdsList.of_xml(Xml.child_exn~context:context_xml_arg0"EndpointIds")inletpipelineArn=PipelineArn.of_xml(Xml.child_exn~context:context_xml_arg0"PipelineArn")inmake~endpointIds~pipelineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendpointIds=field_map_exnjson__"EndpointIds"PipelineEndpointIdsList.of_jsoninletpipelineArn=field_map_exnjson__"PipelineArn"PipelineArn.of_jsoninmake~endpointIds~pipelineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Revokes pipeline endpoints from specified endpoint IDs."]modulePutResourcePolicyResponse=structtypenonrect={resourceArn:PipelineArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the resource."];policy:ResourcePolicy.toption[@ocaml.doc"The resource-based policy document that was attached to the resource."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?resourceArn=fun?policy->fun()->{resourceArn;policy}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ResourceArn",(Option.mapx.resourceArn~f:PipelineArn.to_value));("Policy",(Option.mapx.policy~f:ResourcePolicy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpolicy=(Option.map~f:ResourcePolicy.of_xml)(Xml.childxml_arg0"Policy")inletresourceArn=(Option.map~f:PipelineArn.of_xml)(Xml.childxml_arg0"ResourceArn")inmake?policy?resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpolicy=field_mapjson__"Policy"ResourcePolicy.of_jsoninletresourceArn=field_mapjson__"ResourceArn"PipelineArn.of_jsoninmake?policy?resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Attaches a resource-based policy to an OpenSearch Ingestion resource. Resource-based policies grant permissions to principals to perform actions on the resource."]modulePutResourcePolicyRequest=structtypenonrect={resourceArn:PipelineArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource to attach the policy to."];policy:ResourcePolicy.t[@ocaml.doc"The resource-based policy document in JSON format."]}letcontext_="PutResourcePolicyRequest"letmake~resourceArn=fun~policy->fun()->{resourceArn;policy}letto_valuex=structure_to_value[("ResourceArn",(Some(PipelineArn.to_valuex.resourceArn)));("Policy",(Some(ResourcePolicy.to_valuex.policy)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpolicy=ResourcePolicy.of_xml(Xml.child_exn~context:context_xml_arg0"Policy")inletresourceArn=PipelineArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~policy~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpolicy=field_map_exnjson__"Policy"ResourcePolicy.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"PipelineArn.of_jsoninmake~policy~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Attaches a resource-based policy to an OpenSearch Ingestion resource. Resource-based policies grant permissions to principals to perform actions on the resource."]moduleListTagsForResourceResponse=structtypenonrect={tags:TagList.toption[@ocaml.doc"A list of tags associated with the given pipeline."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all resource tags associated with an OpenSearch Ingestion pipeline. For more information, see Tagging Amazon OpenSearch Ingestion pipelines."]moduleListTagsForResourceRequest=structtypenonrect={arn:PipelineArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the pipeline to retrieve tags for."]}letcontext_="ListTagsForResourceRequest"letmake~arn=fun()->{arn}letto_valuex=structure_to_value[("arn",(Some(PipelineArn.to_valuex.arn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=PipelineArn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_map_exnjson__"Arn"PipelineArn.of_jsoninmake~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all resource tags associated with an OpenSearch Ingestion pipeline. For more information, see Tagging Amazon OpenSearch Ingestion pipelines."]moduleListPipelinesResponse=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page."];pipelines:PipelineSummaryList.toption[@ocaml.doc"A list of all existing Data Prepper pipelines."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`InvalidPaginationTokenExceptionofInvalidPaginationTokenException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?pipelines->fun()->{nextToken;pipelines}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidPaginationTokenException"->`InvalidPaginationTokenException(InvalidPaginationTokenException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidPaginationTokenException"->`InvalidPaginationTokenException(InvalidPaginationTokenException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidPaginationTokenExceptione->`Assoc[("error",(`String"InvalidPaginationTokenException"));("details",(InvalidPaginationTokenException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("Pipelines",(Option.mapx.pipelines~f:PipelineSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpipelines=(Option.map~f:PipelineSummaryList.of_xml)(Xml.childxml_arg0"Pipelines")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?pipelines?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpipelines=field_mapjson__"Pipelines"PipelineSummaryList.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninmake?pipelines?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all OpenSearch Ingestion pipelines in the current Amazon Web Services account and Region. For more information, see Viewing Amazon OpenSearch Ingestion pipelines."]moduleListPipelinesRequest=structtypenonrect={maxResults:MaxResults.toption[@ocaml.doc"An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results."];nextToken:NextToken.toption[@ocaml.doc"If your initial ListPipelines operation returns a nextToken, you can include the returned nextToken in subsequent ListPipelines operations, which returns results in the next page."]}letmake?maxResults=fun?nextToken->fun()->{maxResults;nextToken}letto_valuex=structure_to_value[("maxResults",(Option.mapx.maxResults~f:MaxResults.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")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inmake?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninmake?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all OpenSearch Ingestion pipelines in the current Amazon Web Services account and Region. For more information, see Viewing Amazon OpenSearch Ingestion pipelines."]moduleListPipelineEndpointsResponse=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"When NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page."];pipelineEndpoints:PipelineEndpointsSummaryList.toption[@ocaml.doc"A list of pipeline endpoints."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`LimitExceededExceptionofLimitExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?pipelineEndpoints->fun()->{nextToken;pipelineEndpoints}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("PipelineEndpoints",(Option.mapx.pipelineEndpoints~f:PipelineEndpointsSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpipelineEndpoints=(Option.map~f:PipelineEndpointsSummaryList.of_xml)(Xml.childxml_arg0"PipelineEndpoints")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?pipelineEndpoints?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpipelineEndpoints=field_mapjson__"PipelineEndpoints"PipelineEndpointsSummaryList.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninmake?pipelineEndpoints?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all pipeline endpoints in your account."]moduleListPipelineEndpointsRequest=structtypenonrect={maxResults:MaxResults.toption[@ocaml.doc"The maximum number of pipeline endpoints to return in the response."];nextToken:NextToken.toption[@ocaml.doc"If your initial ListPipelineEndpoints operation returns a NextToken, you can include the returned NextToken in subsequent ListPipelineEndpoints operations, which returns results in the next page."]}letmake?maxResults=fun?nextToken->fun()->{maxResults;nextToken}letto_valuex=structure_to_value[("maxResults",(Option.mapx.maxResults~f:MaxResults.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")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inmake?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninmake?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all pipeline endpoints in your account."]moduleListPipelineEndpointConnectionsResponse=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page."];pipelineEndpointConnections:PipelineEndpointConnectionsSummaryList.toption[@ocaml.doc"A list of pipeline endpoint connections."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`LimitExceededExceptionofLimitExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?pipelineEndpointConnections->fun()->{nextToken;pipelineEndpointConnections}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("PipelineEndpointConnections",(Option.mapx.pipelineEndpointConnections~f:PipelineEndpointConnectionsSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpipelineEndpointConnections=(Option.map~f:PipelineEndpointConnectionsSummaryList.of_xml)(Xml.childxml_arg0"PipelineEndpointConnections")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?pipelineEndpointConnections?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpipelineEndpointConnections=field_mapjson__"PipelineEndpointConnections"PipelineEndpointConnectionsSummaryList.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninmake?pipelineEndpointConnections?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the pipeline endpoints connected to pipelines in your account."]moduleListPipelineEndpointConnectionsRequest=structtypenonrect={maxResults:MaxResults.toption[@ocaml.doc"The maximum number of pipeline endpoint connections to return in the response."];nextToken:NextToken.toption[@ocaml.doc"If your initial ListPipelineEndpointConnections operation returns a nextToken, you can include the returned nextToken in subsequent ListPipelineEndpointConnections operations, which returns results in the next page."]}letmake?maxResults=fun?nextToken->fun()->{maxResults;nextToken}letto_valuex=structure_to_value[("maxResults",(Option.mapx.maxResults~f:MaxResults.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")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inmake?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninmake?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the pipeline endpoints connected to pipelines in your account."]moduleListPipelineBlueprintsResponse=structtypenonrect={blueprints:PipelineBlueprintsSummaryList.toption[@ocaml.doc"A list of available blueprints for Data Prepper."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`InvalidPaginationTokenExceptionofInvalidPaginationTokenException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?blueprints=fun()->{blueprints}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidPaginationTokenException"->`InvalidPaginationTokenException(InvalidPaginationTokenException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidPaginationTokenException"->`InvalidPaginationTokenException(InvalidPaginationTokenException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidPaginationTokenExceptione->`Assoc[("error",(`String"InvalidPaginationTokenException"));("details",(InvalidPaginationTokenException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Blueprints",(Option.mapx.blueprints~f:PipelineBlueprintsSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letblueprints=(Option.map~f:PipelineBlueprintsSummaryList.of_xml)(Xml.childxml_arg0"Blueprints")inmake?blueprints()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letblueprints=field_mapjson__"Blueprints"PipelineBlueprintsSummaryList.of_jsoninmake?blueprints()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of all available blueprints for Data Prepper. For more information, see Using blueprints to create a pipeline."]moduleListPipelineBlueprintsRequest=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of all available blueprints for Data Prepper. For more information, see Using blueprints to create a pipeline."]moduleGetResourcePolicyResponse=structtypenonrect={resourceArn:PipelineArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the resource."];policy:ResourcePolicy.toption[@ocaml.doc"The resource-based policy document in JSON format."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?resourceArn=fun?policy->fun()->{resourceArn;policy}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ResourceArn",(Option.mapx.resourceArn~f:PipelineArn.to_value));("Policy",(Option.mapx.policy~f:ResourcePolicy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpolicy=(Option.map~f:ResourcePolicy.of_xml)(Xml.childxml_arg0"Policy")inletresourceArn=(Option.map~f:PipelineArn.of_xml)(Xml.childxml_arg0"ResourceArn")inmake?policy?resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpolicy=field_mapjson__"Policy"ResourcePolicy.of_jsoninletresourceArn=field_mapjson__"ResourceArn"PipelineArn.of_jsoninmake?policy?resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the resource-based policy attached to an OpenSearch Ingestion resource."]moduleGetResourcePolicyRequest=structtypenonrect={resourceArn:PipelineArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource for which to retrieve the policy."]}letcontext_="GetResourcePolicyRequest"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("ResourceArn",(Some(PipelineArn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=PipelineArn.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"PipelineArn.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the resource-based policy attached to an OpenSearch Ingestion resource."]moduleGetPipelineResponse=structtypenonrect={pipeline:Pipeline.toption[@ocaml.doc"Detailed information about the requested pipeline."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?pipeline=fun()->{pipeline}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Pipeline",(Option.mapx.pipeline~f:Pipeline.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpipeline=(Option.map~f:Pipeline.of_xml)(Xml.childxml_arg0"Pipeline")inmake?pipeline()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpipeline=field_mapjson__"Pipeline"Pipeline.of_jsoninmake?pipeline()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves information about an OpenSearch Ingestion pipeline."]moduleGetPipelineRequest=structtypenonrect={pipelineName:PipelineName.t[@ocaml.doc"The name of the pipeline."]}letcontext_="GetPipelineRequest"letmake~pipelineName=fun()->{pipelineName}letto_valuex=structure_to_value[("PipelineName",(Some(PipelineName.to_valuex.pipelineName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpipelineName=PipelineName.of_xml(Xml.child_exn~context:context_xml_arg0"PipelineName")inmake~pipelineName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpipelineName=field_map_exnjson__"PipelineName"PipelineName.of_jsoninmake~pipelineName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves information about an OpenSearch Ingestion pipeline."]moduleGetPipelineChangeProgressResponse=structtypenonrect={changeProgressStatuses:ChangeProgressStatusList.toption[@ocaml.doc"The current status of the change happening on the pipeline."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?changeProgressStatuses=fun()->{changeProgressStatuses}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ChangeProgressStatuses",(Option.mapx.changeProgressStatuses~f:ChangeProgressStatusList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchangeProgressStatuses=(Option.map~f:ChangeProgressStatusList.of_xml)(Xml.childxml_arg0"ChangeProgressStatuses")inmake?changeProgressStatuses()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchangeProgressStatuses=field_mapjson__"ChangeProgressStatuses"ChangeProgressStatusList.of_jsoninmake?changeProgressStatuses()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns progress information for the current change happening on an OpenSearch Ingestion pipeline. Currently, this operation only returns information when a pipeline is being created. For more information, see Tracking the status of pipeline creation."]moduleGetPipelineChangeProgressRequest=structtypenonrect={pipelineName:PipelineName.t[@ocaml.doc"The name of the pipeline."]}letcontext_="GetPipelineChangeProgressRequest"letmake~pipelineName=fun()->{pipelineName}letto_valuex=structure_to_value[("PipelineName",(Some(PipelineName.to_valuex.pipelineName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpipelineName=PipelineName.of_xml(Xml.child_exn~context:context_xml_arg0"PipelineName")inmake~pipelineName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpipelineName=field_map_exnjson__"PipelineName"PipelineName.of_jsoninmake~pipelineName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns progress information for the current change happening on an OpenSearch Ingestion pipeline. Currently, this operation only returns information when a pipeline is being created. For more information, see Tracking the status of pipeline creation."]moduleGetPipelineBlueprintResponse=structtypenonrect={blueprint:PipelineBlueprint.toption[@ocaml.doc"The requested blueprint in YAML format."];format:String_.toption[@ocaml.doc"The format of the blueprint."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?blueprint=fun?format->fun()->{blueprint;format}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Blueprint",(Option.mapx.blueprint~f:PipelineBlueprint.to_value));("Format",(Option.mapx.format~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letformat=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Format")inletblueprint=(Option.map~f:PipelineBlueprint.of_xml)(Xml.childxml_arg0"Blueprint")inmake?format?blueprint()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letformat=field_mapjson__"Format"String_.of_jsoninletblueprint=field_mapjson__"Blueprint"PipelineBlueprint.of_jsoninmake?format?blueprint()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves information about a specific blueprint for OpenSearch Ingestion. Blueprints are templates for the configuration needed for a CreatePipeline request. For more information, see Using blueprints to create a pipeline."]moduleGetPipelineBlueprintRequest=structtypenonrect={blueprintName:String_.t[@ocaml.doc"The name of the blueprint to retrieve."];format:BlueprintFormat.toption[@ocaml.doc"The format format of the blueprint to retrieve."]}letcontext_="GetPipelineBlueprintRequest"letmake?format=fun~blueprintName->fun()->{format;blueprintName}letto_valuex=structure_to_value[("BlueprintName",(Some(String_.to_valuex.blueprintName)));("format",(Option.mapx.format~f:BlueprintFormat.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letformat=(Option.map~f:BlueprintFormat.of_xml)(Xml.childxml_arg0"format")inletblueprintName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"BlueprintName")inmake?format~blueprintName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letformat=field_mapjson__"Format"BlueprintFormat.of_jsoninletblueprintName=field_map_exnjson__"BlueprintName"String_.of_jsoninmake?format~blueprintName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves information about a specific blueprint for OpenSearch Ingestion. Blueprints are templates for the configuration needed for a CreatePipeline request. For more information, see Using blueprints to create a pipeline."]moduleDeleteResourcePolicyResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a resource-based policy from an OpenSearch Ingestion resource."]moduleDeleteResourcePolicyRequest=structtypenonrect={resourceArn:PipelineArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource from which to delete the policy."]}letcontext_="DeleteResourcePolicyRequest"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("ResourceArn",(Some(PipelineArn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=PipelineArn.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"PipelineArn.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a resource-based policy from an OpenSearch Ingestion resource."]moduleDeletePipelineResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an OpenSearch Ingestion pipeline. For more information, see Deleting Amazon OpenSearch Ingestion pipelines."]moduleDeletePipelineRequest=structtypenonrect={pipelineName:PipelineName.t[@ocaml.doc"The name of the pipeline to delete."]}letcontext_="DeletePipelineRequest"letmake~pipelineName=fun()->{pipelineName}letto_valuex=structure_to_value[("PipelineName",(Some(PipelineName.to_valuex.pipelineName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpipelineName=PipelineName.of_xml(Xml.child_exn~context:context_xml_arg0"PipelineName")inmake~pipelineName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpipelineName=field_map_exnjson__"PipelineName"PipelineName.of_jsoninmake~pipelineName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an OpenSearch Ingestion pipeline. For more information, see Deleting Amazon OpenSearch Ingestion pipelines."]moduleDeletePipelineEndpointResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a VPC endpoint for an OpenSearch Ingestion pipeline."]moduleDeletePipelineEndpointRequest=structtypenonrect={endpointId:PipelineEndpointId.t[@ocaml.doc"The unique identifier of the pipeline endpoint to delete."]}letcontext_="DeletePipelineEndpointRequest"letmake~endpointId=fun()->{endpointId}letto_valuex=structure_to_value[("EndpointId",(Some(PipelineEndpointId.to_valuex.endpointId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendpointId=PipelineEndpointId.of_xml(Xml.child_exn~context:context_xml_arg0"EndpointId")inmake~endpointId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendpointId=field_map_exnjson__"EndpointId"PipelineEndpointId.of_jsoninmake~endpointId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a VPC endpoint for an OpenSearch Ingestion pipeline."]moduleCreatePipelineResponse=structtypenonrect={pipeline:Pipeline.toption[@ocaml.doc"Container for information about the created pipeline."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceAlreadyExistsExceptionofResourceAlreadyExistsException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?pipeline=fun()->{pipeline}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`ResourceAlreadyExistsExceptione->`Assoc[("error",(`String"ResourceAlreadyExistsException"));("details",(ResourceAlreadyExistsException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Pipeline",(Option.mapx.pipeline~f:Pipeline.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpipeline=(Option.map~f:Pipeline.of_xml)(Xml.childxml_arg0"Pipeline")inmake?pipeline()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpipeline=field_mapjson__"Pipeline"Pipeline.of_jsoninmake?pipeline()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an OpenSearch Ingestion pipeline. For more information, see Creating Amazon OpenSearch Ingestion pipelines."]moduleCreatePipelineRequest=structtypenonrect={pipelineName:PipelineName.t[@ocaml.doc"The name of the OpenSearch Ingestion pipeline to create. Pipeline names are unique across the pipelines owned by an account within an Amazon Web Services Region."];minUnits:PipelineUnits.t[@ocaml.doc"The minimum pipeline capacity, in Ingestion Compute Units (ICUs)."];maxUnits:PipelineUnits.t[@ocaml.doc"The maximum pipeline capacity, in Ingestion Compute Units (ICUs)."];pipelineConfigurationBody:PipelineConfigurationBody.t[@ocaml.doc"The pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with \\n."];logPublishingOptions:LogPublishingOptions.toption[@ocaml.doc"Key-value pairs to configure log publishing."];vpcOptions:VpcOptions.toption[@ocaml.doc"Container for the values required to configure VPC access for the pipeline. If you don't specify these values, OpenSearch Ingestion creates the pipeline with a public endpoint."];bufferOptions:BufferOptions.toption[@ocaml.doc"Key-value pairs to configure persistent buffering for the pipeline."];encryptionAtRestOptions:EncryptionAtRestOptions.toption[@ocaml.doc"Key-value pairs to configure encryption for data that is written to a persistent buffer."];tags:TagList.toption[@ocaml.doc"List of tags to add to the pipeline upon creation."];pipelineRoleArn:PipelineRoleArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the IAM role that grants the pipeline permission to access Amazon Web Services resources."]}letcontext_="CreatePipelineRequest"letmake?logPublishingOptions=fun?vpcOptions->fun?bufferOptions->fun?encryptionAtRestOptions->fun?tags->fun?pipelineRoleArn->fun~pipelineName->fun~minUnits->fun~maxUnits->fun~pipelineConfigurationBody->fun()->{logPublishingOptions;vpcOptions;bufferOptions;encryptionAtRestOptions;tags;pipelineRoleArn;pipelineName;minUnits;maxUnits;pipelineConfigurationBody}letto_valuex=structure_to_value[("PipelineName",(Some(PipelineName.to_valuex.pipelineName)));("MinUnits",(Some(PipelineUnits.to_valuex.minUnits)));("MaxUnits",(Some(PipelineUnits.to_valuex.maxUnits)));("PipelineConfigurationBody",(Some(PipelineConfigurationBody.to_valuex.pipelineConfigurationBody)));("LogPublishingOptions",(Option.mapx.logPublishingOptions~f:LogPublishingOptions.to_value));("VpcOptions",(Option.mapx.vpcOptions~f:VpcOptions.to_value));("BufferOptions",(Option.mapx.bufferOptions~f:BufferOptions.to_value));("EncryptionAtRestOptions",(Option.mapx.encryptionAtRestOptions~f:EncryptionAtRestOptions.to_value));("Tags",(Option.mapx.tags~f:TagList.to_value));("PipelineRoleArn",(Option.mapx.pipelineRoleArn~f:PipelineRoleArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpipelineRoleArn=(Option.map~f:PipelineRoleArn.of_xml)(Xml.childxml_arg0"PipelineRoleArn")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletencryptionAtRestOptions=(Option.map~f:EncryptionAtRestOptions.of_xml)(Xml.childxml_arg0"EncryptionAtRestOptions")inletbufferOptions=(Option.map~f:BufferOptions.of_xml)(Xml.childxml_arg0"BufferOptions")inletvpcOptions=(Option.map~f:VpcOptions.of_xml)(Xml.childxml_arg0"VpcOptions")inletlogPublishingOptions=(Option.map~f:LogPublishingOptions.of_xml)(Xml.childxml_arg0"LogPublishingOptions")inletpipelineConfigurationBody=PipelineConfigurationBody.of_xml(Xml.child_exn~context:context_xml_arg0"PipelineConfigurationBody")inletmaxUnits=PipelineUnits.of_xml(Xml.child_exn~context:context_xml_arg0"MaxUnits")inletminUnits=PipelineUnits.of_xml(Xml.child_exn~context:context_xml_arg0"MinUnits")inletpipelineName=PipelineName.of_xml(Xml.child_exn~context:context_xml_arg0"PipelineName")inmake?pipelineRoleArn?tags?encryptionAtRestOptions?bufferOptions?vpcOptions?logPublishingOptions~pipelineConfigurationBody~maxUnits~minUnits~pipelineName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpipelineRoleArn=field_mapjson__"PipelineRoleArn"PipelineRoleArn.of_jsoninlettags=field_mapjson__"Tags"TagList.of_jsoninletencryptionAtRestOptions=field_mapjson__"EncryptionAtRestOptions"EncryptionAtRestOptions.of_jsoninletbufferOptions=field_mapjson__"BufferOptions"BufferOptions.of_jsoninletvpcOptions=field_mapjson__"VpcOptions"VpcOptions.of_jsoninletlogPublishingOptions=field_mapjson__"LogPublishingOptions"LogPublishingOptions.of_jsoninletpipelineConfigurationBody=field_map_exnjson__"PipelineConfigurationBody"PipelineConfigurationBody.of_jsoninletmaxUnits=field_map_exnjson__"MaxUnits"PipelineUnits.of_jsoninletminUnits=field_map_exnjson__"MinUnits"PipelineUnits.of_jsoninletpipelineName=field_map_exnjson__"PipelineName"PipelineName.of_jsoninmake?pipelineRoleArn?tags?encryptionAtRestOptions?bufferOptions?vpcOptions?logPublishingOptions~pipelineConfigurationBody~maxUnits~minUnits~pipelineName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an OpenSearch Ingestion pipeline. For more information, see Creating Amazon OpenSearch Ingestion pipelines."]moduleCreatePipelineEndpointResponse=structtypenonrect={pipelineArn:PipelineArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the pipeline associated with the endpoint."];endpointId:PipelineEndpointId.toption[@ocaml.doc"The unique identifier of the pipeline endpoint."];status:PipelineEndpointStatus.toption[@ocaml.doc"The current status of the pipeline endpoint."];vpcId:String_.toption[@ocaml.doc"The ID of the VPC where the pipeline endpoint was created."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DisabledOperationExceptionofDisabledOperationException.t|`InternalExceptionofInternalException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?pipelineArn=fun?endpointId->fun?status->fun?vpcId->fun()->{pipelineArn;endpointId;status;vpcId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_jsonjson)|"InternalException"->`InternalException(InternalException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DisabledOperationException"->`DisabledOperationException(DisabledOperationException.of_xmlxml)|"InternalException"->`InternalException(InternalException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DisabledOperationExceptione->`Assoc[("error",(`String"DisabledOperationException"));("details",(DisabledOperationException.to_jsone))]|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("PipelineArn",(Option.mapx.pipelineArn~f:PipelineArn.to_value));("EndpointId",(Option.mapx.endpointId~f:PipelineEndpointId.to_value));("Status",(Option.mapx.status~f:PipelineEndpointStatus.to_value));("VpcId",(Option.mapx.vpcId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvpcId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"VpcId")inletstatus=(Option.map~f:PipelineEndpointStatus.of_xml)(Xml.childxml_arg0"Status")inletendpointId=(Option.map~f:PipelineEndpointId.of_xml)(Xml.childxml_arg0"EndpointId")inletpipelineArn=(Option.map~f:PipelineArn.of_xml)(Xml.childxml_arg0"PipelineArn")inmake?vpcId?status?endpointId?pipelineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvpcId=field_mapjson__"VpcId"String_.of_jsoninletstatus=field_mapjson__"Status"PipelineEndpointStatus.of_jsoninletendpointId=field_mapjson__"EndpointId"PipelineEndpointId.of_jsoninletpipelineArn=field_mapjson__"PipelineArn"PipelineArn.of_jsoninmake?vpcId?status?endpointId?pipelineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a VPC endpoint for an OpenSearch Ingestion pipeline. Pipeline endpoints allow you to ingest data from your VPC into pipelines that you have access to."]moduleCreatePipelineEndpointRequest=structtypenonrect={pipelineArn:PipelineArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the pipeline to create the endpoint for."];vpcOptions:PipelineEndpointVpcOptions.t[@ocaml.doc"Container for the VPC configuration for the pipeline endpoint, including subnet IDs and security group IDs."]}letcontext_="CreatePipelineEndpointRequest"letmake~pipelineArn=fun~vpcOptions->fun()->{pipelineArn;vpcOptions}letto_valuex=structure_to_value[("PipelineArn",(Some(PipelineArn.to_valuex.pipelineArn)));("VpcOptions",(Some(PipelineEndpointVpcOptions.to_valuex.vpcOptions)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvpcOptions=PipelineEndpointVpcOptions.of_xml(Xml.child_exn~context:context_xml_arg0"VpcOptions")inletpipelineArn=PipelineArn.of_xml(Xml.child_exn~context:context_xml_arg0"PipelineArn")inmake~vpcOptions~pipelineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvpcOptions=field_map_exnjson__"VpcOptions"PipelineEndpointVpcOptions.of_jsoninletpipelineArn=field_map_exnjson__"PipelineArn"PipelineArn.of_jsoninmake~vpcOptions~pipelineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a VPC endpoint for an OpenSearch Ingestion pipeline. Pipeline endpoints allow you to ingest data from your VPC into pipelines that you have access to."]