1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357(* 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.mwaaletapiVersion="2020-07-01"letendpointPrefix="airflow"letserviceFullName="AmazonMWAA"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[]))])moduleString_=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_valueendmoduleDimension=structtypenonrect={name:String_.t[@ocaml.doc"Internal only. The name of the dimension."];value:String_.t[@ocaml.doc"Internal only. The value of the dimension."]}letcontext_="Dimension"letmake~name=fun~value->fun()->{name;value}letto_valuex=structure_to_value[("Name",(Some(String_.to_valuex.name)));("Value",(Some(String_.to_valuex.value)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=String_.of_xml(Xml.child_exn~context:context_xml_arg0"Value")inletname=String_.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~value~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_map_exnjson__"Value"String_.of_jsoninletname=field_map_exnjson__"Name"String_.of_jsoninmake~value~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Internal only. Represents the dimensions of a metric. To learn more about the metrics published to Amazon CloudWatch, see Amazon MWAA performance metrics in Amazon CloudWatch."]moduleDouble=structtypenonrect=floatletmakei=iletof_string=Float.of_stringletto_valuex=`Doublexletto_queryv=to_queryto_valuevletto_headerx=Stdlib.Float.to_stringxletof_xmlxml_arg0=Float.of_string(string_of_xml~kind:"a double"xml_arg0)letof_jsonj=float_of_json~kind:"a double"jletto_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_valueendmoduleErrorCode=structtypenonrect=stringletcontext_="ErrorCode"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:"ErrorCode"jletto_json=simple_to_jsonto_valueendmoduleErrorMessage=structtypenonrect=stringletcontext_="ErrorMessage"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1024)>>=(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:"ErrorMessage"jletto_json=simple_to_jsonto_valueendmoduleCloudWatchLogGroupArn=structtypenonrect=stringletcontext_="CloudWatchLogGroupArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1224)>>=(fun()->check_patterni~pattern:"arn:aws(-[a-z]+)?:logs:[a-z0-9\\-]+:\\d{12}:log-group:\\w+.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CloudWatchLogGroupArn"jletto_json=simple_to_jsonto_valueendmoduleLoggingEnabled=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_valueendmoduleLoggingLevel=structtypenonrect=|CRITICAL|ERROR|WARNING|INFO|DEBUG|Non_static_idofstringletmakei=iletto_string=function|CRITICAL->"CRITICAL"|ERROR->"ERROR"|WARNING->"WARNING"|INFO->"INFO"|DEBUG->"DEBUG"|Non_static_ids->sletof_string=function|"CRITICAL"->CRITICAL|"ERROR"->ERROR|"WARNING"->WARNING|"INFO"->INFO|"DEBUG"->DEBUG|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 LoggingLevel"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"LoggingLevel"j)letto_json=simple_to_jsonto_valueendmoduleSecurityGroupId=structtypenonrect=stringletcontext_="SecurityGroupId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:"sg-[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:"SecurityGroupId"jletto_json=simple_to_jsonto_valueendmoduleSubnetId=structtypenonrect=stringletcontext_="SubnetId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:"subnet-[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:"SubnetId"jletto_json=simple_to_jsonto_valueendmoduleDimensions=structtypenonrect=Dimension.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Dimension.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:Dimension.of_xml)letof_jsonj=list_of_json~kind:"Dimensions"~of_json:Dimension.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleStatisticSet=structtypenonrect={sampleCount:Integer.toption[@ocaml.doc"Internal only. The number of samples used for the statistic set."];sum:Double.toption[@ocaml.doc"Internal only. The sum of values for the sample set."];minimum:Double.toption[@ocaml.doc"Internal only. The minimum value of the sample set."];maximum:Double.toption[@ocaml.doc"Internal only. The maximum value of the sample set."]}letmake?sampleCount=fun?sum->fun?minimum->fun?maximum->fun()->{sampleCount;sum;minimum;maximum}letto_valuex=structure_to_value[("SampleCount",(Option.mapx.sampleCount~f:Integer.to_value));("Sum",(Option.mapx.sum~f:Double.to_value));("Minimum",(Option.mapx.minimum~f:Double.to_value));("Maximum",(Option.mapx.maximum~f:Double.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaximum=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"Maximum")inletminimum=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"Minimum")inletsum=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"Sum")inletsampleCount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"SampleCount")inmake?maximum?minimum?sum?sampleCount()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaximum=field_mapjson__"Maximum"Double.of_jsoninletminimum=field_mapjson__"Minimum"Double.of_jsoninletsum=field_mapjson__"Sum"Double.of_jsoninletsampleCount=field_mapjson__"SampleCount"Integer.of_jsoninmake?maximum?minimum?sum?sampleCount()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Internal only. Represents a set of statistics that describe a specific metric. To learn more about the metrics published to Amazon CloudWatch, see Amazon MWAA performance metrics in Amazon CloudWatch."]moduleTimestamp=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_valueendmoduleUnit=structtypenonrect=|Seconds|Microseconds|Milliseconds|Bytes|Kilobytes|Megabytes|Gigabytes|Terabytes|Bits|Kilobits|Megabits|Gigabits|Terabits|Percent|Count|Bytes_Second|Kilobytes_Second|Megabytes_Second|Gigabytes_Second|Terabytes_Second|Bits_Second|Kilobits_Second|Megabits_Second|Gigabits_Second|Terabits_Second|Count_Second|None|Non_static_idofstringletmakei=iletto_string=function|Seconds->"Seconds"|Microseconds->"Microseconds"|Milliseconds->"Milliseconds"|Bytes->"Bytes"|Kilobytes->"Kilobytes"|Megabytes->"Megabytes"|Gigabytes->"Gigabytes"|Terabytes->"Terabytes"|Bits->"Bits"|Kilobits->"Kilobits"|Megabits->"Megabits"|Gigabits->"Gigabits"|Terabits->"Terabits"|Percent->"Percent"|Count->"Count"|Bytes_Second->"Bytes/Second"|Kilobytes_Second->"Kilobytes/Second"|Megabytes_Second->"Megabytes/Second"|Gigabytes_Second->"Gigabytes/Second"|Terabytes_Second->"Terabytes/Second"|Bits_Second->"Bits/Second"|Kilobits_Second->"Kilobits/Second"|Megabits_Second->"Megabits/Second"|Gigabits_Second->"Gigabits/Second"|Terabits_Second->"Terabits/Second"|Count_Second->"Count/Second"|None->"None"|Non_static_ids->sletof_string=function|"Seconds"->Seconds|"Microseconds"->Microseconds|"Milliseconds"->Milliseconds|"Bytes"->Bytes|"Kilobytes"->Kilobytes|"Megabytes"->Megabytes|"Gigabytes"->Gigabytes|"Terabytes"->Terabytes|"Bits"->Bits|"Kilobits"->Kilobits|"Megabits"->Megabits|"Gigabits"->Gigabits|"Terabits"->Terabits|"Percent"->Percent|"Count"->Count|"Bytes/Second"->Bytes_Second|"Kilobytes/Second"->Kilobytes_Second|"Megabytes/Second"->Megabytes_Second|"Gigabytes/Second"->Gigabytes_Second|"Terabytes/Second"->Terabytes_Second|"Bits/Second"->Bits_Second|"Kilobits/Second"->Kilobits_Second|"Megabits/Second"->Megabits_Second|"Gigabits/Second"->Gigabits_Second|"Terabits/Second"->Terabits_Second|"Count/Second"->Count_Second|"None"->None|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration Unit"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Unit"j)letto_json=simple_to_jsonto_valueendmoduleConfigKey=structtypenonrect=stringletcontext_="ConfigKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"[a-z]+([a-z0-9._]*[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:"ConfigKey"jletto_json=simple_to_jsonto_valueendmoduleConfigValue=structtypenonrect=stringletcontext_="ConfigValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:65536)>>=(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:"ConfigValue"jletto_json=simple_to_jsonto_valueendmoduleUpdateCreatedAt=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_valueendmoduleUpdateError=structtypenonrect={errorCode:ErrorCode.toption[@ocaml.doc"The error code that corresponds to the error with the last update."];errorMessage:ErrorMessage.toption[@ocaml.doc"The error message that corresponds to the error code."]}letmake?errorCode=fun?errorMessage->fun()->{errorCode;errorMessage}letto_valuex=structure_to_value[("ErrorCode",(Option.mapx.errorCode~f:ErrorCode.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inmake?errorMessage?errorCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"ErrorMessage.of_jsoninleterrorCode=field_mapjson__"ErrorCode"ErrorCode.of_jsoninmake?errorMessage?errorCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the error(s) encountered with the last update of the environment."]moduleUpdateSource=structtypenonrect=stringletcontext_="UpdateSource"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(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:"UpdateSource"jletto_json=simple_to_jsonto_valueendmoduleUpdateStatus=structtypenonrect=|SUCCESS|PENDING|FAILED|Non_static_idofstringletmakei=iletto_string=function|SUCCESS->"SUCCESS"|PENDING->"PENDING"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"SUCCESS"->SUCCESS|"PENDING"->PENDING|"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 UpdateStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"UpdateStatus"j)letto_json=simple_to_jsonto_valueendmoduleWorkerReplacementStrategy=structtypenonrect=|FORCED|GRACEFUL|Non_static_idofstringletmakei=iletto_string=function|FORCED->"FORCED"|GRACEFUL->"GRACEFUL"|Non_static_ids->sletof_string=function|"FORCED"->FORCED|"GRACEFUL"->GRACEFUL|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 WorkerReplacementStrategy"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WorkerReplacementStrategy"j)letto_json=simple_to_jsonto_valueendmoduleModuleLoggingConfiguration=structtypenonrect={enabled:LoggingEnabled.toption[@ocaml.doc"Indicates whether the Apache Airflow log type (e.g. DagProcessingLogs) is enabled."];logLevel:LoggingLevel.toption[@ocaml.doc"The Apache Airflow log level for the log type (e.g. DagProcessingLogs)."];cloudWatchLogGroupArn:CloudWatchLogGroupArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) for the CloudWatch Logs group where the Apache Airflow log type (e.g. DagProcessingLogs) is published. For example, arn:aws:logs:us-east-1:123456789012:log-group:airflow-MyMWAAEnvironment-MwaaEnvironment-DAGProcessing:*."]}letmake?enabled=fun?logLevel->fun?cloudWatchLogGroupArn->fun()->{enabled;logLevel;cloudWatchLogGroupArn}letto_valuex=structure_to_value[("Enabled",(Option.mapx.enabled~f:LoggingEnabled.to_value));("LogLevel",(Option.mapx.logLevel~f:LoggingLevel.to_value));("CloudWatchLogGroupArn",(Option.mapx.cloudWatchLogGroupArn~f:CloudWatchLogGroupArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcloudWatchLogGroupArn=(Option.map~f:CloudWatchLogGroupArn.of_xml)(Xml.childxml_arg0"CloudWatchLogGroupArn")inletlogLevel=(Option.map~f:LoggingLevel.of_xml)(Xml.childxml_arg0"LogLevel")inletenabled=(Option.map~f:LoggingEnabled.of_xml)(Xml.childxml_arg0"Enabled")inmake?cloudWatchLogGroupArn?logLevel?enabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcloudWatchLogGroupArn=field_mapjson__"CloudWatchLogGroupArn"CloudWatchLogGroupArn.of_jsoninletlogLevel=field_mapjson__"LogLevel"LoggingLevel.of_jsoninletenabled=field_mapjson__"Enabled"LoggingEnabled.of_jsoninmake?cloudWatchLogGroupArn?logLevel?enabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the Apache Airflow log details for the log type (e.g. DagProcessingLogs)."]moduleSecurityGroupList=structtypenonrect=SecurityGroupId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:5)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f: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:"SecurityGroupList"~of_json:SecurityGroupId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSubnetList=structtypenonrect=SubnetId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:2)>>=(fun()->check_list_mini~min:2));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SubnetId.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:SubnetId.of_xml)letof_jsonj=list_of_json~kind:"SubnetList"~of_json:SubnetId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)")));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:1)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)")));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_valueendmoduleModuleLoggingConfigurationInput=structtypenonrect={enabled:LoggingEnabled.t[@ocaml.doc"Indicates whether to enable the Apache Airflow log type (e.g. DagProcessingLogs)."];logLevel:LoggingLevel.t[@ocaml.doc"Defines the Apache Airflow log level (e.g. INFO) to send to CloudWatch Logs."]}letcontext_="ModuleLoggingConfigurationInput"letmake~enabled=fun~logLevel->fun()->{enabled;logLevel}letto_valuex=structure_to_value[("Enabled",(Some(LoggingEnabled.to_valuex.enabled)));("LogLevel",(Some(LoggingLevel.to_valuex.logLevel)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlogLevel=LoggingLevel.of_xml(Xml.child_exn~context:context_xml_arg0"LogLevel")inletenabled=LoggingEnabled.of_xml(Xml.child_exn~context:context_xml_arg0"Enabled")inmake~logLevel~enabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlogLevel=field_map_exnjson__"LogLevel"LoggingLevel.of_jsoninletenabled=field_map_exnjson__"Enabled"LoggingEnabled.of_jsoninmake~logLevel~enabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Enables the Apache Airflow log type (e.g. DagProcessingLogs) and defines the log level to send to CloudWatch Logs (e.g. INFO)."]moduleMetricDatum=structtypenonrect={metricName:String_.t[@ocaml.doc"Internal only. The name of the metric."];timestamp:Timestamp.t[@ocaml.doc"Internal only. The time the metric data was received, expressed as an ISO 8601 datetime string."];dimensions:Dimensions.toption[@ocaml.doc"Internal only. The dimensions associated with the metric."];value:Double.toption[@ocaml.doc"Internal only. The value for the metric."];unit:Unit.toption[@ocaml.doc"Internal only. The unit used to store the metric."];statisticValues:StatisticSet.toption[@ocaml.doc"Internal only. The statistical values for the metric."]}letcontext_="MetricDatum"letmake?dimensions=fun?value->fun?unit->fun?statisticValues->fun~metricName->fun~timestamp->fun()->{dimensions;value;unit;statisticValues;metricName;timestamp}letto_valuex=structure_to_value[("MetricName",(Some(String_.to_valuex.metricName)));("Timestamp",(Some(Timestamp.to_valuex.timestamp)));("Dimensions",(Option.mapx.dimensions~f:Dimensions.to_value));("Value",(Option.mapx.value~f:Double.to_value));("Unit",(Option.mapx.unit~f:Unit.to_value));("StatisticValues",(Option.mapx.statisticValues~f:StatisticSet.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatisticValues=(Option.map~f:StatisticSet.of_xml)(Xml.childxml_arg0"StatisticValues")inletunit=(Option.map~f:Unit.of_xml)(Xml.childxml_arg0"Unit")inletvalue=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"Value")inletdimensions=(Option.map~f:Dimensions.of_xml)(Xml.childxml_arg0"Dimensions")inlettimestamp=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"Timestamp")inletmetricName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"MetricName")inmake?statisticValues?unit?value?dimensions~timestamp~metricName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatisticValues=field_mapjson__"StatisticValues"StatisticSet.of_jsoninletunit=field_mapjson__"Unit"Unit.of_jsoninletvalue=field_mapjson__"Value"Double.of_jsoninletdimensions=field_mapjson__"Dimensions"Dimensions.of_jsoninlettimestamp=field_map_exnjson__"Timestamp"Timestamp.of_jsoninletmetricName=field_map_exnjson__"MetricName"String_.of_jsoninmake?statisticValues?unit?value?dimensions~timestamp~metricName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Internal only. Collects Apache Airflow metrics. To learn more about the metrics published to Amazon CloudWatch, see Amazon MWAA performance metrics in Amazon CloudWatch."]moduleEnvironmentName=structtypenonrect=stringletcontext_="EnvironmentName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:80)>>=(fun()->check_patterni~pattern:"[a-zA-Z][0-9a-zA-Z-_]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EnvironmentName"jletto_json=simple_to_jsonto_valueendmoduleRestApiResponse=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_valuevendmoduleAirflowConfigurationOptions=structtypenonrect=(ConfigKey.t*ConfigValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((ConfigKey.of_stringchopped),(ConfigValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(ConfigKey.to_valuex)|>(funx->(ConfigValue.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:ConfigKey.of_string~of_json:ConfigValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAirflowVersion=structtypenonrect=stringletcontext_="AirflowVersion"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:32)>>=(fun()->check_patterni~pattern:"[0-9a-z.]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AirflowVersion"jletto_json=simple_to_jsonto_valueendmoduleCeleryExecutorQueue=structtypenonrect=stringletcontext_="CeleryExecutorQueue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1224)>>=(fun()->check_patterni~pattern:"arn:aws(-[a-z]+)?:sqs:[a-z0-9\\-]+:\\d{12}:[a-zA-Z_0-9+=,.@\\-_/]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CeleryExecutorQueue"jletto_json=simple_to_jsonto_valueendmoduleCreatedAt=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_valueendmoduleEndpointManagement=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 EndpointManagement"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EndpointManagement"j)letto_json=simple_to_jsonto_valueendmoduleEnvironmentArn=structtypenonrect=stringletcontext_="EnvironmentArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1224)>>=(fun()->check_patterni~pattern:"arn:aws(-[a-z]+)?:airflow:[a-z0-9\\-]+:\\d{12}:environment/\\w+.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EnvironmentArn"jletto_json=simple_to_jsonto_valueendmoduleEnvironmentClass=structtypenonrect=stringletcontext_="EnvironmentClass"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(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:"EnvironmentClass"jletto_json=simple_to_jsonto_valueendmoduleEnvironmentStatus=structtypenonrect=|CREATING|CREATE_FAILED|AVAILABLE|UPDATING|DELETING|DELETED|UNAVAILABLE|UPDATE_FAILED|ROLLING_BACK|CREATING_SNAPSHOT|PENDING|MAINTENANCE|Non_static_idofstringletmakei=iletto_string=function|CREATING->"CREATING"|CREATE_FAILED->"CREATE_FAILED"|AVAILABLE->"AVAILABLE"|UPDATING->"UPDATING"|DELETING->"DELETING"|DELETED->"DELETED"|UNAVAILABLE->"UNAVAILABLE"|UPDATE_FAILED->"UPDATE_FAILED"|ROLLING_BACK->"ROLLING_BACK"|CREATING_SNAPSHOT->"CREATING_SNAPSHOT"|PENDING->"PENDING"|MAINTENANCE->"MAINTENANCE"|Non_static_ids->sletof_string=function|"CREATING"->CREATING|"CREATE_FAILED"->CREATE_FAILED|"AVAILABLE"->AVAILABLE|"UPDATING"->UPDATING|"DELETING"->DELETING|"DELETED"->DELETED|"UNAVAILABLE"->UNAVAILABLE|"UPDATE_FAILED"->UPDATE_FAILED|"ROLLING_BACK"->ROLLING_BACK|"CREATING_SNAPSHOT"->CREATING_SNAPSHOT|"PENDING"->PENDING|"MAINTENANCE"->MAINTENANCE|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration EnvironmentStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EnvironmentStatus"j)letto_json=simple_to_jsonto_valueendmoduleIamRoleArn=structtypenonrect=stringletcontext_="IamRoleArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1224)>>=(fun()->check_patterni~pattern:"arn:aws(-[a-z]+)?:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IamRoleArn"jletto_json=simple_to_jsonto_valueendmoduleKmsKey=structtypenonrect=stringletcontext_="KmsKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1224)>>=(fun()->check_patterni~pattern:"(((arn:aws(-[a-z]+)?:kms:[a-z]{2}-[a-z]+-\\d:\\d+:)?key\\/)?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|(arn:aws(-[a-z]+)?:kms:[a-z]{2}-[a-z]+-\\d:\\d+:)?alias/.+)")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"KmsKey"jletto_json=simple_to_jsonto_valueendmoduleLastUpdate=structtypenonrect={status:UpdateStatus.toption[@ocaml.doc"The status of the last update on the environment."];createdAt:UpdateCreatedAt.toption[@ocaml.doc"The day and time of the last update on the environment."];error:UpdateError.toption[@ocaml.doc"The error that was encountered during the last update of the environment."];source:UpdateSource.toption[@ocaml.doc"The source of the last update to the environment. Includes internal processes by Amazon MWAA, such as an environment maintenance update."];workerReplacementStrategy:WorkerReplacementStrategy.toption[@ocaml.doc"The worker replacement strategy used in the last update of the environment."]}letmake?status=fun?createdAt->fun?error->fun?source->fun?workerReplacementStrategy->fun()->{status;createdAt;error;source;workerReplacementStrategy}letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:UpdateStatus.to_value));("CreatedAt",(Option.mapx.createdAt~f:UpdateCreatedAt.to_value));("Error",(Option.mapx.error~f:UpdateError.to_value));("Source",(Option.mapx.source~f:UpdateSource.to_value));("WorkerReplacementStrategy",(Option.mapx.workerReplacementStrategy~f:WorkerReplacementStrategy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkerReplacementStrategy=(Option.map~f:WorkerReplacementStrategy.of_xml)(Xml.childxml_arg0"WorkerReplacementStrategy")inletsource=(Option.map~f:UpdateSource.of_xml)(Xml.childxml_arg0"Source")inleterror=(Option.map~f:UpdateError.of_xml)(Xml.childxml_arg0"Error")inletcreatedAt=(Option.map~f:UpdateCreatedAt.of_xml)(Xml.childxml_arg0"CreatedAt")inletstatus=(Option.map~f:UpdateStatus.of_xml)(Xml.childxml_arg0"Status")inmake?workerReplacementStrategy?source?error?createdAt?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkerReplacementStrategy=field_mapjson__"WorkerReplacementStrategy"WorkerReplacementStrategy.of_jsoninletsource=field_mapjson__"Source"UpdateSource.of_jsoninleterror=field_mapjson__"Error"UpdateError.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"UpdateCreatedAt.of_jsoninletstatus=field_mapjson__"Status"UpdateStatus.of_jsoninmake?workerReplacementStrategy?source?error?createdAt?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the status of the last update on the environment, and any errors that were encountered."]moduleLoggingConfiguration=structtypenonrect={dagProcessingLogs:ModuleLoggingConfiguration.toption[@ocaml.doc"The Airflow DAG processing logs published to CloudWatch Logs and the log level."];schedulerLogs:ModuleLoggingConfiguration.toption[@ocaml.doc"The Airflow scheduler logs published to CloudWatch Logs and the log level."];webserverLogs:ModuleLoggingConfiguration.toption[@ocaml.doc"The Airflow web server logs published to CloudWatch Logs and the log level."];workerLogs:ModuleLoggingConfiguration.toption[@ocaml.doc"The Airflow worker logs published to CloudWatch Logs and the log level."];taskLogs:ModuleLoggingConfiguration.toption[@ocaml.doc"The Airflow task logs published to CloudWatch Logs and the log level."]}letmake?dagProcessingLogs=fun?schedulerLogs->fun?webserverLogs->fun?workerLogs->fun?taskLogs->fun()->{dagProcessingLogs;schedulerLogs;webserverLogs;workerLogs;taskLogs}letto_valuex=structure_to_value[("DagProcessingLogs",(Option.mapx.dagProcessingLogs~f:ModuleLoggingConfiguration.to_value));("SchedulerLogs",(Option.mapx.schedulerLogs~f:ModuleLoggingConfiguration.to_value));("WebserverLogs",(Option.mapx.webserverLogs~f:ModuleLoggingConfiguration.to_value));("WorkerLogs",(Option.mapx.workerLogs~f:ModuleLoggingConfiguration.to_value));("TaskLogs",(Option.mapx.taskLogs~f:ModuleLoggingConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskLogs=(Option.map~f:ModuleLoggingConfiguration.of_xml)(Xml.childxml_arg0"TaskLogs")inletworkerLogs=(Option.map~f:ModuleLoggingConfiguration.of_xml)(Xml.childxml_arg0"WorkerLogs")inletwebserverLogs=(Option.map~f:ModuleLoggingConfiguration.of_xml)(Xml.childxml_arg0"WebserverLogs")inletschedulerLogs=(Option.map~f:ModuleLoggingConfiguration.of_xml)(Xml.childxml_arg0"SchedulerLogs")inletdagProcessingLogs=(Option.map~f:ModuleLoggingConfiguration.of_xml)(Xml.childxml_arg0"DagProcessingLogs")inmake?taskLogs?workerLogs?webserverLogs?schedulerLogs?dagProcessingLogs()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskLogs=field_mapjson__"TaskLogs"ModuleLoggingConfiguration.of_jsoninletworkerLogs=field_mapjson__"WorkerLogs"ModuleLoggingConfiguration.of_jsoninletwebserverLogs=field_mapjson__"WebserverLogs"ModuleLoggingConfiguration.of_jsoninletschedulerLogs=field_mapjson__"SchedulerLogs"ModuleLoggingConfiguration.of_jsoninletdagProcessingLogs=field_mapjson__"DagProcessingLogs"ModuleLoggingConfiguration.of_jsoninmake?taskLogs?workerLogs?webserverLogs?schedulerLogs?dagProcessingLogs()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the Apache Airflow log types that are published to CloudWatch Logs."]moduleMaxWebservers=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 MaxWebservers"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleMaxWorkers=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 MaxWorkers"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleMinWebservers=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 MinWebservers"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleMinWorkers=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 MinWorkers"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleNetworkConfiguration=structtypenonrect={subnetIds:SubnetList.toption[@ocaml.doc"A list of subnet IDs. For more information, refer to About networking on Amazon MWAA."];securityGroupIds:SecurityGroupList.toption[@ocaml.doc"A list of security group IDs. For more information, refer to Security in your VPC on Amazon MWAA."]}letmake?subnetIds=fun?securityGroupIds->fun()->{subnetIds;securityGroupIds}letto_valuex=structure_to_value[("SubnetIds",(Option.mapx.subnetIds~f:SubnetList.to_value));("SecurityGroupIds",(Option.mapx.securityGroupIds~f:SecurityGroupList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsecurityGroupIds=(Option.map~f:SecurityGroupList.of_xml)(Xml.childxml_arg0"SecurityGroupIds")inletsubnetIds=(Option.map~f:SubnetList.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"SecurityGroupList.of_jsoninletsubnetIds=field_mapjson__"SubnetIds"SubnetList.of_jsoninmake?securityGroupIds?subnetIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, refer to About networking on Amazon MWAA."]moduleRelativePath=structtypenonrect=stringletcontext_="RelativePath"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1024)>>=(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:"RelativePath"jletto_json=simple_to_jsonto_valueendmoduleS3BucketArn=structtypenonrect=stringletcontext_="S3BucketArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1224)>>=(fun()->check_patterni~pattern:"arn:aws(-[a-z]+)?:s3:::[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:"S3BucketArn"jletto_json=simple_to_jsonto_valueendmoduleS3ObjectVersion=structtypenonrect=stringletcontext_="S3ObjectVersion"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(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:"S3ObjectVersion"jletto_json=simple_to_jsonto_valueendmoduleSchedulers=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_maxi~max:5);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 Schedulers"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleTagMap=structtypenonrect=(TagKey.t*TagValue.t)listletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((TagKey.of_stringchopped),(TagValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(TagKey.to_valuex)|>(funx->(TagValue.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:TagKey.of_string~of_json:TagValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleVpcEndpointServiceName=structtypenonrect=stringletcontext_="VpcEndpointServiceName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1224)>>=(fun()->check_patterni~pattern:"([a-z.-]+)?com\\.amazonaws\\.vpce\\.[a-z0-9\\-]+\\.[a-zA-Z_0-9+=,.@\\-_/]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"VpcEndpointServiceName"jletto_json=simple_to_jsonto_valueendmoduleWebserverAccessMode=structtypenonrect=|PRIVATE_ONLY|PUBLIC_ONLY|PUBLIC_AND_PRIVATE|Non_static_idofstringletmakei=iletto_string=function|PRIVATE_ONLY->"PRIVATE_ONLY"|PUBLIC_ONLY->"PUBLIC_ONLY"|PUBLIC_AND_PRIVATE->"PUBLIC_AND_PRIVATE"|Non_static_ids->sletof_string=function|"PRIVATE_ONLY"->PRIVATE_ONLY|"PUBLIC_ONLY"->PUBLIC_ONLY|"PUBLIC_AND_PRIVATE"->PUBLIC_AND_PRIVATE|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 WebserverAccessMode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WebserverAccessMode"j)letto_json=simple_to_jsonto_valueendmoduleWebserverUrl=structtypenonrect=stringletcontext_="WebserverUrl"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"https://.+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"WebserverUrl"jletto_json=simple_to_jsonto_valueendmoduleWeeklyMaintenanceWindowStart=structtypenonrect=stringletcontext_="WeeklyMaintenanceWindowStart"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:9)>>=(fun()->check_patterni~pattern:".*(MON|TUE|WED|THU|FRI|SAT|SUN):([01]\\d|2[0-3]):(00|30).*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"WeeklyMaintenanceWindowStart"jletto_json=simple_to_jsonto_valueendmoduleInternalServerException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"InternalServerException: An internal error has occurred."]moduleResourceNotFoundException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"ResourceNotFoundException: The resource is not available."]moduleServiceUnavailableException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"ServiceUnavailableException: The service is currently unavailable."]moduleValidationException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"ValidationException: The provided input is not valid."]moduleLoggingConfigurationInput=structtypenonrect={dagProcessingLogs:ModuleLoggingConfigurationInput.toption[@ocaml.doc"Publishes Airflow DAG processing logs to CloudWatch Logs."];schedulerLogs:ModuleLoggingConfigurationInput.toption[@ocaml.doc"Publishes Airflow scheduler logs to CloudWatch Logs."];webserverLogs:ModuleLoggingConfigurationInput.toption[@ocaml.doc"Publishes Airflow web server logs to CloudWatch Logs."];workerLogs:ModuleLoggingConfigurationInput.toption[@ocaml.doc"Publishes Airflow worker logs to CloudWatch Logs."];taskLogs:ModuleLoggingConfigurationInput.toption[@ocaml.doc"Publishes Airflow task logs to CloudWatch Logs."]}letmake?dagProcessingLogs=fun?schedulerLogs->fun?webserverLogs->fun?workerLogs->fun?taskLogs->fun()->{dagProcessingLogs;schedulerLogs;webserverLogs;workerLogs;taskLogs}letto_valuex=structure_to_value[("DagProcessingLogs",(Option.mapx.dagProcessingLogs~f:ModuleLoggingConfigurationInput.to_value));("SchedulerLogs",(Option.mapx.schedulerLogs~f:ModuleLoggingConfigurationInput.to_value));("WebserverLogs",(Option.mapx.webserverLogs~f:ModuleLoggingConfigurationInput.to_value));("WorkerLogs",(Option.mapx.workerLogs~f:ModuleLoggingConfigurationInput.to_value));("TaskLogs",(Option.mapx.taskLogs~f:ModuleLoggingConfigurationInput.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskLogs=(Option.map~f:ModuleLoggingConfigurationInput.of_xml)(Xml.childxml_arg0"TaskLogs")inletworkerLogs=(Option.map~f:ModuleLoggingConfigurationInput.of_xml)(Xml.childxml_arg0"WorkerLogs")inletwebserverLogs=(Option.map~f:ModuleLoggingConfigurationInput.of_xml)(Xml.childxml_arg0"WebserverLogs")inletschedulerLogs=(Option.map~f:ModuleLoggingConfigurationInput.of_xml)(Xml.childxml_arg0"SchedulerLogs")inletdagProcessingLogs=(Option.map~f:ModuleLoggingConfigurationInput.of_xml)(Xml.childxml_arg0"DagProcessingLogs")inmake?taskLogs?workerLogs?webserverLogs?schedulerLogs?dagProcessingLogs()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskLogs=field_mapjson__"TaskLogs"ModuleLoggingConfigurationInput.of_jsoninletworkerLogs=field_mapjson__"WorkerLogs"ModuleLoggingConfigurationInput.of_jsoninletwebserverLogs=field_mapjson__"WebserverLogs"ModuleLoggingConfigurationInput.of_jsoninletschedulerLogs=field_mapjson__"SchedulerLogs"ModuleLoggingConfigurationInput.of_jsoninletdagProcessingLogs=field_mapjson__"DagProcessingLogs"ModuleLoggingConfigurationInput.of_jsoninmake?taskLogs?workerLogs?webserverLogs?schedulerLogs?dagProcessingLogs()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Defines the Apache Airflow log types to send to CloudWatch Logs."]moduleUpdateNetworkConfigurationInput=structtypenonrect={securityGroupIds:SecurityGroupList.t[@ocaml.doc"A list of security group IDs. A security group must be attached to the same VPC as the subnets. For more information, refer to Security in your VPC on Amazon MWAA."]}letcontext_="UpdateNetworkConfigurationInput"letmake~securityGroupIds=fun()->{securityGroupIds}letto_valuex=structure_to_value[("SecurityGroupIds",(Some(SecurityGroupList.to_valuex.securityGroupIds)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsecurityGroupIds=SecurityGroupList.of_xml(Xml.child_exn~context:context_xml_arg0"SecurityGroupIds")inmake~securityGroupIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsecurityGroupIds=field_map_exnjson__"SecurityGroupIds"SecurityGroupList.of_jsoninmake~securityGroupIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Defines the VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, refer to About networking on Amazon MWAA."]moduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMetricData=structtypenonrect=MetricDatum.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MetricDatum.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:MetricDatum.of_xml)letof_jsonj=list_of_json~kind:"MetricData"~of_json:MetricDatum.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEnvironmentList=structtypenonrect=EnvironmentName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EnvironmentName.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:EnvironmentName.of_xml)letof_jsonj=list_of_json~kind:"EnvironmentList"~of_json:EnvironmentName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNextToken=structtypenonrect=stringletcontext_="NextToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NextToken"jletto_json=simple_to_jsonto_valueendmoduleListEnvironmentsInputMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:25)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListEnvironmentsInputMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleAccessDeniedException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Access to the Apache Airflow Web UI or CLI has been denied due to insufficient permissions. To learn more, see Accessing an Amazon MWAA environment."]moduleRestApiClientException=structtypenonrect={restApiStatusCode:Integer.toption[@ocaml.doc"The HTTP status code returned by the Apache Airflow REST API call."];restApiResponse:RestApiResponse.toption[@ocaml.doc"The error response data from the Apache Airflow REST API call, provided as a JSON object."]}letmake?restApiStatusCode=fun?restApiResponse->fun()->{restApiStatusCode;restApiResponse}letto_valuex=structure_to_value[("RestApiStatusCode",(Option.mapx.restApiStatusCode~f:Integer.to_value));("RestApiResponse",(Option.mapx.restApiResponse~f:RestApiResponse.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrestApiResponse=(Option.map~f:RestApiResponse.of_xml)(Xml.childxml_arg0"RestApiResponse")inletrestApiStatusCode=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"RestApiStatusCode")inmake?restApiResponse?restApiStatusCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrestApiResponse=field_mapjson__"RestApiResponse"RestApiResponse.of_jsoninletrestApiStatusCode=field_mapjson__"RestApiStatusCode"Integer.of_jsoninmake?restApiResponse?restApiStatusCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An exception indicating that a client-side error occurred during the Apache Airflow REST API call."]moduleRestApiServerException=structtypenonrect={restApiStatusCode:Integer.toption[@ocaml.doc"The HTTP status code returned by the Apache Airflow REST API call."];restApiResponse:RestApiResponse.toption[@ocaml.doc"The error response data from the Apache Airflow REST API call, provided as a JSON object."]}letmake?restApiStatusCode=fun?restApiResponse->fun()->{restApiStatusCode;restApiResponse}letto_valuex=structure_to_value[("RestApiStatusCode",(Option.mapx.restApiStatusCode~f:Integer.to_value));("RestApiResponse",(Option.mapx.restApiResponse~f:RestApiResponse.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrestApiResponse=(Option.map~f:RestApiResponse.of_xml)(Xml.childxml_arg0"RestApiResponse")inletrestApiStatusCode=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"RestApiStatusCode")inmake?restApiResponse?restApiStatusCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrestApiResponse=field_mapjson__"RestApiResponse"RestApiResponse.of_jsoninletrestApiStatusCode=field_mapjson__"RestApiStatusCode"Integer.of_jsoninmake?restApiResponse?restApiStatusCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An exception indicating that a server-side error occurred during the Apache Airflow REST API call."]moduleDocument=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_valuevendmoduleRestApiMethod=structtypenonrect=|GET|PUT|POST|PATCH|DELETE|Non_static_idofstringletmakei=iletto_string=function|GET->"GET"|PUT->"PUT"|POST->"POST"|PATCH->"PATCH"|DELETE->"DELETE"|Non_static_ids->sletof_string=function|"GET"->GET|"PUT"->PUT|"POST"->POST|"PATCH"->PATCH|"DELETE"->DELETE|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 RestApiMethod"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RestApiMethod"j)letto_json=simple_to_jsonto_valueendmoduleRestApiPath=structtypenonrect=stringletcontext_="RestApiPath"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:64)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RestApiPath"jletto_json=simple_to_jsonto_valueendmoduleRestApiRequestBody=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_valuevendmoduleEnvironment=structtypenonrect={name:EnvironmentName.toption[@ocaml.doc"The name of the Amazon MWAA environment. For example, MyMWAAEnvironment."];status:EnvironmentStatus.toption[@ocaml.doc"The status of the Amazon MWAA environment. Valid values: CREATING - The request to create the environment is in progress. CREATING_SNAPSHOT - The request to update environment details, or upgrade the environment version, is in progress and Amazon MWAA is creating a storage volume snapshot of the Amazon RDS database cluster associated with the environment. A database snapshot is a backup created at a specific point in time. Amazon MWAA uses snapshots to recover environment metadata if the process to update or upgrade an environment fails. CREATE_FAILED - The request to create the environment failed and the environment was not created. AVAILABLE - The request was successful and the environment is ready to use. PENDING - The request was successful, but the process to create the environment is paused until you create the required VPC endpoints in your VPC. After you create the VPC endpoints, the process resumes. UPDATING - The request to update the environment is in progress. ROLLING_BACK - The request to update environment details or upgrade the environment version failed and Amazon MWAA is restoring the environment using the latest storage volume snapshot. DELETING - The request to delete the environment is in progress. DELETED - The request to delete the environment is complete, and the environment has been deleted. UNAVAILABLE - The request failed, but the environment did not return to its previous state and is not stable. UPDATE_FAILED - The request to update the environment failed and the environment was restored to its previous state successfully and is ready to use. MAINTENANCE - The environment is undergoing maintenance. Depending on the type of work Amazon MWAA is performing, your environment might be unavailable during this process. Note that as part of the maintenance work, Amazon MWAA performs with a GRACEFUL workerReplacementStrategy . You can review our troubleshooting guide for a list of common errors and their solutions. For more information, refer to Amazon MWAA troubleshooting."];arn:EnvironmentArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon MWAA environment."];createdAt:CreatedAt.toption[@ocaml.doc"The day and time the environment was created."];webserverUrl:WebserverUrl.toption[@ocaml.doc"The Apache Airflow web server host name for the Amazon MWAA environment. For more information, refer to Accessing the Apache Airflow UI."];executionRoleArn:IamRoleArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web Services resources in your environment. For example, arn:aws:iam::123456789:role/my-execution-role. For more information, refer to Amazon MWAA Execution role."];serviceRoleArn:IamRoleArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) for the service-linked role of the environment. For more information, refer to Amazon MWAA Service-linked role."];kmsKey:KmsKey.toption[@ocaml.doc"The KMS encryption key used to encrypt the data in your environment."];airflowVersion:AirflowVersion.toption[@ocaml.doc"The Apache Airflow version on your environment. Valid values: 2.7.2, 2.8.1, 2.9.2, 2.10.1, 2.10.3, 2.11.0, and 3.0.6."];sourceBucketArn:S3BucketArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored. For example, arn:aws:s3:::my-airflow-bucket-unique-name. For more information, refer to Create an Amazon S3 bucket for Amazon MWAA."];dagS3Path:RelativePath.toption[@ocaml.doc"The relative path to the DAGs folder in your Amazon S3 bucket. For example, s3://mwaa-environment/dags. For more information, refer to Adding or updating DAGs."];pluginsS3Path:RelativePath.toption[@ocaml.doc"The relative path to the file in your Amazon S3 bucket. For example, s3://mwaa-environment/plugins.zip. For more information, refer to Installing custom plugins."];pluginsS3ObjectVersion:S3ObjectVersion.toption[@ocaml.doc"The version of the plugins.zip file in your Amazon S3 bucket. You must specify the version ID that Amazon S3 assigns to the file. Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no more than 1,024 bytes long. The following is an example: 3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo For more information, refer to Installing custom plugins."];requirementsS3Path:RelativePath.toption[@ocaml.doc"The relative path to the requirements.txt file in your Amazon S3 bucket. For example, s3://mwaa-environment/requirements.txt. For more information, refer to Installing Python dependencies."];requirementsS3ObjectVersion:S3ObjectVersion.toption[@ocaml.doc"The version of the requirements.txt file on your Amazon S3 bucket. You must specify the version ID that Amazon S3 assigns to the file. Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no more than 1,024 bytes long. The following is an example: 3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo For more information, refer to Installing Python dependencies."];startupScriptS3Path:String_.toption[@ocaml.doc"The relative path to the startup shell script in your Amazon S3 bucket. For example, s3://mwaa-environment/startup.sh. Amazon MWAA runs the script as your environment starts, and before running the Apache Airflow process. You can use this script to install dependencies, modify Apache Airflow configuration options, and set environment variables. For more information, refer to Using a startup script."];startupScriptS3ObjectVersion:String_.toption[@ocaml.doc"The version of the startup shell script in your Amazon S3 bucket. You must specify the version ID that Amazon S3 assigns to the file. Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no more than 1,024 bytes long. The following is an example: 3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo For more information, refer to Using a startup script."];airflowConfigurationOptions:AirflowConfigurationOptions.toption[@ocaml.doc"A list of key-value pairs containing the Apache Airflow configuration options attached to your environment. For more information, refer to Apache Airflow configuration options."];environmentClass:EnvironmentClass.toption[@ocaml.doc"The environment class type. Valid values: mw1.micro, mw1.small, mw1.medium, mw1.large, mw1.xlarge, and mw1.2xlarge. For more information, refer to Amazon MWAA environment class."];maxWorkers:MaxWorkers.toption[@ocaml.doc"The maximum number of workers that run in your environment. For example, 20."];networkConfiguration:NetworkConfiguration.toption[@ocaml.doc"Describes the VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, refer to About networking on Amazon MWAA."];loggingConfiguration:LoggingConfiguration.toption[@ocaml.doc"The Apache Airflow logs published to CloudWatch Logs."];lastUpdate:LastUpdate.toption[@ocaml.doc"The status of the last update on the environment."];weeklyMaintenanceWindowStart:WeeklyMaintenanceWindowStart.toption[@ocaml.doc"The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time that weekly maintenance updates are scheduled. For example: TUE:03:30."];tags:TagMap.toption[@ocaml.doc"The key-value tag pairs associated to your environment. For example, \"Environment\": \"Staging\". For more information, refer to Tagging Amazon Web Services resources."];webserverAccessMode:WebserverAccessMode.toption[@ocaml.doc"The Apache Airflow web server access mode. For more information, refer to Apache Airflow access modes."];minWorkers:MinWorkers.toption[@ocaml.doc"The minimum number of workers that run in your environment. For example, 2."];schedulers:Schedulers.toption[@ocaml.doc"The number of Apache Airflow schedulers that run in your Amazon MWAA environment."];webserverVpcEndpointService:VpcEndpointServiceName.toption[@ocaml.doc"The VPC endpoint for the environment's web server."];databaseVpcEndpointService:VpcEndpointServiceName.toption[@ocaml.doc"The VPC endpoint for the environment's Amazon RDS database."];celeryExecutorQueue:CeleryExecutorQueue.toption[@ocaml.doc"The queue ARN for the environment's Celery Executor. Amazon MWAA uses a Celery Executor to distribute tasks across multiple workers. When you create an environment in a shared VPC, you must provide access to the Celery Executor queue from your VPC."];endpointManagement:EndpointManagement.toption[@ocaml.doc"Defines whether the VPC endpoints configured for the environment are created, and managed, by the customer or by Amazon MWAA. If set to SERVICE, Amazon MWAA will create and manage the required VPC endpoints in your VPC. If set to CUSTOMER, you must create, and manage, the VPC endpoints in your VPC."];minWebservers:MinWebservers.toption[@ocaml.doc"The minimum number of web servers that you want to run in your environment. Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers when you interact with your Apache Airflow environment using Apache Airflow REST API, or the Apache Airflow CLI. As the transaction-per-second rate, and the network load, decrease, Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers. Valid values: For environments larger than mw1.micro, accepts values from 2 to 5. Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1."];maxWebservers:MaxWebservers.toption[@ocaml.doc"The maximum number of web servers that you want to run in your environment. Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers when you interact with your Apache Airflow environment using Apache Airflow REST API, or the Apache Airflow CLI. For example, in scenarios where your workload requires network calls to the Apache Airflow REST API with a high transaction-per-second (TPS) rate, Amazon MWAA will increase the number of web servers up to the number set in MaxWebserers. As TPS rates decrease Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers. Valid values: For environments larger than mw1.micro, accepts values from 2 to 5. Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1."]}letmake?name=fun?status->fun?arn->fun?createdAt->fun?webserverUrl->fun?executionRoleArn->fun?serviceRoleArn->fun?kmsKey->fun?airflowVersion->fun?sourceBucketArn->fun?dagS3Path->fun?pluginsS3Path->fun?pluginsS3ObjectVersion->fun?requirementsS3Path->fun?requirementsS3ObjectVersion->fun?startupScriptS3Path->fun?startupScriptS3ObjectVersion->fun?airflowConfigurationOptions->fun?environmentClass->fun?maxWorkers->fun?networkConfiguration->fun?loggingConfiguration->fun?lastUpdate->fun?weeklyMaintenanceWindowStart->fun?tags->fun?webserverAccessMode->fun?minWorkers->fun?schedulers->fun?webserverVpcEndpointService->fun?databaseVpcEndpointService->fun?celeryExecutorQueue->fun?endpointManagement->fun?minWebservers->fun?maxWebservers->fun()->{name;status;arn;createdAt;webserverUrl;executionRoleArn;serviceRoleArn;kmsKey;airflowVersion;sourceBucketArn;dagS3Path;pluginsS3Path;pluginsS3ObjectVersion;requirementsS3Path;requirementsS3ObjectVersion;startupScriptS3Path;startupScriptS3ObjectVersion;airflowConfigurationOptions;environmentClass;maxWorkers;networkConfiguration;loggingConfiguration;lastUpdate;weeklyMaintenanceWindowStart;tags;webserverAccessMode;minWorkers;schedulers;webserverVpcEndpointService;databaseVpcEndpointService;celeryExecutorQueue;endpointManagement;minWebservers;maxWebservers}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:EnvironmentName.to_value));("Status",(Option.mapx.status~f:EnvironmentStatus.to_value));("Arn",(Option.mapx.arn~f:EnvironmentArn.to_value));("CreatedAt",(Option.mapx.createdAt~f:CreatedAt.to_value));("WebserverUrl",(Option.mapx.webserverUrl~f:WebserverUrl.to_value));("ExecutionRoleArn",(Option.mapx.executionRoleArn~f:IamRoleArn.to_value));("ServiceRoleArn",(Option.mapx.serviceRoleArn~f:IamRoleArn.to_value));("KmsKey",(Option.mapx.kmsKey~f:KmsKey.to_value));("AirflowVersion",(Option.mapx.airflowVersion~f:AirflowVersion.to_value));("SourceBucketArn",(Option.mapx.sourceBucketArn~f:S3BucketArn.to_value));("DagS3Path",(Option.mapx.dagS3Path~f:RelativePath.to_value));("PluginsS3Path",(Option.mapx.pluginsS3Path~f:RelativePath.to_value));("PluginsS3ObjectVersion",(Option.mapx.pluginsS3ObjectVersion~f:S3ObjectVersion.to_value));("RequirementsS3Path",(Option.mapx.requirementsS3Path~f:RelativePath.to_value));("RequirementsS3ObjectVersion",(Option.mapx.requirementsS3ObjectVersion~f:S3ObjectVersion.to_value));("StartupScriptS3Path",(Option.mapx.startupScriptS3Path~f:String_.to_value));("StartupScriptS3ObjectVersion",(Option.mapx.startupScriptS3ObjectVersion~f:String_.to_value));("AirflowConfigurationOptions",(Option.mapx.airflowConfigurationOptions~f:AirflowConfigurationOptions.to_value));("EnvironmentClass",(Option.mapx.environmentClass~f:EnvironmentClass.to_value));("MaxWorkers",(Option.mapx.maxWorkers~f:MaxWorkers.to_value));("NetworkConfiguration",(Option.mapx.networkConfiguration~f:NetworkConfiguration.to_value));("LoggingConfiguration",(Option.mapx.loggingConfiguration~f:LoggingConfiguration.to_value));("LastUpdate",(Option.mapx.lastUpdate~f:LastUpdate.to_value));("WeeklyMaintenanceWindowStart",(Option.mapx.weeklyMaintenanceWindowStart~f:WeeklyMaintenanceWindowStart.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value));("WebserverAccessMode",(Option.mapx.webserverAccessMode~f:WebserverAccessMode.to_value));("MinWorkers",(Option.mapx.minWorkers~f:MinWorkers.to_value));("Schedulers",(Option.mapx.schedulers~f:Schedulers.to_value));("WebserverVpcEndpointService",(Option.mapx.webserverVpcEndpointService~f:VpcEndpointServiceName.to_value));("DatabaseVpcEndpointService",(Option.mapx.databaseVpcEndpointService~f:VpcEndpointServiceName.to_value));("CeleryExecutorQueue",(Option.mapx.celeryExecutorQueue~f:CeleryExecutorQueue.to_value));("EndpointManagement",(Option.mapx.endpointManagement~f:EndpointManagement.to_value));("MinWebservers",(Option.mapx.minWebservers~f:MinWebservers.to_value));("MaxWebservers",(Option.mapx.maxWebservers~f:MaxWebservers.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxWebservers=(Option.map~f:MaxWebservers.of_xml)(Xml.childxml_arg0"MaxWebservers")inletminWebservers=(Option.map~f:MinWebservers.of_xml)(Xml.childxml_arg0"MinWebservers")inletendpointManagement=(Option.map~f:EndpointManagement.of_xml)(Xml.childxml_arg0"EndpointManagement")inletceleryExecutorQueue=(Option.map~f:CeleryExecutorQueue.of_xml)(Xml.childxml_arg0"CeleryExecutorQueue")inletdatabaseVpcEndpointService=(Option.map~f:VpcEndpointServiceName.of_xml)(Xml.childxml_arg0"DatabaseVpcEndpointService")inletwebserverVpcEndpointService=(Option.map~f:VpcEndpointServiceName.of_xml)(Xml.childxml_arg0"WebserverVpcEndpointService")inletschedulers=(Option.map~f:Schedulers.of_xml)(Xml.childxml_arg0"Schedulers")inletminWorkers=(Option.map~f:MinWorkers.of_xml)(Xml.childxml_arg0"MinWorkers")inletwebserverAccessMode=(Option.map~f:WebserverAccessMode.of_xml)(Xml.childxml_arg0"WebserverAccessMode")inlettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletweeklyMaintenanceWindowStart=(Option.map~f:WeeklyMaintenanceWindowStart.of_xml)(Xml.childxml_arg0"WeeklyMaintenanceWindowStart")inletlastUpdate=(Option.map~f:LastUpdate.of_xml)(Xml.childxml_arg0"LastUpdate")inletloggingConfiguration=(Option.map~f:LoggingConfiguration.of_xml)(Xml.childxml_arg0"LoggingConfiguration")inletnetworkConfiguration=(Option.map~f:NetworkConfiguration.of_xml)(Xml.childxml_arg0"NetworkConfiguration")inletmaxWorkers=(Option.map~f:MaxWorkers.of_xml)(Xml.childxml_arg0"MaxWorkers")inletenvironmentClass=(Option.map~f:EnvironmentClass.of_xml)(Xml.childxml_arg0"EnvironmentClass")inletairflowConfigurationOptions=(Option.map~f:AirflowConfigurationOptions.of_xml)(Xml.childxml_arg0"AirflowConfigurationOptions")inletstartupScriptS3ObjectVersion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"StartupScriptS3ObjectVersion")inletstartupScriptS3Path=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"StartupScriptS3Path")inletrequirementsS3ObjectVersion=(Option.map~f:S3ObjectVersion.of_xml)(Xml.childxml_arg0"RequirementsS3ObjectVersion")inletrequirementsS3Path=(Option.map~f:RelativePath.of_xml)(Xml.childxml_arg0"RequirementsS3Path")inletpluginsS3ObjectVersion=(Option.map~f:S3ObjectVersion.of_xml)(Xml.childxml_arg0"PluginsS3ObjectVersion")inletpluginsS3Path=(Option.map~f:RelativePath.of_xml)(Xml.childxml_arg0"PluginsS3Path")inletdagS3Path=(Option.map~f:RelativePath.of_xml)(Xml.childxml_arg0"DagS3Path")inletsourceBucketArn=(Option.map~f:S3BucketArn.of_xml)(Xml.childxml_arg0"SourceBucketArn")inletairflowVersion=(Option.map~f:AirflowVersion.of_xml)(Xml.childxml_arg0"AirflowVersion")inletkmsKey=(Option.map~f:KmsKey.of_xml)(Xml.childxml_arg0"KmsKey")inletserviceRoleArn=(Option.map~f:IamRoleArn.of_xml)(Xml.childxml_arg0"ServiceRoleArn")inletexecutionRoleArn=(Option.map~f:IamRoleArn.of_xml)(Xml.childxml_arg0"ExecutionRoleArn")inletwebserverUrl=(Option.map~f:WebserverUrl.of_xml)(Xml.childxml_arg0"WebserverUrl")inletcreatedAt=(Option.map~f:CreatedAt.of_xml)(Xml.childxml_arg0"CreatedAt")inletarn=(Option.map~f:EnvironmentArn.of_xml)(Xml.childxml_arg0"Arn")inletstatus=(Option.map~f:EnvironmentStatus.of_xml)(Xml.childxml_arg0"Status")inletname=(Option.map~f:EnvironmentName.of_xml)(Xml.childxml_arg0"Name")inmake?maxWebservers?minWebservers?endpointManagement?celeryExecutorQueue?databaseVpcEndpointService?webserverVpcEndpointService?schedulers?minWorkers?webserverAccessMode?tags?weeklyMaintenanceWindowStart?lastUpdate?loggingConfiguration?networkConfiguration?maxWorkers?environmentClass?airflowConfigurationOptions?startupScriptS3ObjectVersion?startupScriptS3Path?requirementsS3ObjectVersion?requirementsS3Path?pluginsS3ObjectVersion?pluginsS3Path?dagS3Path?sourceBucketArn?airflowVersion?kmsKey?serviceRoleArn?executionRoleArn?webserverUrl?createdAt?arn?status?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxWebservers=field_mapjson__"MaxWebservers"MaxWebservers.of_jsoninletminWebservers=field_mapjson__"MinWebservers"MinWebservers.of_jsoninletendpointManagement=field_mapjson__"EndpointManagement"EndpointManagement.of_jsoninletceleryExecutorQueue=field_mapjson__"CeleryExecutorQueue"CeleryExecutorQueue.of_jsoninletdatabaseVpcEndpointService=field_mapjson__"DatabaseVpcEndpointService"VpcEndpointServiceName.of_jsoninletwebserverVpcEndpointService=field_mapjson__"WebserverVpcEndpointService"VpcEndpointServiceName.of_jsoninletschedulers=field_mapjson__"Schedulers"Schedulers.of_jsoninletminWorkers=field_mapjson__"MinWorkers"MinWorkers.of_jsoninletwebserverAccessMode=field_mapjson__"WebserverAccessMode"WebserverAccessMode.of_jsoninlettags=field_mapjson__"Tags"TagMap.of_jsoninletweeklyMaintenanceWindowStart=field_mapjson__"WeeklyMaintenanceWindowStart"WeeklyMaintenanceWindowStart.of_jsoninletlastUpdate=field_mapjson__"LastUpdate"LastUpdate.of_jsoninletloggingConfiguration=field_mapjson__"LoggingConfiguration"LoggingConfiguration.of_jsoninletnetworkConfiguration=field_mapjson__"NetworkConfiguration"NetworkConfiguration.of_jsoninletmaxWorkers=field_mapjson__"MaxWorkers"MaxWorkers.of_jsoninletenvironmentClass=field_mapjson__"EnvironmentClass"EnvironmentClass.of_jsoninletairflowConfigurationOptions=field_mapjson__"AirflowConfigurationOptions"AirflowConfigurationOptions.of_jsoninletstartupScriptS3ObjectVersion=field_mapjson__"StartupScriptS3ObjectVersion"String_.of_jsoninletstartupScriptS3Path=field_mapjson__"StartupScriptS3Path"String_.of_jsoninletrequirementsS3ObjectVersion=field_mapjson__"RequirementsS3ObjectVersion"S3ObjectVersion.of_jsoninletrequirementsS3Path=field_mapjson__"RequirementsS3Path"RelativePath.of_jsoninletpluginsS3ObjectVersion=field_mapjson__"PluginsS3ObjectVersion"S3ObjectVersion.of_jsoninletpluginsS3Path=field_mapjson__"PluginsS3Path"RelativePath.of_jsoninletdagS3Path=field_mapjson__"DagS3Path"RelativePath.of_jsoninletsourceBucketArn=field_mapjson__"SourceBucketArn"S3BucketArn.of_jsoninletairflowVersion=field_mapjson__"AirflowVersion"AirflowVersion.of_jsoninletkmsKey=field_mapjson__"KmsKey"KmsKey.of_jsoninletserviceRoleArn=field_mapjson__"ServiceRoleArn"IamRoleArn.of_jsoninletexecutionRoleArn=field_mapjson__"ExecutionRoleArn"IamRoleArn.of_jsoninletwebserverUrl=field_mapjson__"WebserverUrl"WebserverUrl.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"CreatedAt.of_jsoninletarn=field_mapjson__"Arn"EnvironmentArn.of_jsoninletstatus=field_mapjson__"Status"EnvironmentStatus.of_jsoninletname=field_mapjson__"Name"EnvironmentName.of_jsoninmake?maxWebservers?minWebservers?endpointManagement?celeryExecutorQueue?databaseVpcEndpointService?webserverVpcEndpointService?schedulers?minWorkers?webserverAccessMode?tags?weeklyMaintenanceWindowStart?lastUpdate?loggingConfiguration?networkConfiguration?maxWorkers?environmentClass?airflowConfigurationOptions?startupScriptS3ObjectVersion?startupScriptS3Path?requirementsS3ObjectVersion?requirementsS3Path?pluginsS3ObjectVersion?pluginsS3Path?dagS3Path?sourceBucketArn?airflowVersion?kmsKey?serviceRoleArn?executionRoleArn?webserverUrl?createdAt?arn?status?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment."]moduleAirflowIdentity=structtypenonrect=stringletcontext_="AirflowIdentity"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:64)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AirflowIdentity"jletto_json=simple_to_jsonto_valueendmoduleHostname=structtypenonrect=stringletcontext_="Hostname"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][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:"Hostname"jletto_json=simple_to_jsonto_valueendmoduleIamIdentity=structtypenonrect=stringletcontext_="IamIdentity"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:"IamIdentity"jletto_json=simple_to_jsonto_valueendmoduleToken=structtypenonrect=stringletcontext_="Token"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:"Token"jletto_json=simple_to_jsonto_valueendmoduleUpdateEnvironmentOutput=structtypenonrect={arn:EnvironmentArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example, arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun()->{arn}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:EnvironmentArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=(Option.map~f:EnvironmentArn.of_xml)(Xml.childxml_arg0"Arn")inmake?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_mapjson__"Arn"EnvironmentArn.of_jsoninmake?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an Amazon Managed Workflows for Apache Airflow (MWAA) environment."]moduleUpdateEnvironmentInput=structtypenonrect={name:EnvironmentName.t[@ocaml.doc"The name of your Amazon MWAA environment. For example, MyMWAAEnvironment."];executionRoleArn:IamRoleArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web Services resources in your environment. For example, arn:aws:iam::123456789:role/my-execution-role. For more information, refer to Amazon MWAA Execution role."];airflowConfigurationOptions:AirflowConfigurationOptions.toption[@ocaml.doc"A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. For more information, refer to Apache Airflow configuration options."];airflowVersion:AirflowVersion.toption[@ocaml.doc"The Apache Airflow version for your environment. To upgrade your environment, specify a newer version of Apache Airflow supported by Amazon MWAA. To downgrade your environment, specify an older version of Apache Airflow supported by Amazon MWAA. Before you upgrade or downgrade an environment, make sure your requirements, DAGs, plugins, and other resources used in your workflows are compatible with the new Apache Airflow version. For more information about updating your resources, see Upgrading and downgrading an Amazon MWAA environment. Valid values: 2.7.2, 2.8.1, 2.9.2, 2.10.1, 2.10.3, 2.11.0, and 3.0.6."];dagS3Path:RelativePath.toption[@ocaml.doc"The relative path to the DAGs folder on your Amazon S3 bucket. For example, dags. For more information, refer to Adding or updating DAGs."];environmentClass:EnvironmentClass.toption[@ocaml.doc"The environment class type. Valid values: mw1.micro, mw1.small, mw1.medium, mw1.large, mw1.xlarge, and mw1.2xlarge. For more information, refer to Amazon MWAA environment class."];loggingConfiguration:LoggingConfigurationInput.toption[@ocaml.doc"The Apache Airflow log types to send to CloudWatch Logs."];maxWorkers:MaxWorkers.toption[@ocaml.doc"The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the MaxWorkers field. For example, 20. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the one worker that is included with your environment, or the number you specify in MinWorkers."];minWorkers:MinWorkers.toption[@ocaml.doc"The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the MaxWorkers field. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the worker count you specify in the MinWorkers field. For example, 2."];maxWebservers:MaxWebservers.toption[@ocaml.doc"The maximum number of web servers that you want to run in your environment. Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers when you interact with your Apache Airflow environment using Apache Airflow REST API, or the Apache Airflow CLI. For example, in scenarios where your workload requires network calls to the Apache Airflow REST API with a high transaction-per-second (TPS) rate, Amazon MWAA will increase the number of web servers up to the number set in MaxWebserers. As TPS rates decrease Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers. Valid values: For environments larger than mw1.micro, accepts values from 2 to 5. Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1."];minWebservers:MinWebservers.toption[@ocaml.doc"The minimum number of web servers that you want to run in your environment. Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers when you interact with your Apache Airflow environment using Apache Airflow REST API, or the Apache Airflow CLI. As the transaction-per-second rate, and the network load, decrease, Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers. Valid values: For environments larger than mw1.micro, accepts values from 2 to 5. Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1."];workerReplacementStrategy:WorkerReplacementStrategy.toption[@ocaml.doc"The worker replacement strategy to use when updating the environment. You can select one of the following strategies: Forced - Stops and replaces Apache Airflow workers without waiting for tasks to complete before an update. Graceful - Allows Apache Airflow workers to complete running tasks for up to 12 hours during an update before they're stopped and replaced."];networkConfiguration:UpdateNetworkConfigurationInput.toption[@ocaml.doc"The VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, refer to About networking on Amazon MWAA."];pluginsS3Path:RelativePath.toption[@ocaml.doc"The relative path to the plugins.zip file on your Amazon S3 bucket. For example, plugins.zip. If specified, then the plugins.zip version is required. For more information, refer to Installing custom plugins."];pluginsS3ObjectVersion:S3ObjectVersion.toption[@ocaml.doc"The version of the plugins.zip file on your Amazon S3 bucket. You must specify a version each time a plugins.zip file is updated. For more information, refer to How S3 Versioning works."];requirementsS3Path:RelativePath.toption[@ocaml.doc"The relative path to the requirements.txt file on your Amazon S3 bucket. For example, requirements.txt. If specified, then a file version is required. For more information, refer to Installing Python dependencies."];requirementsS3ObjectVersion:S3ObjectVersion.toption[@ocaml.doc"The version of the requirements.txt file on your Amazon S3 bucket. You must specify a version each time a requirements.txt file is updated. For more information, refer to How S3 Versioning works."];schedulers:Schedulers.toption[@ocaml.doc"The number of Apache Airflow schedulers to run in your Amazon MWAA environment."];sourceBucketArn:S3BucketArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored. For example, arn:aws:s3:::my-airflow-bucket-unique-name. For more information, refer to Create an Amazon S3 bucket for Amazon MWAA."];startupScriptS3Path:RelativePath.toption[@ocaml.doc"The relative path to the startup shell script in your Amazon S3 bucket. For example, s3://mwaa-environment/startup.sh. Amazon MWAA runs the script as your environment starts, and before running the Apache Airflow process. You can use this script to install dependencies, modify Apache Airflow configuration options, and set environment variables. For more information, refer to Using a startup script."];startupScriptS3ObjectVersion:S3ObjectVersion.toption[@ocaml.doc"The version of the startup shell script in your Amazon S3 bucket. You must specify the version ID that Amazon S3 assigns to the file every time you update the script. Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no more than 1,024 bytes long. The following is an example: 3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo For more information, refer to Using a startup script."];webserverAccessMode:WebserverAccessMode.toption[@ocaml.doc"The Apache Airflow Web server access mode. For more information, refer to Apache Airflow access modes."];weeklyMaintenanceWindowStart:WeeklyMaintenanceWindowStart.toption[@ocaml.doc"The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly maintenance updates of your environment in the following format: DAY:HH:MM. For example: TUE:03:30. You can specify a start time in 30 minute increments only."]}letcontext_="UpdateEnvironmentInput"letmake?executionRoleArn=fun?airflowConfigurationOptions->fun?airflowVersion->fun?dagS3Path->fun?environmentClass->fun?loggingConfiguration->fun?maxWorkers->fun?minWorkers->fun?maxWebservers->fun?minWebservers->fun?workerReplacementStrategy->fun?networkConfiguration->fun?pluginsS3Path->fun?pluginsS3ObjectVersion->fun?requirementsS3Path->fun?requirementsS3ObjectVersion->fun?schedulers->fun?sourceBucketArn->fun?startupScriptS3Path->fun?startupScriptS3ObjectVersion->fun?webserverAccessMode->fun?weeklyMaintenanceWindowStart->fun~name->fun()->{executionRoleArn;airflowConfigurationOptions;airflowVersion;dagS3Path;environmentClass;loggingConfiguration;maxWorkers;minWorkers;maxWebservers;minWebservers;workerReplacementStrategy;networkConfiguration;pluginsS3Path;pluginsS3ObjectVersion;requirementsS3Path;requirementsS3ObjectVersion;schedulers;sourceBucketArn;startupScriptS3Path;startupScriptS3ObjectVersion;webserverAccessMode;weeklyMaintenanceWindowStart;name}letto_valuex=structure_to_value[("Name",(Some(EnvironmentName.to_valuex.name)));("ExecutionRoleArn",(Option.mapx.executionRoleArn~f:IamRoleArn.to_value));("AirflowConfigurationOptions",(Option.mapx.airflowConfigurationOptions~f:AirflowConfigurationOptions.to_value));("AirflowVersion",(Option.mapx.airflowVersion~f:AirflowVersion.to_value));("DagS3Path",(Option.mapx.dagS3Path~f:RelativePath.to_value));("EnvironmentClass",(Option.mapx.environmentClass~f:EnvironmentClass.to_value));("LoggingConfiguration",(Option.mapx.loggingConfiguration~f:LoggingConfigurationInput.to_value));("MaxWorkers",(Option.mapx.maxWorkers~f:MaxWorkers.to_value));("MinWorkers",(Option.mapx.minWorkers~f:MinWorkers.to_value));("MaxWebservers",(Option.mapx.maxWebservers~f:MaxWebservers.to_value));("MinWebservers",(Option.mapx.minWebservers~f:MinWebservers.to_value));("WorkerReplacementStrategy",(Option.mapx.workerReplacementStrategy~f:WorkerReplacementStrategy.to_value));("NetworkConfiguration",(Option.mapx.networkConfiguration~f:UpdateNetworkConfigurationInput.to_value));("PluginsS3Path",(Option.mapx.pluginsS3Path~f:RelativePath.to_value));("PluginsS3ObjectVersion",(Option.mapx.pluginsS3ObjectVersion~f:S3ObjectVersion.to_value));("RequirementsS3Path",(Option.mapx.requirementsS3Path~f:RelativePath.to_value));("RequirementsS3ObjectVersion",(Option.mapx.requirementsS3ObjectVersion~f:S3ObjectVersion.to_value));("Schedulers",(Option.mapx.schedulers~f:Schedulers.to_value));("SourceBucketArn",(Option.mapx.sourceBucketArn~f:S3BucketArn.to_value));("StartupScriptS3Path",(Option.mapx.startupScriptS3Path~f:RelativePath.to_value));("StartupScriptS3ObjectVersion",(Option.mapx.startupScriptS3ObjectVersion~f:S3ObjectVersion.to_value));("WebserverAccessMode",(Option.mapx.webserverAccessMode~f:WebserverAccessMode.to_value));("WeeklyMaintenanceWindowStart",(Option.mapx.weeklyMaintenanceWindowStart~f:WeeklyMaintenanceWindowStart.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letweeklyMaintenanceWindowStart=(Option.map~f:WeeklyMaintenanceWindowStart.of_xml)(Xml.childxml_arg0"WeeklyMaintenanceWindowStart")inletwebserverAccessMode=(Option.map~f:WebserverAccessMode.of_xml)(Xml.childxml_arg0"WebserverAccessMode")inletstartupScriptS3ObjectVersion=(Option.map~f:S3ObjectVersion.of_xml)(Xml.childxml_arg0"StartupScriptS3ObjectVersion")inletstartupScriptS3Path=(Option.map~f:RelativePath.of_xml)(Xml.childxml_arg0"StartupScriptS3Path")inletsourceBucketArn=(Option.map~f:S3BucketArn.of_xml)(Xml.childxml_arg0"SourceBucketArn")inletschedulers=(Option.map~f:Schedulers.of_xml)(Xml.childxml_arg0"Schedulers")inletrequirementsS3ObjectVersion=(Option.map~f:S3ObjectVersion.of_xml)(Xml.childxml_arg0"RequirementsS3ObjectVersion")inletrequirementsS3Path=(Option.map~f:RelativePath.of_xml)(Xml.childxml_arg0"RequirementsS3Path")inletpluginsS3ObjectVersion=(Option.map~f:S3ObjectVersion.of_xml)(Xml.childxml_arg0"PluginsS3ObjectVersion")inletpluginsS3Path=(Option.map~f:RelativePath.of_xml)(Xml.childxml_arg0"PluginsS3Path")inletnetworkConfiguration=(Option.map~f:UpdateNetworkConfigurationInput.of_xml)(Xml.childxml_arg0"NetworkConfiguration")inletworkerReplacementStrategy=(Option.map~f:WorkerReplacementStrategy.of_xml)(Xml.childxml_arg0"WorkerReplacementStrategy")inletminWebservers=(Option.map~f:MinWebservers.of_xml)(Xml.childxml_arg0"MinWebservers")inletmaxWebservers=(Option.map~f:MaxWebservers.of_xml)(Xml.childxml_arg0"MaxWebservers")inletminWorkers=(Option.map~f:MinWorkers.of_xml)(Xml.childxml_arg0"MinWorkers")inletmaxWorkers=(Option.map~f:MaxWorkers.of_xml)(Xml.childxml_arg0"MaxWorkers")inletloggingConfiguration=(Option.map~f:LoggingConfigurationInput.of_xml)(Xml.childxml_arg0"LoggingConfiguration")inletenvironmentClass=(Option.map~f:EnvironmentClass.of_xml)(Xml.childxml_arg0"EnvironmentClass")inletdagS3Path=(Option.map~f:RelativePath.of_xml)(Xml.childxml_arg0"DagS3Path")inletairflowVersion=(Option.map~f:AirflowVersion.of_xml)(Xml.childxml_arg0"AirflowVersion")inletairflowConfigurationOptions=(Option.map~f:AirflowConfigurationOptions.of_xml)(Xml.childxml_arg0"AirflowConfigurationOptions")inletexecutionRoleArn=(Option.map~f:IamRoleArn.of_xml)(Xml.childxml_arg0"ExecutionRoleArn")inletname=EnvironmentName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?weeklyMaintenanceWindowStart?webserverAccessMode?startupScriptS3ObjectVersion?startupScriptS3Path?sourceBucketArn?schedulers?requirementsS3ObjectVersion?requirementsS3Path?pluginsS3ObjectVersion?pluginsS3Path?networkConfiguration?workerReplacementStrategy?minWebservers?maxWebservers?minWorkers?maxWorkers?loggingConfiguration?environmentClass?dagS3Path?airflowVersion?airflowConfigurationOptions?executionRoleArn~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letweeklyMaintenanceWindowStart=field_mapjson__"WeeklyMaintenanceWindowStart"WeeklyMaintenanceWindowStart.of_jsoninletwebserverAccessMode=field_mapjson__"WebserverAccessMode"WebserverAccessMode.of_jsoninletstartupScriptS3ObjectVersion=field_mapjson__"StartupScriptS3ObjectVersion"S3ObjectVersion.of_jsoninletstartupScriptS3Path=field_mapjson__"StartupScriptS3Path"RelativePath.of_jsoninletsourceBucketArn=field_mapjson__"SourceBucketArn"S3BucketArn.of_jsoninletschedulers=field_mapjson__"Schedulers"Schedulers.of_jsoninletrequirementsS3ObjectVersion=field_mapjson__"RequirementsS3ObjectVersion"S3ObjectVersion.of_jsoninletrequirementsS3Path=field_mapjson__"RequirementsS3Path"RelativePath.of_jsoninletpluginsS3ObjectVersion=field_mapjson__"PluginsS3ObjectVersion"S3ObjectVersion.of_jsoninletpluginsS3Path=field_mapjson__"PluginsS3Path"RelativePath.of_jsoninletnetworkConfiguration=field_mapjson__"NetworkConfiguration"UpdateNetworkConfigurationInput.of_jsoninletworkerReplacementStrategy=field_mapjson__"WorkerReplacementStrategy"WorkerReplacementStrategy.of_jsoninletminWebservers=field_mapjson__"MinWebservers"MinWebservers.of_jsoninletmaxWebservers=field_mapjson__"MaxWebservers"MaxWebservers.of_jsoninletminWorkers=field_mapjson__"MinWorkers"MinWorkers.of_jsoninletmaxWorkers=field_mapjson__"MaxWorkers"MaxWorkers.of_jsoninletloggingConfiguration=field_mapjson__"LoggingConfiguration"LoggingConfigurationInput.of_jsoninletenvironmentClass=field_mapjson__"EnvironmentClass"EnvironmentClass.of_jsoninletdagS3Path=field_mapjson__"DagS3Path"RelativePath.of_jsoninletairflowVersion=field_mapjson__"AirflowVersion"AirflowVersion.of_jsoninletairflowConfigurationOptions=field_mapjson__"AirflowConfigurationOptions"AirflowConfigurationOptions.of_jsoninletexecutionRoleArn=field_mapjson__"ExecutionRoleArn"IamRoleArn.of_jsoninletname=field_map_exnjson__"Name"EnvironmentName.of_jsoninmake?weeklyMaintenanceWindowStart?webserverAccessMode?startupScriptS3ObjectVersion?startupScriptS3Path?sourceBucketArn?schedulers?requirementsS3ObjectVersion?requirementsS3Path?pluginsS3ObjectVersion?pluginsS3Path?networkConfiguration?workerReplacementStrategy?minWebservers?maxWebservers?minWorkers?maxWorkers?loggingConfiguration?environmentClass?dagS3Path?airflowVersion?airflowConfigurationOptions?executionRoleArn~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an Amazon Managed Workflows for Apache Airflow (MWAA) environment."]moduleUntagResourceOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes key-value tag pairs associated to your Amazon Managed Workflows for Apache Airflow (MWAA) environment. For example, \"Environment\": \"Staging\"."]moduleUntagResourceInput=structtypenonrect={resourceArn:EnvironmentArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example, arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment."];tagKeys:TagKeyList.t[@ocaml.doc"The key-value tag pair you want to remove. For example, \"Environment\": \"Staging\"."]}letcontext_="UntagResourceInput"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("ResourceArn",(Some(EnvironmentArn.to_valuex.resourceArn)));("tagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletresourceArn=EnvironmentArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~tagKeys~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"tagKeys"TagKeyList.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"EnvironmentArn.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes key-value tag pairs associated to your Amazon Managed Workflows for Apache Airflow (MWAA) environment. For example, \"Environment\": \"Staging\"."]moduleTagResourceOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow (MWAA) environment."]moduleTagResourceInput=structtypenonrect={resourceArn:EnvironmentArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example, arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment."];tags:TagMap.t[@ocaml.doc"The key-value tag pairs you want to associate to your environment. For example, \"Environment\": \"Staging\". For more information, refer to Tagging Amazon Web Services resources."]}letcontext_="TagResourceInput"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("ResourceArn",(Some(EnvironmentArn.to_valuex.resourceArn)));("Tags",(Some(TagMap.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagMap.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inletresourceArn=EnvironmentArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~tags~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"TagMap.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"EnvironmentArn.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow (MWAA) environment."]modulePublishMetricsOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`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"Internal only. Publishes environment health metrics to Amazon CloudWatch."]modulePublishMetricsInput=structtypenonrect={environmentName:EnvironmentName.t[@ocaml.doc"Internal only. The name of the environment."];metricData:MetricData.t[@ocaml.doc"Internal only. Publishes metrics to Amazon CloudWatch. To learn more about the metrics published to Amazon CloudWatch, see Amazon MWAA performance metrics in Amazon CloudWatch."]}letcontext_="PublishMetricsInput"letmake~environmentName=fun~metricData->fun()->{environmentName;metricData}letto_valuex=structure_to_value[("EnvironmentName",(Some(EnvironmentName.to_valuex.environmentName)));("MetricData",(Some(MetricData.to_valuex.metricData)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetricData=MetricData.of_xml(Xml.child_exn~context:context_xml_arg0"MetricData")inletenvironmentName=EnvironmentName.of_xml(Xml.child_exn~context:context_xml_arg0"EnvironmentName")inmake~metricData~environmentName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetricData=field_map_exnjson__"MetricData"MetricData.of_jsoninletenvironmentName=field_map_exnjson__"EnvironmentName"EnvironmentName.of_jsoninmake~metricData~environmentName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Internal only. Publishes environment health metrics to Amazon CloudWatch."]moduleListTagsForResourceOutput=structtypenonrect={tags:TagMap.toption[@ocaml.doc"The key-value tag pairs associated to your environment. For more information, refer to Tagging Amazon Web Services resources."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagMap.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the key-value tag pairs associated to the Amazon Managed Workflows for Apache Airflow (MWAA) environment. For example, \"Environment\": \"Staging\"."]moduleListTagsForResourceInput=structtypenonrect={resourceArn:EnvironmentArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example, arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment."]}letcontext_="ListTagsForResourceInput"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("ResourceArn",(Some(EnvironmentArn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=EnvironmentArn.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"EnvironmentArn.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the key-value tag pairs associated to the Amazon Managed Workflows for Apache Airflow (MWAA) environment. For example, \"Environment\": \"Staging\"."]moduleListEnvironmentsOutput=structtypenonrect={environments:EnvironmentList.toption[@ocaml.doc"Returns a list of Amazon MWAA environments."];nextToken:NextToken.toption[@ocaml.doc"Retrieves the next page of the results."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?environments=fun?nextToken->fun()->{environments;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`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[("Environments",(Option.mapx.environments~f:EnvironmentList.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")inletenvironments=(Option.map~f:EnvironmentList.of_xml)(Xml.childxml_arg0"Environments")inmake?nextToken?environments()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletenvironments=field_mapjson__"Environments"EnvironmentList.of_jsoninmake?nextToken?environments()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments."]moduleListEnvironmentsInput=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"Retrieves the next page of the results."];maxResults:ListEnvironmentsInputMaxResultsInteger.toption[@ocaml.doc"The maximum number of results to retrieve per page. For example, 5 environments per page."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("MaxResults",(Option.mapx.maxResults~f:ListEnvironmentsInputMaxResultsInteger.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:ListEnvironmentsInputMaxResultsInteger.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"ListEnvironmentsInputMaxResultsInteger.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments."]moduleInvokeRestApiResponse=structtypenonrect={restApiStatusCode:Integer.toption[@ocaml.doc"The HTTP status code returned by the Apache Airflow REST API call."];restApiResponse:RestApiResponse.toption[@ocaml.doc"The response data from the Apache Airflow REST API call, provided as a JSON object."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`RestApiClientExceptionofRestApiClientException.t|`RestApiServerExceptionofRestApiServerException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?restApiStatusCode=fun?restApiResponse->fun()->{restApiStatusCode;restApiResponse}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"RestApiClientException"->`RestApiClientException(RestApiClientException.of_jsonjson)|"RestApiServerException"->`RestApiServerException(RestApiServerException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"RestApiClientException"->`RestApiClientException(RestApiClientException.of_xmlxml)|"RestApiServerException"->`RestApiServerException(RestApiServerException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`RestApiClientExceptione->`Assoc[("error",(`String"RestApiClientException"));("details",(RestApiClientException.to_jsone))]|`RestApiServerExceptione->`Assoc[("error",(`String"RestApiServerException"));("details",(RestApiServerException.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[("RestApiStatusCode",(Option.mapx.restApiStatusCode~f:Integer.to_value));("RestApiResponse",(Option.mapx.restApiResponse~f:RestApiResponse.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrestApiResponse=(Option.map~f:RestApiResponse.of_xml)(Xml.childxml_arg0"RestApiResponse")inletrestApiStatusCode=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"RestApiStatusCode")inmake?restApiResponse?restApiStatusCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrestApiResponse=field_mapjson__"RestApiResponse"RestApiResponse.of_jsoninletrestApiStatusCode=field_mapjson__"RestApiStatusCode"Integer.of_jsoninmake?restApiResponse?restApiStatusCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Invokes the Apache Airflow REST API on the webserver with the specified inputs. To learn more, see Using the Apache Airflow REST API"]moduleInvokeRestApiRequest=structtypenonrect={name:EnvironmentName.t[@ocaml.doc"The name of the Amazon MWAA environment. For example, MyMWAAEnvironment."];path:RestApiPath.t[@ocaml.doc"The Apache Airflow REST API endpoint path to be called. For example, /dags/123456/clearTaskInstances. For more information, see Apache Airflow API"];method_:RestApiMethod.t[@ocaml.doc"The HTTP method used for making Airflow REST API calls. For example, POST."];queryParameters:Document.toption[@ocaml.doc"Query parameters to be included in the Apache Airflow REST API call, provided as a JSON object."];body:RestApiRequestBody.toption[@ocaml.doc"The request body for the Apache Airflow REST API call, provided as a JSON object."]}letcontext_="InvokeRestApiRequest"letmake?queryParameters=fun?body->fun~name->fun~path->fun~method_->fun()->{queryParameters;body;name;path;method_}letto_valuex=structure_to_value[("Name",(Some(EnvironmentName.to_valuex.name)));("Path",(Some(RestApiPath.to_valuex.path)));("Method",(Some(RestApiMethod.to_valuex.method_)));("QueryParameters",(Option.mapx.queryParameters~f:Document.to_value));("Body",(Option.mapx.body~f:RestApiRequestBody.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbody=(Option.map~f:RestApiRequestBody.of_xml)(Xml.childxml_arg0"Body")inletqueryParameters=(Option.map~f:Document.of_xml)(Xml.childxml_arg0"QueryParameters")inletmethod_=RestApiMethod.of_xml(Xml.child_exn~context:context_xml_arg0"Method")inletpath=RestApiPath.of_xml(Xml.child_exn~context:context_xml_arg0"Path")inletname=EnvironmentName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?body?queryParameters~method_~path~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbody=field_mapjson__"Body"RestApiRequestBody.of_jsoninletqueryParameters=field_mapjson__"QueryParameters"Document.of_jsoninletmethod_=field_map_exnjson__"Method"RestApiMethod.of_jsoninletpath=field_map_exnjson__"Path"RestApiPath.of_jsoninletname=field_map_exnjson__"Name"EnvironmentName.of_jsoninmake?body?queryParameters~method_~path~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Invokes the Apache Airflow REST API on the webserver with the specified inputs. To learn more, see Using the Apache Airflow REST API"]moduleGetEnvironmentOutput=structtypenonrect={environment:Environment.toption[@ocaml.doc"An object containing all available details about the environment."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?environment=fun()->{environment}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Environment",(Option.mapx.environment~f:Environment.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letenvironment=(Option.map~f:Environment.of_xml)(Xml.childxml_arg0"Environment")inmake?environment()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letenvironment=field_mapjson__"Environment"Environment.of_jsoninmake?environment()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment."]moduleGetEnvironmentInput=structtypenonrect={name:EnvironmentName.t[@ocaml.doc"The name of the Amazon MWAA environment. For example, MyMWAAEnvironment."]}letcontext_="GetEnvironmentInput"letmake~name=fun()->{name}letto_valuex=structure_to_value[("Name",(Some(EnvironmentName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=EnvironmentName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"Name"EnvironmentName.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment."]moduleDeleteEnvironmentOutput=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.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 Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment."]moduleDeleteEnvironmentInput=structtypenonrect={name:EnvironmentName.t[@ocaml.doc"The name of the Amazon MWAA environment. For example, MyMWAAEnvironment."]}letcontext_="DeleteEnvironmentInput"letmake~name=fun()->{name}letto_valuex=structure_to_value[("Name",(Some(EnvironmentName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=EnvironmentName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"Name"EnvironmentName.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment."]moduleCreateWebLoginTokenResponse=structtypenonrect={webToken:Token.toption[@ocaml.doc"An Airflow web server login token."];webServerHostname:Hostname.toption[@ocaml.doc"The Airflow web server hostname for the environment."];iamIdentity:IamIdentity.toption[@ocaml.doc"The name of the IAM identity creating the web login token. This might be an IAM user, or an assumed or federated identity. For example, assumed-role/Admin/your-name."];airflowIdentity:AirflowIdentity.toption[@ocaml.doc"The user name of the Apache Airflow identity creating the web login token."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?webToken=fun?webServerHostname->fun?iamIdentity->fun?airflowIdentity->fun()->{webToken;webServerHostname;iamIdentity;airflowIdentity}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("WebToken",(Option.mapx.webToken~f:Token.to_value));("WebServerHostname",(Option.mapx.webServerHostname~f:Hostname.to_value));("IamIdentity",(Option.mapx.iamIdentity~f:IamIdentity.to_value));("AirflowIdentity",(Option.mapx.airflowIdentity~f:AirflowIdentity.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letairflowIdentity=(Option.map~f:AirflowIdentity.of_xml)(Xml.childxml_arg0"AirflowIdentity")inletiamIdentity=(Option.map~f:IamIdentity.of_xml)(Xml.childxml_arg0"IamIdentity")inletwebServerHostname=(Option.map~f:Hostname.of_xml)(Xml.childxml_arg0"WebServerHostname")inletwebToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"WebToken")inmake?airflowIdentity?iamIdentity?webServerHostname?webToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letairflowIdentity=field_mapjson__"AirflowIdentity"AirflowIdentity.of_jsoninletiamIdentity=field_mapjson__"IamIdentity"IamIdentity.of_jsoninletwebServerHostname=field_mapjson__"WebServerHostname"Hostname.of_jsoninletwebToken=field_mapjson__"WebToken"Token.of_jsoninmake?airflowIdentity?iamIdentity?webServerHostname?webToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a web login token for the Airflow Web UI. To learn more, see Creating an Apache Airflow web login token."]moduleCreateWebLoginTokenRequest=structtypenonrect={name:EnvironmentName.t[@ocaml.doc"The name of the Amazon MWAA environment. For example, MyMWAAEnvironment."]}letcontext_="CreateWebLoginTokenRequest"letmake~name=fun()->{name}letto_valuex=structure_to_value[("Name",(Some(EnvironmentName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=EnvironmentName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"Name"EnvironmentName.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a web login token for the Airflow Web UI. To learn more, see Creating an Apache Airflow web login token."]moduleCreateEnvironmentOutput=structtypenonrect={arn:EnvironmentArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) returned in the response for the environment."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun()->{arn}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:EnvironmentArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=(Option.map~f:EnvironmentArn.of_xml)(Xml.childxml_arg0"Arn")inmake?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_mapjson__"Arn"EnvironmentArn.of_jsoninmake?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment."]moduleCreateEnvironmentInput=structtypenonrect={name:EnvironmentName.t[@ocaml.doc"The name of the Amazon MWAA environment. For example, MyMWAAEnvironment."];executionRoleArn:IamRoleArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the execution role for your environment. An execution role is an Amazon Web Services Identity and Access Management (IAM) role that grants MWAA permission to access Amazon Web Services services and resources used by your environment. For example, arn:aws:iam::123456789:role/my-execution-role. For more information, refer to Amazon MWAA Execution role."];sourceBucketArn:S3BucketArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored. For example, arn:aws:s3:::my-airflow-bucket-unique-name. For more information, refer to Create an Amazon S3 bucket for Amazon MWAA."];dagS3Path:RelativePath.t[@ocaml.doc"The relative path to the DAGs folder on your Amazon S3 bucket. For example, dags. For more information, refer to Adding or updating DAGs."];networkConfiguration:NetworkConfiguration.t[@ocaml.doc"The VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, refer to About networking on Amazon MWAA."];pluginsS3Path:RelativePath.toption[@ocaml.doc"The relative path to the plugins.zip file on your Amazon S3 bucket. For example, plugins.zip. If specified, then the plugins.zip version is required. For more information, refer to Installing custom plugins."];pluginsS3ObjectVersion:S3ObjectVersion.toption[@ocaml.doc"The version of the plugins.zip file on your Amazon S3 bucket. You must specify a version each time a plugins.zip file is updated. For more information, refer to How S3 Versioning works."];requirementsS3Path:RelativePath.toption[@ocaml.doc"The relative path to the requirements.txt file on your Amazon S3 bucket. For example, requirements.txt. If specified, then a version is required. For more information, refer to Installing Python dependencies."];requirementsS3ObjectVersion:S3ObjectVersion.toption[@ocaml.doc"The version of the requirements.txt file on your Amazon S3 bucket. You must specify a version each time a requirements.txt file is updated. For more information, refer to How S3 Versioning works."];startupScriptS3Path:RelativePath.toption[@ocaml.doc"The relative path to the startup shell script in your Amazon S3 bucket. For example, s3://mwaa-environment/startup.sh. Amazon MWAA runs the script as your environment starts, and before running the Apache Airflow process. You can use this script to install dependencies, modify Apache Airflow configuration options, and set environment variables. For more information, refer to Using a startup script."];startupScriptS3ObjectVersion:S3ObjectVersion.toption[@ocaml.doc"The version of the startup shell script in your Amazon S3 bucket. You must specify the version ID that Amazon S3 assigns to the file every time you update the script. Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no more than 1,024 bytes long. The following is an example: 3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo For more information, refer to Using a startup script."];airflowConfigurationOptions:AirflowConfigurationOptions.toption[@ocaml.doc"A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. For more information, refer to Apache Airflow configuration options."];environmentClass:EnvironmentClass.toption[@ocaml.doc"The environment class type. Valid values: mw1.micro, mw1.small, mw1.medium, mw1.large, mw1.xlarge, and mw1.2xlarge. For more information, refer to Amazon MWAA environment class."];maxWorkers:MaxWorkers.toption[@ocaml.doc"The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the MaxWorkers field. For example, 20. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the one worker that is included with your environment, or the number you specify in MinWorkers."];kmsKey:KmsKey.toption[@ocaml.doc"The Amazon Web Services Key Management Service (KMS) key to encrypt the data in your environment. You can use an Amazon Web Services owned CMK, or a Customer managed CMK (advanced). For more information, refer to Create an Amazon MWAA environment."];airflowVersion:AirflowVersion.toption[@ocaml.doc"The Apache Airflow version for your environment. If no value is specified, it defaults to the latest version. For more information, refer to Apache Airflow versions on Amazon Managed Workflows for Apache Airflow (Amazon MWAA). Valid values: 2.7.2, 2.8.1, 2.9.2, 2.10.1, 2.10.3, 2.11.0, and 3.0.6."];loggingConfiguration:LoggingConfigurationInput.toption[@ocaml.doc"Defines the Apache Airflow logs to send to CloudWatch Logs."];weeklyMaintenanceWindowStart:WeeklyMaintenanceWindowStart.toption[@ocaml.doc"The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly maintenance updates of your environment in the following format: DAY:HH:MM. For example: TUE:03:30. You can specify a start time in 30 minute increments only."];tags:TagMap.toption[@ocaml.doc"The key-value tag pairs you want to associate to your environment. For example, \"Environment\": \"Staging\". For more information, refer to Tagging Amazon Web Services resources."];webserverAccessMode:WebserverAccessMode.toption[@ocaml.doc"Defines the access mode for the Apache Airflow web server. For more information, refer to Apache Airflow access modes."];minWorkers:MinWorkers.toption[@ocaml.doc"The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the MaxWorkers field. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the worker count you specify in the MinWorkers field. For example, 2."];schedulers:Schedulers.toption[@ocaml.doc"The number of Apache Airflow schedulers to run in your environment. Valid values: v2 - For environments larger than mw1.micro, accepts values from 2 to 5. Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1. v1 - Accepts 1."];endpointManagement:EndpointManagement.toption[@ocaml.doc"Defines whether the VPC endpoints configured for the environment are created, and managed, by the customer or by Amazon MWAA. If set to SERVICE, Amazon MWAA will create and manage the required VPC endpoints in your VPC. If set to CUSTOMER, you must create, and manage, the VPC endpoints for your VPC. If you choose to create an environment in a shared VPC, you must set this value to CUSTOMER. In a shared VPC deployment, the environment will remain in PENDING status until you create the VPC endpoints. If you do not take action to create the endpoints within 72 hours, the status will change to CREATE_FAILED. You can delete the failed environment and create a new one."];minWebservers:MinWebservers.toption[@ocaml.doc"The minimum number of web servers that you want to run in your environment. Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers when you interact with your Apache Airflow environment using Apache Airflow REST API, or the Apache Airflow CLI. As the transaction-per-second rate, and the network load, decrease, Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers. Valid values: For environments larger than mw1.micro, accepts values from 2 to 5. Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1."];maxWebservers:MaxWebservers.toption[@ocaml.doc"The maximum number of web servers that you want to run in your environment. Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers when you interact with your Apache Airflow environment using Apache Airflow REST API, or the Apache Airflow CLI. For example, in scenarios where your workload requires network calls to the Apache Airflow REST API with a high transaction-per-second (TPS) rate, Amazon MWAA will increase the number of web servers up to the number set in MaxWebserers. As TPS rates decrease Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers. Valid values: For environments larger than mw1.micro, accepts values from 2 to 5. Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1."]}letcontext_="CreateEnvironmentInput"letmake?pluginsS3Path=fun?pluginsS3ObjectVersion->fun?requirementsS3Path->fun?requirementsS3ObjectVersion->fun?startupScriptS3Path->fun?startupScriptS3ObjectVersion->fun?airflowConfigurationOptions->fun?environmentClass->fun?maxWorkers->fun?kmsKey->fun?airflowVersion->fun?loggingConfiguration->fun?weeklyMaintenanceWindowStart->fun?tags->fun?webserverAccessMode->fun?minWorkers->fun?schedulers->fun?endpointManagement->fun?minWebservers->fun?maxWebservers->fun~name->fun~executionRoleArn->fun~sourceBucketArn->fun~dagS3Path->fun~networkConfiguration->fun()->{pluginsS3Path;pluginsS3ObjectVersion;requirementsS3Path;requirementsS3ObjectVersion;startupScriptS3Path;startupScriptS3ObjectVersion;airflowConfigurationOptions;environmentClass;maxWorkers;kmsKey;airflowVersion;loggingConfiguration;weeklyMaintenanceWindowStart;tags;webserverAccessMode;minWorkers;schedulers;endpointManagement;minWebservers;maxWebservers;name;executionRoleArn;sourceBucketArn;dagS3Path;networkConfiguration}letto_valuex=structure_to_value[("Name",(Some(EnvironmentName.to_valuex.name)));("ExecutionRoleArn",(Some(IamRoleArn.to_valuex.executionRoleArn)));("SourceBucketArn",(Some(S3BucketArn.to_valuex.sourceBucketArn)));("DagS3Path",(Some(RelativePath.to_valuex.dagS3Path)));("NetworkConfiguration",(Some(NetworkConfiguration.to_valuex.networkConfiguration)));("PluginsS3Path",(Option.mapx.pluginsS3Path~f:RelativePath.to_value));("PluginsS3ObjectVersion",(Option.mapx.pluginsS3ObjectVersion~f:S3ObjectVersion.to_value));("RequirementsS3Path",(Option.mapx.requirementsS3Path~f:RelativePath.to_value));("RequirementsS3ObjectVersion",(Option.mapx.requirementsS3ObjectVersion~f:S3ObjectVersion.to_value));("StartupScriptS3Path",(Option.mapx.startupScriptS3Path~f:RelativePath.to_value));("StartupScriptS3ObjectVersion",(Option.mapx.startupScriptS3ObjectVersion~f:S3ObjectVersion.to_value));("AirflowConfigurationOptions",(Option.mapx.airflowConfigurationOptions~f:AirflowConfigurationOptions.to_value));("EnvironmentClass",(Option.mapx.environmentClass~f:EnvironmentClass.to_value));("MaxWorkers",(Option.mapx.maxWorkers~f:MaxWorkers.to_value));("KmsKey",(Option.mapx.kmsKey~f:KmsKey.to_value));("AirflowVersion",(Option.mapx.airflowVersion~f:AirflowVersion.to_value));("LoggingConfiguration",(Option.mapx.loggingConfiguration~f:LoggingConfigurationInput.to_value));("WeeklyMaintenanceWindowStart",(Option.mapx.weeklyMaintenanceWindowStart~f:WeeklyMaintenanceWindowStart.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value));("WebserverAccessMode",(Option.mapx.webserverAccessMode~f:WebserverAccessMode.to_value));("MinWorkers",(Option.mapx.minWorkers~f:MinWorkers.to_value));("Schedulers",(Option.mapx.schedulers~f:Schedulers.to_value));("EndpointManagement",(Option.mapx.endpointManagement~f:EndpointManagement.to_value));("MinWebservers",(Option.mapx.minWebservers~f:MinWebservers.to_value));("MaxWebservers",(Option.mapx.maxWebservers~f:MaxWebservers.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxWebservers=(Option.map~f:MaxWebservers.of_xml)(Xml.childxml_arg0"MaxWebservers")inletminWebservers=(Option.map~f:MinWebservers.of_xml)(Xml.childxml_arg0"MinWebservers")inletendpointManagement=(Option.map~f:EndpointManagement.of_xml)(Xml.childxml_arg0"EndpointManagement")inletschedulers=(Option.map~f:Schedulers.of_xml)(Xml.childxml_arg0"Schedulers")inletminWorkers=(Option.map~f:MinWorkers.of_xml)(Xml.childxml_arg0"MinWorkers")inletwebserverAccessMode=(Option.map~f:WebserverAccessMode.of_xml)(Xml.childxml_arg0"WebserverAccessMode")inlettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletweeklyMaintenanceWindowStart=(Option.map~f:WeeklyMaintenanceWindowStart.of_xml)(Xml.childxml_arg0"WeeklyMaintenanceWindowStart")inletloggingConfiguration=(Option.map~f:LoggingConfigurationInput.of_xml)(Xml.childxml_arg0"LoggingConfiguration")inletairflowVersion=(Option.map~f:AirflowVersion.of_xml)(Xml.childxml_arg0"AirflowVersion")inletkmsKey=(Option.map~f:KmsKey.of_xml)(Xml.childxml_arg0"KmsKey")inletmaxWorkers=(Option.map~f:MaxWorkers.of_xml)(Xml.childxml_arg0"MaxWorkers")inletenvironmentClass=(Option.map~f:EnvironmentClass.of_xml)(Xml.childxml_arg0"EnvironmentClass")inletairflowConfigurationOptions=(Option.map~f:AirflowConfigurationOptions.of_xml)(Xml.childxml_arg0"AirflowConfigurationOptions")inletstartupScriptS3ObjectVersion=(Option.map~f:S3ObjectVersion.of_xml)(Xml.childxml_arg0"StartupScriptS3ObjectVersion")inletstartupScriptS3Path=(Option.map~f:RelativePath.of_xml)(Xml.childxml_arg0"StartupScriptS3Path")inletrequirementsS3ObjectVersion=(Option.map~f:S3ObjectVersion.of_xml)(Xml.childxml_arg0"RequirementsS3ObjectVersion")inletrequirementsS3Path=(Option.map~f:RelativePath.of_xml)(Xml.childxml_arg0"RequirementsS3Path")inletpluginsS3ObjectVersion=(Option.map~f:S3ObjectVersion.of_xml)(Xml.childxml_arg0"PluginsS3ObjectVersion")inletpluginsS3Path=(Option.map~f:RelativePath.of_xml)(Xml.childxml_arg0"PluginsS3Path")inletnetworkConfiguration=NetworkConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"NetworkConfiguration")inletdagS3Path=RelativePath.of_xml(Xml.child_exn~context:context_xml_arg0"DagS3Path")inletsourceBucketArn=S3BucketArn.of_xml(Xml.child_exn~context:context_xml_arg0"SourceBucketArn")inletexecutionRoleArn=IamRoleArn.of_xml(Xml.child_exn~context:context_xml_arg0"ExecutionRoleArn")inletname=EnvironmentName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?maxWebservers?minWebservers?endpointManagement?schedulers?minWorkers?webserverAccessMode?tags?weeklyMaintenanceWindowStart?loggingConfiguration?airflowVersion?kmsKey?maxWorkers?environmentClass?airflowConfigurationOptions?startupScriptS3ObjectVersion?startupScriptS3Path?requirementsS3ObjectVersion?requirementsS3Path?pluginsS3ObjectVersion?pluginsS3Path~networkConfiguration~dagS3Path~sourceBucketArn~executionRoleArn~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxWebservers=field_mapjson__"MaxWebservers"MaxWebservers.of_jsoninletminWebservers=field_mapjson__"MinWebservers"MinWebservers.of_jsoninletendpointManagement=field_mapjson__"EndpointManagement"EndpointManagement.of_jsoninletschedulers=field_mapjson__"Schedulers"Schedulers.of_jsoninletminWorkers=field_mapjson__"MinWorkers"MinWorkers.of_jsoninletwebserverAccessMode=field_mapjson__"WebserverAccessMode"WebserverAccessMode.of_jsoninlettags=field_mapjson__"Tags"TagMap.of_jsoninletweeklyMaintenanceWindowStart=field_mapjson__"WeeklyMaintenanceWindowStart"WeeklyMaintenanceWindowStart.of_jsoninletloggingConfiguration=field_mapjson__"LoggingConfiguration"LoggingConfigurationInput.of_jsoninletairflowVersion=field_mapjson__"AirflowVersion"AirflowVersion.of_jsoninletkmsKey=field_mapjson__"KmsKey"KmsKey.of_jsoninletmaxWorkers=field_mapjson__"MaxWorkers"MaxWorkers.of_jsoninletenvironmentClass=field_mapjson__"EnvironmentClass"EnvironmentClass.of_jsoninletairflowConfigurationOptions=field_mapjson__"AirflowConfigurationOptions"AirflowConfigurationOptions.of_jsoninletstartupScriptS3ObjectVersion=field_mapjson__"StartupScriptS3ObjectVersion"S3ObjectVersion.of_jsoninletstartupScriptS3Path=field_mapjson__"StartupScriptS3Path"RelativePath.of_jsoninletrequirementsS3ObjectVersion=field_mapjson__"RequirementsS3ObjectVersion"S3ObjectVersion.of_jsoninletrequirementsS3Path=field_mapjson__"RequirementsS3Path"RelativePath.of_jsoninletpluginsS3ObjectVersion=field_mapjson__"PluginsS3ObjectVersion"S3ObjectVersion.of_jsoninletpluginsS3Path=field_mapjson__"PluginsS3Path"RelativePath.of_jsoninletnetworkConfiguration=field_map_exnjson__"NetworkConfiguration"NetworkConfiguration.of_jsoninletdagS3Path=field_map_exnjson__"DagS3Path"RelativePath.of_jsoninletsourceBucketArn=field_map_exnjson__"SourceBucketArn"S3BucketArn.of_jsoninletexecutionRoleArn=field_map_exnjson__"ExecutionRoleArn"IamRoleArn.of_jsoninletname=field_map_exnjson__"Name"EnvironmentName.of_jsoninmake?maxWebservers?minWebservers?endpointManagement?schedulers?minWorkers?webserverAccessMode?tags?weeklyMaintenanceWindowStart?loggingConfiguration?airflowVersion?kmsKey?maxWorkers?environmentClass?airflowConfigurationOptions?startupScriptS3ObjectVersion?startupScriptS3Path?requirementsS3ObjectVersion?requirementsS3Path?pluginsS3ObjectVersion?pluginsS3Path~networkConfiguration~dagS3Path~sourceBucketArn~executionRoleArn~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This section contains the Amazon Managed Workflows for Apache Airflow (Amazon MWAA) API reference documentation to create an environment. For more information, refer to Get started with Amazon Managed Workflows for Apache Airflow."]moduleCreateCliTokenResponse=structtypenonrect={cliToken:Token.toption[@ocaml.doc"An Airflow CLI login token."];webServerHostname:Hostname.toption[@ocaml.doc"The Airflow web server hostname for the environment."]}typenonrecerror=[`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?cliToken=fun?webServerHostname->fun()->{cliToken;webServerHostname}leterror_of_jsonnamejson=matchnamewith|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("CliToken",(Option.mapx.cliToken~f:Token.to_value));("WebServerHostname",(Option.mapx.webServerHostname~f:Hostname.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwebServerHostname=(Option.map~f:Hostname.of_xml)(Xml.childxml_arg0"WebServerHostname")inletcliToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"CliToken")inmake?webServerHostname?cliToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwebServerHostname=field_mapjson__"WebServerHostname"Hostname.of_jsoninletcliToken=field_mapjson__"CliToken"Token.of_jsoninmake?webServerHostname?cliToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a CLI token for the Airflow CLI. To learn more, see Creating an Apache Airflow CLI token."]moduleCreateCliTokenRequest=structtypenonrect={name:EnvironmentName.t[@ocaml.doc"The name of the Amazon MWAA environment. For example, MyMWAAEnvironment."]}letcontext_="CreateCliTokenRequest"letmake~name=fun()->{name}letto_valuex=structure_to_value[("Name",(Some(EnvironmentName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=EnvironmentName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"Name"EnvironmentName.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a CLI token for the Airflow CLI. To learn more, see Creating an Apache Airflow CLI token."]